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_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-target-subdir=SUBDIR
886 configure in a subdirectory
887 --with-cross-host=HOST configure with a cross compiler from HOST
888 --with-newlib configure with newlib
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-pic try to use only PIC/non-PIC objects default=use both
891 --with-java-home=DIRECTORY
892 value of java.home system property
893 --with-win32-nlsapi=ansi or unicows or unicode
894 native MinGW libgcj Win32 OS API (default is ansi)
895 --without-libffi don't use libffi
896 --with-ecos enable runtime eCos target support
897 --with-system-zlib use installed libz
898 --with-x use the X Window System
899 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
900 --without-libiconv-prefix don't search for libiconv in includedir and libdir
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CXX C++ compiler command
910 CXXFLAGS C++ compiler flags
911 CXXCPP C++ preprocessor
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 ac_dir_suffix= ac_top_builddir=
936 .) # No --srcdir option. We are building in place.
938 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
954 .) ac_abs_builddir="$ac_dir";;
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1001 $ac_configure --help
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1012 libjava configure version-unused
1013 generated by GNU Autoconf 2.59
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by libjava $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1086 ac_must_keep_next=false
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1115 -* ) ac_must_keep_next=true ;;
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1144 # The following way of writing the cache mishandles newlines in values,
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1174 if test -n "$ac_subst_files"; then
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1189 if test -s confdefs.h; then
1196 sed "/^$/d" confdefs.h | sort
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1279 # Check that the precious variables saved in the cache have kept the same
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367 if test -f $ac_dir/install-sh; then
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1371 elif test -f $ac_dir/install.sh; then
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1375 elif test -f $ac_dir/shtool; then
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403 ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407 { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 case ${build_alias} in
1423 "") build_noncanonical=${build} ;;
1424 *) build_noncanonical=${build_alias} ;;
1427 case ${host_alias} in
1428 "") host_noncanonical=${build_noncanonical} ;;
1429 *) host_noncanonical=${host_alias} ;;
1432 case ${target_alias} in
1433 "") target_noncanonical=${host_noncanonical} ;;
1434 *) target_noncanonical=${target_alias} ;;
1437 # Prefix 'build-' so this never conflicts with target_subdir.
1438 build_subdir="build-${build_noncanonical}"
1439 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440 if ( test $srcdir = . && test -d gcc ) \
1441 || test -d $srcdir/../host-${host_noncanonical}; then
1442 host_subdir="host-${host_noncanonical}"
1447 target_subdir=${target_noncanonical}
1450 # We use these options to decide which functions to include.
1452 # Check whether --with-target-subdir or --without-target-subdir was given.
1453 if test "${with_target_subdir+set}" = set; then
1454 withval="$with_target_subdir"
1458 # We may get other options which we don't document:
1459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461 # When building with srcdir == objdir, links to the source files will
1462 # be created in directories within the target_subdir. We have to
1463 # adjust toplevel_srcdir accordingly, so that configure finds
1464 # install-sh and other auxiliary files that live in the top-level
1466 if test "${srcdir}" = "."; then
1467 if test -z "${with_target_subdir}"; then
1470 if test "${with_target_subdir}" != "."; then
1471 toprel="${with_multisrctop}../.."
1473 toprel="${with_multisrctop}.."
1480 libgcj_basedir=$srcdir/$toprel/./libjava
1483 echo "$as_me:$LINENO: checking host system type" >&5
1484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485 if test "${ac_cv_host+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 ac_cv_host_alias=$host_alias
1489 test -z "$ac_cv_host_alias" &&
1490 ac_cv_host_alias=$ac_cv_build_alias
1491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494 { (exit 1); exit 1; }; }
1497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498 echo "${ECHO_T}$ac_cv_host" >&6
1500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 echo "$as_me:$LINENO: checking target system type" >&5
1506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507 if test "${ac_cv_target+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 ac_cv_target_alias=$target_alias
1511 test "x$ac_cv_target_alias" = "x" &&
1512 ac_cv_target_alias=$ac_cv_host_alias
1513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520 echo "${ECHO_T}$ac_cv_target" >&6
1521 target=$ac_cv_target
1522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 # The aliases save the names the user supplied, while $host etc.
1528 # will get canonicalized.
1529 test -n "$target_alias" &&
1530 test "$program_prefix$program_suffix$program_transform_name" = \
1532 program_prefix=${target_alias}-
1533 case ${build_alias} in
1534 "") build_noncanonical=${build} ;;
1535 *) build_noncanonical=${build_alias} ;;
1538 case ${target_alias} in
1539 "") target_noncanonical=${host_noncanonical} ;;
1540 *) target_noncanonical=${target_alias} ;;
1546 # This works around the fact that libtool configuration may change LD
1547 # for this particular configuration, but some shells, instead of
1548 # keeping the changes in LD private, export them just because LD is
1550 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1555 if test "$LN_S" = "ln -s"; then
1556 echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560 echo "${ECHO_T}no, using $LN_S" >&6
1564 # This works around an automake problem.
1565 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1569 # Check whether --with-cross-host or --without-cross-host was given.
1570 if test "${with_cross_host+set}" = set; then
1571 withval="$with_cross_host"
1576 # Check whether --with-newlib or --without-newlib was given.
1577 if test "${with_newlib+set}" = set; then
1578 withval="$with_newlib"
1582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583 if test "${enable_version_specific_runtime_libs+set}" = set; then
1584 enableval="$enable_version_specific_runtime_libs"
1585 case "$enableval" in
1586 yes) version_specific_libs=yes ;;
1587 no) version_specific_libs=no ;;
1588 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590 { (exit 1); exit 1; }; };;
1593 version_specific_libs=no
1597 # Default to --enable-multilib
1598 # Check whether --enable-multilib or --disable-multilib was given.
1599 if test "${enable_multilib+set}" = set; then
1600 enableval="$enable_multilib"
1601 case "${enableval}" in
1602 yes) multilib=yes ;;
1604 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606 { (exit 1); exit 1; }; } ;;
1611 # Check whether --enable-plugin or --disable-plugin was given.
1612 if test "${enable_plugin+set}" = set; then
1613 enableval="$enable_plugin"
1614 case "$enableval" in
1615 yes) plugin_enabled=yes ;;
1616 no) plugin_enabled=no ;;
1617 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1618 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1619 { (exit 1); exit 1; }; };;
1626 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1629 # (1) We use an abnormal CXX (without library references), so we
1630 # must cache it under a different name.
1631 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1632 # the non-multilib-adjusted value will be used in multilibs.
1633 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1634 # (4) As another side effect, automake doesn't automatically include them
1636 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1637 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1638 # used in later tests. This may not be necessary in libjava; I don't know.
1642 save_CXXFLAGS="$CXXFLAGS"
1643 CXXFLAGS="$CXXFLAGS -fno-builtin"
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$ac_cv_prog_CC"; then
1688 # Extract the first word of "gcc", so it can be a program name with args.
1689 set dummy gcc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$ac_ct_CC"; then
1696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CC="gcc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1728 if test -z "$CC"; then
1729 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}cc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="${ac_tool_prefix}cc"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1766 if test -z "$ac_cv_prog_CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$ac_ct_CC"; then
1776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_ac_ct_CC="cc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1809 if test -z "$CC"; then
1810 # Extract the first word of "cc", so it can be a program name with args.
1811 set dummy cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1829 ac_prog_rejected=yes
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 if test $ac_prog_rejected = yes; then
1840 # We found a bogon in the path, so make sure we never use it.
1841 set dummy $ac_cv_prog_CC
1843 if test $# != 0; then
1844 # We chose a different compiler from the bogus one.
1845 # However, it has the same basename, so the bogon will be chosen
1846 # first if we set CC to just the basename; use the full file name.
1848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1854 if test -n "$CC"; then
1855 echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1863 if test -z "$CC"; then
1864 if test -n "$ac_tool_prefix"; then
1867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 if test -n "$CC"; then
1895 echo "$as_me:$LINENO: result: $CC" >&5
1896 echo "${ECHO_T}$CC" >&6
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 test -n "$CC" && break
1905 if test -z "$CC"; then
1909 # Extract the first word of "$ac_prog", so it can be a program name with args.
1910 set dummy $ac_prog; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_CC="$ac_prog"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1944 test -n "$ac_ct_CC" && break
1953 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: no acceptable C compiler found in \$PATH
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1959 # Provide some information about the compiler.
1960 echo "$as_me:$LINENO:" \
1961 "checking for C compiler version" >&5
1962 ac_compiler=`set X $ac_compile; echo $2`
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964 (eval $ac_compiler --version </dev/null >&5) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969 (eval $ac_compiler -v </dev/null >&5) 2>&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974 (eval $ac_compiler -V </dev/null >&5) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1979 cat >conftest.$ac_ext <<_ACEOF
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h. */
1995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1996 (eval $ac_link) 2>&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; then
2005 if test x$gcc_no_link = xyes; then
2006 # Setting cross_compile will disable run tests; it will
2007 # also disable AC_CHECK_FILE but that's generally
2008 # correct if we can't link.
2012 cat >conftest.$ac_ext <<_ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2027 ac_clean_files_save=$ac_clean_files
2028 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2029 # Try to create an executable without -o first, disregard a.out.
2030 # It will help us diagnose broken compilers, and finding out an intuition
2032 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2033 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2034 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2035 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2036 (eval $ac_link_default) 2>&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; then
2040 # Find the output, starting from the most likely. This scheme is
2041 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2044 # Be careful to initialize this variable, since it used to be cached.
2045 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2047 # b.out is created by i960 compilers.
2048 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2050 test -f "$ac_file" || continue
2052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2055 # This is the source file.
2058 # We found the default executable, but exeext='' is most
2062 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2063 # FIXME: I believe we export ac_cv_exeext for Libtool,
2064 # but it would be cool to find out if it's true. Does anybody
2065 # maintain Libtool? --akim.
2073 echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2077 See \`config.log' for more details." >&5
2078 echo "$as_me: error: C compiler cannot create executables
2079 See \`config.log' for more details." >&2;}
2080 { (exit 77); exit 77; }; }
2083 ac_exeext=$ac_cv_exeext
2084 echo "$as_me:$LINENO: result: $ac_file" >&5
2085 echo "${ECHO_T}$ac_file" >&6
2087 # Check the compiler produces executables we can run. If not, either
2088 # the compiler is broken, or we cross compile.
2089 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2090 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2091 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2092 # If not cross compiling, check that we can run a simple program.
2093 if test "$cross_compiling" != yes; then
2094 if { ac_try='./$ac_file'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 if test "$cross_compiling" = maybe; then
2105 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot run C compiled programs.
2109 If you meant to cross compile, use \`--host'.
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2115 echo "$as_me:$LINENO: result: yes" >&5
2116 echo "${ECHO_T}yes" >&6
2118 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2119 ac_clean_files=$ac_clean_files_save
2120 # Check the compiler produces executables we can run. If not, either
2121 # the compiler is broken, or we cross compile.
2122 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2123 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2124 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2125 echo "${ECHO_T}$cross_compiling" >&6
2127 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2128 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2130 (eval $ac_link) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2135 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2136 # work properly (i.e., refer to `conftest.exe'), while it won't with
2138 for ac_file in conftest.exe conftest conftest.*; do
2139 test -f "$ac_file" || continue
2141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2142 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2150 See \`config.log' for more details." >&5
2151 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2152 See \`config.log' for more details." >&2;}
2153 { (exit 1); exit 1; }; }
2156 rm -f conftest$ac_cv_exeext
2157 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2158 echo "${ECHO_T}$ac_cv_exeext" >&6
2160 rm -f conftest.$ac_ext
2161 EXEEXT=$ac_cv_exeext
2164 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2166 if test "${ac_cv_objext+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 cat >conftest.$ac_ext <<_ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2184 rm -f conftest.o conftest.obj
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; then
2190 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2193 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2210 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2211 echo "${ECHO_T}$ac_cv_objext" >&6
2212 OBJEXT=$ac_cv_objext
2214 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2215 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2216 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 cat >conftest.$ac_ext <<_ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2241 grep -v '^ *+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2270 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2271 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2272 GCC=`test $ac_compiler_gnu = yes && echo yes`
2273 ac_test_CFLAGS=${CFLAGS+set}
2274 ac_save_CFLAGS=$CFLAGS
2276 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cc_g+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 cat >conftest.$ac_ext <<_ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2300 grep -v '^ *+' conftest.er1 >conftest.err
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2329 if test "$ac_test_CFLAGS" = set; then
2330 CFLAGS=$ac_save_CFLAGS
2331 elif test $ac_cv_prog_cc_g = yes; then
2332 if test "$GCC" = yes; then
2338 if test "$GCC" = yes; then
2344 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2345 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2346 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 ac_cv_prog_cc_stdc=no
2351 cat >conftest.$ac_ext <<_ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2359 #include <sys/types.h>
2360 #include <sys/stat.h>
2361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2362 struct buf { int x; };
2363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2364 static char *e (p, i)
2370 static char *f (char * (*g) (char **, int), char **p, ...)
2375 s = g (p, va_arg (v,int));
2380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2381 function prototypes and stuff, but not '\xHH' hex character constants.
2382 These don't provoke an error unfortunately, instead are silently treated
2383 as 'x'. The following induces an error, until -std1 is added to get
2384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2385 array size at least. It's necessary to write '\x00'==0 to get something
2386 that's true only with -std1. */
2387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2389 int test (int i, double x);
2390 struct s1 {int (*f) (int a);};
2391 struct s2 {int (*f) (double a);};
2392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2398 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2403 # Don't try gcc -ansi; that turns off useful extensions and
2404 # breaks some systems' header files.
2405 # AIX -qlanglvl=ansi
2406 # Ultrix and OSF/1 -std1
2407 # HP-UX 10.20 and later -Ae
2408 # HP-UX older versions -Aa -D_HPUX_SOURCE
2409 # SVR4 -Xc -D__EXTENSIONS__
2410 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2412 CC="$ac_save_CC $ac_arg"
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 ac_cv_prog_cc_stdc=$ac_arg
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext
2444 rm -f conftest.$ac_ext conftest.$ac_objext
2449 case "x$ac_cv_prog_cc_stdc" in
2451 echo "$as_me:$LINENO: result: none needed" >&5
2452 echo "${ECHO_T}none needed" >&6 ;;
2454 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2455 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2456 CC="$CC $ac_cv_prog_cc_stdc" ;;
2459 # Some people use a C++ compiler to compile C. Since we use `exit',
2460 # in C++ we need to declare it. In case someone uses the same compiler
2461 # for both compiling C and C++ we need to have the C++ compiler decide
2462 # the declaration of exit, since it's the most demanding environment.
2463 cat >conftest.$ac_ext <<_ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>conftest.er1
2472 grep -v '^ *+' conftest.er1 >conftest.err
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag"
2478 || test ! -s conftest.err'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 for ac_declaration in \
2492 'extern "C" void std::exit (int) throw (); using std::exit;' \
2493 'extern "C" void std::exit (int); using std::exit;' \
2494 'extern "C" void exit (int) throw ();' \
2495 'extern "C" void exit (int);' \
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2518 grep -v '^ *+' conftest.er1 >conftest.err
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2563 grep -v '^ *+' conftest.er1 >conftest.err
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 if test -n "$ac_declaration"; then
2591 echo '#ifdef __cplusplus' >>confdefs.h
2592 echo $ac_declaration >>confdefs.h
2593 echo '#endif' >>confdefs.h
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 ac_cpp='$CXXCPP $CPPFLAGS'
2610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 if test -n "$CXX"; then
2624 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 CXX=$glibcxx_cv_prog_CXX
2643 if test -n "$CXX"; then
2644 echo "$as_me:$LINENO: result: $CXX" >&5
2645 echo "${ECHO_T}$CXX" >&6
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2651 test -n "$CXX" && break
2654 if test -z "$CXX"; then
2656 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 if test -n "$ac_ct_CXX"; then
2666 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_CXX="$ac_prog"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2685 if test -n "$ac_ct_CXX"; then
2686 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2687 echo "${ECHO_T}$ac_ct_CXX" >&6
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2693 test -n "$ac_ct_CXX" && break
2695 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO:" \
2703 "checking for C++ compiler version" >&5
2704 ac_compiler=`set X $ac_compile; echo $2`
2705 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2706 (eval $ac_compiler --version </dev/null >&5) 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2711 (eval $ac_compiler -v </dev/null >&5) 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2716 (eval $ac_compiler -V </dev/null >&5) 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2723 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_cxx_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2777 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2779 GXX=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CXXFLAGS=${CXXFLAGS+set}
2781 ac_save_CXXFLAGS=$CXXFLAGS
2783 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2784 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cxx_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_cxx_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_prog_cxx_g=yes
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2836 if test "$ac_test_CXXFLAGS" = set; then
2837 CXXFLAGS=$ac_save_CXXFLAGS
2838 elif test $ac_cv_prog_cxx_g = yes; then
2839 if test "$GXX" = yes; then
2845 if test "$GXX" = yes; then
2851 for ac_declaration in \
2853 'extern "C" void std::exit (int) throw (); using std::exit;' \
2854 'extern "C" void std::exit (int); using std::exit;' \
2855 'extern "C" void exit (int) throw ();' \
2856 'extern "C" void exit (int);' \
2859 cat >conftest.$ac_ext <<_ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2879 grep -v '^ *+' conftest.er1 >conftest.err
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_cxx_werror_flag"
2885 || test ! -s conftest.err'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 cat >conftest.$ac_ext <<_ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_cxx_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951 if test -n "$ac_declaration"; then
2952 echo '#ifdef __cplusplus' >>confdefs.h
2953 echo $ac_declaration >>confdefs.h
2954 echo '#endif' >>confdefs.h
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 CXXFLAGS="$save_CXXFLAGS"
2969 am__api_version="1.9"
2970 # Find a good install program. We prefer a C program (faster),
2971 # so one script is as good as another. But avoid the broken or
2972 # incompatible versions:
2973 # SysV /etc/install, /usr/sbin/install
2974 # SunOS /usr/etc/install
2975 # IRIX /sbin/install
2977 # AmigaOS /C/install, which installs bootblocks on floppy discs
2978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2981 # OS/2's system install, which has a completely different semantic
2982 # ./install, which can be erroneously created by make from ./install.sh.
2983 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2984 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2985 if test -z "$INSTALL"; then
2986 if test "${ac_cv_path_install+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 # Account for people who put trailing slashes in PATH elements.
2996 ./ | .// | /cC/* | \
2997 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2998 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3001 # OSF1 and SCO ODT 3.0 have their own names for install.
3002 # Don't use installbsd from OSF since it installs stuff as root
3004 for ac_prog in ginstall scoinst install; do
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3007 if test $ac_prog = install &&
3008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3009 # AIX install. It has an incompatible calling convention.
3011 elif test $ac_prog = install &&
3012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3013 # program-specific install script used by HP pwplus--don't use.
3016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3028 if test "${ac_cv_path_install+set}" = set; then
3029 INSTALL=$ac_cv_path_install
3031 # As a last resort, use the slow shell script. We don't cache a
3032 # path for INSTALL within a source directory, because that will
3033 # break other packages using the cache if that directory is
3034 # removed, or if the path is relative.
3035 INSTALL=$ac_install_sh
3038 echo "$as_me:$LINENO: result: $INSTALL" >&5
3039 echo "${ECHO_T}$INSTALL" >&6
3041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3042 # It thinks the first close brace ends the variable substitution.
3043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3049 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3053 echo timestamp > conftest.file
3054 # Do `set' in a subshell so we don't clobber the current shell's
3055 # arguments. Must try -L first in case configure is actually a
3056 # symlink; some systems play weird games with the mod time of symlinks
3057 # (eg FreeBSD returns the mod time of the symlink's containing
3060 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3061 if test "$*" = "X"; then
3063 set X `ls -t $srcdir/configure conftest.file`
3066 if test "$*" != "X $srcdir/configure conftest.file" \
3067 && test "$*" != "X conftest.file $srcdir/configure"; then
3069 # If neither matched, then we have a broken ls. This can happen
3070 # if, for instance, CONFIG_SHELL is bash and it inherits a
3071 # broken ls alias from the environment. This has actually
3072 # happened. Such a system could not be considered "sane".
3073 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3074 alias in your environment" >&5
3075 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3076 alias in your environment" >&2;}
3077 { (exit 1); exit 1; }; }
3080 test "$2" = conftest.file
3086 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3087 Check your system clock" >&5
3088 echo "$as_me: error: newly created file is older than distributed files!
3089 Check your system clock" >&2;}
3090 { (exit 1); exit 1; }; }
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3094 test "$program_prefix" != NONE &&
3095 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3096 # Use a double $ so make ignores it.
3097 test "$program_suffix" != NONE &&
3098 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3099 # Double any \ or $. echo might interpret backslashes.
3100 # By default was `s,x,x', remove it if useless.
3101 cat <<\_ACEOF >conftest.sed
3102 s/[\\$]/&&/g;s/;s,x,x,$//
3104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3107 # expand $ac_aux_dir to an absolute path
3108 am_aux_dir=`cd $ac_aux_dir && pwd`
3110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3111 # Use eval to expand $SHELL
3112 if eval "$MISSING --run true"; then
3113 am_missing_run="$MISSING --run "
3116 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3120 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3121 # We used to keeping the `.' as first argument, in order to
3122 # allow $(mkdir_p) to be used without argument. As in
3123 # $(mkdir_p) $(somedir)
3124 # where $(somedir) is conditionally defined. However this is wrong
3126 # 1. if the package is installed by a user who cannot write `.'
3127 # make install will fail,
3128 # 2. the above comment should most certainly read
3129 # $(mkdir_p) $(DESTDIR)$(somedir)
3130 # so it does not work when $(somedir) is undefined and
3131 # $(DESTDIR) is not.
3132 # To support the latter case, we have to write
3133 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3134 # so the `.' trick is pointless.
3135 mkdir_p='mkdir -p --'
3137 # On NextStep and OpenStep, the `mkdir' command does not
3138 # recognize any option. It will interpret all options as
3139 # directories to create, and then abort because `.' already
3141 for d in ./-p ./--version;
3143 test -d $d && rmdir $d
3145 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3146 if test -f "$ac_aux_dir/mkinstalldirs"; then
3147 mkdir_p='$(mkinstalldirs)'
3149 mkdir_p='$(install_sh) -d'
3153 for ac_prog in gawk mawk nawk awk
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159 if test "${ac_cv_prog_AWK+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if test -n "$AWK"; then
3163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_AWK="$ac_prog"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 if test -n "$AWK"; then
3183 echo "$as_me:$LINENO: result: $AWK" >&5
3184 echo "${ECHO_T}$AWK" >&6
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3190 test -n "$AWK" && break
3193 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3194 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3195 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3196 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 cat >conftest.make <<\_ACEOF
3201 @echo 'ac_maketemp="$(MAKE)"'
3203 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3204 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3205 if test -n "$ac_maketemp"; then
3206 eval ac_cv_prog_make_${ac_make}_set=yes
3208 eval ac_cv_prog_make_${ac_make}_set=no
3212 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3213 echo "$as_me:$LINENO: result: yes" >&5
3214 echo "${ECHO_T}yes" >&6
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 SET_MAKE="MAKE=${MAKE-make}"
3222 rm -rf .tst 2>/dev/null
3223 mkdir .tst 2>/dev/null
3224 if test -d .tst; then
3229 rmdir .tst 2>/dev/null
3231 DEPDIR="${am__leading_dot}deps"
3233 ac_config_commands="$ac_config_commands depfiles"
3236 am_make=${MAKE-make}
3237 cat > confinc << 'END'
3242 # If we don't find an include directive, just comment out the code.
3243 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3244 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3248 # First try GNU make style include.
3249 echo "include confinc" > confmf
3250 # We grep out `Entering directory' and `Leaving directory'
3251 # messages which can occur if `w' ends up in MAKEFLAGS.
3252 # In particular we don't look at `^make:' because GNU make might
3253 # be invoked under some other name (usually "gmake"), in which
3254 # case it prints its new name instead of `make'.
3255 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3260 # Now try BSD make style include.
3261 if test "$am__include" = "#"; then
3262 echo '.include "confinc"' > confmf
3263 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3264 am__include=.include
3271 echo "$as_me:$LINENO: result: $_am_result" >&5
3272 echo "${ECHO_T}$_am_result" >&6
3273 rm -f confinc confmf
3275 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3276 if test "${enable_dependency_tracking+set}" = set; then
3277 enableval="$enable_dependency_tracking"
3280 if test "x$enable_dependency_tracking" != xno; then
3281 am_depcomp="$ac_aux_dir/depcomp"
3286 if test "x$enable_dependency_tracking" != xno; then
3296 # test to see if srcdir already configured
3297 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3298 test -f $srcdir/config.status; then
3299 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3301 { (exit 1); exit 1; }; }
3304 # test whether we have cygpath
3305 if test -z "$CYGPATH_W"; then
3306 if (cygpath --version) >/dev/null 2>/dev/null; then
3307 CYGPATH_W='cygpath -w'
3314 # Define the identity of the package.
3316 VERSION='version-unused'
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE "$PACKAGE"
3324 cat >>confdefs.h <<_ACEOF
3325 #define VERSION "$VERSION"
3328 # Some tools Automake needs.
3330 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3333 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3336 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3339 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3342 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3344 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3346 # Installed binaries are usually stripped using `strip' when the user
3347 # run `make install-strip'. However `strip' might not be the right
3348 # tool to use in cross-compilation environments, therefore Automake
3349 # will honor the `STRIP' environment variable to overrule this program.
3350 if test "$cross_compiling" != no; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}strip; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_STRIP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 if test -n "$STRIP"; then
3360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 STRIP=$ac_cv_prog_STRIP
3379 if test -n "$STRIP"; then
3380 echo "$as_me:$LINENO: result: $STRIP" >&5
3381 echo "${ECHO_T}$STRIP" >&6
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_STRIP"; then
3390 # Extract the first word of "strip", so it can be a program name with args.
3391 set dummy strip; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if test -n "$ac_ct_STRIP"; then
3398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_STRIP="strip"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3418 if test -n "$ac_ct_STRIP"; then
3419 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3420 echo "${ECHO_T}$ac_ct_STRIP" >&6
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3428 STRIP="$ac_cv_prog_STRIP"
3432 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3434 # We need awk for the "check" target. The system "awk" is bad on
3436 # Always define AMTAR for backward compatibility.
3438 AMTAR=${AMTAR-"${am_missing_run}tar"}
3440 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3445 depcc="$CC" am_compiler_list=
3447 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3448 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3449 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3453 # We make a subdir and do the tests there. Otherwise we can end up
3454 # making bogus files that we don't know about and never remove. For
3455 # instance it was reported that on HP-UX the gcc test will end up
3456 # making a dummy file named `D' -- because `-MD' means `put the output
3459 # Copy depcomp to subdir because otherwise we won't find it if we're
3460 # using a relative directory.
3461 cp "$am_depcomp" conftest.dir
3463 # We will build objects and dependencies in a subdirectory because
3464 # it helps to detect inapplicable dependency modes. For instance
3465 # both Tru64's cc and ICC support -MD to output dependencies as a
3466 # side effect of compilation, but ICC will put the dependencies in
3467 # the current directory while Tru64 will put them in the object
3471 am_cv_CC_dependencies_compiler_type=none
3472 if test "$am_compiler_list" = ""; then
3473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3475 for depmode in $am_compiler_list; do
3476 # Setup a source with many dependencies, because some compilers
3477 # like to wrap large dependency lists on column 80 (with \), and
3478 # we should not choose a depcomp mode which is confused by this.
3480 # We need to recreate these files for each test, as the compiler may
3481 # overwrite some of them when testing with obscure command lines.
3482 # This happens at least with the AIX C compiler.
3484 for i in 1 2 3 4 5 6; do
3485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3487 # Solaris 8's {/usr,}/bin/sh.
3488 touch sub/conftst$i.h
3490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3494 # after this tag, mechanisms are not by side-effect, so they'll
3495 # only be used when explicitly requested
3496 if test "x$enable_dependency_tracking" = xyes; then
3504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3505 # mode. It turns out that the SunPro C++ compiler does not properly
3506 # handle `-M -o', and we need to detect this.
3507 if depmode=$depmode \
3508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3511 >/dev/null 2>conftest.err &&
3512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3513 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3515 # icc doesn't choke on unknown options, it will just issue warnings
3516 # or remarks (even with -Werror). So we grep stderr for any message
3517 # that says an option was ignored or not supported.
3518 # When given -MP, icc 7.0 and 7.1 complain thusly:
3519 # icc: Command line warning: ignoring option '-M'; no argument required
3520 # The diagnosis changed in icc 8.0:
3521 # icc: Command line remark: option '-MP' not supported
3522 if (grep 'ignoring option' conftest.err ||
3523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3524 am_cv_CC_dependencies_compiler_type=$depmode
3533 am_cv_CC_dependencies_compiler_type=none
3537 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3538 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3539 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3544 test "x$enable_dependency_tracking" != xno \
3545 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3547 am__fastdepCC_FALSE='#'
3549 am__fastdepCC_TRUE='#'
3550 am__fastdepCC_FALSE=
3554 depcc="$CXX" am_compiler_list=
3556 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3557 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3558 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3562 # We make a subdir and do the tests there. Otherwise we can end up
3563 # making bogus files that we don't know about and never remove. For
3564 # instance it was reported that on HP-UX the gcc test will end up
3565 # making a dummy file named `D' -- because `-MD' means `put the output
3568 # Copy depcomp to subdir because otherwise we won't find it if we're
3569 # using a relative directory.
3570 cp "$am_depcomp" conftest.dir
3572 # We will build objects and dependencies in a subdirectory because
3573 # it helps to detect inapplicable dependency modes. For instance
3574 # both Tru64's cc and ICC support -MD to output dependencies as a
3575 # side effect of compilation, but ICC will put the dependencies in
3576 # the current directory while Tru64 will put them in the object
3580 am_cv_CXX_dependencies_compiler_type=none
3581 if test "$am_compiler_list" = ""; then
3582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3584 for depmode in $am_compiler_list; do
3585 # Setup a source with many dependencies, because some compilers
3586 # like to wrap large dependency lists on column 80 (with \), and
3587 # we should not choose a depcomp mode which is confused by this.
3589 # We need to recreate these files for each test, as the compiler may
3590 # overwrite some of them when testing with obscure command lines.
3591 # This happens at least with the AIX C compiler.
3593 for i in 1 2 3 4 5 6; do
3594 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3595 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3596 # Solaris 8's {/usr,}/bin/sh.
3597 touch sub/conftst$i.h
3599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3603 # after this tag, mechanisms are not by side-effect, so they'll
3604 # only be used when explicitly requested
3605 if test "x$enable_dependency_tracking" = xyes; then
3613 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3614 # mode. It turns out that the SunPro C++ compiler does not properly
3615 # handle `-M -o', and we need to detect this.
3616 if depmode=$depmode \
3617 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3619 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3620 >/dev/null 2>conftest.err &&
3621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3622 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3624 # icc doesn't choke on unknown options, it will just issue warnings
3625 # or remarks (even with -Werror). So we grep stderr for any message
3626 # that says an option was ignored or not supported.
3627 # When given -MP, icc 7.0 and 7.1 complain thusly:
3628 # icc: Command line warning: ignoring option '-M'; no argument required
3629 # The diagnosis changed in icc 8.0:
3630 # icc: Command line remark: option '-MP' not supported
3631 if (grep 'ignoring option' conftest.err ||
3632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3633 am_cv_CXX_dependencies_compiler_type=$depmode
3642 am_cv_CXX_dependencies_compiler_type=none
3646 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3647 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3648 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3653 test "x$enable_dependency_tracking" != xno \
3654 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3655 am__fastdepCXX_TRUE=
3656 am__fastdepCXX_FALSE='#'
3658 am__fastdepCXX_TRUE='#'
3659 am__fastdepCXX_FALSE=
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3667 set dummy ${ac_tool_prefix}as; ac_word=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_prog_AS+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 if test -n "$AS"; then
3674 ac_cv_prog_AS="$AS" # Let the user override the test.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_AS="${ac_tool_prefix}as"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 if test -n "$AS"; then
3694 echo "$as_me:$LINENO: result: $AS" >&5
3695 echo "${ECHO_T}$AS" >&6
3697 echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6
3702 if test -z "$ac_cv_prog_AS"; then
3704 # Extract the first word of "as", so it can be a program name with args.
3705 set dummy as; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 if test -n "$ac_ct_AS"; then
3712 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_AS="as"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3731 if test -n "$ac_ct_AS"; then
3732 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3733 echo "${ECHO_T}$ac_ct_AS" >&6
3735 echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3744 if test -n "$ac_tool_prefix"; then
3745 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3746 set dummy ${ac_tool_prefix}ld; ac_word=$2
3747 echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3749 if test "${ac_cv_prog_LD+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 if test -n "$LD"; then
3753 ac_cv_prog_LD="$LD" # Let the user override the test.
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_LD="${ac_tool_prefix}ld"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 if test -n "$LD"; then
3773 echo "$as_me:$LINENO: result: $LD" >&5
3774 echo "${ECHO_T}$LD" >&6
3776 echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3781 if test -z "$ac_cv_prog_LD"; then
3783 # Extract the first word of "ld", so it can be a program name with args.
3784 set dummy ld; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 if test -n "$ac_ct_LD"; then
3791 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_LD="ld"
3801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3810 if test -n "$ac_ct_LD"; then
3811 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3812 echo "${ECHO_T}$ac_ct_LD" >&6
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3823 if test -n "$ac_tool_prefix"; then
3824 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3825 set dummy ${ac_tool_prefix}ar; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_prog_AR+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 if test -n "$AR"; then
3832 ac_cv_prog_AR="$AR" # Let the user override the test.
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_AR="${ac_tool_prefix}ar"
3842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 if test -n "$AR"; then
3852 echo "$as_me:$LINENO: result: $AR" >&5
3853 echo "${ECHO_T}$AR" >&6
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3860 if test -z "$ac_cv_prog_AR"; then
3862 # Extract the first word of "ar", so it can be a program name with args.
3863 set dummy ar; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$ac_ct_AR"; then
3870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_ac_ct_AR="ar"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3889 if test -n "$ac_ct_AR"; then
3890 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3891 echo "${ECHO_T}$ac_ct_AR" >&6
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3902 if test -n "$ac_tool_prefix"; then
3903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_RANLIB+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 if test -n "$RANLIB"; then
3911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 RANLIB=$ac_cv_prog_RANLIB
3930 if test -n "$RANLIB"; then
3931 echo "$as_me:$LINENO: result: $RANLIB" >&5
3932 echo "${ECHO_T}$RANLIB" >&6
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3939 if test -z "$ac_cv_prog_RANLIB"; then
3940 ac_ct_RANLIB=$RANLIB
3941 # Extract the first word of "ranlib", so it can be a program name with args.
3942 set dummy ranlib; ac_word=$2
3943 echo "$as_me:$LINENO: checking for $ac_word" >&5
3944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 if test -n "$ac_ct_RANLIB"; then
3949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_ac_ct_RANLIB="ranlib"
3959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3969 if test -n "$ac_ct_RANLIB"; then
3970 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3971 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3977 RANLIB=$ac_ct_RANLIB
3979 RANLIB="$ac_cv_prog_RANLIB"
3982 for ac_prog in gawk mawk nawk awk
3984 # Extract the first word of "$ac_prog", so it can be a program name with args.
3985 set dummy $ac_prog; ac_word=$2
3986 echo "$as_me:$LINENO: checking for $ac_word" >&5
3987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988 if test "${ac_cv_prog_AWK+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 if test -n "$AWK"; then
3992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_AWK="$ac_prog"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 if test -n "$AWK"; then
4012 echo "$as_me:$LINENO: result: $AWK" >&5
4013 echo "${ECHO_T}$AWK" >&6
4015 echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4019 test -n "$AWK" && break
4022 for ac_prog in jar fastjar
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_JAR+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 if test -n "$JAR"; then
4032 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_JAR="$ac_prog"
4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 if test -n "$JAR"; then
4052 echo "$as_me:$LINENO: result: $JAR" >&5
4053 echo "${ECHO_T}$JAR" >&6
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 test -n "$JAR" && break
4061 test -n "$JAR" || JAR="no"
4063 # Extract the first word of "zip", so it can be a program name with args.
4064 set dummy zip; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_ZIP+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4095 if test -n "$ZIP"; then
4096 echo "$as_me:$LINENO: result: $ZIP" >&5
4097 echo "${ECHO_T}$ZIP" >&6
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4103 # Extract the first word of "unzip", so it can be a program name with args.
4104 set dummy unzip; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_UNZIP+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4133 UNZIP=$ac_cv_path_UNZIP
4135 if test -n "$UNZIP"; then
4136 echo "$as_me:$LINENO: result: $UNZIP" >&5
4137 echo "${ECHO_T}$UNZIP" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4145 if test "$JAR" = no; then
4153 if test "$ZIP" = no; then
4154 if test "$JAR" = no; then
4155 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4156 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4157 { (exit 1); exit 1; }; }
4160 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4161 JAR=`pwd`/scripts/jar
4164 # Find a good install program. We prefer a C program (faster),
4165 # so one script is as good as another. But avoid the broken or
4166 # incompatible versions:
4167 # SysV /etc/install, /usr/sbin/install
4168 # SunOS /usr/etc/install
4169 # IRIX /sbin/install
4171 # AmigaOS /C/install, which installs bootblocks on floppy discs
4172 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4173 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4174 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4175 # OS/2's system install, which has a completely different semantic
4176 # ./install, which can be erroneously created by make from ./install.sh.
4177 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4178 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4179 if test -z "$INSTALL"; then
4180 if test "${ac_cv_path_install+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 test -z "$as_dir" && as_dir=.
4188 # Account for people who put trailing slashes in PATH elements.
4190 ./ | .// | /cC/* | \
4191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4192 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4195 # OSF1 and SCO ODT 3.0 have their own names for install.
4196 # Don't use installbsd from OSF since it installs stuff as root
4198 for ac_prog in ginstall scoinst install; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4201 if test $ac_prog = install &&
4202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4203 # AIX install. It has an incompatible calling convention.
4205 elif test $ac_prog = install &&
4206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4207 # program-specific install script used by HP pwplus--don't use.
4210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4222 if test "${ac_cv_path_install+set}" = set; then
4223 INSTALL=$ac_cv_path_install
4225 # As a last resort, use the slow shell script. We don't cache a
4226 # path for INSTALL within a source directory, because that will
4227 # break other packages using the cache if that directory is
4228 # removed, or if the path is relative.
4229 INSTALL=$ac_install_sh
4232 echo "$as_me:$LINENO: result: $INSTALL" >&5
4233 echo "${ECHO_T}$INSTALL" >&6
4235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4236 # It thinks the first close brace ends the variable substitution.
4237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4244 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4245 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4246 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4247 if test "${enable_maintainer_mode+set}" = set; then
4248 enableval="$enable_maintainer_mode"
4249 USE_MAINTAINER_MODE=$enableval
4251 USE_MAINTAINER_MODE=no
4253 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4254 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4257 if test $USE_MAINTAINER_MODE = yes; then
4258 MAINTAINER_MODE_TRUE=
4259 MAINTAINER_MODE_FALSE='#'
4261 MAINTAINER_MODE_TRUE='#'
4262 MAINTAINER_MODE_FALSE=
4265 MAINT=$MAINTAINER_MODE_TRUE
4271 # configure.host sets the following important variables
4272 # libgcj_cflags - host specific C compiler flags
4273 # libgcj_cxxflags - host specific C++ compiler flags
4274 # libgcj_javaflags - host specific Java compiler flags
4280 . ${srcdir}/configure.host
4282 LIBGCJ_CFLAGS="${libgcj_cflags}"
4283 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4284 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4285 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4291 # Only use libltdl for non-newlib builds.
4292 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4293 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4294 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4296 libname_spec='lib$name'
4304 shlibpath_overrides_runpath=unknown
4306 dynamic_linker="$host_os ld.so"
4307 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4308 if test "$GCC" = yes; then
4309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4310 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4311 # if the path contains ";" then we assume it to be the separator
4312 # otherwise default to the standard path separator (i.e. ":") - it is
4313 # assumed that no part of a normal pathname contains ";" but that should
4314 # okay in the real world where ";" in dirpaths is itself problematic.
4315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4322 need_lib_prefix=unknown
4323 hardcode_into_libs=no
4325 # when you set need_version to no, make sure it does not cause -set_version
4326 # flags to be left without arguments
4327 need_version=unknown
4332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4333 shlibpath_var=LIBPATH
4335 # AIX 3 has no versioning support, so we append a major version to the name.
4336 soname_spec='${libname}${release}${shared_ext}$major'
4343 hardcode_into_libs=yes
4344 if test "$host_cpu" = ia64; then
4345 # AIX 5 supports IA64
4346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4347 shlibpath_var=LD_LIBRARY_PATH
4349 # With GCC up to 2.95.x, collect2 would create an import file
4350 # for dependence libraries. The import file would start with
4351 # the line `#! .'. This would cause the generated library to
4352 # depend on `.', always an invalid library. This was fixed in
4353 # development snapshots of GCC prior to 3.0.
4355 aix4 | aix4.[01] | aix4.[01].*)
4356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4358 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4366 # soname into executable. Probably we can add versioning support to
4367 # collect2, so additional links can be useful in future.
4368 if test "$aix_use_runtimelinking" = yes; then
4369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4370 # instead of lib<name>.a to let people know that these are not
4371 # typical AIX shared libraries.
4372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4374 # We preserve .a as extension for shared libraries through AIX4.2
4375 # and later when we are not doing run time linking.
4376 library_names_spec='${libname}${release}.a $libname.a'
4377 soname_spec='${libname}${release}${shared_ext}$major'
4379 shlibpath_var=LIBPATH
4384 library_names_spec='$libname.ixlibrary $libname.a'
4385 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4386 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'
4390 library_names_spec='${libname}${shared_ext}'
4391 dynamic_linker="$host_os ld.so"
4392 shlibpath_var=LIBRARY_PATH
4398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4399 soname_spec='${libname}${release}${shared_ext}$major'
4400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4401 shlibpath_var=LD_LIBRARY_PATH
4402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4404 # the default ld.so.conf also contains /usr/contrib/lib and
4405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4406 # libtool to hard-code these into programs
4409 cygwin* | mingw* | pw32*)
4410 version_type=windows
4415 case $GCC,$host_os in
4416 yes,cygwin* | yes,mingw* | yes,pw32*)
4417 library_names_spec='$libname.dll.a'
4418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4419 postinstall_cmds='base_file=`basename \${file}`~
4420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4421 dldir=$destdir/`dirname \$dlpath`~
4422 test -d \$dldir || mkdir -p \$dldir~
4423 $install_prog $dir/$dlname \$dldir/$dlname'
4424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4425 dlpath=$dir/\$dldll~
4427 shlibpath_overrides_runpath=yes
4431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4433 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4436 # MinGW DLLs use traditional 'lib' prefix
4437 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4438 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4439 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4440 # It is most probably a Windows format PATH printed by
4441 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4442 # path with ; separators, and with drive letters. We can handle the
4443 # drive letters (cygwin fileutils understands them), so leave them,
4444 # especially as we might pass files found there to a mingw objdump,
4445 # which wouldn't understand a cygwinified path. Ahh.
4446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4452 # pw32 DLLs use 'pw' prefix rather than 'lib'
4453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4459 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4462 dynamic_linker='Win32 ld.exe'
4463 # FIXME: first we should search . and the directory the executable is in
4467 darwin* | rhapsody*)
4468 dynamic_linker="$host_os dyld"
4472 # FIXME: Relying on posixy $() will cause problems for
4473 # cross-compilation, but unfortunately the echo tests do not
4474 # yet detect zsh echo's removal of \ escapes.
4475 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4476 soname_spec='${libname}${release}${major}$shared_ext'
4477 shlibpath_overrides_runpath=yes
4478 shlibpath_var=DYLD_LIBRARY_PATH
4479 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4480 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4481 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4482 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"`
4484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4492 soname_spec='${libname}${release}${shared_ext}$major'
4493 shlibpath_var=LD_LIBRARY_PATH
4501 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4502 version_type=freebsd-$objformat
4503 case $version_type in
4505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4514 shlibpath_var=LD_LIBRARY_PATH
4517 shlibpath_overrides_runpath=yes
4519 freebsd3.01* | freebsdelf3.01*)
4520 shlibpath_overrides_runpath=yes
4521 hardcode_into_libs=yes
4524 shlibpath_overrides_runpath=no
4525 hardcode_into_libs=yes
4534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4535 soname_spec='${libname}${release}${shared_ext}$major'
4536 shlibpath_var=LD_LIBRARY_PATH
4537 hardcode_into_libs=yes
4540 hpux9* | hpux10* | hpux11*)
4541 # Give a soname corresponding to the major version so that dld.sl refuses to
4542 # link against other versions.
4549 hardcode_into_libs=yes
4550 dynamic_linker="$host_os dld.so"
4551 shlibpath_var=LD_LIBRARY_PATH
4552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
4556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4564 hardcode_into_libs=yes
4565 dynamic_linker="$host_os dld.sl"
4566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4569 soname_spec='${libname}${release}${shared_ext}$major'
4570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4575 dynamic_linker="$host_os dld.sl"
4576 shlibpath_var=SHLIB_PATH
4577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4579 soname_spec='${libname}${release}${shared_ext}$major'
4582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4583 postinstall_cmds='chmod 555 $lib'
4586 irix5* | irix6* | nonstopux*)
4588 nonstopux*) version_type=nonstopux ;;
4590 if test "$lt_cv_prog_gnu_ld" = yes; then
4598 soname_spec='${libname}${release}${shared_ext}$major'
4599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4601 irix5* | nonstopux*)
4605 case $LD in # libtool.m4 will add one of these switches to LD
4606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4607 libsuff= shlibsuff= libmagic=32-bit;;
4608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4609 libsuff=32 shlibsuff=N32 libmagic=N32;;
4610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4612 *) libsuff= shlibsuff= libmagic=never-match;;
4616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4617 shlibpath_overrides_runpath=no
4618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4620 hardcode_into_libs=yes
4623 # No shared lib support for Linux oldld, aout, or coff.
4624 linux*oldld* | linux*aout* | linux*coff*)
4628 # This must be Linux ELF.
4633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4634 soname_spec='${libname}${release}${shared_ext}$major'
4635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4636 shlibpath_var=LD_LIBRARY_PATH
4637 shlibpath_overrides_runpath=no
4638 # This implies no fast_install, which is unacceptable.
4639 # Some rework will be needed to allow for fast_install
4640 # before this can be enabled.
4641 hardcode_into_libs=yes
4643 # We used to test for /lib/ld.so.1 and disable shared libraries on
4644 # powerpc, because MkLinux only supported shared libraries with the
4645 # GNU dynamic linker. Since this was broken with cross compilers,
4646 # most powerpc-linux boxes support dynamic linking these days and
4647 # people can always --disable-shared, the test was removed, and we
4648 # assume the GNU/Linux dynamic linker is in use.
4649 dynamic_linker='GNU/Linux ld.so'
4656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4659 dynamic_linker='NetBSD (a.out) ld.so'
4661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4662 soname_spec='${libname}${release}${shared_ext}$major'
4663 dynamic_linker='NetBSD ld.elf_so'
4665 shlibpath_var=LD_LIBRARY_PATH
4666 shlibpath_overrides_runpath=yes
4667 hardcode_into_libs=yes
4672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4673 shlibpath_var=LD_LIBRARY_PATH
4674 shlibpath_overrides_runpath=yes
4681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4682 soname_spec='${libname}${release}${shared_ext}$major'
4683 shlibpath_var=LD_LIBRARY_PATH
4684 shlibpath_overrides_runpath=yes
4691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4693 shlibpath_var=LD_LIBRARY_PATH
4694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4696 openbsd2.[89] | openbsd2.[89].*)
4697 shlibpath_overrides_runpath=no
4700 shlibpath_overrides_runpath=yes
4704 shlibpath_overrides_runpath=yes
4709 libname_spec='$name'
4712 library_names_spec='$libname${shared_ext} $libname.a'
4713 dynamic_linker='OS/2 ld.exe'
4714 shlibpath_var=LIBPATH
4717 osf3* | osf4* | osf5*)
4721 soname_spec='${libname}${release}${shared_ext}$major'
4722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4723 shlibpath_var=LD_LIBRARY_PATH
4724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4730 soname_spec='${libname}${release}${shared_ext}$major'
4731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4732 shlibpath_var=LD_LIBRARY_PATH
4739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4740 soname_spec='${libname}${release}${shared_ext}$major'
4741 shlibpath_var=LD_LIBRARY_PATH
4742 shlibpath_overrides_runpath=yes
4743 hardcode_into_libs=yes
4744 # ldd complains unless libraries are executable
4745 postinstall_cmds='chmod +x $lib'
4750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4752 shlibpath_var=LD_LIBRARY_PATH
4753 shlibpath_overrides_runpath=yes
4754 if test "$with_gnu_ld" = yes; then
4760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4763 soname_spec='${libname}${release}${shared_ext}$major'
4764 shlibpath_var=LD_LIBRARY_PATH
4765 case $host_vendor in
4767 shlibpath_overrides_runpath=no
4769 export_dynamic_flag_spec='${wl}-Blargedynsym'
4770 runpath_var=LD_RUN_PATH
4778 shlibpath_overrides_runpath=no
4779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4785 if test -d /usr/nec ;then
4787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4788 soname_spec='$libname${shared_ext}.$major'
4789 shlibpath_var=LD_LIBRARY_PATH
4795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4796 soname_spec='${libname}${release}${shared_ext}$major'
4797 shlibpath_var=LD_LIBRARY_PATH
4804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4805 echo "${ECHO_T}$dynamic_linker" >&6
4806 test "$dynamic_linker" = no && can_build_shared=no
4809 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4810 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4811 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 libltdl_cv_shlibpath_var="$shlibpath_var"
4816 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4817 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4818 if test -n "$libltdl_cv_shlibpath_var"; then
4820 cat >>confdefs.h <<_ACEOF
4821 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4828 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4831 # See if the user has requested runtime debugging.
4832 LIBGCJDEBUG="disable"
4834 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4835 if test "${enable_libgcj_debug+set}" = set; then
4836 enableval="$enable_libgcj_debug"
4837 if test "$enable_libgcj_debug" = yes; then
4839 cat >>confdefs.h <<\_ACEOF
4843 LIBGCJDEBUG="enable"
4847 # Determine which AWT peer libraries to build
4848 # Check whether --enable-java-awt or --disable-java-awt was given.
4849 if test "${enable_java_awt+set}" = set; then
4850 enableval="$enable_java_awt"
4854 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4858 # The default toolkit to use is the first one specified.
4862 for peer in $peerlibs ; do
4865 if test "$no_x" = yes; then
4866 echo "*** xlib peers requested but no X library available" 1>&2
4870 if test -z "$TOOLKIT"; then
4871 TOOLKIT=gnu.awt.xlib.XToolkit
4876 if test "$no_x" = yes; then
4877 echo "*** gtk peers requested but no X library available" 1>&2
4881 if test -z "$TOOLKIT"; then
4882 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4887 if test "$no_x" = yes; then
4888 # Perhaps we should admit the possibility of embedded Qt.
4889 echo "*** Qt peers requested but no X library available" 1>&2
4893 if test -z "$TOOLKIT"; then
4894 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4905 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4912 if test "$use_xlib_awt" = yes; then
4921 # Create standard.omit based on decisions we just made.
4922 cp $srcdir/standard.omit.in standard.omit
4923 if test "$use_xlib_awt" != yes; then
4924 echo gnu/awt/xlib >> standard.omit
4925 echo gnu/gcj/xlib >> standard.omit
4928 if test -z "${with_multisubdir}"; then
4931 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4936 # Which gcj do we use?
4938 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4939 if test -n "${with_cross_host}"; then
4940 # We are being configured with a cross compiler. We can't
4941 # use ac_exeext, because that is for the target platform.
4944 case "${with_cross_host}" in
4946 cross_host_exeext=.exe
4949 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4950 if test x"$build_noncanonical" = x"$with_cross_host"; then
4951 # Ordinary cross (host!=target and host=build)
4954 # Canadian cross (host!=target and host!=build)
4961 # We are being configured with a native or crossed-native compiler
4962 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4963 if test x"$build" = x"$host"; then
4964 # True native build (host=target and host=build)
4967 # Crossed-native build (host=target and host!=build)
4974 case "${which_gcj}" in
4976 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4977 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4980 if test "x${with_newlib}" = "xyes"; then
4981 # FIXME (comment): Why is this needed?
4983 GCJ="${target_noncanonical}-gcj"
4985 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4987 GCJH='$(target_noncanonical)-gcjh'
4990 GCJ="gcj -B`${PWDCMD-pwd}`/"
4997 # Create it, so that compile/link tests don't fail
4998 test -f libgcj.spec || touch libgcj.spec
5002 # Set up to configure Classpath.
5003 # FIXME: no supported way to pass args in autoconf.
5004 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5005 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5006 ac_configure_args="$ac_configure_args --disable-load-library"
5007 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5008 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5009 dir1=`cd $srcdir && pwd`
5011 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5012 ac_configure_args="$ac_configure_args --disable-core-jni"
5013 ac_configure_args="$ac_configure_args --disable-examples"
5014 ac_configure_args="$ac_configure_args --with-glibj=build"
5015 if test "$plugin_enabled" != yes; then
5016 ac_configure_args="$ac_configure_args --disable-plugin"
5018 if test "$use_gtk_awt" != yes; then
5019 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5021 if test "$use_qt_awt" != yes; then
5022 ac_configure_args="$ac_configure_args --disable-qt-peer"
5024 # We need this as qt is disabled by default in classpath.
5025 ac_configure_args="$ac_configure_args --enable-qt-peer"
5028 # Only use libltdl for non-newlib builds.
5029 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5030 case $enable_ltdl_convenience in
5031 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5032 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5034 "") enable_ltdl_convenience=yes
5035 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5037 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5038 INCLTDL='-I${top_srcdir}/''libltdl'
5043 cat >>confdefs.h <<\_ACEOF
5047 # Sigh. Libtool's macro doesn't do the right thing.
5048 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5049 # FIXME: this is a hack.
5050 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5051 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5056 # Check whether --enable-shared or --disable-shared was given.
5057 if test "${enable_shared+set}" = set; then
5058 enableval="$enable_shared"
5059 p=${PACKAGE-default}
5061 yes) enable_shared=yes ;;
5062 no) enable_shared=no ;;
5065 # Look at the argument we got. We use all the common list separators.
5066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5067 for pkg in $enableval; do
5068 if test "X$pkg" = "X$p"; then
5078 # Check whether --enable-static or --disable-static was given.
5079 if test "${enable_static+set}" = set; then
5080 enableval="$enable_static"
5081 p=${PACKAGE-default}
5083 yes) enable_static=yes ;;
5084 no) enable_static=no ;;
5087 # Look at the argument we got. We use all the common list separators.
5088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5089 for pkg in $enableval; do
5090 if test "X$pkg" = "X$p"; then
5100 # Check whether --enable-fast-install or --disable-fast-install was given.
5101 if test "${enable_fast_install+set}" = set; then
5102 enableval="$enable_fast_install"
5103 p=${PACKAGE-default}
5105 yes) enable_fast_install=yes ;;
5106 no) enable_fast_install=no ;;
5108 enable_fast_install=no
5109 # Look at the argument we got. We use all the common list separators.
5110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5111 for pkg in $enableval; do
5112 if test "X$pkg" = "X$p"; then
5113 enable_fast_install=yes
5120 enable_fast_install=yes
5123 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5124 if test "${with_gnu_ld+set}" = set; then
5125 withval="$with_gnu_ld"
5126 test "$withval" = no || with_gnu_ld=yes
5131 if test "$GCC" = yes; then
5132 # Check if gcc -print-prog-name=ld gives a path.
5133 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5134 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5137 # gcc leaves a trailing carriage return which upsets mingw
5138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5143 # Accept absolute paths.
5144 [\\/]* | [A-Za-z]:[\\/]*)
5145 re_direlt='/[^/][^/]*/\.\./'
5146 # Canonicalize the path of ld
5147 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5149 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5151 test -z "$LD" && LD="$ac_prog"
5154 # If it fails, then pretend we aren't using GCC.
5158 # If it is relative, then search for the first ld in PATH.
5162 elif test "$with_gnu_ld" = yes; then
5163 echo "$as_me:$LINENO: checking for GNU ld" >&5
5164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5166 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5169 if test "${lt_cv_path_LD+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 if test -z "$LD"; then
5173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5174 for ac_dir in $PATH; do
5175 test -z "$ac_dir" && ac_dir=.
5176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5177 lt_cv_path_LD="$ac_dir/$ac_prog"
5178 # Check to see if the program is GNU ld. I'd rather use --version,
5179 # but apparently some GNU ld's only accept -v.
5180 # Break only if it was the GNU/non-GNU ld that we prefer.
5181 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5182 test "$with_gnu_ld" != no && break
5184 test "$with_gnu_ld" != yes && break
5190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5195 if test -n "$LD"; then
5196 echo "$as_me:$LINENO: result: $LD" >&5
5197 echo "${ECHO_T}$LD" >&6
5199 echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5204 { (exit 1); exit 1; }; }
5205 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5211 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5212 lt_cv_prog_gnu_ld=yes
5214 lt_cv_prog_gnu_ld=no
5217 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5219 with_gnu_ld=$lt_cv_prog_gnu_ld
5222 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5223 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5224 if test "${lt_cv_ld_reload_flag+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 lt_cv_ld_reload_flag='-r'
5229 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5230 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5231 reload_flag=$lt_cv_ld_reload_flag
5232 test -n "$reload_flag" && reload_flag=" $reload_flag"
5234 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5235 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5236 if test "${lt_cv_path_NM+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 if test -n "$NM"; then
5240 # Let the user override the test.
5243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5244 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5245 test -z "$ac_dir" && ac_dir=.
5246 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5247 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5248 # Check to see if the nm accepts a BSD-compat flag.
5249 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5250 # nm: unknown option "B" ignored
5251 # Tru64's nm complains that /dev/null is an invalid object file
5252 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5253 lt_cv_path_NM="$tmp_nm -B"
5255 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5256 lt_cv_path_NM="$tmp_nm -p"
5259 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5260 continue # so that we can try to find one that supports BSD flags
5265 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5270 echo "$as_me:$LINENO: result: $NM" >&5
5271 echo "${ECHO_T}$NM" >&6
5273 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5274 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5275 if test "${lt_cv_deplibs_check_method+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 lt_cv_file_magic_cmd='$MAGIC_CMD'
5279 lt_cv_file_magic_test_file=
5280 lt_cv_deplibs_check_method='unknown'
5281 # Need to set the preceding variable on all platforms that support
5282 # interlibrary dependencies.
5283 # 'none' -- dependencies not supported.
5284 # `unknown' -- same as none, but documents that we really don't know.
5285 # 'pass_all' -- all dependencies passed with no checks.
5286 # 'test_compile' -- check by making test program.
5287 # 'file_magic [regex]' -- check by looking for files in library path
5288 # which responds to the $file_magic_cmd with a given egrep regex.
5289 # If you have `file' or equivalent on your system and you're not sure
5290 # whether `pass_all' will *always* work, you probably want this one.
5294 lt_cv_deplibs_check_method=pass_all
5298 lt_cv_deplibs_check_method=pass_all
5302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5303 lt_cv_file_magic_cmd='/usr/bin/file -L'
5304 lt_cv_file_magic_test_file=/shlib/libc.so
5307 cygwin* | mingw* |pw32*)
5308 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5309 lt_cv_file_magic_cmd='$OBJDUMP -f'
5312 darwin* | rhapsody*)
5313 # this will be overwritten by pass_all, but leave it in just in case
5314 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5315 lt_cv_file_magic_cmd='/usr/bin/file -L'
5317 rhapsody* | darwin1.012)
5318 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5321 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5324 lt_cv_deplibs_check_method=pass_all
5327 freebsd* | kfreebsd*-gnu)
5328 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5331 # Not sure whether the presence of OpenBSD here was a mistake.
5332 # Let's accept both of them until this is cleared up.
5333 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5334 lt_cv_file_magic_cmd=/usr/bin/file
5335 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5339 lt_cv_deplibs_check_method=pass_all
5344 lt_cv_deplibs_check_method=pass_all
5350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5351 lt_cv_file_magic_cmd=/usr/bin/file
5352 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5355 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5356 lt_cv_file_magic_cmd=/usr/bin/file
5357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5365 # this will be overridden with pass_all, but let us keep it just in case
5366 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5370 *-32|*"-32 ") libmagic=32-bit;;
5371 *-n32|*"-n32 ") libmagic=N32;;
5372 *-64|*"-64 ") libmagic=64-bit;;
5373 *) libmagic=never-match;;
5375 # this will be overridden with pass_all, but let us keep it just in case
5376 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5379 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5380 lt_cv_deplibs_check_method=pass_all
5383 # This must be Linux ELF.
5385 lt_cv_deplibs_check_method=pass_all
5388 netbsd* | knetbsd*-gnu)
5389 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5398 lt_cv_file_magic_cmd=/usr/bin/file
5399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5402 osf3* | osf4* | osf5*)
5403 # this will be overridden with pass_all, but let us keep it just in case
5404 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5405 lt_cv_file_magic_test_file=/shlib/libc.so
5406 lt_cv_deplibs_check_method=pass_all
5410 lt_cv_deplibs_check_method=pass_all
5414 lt_cv_deplibs_check_method=pass_all
5415 lt_cv_file_magic_test_file=/lib/libc.so
5418 sysv5uw[78]* | sysv4*uw2*)
5419 lt_cv_deplibs_check_method=pass_all
5422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5423 case $host_vendor in
5425 lt_cv_deplibs_check_method=pass_all
5428 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]'
5429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5436 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5437 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5438 file_magic_cmd=$lt_cv_file_magic_cmd
5439 deplibs_check_method=$lt_cv_deplibs_check_method
5444 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5446 # find the maximum length of command line arguments
5447 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5448 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5449 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 # On DJGPP, this test can blow up pretty badly due to problems in libc
5458 # (any single argument exceeding 2000 bytes causes a buffer overrun
5459 # during glob expansion). Even if it were fixed, the result of this
5460 # check would be larger than it should be.
5461 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5465 # On Win9x/ME, this test blows up -- it succeeds, but takes
5466 # about 5 minutes as the teststring grows exponentially.
5467 # Worse, since 9x/ME are not pre-emptively multitasking,
5468 # you end up with a "frozen" computer, even though with patience
5469 # the test eventually succeeds (with a max line length of 256k).
5470 # Instead, let's just punt: use the minimum linelength reported by
5471 # all of the supported platforms: 8192 (on NT/2K/XP).
5472 lt_cv_sys_max_cmd_len=8192;
5476 # On AmigaOS with pdksh, this test takes hours, literally.
5477 # So we just punt and use a minimum line length of 8192.
5478 lt_cv_sys_max_cmd_len=8192;
5481 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5482 # This has been around since 386BSD, at least. Likely further.
5483 if test -x /sbin/sysctl; then
5484 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5485 elif test -x /usr/sbin/sysctl; then
5486 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5488 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5490 # And add a safety zone
5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5498 if test -n "$lt_cv_sys_max_cmd_len" ; then
5499 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5500 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5502 echo "$as_me:$LINENO: result: none" >&5
5503 echo "${ECHO_T}none" >&6
5507 # Only perform the check for file, if the check method requires it
5508 case $deplibs_check_method in
5510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5511 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5512 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5513 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5524 ac_save_MAGIC_CMD="$MAGIC_CMD"
5525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5526 ac_dummy="/usr/bin:$PATH"
5527 for ac_dir in $ac_dummy; do
5528 test -z "$ac_dir" && ac_dir=.
5529 if test -f $ac_dir/${ac_tool_prefix}file; then
5530 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5531 if test -n "$file_magic_test_file"; then
5532 case $deplibs_check_method in
5534 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5537 egrep "$file_magic_regex" > /dev/null; then
5542 *** Warning: the command libtool uses to detect shared libraries,
5543 *** $file_magic_cmd, produces output that libtool cannot recognize.
5544 *** The result is that libtool may fail to recognize shared libraries
5545 *** as such. This will affect the creation of libtool libraries that
5546 *** depend on shared libraries, but programs linked with such libtool
5547 *** libraries will work regardless of this problem. Nevertheless, you
5548 *** may want to report the problem to your system manager and/or to
5549 *** bug-libtool@gnu.org
5559 MAGIC_CMD="$ac_save_MAGIC_CMD"
5564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5565 if test -n "$MAGIC_CMD"; then
5566 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5567 echo "${ECHO_T}$MAGIC_CMD" >&6
5569 echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5573 if test -z "$lt_cv_path_MAGIC_CMD"; then
5574 if test -n "$ac_tool_prefix"; then
5575 echo "$as_me:$LINENO: checking for file" >&5
5576 echo $ECHO_N "checking for file... $ECHO_C" >&6
5577 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5588 ac_save_MAGIC_CMD="$MAGIC_CMD"
5589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5590 ac_dummy="/usr/bin:$PATH"
5591 for ac_dir in $ac_dummy; do
5592 test -z "$ac_dir" && ac_dir=.
5593 if test -f $ac_dir/file; then
5594 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5595 if test -n "$file_magic_test_file"; then
5596 case $deplibs_check_method in
5598 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5601 egrep "$file_magic_regex" > /dev/null; then
5606 *** Warning: the command libtool uses to detect shared libraries,
5607 *** $file_magic_cmd, produces output that libtool cannot recognize.
5608 *** The result is that libtool may fail to recognize shared libraries
5609 *** as such. This will affect the creation of libtool libraries that
5610 *** depend on shared libraries, but programs linked with such libtool
5611 *** libraries will work regardless of this problem. Nevertheless, you
5612 *** may want to report the problem to your system manager and/or to
5613 *** bug-libtool@gnu.org
5623 MAGIC_CMD="$ac_save_MAGIC_CMD"
5628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5629 if test -n "$MAGIC_CMD"; then
5630 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5631 echo "${ECHO_T}$MAGIC_CMD" >&6
5633 echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6
5646 if test -n "$ac_tool_prefix"; then
5647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_RANLIB+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 if test -n "$RANLIB"; then
5655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 RANLIB=$ac_cv_prog_RANLIB
5674 if test -n "$RANLIB"; then
5675 echo "$as_me:$LINENO: result: $RANLIB" >&5
5676 echo "${ECHO_T}$RANLIB" >&6
5678 echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_RANLIB="ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5721 RANLIB=$ac_ct_RANLIB
5723 RANLIB="$ac_cv_prog_RANLIB"
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_STRIP+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test -n "$STRIP"; then
5735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 STRIP=$ac_cv_prog_STRIP
5754 if test -n "$STRIP"; then
5755 echo "$as_me:$LINENO: result: $STRIP" >&5
5756 echo "${ECHO_T}$STRIP" >&6
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5763 if test -z "$ac_cv_prog_STRIP"; then
5765 # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 if test -n "$ac_ct_STRIP"; then
5773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_STRIP="strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795 echo "${ECHO_T}$ac_ct_STRIP" >&6
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5803 STRIP="$ac_cv_prog_STRIP"
5807 # Check for any special flags to pass to ltconfig.
5808 libtool_flags="--cache-file=$cache_file"
5809 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5810 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5811 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5812 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5813 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5816 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5817 if test "${enable_libtool_lock+set}" = set; then
5818 enableval="$enable_libtool_lock"
5821 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5822 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5825 # Check whether --with-pic or --without-pic was given.
5826 if test "${with_pic+set}" = set; then
5832 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5833 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5835 # Some flags need to be propagated to the compiler or linker for good
5839 # Find out which ABI we are using.
5840 echo '#line 5840 "configure"' > conftest.$ac_ext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; then
5846 if test "$lt_cv_prog_gnu_ld" = yes; then
5847 case `/usr/bin/file conftest.$ac_objext` in
5849 LD="${LD-ld} -melf32bsmip"
5852 LD="${LD-ld} -melf32bmipn32"
5855 LD="${LD-ld} -melf64bmip"
5859 case `/usr/bin/file conftest.$ac_objext` in
5876 # Find out which ABI we are using.
5877 echo 'int i;' > conftest.$ac_ext
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; then
5883 case "`/usr/bin/file conftest.o`" in
5895 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5896 # Find out which ABI we are using.
5897 echo 'int i;' > conftest.$ac_ext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899 (eval $ac_compile) 2>&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; then
5903 case "`/usr/bin/file conftest.o`" in
5907 LD="${LD-ld} -m elf_i386"
5909 ppc64-*linux*|powerpc64-*linux*)
5910 LD="${LD-ld} -m elf32ppclinux"
5913 LD="${LD-ld} -m elf_s390"
5916 LD="${LD-ld} -m elf32_sparc"
5923 LD="${LD-ld} -m elf_x86_64"
5925 ppc*-*linux*|powerpc*-*linux*)
5926 LD="${LD-ld} -m elf64ppc"
5929 LD="${LD-ld} -m elf64_s390"
5932 LD="${LD-ld} -m elf64_sparc"
5942 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5943 SAVE_CFLAGS="$CFLAGS"
5944 CFLAGS="$CFLAGS -belf"
5945 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5946 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5947 if test "${lt_cv_cc_needs_belf+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 ac_cpp='$CPP $CPPFLAGS'
5954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958 if test x$gcc_no_link = xyes; then
5959 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5961 { (exit 1); exit 1; }; }
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest$ac_exeext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 lt_cv_cc_needs_belf=yes
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 lt_cv_cc_needs_belf=no
6007 rm -f conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6017 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6018 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6019 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6020 CFLAGS="$SAVE_CFLAGS"
6028 # Save cache, so that ltconfig can load it
6029 cat >confcache <<\_ACEOF
6030 # This file is a shell script that caches the results of configure
6031 # tests run on this system so they can be shared between configure
6032 # scripts and configure runs, see configure's option --config-cache.
6033 # It is not useful on other systems. If it contains results you don't
6034 # want to keep, you may remove or edit it.
6036 # config.status only pays attention to the cache file if you give it
6037 # the --recheck option to rerun configure.
6039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6045 # The following way of writing the cache mishandles newlines in values,
6046 # but we know of no workaround that is simple, portable, and efficient.
6047 # So, don't put newlines in cache variables' values.
6048 # Ultrix sh set writes to stderr and can't be redirected directly,
6049 # and sets the high bit in the cache file unless we assign to the vars.
6052 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6054 # `set' does not quote correctly, so add quotes (double-quote
6055 # substitution turns \\\\ into \\, and sed turns \\ into \).
6058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6061 # `set' quotes correctly as required by POSIX, so do not add quotes.
6063 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6072 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6074 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6075 if test -w $cache_file; then
6076 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6077 cat confcache >$cache_file
6079 echo "not updating unwritable cache $cache_file"
6084 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6085 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6086 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6087 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6088 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6089 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6090 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6091 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6092 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6093 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6094 echo "$as_me: error: libtool configure failed" >&2;}
6095 { (exit 1); exit 1; }; }
6097 # Reload cache, that may have been modified by ltconfig
6098 if test -r "$cache_file"; then
6099 # Some versions of bash will fail to source /dev/null (special
6100 # files actually), so we avoid doing that.
6101 if test -f "$cache_file"; then
6102 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6103 echo "$as_me: loading cache $cache_file" >&6;}
6105 [\\/]* | ?:[\\/]* ) . $cache_file;;
6106 *) . ./$cache_file;;
6110 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6111 echo "$as_me: creating cache $cache_file" >&6;}
6116 # This can be used to rebuild libtool when needed
6117 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6119 # Always use our own libtool.
6120 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6122 # Redirect the config.log output again, so that the ltconfig log is not
6123 # clobbered by the next message.
6124 exec 5>>./config.log
6127 ac_cpp='$CXXCPP $CPPFLAGS'
6128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6131 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6132 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6133 if test -z "$CXXCPP"; then
6134 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 # Double quotes because CXXCPP needs to be expanded
6138 for CXXCPP in "$CXX -E" "/lib/cpp"
6141 for ac_cxx_preproc_warn_flag in '' yes
6143 # Use a header file that comes with gcc, so configuring glibc
6144 # with a fresh cross-compiler works.
6145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6146 # <limits.h> exists even on freestanding compilers.
6147 # On the NeXT, cc -E runs the code through the compiler's parser,
6148 # not just through cpp. "Syntax error" is here to catch this case.
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6156 # include <limits.h>
6158 # include <assert.h>
6162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6165 grep -v '^ *+' conftest.er1 >conftest.err
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } >/dev/null; then
6170 if test -s conftest.err; then
6171 ac_cpp_err=$ac_cxx_preproc_warn_flag
6172 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6179 if test -z "$ac_cpp_err"; then
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 # Broken: fails on valid input.
6188 rm -f conftest.err conftest.$ac_ext
6190 # OK, works on sane cases. Now check whether non-existent headers
6191 # can be detected and how.
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 #include <ac_nonexistent.h>
6200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6203 grep -v '^ *+' conftest.er1 >conftest.err
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } >/dev/null; then
6208 if test -s conftest.err; then
6209 ac_cpp_err=$ac_cxx_preproc_warn_flag
6210 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6217 if test -z "$ac_cpp_err"; then
6218 # Broken: success on invalid input.
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 # Passes both tests.
6228 rm -f conftest.err conftest.$ac_ext
6231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6232 rm -f conftest.err conftest.$ac_ext
6233 if $ac_preproc_ok; then
6238 ac_cv_prog_CXXCPP=$CXXCPP
6241 CXXCPP=$ac_cv_prog_CXXCPP
6243 ac_cv_prog_CXXCPP=$CXXCPP
6245 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6246 echo "${ECHO_T}$CXXCPP" >&6
6248 for ac_cxx_preproc_warn_flag in '' yes
6250 # Use a header file that comes with gcc, so configuring glibc
6251 # with a fresh cross-compiler works.
6252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253 # <limits.h> exists even on freestanding compilers.
6254 # On the NeXT, cc -E runs the code through the compiler's parser,
6255 # not just through cpp. "Syntax error" is here to catch this case.
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6263 # include <limits.h>
6265 # include <assert.h>
6269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6272 grep -v '^ *+' conftest.er1 >conftest.err
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } >/dev/null; then
6277 if test -s conftest.err; then
6278 ac_cpp_err=$ac_cxx_preproc_warn_flag
6279 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6286 if test -z "$ac_cpp_err"; then
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6292 # Broken: fails on valid input.
6295 rm -f conftest.err conftest.$ac_ext
6297 # OK, works on sane cases. Now check whether non-existent headers
6298 # can be detected and how.
6299 cat >conftest.$ac_ext <<_ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <ac_nonexistent.h>
6307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6310 grep -v '^ *+' conftest.er1 >conftest.err
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null; then
6315 if test -s conftest.err; then
6316 ac_cpp_err=$ac_cxx_preproc_warn_flag
6317 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6324 if test -z "$ac_cpp_err"; then
6325 # Broken: success on invalid input.
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 # Passes both tests.
6335 rm -f conftest.err conftest.$ac_ext
6338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6339 rm -f conftest.err conftest.$ac_ext
6340 if $ac_preproc_ok; then
6343 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6344 See \`config.log' for more details." >&5
6345 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6346 See \`config.log' for more details." >&2;}
6347 { (exit 1); exit 1; }; }
6351 ac_cpp='$CPP $CPPFLAGS'
6352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6360 lt_save_CFLAGS="$CFLAGS"
6361 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6362 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6363 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6364 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6365 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6366 deplibs_check_method="$deplibs_check_method" \
6367 file_magic_cmd="$file_magic_cmd" \
6368 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6369 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6370 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6371 echo "$as_me: error: libtool tag configuration failed" >&2;}
6372 { (exit 1); exit 1; }; }
6374 CFLAGS="$lt_save_CFLAGS"
6376 # Redirect the config.log output again, so that the ltconfig log is not
6377 # clobbered by the next message.
6378 exec 5>>./config.log
6386 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6388 # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6392 if test "${ac_cv_prog_GCJ+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 if test -n "$GCJ"; then
6396 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_GCJ="$ac_prog"
6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 if test -n "$GCJ"; then
6416 echo "$as_me:$LINENO: result: $GCJ" >&5
6417 echo "${ECHO_T}$GCJ" >&6
6419 echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6
6423 test -n "$GCJ" && break
6425 test -n "$GCJ" || GCJ="gcj"
6427 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6428 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6429 { (exit 1); exit 1; }; }
6430 if test "x${GCJFLAGS-unset}" = xunset; then
6435 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6437 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6438 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6439 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6443 # We make a subdir and do the tests there. Otherwise we can end up
6444 # making bogus files that we don't know about and never remove. For
6445 # instance it was reported that on HP-UX the gcc test will end up
6446 # making a dummy file named `D' -- because `-MD' means `put the output
6449 # Copy depcomp to subdir because otherwise we won't find it if we're
6450 # using a relative directory.
6451 cp "$am_depcomp" conftest.dir
6453 # We will build objects and dependencies in a subdirectory because
6454 # it helps to detect inapplicable dependency modes. For instance
6455 # both Tru64's cc and ICC support -MD to output dependencies as a
6456 # side effect of compilation, but ICC will put the dependencies in
6457 # the current directory while Tru64 will put them in the object
6461 am_cv_GCJ_dependencies_compiler_type=none
6462 if test "$am_compiler_list" = ""; then
6463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6465 for depmode in $am_compiler_list; do
6466 # Setup a source with many dependencies, because some compilers
6467 # like to wrap large dependency lists on column 80 (with \), and
6468 # we should not choose a depcomp mode which is confused by this.
6470 # We need to recreate these files for each test, as the compiler may
6471 # overwrite some of them when testing with obscure command lines.
6472 # This happens at least with the AIX C compiler.
6474 for i in 1 2 3 4 5 6; do
6475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6476 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6477 # Solaris 8's {/usr,}/bin/sh.
6478 touch sub/conftst$i.h
6480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6484 # after this tag, mechanisms are not by side-effect, so they'll
6485 # only be used when explicitly requested
6486 if test "x$enable_dependency_tracking" = xyes; then
6494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6495 # mode. It turns out that the SunPro C++ compiler does not properly
6496 # handle `-M -o', and we need to detect this.
6497 if depmode=$depmode \
6498 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6500 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6501 >/dev/null 2>conftest.err &&
6502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6503 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6505 # icc doesn't choke on unknown options, it will just issue warnings
6506 # or remarks (even with -Werror). So we grep stderr for any message
6507 # that says an option was ignored or not supported.
6508 # When given -MP, icc 7.0 and 7.1 complain thusly:
6509 # icc: Command line warning: ignoring option '-M'; no argument required
6510 # The diagnosis changed in icc 8.0:
6511 # icc: Command line remark: option '-MP' not supported
6512 if (grep 'ignoring option' conftest.err ||
6513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6514 am_cv_GCJ_dependencies_compiler_type=$depmode
6523 am_cv_GCJ_dependencies_compiler_type=none
6527 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6528 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6529 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6534 test "x$enable_dependency_tracking" != xno \
6535 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6536 am__fastdepGCJ_TRUE=
6537 am__fastdepGCJ_FALSE='#'
6539 am__fastdepGCJ_TRUE='#'
6540 am__fastdepGCJ_FALSE=
6546 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6548 lt_save_CFLAGS="$CFLAGS"
6549 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6550 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6551 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6552 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6553 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6554 deplibs_check_method="$deplibs_check_method" \
6555 file_magic_cmd="$file_magic_cmd" \
6556 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6557 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6558 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6559 echo "$as_me: error: libtool tag configuration failed" >&2;}
6560 { (exit 1); exit 1; }; }
6562 CFLAGS="$lt_save_CFLAGS"
6564 # Redirect the config.log output again, so that the ltconfig log is not
6565 # clobbered by the next message.
6566 exec 5>>./config.log
6570 if test "x$CC" != xcc; then
6571 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6572 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6574 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6575 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6577 set dummy $CC; ac_cc=`echo $2 |
6578 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6579 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6597 # Make sure it works both with $CC and with simple cc.
6598 # We do the test twice because some compilers refuse to overwrite an
6599 # existing .o file with -o, though they will create one.
6600 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6601 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); };
6612 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6613 if test "x$CC" != xcc; then
6614 # Test first that cc exists at all.
6615 if { ac_try='cc -c conftest.$ac_ext >&5'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6622 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); };
6636 # cc exists but doesn't like -o.
6637 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6647 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6648 echo "$as_me:$LINENO: result: yes" >&5
6649 echo "${ECHO_T}yes" >&6
6651 echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6654 cat >>confdefs.h <<\_ACEOF
6655 #define NO_MINUS_C_MINUS_O 1
6660 # FIXME: we rely on the cache variable name because
6661 # there is no other way.
6663 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6664 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6665 # Losing compiler, so override with the script.
6666 # FIXME: It is wrong to rewrite CC.
6667 # But if we don't then we get into trouble of one sort or another.
6668 # A longer-term fix would be to have automake use am__CC in this case,
6669 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6670 CC="$am_aux_dir/compile $CC"
6676 subdirs="$subdirs classpath libltdl"
6679 # The -no-testsuite modules omit the test subdir.
6682 if test -d $srcdir/testsuite; then
6684 TESTSUBDIR_FALSE='#'
6691 # Should the runtime set system properties by examining the
6692 # environment variable GCJ_PROPERTIES?
6693 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6694 if test "${enable_getenv_properties+set}" = set; then
6695 enableval="$enable_getenv_properties"
6699 # Whether GCJ_PROPERTIES is used depends on the target.
6700 if test -z "$enable_getenv_properties"; then
6701 enable_getenv_properties=${enable_getenv_properties_default-yes}
6703 if test "$enable_getenv_properties" = no; then
6705 cat >>confdefs.h <<\_ACEOF
6706 #define DISABLE_GETENV_PROPERTIES 1
6711 # Whether we should use arguments to main()
6712 if test -z "$enable_main_args"; then
6713 enable_main_args=${enable_main_args_default-yes}
6715 if test "$enable_main_args" = no; then
6717 cat >>confdefs.h <<\_ACEOF
6718 #define DISABLE_MAIN_ARGS 1
6724 # Should we use hashtable-based synchronization?
6725 # Currently works only for Linux X86/ia64
6726 # Typically faster and more space-efficient
6727 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6728 if test "${enable_hash_synchronization+set}" = set; then
6729 enableval="$enable_hash_synchronization"
6733 if test -z "$enable_hash_synchronization"; then
6734 enable_hash_synchronization=$enable_hash_synchronization_default
6738 # Check whether --with-java-home or --without-java-home was given.
6739 if test "${with_java_home+set}" = set; then
6740 withval="$with_java_home"
6741 JAVA_HOME="${withval}"
6747 if test ! -z "$JAVA_HOME"; then
6749 JAVA_HOME_SET_FALSE='#'
6751 JAVA_HOME_SET_TRUE='#'
6752 JAVA_HOME_SET_FALSE=
6757 # What is the native OS API for MinGW?
6759 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6760 if test "${with_win32_nlsapi+set}" = set; then
6761 withval="$with_win32_nlsapi"
6762 case "${withval}" in
6763 ansi) with_win32_nlsapi=ansi ;;
6764 unicows) with_win32_nlsapi=unicows ;;
6765 unicode) with_win32_nlsapi=unicode ;;
6766 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6767 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6768 { (exit 1); exit 1; }; } ;;
6771 with_win32_nlsapi=ansi
6774 case "${with_win32_nlsapi}" in
6777 cat >>confdefs.h <<\_ACEOF
6778 #define MINGW_LIBGCJ_UNICODE 1
6784 # configure.host sets slow_pthread_self if the synchronization code should
6785 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6786 if test "${slow_pthread_self}" = "yes"; then
6788 cat >>confdefs.h <<\_ACEOF
6789 #define SLOW_PTHREAD_SELF 1
6794 # Check for gc debugging. This option is handled both here and in the GC.
6795 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6796 if test "${enable_gc_debug+set}" = set; then
6797 enableval="$enable_gc_debug"
6798 if test "$enable_gc_debug" = "yes"; then
6800 cat >>confdefs.h <<\_ACEOF
6801 #define LIBGCJ_GC_DEBUG 1
6807 # See if the user has the interpreter included.
6808 # Check whether --enable-interpreter or --disable-interpreter was given.
6809 if test "${enable_interpreter+set}" = set; then
6810 enableval="$enable_interpreter"
6811 if test "$enable_interpreter" = yes; then
6812 # This can also be set in configure.host.
6813 libgcj_interpreter=yes
6814 elif test "$enable_interpreter" = no; then
6815 libgcj_interpreter=no
6819 if test "$libgcj_interpreter" = yes; then
6821 cat >>confdefs.h <<\_ACEOF
6822 #define INTERPRETER 1
6826 INTERPRETER="$libgcj_interpreter"
6829 echo "$as_me:$LINENO: checking for exception model to use" >&5
6830 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6832 ac_cpp='$CXXCPP $CPPFLAGS'
6833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6837 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6838 if test "${enable_sjlj_exceptions+set}" = set; then
6839 enableval="$enable_sjlj_exceptions"
6842 cat > conftest.$ac_ext << EOF
6843 #line 6843 "configure"
6852 old_CXXFLAGS="$CXXFLAGS"
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; then
6859 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6860 enable_sjlj_exceptions=yes
6861 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6862 enable_sjlj_exceptions=no
6865 CXXFLAGS="$old_CXXFLAGS"
6868 if test x$enable_sjlj_exceptions = xyes; then
6870 cat >>confdefs.h <<\_ACEOF
6871 #define SJLJ_EXCEPTIONS 1
6874 ac_exception_model_name=sjlj
6875 elif test x$enable_sjlj_exceptions = xno; then
6876 ac_exception_model_name="call frame"
6878 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6879 echo "$as_me: error: unable to detect exception model" >&2;}
6880 { (exit 1); exit 1; }; }
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6889 echo "${ECHO_T}$ac_exception_model_name" >&6
6891 # If we are non using SJLJ exceptions, and this host does not have support
6892 # for unwinding from a signal handler, enable checked dereferences and divides.
6893 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6894 CHECKREFSPEC=-fcheck-references
6895 DIVIDESPEC=-fuse-divide-subroutine
6899 # See if the user wants to disable java.net. This is the mildly
6900 # ugly way that we admit that target-side configuration sucks.
6901 # Check whether --enable-java-net or --disable-java-net was given.
6902 if test "${enable_java_net+set}" = set; then
6903 enableval="$enable_java_net"
6907 # Whether java.net is built by default can depend on the target.
6908 if test -z "$enable_java_net"; then
6909 enable_java_net=${enable_java_net_default-yes}
6911 if test "$enable_java_net" = no; then
6913 cat >>confdefs.h <<\_ACEOF
6914 #define DISABLE_JAVA_NET 1
6919 # See if the user wants to configure without libffi. Some
6920 # architectures don't support it, and default values are set in
6923 # Check whether --with-libffi or --without-libffi was given.
6924 if test "${with_libffi+set}" = set; then
6925 withval="$with_libffi"
6928 with_libffi=${with_libffi_default-yes}
6933 if test "$with_libffi" != no; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define USE_LIBFFI 1
6939 LIBFFI=../libffi/libffi_convenience.la
6940 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6945 # See if the user wants to disable JVMPI support.
6946 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6947 if test "${enable_jvmpi+set}" = set; then
6948 enableval="$enable_jvmpi"
6952 if test "$enable_jvmpi" != no; then
6954 cat >>confdefs.h <<\_ACEOF
6955 #define ENABLE_JVMPI 1
6960 # If the target is an eCos system, use the appropriate eCos
6962 # FIXME: this should not be a local option but a global target
6963 # system; at present there is no eCos target.
6964 TARGET_ECOS=${PROCESS-"no"}
6966 # Check whether --with-ecos or --without-ecos was given.
6967 if test "${with_ecos+set}" = set; then
6968 withval="$with_ecos"
6969 TARGET_ECOS="$with_ecos"
6973 PLATFORM_INNER_NAT_HDRS=
6974 case "$TARGET_ECOS" in
6981 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6982 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6983 LD_PROG=`$CC --print-prog-name=ld`
6984 LD_VERSION=`$LD_PROG --version`
6985 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6986 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6987 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6990 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6994 if test "x$LD_OK" != x; then
6995 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6996 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6998 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6999 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7000 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7001 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7003 cat >>confdefs.h <<\_ACEOF
7004 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7013 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7021 cat >>confdefs.h <<\_ACEOF
7029 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7033 ac_cpp='$CPP $CPPFLAGS'
7034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7039 # On Suns, sometimes $CPP names a directory.
7040 if test -n "$CPP" && test -d "$CPP"; then
7043 if test -z "$CPP"; then
7044 if test "${ac_cv_prog_CPP+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 # Double quotes because CPP needs to be expanded
7048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7051 for ac_c_preproc_warn_flag in '' yes
7053 # Use a header file that comes with gcc, so configuring glibc
7054 # with a fresh cross-compiler works.
7055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7056 # <limits.h> exists even on freestanding compilers.
7057 # On the NeXT, cc -E runs the code through the compiler's parser,
7058 # not just through cpp. "Syntax error" is here to catch this case.
7059 cat >conftest.$ac_ext <<_ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7066 # include <limits.h>
7068 # include <assert.h>
7072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7075 grep -v '^ *+' conftest.er1 >conftest.err
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } >/dev/null; then
7080 if test -s conftest.err; then
7081 ac_cpp_err=$ac_c_preproc_warn_flag
7082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7089 if test -z "$ac_cpp_err"; then
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7095 # Broken: fails on valid input.
7098 rm -f conftest.err conftest.$ac_ext
7100 # OK, works on sane cases. Now check whether non-existent headers
7101 # can be detected and how.
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <ac_nonexistent.h>
7110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null; then
7118 if test -s conftest.err; then
7119 ac_cpp_err=$ac_c_preproc_warn_flag
7120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7127 if test -z "$ac_cpp_err"; then
7128 # Broken: success on invalid input.
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 # Passes both tests.
7138 rm -f conftest.err conftest.$ac_ext
7141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7142 rm -f conftest.err conftest.$ac_ext
7143 if $ac_preproc_ok; then
7155 echo "$as_me:$LINENO: result: $CPP" >&5
7156 echo "${ECHO_T}$CPP" >&6
7158 for ac_c_preproc_warn_flag in '' yes
7160 # Use a header file that comes with gcc, so configuring glibc
7161 # with a fresh cross-compiler works.
7162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7163 # <limits.h> exists even on freestanding compilers.
7164 # On the NeXT, cc -E runs the code through the compiler's parser,
7165 # not just through cpp. "Syntax error" is here to catch this case.
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7173 # include <limits.h>
7175 # include <assert.h>
7179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } >/dev/null; then
7187 if test -s conftest.err; then
7188 ac_cpp_err=$ac_c_preproc_warn_flag
7189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7196 if test -z "$ac_cpp_err"; then
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 # Broken: fails on valid input.
7205 rm -f conftest.err conftest.$ac_ext
7207 # OK, works on sane cases. Now check whether non-existent headers
7208 # can be detected and how.
7209 cat >conftest.$ac_ext <<_ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 #include <ac_nonexistent.h>
7217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7220 grep -v '^ *+' conftest.er1 >conftest.err
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } >/dev/null; then
7225 if test -s conftest.err; then
7226 ac_cpp_err=$ac_c_preproc_warn_flag
7227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7234 if test -z "$ac_cpp_err"; then
7235 # Broken: success on invalid input.
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 # Passes both tests.
7245 rm -f conftest.err conftest.$ac_ext
7248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7249 rm -f conftest.err conftest.$ac_ext
7250 if $ac_preproc_ok; then
7253 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7254 See \`config.log' for more details." >&5
7255 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7256 See \`config.log' for more details." >&2;}
7257 { (exit 1); exit 1; }; }
7261 ac_cpp='$CPP $CPPFLAGS'
7262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267 echo "$as_me:$LINENO: checking for egrep" >&5
7268 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7269 if test "${ac_cv_prog_egrep+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7273 then ac_cv_prog_egrep='grep -E'
7274 else ac_cv_prog_egrep='egrep'
7277 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7278 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7279 EGREP=$ac_cv_prog_egrep
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7292 $EGREP "uint32_t" >/dev/null 2>&1; then
7294 cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_INT32_DEFINED 1
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <inttypes.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 <sys/types.h>
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330 $EGREP "u_int32_t" >/dev/null 2>&1; then
7332 cat >>confdefs.h <<\_ACEOF
7333 #define HAVE_BSD_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/config.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
7361 if test "$PLATFORM" = Win32; then
7362 USING_WIN32_PLATFORM_TRUE=
7363 USING_WIN32_PLATFORM_FALSE='#'
7365 USING_WIN32_PLATFORM_TRUE='#'
7366 USING_WIN32_PLATFORM_FALSE=
7371 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7372 USING_POSIX_PLATFORM_TRUE=
7373 USING_POSIX_PLATFORM_FALSE='#'
7375 USING_POSIX_PLATFORM_TRUE='#'
7376 USING_POSIX_PLATFORM_FALSE=
7381 *-darwin*) DARWIN_CRT=true ;;
7382 *) DARWIN_CRT=false ;;
7386 if $DARWIN_CRT; then
7387 USING_DARWIN_CRT_TRUE=
7388 USING_DARWIN_CRT_FALSE='#'
7390 USING_DARWIN_CRT_TRUE='#'
7391 USING_DARWIN_CRT_FALSE=
7395 # These may not be defined in a non-ANS conformant embedded system.
7396 # FIXME: Should these case a runtime exception in that case?
7397 cat >conftest.$ac_ext <<_ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7407 $EGREP "mktime" >/dev/null 2>&1; then
7409 cat >>confdefs.h <<\_ACEOF
7410 #define HAVE_MKTIME 1
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 "localtime" >/dev/null 2>&1; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_LOCALTIME 1
7436 # Create the subdirectory for natFile.cc, or the attempt
7437 # to create the link will fail.
7438 test -d java || mkdir java
7439 test -d java/io || mkdir java/io
7440 test -d gnu || mkdir gnu
7441 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7444 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7445 test -d java/lang || mkdir java/lang
7446 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7448 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7451 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7452 test -d java/net || mkdir java/net
7453 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7455 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7458 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7459 test -d gnu/java || mkdir gnu/java
7460 test -d gnu/java/net || mkdir gnu/java/net
7461 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7463 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7466 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7467 test -d gnu/java/nio || mkdir gnu/java/nio
7468 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7470 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7472 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7473 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7478 SYSTEMSPEC="-lgdi32 -lws2_32"
7479 if test "${with_win32_nlsapi}" = "unicows"; then
7480 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7489 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7493 # Check whether --with-system-zlib or --without-system-zlib was given.
7494 if test "${with_system_zlib+set}" = set; then
7495 withval="$with_system_zlib"
7503 echo "$as_me:$LINENO: checking for X" >&5
7504 echo $ECHO_N "checking for X... $ECHO_C" >&6
7507 # Check whether --with-x or --without-x was given.
7508 if test "${with_x+set}" = set; then
7512 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7513 if test "x$with_x" = xno; then
7514 # The user explicitly disabled X.
7517 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7518 # Both variables are already set.
7521 if test "${ac_cv_have_x+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 # One or both of the vars are not set, and there is no cached value.
7525 ac_x_includes=no ac_x_libraries=no
7527 if mkdir conftest.dir; then
7529 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7530 cat >Imakefile <<'_ACEOF'
7532 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7534 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7535 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7536 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7537 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7538 for ac_extension in a so sl; do
7539 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7540 test -f $ac_im_libdir/libX11.$ac_extension; then
7541 ac_im_usrlibdir=$ac_im_libdir; break
7544 # Screen out bogus values from the imake configuration. They are
7545 # bogus both because they are the default anyway, and because
7546 # using them would break gcc on systems where it needs fixed includes.
7547 case $ac_im_incroot in
7549 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7551 case $ac_im_usrlibdir in
7553 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7560 # Standard set of common directories for X headers.
7561 # Check X11 before X11Rn because it is often a symlink to the current release.
7573 /usr/local/X11/include
7574 /usr/local/X11R6/include
7575 /usr/local/X11R5/include
7576 /usr/local/X11R4/include
7578 /usr/local/include/X11
7579 /usr/local/include/X11R6
7580 /usr/local/include/X11R5
7581 /usr/local/include/X11R4
7585 /usr/XFree86/include/X11
7589 /usr/unsupported/include
7591 /usr/local/x11r5/include
7592 /usr/lpp/Xamples/include
7594 /usr/openwin/include
7595 /usr/openwin/share/include'
7597 if test "$ac_x_includes" = no; then
7598 # Guess where to find include files, by looking for Intrinsic.h.
7599 # First, try using that file with no special directory specified.
7600 cat >conftest.$ac_ext <<_ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 #include <X11/Intrinsic.h>
7608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7611 grep -v '^ *+' conftest.er1 >conftest.err
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } >/dev/null; then
7616 if test -s conftest.err; then
7617 ac_cpp_err=$ac_c_preproc_warn_flag
7618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7625 if test -z "$ac_cpp_err"; then
7626 # We can compile using X headers with no special include directory.
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7632 for ac_dir in $ac_x_header_dirs; do
7633 if test -r "$ac_dir/X11/Intrinsic.h"; then
7634 ac_x_includes=$ac_dir
7639 rm -f conftest.err conftest.$ac_ext
7640 fi # $ac_x_includes = no
7642 if test "$ac_x_libraries" = no; then
7643 # Check for the libraries.
7644 # See if we find them without any special options.
7645 # Don't add to $LIBS permanently.
7648 if test x$gcc_no_link = xyes; then
7649 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7651 { (exit 1); exit 1; }; }
7653 cat >conftest.$ac_ext <<_ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 #include <X11/Intrinsic.h>
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>conftest.er1
7672 grep -v '^ *+' conftest.er1 >conftest.err
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag"
7678 || test ! -s conftest.err'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } &&
7684 { ac_try='test -s conftest$ac_exeext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7691 # We can link X programs with no special library path.
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7698 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7700 # Don't even attempt the hair of trying to link an X program!
7701 for ac_extension in a so sl; do
7702 if test -r $ac_dir/libXt.$ac_extension; then
7703 ac_x_libraries=$ac_dir
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 fi # $ac_x_libraries = no
7713 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7714 # Didn't find X anywhere. Cache the known absence of X.
7715 ac_cv_have_x="have_x=no"
7717 # Record where we found X for the cache.
7718 ac_cv_have_x="have_x=yes \
7719 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7724 eval "$ac_cv_have_x"
7727 if test "$have_x" != yes; then
7728 echo "$as_me:$LINENO: result: $have_x" >&5
7729 echo "${ECHO_T}$have_x" >&6
7732 # If each of the values was on the command line, it overrides each guess.
7733 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7734 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7735 # Update the cache value to reflect the command line values.
7736 ac_cv_have_x="have_x=yes \
7737 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7738 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7739 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7742 if test "$no_x" = yes; then
7743 # Not all programs may use this symbol, but it does not hurt to define it.
7745 cat >>confdefs.h <<\_ACEOF
7746 #define X_DISPLAY_MISSING 1
7749 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7751 if test -n "$x_includes"; then
7752 X_CFLAGS="$X_CFLAGS -I$x_includes"
7755 # It would also be nice to do this for all -L options, not just this one.
7756 if test -n "$x_libraries"; then
7757 X_LIBS="$X_LIBS -L$x_libraries"
7758 # For Solaris; some versions of Sun CC require a space after -R and
7759 # others require no space. Words are not sufficient . . . .
7760 case `(uname -sr) 2>/dev/null` in
7762 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7763 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7764 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7765 if test x$gcc_no_link = xyes; then
7766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7768 { (exit 1); exit 1; }; }
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>conftest.er1
7789 grep -v '^ *+' conftest.er1 >conftest.err
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag"
7795 || test ! -s conftest.err'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; } &&
7801 { ac_try='test -s conftest$ac_exeext'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7814 rm -f conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7816 if test $ac_R_nospace = yes; then
7817 echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6
7819 X_LIBS="$X_LIBS -R$x_libraries"
7821 LIBS="$ac_xsave_LIBS -R $x_libraries"
7822 if test x$gcc_no_link = xyes; then
7823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7825 { (exit 1); exit 1; }; }
7827 cat >conftest.$ac_ext <<_ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7842 rm -f conftest.$ac_objext conftest$ac_exeext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7844 (eval $ac_link) 2>conftest.er1
7846 grep -v '^ *+' conftest.er1 >conftest.err
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -z "$ac_c_werror_flag"
7852 || test ! -s conftest.err'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; } &&
7858 { ac_try='test -s conftest$ac_exeext'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7871 rm -f conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7873 if test $ac_R_space = yes; then
7874 echo "$as_me:$LINENO: result: yes" >&5
7875 echo "${ECHO_T}yes" >&6
7876 X_LIBS="$X_LIBS -R $x_libraries"
7878 echo "$as_me:$LINENO: result: neither works" >&5
7879 echo "${ECHO_T}neither works" >&6
7886 # Check for system-dependent libraries X programs must link with.
7887 # Do this before checking for the system-independent R6 libraries
7888 # (-lICE), since we may need -lsocket or whatever for X linking.
7890 if test "$ISC" = yes; then
7891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7893 # Martyn Johnson says this is needed for Ultrix, if the X
7894 # libraries were built with DECnet support. And Karl Berry says
7895 # the Alpha needs dnet_stub (dnet does not exist).
7896 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7897 if test x$gcc_no_link = xyes; then
7898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7900 { (exit 1); exit 1; }; }
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7909 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7915 char XOpenDisplay ();
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926 (eval $ac_link) 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag"
7934 || test ! -s conftest.err'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7952 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7953 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 ac_check_lib_save_LIBS=$LIBS
7958 if test x$gcc_no_link = xyes; then
7959 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7961 { (exit 1); exit 1; }; }
7963 cat >conftest.$ac_ext <<_ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7970 /* Override any gcc2 internal prototype to avoid an error. */
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7985 rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7987 (eval $ac_link) 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag"
7995 || test ! -s conftest.err'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest$ac_exeext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_cv_lib_dnet_dnet_ntoa=yes
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 ac_cv_lib_dnet_dnet_ntoa=no
8014 rm -f conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016 LIBS=$ac_check_lib_save_LIBS
8018 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8019 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8020 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8021 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8024 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8025 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8026 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8027 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 ac_check_lib_save_LIBS=$LIBS
8031 LIBS="-ldnet_stub $LIBS"
8032 if test x$gcc_no_link = xyes; then
8033 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8035 { (exit 1); exit 1; }; }
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8044 /* Override any gcc2 internal prototype to avoid an error. */
8048 /* We use char because int might match the return type of a gcc2
8049 builtin and then its argument prototype would still apply. */
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag"
8069 || test ! -s conftest.err'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8086 ac_cv_lib_dnet_stub_dnet_ntoa=no
8088 rm -f conftest.err conftest.$ac_objext \
8089 conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8092 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8093 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8094 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8095 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8100 rm -f conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102 LIBS="$ac_xsave_LIBS"
8104 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8105 # to get the SysV transport functions.
8106 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8108 # The nsl library prevents programs from opening the X display
8109 # on Irix 5.2, according to T.E. Dickey.
8110 # The functions gethostbyname, getservbyname, and inet_addr are
8111 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8112 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8113 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8114 if test "${ac_cv_func_gethostbyname+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 if test x$gcc_no_link = xyes; then
8118 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8120 { (exit 1); exit 1; }; }
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8130 #define gethostbyname innocuous_gethostbyname
8132 /* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char gethostbyname (); below.
8134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135 <limits.h> exists even on freestanding compilers. */
8138 # include <limits.h>
8140 # include <assert.h>
8143 #undef gethostbyname
8145 /* Override any gcc2 internal prototype to avoid an error. */
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152 char gethostbyname ();
8153 /* The GNU C library defines this for functions which it implements
8154 to always fail with ENOSYS. Some functions are actually named
8155 something starting with __ and the normal name is an alias. */
8156 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8159 char (*f) () = gethostbyname;
8168 return f != gethostbyname;
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag"
8183 || test ! -s conftest.err'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest$ac_exeext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_func_gethostbyname=yes
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8200 ac_cv_func_gethostbyname=no
8202 rm -f conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8205 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8206 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8208 if test $ac_cv_func_gethostbyname = no; then
8209 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8210 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8211 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 ac_check_lib_save_LIBS=$LIBS
8216 if test x$gcc_no_link = xyes; then
8217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8219 { (exit 1); exit 1; }; }
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8228 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8234 char gethostbyname ();
8243 rm -f conftest.$ac_objext conftest$ac_exeext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>conftest.er1
8247 grep -v '^ *+' conftest.er1 >conftest.err
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag"
8253 || test ! -s conftest.err'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; } &&
8259 { ac_try='test -s conftest$ac_exeext'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_lib_nsl_gethostbyname=yes
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8270 ac_cv_lib_nsl_gethostbyname=no
8272 rm -f conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274 LIBS=$ac_check_lib_save_LIBS
8276 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8277 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8278 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8282 if test $ac_cv_lib_nsl_gethostbyname = no; then
8283 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8284 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8285 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 ac_check_lib_save_LIBS=$LIBS
8290 if test x$gcc_no_link = xyes; then
8291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8293 { (exit 1); exit 1; }; }
8295 cat >conftest.$ac_ext <<_ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 /* Override any gcc2 internal prototype to avoid an error. */
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8308 char gethostbyname ();
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_lib_bsd_gethostbyname=yes
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_lib_bsd_gethostbyname=no
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 LIBS=$ac_check_lib_save_LIBS
8350 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8351 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8352 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8359 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8360 # socket/setsockopt and other routines are undefined under SCO ODT
8361 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8362 # on later versions), says Simon Leinen: it contains gethostby*
8363 # variants that don't use the name server (or something). -lsocket
8364 # must be given before -lnsl if both are needed. We assume that
8365 # if connect needs -lnsl, so does gethostbyname.
8366 echo "$as_me:$LINENO: checking for connect" >&5
8367 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8368 if test "${ac_cv_func_connect+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 if test x$gcc_no_link = xyes; then
8372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8374 { (exit 1); exit 1; }; }
8376 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8384 #define connect innocuous_connect
8386 /* System header to define __stub macros and hopefully few prototypes,
8387 which can conflict with char connect (); below.
8388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389 <limits.h> exists even on freestanding compilers. */
8392 # include <limits.h>
8394 # include <assert.h>
8399 /* Override any gcc2 internal prototype to avoid an error. */
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8407 /* The GNU C library defines this for functions which it implements
8408 to always fail with ENOSYS. Some functions are actually named
8409 something starting with __ and the normal name is an alias. */
8410 #if defined (__stub_connect) || defined (__stub___connect)
8413 char (*f) () = connect;
8422 return f != connect;
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_func_connect=yes
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_cv_func_connect=no
8456 rm -f conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8460 echo "${ECHO_T}$ac_cv_func_connect" >&6
8462 if test $ac_cv_func_connect = no; then
8463 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8464 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8465 if test "${ac_cv_lib_socket_connect+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 ac_check_lib_save_LIBS=$LIBS
8469 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8470 if test x$gcc_no_link = xyes; then
8471 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8472 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8473 { (exit 1); exit 1; }; }
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8482 /* Override any gcc2 internal prototype to avoid an error. */
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag"
8507 || test ! -s conftest.err'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; } &&
8513 { ac_try='test -s conftest$ac_exeext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_lib_socket_connect=yes
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_cv_lib_socket_connect=no
8526 rm -f conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8528 LIBS=$ac_check_lib_save_LIBS
8530 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8531 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8532 if test $ac_cv_lib_socket_connect = yes; then
8533 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8538 # Guillermo Gomez says -lposix is necessary on A/UX.
8539 echo "$as_me:$LINENO: checking for remove" >&5
8540 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8541 if test "${ac_cv_func_remove+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 if test x$gcc_no_link = xyes; then
8545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8547 { (exit 1); exit 1; }; }
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8557 #define remove innocuous_remove
8559 /* System header to define __stub macros and hopefully few prototypes,
8560 which can conflict with char remove (); below.
8561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8562 <limits.h> exists even on freestanding compilers. */
8565 # include <limits.h>
8567 # include <assert.h>
8572 /* Override any gcc2 internal prototype to avoid an error. */
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8580 /* The GNU C library defines this for functions which it implements
8581 to always fail with ENOSYS. Some functions are actually named
8582 something starting with __ and the normal name is an alias. */
8583 #if defined (__stub_remove) || defined (__stub___remove)
8586 char (*f) () = remove;
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_func_remove=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_cv_func_remove=no
8629 rm -f conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8632 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8633 echo "${ECHO_T}$ac_cv_func_remove" >&6
8635 if test $ac_cv_func_remove = no; then
8636 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8637 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8638 if test "${ac_cv_lib_posix_remove+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 ac_check_lib_save_LIBS=$LIBS
8642 LIBS="-lposix $LIBS"
8643 if test x$gcc_no_link = xyes; then
8644 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8646 { (exit 1); exit 1; }; }
8648 cat >conftest.$ac_ext <<_ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8655 /* Override any gcc2 internal prototype to avoid an error. */
8659 /* We use char because int might match the return type of a gcc2
8660 builtin and then its argument prototype would still apply. */
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>conftest.er1
8674 grep -v '^ *+' conftest.er1 >conftest.err
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest$ac_exeext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_lib_posix_remove=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_cv_lib_posix_remove=no
8699 rm -f conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8703 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8704 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8705 if test $ac_cv_lib_posix_remove = yes; then
8706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8711 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8712 echo "$as_me:$LINENO: checking for shmat" >&5
8713 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8714 if test "${ac_cv_func_shmat+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 if test x$gcc_no_link = xyes; then
8718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8720 { (exit 1); exit 1; }; }
8722 cat >conftest.$ac_ext <<_ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8730 #define shmat innocuous_shmat
8732 /* System header to define __stub macros and hopefully few prototypes,
8733 which can conflict with char shmat (); below.
8734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8735 <limits.h> exists even on freestanding compilers. */
8738 # include <limits.h>
8740 # include <assert.h>
8745 /* Override any gcc2 internal prototype to avoid an error. */
8750 /* We use char because int might match the return type of a gcc2
8751 builtin and then its argument prototype would still apply. */
8753 /* The GNU C library defines this for functions which it implements
8754 to always fail with ENOSYS. Some functions are actually named
8755 something starting with __ and the normal name is an alias. */
8756 #if defined (__stub_shmat) || defined (__stub___shmat)
8759 char (*f) () = shmat;
8773 rm -f conftest.$ac_objext conftest$ac_exeext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8775 (eval $ac_link) 2>conftest.er1
8777 grep -v '^ *+' conftest.er1 >conftest.err
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_c_werror_flag"
8783 || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest$ac_exeext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_cv_func_shmat=yes
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8802 rm -f conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8805 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8806 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8808 if test $ac_cv_func_shmat = no; then
8809 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8810 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8811 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 ac_check_lib_save_LIBS=$LIBS
8816 if test x$gcc_no_link = xyes; then
8817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8819 { (exit 1); exit 1; }; }
8821 cat >conftest.$ac_ext <<_ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8828 /* Override any gcc2 internal prototype to avoid an error. */
8832 /* We use char because int might match the return type of a gcc2
8833 builtin and then its argument prototype would still apply. */
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845 (eval $ac_link) 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_lib_ipc_shmat=yes
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_cv_lib_ipc_shmat=no
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 LIBS=$ac_check_lib_save_LIBS
8876 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8877 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8878 if test $ac_cv_lib_ipc_shmat = yes; then
8879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8885 # Check for libraries that X11R6 Xt/Xaw programs need.
8886 ac_save_LDFLAGS=$LDFLAGS
8887 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8888 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8889 # check for ICE first), but we must link in the order -lSM -lICE or
8890 # we get undefined symbols. So assume we have SM if we have ICE.
8891 # These have to be linked with before -lX11, unlike the other
8892 # libraries we check for below, so use a different variable.
8893 # John Interrante, Karl Berry
8894 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8895 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8896 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8901 if test x$gcc_no_link = xyes; then
8902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8904 { (exit 1); exit 1; }; }
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 /* Override any gcc2 internal prototype to avoid an error. */
8917 /* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8919 char IceConnectionNumber ();
8923 IceConnectionNumber ();
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930 (eval $ac_link) 2>conftest.er1
8932 grep -v '^ *+' conftest.er1 >conftest.err
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag"
8938 || test ! -s conftest.err'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; } &&
8944 { ac_try='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_lib_ICE_IceConnectionNumber=yes
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8955 ac_cv_lib_ICE_IceConnectionNumber=no
8957 rm -f conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 LIBS=$ac_check_lib_save_LIBS
8961 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8962 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8963 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8964 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8967 LDFLAGS=$ac_save_LDFLAGS
8972 # FIXME: this should be _libs on some hosts.
8975 # extra LD Flags which are required for targets
8978 # For now we have to disable it on darwin[8-9] because it slows down
8979 # the linking phase. A possible bug in ld?
8980 # on Darwin -single_module speeds up loading of the dynamic libraries.
8981 extra_ldflags_libjava=-Wl,-single_module
8986 # Allow the GC to be disabled. Can be useful when debugging.
8987 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8988 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8989 # Check whether --enable-java-gc or --disable-java-gc was given.
8990 if test "${enable_java_gc+set}" = set; then
8991 enableval="$enable_java_gc"
9004 echo "$as_me:$LINENO: result: boehm" >&5
9005 echo "${ECHO_T}boehm" >&6
9006 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9007 JC1GCSPEC='-fuse-boehm-gc'
9008 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9009 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9012 # The POSIX thread support needs to know this.
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_BOEHM_GC 1
9020 echo "$as_me:$LINENO: result: none" >&5
9021 echo "${ECHO_T}none" >&6
9025 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9026 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9027 { (exit 1); exit 1; }; }
9036 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9040 if test "$GC" = boehm; then
9042 USING_BOEHMGC_FALSE='#'
9044 USING_BOEHMGC_TRUE='#'
9045 USING_BOEHMGC_FALSE=
9050 if test "$GC" = no; then
9052 USING_NOGC_FALSE='#'
9060 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9061 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9062 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9063 echo "$as_me:$LINENO: result: $THREADS" >&5
9064 echo "${ECHO_T}$THREADS" >&6
9070 posix | posix95 | pthreads)
9075 cat >>confdefs.h <<\_ACEOF
9076 #define LINUX_THREADS 1
9084 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9085 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9086 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9087 { (exit 1); exit 1; }; }
9090 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9091 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9092 { (exit 1); exit 1; }; }
9103 THREADSTARTFILESPEC=
9108 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9111 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9112 # merely adds pthread_* functions) but it does have a -pthread switch
9113 # which is required at link-time to select -lc_r *instead* of -lc.
9114 THREADLDFLAGS=-pthread
9115 # Don't set THREADSPEC here as might be expected since -pthread is
9116 # not processed when found within a spec file, it must come from
9117 # the command line. For now, the user must provide the -pthread
9118 # switch to link code compiled with gcj. In future, consider adding
9119 # support for weak references to pthread_* functions ala gthr.h API.
9120 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9123 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9124 # systems which support threads and -lpthread.
9125 THREADLDFLAGS=-pthread
9126 THREADSPEC=-lpthread
9128 alpha*-dec-osf* | hppa*-hp-hpux*)
9129 THREADCXXFLAGS=-pthread
9130 # boehm-gc needs some functions from librt, so link that too.
9131 THREADLIBS='-lpthread -lrt'
9132 THREADSPEC='-lpthread -lrt'
9135 THREADLIBS=-lpthread
9136 THREADSPEC=-lpthread
9139 THREADH=posix-threads.h
9140 # MIT pthreads doesn't seem to have the mutexattr functions.
9141 # But for now we don't check for it. We just assume you aren't
9142 # using MIT pthreads.
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9149 # If we're using the Boehm GC, then we happen to know that it
9150 # defines _REENTRANT, so we don't bother. Eww.
9151 if test "$GC" != boehm; then
9153 cat >>confdefs.h <<\_ACEOF
9154 #define _REENTRANT 1
9159 cat >>confdefs.h <<\_ACEOF
9160 #define _POSIX_PTHREAD_SEMANTICS 1
9166 THREADH=win32-threads.h
9167 THREADCXXFLAGS=-mthreads
9168 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9169 # But we do not want the executables created to be dependent on
9170 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9171 # exception handling contexts. The following kludge achieves this effect
9172 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9173 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9174 # A workaround is to explicitly use -mthreads while linking Java programs.
9175 # See PR libgcj/28263.
9177 # FIXME: In Java we are able to detect thread death at the end of
9178 # Thread.run() so we should be able to clean up the exception handling
9179 # contexts ourselves.
9180 THREADSTARTFILESPEC='crtmt%O%s'
9184 THREADH=no-threads.h
9187 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9198 if test "$THREADS" = posix; then
9199 USING_POSIX_THREADS_TRUE=
9200 USING_POSIX_THREADS_FALSE='#'
9202 USING_POSIX_THREADS_TRUE='#'
9203 USING_POSIX_THREADS_FALSE=
9208 if test "$THREADS" = win32; then
9209 USING_WIN32_THREADS_TRUE=
9210 USING_WIN32_THREADS_FALSE='#'
9212 USING_WIN32_THREADS_TRUE='#'
9213 USING_WIN32_THREADS_FALSE=
9218 if test "$THREADS" = none; then
9219 USING_NO_THREADS_TRUE=
9220 USING_NO_THREADS_FALSE='#'
9222 USING_NO_THREADS_TRUE='#'
9223 USING_NO_THREADS_FALSE=
9227 if test -d sysdep; then true; else mkdir sysdep; fi
9228 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9230 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9232 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9236 # Hash synchronization is only useful with posix threads right now.
9237 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9238 HASH_SYNC_SPEC=-fhash-synchronization
9240 cat >>confdefs.h <<\_ACEOF
9241 #define JV_HASH_SYNCHRONIZATION 1
9249 if test "$GCC" = yes; then
9258 # We're in the tree with gcc, and need to include some of its headers.
9259 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9261 if test "x${with_newlib}" = "xyes"; then
9262 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9263 # may not work correctly, because the compiler may not be able to
9266 # We assume newlib. This lets us hard-code the functions we know
9269 cat >>confdefs.h <<\_ACEOF
9270 #define HAVE_MEMMOVE 1
9274 cat >>confdefs.h <<\_ACEOF
9275 #define HAVE_MEMCPY 1
9279 cat >>confdefs.h <<\_ACEOF
9280 #define HAVE_STRERROR 1
9284 cat >>confdefs.h <<\_ACEOF
9289 cat >>confdefs.h <<\_ACEOF
9290 #define HAVE_GMTIME_R 1
9294 cat >>confdefs.h <<\_ACEOF
9295 #define HAVE_LOCALTIME_R 1
9299 cat >>confdefs.h <<\_ACEOF
9300 #define HAVE_USLEEP_DECL 1
9303 # This is only for POSIX threads.
9305 cat >>confdefs.h <<\_ACEOF
9306 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9309 # We also assume we are using gcc, which provides alloca.
9310 cat >>confdefs.h <<\_ACEOF
9311 #define HAVE_ALLOCA 1
9315 # Assume we do not have getuid and friends.
9317 cat >>confdefs.h <<\_ACEOF
9357 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9358 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9359 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9360 nl_langinfo setlocale \
9361 inet_pton uname inet_ntoa \
9362 fork execvp pipe sigaction ftruncate mmap
9364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9365 echo "$as_me:$LINENO: checking for $ac_func" >&5
9366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9367 if eval "test \"\${$as_ac_var+set}\" = set"; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 if test x$gcc_no_link = xyes; then
9371 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9373 { (exit 1); exit 1; }; }
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9383 #define $ac_func innocuous_$ac_func
9385 /* System header to define __stub macros and hopefully few prototypes,
9386 which can conflict with char $ac_func (); below.
9387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9388 <limits.h> exists even on freestanding compilers. */
9391 # include <limits.h>
9393 # include <assert.h>
9398 /* Override any gcc2 internal prototype to avoid an error. */
9403 /* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9406 /* The GNU C library defines this for functions which it implements
9407 to always fail with ENOSYS. Some functions are actually named
9408 something starting with __ and the normal name is an alias. */
9409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9412 char (*f) () = $ac_func;
9421 return f != $ac_func;
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428 (eval $ac_link) 2>conftest.er1
9430 grep -v '^ *+' conftest.er1 >conftest.err
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } &&
9435 { ac_try='test -z "$ac_c_werror_flag"
9436 || test ! -s conftest.err'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; } &&
9442 { ac_try='test -s conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 eval "$as_ac_var=yes"
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 eval "$as_ac_var=no"
9455 rm -f conftest.err conftest.$ac_objext \
9456 conftest$ac_exeext conftest.$ac_ext
9458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9460 if test `eval echo '${'$as_ac_var'}'` = yes; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9470 for ac_func in inet_aton inet_addr
9472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9473 echo "$as_me:$LINENO: checking for $ac_func" >&5
9474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9475 if eval "test \"\${$as_ac_var+set}\" = set"; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 if test x$gcc_no_link = xyes; then
9479 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9481 { (exit 1); exit 1; }; }
9483 cat >conftest.$ac_ext <<_ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9491 #define $ac_func innocuous_$ac_func
9493 /* System header to define __stub macros and hopefully few prototypes,
9494 which can conflict with char $ac_func (); below.
9495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9496 <limits.h> exists even on freestanding compilers. */
9499 # include <limits.h>
9501 # include <assert.h>
9506 /* Override any gcc2 internal prototype to avoid an error. */
9511 /* We use char because int might match the return type of a gcc2
9512 builtin and then its argument prototype would still apply. */
9514 /* The GNU C library defines this for functions which it implements
9515 to always fail with ENOSYS. Some functions are actually named
9516 something starting with __ and the normal name is an alias. */
9517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9520 char (*f) () = $ac_func;
9529 return f != $ac_func;
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>conftest.er1
9538 grep -v '^ *+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag"
9544 || test ! -s conftest.err'
9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; } &&
9550 { ac_try='test -s conftest$ac_exeext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 eval "$as_ac_var=yes"
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9561 eval "$as_ac_var=no"
9563 rm -f conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9568 if test `eval echo '${'$as_ac_var'}'` = yes; then
9569 cat >>confdefs.h <<_ACEOF
9570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9576 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9577 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9578 if test "${ac_cv_header_stdc+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 cat >conftest.$ac_ext <<_ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9600 rm -f conftest.$ac_objext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9602 (eval $ac_compile) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest.$ac_objext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_header_stdc=yes
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 ac_cv_header_stdc=no
9629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9631 if test $ac_cv_header_stdc = yes; then
9632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9643 $EGREP "memchr" >/dev/null 2>&1; then
9646 ac_cv_header_stdc=no
9652 if test $ac_cv_header_stdc = yes; then
9653 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev/null 2>&1; then
9667 ac_cv_header_stdc=no
9673 if test $ac_cv_header_stdc = yes; then
9674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9675 if test "$cross_compiling" = yes; then
9678 cat >conftest.$ac_ext <<_ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9685 #if ((' ' & 0x0FF) == 0x020)
9686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9689 # define ISLOWER(c) \
9690 (('a' <= (c) && (c) <= 'i') \
9691 || ('j' <= (c) && (c) <= 'r') \
9692 || ('s' <= (c) && (c) <= 'z'))
9693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9701 for (i = 0; i < 256; i++)
9702 if (XOR (islower (i), ISLOWER (i))
9703 || toupper (i) != TOUPPER (i))
9708 rm -f conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9721 echo "$as_me: program exited with status $ac_status" >&5
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_cv_header_stdc=no
9728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9732 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9733 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9734 if test $ac_cv_header_stdc = yes; then
9736 cat >>confdefs.h <<\_ACEOF
9737 #define STDC_HEADERS 1
9742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9753 inttypes.h stdint.h unistd.h
9755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9756 echo "$as_me:$LINENO: checking for $ac_header" >&5
9757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9769 #include <$ac_header>
9771 rm -f conftest.$ac_objext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9773 (eval $ac_compile) 2>conftest.er1
9775 grep -v '^ *+' conftest.er1 >conftest.err
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -z "$ac_c_werror_flag"
9781 || test ! -s conftest.err'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; } &&
9787 { ac_try='test -s conftest.$ac_objext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 eval "$as_ac_Header=yes"
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 eval "$as_ac_Header=no"
9800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9805 cat >>confdefs.h <<_ACEOF
9806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9817 for ac_header in execinfo.h unistd.h dlfcn.h
9819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo "$as_me:$LINENO: checking for $ac_header" >&5
9822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9829 # Is the header compilable?
9830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 $ac_includes_default
9839 #include <$ac_header>
9841 rm -f conftest.$ac_objext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9843 (eval $ac_compile) 2>conftest.er1
9845 grep -v '^ *+' conftest.er1 >conftest.err
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest.$ac_objext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_header_compiler=yes
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ac_header_compiler=no
9870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9872 echo "${ECHO_T}$ac_header_compiler" >&6
9874 # Is the header present?
9875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 #include <$ac_header>
9885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } >/dev/null; then
9893 if test -s conftest.err; then
9894 ac_cpp_err=$ac_c_preproc_warn_flag
9895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9902 if test -z "$ac_cpp_err"; then
9903 ac_header_preproc=yes
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_header_preproc=no
9910 rm -f conftest.err conftest.$ac_ext
9911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912 echo "${ECHO_T}$ac_header_preproc" >&6
9914 # So? What about this header?
9915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921 ac_header_preproc=yes
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9938 ## ---------------------------------- ##
9939 ## Report this to the libjava lists. ##
9940 ## ---------------------------------- ##
9943 sed "s/^/$as_me: WARNING: /" >&2
9946 echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 eval "$as_ac_Header=\$ac_header_preproc"
9953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9966 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
9967 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9968 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9969 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 ac_check_lib_save_LIBS=$LIBS
9974 if test x$gcc_no_link = xyes; then
9975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9977 { (exit 1); exit 1; }; }
9979 cat >conftest.$ac_ext <<_ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9986 /* Override any gcc2 internal prototype to avoid an error. */
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag"
10011 || test ! -s conftest.err'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; } &&
10017 { ac_try='test -s conftest$ac_exeext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_lib_dl_dladdr=yes
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_cv_lib_dl_dladdr=no
10030 rm -f conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10034 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10036 if test $ac_cv_lib_dl_dladdr = yes; then
10039 cat >>confdefs.h <<\_ACEOF
10040 #define HAVE_DLADDR 1
10045 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10046 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10047 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 ac_check_lib_save_LIBS=$LIBS
10052 if test x$gcc_no_link = xyes; then
10053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10055 { (exit 1); exit 1; }; }
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10064 /* Override any gcc2 internal prototype to avoid an error. */
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10083 grep -v '^ *+' conftest.er1 >conftest.err
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_lib_dld_dladdr=yes
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_cv_lib_dld_dladdr=no
10108 rm -f conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LIBS=$ac_check_lib_save_LIBS
10112 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10113 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10114 if test $ac_cv_lib_dld_dladdr = yes; then
10117 cat >>confdefs.h <<\_ACEOF
10118 #define HAVE_DLADDR 1
10126 if test x"$build" = x"$host"; then
10127 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10128 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10129 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 test "$cross_compiling" = yes &&
10133 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10134 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10135 { (exit 1); exit 1; }; }
10136 if test -r "/proc/self/exe"; then
10137 ac_cv_file__proc_self_exe=yes
10139 ac_cv_file__proc_self_exe=no
10142 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10143 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10144 if test $ac_cv_file__proc_self_exe = yes; then
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE__PROC_SELF_EXE 1
10152 cat >>confdefs.h <<\_ACEOF
10153 #define HAVE_PROC_SELF_EXE 1
10162 cat >>confdefs.h <<\_ACEOF
10163 #define HAVE_PROC_SELF_EXE 1
10171 if test "X$prefix" = "XNONE"; then
10172 acl_final_prefix="$ac_default_prefix"
10174 acl_final_prefix="$prefix"
10176 if test "X$exec_prefix" = "XNONE"; then
10177 acl_final_exec_prefix='${prefix}'
10179 acl_final_exec_prefix="$exec_prefix"
10181 acl_save_prefix="$prefix"
10182 prefix="$acl_final_prefix"
10183 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10184 prefix="$acl_save_prefix"
10187 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10188 if test "${with_gnu_ld+set}" = set; then
10189 withval="$with_gnu_ld"
10190 test "$withval" = no || with_gnu_ld=yes
10194 # Prepare PATH_SEPARATOR.
10195 # The user is always right.
10196 if test "${PATH_SEPARATOR+set}" != set; then
10197 echo "#! /bin/sh" >conf$$.sh
10198 echo "exit 0" >>conf$$.sh
10200 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10208 if test "$GCC" = yes; then
10209 # Check if gcc -print-prog-name=ld gives a path.
10210 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10211 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10214 # gcc leaves a trailing carriage return which upsets mingw
10215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10220 # Accept absolute paths.
10221 [\\/]* | [A-Za-z]:[\\/]*)
10222 re_direlt='/[^/][^/]*/\.\./'
10223 # Canonicalize the path of ld
10224 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10225 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10226 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10228 test -z "$LD" && LD="$ac_prog"
10231 # If it fails, then pretend we aren't using GCC.
10235 # If it is relative, then search for the first ld in PATH.
10236 with_gnu_ld=unknown
10239 elif test "$with_gnu_ld" = yes; then
10240 echo "$as_me:$LINENO: checking for GNU ld" >&5
10241 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10243 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10244 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10246 if test "${acl_cv_path_LD+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 if test -z "$LD"; then
10250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10251 for ac_dir in $PATH; do
10252 test -z "$ac_dir" && ac_dir=.
10253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10254 acl_cv_path_LD="$ac_dir/$ac_prog"
10255 # Check to see if the program is GNU ld. I'd rather use --version,
10256 # but apparently some GNU ld's only accept -v.
10257 # Break only if it was the GNU/non-GNU ld that we prefer.
10258 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10259 test "$with_gnu_ld" != no && break
10261 test "$with_gnu_ld" != yes && break
10267 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10271 LD="$acl_cv_path_LD"
10272 if test -n "$LD"; then
10273 echo "$as_me:$LINENO: result: $LD" >&5
10274 echo "${ECHO_T}$LD" >&6
10276 echo "$as_me:$LINENO: result: no" >&5
10277 echo "${ECHO_T}no" >&6
10279 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10280 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10281 { (exit 1); exit 1; }; }
10282 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10283 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10284 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10288 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10289 acl_cv_prog_gnu_ld=yes
10291 acl_cv_prog_gnu_ld=no
10294 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10295 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10296 with_gnu_ld=$acl_cv_prog_gnu_ld
10300 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10301 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10302 if test "${acl_cv_rpath+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10307 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10309 rm -f ./conftest.sh
10313 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10314 echo "${ECHO_T}$acl_cv_rpath" >&6
10316 libext="$acl_cv_libext"
10317 shlibext="$acl_cv_shlibext"
10318 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10319 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10320 hardcode_direct="$acl_cv_hardcode_direct"
10321 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10322 # Check whether --enable-rpath or --disable-rpath was given.
10323 if test "${enable_rpath+set}" = set; then
10324 enableval="$enable_rpath"
10338 acl_save_prefix="$prefix"
10339 prefix="$acl_final_prefix"
10340 acl_save_exec_prefix="$exec_prefix"
10341 exec_prefix="$acl_final_exec_prefix"
10343 eval additional_includedir=\"$includedir\"
10344 eval additional_libdir=\"$libdir\"
10346 exec_prefix="$acl_save_exec_prefix"
10347 prefix="$acl_save_prefix"
10350 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10351 if test "${with_libiconv_prefix+set}" = set; then
10352 withval="$with_libiconv_prefix"
10354 if test "X$withval" = "Xno"; then
10357 if test "X$withval" = "X"; then
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 additional_includedir="$withval/include"
10372 additional_libdir="$withval/lib"
10382 names_already_handled=
10383 names_next_round='iconv '
10384 while test -n "$names_next_round"; do
10385 names_this_round="$names_next_round"
10387 for name in $names_this_round; do
10389 for n in $names_already_handled; do
10390 if test "$n" = "$name"; then
10391 already_handled=yes
10395 if test -z "$already_handled"; then
10396 names_already_handled="$names_already_handled $name"
10397 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10398 eval value=\"\$HAVE_LIB$uppername\"
10399 if test -n "$value"; then
10400 if test "$value" = yes; then
10401 eval value=\"\$LIB$uppername\"
10402 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10403 eval value=\"\$LTLIB$uppername\"
10404 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10413 if test $use_additional = yes; then
10414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10415 found_dir="$additional_libdir"
10416 found_so="$additional_libdir/lib$name.$shlibext"
10417 if test -f "$additional_libdir/lib$name.la"; then
10418 found_la="$additional_libdir/lib$name.la"
10421 if test -f "$additional_libdir/lib$name.$libext"; then
10422 found_dir="$additional_libdir"
10423 found_a="$additional_libdir/lib$name.$libext"
10424 if test -f "$additional_libdir/lib$name.la"; then
10425 found_la="$additional_libdir/lib$name.la"
10430 if test "X$found_dir" = "X"; then
10431 for x in $LDFLAGS $LTLIBICONV; do
10433 acl_save_prefix="$prefix"
10434 prefix="$acl_final_prefix"
10435 acl_save_exec_prefix="$exec_prefix"
10436 exec_prefix="$acl_final_exec_prefix"
10438 exec_prefix="$acl_save_exec_prefix"
10439 prefix="$acl_save_prefix"
10443 dir=`echo "X$x" | sed -e 's/^X-L//'`
10444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10446 found_so="$dir/lib$name.$shlibext"
10447 if test -f "$dir/lib$name.la"; then
10448 found_la="$dir/lib$name.la"
10451 if test -f "$dir/lib$name.$libext"; then
10453 found_a="$dir/lib$name.$libext"
10454 if test -f "$dir/lib$name.la"; then
10455 found_la="$dir/lib$name.la"
10461 if test "X$found_dir" != "X"; then
10466 if test "X$found_dir" != "X"; then
10467 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10468 if test "X$found_so" != "X"; then
10469 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10473 for x in $ltrpathdirs; do
10474 if test "X$x" = "X$found_dir"; then
10479 if test -z "$haveit"; then
10480 ltrpathdirs="$ltrpathdirs $found_dir"
10482 if test "$hardcode_direct" = yes; then
10483 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10488 for x in $rpathdirs; do
10489 if test "X$x" = "X$found_dir"; then
10494 if test -z "$haveit"; then
10495 rpathdirs="$rpathdirs $found_dir"
10499 for x in $LDFLAGS $LIBICONV; do
10501 acl_save_prefix="$prefix"
10502 prefix="$acl_final_prefix"
10503 acl_save_exec_prefix="$exec_prefix"
10504 exec_prefix="$acl_final_exec_prefix"
10506 exec_prefix="$acl_save_exec_prefix"
10507 prefix="$acl_save_prefix"
10509 if test "X$x" = "X-L$found_dir"; then
10514 if test -z "$haveit"; then
10515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10517 if test "$hardcode_minus_L" != no; then
10518 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10520 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10526 if test "X$found_a" != "X"; then
10527 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10532 additional_includedir=
10533 case "$found_dir" in
10535 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10536 additional_includedir="$basedir/include"
10539 if test "X$additional_includedir" != "X"; then
10540 if test "X$additional_includedir" != "X/usr/include"; then
10542 if test "X$additional_includedir" = "X/usr/local/include"; then
10543 if test -n "$GCC"; then
10545 linux*) haveit=yes;;
10549 if test -z "$haveit"; then
10550 for x in $CPPFLAGS $INCICONV; do
10552 acl_save_prefix="$prefix"
10553 prefix="$acl_final_prefix"
10554 acl_save_exec_prefix="$exec_prefix"
10555 exec_prefix="$acl_final_exec_prefix"
10557 exec_prefix="$acl_save_exec_prefix"
10558 prefix="$acl_save_prefix"
10560 if test "X$x" = "X-I$additional_includedir"; then
10565 if test -z "$haveit"; then
10566 if test -d "$additional_includedir"; then
10567 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10573 if test -n "$found_la"; then
10574 save_libdir="$libdir"
10575 case "$found_la" in
10576 */* | *\\*) . "$found_la" ;;
10577 *) . "./$found_la" ;;
10579 libdir="$save_libdir"
10580 for dep in $dependency_libs; do
10583 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10584 if test "X$additional_libdir" != "X/usr/lib"; then
10586 if test "X$additional_libdir" = "X/usr/local/lib"; then
10587 if test -n "$GCC"; then
10589 linux*) haveit=yes;;
10593 if test -z "$haveit"; then
10595 for x in $LDFLAGS $LIBICONV; do
10597 acl_save_prefix="$prefix"
10598 prefix="$acl_final_prefix"
10599 acl_save_exec_prefix="$exec_prefix"
10600 exec_prefix="$acl_final_exec_prefix"
10602 exec_prefix="$acl_save_exec_prefix"
10603 prefix="$acl_save_prefix"
10605 if test "X$x" = "X-L$additional_libdir"; then
10610 if test -z "$haveit"; then
10611 if test -d "$additional_libdir"; then
10612 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10616 for x in $LDFLAGS $LTLIBICONV; 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 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10641 if test "$enable_rpath" != no; then
10643 for x in $rpathdirs; do
10644 if test "X$x" = "X$dir"; then
10649 if test -z "$haveit"; then
10650 rpathdirs="$rpathdirs $dir"
10653 for x in $ltrpathdirs; do
10654 if test "X$x" = "X$dir"; then
10659 if test -z "$haveit"; then
10660 ltrpathdirs="$ltrpathdirs $dir"
10665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10671 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10678 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10679 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10685 if test "X$rpathdirs" != "X"; then
10686 if test -n "$hardcode_libdir_separator"; then
10688 for found_dir in $rpathdirs; do
10689 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10691 acl_save_libdir="$libdir"
10693 eval flag=\"$hardcode_libdir_flag_spec\"
10694 libdir="$acl_save_libdir"
10695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10697 for found_dir in $rpathdirs; do
10698 acl_save_libdir="$libdir"
10699 libdir="$found_dir"
10700 eval flag=\"$hardcode_libdir_flag_spec\"
10701 libdir="$acl_save_libdir"
10702 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10706 if test "X$ltrpathdirs" != "X"; then
10707 for found_dir in $ltrpathdirs; do
10708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10718 am_save_CPPFLAGS="$CPPFLAGS"
10720 for element in $INCICONV; do
10722 for x in $CPPFLAGS; do
10724 acl_save_prefix="$prefix"
10725 prefix="$acl_final_prefix"
10726 acl_save_exec_prefix="$exec_prefix"
10727 exec_prefix="$acl_final_exec_prefix"
10729 exec_prefix="$acl_save_exec_prefix"
10730 prefix="$acl_save_prefix"
10732 if test "X$x" = "X$element"; then
10737 if test -z "$haveit"; then
10738 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10743 echo "$as_me:$LINENO: checking for iconv" >&5
10744 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10745 if test "${am_cv_func_iconv+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 am_cv_func_iconv="no, consider installing GNU libiconv"
10751 if test x$gcc_no_link = xyes; then
10752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10754 { (exit 1); exit 1; }; }
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 #include <stdlib.h>
10767 iconv_t cd = iconv_open("","");
10768 iconv(cd,NULL,NULL,NULL,NULL);
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag"
10784 || test ! -s conftest.err'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try='test -s conftest$ac_exeext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 am_cv_func_iconv=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10802 rm -f conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 if test "$am_cv_func_iconv" != yes; then
10805 am_save_LIBS="$LIBS"
10806 LIBS="$LIBS $LIBICONV"
10807 if test x$gcc_no_link = xyes; then
10808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10810 { (exit 1); exit 1; }; }
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 #include <stdlib.h>
10823 iconv_t cd = iconv_open("","");
10824 iconv(cd,NULL,NULL,NULL,NULL);
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 am_cv_lib_iconv=yes
10853 am_cv_func_iconv=yes
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10859 rm -f conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS="$am_save_LIBS"
10865 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10866 echo "${ECHO_T}$am_cv_func_iconv" >&6
10867 if test "$am_cv_func_iconv" = yes; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_ICONV 1
10874 if test "$am_cv_lib_iconv" = yes; then
10875 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10876 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10877 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10878 echo "${ECHO_T}$LIBICONV" >&6
10880 CPPFLAGS="$am_save_CPPFLAGS"
10887 if test "$am_cv_func_iconv" = yes; then
10888 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10889 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10890 if test "${am_cv_proto_iconv+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10901 #include <stdlib.h>
10907 #if defined(__STDC__) || defined(__cplusplus)
10908 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10921 rm -f conftest.$ac_objext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag"
10931 || test ! -s conftest.err'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try='test -s conftest.$ac_objext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 am_cv_proto_iconv_arg1=""
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 am_cv_proto_iconv_arg1="const"
10950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10951 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);"
10954 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10955 echo "$as_me:$LINENO: result: ${ac_t:-
10956 }$am_cv_proto_iconv" >&5
10957 echo "${ECHO_T}${ac_t:-
10958 }$am_cv_proto_iconv" >&6
10960 cat >>confdefs.h <<_ACEOF
10961 #define ICONV_CONST $am_cv_proto_iconv_arg1
10967 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10968 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10969 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 if test x$gcc_no_link = xyes; then
10973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10975 { (exit 1); exit 1; }; }
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <locale.h>
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag"
11002 || test ! -s conftest.err'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 am_cv_val_LC_MESSAGES=yes
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 am_cv_val_LC_MESSAGES=no
11021 rm -f conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11024 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11025 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11026 if test $am_cv_val_LC_MESSAGES = yes; then
11028 cat >>confdefs.h <<\_ACEOF
11029 #define HAVE_LC_MESSAGES 1
11034 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11035 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11036 if test "${ac_cv_struct_tm+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 #include <sys/types.h>
11051 struct tm *tp; tp->tm_sec;
11056 rm -f conftest.$ac_objext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11058 (eval $ac_compile) 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag"
11066 || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest.$ac_objext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_struct_tm=time.h
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ac_cv_struct_tm=sys/time.h
11085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11087 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11088 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11089 if test $ac_cv_struct_tm = sys/time.h; then
11091 cat >>confdefs.h <<\_ACEOF
11092 #define TM_IN_SYS_TIME 1
11097 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11098 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11099 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 cat >conftest.$ac_ext <<_ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 #include <sys/types.h>
11109 #include <$ac_cv_struct_tm>
11115 static struct tm ac_aggr;
11116 if (ac_aggr.tm_zone)
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag"
11132 || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest.$ac_objext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_member_struct_tm_tm_zone=yes
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 cat >conftest.$ac_ext <<_ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <sys/types.h>
11156 #include <$ac_cv_struct_tm>
11162 static struct tm ac_aggr;
11163 if (sizeof ac_aggr.tm_zone)
11169 rm -f conftest.$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171 (eval $ac_compile) 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_member_struct_tm_tm_zone=yes
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 ac_cv_member_struct_tm_tm_zone=no
11198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11203 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11204 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_STRUCT_TM_TM_ZONE 1
11213 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define HAVE_TM_ZONE 1
11220 echo "$as_me:$LINENO: checking for tzname" >&5
11221 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11222 if test "${ac_cv_var_tzname+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 if test x$gcc_no_link = xyes; then
11226 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11227 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11228 { (exit 1); exit 1; }; }
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11237 #ifndef tzname /* For SGI. */
11238 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>conftest.er1
11253 grep -v '^ *+' conftest.er1 >conftest.err
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_var_tzname=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_cv_var_tzname=no
11278 rm -f conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11281 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11282 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11283 if test $ac_cv_var_tzname = yes; then
11285 cat >>confdefs.h <<\_ACEOF
11286 #define HAVE_TZNAME 1
11295 for ac_func in gethostbyname_r
11297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11298 echo "$as_me:$LINENO: checking for $ac_func" >&5
11299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11300 if eval "test \"\${$as_ac_var+set}\" = set"; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 if test x$gcc_no_link = xyes; then
11304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11306 { (exit 1); exit 1; }; }
11308 cat >conftest.$ac_ext <<_ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11324 # include <limits.h>
11326 # include <assert.h>
11331 /* Override any gcc2 internal prototype to avoid an error. */
11336 /* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */
11339 /* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11345 char (*f) () = $ac_func;
11354 return f != $ac_func;
11359 rm -f conftest.$ac_objext conftest$ac_exeext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>conftest.er1
11363 grep -v '^ *+' conftest.er1 >conftest.err
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 eval "$as_ac_var=yes"
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 eval "$as_ac_var=no"
11388 rm -f conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11393 if test `eval echo '${'$as_ac_var'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11399 cat >>confdefs.h <<\_ACEOF
11400 #define HAVE_GETHOSTBYNAME_R 1
11403 # There are two different kinds of gethostbyname_r.
11404 # We look for the one that returns `int'.
11405 # Hopefully this check is robust enough.
11406 cat >conftest.$ac_ext <<_ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11416 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11419 cat >>confdefs.h <<\_ACEOF
11420 #define GETHOSTBYNAME_R_RETURNS_INT 1
11427 case " $GCINCS " in
11428 *" -D_REENTRANT "*) ;;
11430 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11431 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11432 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 ac_cpp='$CXXCPP $CPPFLAGS'
11437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11451 gethostbyname_r("", 0, 0);
11456 rm -f conftest.$ac_objext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11458 (eval $ac_compile) 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_cxx_werror_flag"
11466 || test ! -s conftest.err'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest.$ac_objext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 libjava_cv_gethostbyname_r_needs_reentrant=no
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 CPPFLAGS_SAVE="$CPPFLAGS"
11484 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11485 cat >conftest.$ac_ext <<_ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11495 gethostbyname_r("", 0, 0);
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>conftest.er1
11504 grep -v '^ *+' conftest.er1 >conftest.err
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try='test -z "$ac_cxx_werror_flag"
11510 || test ! -s conftest.err'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest.$ac_objext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 libjava_cv_gethostbyname_r_needs_reentrant=yes
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 libjava_cv_gethostbyname_r_needs_reentrant=fail
11529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11530 CPPFLAGS="$CPPFLAGS_SAVE"
11533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11535 ac_cpp='$CPP $CPPFLAGS'
11536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11542 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11543 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11544 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11546 cat >>confdefs.h <<\_ACEOF
11547 #define _REENTRANT 1
11554 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11555 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11556 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 cat >conftest.$ac_ext <<_ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11566 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11567 # define _REENTRANT 1
11573 struct hostent_data data;
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11580 (eval $ac_compile) 2>conftest.er1
11582 grep -v '^ *+' conftest.er1 >conftest.err
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try='test -z "$ac_c_werror_flag"
11588 || test ! -s conftest.err'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest.$ac_objext'
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 libjava_cv_struct_hostent_data=yes
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 libjava_cv_struct_hostent_data=no
11607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11609 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11610 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11611 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11613 cat >>confdefs.h <<\_ACEOF
11614 #define HAVE_STRUCT_HOSTENT_DATA 1
11623 # FIXME: libjava source code expects to find a prototype for
11624 # gethostbyaddr_r in netdb.h. The outer check ensures that
11625 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11626 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11627 # linkage check is enough, yet C++ code requires proper prototypes.)
11628 cat >conftest.$ac_ext <<_ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11638 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11641 for ac_func in gethostbyaddr_r
11643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11644 echo "$as_me:$LINENO: checking for $ac_func" >&5
11645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11646 if eval "test \"\${$as_ac_var+set}\" = set"; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 if test x$gcc_no_link = xyes; then
11650 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11651 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11652 { (exit 1); exit 1; }; }
11654 cat >conftest.$ac_ext <<_ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11662 #define $ac_func innocuous_$ac_func
11664 /* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $ac_func (); below.
11666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667 <limits.h> exists even on freestanding compilers. */
11670 # include <limits.h>
11672 # include <assert.h>
11677 /* Override any gcc2 internal prototype to avoid an error. */
11682 /* We use char because int might match the return type of a gcc2
11683 builtin and then its argument prototype would still apply. */
11685 /* The GNU C library defines this for functions which it implements
11686 to always fail with ENOSYS. Some functions are actually named
11687 something starting with __ and the normal name is an alias. */
11688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11691 char (*f) () = $ac_func;
11700 return f != $ac_func;
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11707 (eval $ac_link) 2>conftest.er1
11709 grep -v '^ *+' conftest.er1 >conftest.err
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -z "$ac_c_werror_flag"
11715 || test ! -s conftest.err'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
11721 { ac_try='test -s conftest$ac_exeext'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 eval "$as_ac_var=yes"
11729 echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 eval "$as_ac_var=no"
11734 rm -f conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745 cat >>confdefs.h <<\_ACEOF
11746 #define HAVE_GETHOSTBYADDR_R 1
11749 # There are two different kinds of gethostbyaddr_r.
11750 # We look for the one that returns `int'.
11751 # Hopefully this check is robust enough.
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11762 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11765 cat >>confdefs.h <<\_ACEOF
11766 #define GETHOSTBYADDR_R_RETURNS_INT 1
11780 for ac_func in gethostname
11782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11783 echo "$as_me:$LINENO: checking for $ac_func" >&5
11784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11785 if eval "test \"\${$as_ac_var+set}\" = set"; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11788 if test x$gcc_no_link = xyes; then
11789 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11790 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11791 { (exit 1); exit 1; }; }
11793 cat >conftest.$ac_ext <<_ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11801 #define $ac_func innocuous_$ac_func
11803 /* System header to define __stub macros and hopefully few prototypes,
11804 which can conflict with char $ac_func (); below.
11805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11806 <limits.h> exists even on freestanding compilers. */
11809 # include <limits.h>
11811 # include <assert.h>
11816 /* Override any gcc2 internal prototype to avoid an error. */
11821 /* We use char because int might match the return type of a gcc2
11822 builtin and then its argument prototype would still apply. */
11824 /* The GNU C library defines this for functions which it implements
11825 to always fail with ENOSYS. Some functions are actually named
11826 something starting with __ and the normal name is an alias. */
11827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11830 char (*f) () = $ac_func;
11839 return f != $ac_func;
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>conftest.er1
11848 grep -v '^ *+' conftest.er1 >conftest.err
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_c_werror_flag"
11854 || test ! -s conftest.err'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 eval "$as_ac_var=yes"
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 eval "$as_ac_var=no"
11873 rm -f conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11878 if test `eval echo '${'$as_ac_var'}'` = yes; then
11879 cat >>confdefs.h <<_ACEOF
11880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884 cat >>confdefs.h <<\_ACEOF
11885 #define HAVE_GETHOSTNAME 1
11888 cat >conftest.$ac_ext <<_ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #include <unistd.h>
11897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11898 $EGREP "gethostname" >/dev/null 2>&1; then
11901 cat >>confdefs.h <<\_ACEOF
11902 #define HAVE_GETHOSTNAME_DECL 1
11913 for ac_func in usleep
11915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11916 echo "$as_me:$LINENO: checking for $ac_func" >&5
11917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11918 if eval "test \"\${$as_ac_var+set}\" = set"; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 if test x$gcc_no_link = xyes; then
11922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11924 { (exit 1); exit 1; }; }
11926 cat >conftest.$ac_ext <<_ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11934 #define $ac_func innocuous_$ac_func
11936 /* System header to define __stub macros and hopefully few prototypes,
11937 which can conflict with char $ac_func (); below.
11938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11939 <limits.h> exists even on freestanding compilers. */
11942 # include <limits.h>
11944 # include <assert.h>
11949 /* Override any gcc2 internal prototype to avoid an error. */
11954 /* We use char because int might match the return type of a gcc2
11955 builtin and then its argument prototype would still apply. */
11957 /* The GNU C library defines this for functions which it implements
11958 to always fail with ENOSYS. Some functions are actually named
11959 something starting with __ and the normal name is an alias. */
11960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11963 char (*f) () = $ac_func;
11972 return f != $ac_func;
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>conftest.er1
11981 grep -v '^ *+' conftest.er1 >conftest.err
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try='test -z "$ac_c_werror_flag"
11987 || test ! -s conftest.err'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest$ac_exeext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 eval "$as_ac_var=yes"
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 eval "$as_ac_var=no"
12006 rm -f conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12011 if test `eval echo '${'$as_ac_var'}'` = yes; then
12012 cat >>confdefs.h <<_ACEOF
12013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12016 cat >conftest.$ac_ext <<_ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 #include <unistd.h>
12025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12026 $EGREP "usleep" >/dev/null 2>&1; then
12029 cat >>confdefs.h <<\_ACEOF
12030 #define HAVE_USLEEP_DECL 1
12040 # Look for these functions in the thread library, but only bother
12041 # if using POSIX threads.
12042 if test "$THREADS" = posix; then
12044 LIBS="$LIBS $THREADLIBS"
12045 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12049 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_var+set}\" = set"; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 if test x$gcc_no_link = xyes; then
12058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12059 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12060 { (exit 1); exit 1; }; }
12062 cat >conftest.$ac_ext <<_ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12070 #define $ac_func innocuous_$ac_func
12072 /* System header to define __stub macros and hopefully few prototypes,
12073 which can conflict with char $ac_func (); below.
12074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075 <limits.h> exists even on freestanding compilers. */
12078 # include <limits.h>
12080 # include <assert.h>
12085 /* Override any gcc2 internal prototype to avoid an error. */
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12093 /* The GNU C library defines this for functions which it implements
12094 to always fail with ENOSYS. Some functions are actually named
12095 something starting with __ and the normal name is an alias. */
12096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12099 char (*f) () = $ac_func;
12108 return f != $ac_func;
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>conftest.er1
12117 grep -v '^ *+' conftest.er1 >conftest.err
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 eval "$as_ac_var=yes"
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 eval "$as_ac_var=no"
12142 rm -f conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12147 if test `eval echo '${'$as_ac_var'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12156 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12157 # Solaris 7 the name librt is preferred.
12159 for ac_func in sched_yield
12161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12162 echo "$as_me:$LINENO: checking for $ac_func" >&5
12163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12164 if eval "test \"\${$as_ac_var+set}\" = set"; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 if test x$gcc_no_link = xyes; then
12168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12170 { (exit 1); exit 1; }; }
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12180 #define $ac_func innocuous_$ac_func
12182 /* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char $ac_func (); below.
12184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185 <limits.h> exists even on freestanding compilers. */
12188 # include <limits.h>
12190 # include <assert.h>
12195 /* Override any gcc2 internal prototype to avoid an error. */
12200 /* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12203 /* The GNU C library defines this for functions which it implements
12204 to always fail with ENOSYS. Some functions are actually named
12205 something starting with __ and the normal name is an alias. */
12206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12209 char (*f) () = $ac_func;
12218 return f != $ac_func;
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12225 (eval $ac_link) 2>conftest.er1
12227 grep -v '^ *+' conftest.er1 >conftest.err
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag"
12233 || test ! -s conftest.err'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest$ac_exeext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 eval "$as_ac_var=yes"
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 eval "$as_ac_var=no"
12252 rm -f conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12257 if test `eval echo '${'$as_ac_var'}'` = yes; then
12258 cat >>confdefs.h <<_ACEOF
12259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12264 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12265 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12266 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 ac_check_lib_save_LIBS=$LIBS
12271 if test x$gcc_no_link = xyes; then
12272 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12273 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12274 { (exit 1); exit 1; }; }
12276 cat >conftest.$ac_ext <<_ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12283 /* Override any gcc2 internal prototype to avoid an error. */
12287 /* We use char because int might match the return type of a gcc2
12288 builtin and then its argument prototype would still apply. */
12289 char sched_yield ();
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300 (eval $ac_link) 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag"
12308 || test ! -s conftest.err'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_lib_rt_sched_yield=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_lib_rt_sched_yield=no
12327 rm -f conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12331 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12332 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12333 if test $ac_cv_lib_rt_sched_yield = yes; then
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_SCHED_YIELD 1
12339 THREADLIBS="$THREADLIBS -lrt"
12340 THREADSPEC="$THREADSPEC -lrt"
12343 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12344 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12345 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-lposix4 $LIBS"
12350 if test x$gcc_no_link = xyes; then
12351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12353 { (exit 1); exit 1; }; }
12355 cat >conftest.$ac_ext <<_ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12362 /* Override any gcc2 internal prototype to avoid an error. */
12366 /* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12368 char sched_yield ();
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>conftest.er1
12381 grep -v '^ *+' conftest.er1 >conftest.err
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_lib_posix4_sched_yield=yes
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_cv_lib_posix4_sched_yield=no
12406 rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12410 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12411 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12412 if test $ac_cv_lib_posix4_sched_yield = yes; then
12414 cat >>confdefs.h <<\_ACEOF
12415 #define HAVE_SCHED_YIELD 1
12418 THREADLIBS="$THREADLIBS -lposix4"
12419 THREADSPEC="$THREADSPEC -lposix4"
12428 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12429 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12430 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 ac_check_lib_save_LIBS=$LIBS
12435 if test x$gcc_no_link = xyes; then
12436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12438 { (exit 1); exit 1; }; }
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12447 /* Override any gcc2 internal prototype to avoid an error. */
12451 /* We use char because int might match the return type of a gcc2
12452 builtin and then its argument prototype would still apply. */
12453 char clock_gettime ();
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_cv_lib_rt_clock_gettime=yes
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 ac_cv_lib_rt_clock_gettime=no
12491 rm -f conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12493 LIBS=$ac_check_lib_save_LIBS
12495 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12496 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12497 if test $ac_cv_lib_rt_clock_gettime = yes; then
12500 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_CLOCK_GETTIME 1
12504 case "$THREADSPEC" in
12507 THREADSPEC="$THREADSPEC -lrt"
12508 THREADLIBS="$THREADLIBS -lrt"
12516 # We can save a little space at runtime if the mutex has m_count
12517 # or __m_count. This is a nice hack for Linux.
12518 cat >conftest.$ac_ext <<_ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 #include <pthread.h>
12529 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12558 cat >>confdefs.h <<\_ACEOF
12559 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12567 cat >conftest.$ac_ext <<_ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <pthread.h>
12578 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12607 cat >>confdefs.h <<\_ACEOF
12608 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12621 # We require a way to get the time.
12626 for ac_func in gettimeofday time ftime
12628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12629 echo "$as_me:$LINENO: checking for $ac_func" >&5
12630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12631 if eval "test \"\${$as_ac_var+set}\" = set"; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 if test x$gcc_no_link = xyes; then
12635 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12637 { (exit 1); exit 1; }; }
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12647 #define $ac_func innocuous_$ac_func
12649 /* System header to define __stub macros and hopefully few prototypes,
12650 which can conflict with char $ac_func (); below.
12651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12652 <limits.h> exists even on freestanding compilers. */
12655 # include <limits.h>
12657 # include <assert.h>
12662 /* Override any gcc2 internal prototype to avoid an error. */
12667 /* We use char because int might match the return type of a gcc2
12668 builtin and then its argument prototype would still apply. */
12670 /* The GNU C library defines this for functions which it implements
12671 to always fail with ENOSYS. Some functions are actually named
12672 something starting with __ and the normal name is an alias. */
12673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12676 char (*f) () = $ac_func;
12685 return f != $ac_func;
12690 rm -f conftest.$ac_objext conftest$ac_exeext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12692 (eval $ac_link) 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -z "$ac_c_werror_flag"
12700 || test ! -s conftest.err'
12701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702 (eval $ac_try) 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; } &&
12706 { ac_try='test -s conftest$ac_exeext'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 eval "$as_ac_var=yes"
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12717 eval "$as_ac_var=no"
12719 rm -f conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12724 if test `eval echo '${'$as_ac_var'}'` = yes; then
12725 cat >>confdefs.h <<_ACEOF
12726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12732 if test "$time_found" = no; then
12733 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12734 echo "$as_me: error: no function found to get the time" >&2;}
12735 { (exit 1); exit 1; }; }
12739 for ac_func in memmove
12741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12742 echo "$as_me:$LINENO: checking for $ac_func" >&5
12743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12744 if eval "test \"\${$as_ac_var+set}\" = set"; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 if test x$gcc_no_link = xyes; then
12748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12750 { (exit 1); exit 1; }; }
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12760 #define $ac_func innocuous_$ac_func
12762 /* System header to define __stub macros and hopefully few prototypes,
12763 which can conflict with char $ac_func (); below.
12764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12765 <limits.h> exists even on freestanding compilers. */
12768 # include <limits.h>
12770 # include <assert.h>
12775 /* Override any gcc2 internal prototype to avoid an error. */
12780 /* We use char because int might match the return type of a gcc2
12781 builtin and then its argument prototype would still apply. */
12783 /* The GNU C library defines this for functions which it implements
12784 to always fail with ENOSYS. Some functions are actually named
12785 something starting with __ and the normal name is an alias. */
12786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12789 char (*f) () = $ac_func;
12798 return f != $ac_func;
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805 (eval $ac_link) 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest$ac_exeext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 eval "$as_ac_var=yes"
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 eval "$as_ac_var=no"
12832 rm -f conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12837 if test `eval echo '${'$as_ac_var'}'` = yes; then
12838 cat >>confdefs.h <<_ACEOF
12839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12846 # We require memcpy.
12849 for ac_func in memcpy
12851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12852 echo "$as_me:$LINENO: checking for $ac_func" >&5
12853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12854 if eval "test \"\${$as_ac_var+set}\" = set"; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 if test x$gcc_no_link = xyes; then
12858 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12860 { (exit 1); exit 1; }; }
12862 cat >conftest.$ac_ext <<_ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12870 #define $ac_func innocuous_$ac_func
12872 /* System header to define __stub macros and hopefully few prototypes,
12873 which can conflict with char $ac_func (); below.
12874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12875 <limits.h> exists even on freestanding compilers. */
12878 # include <limits.h>
12880 # include <assert.h>
12885 /* Override any gcc2 internal prototype to avoid an error. */
12890 /* We use char because int might match the return type of a gcc2
12891 builtin and then its argument prototype would still apply. */
12893 /* The GNU C library defines this for functions which it implements
12894 to always fail with ENOSYS. Some functions are actually named
12895 something starting with __ and the normal name is an alias. */
12896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12899 char (*f) () = $ac_func;
12908 return f != $ac_func;
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>conftest.er1
12917 grep -v '^ *+' conftest.er1 >conftest.err
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -z "$ac_c_werror_flag"
12923 || test ! -s conftest.err'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest$ac_exeext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12935 eval "$as_ac_var=yes"
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 eval "$as_ac_var=no"
12942 rm -f conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12947 if test `eval echo '${'$as_ac_var'}'` = yes; then
12948 cat >>confdefs.h <<_ACEOF
12949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12955 if test "$memcpy_found" = no; then
12956 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12957 echo "$as_me: error: memcpy is required" >&2;}
12958 { (exit 1); exit 1; }; }
12960 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
12961 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 ac_check_lib_save_LIBS=$LIBS
12968 if test x$gcc_no_link = xyes; then
12969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12971 { (exit 1); exit 1; }; }
12973 cat >conftest.$ac_ext <<_ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12980 /* Override any gcc2 internal prototype to avoid an error. */
12984 /* We use char because int might match the return type of a gcc2
12985 builtin and then its argument prototype would still apply. */
12995 rm -f conftest.$ac_objext conftest$ac_exeext
12996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12997 (eval $ac_link) 2>conftest.er1
12999 grep -v '^ *+' conftest.er1 >conftest.err
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag"
13005 || test ! -s conftest.err'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 ac_cv_lib_dl_dlopen=yes
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13022 ac_cv_lib_dl_dlopen=no
13024 rm -f conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 LIBS=$ac_check_lib_save_LIBS
13028 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13029 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13030 if test $ac_cv_lib_dl_dlopen = yes; then
13033 cat >>confdefs.h <<\_ACEOF
13034 #define HAVE_DLOPEN 1
13039 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13040 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13041 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 ac_check_lib_save_LIBS=$LIBS
13046 if test x$gcc_no_link = xyes; then
13047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13049 { (exit 1); exit 1; }; }
13051 cat >conftest.$ac_ext <<_ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13058 /* Override any gcc2 internal prototype to avoid an error. */
13062 /* We use char because int might match the return type of a gcc2
13063 builtin and then its argument prototype would still apply. */
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075 (eval $ac_link) 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag"
13083 || test ! -s conftest.err'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_cv_lib_dld_dlopen=yes
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 ac_cv_lib_dld_dlopen=no
13102 rm -f conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13104 LIBS=$ac_check_lib_save_LIBS
13106 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13107 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13108 if test $ac_cv_lib_dld_dlopen = yes; then
13111 cat >>confdefs.h <<\_ACEOF
13112 #define HAVE_DLOPEN 1
13120 # Some library-finding code we stole from Tcl.
13121 #--------------------------------------------------------------------
13122 # Check for the existence of the -lsocket and -lnsl libraries.
13123 # The order here is important, so that they end up in the right
13124 # order in the command line generated by make. Here are some
13125 # special considerations:
13126 # 1. Use "connect" and "accept" to check for -lsocket, and
13127 # "gethostbyname" to check for -lnsl.
13128 # 2. Use each function name only once: can't redo a check because
13129 # autoconf caches the results of the last check and won't redo it.
13130 # 3. Use -lnsl and -lsocket only if they supply procedures that
13131 # aren't already present in the normal libraries. This is because
13132 # IRIX 5.2 has libraries, but they aren't needed and they're
13133 # bogus: they goof up name resolution if used.
13134 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13135 # To get around this problem, check for both libraries together
13136 # if -lsocket doesn't work by itself.
13137 #--------------------------------------------------------------------
13139 echo "$as_me:$LINENO: checking for socket libraries" >&5
13140 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13141 if test "${gcj_cv_lib_sockets+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 gcj_cv_lib_sockets=
13146 unset ac_cv_func_connect
13147 echo "$as_me:$LINENO: checking for connect" >&5
13148 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13149 if test "${ac_cv_func_connect+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 if test x$gcc_no_link = xyes; then
13153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13155 { (exit 1); exit 1; }; }
13157 cat >conftest.$ac_ext <<_ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13165 #define connect innocuous_connect
13167 /* System header to define __stub macros and hopefully few prototypes,
13168 which can conflict with char connect (); below.
13169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13170 <limits.h> exists even on freestanding compilers. */
13173 # include <limits.h>
13175 # include <assert.h>
13180 /* Override any gcc2 internal prototype to avoid an error. */
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13188 /* The GNU C library defines this for functions which it implements
13189 to always fail with ENOSYS. Some functions are actually named
13190 something starting with __ and the normal name is an alias. */
13191 #if defined (__stub_connect) || defined (__stub___connect)
13194 char (*f) () = connect;
13203 return f != connect;
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>conftest.er1
13212 grep -v '^ *+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest$ac_exeext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_func_connect=yes
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ac_cv_func_connect=no
13237 rm -f conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13240 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13241 echo "${ECHO_T}$ac_cv_func_connect" >&6
13242 if test $ac_cv_func_connect = yes; then
13248 if test "$gcj_checkSocket" = 1; then
13249 unset ac_cv_func_connect
13250 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13251 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13252 if test "${ac_cv_lib_socket_main+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 ac_check_lib_save_LIBS=$LIBS
13256 LIBS="-lsocket $LIBS"
13257 if test x$gcc_no_link = xyes; then
13258 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13260 { (exit 1); exit 1; }; }
13262 cat >conftest.$ac_ext <<_ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13278 rm -f conftest.$ac_objext conftest$ac_exeext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13280 (eval $ac_link) 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag"
13288 || test ! -s conftest.err'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest$ac_exeext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_cv_lib_socket_main=yes
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ac_cv_lib_socket_main=no
13307 rm -f conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13311 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13312 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13313 if test $ac_cv_lib_socket_main = yes; then
13314 gcj_cv_lib_sockets="-lsocket"
13320 if test "$gcj_checkBoth" = 1; then
13322 LIBS="$LIBS -lsocket -lnsl"
13323 unset ac_cv_func_accept
13324 echo "$as_me:$LINENO: checking for accept" >&5
13325 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13326 if test "${ac_cv_func_accept+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 if test x$gcc_no_link = xyes; then
13330 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13332 { (exit 1); exit 1; }; }
13334 cat >conftest.$ac_ext <<_ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13340 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13342 #define accept innocuous_accept
13344 /* System header to define __stub macros and hopefully few prototypes,
13345 which can conflict with char accept (); below.
13346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13347 <limits.h> exists even on freestanding compilers. */
13350 # include <limits.h>
13352 # include <assert.h>
13357 /* Override any gcc2 internal prototype to avoid an error. */
13362 /* We use char because int might match the return type of a gcc2
13363 builtin and then its argument prototype would still apply. */
13365 /* The GNU C library defines this for functions which it implements
13366 to always fail with ENOSYS. Some functions are actually named
13367 something starting with __ and the normal name is an alias. */
13368 #if defined (__stub_accept) || defined (__stub___accept)
13371 char (*f) () = accept;
13380 return f != accept;
13385 rm -f conftest.$ac_objext conftest$ac_exeext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387 (eval $ac_link) 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_func_accept=yes
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_func_accept=no
13414 rm -f conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13417 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13418 echo "${ECHO_T}$ac_cv_func_accept" >&6
13419 if test $ac_cv_func_accept = yes; then
13421 gcj_cv_lib_sockets="-lsocket -lnsl"
13424 unset ac_cv_func_accept
13427 unset ac_cv_func_gethostbyname
13429 LIBS="$LIBS $gcj_cv_lib_sockets"
13430 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13431 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13432 if test "${ac_cv_func_gethostbyname+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 if test x$gcc_no_link = xyes; then
13436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13438 { (exit 1); exit 1; }; }
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13448 #define gethostbyname innocuous_gethostbyname
13450 /* System header to define __stub macros and hopefully few prototypes,
13451 which can conflict with char gethostbyname (); below.
13452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13453 <limits.h> exists even on freestanding compilers. */
13456 # include <limits.h>
13458 # include <assert.h>
13461 #undef gethostbyname
13463 /* Override any gcc2 internal prototype to avoid an error. */
13468 /* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470 char gethostbyname ();
13471 /* The GNU C library defines this for functions which it implements
13472 to always fail with ENOSYS. Some functions are actually named
13473 something starting with __ and the normal name is an alias. */
13474 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13477 char (*f) () = gethostbyname;
13486 return f != gethostbyname;
13491 rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493 (eval $ac_link) 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest$ac_exeext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 ac_cv_func_gethostbyname=yes
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 ac_cv_func_gethostbyname=no
13520 rm -f conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13523 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13524 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13525 if test $ac_cv_func_gethostbyname = yes; then
13528 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13529 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13530 if test "${ac_cv_lib_nsl_main+set}" = set; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 ac_check_lib_save_LIBS=$LIBS
13535 if test x$gcc_no_link = xyes; then
13536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13538 { (exit 1); exit 1; }; }
13540 cat >conftest.$ac_ext <<_ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13556 rm -f conftest.$ac_objext conftest$ac_exeext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13558 (eval $ac_link) 2>conftest.er1
13560 grep -v '^ *+' conftest.er1 >conftest.err
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578 ac_cv_lib_nsl_main=yes
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_cv_lib_nsl_main=no
13585 rm -f conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587 LIBS=$ac_check_lib_save_LIBS
13589 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13590 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13591 if test $ac_cv_lib_nsl_main = yes; then
13592 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13597 unset ac_cv_func_gethostbyname
13601 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13602 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13603 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13605 if test "$with_system_zlib" = yes; then
13606 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13607 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13608 if test "${ac_cv_lib_z_deflate+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 ac_check_lib_save_LIBS=$LIBS
13613 if test x$gcc_no_link = xyes; then
13614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13616 { (exit 1); exit 1; }; }
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13625 /* Override any gcc2 internal prototype to avoid an error. */
13629 /* We use char because int might match the return type of a gcc2
13630 builtin and then its argument prototype would still apply. */
13640 rm -f conftest.$ac_objext conftest$ac_exeext
13641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13642 (eval $ac_link) 2>conftest.er1
13644 grep -v '^ *+' conftest.er1 >conftest.err
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
13649 { ac_try='test -z "$ac_c_werror_flag"
13650 || test ! -s conftest.err'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest$ac_exeext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_cv_lib_z_deflate=yes
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_cv_lib_z_deflate=no
13669 rm -f conftest.err conftest.$ac_objext \
13670 conftest$ac_exeext conftest.$ac_ext
13671 LIBS=$ac_check_lib_save_LIBS
13673 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13674 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13675 if test $ac_cv_lib_z_deflate = yes; then
13683 # Test for Gtk stuff, if asked for.
13684 if test "$use_gtk_awt" = yes; then
13688 if test -z "$PKG_CONFIG"; then
13689 # Extract the first word of "pkg-config", so it can be a program name with args.
13690 set dummy pkg-config; ac_word=$2
13691 echo "$as_me:$LINENO: checking for $ac_word" >&5
13692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13693 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 case $PKG_CONFIG in
13698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702 for as_dir in $PATH
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
13707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13708 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13715 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13719 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13721 if test -n "$PKG_CONFIG"; then
13722 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13723 echo "${ECHO_T}$PKG_CONFIG" >&6
13725 echo "$as_me:$LINENO: result: no" >&5
13726 echo "${ECHO_T}no" >&6
13731 if test "$PKG_CONFIG" = "no" ; then
13732 echo "*** The pkg-config script could not be found. Make sure it is"
13733 echo "*** in your path, or set the PKG_CONFIG environment variable"
13734 echo "*** to the full path to pkg-config."
13735 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13737 PKG_CONFIG_MIN_VERSION=0.9.0
13738 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13739 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13740 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13742 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13743 echo "$as_me:$LINENO: result: yes" >&5
13744 echo "${ECHO_T}yes" >&6
13747 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13748 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13749 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13750 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13751 echo "${ECHO_T}$GTK_CFLAGS" >&6
13753 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13754 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13755 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13756 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13757 echo "${ECHO_T}$GTK_LIBS" >&6
13761 ## If we have a custom action on failure, don't print errors, but
13762 ## do set a variable so people can do so.
13763 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13764 echo $GTK_PKG_ERRORS
13770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13775 if test $succeeded = yes; then
13778 { { 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
13779 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;}
13780 { (exit 1); exit 1; }; }
13789 if test -z "$PKG_CONFIG"; then
13790 # Extract the first word of "pkg-config", so it can be a program name with args.
13791 set dummy pkg-config; ac_word=$2
13792 echo "$as_me:$LINENO: checking for $ac_word" >&5
13793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 case $PKG_CONFIG in
13799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13806 test -z "$as_dir" && as_dir=.
13807 for ac_exec_ext in '' $ac_executable_extensions; do
13808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13816 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13820 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13822 if test -n "$PKG_CONFIG"; then
13823 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13824 echo "${ECHO_T}$PKG_CONFIG" >&6
13826 echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6
13832 if test "$PKG_CONFIG" = "no" ; then
13833 echo "*** The pkg-config script could not be found. Make sure it is"
13834 echo "*** in your path, or set the PKG_CONFIG environment variable"
13835 echo "*** to the full path to pkg-config."
13836 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13838 PKG_CONFIG_MIN_VERSION=0.9.0
13839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13840 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13841 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13843 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13844 echo "$as_me:$LINENO: result: yes" >&5
13845 echo "${ECHO_T}yes" >&6
13848 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13849 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13850 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13851 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13852 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13854 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13855 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13856 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13857 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13858 echo "${ECHO_T}$GLIB_LIBS" >&6
13862 ## If we have a custom action on failure, don't print errors, but
13863 ## do set a variable so people can do so.
13864 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13865 echo $GLIB_PKG_ERRORS
13871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13876 if test $succeeded = yes; then
13879 { { 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
13880 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;}
13881 { (exit 1); exit 1; }; }
13890 if test -z "$PKG_CONFIG"; then
13891 # Extract the first word of "pkg-config", so it can be a program name with args.
13892 set dummy pkg-config; ac_word=$2
13893 echo "$as_me:$LINENO: checking for $ac_word" >&5
13894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13895 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 case $PKG_CONFIG in
13900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904 for as_dir in $PATH
13907 test -z "$as_dir" && as_dir=.
13908 for ac_exec_ext in '' $ac_executable_extensions; do
13909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13923 if test -n "$PKG_CONFIG"; then
13924 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13925 echo "${ECHO_T}$PKG_CONFIG" >&6
13927 echo "$as_me:$LINENO: result: no" >&5
13928 echo "${ECHO_T}no" >&6
13933 if test "$PKG_CONFIG" = "no" ; then
13934 echo "*** The pkg-config script could not be found. Make sure it is"
13935 echo "*** in your path, or set the PKG_CONFIG environment variable"
13936 echo "*** to the full path to pkg-config."
13937 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13939 PKG_CONFIG_MIN_VERSION=0.9.0
13940 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13941 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13942 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13944 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13945 echo "$as_me:$LINENO: result: yes" >&5
13946 echo "${ECHO_T}yes" >&6
13949 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13950 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13951 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13952 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13953 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13955 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13956 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13957 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13958 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13959 echo "${ECHO_T}$LIBART_LIBS" >&6
13963 ## If we have a custom action on failure, don't print errors, but
13964 ## do set a variable so people can do so.
13965 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13966 echo $LIBART_PKG_ERRORS
13972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13977 if test $succeeded = yes; then
13980 { { 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
13981 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;}
13982 { (exit 1); exit 1; }; }
13988 # We require the XTest Extension to support java.awt.Robot.
13989 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13990 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13991 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lXtst ${X_LIBS} $LIBS"
13996 if test x$gcc_no_link = xyes; then
13997 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13999 { (exit 1); exit 1; }; }
14001 cat >conftest.$ac_ext <<_ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14008 /* Override any gcc2 internal prototype to avoid an error. */
14012 /* We use char because int might match the return type of a gcc2
14013 builtin and then its argument prototype would still apply. */
14014 char XTestQueryExtension ();
14018 XTestQueryExtension ();
14023 rm -f conftest.$ac_objext conftest$ac_exeext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14025 (eval $ac_link) 2>conftest.er1
14027 grep -v '^ *+' conftest.er1 >conftest.err
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try='test -s conftest$ac_exeext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_cv_lib_Xtst_XTestQueryExtension=yes
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_cv_lib_Xtst_XTestQueryExtension=no
14052 rm -f conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 LIBS=$ac_check_lib_save_LIBS
14056 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14057 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14058 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14061 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14062 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14063 { (exit 1); exit 1; }; }
14068 # On Solaris, and maybe other architectures, the Boehm collector
14070 if test "$GC" = boehm; then
14071 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14072 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14073 if test "${ac_cv_lib_dl_main+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 ac_check_lib_save_LIBS=$LIBS
14078 if test x$gcc_no_link = xyes; then
14079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14081 { (exit 1); exit 1; }; }
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14099 rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14101 (eval $ac_link) 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag"
14109 || test ! -s conftest.err'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_cv_lib_dl_main=yes
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 ac_cv_lib_dl_main=no
14128 rm -f conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14130 LIBS=$ac_check_lib_save_LIBS
14132 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14133 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14134 if test $ac_cv_lib_dl_main = yes; then
14135 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14141 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14143 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14144 *) CLASSPATH_SEPARATOR=':' ;;
14148 # We must search the source tree for java.lang, since we still don't
14149 # have libgcj.jar nor java/lang/*.class
14150 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14151 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14153 # Since some classes depend on this one, we need its source available
14154 # before we can do any GCJ compilation test :-(
14155 if test ! -f gnu/classpath/Configuration.java; then
14156 test -d gnu || mkdir gnu
14157 test -d gnu/classpath || mkdir gnu/classpath
14158 # Note that it is not crucial that all the values here be correct.
14159 sed -e "s,@prefix@,$prefix," \
14160 -e "s,@VERSION@,$VERSION," \
14161 -e "s,@LIBDEBUG@,false," \
14162 -e "s,@INIT_LOAD_LIBRARY@,false," \
14163 -e "s,@@,$LIBGCJDEBUG," \
14164 -e "s,@default_toolkit@,$TOOLKIT," \
14165 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14166 -e "s,@GTK_CAIRO_ENABLED@,false," \
14167 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14168 > gnu/classpath/Configuration.java
14169 # We do not want to redirect the output of the grep below to /dev/null,
14170 # but we add /dev/null to the input list so that grep will print the
14171 # filename of Configuration.java in case it finds any matches.
14172 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14173 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14174 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14175 { (exit 1); exit 1; }; }
14179 if test -n "$ac_tool_prefix"; then
14180 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14181 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14182 echo "$as_me:$LINENO: checking for $ac_word" >&5
14183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14184 if test "${ac_cv_prog_GCJ+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 if test -n "$GCJ"; then
14188 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14206 GCJ=$ac_cv_prog_GCJ
14207 if test -n "$GCJ"; then
14208 echo "$as_me:$LINENO: result: $GCJ" >&5
14209 echo "${ECHO_T}$GCJ" >&6
14211 echo "$as_me:$LINENO: result: no" >&5
14212 echo "${ECHO_T}no" >&6
14216 if test -z "$ac_cv_prog_GCJ"; then
14218 # Extract the first word of "gcj", so it can be a program name with args.
14219 set dummy gcj; ac_word=$2
14220 echo "$as_me:$LINENO: checking for $ac_word" >&5
14221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14222 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 if test -n "$ac_ct_GCJ"; then
14226 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229 for as_dir in $PATH
14232 test -z "$as_dir" && as_dir=.
14233 for ac_exec_ext in '' $ac_executable_extensions; do
14234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14235 ac_cv_prog_ac_ct_GCJ="gcj"
14236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14242 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14245 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14246 if test -n "$ac_ct_GCJ"; then
14247 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14248 echo "${ECHO_T}$ac_ct_GCJ" >&6
14250 echo "$as_me:$LINENO: result: no" >&5
14251 echo "${ECHO_T}no" >&6
14256 GCJ="$ac_cv_prog_GCJ"
14259 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14265 rm -f gnu/classpath/Configuration.java
14267 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14269 echo "$as_me:$LINENO: checking for void *" >&5
14270 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14271 if test "${ac_cv_type_void_p+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14286 if (sizeof (void *))
14292 rm -f conftest.$ac_objext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294 (eval $ac_compile) 2>conftest.er1
14296 grep -v '^ *+' conftest.er1 >conftest.err
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_c_werror_flag"
14302 || test ! -s conftest.err'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; } &&
14308 { ac_try='test -s conftest.$ac_objext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_type_void_p=yes
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ac_cv_type_void_p=no
14321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14323 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14324 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14326 echo "$as_me:$LINENO: checking size of void *" >&5
14327 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14328 if test "${ac_cv_sizeof_void_p+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 if test "$ac_cv_type_void_p" = yes; then
14332 # The cast to unsigned long works around a bug in the HP C Compiler
14333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14335 # This bug is HP SR number 8606223364.
14336 if test "$cross_compiling" = yes; then
14337 # Depending upon the size, compute the lo and hi bounds.
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 $ac_includes_default
14348 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1 >conftest.err
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14379 cat >conftest.$ac_ext <<_ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14389 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14400 grep -v '^ *+' conftest.er1 >conftest.err
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_hi=$ac_mid; break
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_lo=`expr $ac_mid + 1`
14424 if test $ac_lo -le $ac_mid; then
14428 ac_mid=`expr 2 '*' $ac_mid + 1`
14430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 cat >conftest.$ac_ext <<_ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 $ac_includes_default
14446 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14453 rm -f conftest.$ac_objext
14454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14455 (eval $ac_compile) 2>conftest.er1
14457 grep -v '^ *+' conftest.er1 >conftest.err
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -z "$ac_c_werror_flag"
14463 || test ! -s conftest.err'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; } &&
14469 { ac_try='test -s conftest.$ac_objext'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14477 cat >conftest.$ac_ext <<_ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 $ac_includes_default
14487 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14494 rm -f conftest.$ac_objext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14496 (eval $ac_compile) 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag"
14504 || test ! -s conftest.err'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; } &&
14510 { ac_try='test -s conftest.$ac_objext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_lo=$ac_mid; break
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_hi=`expr '(' $ac_mid ')' - 1`
14522 if test $ac_mid -le $ac_hi; then
14526 ac_mid=`expr 2 '*' $ac_mid`
14528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539 # Binary search between lo and hi bounds.
14540 while test "x$ac_lo" != "x$ac_hi"; do
14541 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 $ac_includes_default
14552 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14559 rm -f conftest.$ac_objext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14561 (eval $ac_compile) 2>conftest.er1
14563 grep -v '^ *+' conftest.er1 >conftest.err
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_c_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_lo=`expr '(' $ac_mid ')' + 1`
14588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14591 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14592 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14593 See \`config.log' for more details." >&5
14594 echo "$as_me: error: cannot compute sizeof (void *), 77
14595 See \`config.log' for more details." >&2;}
14596 { (exit 1); exit 1; }; } ;;
14599 if test "$cross_compiling" = yes; then
14600 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14601 See \`config.log' for more details." >&5
14602 echo "$as_me: error: cannot run test program while cross compiling
14603 See \`config.log' for more details." >&2;}
14604 { (exit 1); exit 1; }; }
14606 cat >conftest.$ac_ext <<_ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 $ac_includes_default
14613 long longval () { return (long) (sizeof (void *)); }
14614 unsigned long ulongval () { return (long) (sizeof (void *)); }
14616 #include <stdlib.h>
14621 FILE *f = fopen ("conftest.val", "w");
14624 if (((long) (sizeof (void *))) < 0)
14626 long i = longval ();
14627 if (i != ((long) (sizeof (void *))))
14629 fprintf (f, "%ld\n", i);
14633 unsigned long i = ulongval ();
14634 if (i != ((long) (sizeof (void *))))
14636 fprintf (f, "%lu\n", i);
14638 exit (ferror (f) || fclose (f) != 0);
14644 rm -f conftest$ac_exeext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14646 (eval $ac_link) 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_cv_sizeof_void_p=`cat conftest.val`
14657 echo "$as_me: program exited with status $ac_status" >&5
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 ( exit $ac_status )
14662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14663 See \`config.log' for more details." >&5
14664 echo "$as_me: error: cannot compute sizeof (void *), 77
14665 See \`config.log' for more details." >&2;}
14666 { (exit 1); exit 1; }; }
14668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14673 ac_cv_sizeof_void_p=0
14676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14677 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14678 cat >>confdefs.h <<_ACEOF
14679 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14684 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14685 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14686 if test "${ac_cv_c_bigendian+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 # See if sys/param.h defines the BYTE_ORDER macro.
14690 cat >conftest.$ac_ext <<_ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 #include <sys/types.h>
14697 #include <sys/param.h>
14702 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14703 bogus endian macros
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>conftest.er1
14714 grep -v '^ *+' conftest.er1 >conftest.err
14716 cat conftest.err >&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } &&
14719 { ac_try='test -z "$ac_c_werror_flag"
14720 || test ! -s conftest.err'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; } &&
14726 { ac_try='test -s conftest.$ac_objext'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 # It does; now see whether it defined to BIG_ENDIAN or not.
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 #include <sys/types.h>
14740 #include <sys/param.h>
14745 #if BYTE_ORDER != BIG_ENDIAN
14753 rm -f conftest.$ac_objext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14755 (eval $ac_compile) 2>conftest.er1
14757 grep -v '^ *+' conftest.er1 >conftest.err
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_c_werror_flag"
14763 || test ! -s conftest.err'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest.$ac_objext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_cv_c_bigendian=yes
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_cv_c_bigendian=no
14782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 # It does not; compile a test program.
14788 if test "$cross_compiling" = yes; then
14789 # try to guess the endianness by grepping values into an object file
14790 ac_cv_c_bigendian=unknown
14791 cat >conftest.$ac_ext <<_ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14798 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14799 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14800 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14801 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14802 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14806 _ascii (); _ebcdic ();
14811 rm -f conftest.$ac_objext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14813 (eval $ac_compile) 2>conftest.er1
14815 grep -v '^ *+' conftest.er1 >conftest.err
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -z "$ac_c_werror_flag"
14821 || test ! -s conftest.err'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; } &&
14827 { ac_try='test -s conftest.$ac_objext'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14834 ac_cv_c_bigendian=yes
14836 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14837 if test "$ac_cv_c_bigendian" = unknown; then
14838 ac_cv_c_bigendian=no
14840 # finding both strings is unlikely to happen, but who knows?
14841 ac_cv_c_bigendian=unknown
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14851 cat >conftest.$ac_ext <<_ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14860 /* Are we little or big endian? From Harbison&Steele. */
14864 char c[sizeof (long)];
14867 exit (u.c[sizeof (long) - 1] == 1);
14870 rm -f conftest$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 ac_cv_c_bigendian=no
14883 echo "$as_me: program exited with status $ac_status" >&5
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 ( exit $ac_status )
14888 ac_cv_c_bigendian=yes
14890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14895 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14896 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14897 case $ac_cv_c_bigendian in
14900 cat >>confdefs.h <<\_ACEOF
14901 #define WORDS_BIGENDIAN 1
14907 { { echo "$as_me:$LINENO: error: unknown endianness
14908 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14909 echo "$as_me: error: unknown endianness
14910 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14911 { (exit 1); exit 1; }; } ;;
14919 if test -z "$ZLIBSPEC"; then
14920 # Use zlib from the GCC tree.
14921 ZINCS='-I$(top_srcdir)/../zlib'
14922 ZLIBS=../zlib/libzgcj_convenience.la
14925 SYS_ZLIBS="$ZLIBSPEC"
14938 if test "$NATIVE" = yes; then
14948 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14949 NEEDS_DATA_START_TRUE=
14950 NEEDS_DATA_START_FALSE='#'
14952 NEEDS_DATA_START_TRUE='#'
14953 NEEDS_DATA_START_FALSE=
14958 # Process the option "--enable-version-specific-runtime-libs"
14959 # Calculate toolexeclibdir
14960 case ${version_specific_libs} in
14962 # Need the gcc compiler version to know where to install libraries
14963 # and header files if --enable-version-specific-runtime-libs option
14965 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14966 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14967 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14968 toolexeclibdir=$toolexecmainlibdir
14971 if test -n "$with_cross_host" &&
14972 test x"$with_cross_host" != x"no"; then
14973 # Install a library built with a cross compiler in tooldir, not libdir.
14974 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14975 toolexecmainlibdir='$(toolexecdir)/lib'
14977 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14978 toolexecmainlibdir='$(libdir)'
14980 multi_os_directory=`$CC -print-multi-os-directory`
14981 case $multi_os_directory in
14982 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14983 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14991 # Determine where the standard .db file is found.
14992 multi_os_directory=`$CC -print-multi-os-directory`
14993 case $multi_os_directory in
14994 .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
14995 *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
14999 # Determine gcj version number.
15000 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15001 GCJVERSION=$gcjversion
15004 cat >>confdefs.h <<_ACEOF
15005 #define GCJVERSION "$GCJVERSION"
15010 cat >>confdefs.h <<\_ACEOF
15011 #define JV_VERSION "1.4.2"
15015 cat >>confdefs.h <<\_ACEOF
15016 #define JV_API_VERSION "1.4"
15021 case "${with_gxx_include_dir}" in
15023 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15024 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15025 { (exit 1); exit 1; }; }
15028 case "${enable_version_specific_runtime_libs}" in
15029 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15031 libstdcxx_incdir='c++/$(gcc_version)'
15032 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
15034 *) gxx_include_dir=${with_gxx_include_dir} ;;
15040 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15041 # On that system, sys/ioctl.h will not include sys/filio.h unless
15042 # BSD_COMP is defined; just including sys/filio.h is simpler.
15043 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15044 # for now. If you change this, you also must update natFile.cc.
15066 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15067 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15068 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15069 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15070 dirent.h sys/rw_lock.h
15072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15074 echo "$as_me:$LINENO: checking for $ac_header" >&5
15075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15082 # Is the header compilable?
15083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15085 cat >conftest.$ac_ext <<_ACEOF
15088 cat confdefs.h >>conftest.$ac_ext
15089 cat >>conftest.$ac_ext <<_ACEOF
15090 /* end confdefs.h. */
15091 $ac_includes_default
15092 #include <$ac_header>
15094 rm -f conftest.$ac_objext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15096 (eval $ac_compile) 2>conftest.er1
15098 grep -v '^ *+' conftest.er1 >conftest.err
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -z "$ac_c_werror_flag"
15104 || test ! -s conftest.err'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest.$ac_objext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_header_compiler=yes
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15121 ac_header_compiler=no
15123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15125 echo "${ECHO_T}$ac_header_compiler" >&6
15127 # Is the header present?
15128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15130 cat >conftest.$ac_ext <<_ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 #include <$ac_header>
15138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } >/dev/null; then
15146 if test -s conftest.err; then
15147 ac_cpp_err=$ac_c_preproc_warn_flag
15148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15155 if test -z "$ac_cpp_err"; then
15156 ac_header_preproc=yes
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_header_preproc=no
15163 rm -f conftest.err conftest.$ac_ext
15164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15165 echo "${ECHO_T}$ac_header_preproc" >&6
15167 # So? What about this header?
15168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15174 ac_header_preproc=yes
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15191 ## ---------------------------------- ##
15192 ## Report this to the libjava lists. ##
15193 ## ---------------------------------- ##
15196 sed "s/^/$as_me: WARNING: /" >&2
15199 echo "$as_me:$LINENO: checking for $ac_header" >&5
15200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 eval "$as_ac_Header=\$ac_header_preproc"
15206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15211 cat >>confdefs.h <<_ACEOF
15212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15220 for ac_header in inttypes.h
15222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15224 echo "$as_me:$LINENO: checking for $ac_header" >&5
15225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15232 # Is the header compilable?
15233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 $ac_includes_default
15242 #include <$ac_header>
15244 rm -f conftest.$ac_objext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246 (eval $ac_compile) 2>conftest.er1
15248 grep -v '^ *+' conftest.er1 >conftest.err
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try='test -z "$ac_c_werror_flag"
15254 || test ! -s conftest.err'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try='test -s conftest.$ac_objext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_header_compiler=yes
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15271 ac_header_compiler=no
15273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15275 echo "${ECHO_T}$ac_header_compiler" >&6
15277 # Is the header present?
15278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15280 cat >conftest.$ac_ext <<_ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 #include <$ac_header>
15288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15291 grep -v '^ *+' conftest.er1 >conftest.err
15293 cat conftest.err >&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } >/dev/null; then
15296 if test -s conftest.err; then
15297 ac_cpp_err=$ac_c_preproc_warn_flag
15298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15305 if test -z "$ac_cpp_err"; then
15306 ac_header_preproc=yes
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 ac_header_preproc=no
15313 rm -f conftest.err conftest.$ac_ext
15314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15315 echo "${ECHO_T}$ac_header_preproc" >&6
15317 # So? What about this header?
15318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15324 ac_header_preproc=yes
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15341 ## ---------------------------------- ##
15342 ## Report this to the libjava lists. ##
15343 ## ---------------------------------- ##
15346 sed "s/^/$as_me: WARNING: /" >&2
15349 echo "$as_me:$LINENO: checking for $ac_header" >&5
15350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15354 eval "$as_ac_Header=\$ac_header_preproc"
15356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15361 cat >>confdefs.h <<_ACEOF
15362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15366 cat >>confdefs.h <<\_ACEOF
15367 #define HAVE_INTTYPES_H 1
15371 cat >>confdefs.h <<\_ACEOF
15372 #define JV_HAVE_INTTYPES_H 1
15380 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15381 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15382 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 cat >conftest.$ac_ext <<_ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15391 #include <sys/types.h>
15392 #include <sys/wait.h>
15393 #ifndef WEXITSTATUS
15394 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15397 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15405 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15410 rm -f conftest.$ac_objext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15412 (eval $ac_compile) 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_c_werror_flag"
15420 || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest.$ac_objext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_cv_header_sys_wait_h=yes
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_cv_header_sys_wait_h=no
15439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15441 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15442 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15443 if test $ac_cv_header_sys_wait_h = yes; then
15445 cat >>confdefs.h <<\_ACEOF
15446 #define HAVE_SYS_WAIT_H 1
15452 echo "$as_me:$LINENO: checking for ssize_t" >&5
15453 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15454 if test "${ac_cv_type_ssize_t+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 cat >conftest.$ac_ext <<_ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463 $ac_includes_default
15469 if (sizeof (ssize_t))
15475 rm -f conftest.$ac_objext
15476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477 (eval $ac_compile) 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag"
15485 || test ! -s conftest.err'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; } &&
15491 { ac_try='test -s conftest.$ac_objext'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; }; then
15497 ac_cv_type_ssize_t=yes
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 ac_cv_type_ssize_t=no
15504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15506 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15507 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15508 if test $ac_cv_type_ssize_t = yes; then
15512 cat >>confdefs.h <<_ACEOF
15513 #define ssize_t int
15519 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15520 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15521 cat >conftest.$ac_ext <<_ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 #include <sys/types.h>
15529 #include <stdlib.h>
15530 #include <stddef.h>
15532 #if HAVE_NETINET_IN_H
15533 #include <netinet/in.h>
15543 rm -f conftest.$ac_objext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>conftest.er1
15547 grep -v '^ *+' conftest.er1 >conftest.err
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -z "$ac_c_werror_flag"
15553 || test ! -s conftest.err'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try='test -s conftest.$ac_objext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15566 cat >>confdefs.h <<\_ACEOF
15567 #define HAVE_IN_ADDR_T 1
15570 echo "$as_me:$LINENO: result: yes" >&5
15571 echo "${ECHO_T}yes" >&6
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 echo "$as_me:$LINENO: result: no" >&5
15577 echo "${ECHO_T}no" >&6
15579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15581 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15582 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15583 cat >conftest.$ac_ext <<_ACEOF
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15589 #include <netinet/in.h>
15593 struct ip_mreq mreq;
15598 rm -f conftest.$ac_objext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15600 (eval $ac_compile) 2>conftest.er1
15602 grep -v '^ *+' conftest.er1 >conftest.err
15604 cat conftest.err >&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
15607 { ac_try='test -z "$ac_c_werror_flag"
15608 || test ! -s conftest.err'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; } &&
15614 { ac_try='test -s conftest.$ac_objext'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15621 cat >>confdefs.h <<\_ACEOF
15622 #define HAVE_STRUCT_IP_MREQ 1
15625 echo "$as_me:$LINENO: result: yes" >&5
15626 echo "${ECHO_T}yes" >&6
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 echo "$as_me:$LINENO: result: no" >&5
15632 echo "${ECHO_T}no" >&6
15634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15636 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15637 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <netinet/in.h>
15648 struct ipv6_mreq mreq6;
15653 rm -f conftest.$ac_objext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655 (eval $ac_compile) 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -z "$ac_c_werror_flag"
15663 || test ! -s conftest.err'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15676 cat >>confdefs.h <<\_ACEOF
15677 #define HAVE_STRUCT_IPV6_MREQ 1
15680 echo "$as_me:$LINENO: result: yes" >&5
15681 echo "${ECHO_T}yes" >&6
15683 echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15686 echo "$as_me:$LINENO: result: no" >&5
15687 echo "${ECHO_T}no" >&6
15689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15691 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15692 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15693 cat >conftest.$ac_ext <<_ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15699 #include <netinet/in.h>
15703 struct sockaddr_in6 addr6;
15708 rm -f conftest.$ac_objext
15709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15710 (eval $ac_compile) 2>conftest.er1
15712 grep -v '^ *+' conftest.er1 >conftest.err
15714 cat conftest.err >&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } &&
15717 { ac_try='test -z "$ac_c_werror_flag"
15718 || test ! -s conftest.err'
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; } &&
15724 { ac_try='test -s conftest.$ac_objext'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_INET6 1
15735 echo "$as_me:$LINENO: result: yes" >&5
15736 echo "${ECHO_T}yes" >&6
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 echo "$as_me:$LINENO: result: no" >&5
15742 echo "${ECHO_T}no" >&6
15744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15746 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15747 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15748 cat >conftest.$ac_ext <<_ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 #define _POSIX_PII_SOCKET
15755 #include <sys/types.h>
15756 #include <sys/socket.h>
15765 rm -f conftest.$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>conftest.er1
15769 grep -v '^ *+' conftest.er1 >conftest.err
15771 cat conftest.err >&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } &&
15774 { ac_try='test -z "$ac_c_werror_flag"
15775 || test ! -s conftest.err'
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; } &&
15781 { ac_try='test -s conftest.$ac_objext'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15788 cat >>confdefs.h <<\_ACEOF
15789 #define HAVE_SOCKLEN_T 1
15792 echo "$as_me:$LINENO: result: yes" >&5
15793 echo "${ECHO_T}yes" >&6
15795 echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 echo "$as_me:$LINENO: result: no" >&5
15799 echo "${ECHO_T}no" >&6
15801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15803 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15804 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15815 struct tm tim; tim.tm_gmtoff = 0;
15820 rm -f conftest.$ac_objext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15822 (eval $ac_compile) 2>conftest.er1
15824 grep -v '^ *+' conftest.er1 >conftest.err
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_c_werror_flag"
15830 || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try='test -s conftest.$ac_objext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15843 cat >>confdefs.h <<\_ACEOF
15844 #define STRUCT_TM_HAS_GMTOFF 1
15847 echo "$as_me:$LINENO: result: yes" >&5
15848 echo "${ECHO_T}yes" >&6
15850 echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 echo "$as_me:$LINENO: result: no" >&5
15854 echo "${ECHO_T}no" >&6
15855 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15856 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15857 cat >conftest.$ac_ext <<_ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15867 void i(){long z2 = 2*timezone;}
15872 rm -f conftest.$ac_objext
15873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15874 (eval $ac_compile) 2>conftest.er1
15876 grep -v '^ *+' conftest.er1 >conftest.err
15878 cat conftest.err >&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -z "$ac_c_werror_flag"
15882 || test ! -s conftest.err'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; } &&
15888 { ac_try='test -s conftest.$ac_objext'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
15895 cat >>confdefs.h <<\_ACEOF
15896 #define HAVE_TIMEZONE 1
15899 echo "$as_me:$LINENO: result: yes" >&5
15900 echo "${ECHO_T}yes" >&6
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6
15907 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15908 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15919 long z2 = _timezone;
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926 (eval $ac_compile) 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try='test -z "$ac_c_werror_flag"
15934 || test ! -s conftest.err'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest.$ac_objext'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15947 cat >>confdefs.h <<\_ACEOF
15948 #define HAVE_UNDERSCORE_TIMEZONE 1
15951 echo "$as_me:$LINENO: result: yes" >&5
15952 echo "${ECHO_T}yes" >&6
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15957 echo "$as_me:$LINENO: result: no" >&5
15958 echo "${ECHO_T}no" >&6
15960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15966 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15967 # for constant arguments. Useless!
15968 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15969 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15970 if test "${ac_cv_working_alloca_h+set}" = set; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15973 if test x$gcc_no_link = xyes; then
15974 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15976 { (exit 1); exit 1; }; }
15978 cat >conftest.$ac_ext <<_ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 #include <alloca.h>
15988 char *p = (char *) alloca (2 * sizeof (int));
15993 rm -f conftest.$ac_objext conftest$ac_exeext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15995 (eval $ac_link) 2>conftest.er1
15997 grep -v '^ *+' conftest.er1 >conftest.err
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try='test -z "$ac_c_werror_flag"
16003 || test ! -s conftest.err'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; } &&
16009 { ac_try='test -s conftest$ac_exeext'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_cv_working_alloca_h=yes
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_cv_working_alloca_h=no
16022 rm -f conftest.err conftest.$ac_objext \
16023 conftest$ac_exeext conftest.$ac_ext
16025 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16026 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16027 if test $ac_cv_working_alloca_h = yes; then
16029 cat >>confdefs.h <<\_ACEOF
16030 #define HAVE_ALLOCA_H 1
16035 echo "$as_me:$LINENO: checking for alloca" >&5
16036 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16037 if test "${ac_cv_func_alloca_works+set}" = set; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 if test x$gcc_no_link = xyes; then
16041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16043 { (exit 1); exit 1; }; }
16045 cat >conftest.$ac_ext <<_ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16052 # define alloca __builtin_alloca
16055 # include <malloc.h>
16056 # define alloca _alloca
16059 # include <alloca.h>
16064 # ifndef alloca /* predefined by HP cc +Olibcalls */
16075 char *p = (char *) alloca (1);
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16082 (eval $ac_link) 2>conftest.er1
16084 grep -v '^ *+' conftest.er1 >conftest.err
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -z "$ac_c_werror_flag"
16090 || test ! -s conftest.err'
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; } &&
16096 { ac_try='test -s conftest$ac_exeext'
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; }; then
16102 ac_cv_func_alloca_works=yes
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 ac_cv_func_alloca_works=no
16109 rm -f conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16112 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16113 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16115 if test $ac_cv_func_alloca_works = yes; then
16117 cat >>confdefs.h <<\_ACEOF
16118 #define HAVE_ALLOCA 1
16122 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16123 # that cause trouble. Some versions do not even contain alloca or
16124 # contain a buggy version. If you still want to use their alloca,
16125 # use ar to extract alloca.o from them instead of compiling alloca.c.
16127 ALLOCA=alloca.$ac_objext
16129 cat >>confdefs.h <<\_ACEOF
16134 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16135 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16136 if test "${ac_cv_os_cray+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 cat >conftest.$ac_ext <<_ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 #if defined(CRAY) && ! defined(CRAY2)
16152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16153 $EGREP "webecray" >/dev/null 2>&1; then
16161 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16162 echo "${ECHO_T}$ac_cv_os_cray" >&6
16163 if test $ac_cv_os_cray = yes; then
16164 for ac_func in _getb67 GETB67 getb67; do
16165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16166 echo "$as_me:$LINENO: checking for $ac_func" >&5
16167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16168 if eval "test \"\${$as_ac_var+set}\" = set"; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 if test x$gcc_no_link = xyes; then
16172 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16173 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16174 { (exit 1); exit 1; }; }
16176 cat >conftest.$ac_ext <<_ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16184 #define $ac_func innocuous_$ac_func
16186 /* System header to define __stub macros and hopefully few prototypes,
16187 which can conflict with char $ac_func (); below.
16188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16189 <limits.h> exists even on freestanding compilers. */
16192 # include <limits.h>
16194 # include <assert.h>
16199 /* Override any gcc2 internal prototype to avoid an error. */
16204 /* We use char because int might match the return type of a gcc2
16205 builtin and then its argument prototype would still apply. */
16207 /* The GNU C library defines this for functions which it implements
16208 to always fail with ENOSYS. Some functions are actually named
16209 something starting with __ and the normal name is an alias. */
16210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16213 char (*f) () = $ac_func;
16222 return f != $ac_func;
16227 rm -f conftest.$ac_objext conftest$ac_exeext
16228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16229 (eval $ac_link) 2>conftest.er1
16231 grep -v '^ *+' conftest.er1 >conftest.err
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } &&
16236 { ac_try='test -z "$ac_c_werror_flag"
16237 || test ! -s conftest.err'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; } &&
16243 { ac_try='test -s conftest$ac_exeext'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 eval "$as_ac_var=yes"
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 eval "$as_ac_var=no"
16256 rm -f conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
16259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16261 if test `eval echo '${'$as_ac_var'}'` = yes; then
16263 cat >>confdefs.h <<_ACEOF
16264 #define CRAY_STACKSEG_END $ac_func
16273 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16274 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16275 if test "${ac_cv_c_stack_direction+set}" = set; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16278 if test "$cross_compiling" = yes; then
16279 ac_cv_c_stack_direction=0
16281 cat >conftest.$ac_ext <<_ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16288 find_stack_direction ()
16290 static char *addr = 0;
16295 return find_stack_direction ();
16298 return (&dummy > addr) ? 1 : -1;
16304 exit (find_stack_direction () < 0);
16307 rm -f conftest$ac_exeext
16308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16309 (eval $ac_link) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 ac_cv_c_stack_direction=1
16320 echo "$as_me: program exited with status $ac_status" >&5
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 ( exit $ac_status )
16325 ac_cv_c_stack_direction=-1
16327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16330 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16331 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16333 cat >>confdefs.h <<_ACEOF
16334 #define STACK_DIRECTION $ac_cv_c_stack_direction
16341 for ac_prog in perl
16343 # Extract the first word of "$ac_prog", so it can be a program name with args.
16344 set dummy $ac_prog; ac_word=$2
16345 echo "$as_me:$LINENO: checking for $ac_word" >&5
16346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16347 if test "${ac_cv_prog_PERL+set}" = set; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 if test -n "$PERL"; then
16351 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16354 for as_dir in $PATH
16357 test -z "$as_dir" && as_dir=.
16358 for ac_exec_ext in '' $ac_executable_extensions; do
16359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16360 ac_cv_prog_PERL="$ac_prog"
16361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16369 PERL=$ac_cv_prog_PERL
16370 if test -n "$PERL"; then
16371 echo "$as_me:$LINENO: result: $PERL" >&5
16372 echo "${ECHO_T}$PERL" >&6
16374 echo "$as_me:$LINENO: result: no" >&5
16375 echo "${ECHO_T}no" >&6
16378 test -n "$PERL" && break
16380 test -n "$PERL" || PERL="false"
16384 SIGNAL_HANDLER_AUX=
16388 SIGNAL_HANDLER=include/i386-signal.h
16390 sparc*-sun-solaris*)
16391 SIGNAL_HANDLER=include/sparc-signal.h
16394 # SYSDEP_SOURCES=sysdep/ia64.c
16395 # test -d sysdep || mkdir sysdep
16398 SIGNAL_HANDLER=include/pa-signal.h
16401 SIGNAL_HANDLER=include/hppa-signal.h
16404 SIGNAL_HANDLER=include/dwarf2-signal.h
16407 SIGNAL_HANDLER=include/powerpc-signal.h
16410 SIGNAL_HANDLER=include/dwarf2-signal.h
16413 SIGNAL_HANDLER=include/s390-signal.h
16416 SIGNAL_HANDLER=include/x86_64-signal.h
16417 SIGNAL_HANDLER_AUX=include/i386-signal.h
16420 SIGNAL_HANDLER=include/dwarf2-signal.h
16423 SIGNAL_HANDLER=include/sh-signal.h
16426 SIGNAL_HANDLER=include/win32-signal.h
16429 SIGNAL_HANDLER=include/mips-signal.h
16432 SIGNAL_HANDLER=include/darwin-signal.h
16435 SIGNAL_HANDLER=include/default-signal.h
16439 # If we're using sjlj exceptions, forget what we just learned.
16440 if test "$enable_sjlj_exceptions" = yes; then
16441 SIGNAL_HANDLER=include/default-signal.h
16442 SIGNAL_HANDLER_AUX=
16447 if test -z "$SIGNAL_HANDLER_AUX"; then
16448 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16451 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16454 if test "${multilib}" = "yes"; then
16455 multilib_arg="--enable-multilib"
16460 # See if we support thread-local storage.
16462 # Check whether --enable-tls or --disable-tls was given.
16463 if test "${enable_tls+set}" = set; then
16464 enableval="$enable_tls"
16466 case "$enableval" in
16468 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16469 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16470 { (exit 1); exit 1; }; } ;;
16477 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16478 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16479 if test "${have_tls+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 if test "$cross_compiling" = yes; then
16484 cat >conftest.$ac_ext <<_ACEOF
16487 rm -f conftest.$ac_objext
16488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16489 (eval $ac_compile) 2>conftest.er1
16491 grep -v '^ *+' conftest.er1 >conftest.err
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -z "$ac_c_werror_flag"
16497 || test ! -s conftest.err'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; } &&
16503 { ac_try='test -s conftest.$ac_objext'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16511 echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519 cat >conftest.$ac_ext <<_ACEOF
16520 __thread int a; int b; int main() { return a = b; }
16522 rm -f conftest$ac_exeext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16524 (eval $ac_link) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
16533 save_LDFLAGS="$LDFLAGS"
16534 LDFLAGS="-static $LDFLAGS"
16535 if test "$cross_compiling" = yes; then
16536 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16537 See \`config.log' for more details." >&5
16538 echo "$as_me: error: cannot run test program while cross compiling
16539 See \`config.log' for more details." >&2;}
16540 { (exit 1); exit 1; }; }
16542 cat >conftest.$ac_ext <<_ACEOF
16543 __thread int a; int b; int main() { return a = b; }
16545 rm -f conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547 (eval $ac_link) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16558 echo "$as_me: program exited with status $ac_status" >&5
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16562 ( exit $ac_status )
16565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16567 LDFLAGS="$save_LDFLAGS"
16569 echo "$as_me: program exited with status $ac_status" >&5
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 ( exit $ac_status )
16576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16579 echo "$as_me:$LINENO: result: $have_tls" >&5
16580 echo "${ECHO_T}$have_tls" >&6
16581 if test "$enable_tls $have_tls" = "yes yes"; then
16583 cat >>confdefs.h <<\_ACEOF
16589 # Check if linker supports static linking on a per library basis
16590 LD_START_STATIC_SPEC=
16591 LD_FINISH_STATIC_SPEC=
16592 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16593 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16594 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16595 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16601 here=`${PWDCMD-pwd}`
16604 # We get this from the environment.
16607 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16610 ac_config_files="$ac_config_files scripts/jar"
16613 ac_config_commands="$ac_config_commands default"
16616 cat >confcache <<\_ACEOF
16617 # This file is a shell script that caches the results of configure
16618 # tests run on this system so they can be shared between configure
16619 # scripts and configure runs, see configure's option --config-cache.
16620 # It is not useful on other systems. If it contains results you don't
16621 # want to keep, you may remove or edit it.
16623 # config.status only pays attention to the cache file if you give it
16624 # the --recheck option to rerun configure.
16626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16628 # following values.
16632 # The following way of writing the cache mishandles newlines in values,
16633 # but we know of no workaround that is simple, portable, and efficient.
16634 # So, don't put newlines in cache variables' values.
16635 # Ultrix sh set writes to stderr and can't be redirected directly,
16636 # and sets the high bit in the cache file unless we assign to the vars.
16639 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16641 # `set' does not quote correctly, so add quotes (double-quote
16642 # substitution turns \\\\ into \\, and sed turns \\ into \).
16645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16648 # `set' quotes correctly as required by POSIX, so do not add quotes.
16650 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16659 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16661 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16662 if test -w $cache_file; then
16663 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16664 cat confcache >$cache_file
16666 echo "not updating unwritable cache $cache_file"
16671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16672 # Let make expand exec_prefix.
16673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16675 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16676 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16677 # trailing colons and then remove the whole line if VPATH becomes empty
16678 # (actually we leave an empty line to preserve line numbers).
16679 if test "x$srcdir" = x.; then
16680 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16681 s/:*\$(srcdir):*/:/;
16682 s/:*\${srcdir}:*/:/;
16684 s/^\([^=]*=[ ]*\):*/\1/;
16690 DEFS=-DHAVE_CONFIG_H
16694 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16695 # 1. Remove the extension, and $U if already installed.
16696 ac_i=`echo "$ac_i" |
16697 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16699 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16700 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16702 LIBOBJS=$ac_libobjs
16704 LTLIBOBJS=$ac_ltlibobjs
16707 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16708 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16709 Usually this means the macro was only invoked conditionally." >&5
16710 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16711 Usually this means the macro was only invoked conditionally." >&2;}
16712 { (exit 1); exit 1; }; }
16714 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16715 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16716 Usually this means the macro was only invoked conditionally." >&5
16717 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16718 Usually this means the macro was only invoked conditionally." >&2;}
16719 { (exit 1); exit 1; }; }
16721 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16722 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16723 Usually this means the macro was only invoked conditionally." >&5
16724 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16725 Usually this means the macro was only invoked conditionally." >&2;}
16726 { (exit 1); exit 1; }; }
16728 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16729 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16730 Usually this means the macro was only invoked conditionally." >&5
16731 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16732 Usually this means the macro was only invoked conditionally." >&2;}
16733 { (exit 1); exit 1; }; }
16735 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16736 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16737 Usually this means the macro was only invoked conditionally." >&5
16738 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16739 Usually this means the macro was only invoked conditionally." >&2;}
16740 { (exit 1); exit 1; }; }
16742 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16743 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16744 Usually this means the macro was only invoked conditionally." >&5
16745 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16746 Usually this means the macro was only invoked conditionally." >&2;}
16747 { (exit 1); exit 1; }; }
16749 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16750 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16751 Usually this means the macro was only invoked conditionally." >&5
16752 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16753 Usually this means the macro was only invoked conditionally." >&2;}
16754 { (exit 1); exit 1; }; }
16756 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16757 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16758 Usually this means the macro was only invoked conditionally." >&5
16759 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16760 Usually this means the macro was only invoked conditionally." >&2;}
16761 { (exit 1); exit 1; }; }
16763 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16764 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16765 Usually this means the macro was only invoked conditionally." >&5
16766 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16767 Usually this means the macro was only invoked conditionally." >&2;}
16768 { (exit 1); exit 1; }; }
16770 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16771 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16772 Usually this means the macro was only invoked conditionally." >&5
16773 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16774 Usually this means the macro was only invoked conditionally." >&2;}
16775 { (exit 1); exit 1; }; }
16777 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16778 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16779 Usually this means the macro was only invoked conditionally." >&5
16780 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16781 Usually this means the macro was only invoked conditionally." >&2;}
16782 { (exit 1); exit 1; }; }
16784 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16785 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16786 Usually this means the macro was only invoked conditionally." >&5
16787 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16788 Usually this means the macro was only invoked conditionally." >&2;}
16789 { (exit 1); exit 1; }; }
16791 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16792 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16793 Usually this means the macro was only invoked conditionally." >&5
16794 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16795 Usually this means the macro was only invoked conditionally." >&2;}
16796 { (exit 1); exit 1; }; }
16798 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16799 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16800 Usually this means the macro was only invoked conditionally." >&5
16801 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16802 Usually this means the macro was only invoked conditionally." >&2;}
16803 { (exit 1); exit 1; }; }
16805 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16806 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16807 Usually this means the macro was only invoked conditionally." >&5
16808 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16809 Usually this means the macro was only invoked conditionally." >&2;}
16810 { (exit 1); exit 1; }; }
16812 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16813 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16814 Usually this means the macro was only invoked conditionally." >&5
16815 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16816 Usually this means the macro was only invoked conditionally." >&2;}
16817 { (exit 1); exit 1; }; }
16819 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16820 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16821 Usually this means the macro was only invoked conditionally." >&5
16822 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16823 Usually this means the macro was only invoked conditionally." >&2;}
16824 { (exit 1); exit 1; }; }
16826 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16827 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16828 Usually this means the macro was only invoked conditionally." >&5
16829 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16830 Usually this means the macro was only invoked conditionally." >&2;}
16831 { (exit 1); exit 1; }; }
16833 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16834 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16835 Usually this means the macro was only invoked conditionally." >&5
16836 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16837 Usually this means the macro was only invoked conditionally." >&2;}
16838 { (exit 1); exit 1; }; }
16840 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16841 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16842 Usually this means the macro was only invoked conditionally." >&5
16843 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16844 Usually this means the macro was only invoked conditionally." >&2;}
16845 { (exit 1); exit 1; }; }
16848 : ${CONFIG_STATUS=./config.status}
16849 ac_clean_files_save=$ac_clean_files
16850 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16851 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16852 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16853 cat >$CONFIG_STATUS <<_ACEOF
16855 # Generated by $as_me.
16856 # Run this file to recreate the current configuration.
16857 # Compiler output produced by configure, useful for debugging
16858 # configure, is in config.log if it exists.
16861 ac_cs_recheck=false
16863 SHELL=\${CONFIG_SHELL-$SHELL}
16866 cat >>$CONFIG_STATUS <<\_ACEOF
16867 ## --------------------- ##
16868 ## M4sh Initialization. ##
16869 ## --------------------- ##
16871 # Be Bourne compatible
16872 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16875 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16876 # is contrary to our usage. Disable this feature.
16877 alias -g '${1+"$@"}'='"$@"'
16878 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16881 DUALCASE=1; export DUALCASE # for MKS sh
16883 # Support unset when possible.
16884 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16891 # Work around bugs in pre-3.0 UWIN ksh.
16892 $as_unset ENV MAIL MAILPATH
16899 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16900 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16901 LC_TELEPHONE LC_TIME
16903 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16904 eval $as_var=C; export $as_var
16910 # Required to use basename.
16911 if expr a : '\(a\)' >/dev/null 2>&1; then
16917 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16918 as_basename=basename
16924 # Name of the executable.
16925 as_me=`$as_basename "$0" ||
16926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16927 X"$0" : 'X\(//\)$' \| \
16928 X"$0" : 'X\(/\)$' \| \
16929 . : '\(.\)' 2>/dev/null ||
16931 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16932 /^X\/\(\/\/\)$/{ s//\1/; q; }
16933 /^X\/\(\/\).*/{ s//\1/; q; }
16937 # PATH needs CR, and LINENO needs CR and PATH.
16938 # Avoid depending upon Character Ranges.
16939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16942 as_cr_digits='0123456789'
16943 as_cr_alnum=$as_cr_Letters$as_cr_digits
16945 # The user is always right.
16946 if test "${PATH_SEPARATOR+set}" != set; then
16947 echo "#! /bin/sh" >conf$$.sh
16948 echo "exit 0" >>conf$$.sh
16950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16959 as_lineno_1=$LINENO
16960 as_lineno_2=$LINENO
16961 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16962 test "x$as_lineno_1" != "x$as_lineno_2" &&
16963 test "x$as_lineno_3" = "x$as_lineno_2" || {
16964 # Find who we are. Look in the path if we contain no path at all
16967 *[\\/]* ) as_myself=$0 ;;
16968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16969 for as_dir in $PATH
16972 test -z "$as_dir" && as_dir=.
16973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16978 # We did not find ourselves, most probably we were run as `sh COMMAND'
16979 # in which case we are not to be found in the path.
16980 if test "x$as_myself" = x; then
16983 if test ! -f "$as_myself"; then
16984 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16985 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16986 { (exit 1); exit 1; }; }
16988 case $CONFIG_SHELL in
16990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16994 test -z "$as_dir" && as_dir=.
16995 for as_base in sh bash ksh sh5; do
16998 if ("$as_dir/$as_base" -c '
16999 as_lineno_1=$LINENO
17000 as_lineno_2=$LINENO
17001 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17002 test "x$as_lineno_1" != "x$as_lineno_2" &&
17003 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17004 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17005 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17006 CONFIG_SHELL=$as_dir/$as_base
17007 export CONFIG_SHELL
17008 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17016 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17017 # uniformly replaced by the line number. The first 'sed' inserts a
17018 # line-number line before each line; the second 'sed' does the real
17019 # work. The second script uses 'N' to pair each line-number line
17020 # with the numbered line, and appends trailing '-' during
17021 # substitution so that $LINENO is not a special case at line end.
17022 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17023 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17024 sed '=' <$as_myself |
17029 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17032 s,^['$as_cr_digits']*\n,,
17033 ' >$as_me.lineno &&
17034 chmod +x $as_me.lineno ||
17035 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17036 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17037 { (exit 1); exit 1; }; }
17039 # Don't try to exec as it changes $[0], causing all sort of problems
17040 # (the dirname of $[0] is not the place where we might find the
17041 # original and so on. Autoconf is especially sensible to this).
17043 # Exit status is that of the last command.
17048 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17049 *c*,-n*) ECHO_N= ECHO_C='
17051 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17052 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17055 if expr a : '\(a\)' >/dev/null 2>&1; then
17061 rm -f conf$$ conf$$.exe conf$$.file
17063 if ln -s conf$$.file conf$$ 2>/dev/null; then
17064 # We could just check for DJGPP; but this test a) works b) is more generic
17065 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17066 if test -f conf$$.exe; then
17067 # Don't use ln at all; we don't have any links
17072 elif ln conf$$.file conf$$ 2>/dev/null; then
17077 rm -f conf$$ conf$$.exe conf$$.file
17079 if mkdir -p . 2>/dev/null; then
17082 test -d ./-p && rmdir ./-p
17086 as_executable_p="test -f"
17088 # Sed expression to map a string onto a valid CPP name.
17089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17091 # Sed expression to map a string onto a valid variable name.
17092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17096 # We need space, tab and new line, in precisely that order.
17106 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17107 # report actual input values of CONFIG_FILES etc. instead of their
17108 # values after options handling. Logging --version etc. is OK.
17112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17113 ## Running $as_me. ##
17118 This file was extended by libjava $as_me version-unused, which was
17119 generated by GNU Autoconf 2.59. Invocation command line was
17121 CONFIG_FILES = $CONFIG_FILES
17122 CONFIG_HEADERS = $CONFIG_HEADERS
17123 CONFIG_LINKS = $CONFIG_LINKS
17124 CONFIG_COMMANDS = $CONFIG_COMMANDS
17128 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17132 # Files that config.status was made for.
17133 if test -n "$ac_config_files"; then
17134 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17137 if test -n "$ac_config_headers"; then
17138 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17141 if test -n "$ac_config_links"; then
17142 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17145 if test -n "$ac_config_commands"; then
17146 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17149 cat >>$CONFIG_STATUS <<\_ACEOF
17152 \`$as_me' instantiates files from templates according to the
17153 current configuration.
17155 Usage: $0 [OPTIONS] [FILE]...
17157 -h, --help print this help, then exit
17158 -V, --version print version number, then exit
17159 -q, --quiet do not print progress messages
17160 -d, --debug don't remove temporary files
17161 --recheck update $as_me by reconfiguring in the same conditions
17162 --file=FILE[:TEMPLATE]
17163 instantiate the configuration file FILE
17164 --header=FILE[:TEMPLATE]
17165 instantiate the configuration header FILE
17167 Configuration files:
17170 Configuration headers:
17173 Configuration links:
17176 Configuration commands:
17179 Report bugs to <bug-autoconf@gnu.org>."
17182 cat >>$CONFIG_STATUS <<_ACEOF
17184 libjava config.status version-unused
17185 configured by $0, generated by GNU Autoconf 2.59,
17186 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17188 Copyright (C) 2003 Free Software Foundation, Inc.
17189 This config.status script is free software; the Free Software Foundation
17190 gives unlimited permission to copy, distribute and modify it."
17195 cat >>$CONFIG_STATUS <<\_ACEOF
17196 # If no file are specified by the user, then we need to provide default
17197 # value. By we need to know if files were specified by the user.
17203 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17204 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17212 *) # This is not an option, so the user has probably given explicit
17215 ac_need_defaults=false;;
17219 # Handling of the options.
17221 cat >>$CONFIG_STATUS <<\_ACEOF
17222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17224 --version | --vers* | -V )
17225 echo "$ac_cs_version"; exit 0 ;;
17227 # Conflict between --help and --header
17228 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17229 Try \`$0 --help' for more information." >&5
17230 echo "$as_me: error: ambiguous option: $1
17231 Try \`$0 --help' for more information." >&2;}
17232 { (exit 1); exit 1; }; };;
17233 --help | --hel | -h )
17234 echo "$ac_cs_usage"; exit 0 ;;
17235 --debug | --d* | -d )
17237 --file | --fil | --fi | --f )
17239 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17240 ac_need_defaults=false;;
17241 --header | --heade | --head | --hea )
17243 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17244 ac_need_defaults=false;;
17245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17246 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17249 # This is an error.
17250 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17251 Try \`$0 --help' for more information." >&5
17252 echo "$as_me: error: unrecognized option: $1
17253 Try \`$0 --help' for more information." >&2;}
17254 { (exit 1); exit 1; }; } ;;
17256 *) ac_config_targets="$ac_config_targets $1" ;;
17262 ac_configure_extra_args=
17264 if $ac_cs_silent; then
17266 ac_configure_extra_args="$ac_configure_extra_args --silent"
17270 cat >>$CONFIG_STATUS <<_ACEOF
17271 if \$ac_cs_recheck; then
17272 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17273 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17278 cat >>$CONFIG_STATUS <<_ACEOF
17280 # INIT-COMMANDS section.
17283 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17287 with_multisubdir=${with_multisubdir}
17288 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17289 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17290 libgcj_basedir=${libgcj_basedir}
17293 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17300 cat >>$CONFIG_STATUS <<\_ACEOF
17301 for ac_config_target in $ac_config_targets
17303 case "$ac_config_target" in
17304 # Handling of arguments.
17305 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17306 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17307 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17308 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17309 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17310 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17311 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17312 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17313 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17314 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17315 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17316 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17317 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17318 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17319 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17320 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17321 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17322 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17323 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17324 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17325 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17326 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17327 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17328 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17329 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17330 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17331 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17332 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17333 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17334 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17335 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17336 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17337 { (exit 1); exit 1; }; };;
17341 # If the user did not use the arguments to specify the items to instantiate,
17342 # then the envvar interface is used. Set only those that are not.
17343 # We use the long form for the default assignment because of an extremely
17344 # bizarre bug on SunOS 4.1.3.
17345 if $ac_need_defaults; then
17346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17347 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17348 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17352 # Have a temporary directory for convenience. Make it in the build tree
17353 # simply because there is no reason to put it here, and in addition,
17354 # creating and moving files from /tmp can sometimes cause problems.
17355 # Create a temporary directory, and hook for its removal unless debugging.
17358 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17359 trap '{ (exit 1); exit 1; }' 1 2 13 15
17362 # Create a (secure) tmp directory for tmp files.
17365 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17366 test -n "$tmp" && test -d "$tmp"
17369 tmp=./confstat$$-$RANDOM
17370 (umask 077 && mkdir $tmp)
17373 echo "$me: cannot create a temporary directory in ." >&2
17374 { (exit 1); exit 1; }
17379 cat >>$CONFIG_STATUS <<_ACEOF
17382 # CONFIG_FILES section.
17385 # No need to generate the scripts if there are no CONFIG_FILES.
17386 # This happens for instance when ./config.status config.h
17387 if test -n "\$CONFIG_FILES"; then
17388 # Protect against being on the right side of a sed subst in config.status.
17389 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17390 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17391 s,@SHELL@,$SHELL,;t t
17392 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17393 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17394 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17395 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17396 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17397 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17398 s,@exec_prefix@,$exec_prefix,;t t
17399 s,@prefix@,$prefix,;t t
17400 s,@program_transform_name@,$program_transform_name,;t t
17401 s,@bindir@,$bindir,;t t
17402 s,@sbindir@,$sbindir,;t t
17403 s,@libexecdir@,$libexecdir,;t t
17404 s,@datadir@,$datadir,;t t
17405 s,@sysconfdir@,$sysconfdir,;t t
17406 s,@sharedstatedir@,$sharedstatedir,;t t
17407 s,@localstatedir@,$localstatedir,;t t
17408 s,@libdir@,$libdir,;t t
17409 s,@includedir@,$includedir,;t t
17410 s,@oldincludedir@,$oldincludedir,;t t
17411 s,@infodir@,$infodir,;t t
17412 s,@mandir@,$mandir,;t t
17413 s,@build_alias@,$build_alias,;t t
17414 s,@host_alias@,$host_alias,;t t
17415 s,@target_alias@,$target_alias,;t t
17416 s,@DEFS@,$DEFS,;t t
17417 s,@ECHO_C@,$ECHO_C,;t t
17418 s,@ECHO_N@,$ECHO_N,;t t
17419 s,@ECHO_T@,$ECHO_T,;t t
17420 s,@LIBS@,$LIBS,;t t
17421 s,@build@,$build,;t t
17422 s,@build_cpu@,$build_cpu,;t t
17423 s,@build_vendor@,$build_vendor,;t t
17424 s,@build_os@,$build_os,;t t
17425 s,@build_subdir@,$build_subdir,;t t
17426 s,@host_subdir@,$host_subdir,;t t
17427 s,@target_subdir@,$target_subdir,;t t
17428 s,@libgcj_basedir@,$libgcj_basedir,;t t
17429 s,@host@,$host,;t t
17430 s,@host_cpu@,$host_cpu,;t t
17431 s,@host_vendor@,$host_vendor,;t t
17432 s,@host_os@,$host_os,;t t
17433 s,@target@,$target,;t t
17434 s,@target_cpu@,$target_cpu,;t t
17435 s,@target_vendor@,$target_vendor,;t t
17436 s,@target_os@,$target_os,;t t
17437 s,@target_noncanonical@,$target_noncanonical,;t t
17438 s,@LN_S@,$LN_S,;t t
17439 s,@mkinstalldirs@,$mkinstalldirs,;t t
17441 s,@ac_ct_CC@,$ac_ct_CC,;t t
17442 s,@EXEEXT@,$EXEEXT,;t t
17443 s,@OBJEXT@,$OBJEXT,;t t
17445 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17446 s,@CFLAGS@,$CFLAGS,;t t
17447 s,@CXXFLAGS@,$CXXFLAGS,;t t
17448 s,@LDFLAGS@,$LDFLAGS,;t t
17449 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17450 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17451 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17452 s,@CYGPATH_W@,$CYGPATH_W,;t t
17453 s,@PACKAGE@,$PACKAGE,;t t
17454 s,@VERSION@,$VERSION,;t t
17455 s,@ACLOCAL@,$ACLOCAL,;t t
17456 s,@AUTOCONF@,$AUTOCONF,;t t
17457 s,@AUTOMAKE@,$AUTOMAKE,;t t
17458 s,@AUTOHEADER@,$AUTOHEADER,;t t
17459 s,@MAKEINFO@,$MAKEINFO,;t t
17460 s,@install_sh@,$install_sh,;t t
17461 s,@STRIP@,$STRIP,;t t
17462 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17463 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17464 s,@mkdir_p@,$mkdir_p,;t t
17466 s,@SET_MAKE@,$SET_MAKE,;t t
17467 s,@am__leading_dot@,$am__leading_dot,;t t
17468 s,@AMTAR@,$AMTAR,;t t
17469 s,@am__tar@,$am__tar,;t t
17470 s,@am__untar@,$am__untar,;t t
17471 s,@DEPDIR@,$DEPDIR,;t t
17472 s,@am__include@,$am__include,;t t
17473 s,@am__quote@,$am__quote,;t t
17474 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17475 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17476 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17477 s,@CCDEPMODE@,$CCDEPMODE,;t t
17478 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17479 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17480 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17481 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17482 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17484 s,@ac_ct_AS@,$ac_ct_AS,;t t
17486 s,@ac_ct_LD@,$ac_ct_LD,;t t
17488 s,@ac_ct_AR@,$ac_ct_AR,;t t
17489 s,@RANLIB@,$RANLIB,;t t
17490 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17493 s,@UNZIP@,$UNZIP,;t t
17494 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17495 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17496 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17497 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17498 s,@MAINT@,$MAINT,;t t
17499 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17500 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17501 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17502 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17503 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17504 s,@TOOLKIT@,$TOOLKIT,;t t
17505 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17506 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17507 s,@GCJH@,$GCJH,;t t
17508 s,@INCLTDL@,$INCLTDL,;t t
17509 s,@LIBLTDL@,$LIBLTDL,;t t
17510 s,@DIRLTDL@,$DIRLTDL,;t t
17511 s,@LIBTOOL@,$LIBTOOL,;t t
17512 s,@CXXCPP@,$CXXCPP,;t t
17513 s,@CPPFLAGS@,$CPPFLAGS,;t t
17515 s,@GCJFLAGS@,$GCJFLAGS,;t t
17516 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17517 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17518 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17519 s,@subdirs@,$subdirs,;t t
17520 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17521 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17522 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17523 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17524 s,@JAVA_HOME@,$JAVA_HOME,;t t
17525 s,@INTERPRETER@,$INTERPRETER,;t t
17526 s,@LIBFFI@,$LIBFFI,;t t
17527 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17528 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17530 s,@EGREP@,$EGREP,;t t
17531 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17532 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17533 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17534 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17535 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17536 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17537 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17538 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17539 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17540 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17541 s,@X_CFLAGS@,$X_CFLAGS,;t t
17542 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17543 s,@X_LIBS@,$X_LIBS,;t t
17544 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17545 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17546 s,@GCLIBS@,$GCLIBS,;t t
17547 s,@GCINCS@,$GCINCS,;t t
17548 s,@GCDEPS@,$GCDEPS,;t t
17549 s,@GCSPEC@,$GCSPEC,;t t
17550 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17551 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17552 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17553 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17554 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17555 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17556 s,@THREADLIBS@,$THREADLIBS,;t t
17557 s,@THREADINCS@,$THREADINCS,;t t
17558 s,@THREADDEPS@,$THREADDEPS,;t t
17559 s,@THREADSPEC@,$THREADSPEC,;t t
17560 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17561 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17562 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17563 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17564 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17565 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17566 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17567 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17568 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17569 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17570 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17571 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17572 s,@LIBICONV@,$LIBICONV,;t t
17573 s,@LTLIBICONV@,$LTLIBICONV,;t t
17574 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17575 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17576 s,@GTK_LIBS@,$GTK_LIBS,;t t
17577 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17578 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17579 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17580 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17581 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17582 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17583 s,@ZLIBS@,$ZLIBS,;t t
17584 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17585 s,@ZINCS@,$ZINCS,;t t
17586 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17587 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17588 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17589 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17590 s,@IEEESPEC@,$IEEESPEC,;t t
17591 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17592 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17593 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17594 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17595 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17596 s,@toolexecdir@,$toolexecdir,;t t
17597 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17598 s,@toolexeclibdir@,$toolexeclibdir,;t t
17599 s,@dbexecdir@,$dbexecdir,;t t
17600 s,@GCJVERSION@,$GCJVERSION,;t t
17601 s,@gxx_include_dir@,$gxx_include_dir,;t t
17602 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17603 s,@ALLOCA@,$ALLOCA,;t t
17604 s,@PERL@,$PERL,;t t
17605 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17606 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17607 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17608 s,@here@,$here,;t t
17609 s,@LIBOBJS@,$LIBOBJS,;t t
17610 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17615 cat >>$CONFIG_STATUS <<\_ACEOF
17616 # Split the substitutions into bite-sized pieces for seds with
17617 # small command number limits, like on Digital OSF/1 and HP-UX.
17618 ac_max_sed_lines=48
17619 ac_sed_frag=1 # Number of current file.
17620 ac_beg=1 # First line for current file.
17621 ac_end=$ac_max_sed_lines # Line after last line for current file.
17624 while $ac_more_lines; do
17625 if test $ac_beg -gt 1; then
17626 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17628 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17630 if test ! -s $tmp/subs.frag; then
17631 ac_more_lines=false
17633 # The purpose of the label and of the branching condition is to
17634 # speed up the sed processing (if there are no `@' at all, there
17635 # is no need to browse any of the substitutions).
17636 # These are the two extra sed commands mentioned above.
17638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17639 if test -z "$ac_sed_cmds"; then
17640 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17642 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17644 ac_sed_frag=`expr $ac_sed_frag + 1`
17646 ac_end=`expr $ac_end + $ac_max_sed_lines`
17649 if test -z "$ac_sed_cmds"; then
17652 fi # test -n "$CONFIG_FILES"
17655 cat >>$CONFIG_STATUS <<\_ACEOF
17656 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17659 - | *:- | *:-:* ) # input from stdin
17661 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17663 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17665 * ) ac_file_in=$ac_file.in ;;
17668 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17669 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17671 X"$ac_file" : 'X\(//\)[^/]' \| \
17672 X"$ac_file" : 'X\(//\)$' \| \
17673 X"$ac_file" : 'X\(/\)' \| \
17674 . : '\(.\)' 2>/dev/null ||
17676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17678 /^X\(\/\/\)$/{ s//\1/; q; }
17679 /^X\(\/\).*/{ s//\1/; q; }
17681 { if $as_mkdir_p; then
17686 while test ! -d "$as_dir"; do
17687 as_dirs="$as_dir $as_dirs"
17688 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17690 X"$as_dir" : 'X\(//\)[^/]' \| \
17691 X"$as_dir" : 'X\(//\)$' \| \
17692 X"$as_dir" : 'X\(/\)' \| \
17693 . : '\(.\)' 2>/dev/null ||
17695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17697 /^X\(\/\/\)$/{ s//\1/; q; }
17698 /^X\(\/\).*/{ s//\1/; q; }
17701 test ! -n "$as_dirs" || mkdir $as_dirs
17702 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17703 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17704 { (exit 1); exit 1; }; }; }
17708 if test "$ac_dir" != .; then
17709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17710 # A "../" for each directory in $ac_dir_suffix.
17711 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17713 ac_dir_suffix= ac_top_builddir=
17717 .) # No --srcdir option. We are building in place.
17719 if test -z "$ac_top_builddir"; then
17722 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17724 [\\/]* | ?:[\\/]* ) # Absolute path.
17725 ac_srcdir=$srcdir$ac_dir_suffix;
17726 ac_top_srcdir=$srcdir ;;
17727 *) # Relative path.
17728 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17729 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17732 # Do not use `cd foo && pwd` to compute absolute paths, because
17733 # the directories may not exist.
17735 .) ac_abs_builddir="$ac_dir";;
17738 .) ac_abs_builddir=`pwd`;;
17739 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17740 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17743 case $ac_abs_builddir in
17744 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17746 case ${ac_top_builddir}. in
17747 .) ac_abs_top_builddir=$ac_abs_builddir;;
17748 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17749 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17752 case $ac_abs_builddir in
17753 .) ac_abs_srcdir=$ac_srcdir;;
17756 .) ac_abs_srcdir=$ac_abs_builddir;;
17757 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17758 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17761 case $ac_abs_builddir in
17762 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17764 case $ac_top_srcdir in
17765 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17766 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17767 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17774 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17777 if test x"$ac_file" != x-; then
17778 { echo "$as_me:$LINENO: creating $ac_file" >&5
17779 echo "$as_me: creating $ac_file" >&6;}
17782 # Let's still pretend it is `configure' which instantiates (i.e., don't
17783 # use $as_me), people would be surprised to read:
17784 # /* config.h. Generated by config.status. */
17785 if test x"$ac_file" = x-; then
17788 configure_input="$ac_file. "
17790 configure_input=$configure_input"Generated from `echo $ac_file_in |
17791 sed 's,.*/,,'` by configure."
17793 # First look for the input files in the build tree, otherwise in the
17795 ac_file_inputs=`IFS=:
17796 for f in $ac_file_in; do
17798 -) echo $tmp/stdin ;;
17800 # Absolute (can't be DOS-style, as IFS=:)
17801 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17802 echo "$as_me: error: cannot find input file: $f" >&2;}
17803 { (exit 1); exit 1; }; }
17806 if test -f "$f"; then
17809 elif test -f "$srcdir/$f"; then
17814 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17815 echo "$as_me: error: cannot find input file: $f" >&2;}
17816 { (exit 1); exit 1; }; }
17819 done` || { (exit 1); exit 1; }
17821 cat >>$CONFIG_STATUS <<_ACEOF
17825 cat >>$CONFIG_STATUS <<\_ACEOF
17827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17828 s,@configure_input@,$configure_input,;t t
17829 s,@srcdir@,$ac_srcdir,;t t
17830 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17831 s,@top_srcdir@,$ac_top_srcdir,;t t
17832 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17833 s,@builddir@,$ac_builddir,;t t
17834 s,@abs_builddir@,$ac_abs_builddir,;t t
17835 s,@top_builddir@,$ac_top_builddir,;t t
17836 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17837 s,@INSTALL@,$ac_INSTALL,;t t
17838 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17840 if test x"$ac_file" != x-; then
17841 mv $tmp/out $ac_file
17847 # Run the commands associated with the file.
17849 scripts/jar ) chmod +x scripts/jar ;;
17853 cat >>$CONFIG_STATUS <<\_ACEOF
17856 # CONFIG_HEADER section.
17859 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17860 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17862 # ac_d sets the value in "#define NAME VALUE" lines.
17863 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17864 ac_dB='[ ].*$,\1#\2'
17867 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17868 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17869 ac_uB='$,\1#\2define\3'
17873 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17874 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17876 - | *:- | *:-:* ) # input from stdin
17878 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17879 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17880 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17881 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17882 * ) ac_file_in=$ac_file.in ;;
17885 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17886 echo "$as_me: creating $ac_file" >&6;}
17888 # First look for the input files in the build tree, otherwise in the
17890 ac_file_inputs=`IFS=:
17891 for f in $ac_file_in; do
17893 -) echo $tmp/stdin ;;
17895 # Absolute (can't be DOS-style, as IFS=:)
17896 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17897 echo "$as_me: error: cannot find input file: $f" >&2;}
17898 { (exit 1); exit 1; }; }
17899 # Do quote $f, to prevent DOS paths from being IFS'd.
17902 if test -f "$f"; then
17905 elif test -f "$srcdir/$f"; then
17910 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17911 echo "$as_me: error: cannot find input file: $f" >&2;}
17912 { (exit 1); exit 1; }; }
17915 done` || { (exit 1); exit 1; }
17916 # Remove the trailing spaces.
17917 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17921 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17922 # `conftest.undefs', that substitutes the proper values into
17923 # config.h.in to produce config.h. The first handles `#define'
17924 # templates, and the second `#undef' templates.
17925 # And first: Protect against being on the right side of a sed subst in
17926 # config.status. Protect against being in an unquoted here document
17927 # in config.status.
17928 rm -f conftest.defines conftest.undefs
17929 # Using a here document instead of a string reduces the quoting nightmare.
17930 # Putting comments in sed scripts is not portable.
17932 # `end' is used to avoid that the second main sed command (meant for
17933 # 0-ary CPP macros) applies to n-ary macro definitions.
17934 # See the Autoconf documentation for `clear'.
17935 cat >confdef2sed.sed <<\_ACEOF
17940 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17942 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17945 # If some macros were called several times there might be several times
17946 # the same #defines, which is useless. Nevertheless, we may not want to
17947 # sort them, since we want the *last* AC-DEFINE to be honored.
17948 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17949 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17950 rm -f confdef2sed.sed
17952 # This sed command replaces #undef with comments. This is necessary, for
17953 # example, in the case of _POSIX_SOURCE, which is predefined and required
17954 # on some systems where configure will not decide to define it.
17955 cat >>conftest.undefs <<\_ACEOF
17956 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17959 # Break up conftest.defines because some shells have a limit on the size
17960 # of here documents, and old seds have small limits too (100 cmds).
17961 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17962 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17963 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17964 echo ' :' >>$CONFIG_STATUS
17965 rm -f conftest.tail
17966 while grep . conftest.defines >/dev/null
17968 # Write a limited-size here document to $tmp/defines.sed.
17969 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17970 # Speed up: don't consider the non `#define' lines.
17971 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17972 # Work around the forget-to-reset-the-flag bug.
17973 echo 't clr' >>$CONFIG_STATUS
17974 echo ': clr' >>$CONFIG_STATUS
17975 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17977 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17979 mv $tmp/out $tmp/in
17981 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17982 rm -f conftest.defines
17983 mv conftest.tail conftest.defines
17985 rm -f conftest.defines
17986 echo ' fi # grep' >>$CONFIG_STATUS
17987 echo >>$CONFIG_STATUS
17989 # Break up conftest.undefs because some shells have a limit on the size
17990 # of here documents, and old seds have small limits too (100 cmds).
17991 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17992 rm -f conftest.tail
17993 while grep . conftest.undefs >/dev/null
17995 # Write a limited-size here document to $tmp/undefs.sed.
17996 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17997 # Speed up: don't consider the non `#undef'
17998 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17999 # Work around the forget-to-reset-the-flag bug.
18000 echo 't clr' >>$CONFIG_STATUS
18001 echo ': clr' >>$CONFIG_STATUS
18002 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18004 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18006 mv $tmp/out $tmp/in
18008 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18009 rm -f conftest.undefs
18010 mv conftest.tail conftest.undefs
18012 rm -f conftest.undefs
18014 cat >>$CONFIG_STATUS <<\_ACEOF
18015 # Let's still pretend it is `configure' which instantiates (i.e., don't
18016 # use $as_me), people would be surprised to read:
18017 # /* config.h. Generated by config.status. */
18018 if test x"$ac_file" = x-; then
18019 echo "/* Generated by configure. */" >$tmp/config.h
18021 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18023 cat $tmp/in >>$tmp/config.h
18025 if test x"$ac_file" != x-; then
18026 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18027 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18028 echo "$as_me: $ac_file is unchanged" >&6;}
18030 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18032 X"$ac_file" : 'X\(//\)[^/]' \| \
18033 X"$ac_file" : 'X\(//\)$' \| \
18034 X"$ac_file" : 'X\(/\)' \| \
18035 . : '\(.\)' 2>/dev/null ||
18037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18039 /^X\(\/\/\)$/{ s//\1/; q; }
18040 /^X\(\/\).*/{ s//\1/; q; }
18042 { if $as_mkdir_p; then
18047 while test ! -d "$as_dir"; do
18048 as_dirs="$as_dir $as_dirs"
18049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18051 X"$as_dir" : 'X\(//\)[^/]' \| \
18052 X"$as_dir" : 'X\(//\)$' \| \
18053 X"$as_dir" : 'X\(/\)' \| \
18054 . : '\(.\)' 2>/dev/null ||
18056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18058 /^X\(\/\/\)$/{ s//\1/; q; }
18059 /^X\(\/\).*/{ s//\1/; q; }
18062 test ! -n "$as_dirs" || mkdir $as_dirs
18063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18065 { (exit 1); exit 1; }; }; }
18068 mv $tmp/config.h $ac_file
18072 rm -f $tmp/config.h
18074 # Compute $ac_file's index in $config_headers.
18076 for _am_header in $config_headers :; do
18077 case $_am_header in
18078 $ac_file | $ac_file:* )
18081 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18084 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18085 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18086 X$ac_file : 'X\(//\)[^/]' \| \
18087 X$ac_file : 'X\(//\)$' \| \
18088 X$ac_file : 'X\(/\)' \| \
18089 . : '\(.\)' 2>/dev/null ||
18091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18093 /^X\(\/\/\)$/{ s//\1/; q; }
18094 /^X\(\/\).*/{ s//\1/; q; }
18095 s/.*/./; q'`/stamp-h$_am_stamp_count
18098 cat >>$CONFIG_STATUS <<\_ACEOF
18101 # CONFIG_LINKS section.
18104 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18105 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18106 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18108 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18109 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18111 if test ! -r $srcdir/$ac_source; then
18112 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18113 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18114 { (exit 1); exit 1; }; }
18118 # Make relative symlinks.
18119 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18120 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18121 X"$ac_dest" : 'X\(//\)[^/]' \| \
18122 X"$ac_dest" : 'X\(//\)$' \| \
18123 X"$ac_dest" : 'X\(/\)' \| \
18124 . : '\(.\)' 2>/dev/null ||
18126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18128 /^X\(\/\/\)$/{ s//\1/; q; }
18129 /^X\(\/\).*/{ s//\1/; q; }
18131 { if $as_mkdir_p; then
18132 mkdir -p "$ac_dest_dir"
18134 as_dir="$ac_dest_dir"
18136 while test ! -d "$as_dir"; do
18137 as_dirs="$as_dir $as_dirs"
18138 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18140 X"$as_dir" : 'X\(//\)[^/]' \| \
18141 X"$as_dir" : 'X\(//\)$' \| \
18142 X"$as_dir" : 'X\(/\)' \| \
18143 . : '\(.\)' 2>/dev/null ||
18145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18147 /^X\(\/\/\)$/{ s//\1/; q; }
18148 /^X\(\/\).*/{ s//\1/; q; }
18151 test ! -n "$as_dirs" || mkdir $as_dirs
18152 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18153 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18154 { (exit 1); exit 1; }; }; }
18158 if test "$ac_dest_dir" != .; then
18159 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18160 # A "../" for each directory in $ac_dir_suffix.
18161 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18163 ac_dir_suffix= ac_top_builddir=
18167 .) # No --srcdir option. We are building in place.
18169 if test -z "$ac_top_builddir"; then
18172 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18174 [\\/]* | ?:[\\/]* ) # Absolute path.
18175 ac_srcdir=$srcdir$ac_dir_suffix;
18176 ac_top_srcdir=$srcdir ;;
18177 *) # Relative path.
18178 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18179 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18182 # Do not use `cd foo && pwd` to compute absolute paths, because
18183 # the directories may not exist.
18185 .) ac_abs_builddir="$ac_dest_dir";;
18187 case "$ac_dest_dir" in
18188 .) ac_abs_builddir=`pwd`;;
18189 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18190 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18193 case $ac_abs_builddir in
18194 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18196 case ${ac_top_builddir}. in
18197 .) ac_abs_top_builddir=$ac_abs_builddir;;
18198 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18199 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18202 case $ac_abs_builddir in
18203 .) ac_abs_srcdir=$ac_srcdir;;
18206 .) ac_abs_srcdir=$ac_abs_builddir;;
18207 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18208 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18211 case $ac_abs_builddir in
18212 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18214 case $ac_top_srcdir in
18215 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18216 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18217 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18223 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18224 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18227 # Try a symlink, then a hard link, then a copy.
18228 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18229 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18230 cp -p $srcdir/$ac_source $ac_dest ||
18231 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18232 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18233 { (exit 1); exit 1; }; }
18236 cat >>$CONFIG_STATUS <<\_ACEOF
18239 # CONFIG_COMMANDS section.
18241 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18242 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18243 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18244 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18245 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18246 X"$ac_dest" : 'X\(//\)[^/]' \| \
18247 X"$ac_dest" : 'X\(//\)$' \| \
18248 X"$ac_dest" : 'X\(/\)' \| \
18249 . : '\(.\)' 2>/dev/null ||
18251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18253 /^X\(\/\/\)$/{ s//\1/; q; }
18254 /^X\(\/\).*/{ s//\1/; q; }
18256 { if $as_mkdir_p; then
18261 while test ! -d "$as_dir"; do
18262 as_dirs="$as_dir $as_dirs"
18263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18265 X"$as_dir" : 'X\(//\)[^/]' \| \
18266 X"$as_dir" : 'X\(//\)$' \| \
18267 X"$as_dir" : 'X\(/\)' \| \
18268 . : '\(.\)' 2>/dev/null ||
18270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18272 /^X\(\/\/\)$/{ s//\1/; q; }
18273 /^X\(\/\).*/{ s//\1/; q; }
18276 test ! -n "$as_dirs" || mkdir $as_dirs
18277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18279 { (exit 1); exit 1; }; }; }
18283 if test "$ac_dir" != .; then
18284 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18285 # A "../" for each directory in $ac_dir_suffix.
18286 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18288 ac_dir_suffix= ac_top_builddir=
18292 .) # No --srcdir option. We are building in place.
18294 if test -z "$ac_top_builddir"; then
18297 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18299 [\\/]* | ?:[\\/]* ) # Absolute path.
18300 ac_srcdir=$srcdir$ac_dir_suffix;
18301 ac_top_srcdir=$srcdir ;;
18302 *) # Relative path.
18303 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18304 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18307 # Do not use `cd foo && pwd` to compute absolute paths, because
18308 # the directories may not exist.
18310 .) ac_abs_builddir="$ac_dir";;
18313 .) ac_abs_builddir=`pwd`;;
18314 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18315 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18318 case $ac_abs_builddir in
18319 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18321 case ${ac_top_builddir}. in
18322 .) ac_abs_top_builddir=$ac_abs_builddir;;
18323 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18324 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18327 case $ac_abs_builddir in
18328 .) ac_abs_srcdir=$ac_srcdir;;
18331 .) ac_abs_srcdir=$ac_abs_builddir;;
18332 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18333 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18336 case $ac_abs_builddir in
18337 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18339 case $ac_top_srcdir in
18340 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18341 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18342 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18347 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18348 echo "$as_me: executing $ac_dest commands" >&6;}
18350 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18351 # Strip MF so we end up with the name of the file.
18352 mf=`echo "$mf" | sed -e 's/:.*$//'`
18353 # Check whether this is an Automake generated Makefile or not.
18354 # We used to match only the files named `Makefile.in', but
18355 # some people rename them; so instead we look at the file content.
18356 # Grep'ing the first line is not enough: some people post-process
18357 # each Makefile.in and add a new line on top of each file to say so.
18358 # So let's grep whole file.
18359 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18360 dirpart=`(dirname "$mf") 2>/dev/null ||
18361 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18362 X"$mf" : 'X\(//\)[^/]' \| \
18363 X"$mf" : 'X\(//\)$' \| \
18364 X"$mf" : 'X\(/\)' \| \
18365 . : '\(.\)' 2>/dev/null ||
18367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18369 /^X\(\/\/\)$/{ s//\1/; q; }
18370 /^X\(\/\).*/{ s//\1/; q; }
18375 # Extract the definition of DEPDIR, am__include, and am__quote
18376 # from the Makefile without running `make'.
18377 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18378 test -z "$DEPDIR" && continue
18379 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18380 test -z "am__include" && continue
18381 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18382 # When using ansi2knr, U may be empty or an underscore; expand it
18383 U=`sed -n 's/^U = //p' < "$mf"`
18384 # Find all dependency output files, they are included files with
18385 # $(DEPDIR) in their names. We invoke sed twice because it is the
18386 # simplest approach to changing $(DEPDIR) to its actual value in the
18388 for file in `sed -n "
18389 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18390 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18391 # Make sure the directory exists.
18392 test -f "$dirpart/$file" && continue
18393 fdir=`(dirname "$file") 2>/dev/null ||
18394 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18395 X"$file" : 'X\(//\)[^/]' \| \
18396 X"$file" : 'X\(//\)$' \| \
18397 X"$file" : 'X\(/\)' \| \
18398 . : '\(.\)' 2>/dev/null ||
18400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18402 /^X\(\/\/\)$/{ s//\1/; q; }
18403 /^X\(\/\).*/{ s//\1/; q; }
18405 { if $as_mkdir_p; then
18406 mkdir -p $dirpart/$fdir
18408 as_dir=$dirpart/$fdir
18410 while test ! -d "$as_dir"; do
18411 as_dirs="$as_dir $as_dirs"
18412 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18414 X"$as_dir" : 'X\(//\)[^/]' \| \
18415 X"$as_dir" : 'X\(//\)$' \| \
18416 X"$as_dir" : 'X\(/\)' \| \
18417 . : '\(.\)' 2>/dev/null ||
18419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18421 /^X\(\/\/\)$/{ s//\1/; q; }
18422 /^X\(\/\).*/{ s//\1/; q; }
18425 test ! -n "$as_dirs" || mkdir $as_dirs
18426 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18427 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18428 { (exit 1); exit 1; }; }; }
18430 # echo "creating $dirpart/$file"
18431 echo '# dummy' > "$dirpart/$file"
18435 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18436 case " $CONFIG_FILES " in
18438 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18439 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18442 for ac_multi_file in $CONFIG_FILES; do
18443 case $ac_multi_file in
18445 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18453 cat >>$CONFIG_STATUS <<\_ACEOF
18455 { (exit 0); exit 0; }
18457 chmod +x $CONFIG_STATUS
18458 ac_clean_files=$ac_clean_files_save
18461 # configure is writing to config.log, and then calls config.status.
18462 # config.status does its own redirection, appending to config.log.
18463 # Unfortunately, on DOS this fails, as config.log is still kept open
18464 # by configure, so config.status won't be able to write to it; its
18465 # output is simply discarded. So we exec the FD to /dev/null,
18466 # effectively closing config.log, so it can be properly (re)opened and
18467 # appended to by config.status. When coming back to configure, we
18468 # need to make the FD available again.
18469 if test "$no_create" != yes; then
18471 ac_config_status_args=
18472 test "$silent" = yes &&
18473 ac_config_status_args="$ac_config_status_args --quiet"
18475 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18477 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18478 # would make configure fail if this is the last instruction.
18479 $ac_cs_success || { (exit 1); exit 1; }
18483 # CONFIG_SUBDIRS section.
18485 if test "$no_recursion" != yes; then
18487 # Remove --cache-file and --srcdir arguments so they do not pile up.
18488 ac_sub_configure_args=
18490 for ac_arg in $ac_configure_args; do
18491 if test -n "$ac_prev"; then
18496 -cache-file | --cache-file | --cache-fil | --cache-fi \
18497 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18498 ac_prev=cache_file ;;
18499 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18500 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18503 --config-cache | -C)
18505 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18507 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18509 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18511 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18513 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18517 # Always prepend --prefix to ensure using the same prefix
18518 # in subdir configurations.
18519 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18522 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18524 # Do not complain, so a configure script can configure whichever
18525 # parts of a large source tree are present.
18526 test -d $srcdir/$ac_dir || continue
18528 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18529 echo "$as_me: configuring in $ac_dir" >&6;}
18530 { if $as_mkdir_p; then
18535 while test ! -d "$as_dir"; do
18536 as_dirs="$as_dir $as_dirs"
18537 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18539 X"$as_dir" : 'X\(//\)[^/]' \| \
18540 X"$as_dir" : 'X\(//\)$' \| \
18541 X"$as_dir" : 'X\(/\)' \| \
18542 . : '\(.\)' 2>/dev/null ||
18544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18546 /^X\(\/\/\)$/{ s//\1/; q; }
18547 /^X\(\/\).*/{ s//\1/; q; }
18550 test ! -n "$as_dirs" || mkdir $as_dirs
18551 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18552 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18553 { (exit 1); exit 1; }; }; }
18557 if test "$ac_dir" != .; then
18558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18559 # A "../" for each directory in $ac_dir_suffix.
18560 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18562 ac_dir_suffix= ac_top_builddir=
18566 .) # No --srcdir option. We are building in place.
18568 if test -z "$ac_top_builddir"; then
18571 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18573 [\\/]* | ?:[\\/]* ) # Absolute path.
18574 ac_srcdir=$srcdir$ac_dir_suffix;
18575 ac_top_srcdir=$srcdir ;;
18576 *) # Relative path.
18577 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18578 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18581 # Do not use `cd foo && pwd` to compute absolute paths, because
18582 # the directories may not exist.
18584 .) ac_abs_builddir="$ac_dir";;
18587 .) ac_abs_builddir=`pwd`;;
18588 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18589 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18592 case $ac_abs_builddir in
18593 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18595 case ${ac_top_builddir}. in
18596 .) ac_abs_top_builddir=$ac_abs_builddir;;
18597 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18598 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18601 case $ac_abs_builddir in
18602 .) ac_abs_srcdir=$ac_srcdir;;
18605 .) ac_abs_srcdir=$ac_abs_builddir;;
18606 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18607 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18610 case $ac_abs_builddir in
18611 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18613 case $ac_top_srcdir in
18614 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18615 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18616 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18623 # Check for guested configure; otherwise get Cygnus style configure.
18624 if test -f $ac_srcdir/configure.gnu; then
18625 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18626 elif test -f $ac_srcdir/configure; then
18627 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18628 elif test -f $ac_srcdir/configure.in; then
18629 ac_sub_configure=$ac_configure
18631 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18632 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18636 # The recursion is here.
18637 if test -n "$ac_sub_configure"; then
18638 # Make the cache file name correct relative to the subdirectory.
18639 case $cache_file in
18640 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18641 *) # Relative path.
18642 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18645 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18646 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18647 # The eval makes quoting arguments work.
18648 eval $ac_sub_configure $ac_sub_configure_args \
18649 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18650 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18651 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18652 { (exit 1); exit 1; }; }