2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libgcj_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE tool_include_dir gcc_version LIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-shared=PKGS build shared libraries default=yes
861 --enable-static=PKGS build static libraries default=yes
862 --enable-fast-install=PKGS optimize for fast installation default=yes
863 --disable-libtool-lock avoid locking (might break parallel builds)
864 --disable-getenv-properties
865 don't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-multifile
869 allow compilation of several files at once
871 --enable-libgcj-debug enable runtime debugging code
872 --enable-gc-debug include full support for pointer backtracing etc.
873 --enable-interpreter enable interpreter
874 --enable-sjlj-exceptions
875 force use of builtin_setjmp for exceptions
876 --disable-java-net disable java.net
877 --disable-jvmpi disable JVMPI support
878 --enable-java-awt list of AWT peer implementations to be built
879 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
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-win32-nlsapi=ansi or unicows or unicode
892 native MinGW libgcj Win32 OS API (default is ansi)
893 --without-libffi don't use libffi
894 --with-ecos enable runtime eCos target support
895 --with-system-zlib use installed libz
896 --with-x use the X Window System
897 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
899 Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
906 CXX C++ compiler command
907 CXXFLAGS C++ compiler flags
908 CXXCPP C++ preprocessor
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 ac_dir_suffix= ac_top_builddir=
933 .) # No --srcdir option. We are building in place.
935 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
951 .) ac_abs_builddir="$ac_dir";;
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 # Check for guested configure; otherwise get Cygnus style configure.
989 if test -f $ac_srcdir/configure.gnu; then
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
994 $SHELL $ac_srcdir/configure --help=recursive
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1009 libjava configure version-unused
1010 generated by GNU Autoconf 2.59
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1020 This file contains any messages produced by compilers while
1021 running configure, to aid debugging if configure makes a mistake.
1023 It was created by libjava $as_me version-unused, which was
1024 generated by GNU Autoconf 2.59. Invocation command line was
1035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1044 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1045 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1048 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1049 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1050 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 test -z "$as_dir" && as_dir=.
1059 echo "PATH: $as_dir"
1074 # Keep a trace of the command line.
1075 # Strip out --no-create and --no-recursion so they do not pile up.
1076 # Strip out --silent because we don't want to record it for future runs.
1077 # Also quote any args containing shell meta-characters.
1078 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_must_keep_next=false
1089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1093 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100 if test $ac_must_keep_next = true; then
1101 ac_must_keep_next=false # Got value, back to normal.
1104 *=* | --config-cache | -C | -disable-* | --disable-* \
1105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107 | -with-* | --with-* | -without-* | --without-* | --x)
1108 case "$ac_configure_args0 " in
1109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112 -* ) ac_must_keep_next=true ;;
1115 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116 # Get rid of the leading space.
1122 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125 # When interrupted or exit'd, cleanup temporary files, and complete
1126 # config.log. We remove comments because anyway the quotes in there
1127 # would cause problems or look ugly.
1128 # WARNING: Be sure not to use single quotes in there, as some shells,
1129 # such as our DU 5.0 friend, will then `close' the trap.
1130 trap 'exit_status=$?
1131 # Save into config.log some information that might help in debugging.
1136 ## ---------------- ##
1137 ## Cache variables. ##
1138 ## ---------------- ##
1141 # The following way of writing the cache mishandles newlines in values,
1144 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1152 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1159 ## ----------------- ##
1160 ## Output variables. ##
1161 ## ----------------- ##
1164 for ac_var in $ac_subst_vars
1166 eval ac_val=$`echo $ac_var`
1167 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -n "$ac_subst_files"; then
1178 for ac_var in $ac_subst_files
1180 eval ac_val=$`echo $ac_var`
1181 echo "$ac_var='"'"'$ac_val'"'"'"
1186 if test -s confdefs.h; then
1193 sed "/^$/d" confdefs.h | sort
1196 test "$ac_signal" != 0 &&
1197 echo "$as_me: caught signal $ac_signal"
1198 echo "$as_me: exit $exit_status"
1200 rm -f core *.core &&
1201 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204 for ac_signal in 1 2 13 15; do
1205 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210 rm -rf conftest* confdefs.h
1211 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214 # Predefined preprocessor variables.
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 # Let the site file select an alternate cache file if it wants to.
1242 # Prefer explicitly selected file to automatically selected ones.
1243 if test -z "$CONFIG_SITE"; then
1244 if test "x$prefix" != xNONE; then
1245 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250 for ac_site_file in $CONFIG_SITE; do
1251 if test -r "$ac_site_file"; then
1252 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253 echo "$as_me: loading site script $ac_site_file" >&6;}
1254 sed 's/^/| /' "$ac_site_file" >&5
1259 if test -r "$cache_file"; then
1260 # Some versions of bash will fail to source /dev/null (special
1261 # files actually), so we avoid doing that.
1262 if test -f "$cache_file"; then
1263 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264 echo "$as_me: loading cache $cache_file" >&6;}
1266 [\\/]* | ?:[\\/]* ) . $cache_file;;
1267 *) . ./$cache_file;;
1271 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272 echo "$as_me: creating cache $cache_file" >&6;}
1276 # Check that the precious variables saved in the cache have kept the same
1278 ac_cache_corrupted=false
1279 for ac_var in `(set) 2>&1 |
1280 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1281 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282 eval ac_new_set=\$ac_env_${ac_var}_set
1283 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284 eval ac_new_val="\$ac_env_${ac_var}_value"
1285 case $ac_old_set,$ac_new_set in
1287 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289 ac_cache_corrupted=: ;;
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1296 if test "x$ac_old_val" != "x$ac_new_val"; then
1297 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1298 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1299 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1300 echo "$as_me: former value: $ac_old_val" >&2;}
1301 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1302 echo "$as_me: current value: $ac_new_val" >&2;}
1303 ac_cache_corrupted=:
1306 # Pass precious variables to config.status.
1307 if test "$ac_new_set" = set; then
1309 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1311 *) ac_arg=$ac_var=$ac_new_val ;;
1313 case " $ac_configure_args " in
1314 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1315 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319 if $ac_cache_corrupted; then
1320 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1321 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1322 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1323 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1324 { (exit 1); exit 1; }; }
1328 ac_cpp='$CPP $CPPFLAGS'
1329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1362 # We use these options to decide which functions to include.
1364 # Check whether --with-target-subdir or --without-target-subdir was given.
1365 if test "${with_target_subdir+set}" = set; then
1366 withval="$with_target_subdir"
1370 # We may get other options which we don't document:
1371 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1373 # When building with srcdir == objdir, links to the source files will
1374 # be created in directories within the target_subdir. We have to
1375 # adjust toplevel_srcdir accordingly, so that configure finds
1376 # install-sh and other auxiliary files that live in the top-level
1378 if test "${srcdir}" = "."; then
1379 if test -z "${with_target_subdir}"; then
1382 if test "${with_target_subdir}" != "."; then
1383 toprel="${with_multisrctop}../.."
1385 toprel="${with_multisrctop}.."
1392 libgcj_basedir=$srcdir/$toprel/./libjava
1396 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1397 if test -f $ac_dir/install-sh; then
1399 ac_install_sh="$ac_aux_dir/install-sh -c"
1401 elif test -f $ac_dir/install.sh; then
1403 ac_install_sh="$ac_aux_dir/install.sh -c"
1405 elif test -f $ac_dir/shtool; then
1407 ac_install_sh="$ac_aux_dir/shtool install -c"
1411 if test -z "$ac_aux_dir"; then
1412 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1413 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1414 { (exit 1); exit 1; }; }
1416 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1417 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1418 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1420 # Make sure we can run config.sub.
1421 $ac_config_sub sun4 >/dev/null 2>&1 ||
1422 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1423 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1424 { (exit 1); exit 1; }; }
1426 echo "$as_me:$LINENO: checking build system type" >&5
1427 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1428 if test "${ac_cv_build+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 ac_cv_build_alias=$build_alias
1432 test -z "$ac_cv_build_alias" &&
1433 ac_cv_build_alias=`$ac_config_guess`
1434 test -z "$ac_cv_build_alias" &&
1435 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1437 { (exit 1); exit 1; }; }
1438 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1445 echo "${ECHO_T}$ac_cv_build" >&6
1447 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 echo "$as_me:$LINENO: checking host system type" >&5
1453 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1454 if test "${ac_cv_host+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 ac_cv_host_alias=$host_alias
1458 test -z "$ac_cv_host_alias" &&
1459 ac_cv_host_alias=$ac_cv_build_alias
1460 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1461 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1462 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1463 { (exit 1); exit 1; }; }
1466 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1467 echo "${ECHO_T}$ac_cv_host" >&6
1469 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474 echo "$as_me:$LINENO: checking target system type" >&5
1475 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1476 if test "${ac_cv_target+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 ac_cv_target_alias=$target_alias
1480 test "x$ac_cv_target_alias" = "x" &&
1481 ac_cv_target_alias=$ac_cv_host_alias
1482 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1483 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1484 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1485 { (exit 1); exit 1; }; }
1488 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1489 echo "${ECHO_T}$ac_cv_target" >&6
1490 target=$ac_cv_target
1491 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1496 # The aliases save the names the user supplied, while $host etc.
1497 # will get canonicalized.
1498 test -n "$target_alias" &&
1499 test "$program_prefix$program_suffix$program_transform_name" = \
1501 program_prefix=${target_alias}-
1502 case ${build_alias} in
1503 "") build_noncanonical=${build} ;;
1504 *) build_noncanonical=${build_alias} ;;
1507 case ${host_alias} in
1508 "") host_noncanonical=${build_noncanonical} ;;
1509 *) host_noncanonical=${host_alias} ;;
1512 case ${target_alias} in
1513 "") target_noncanonical=${host_noncanonical} ;;
1514 *) target_noncanonical=${target_alias} ;;
1520 # This works around the fact that libtool configuration may change LD
1521 # for this particular configuration, but some shells, instead of
1522 # keeping the changes in LD private, export them just because LD is
1524 ORIGINAL_LD_FOR_MULTILIBS=$LD
1526 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1527 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1529 if test "$LN_S" = "ln -s"; then
1530 echo "$as_me:$LINENO: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1533 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1534 echo "${ECHO_T}no, using $LN_S" >&6
1538 # This works around an automake problem.
1539 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1543 # Check whether --with-cross-host or --without-cross-host was given.
1544 if test "${with_cross_host+set}" = set; then
1545 withval="$with_cross_host"
1550 # Check whether --with-newlib or --without-newlib was given.
1551 if test "${with_newlib+set}" = set; then
1552 withval="$with_newlib"
1556 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1557 if test "${enable_version_specific_runtime_libs+set}" = set; then
1558 enableval="$enable_version_specific_runtime_libs"
1559 case "$enableval" in
1560 yes) version_specific_libs=yes ;;
1561 no) version_specific_libs=no ;;
1562 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1563 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1564 { (exit 1); exit 1; }; };;
1567 version_specific_libs=no
1571 # Default to --enable-multilib
1572 # Check whether --enable-multilib or --disable-multilib was given.
1573 if test "${enable_multilib+set}" = set; then
1574 enableval="$enable_multilib"
1575 case "${enableval}" in
1576 yes) multilib=yes ;;
1578 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1579 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1580 { (exit 1); exit 1; }; } ;;
1585 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1588 # (1) We use an abnormal CXX (without library references), so we
1589 # must cache it under a different name.
1590 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1591 # the non-multilib-adjusted value will be used in multilibs.
1592 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1593 # (4) As another side effect, automake doesn't automatically include them
1595 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1596 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1597 # used in later tests. This may not be necessary in libjava; I don't know.
1601 save_CXXFLAGS="$CXXFLAGS"
1602 CXXFLAGS="$CXXFLAGS -fno-builtin"
1604 ac_cpp='$CPP $CPPFLAGS'
1605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_CC"; then
1647 # Extract the first word of "gcc", so it can be a program name with args.
1648 set dummy gcc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="gcc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 if test -n "$ac_tool_prefix"; then
1689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_CC="${ac_tool_prefix}cc"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 if test -n "$CC"; then
1717 echo "$as_me:$LINENO: result: $CC" >&5
1718 echo "${ECHO_T}$CC" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1725 if test -z "$ac_cv_prog_CC"; then
1727 # Extract the first word of "cc", so it can be a program name with args.
1728 set dummy cc; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 if test -n "$ac_ct_CC"; then
1735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_ac_ct_CC="cc"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1754 if test -n "$ac_ct_CC"; then
1755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1756 echo "${ECHO_T}$ac_ct_CC" >&6
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1768 if test -z "$CC"; then
1769 # Extract the first word of "cc", so it can be a program name with args.
1770 set dummy cc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1788 ac_prog_rejected=yes
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 if test $ac_prog_rejected = yes; then
1799 # We found a bogon in the path, so make sure we never use it.
1800 set dummy $ac_cv_prog_CC
1802 if test $# != 0; then
1803 # We chose a different compiler from the bogus one.
1804 # However, it has the same basename, so the bogon will be chosen
1805 # first if we set CC to just the basename; use the full file name.
1807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1813 if test -n "$CC"; then
1814 echo "$as_me:$LINENO: result: $CC" >&5
1815 echo "${ECHO_T}$CC" >&6
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1822 if test -z "$CC"; then
1823 if test -n "$ac_tool_prefix"; then
1826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$CC" && break
1864 if test -z "$CC"; then
1868 # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_CC="$ac_prog"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1903 test -n "$ac_ct_CC" && break
1912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&2;}
1916 { (exit 1); exit 1; }; }
1918 # Provide some information about the compiler.
1919 echo "$as_me:$LINENO:" \
1920 "checking for C compiler version" >&5
1921 ac_compiler=`set X $ac_compile; echo $2`
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1938 cat >conftest.$ac_ext <<_ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1955 (eval $ac_link) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; then
1964 if test x$gcc_no_link = xyes; then
1965 # Setting cross_compile will disable run tests; it will
1966 # also disable AC_CHECK_FILE but that's generally
1967 # correct if we can't link.
1971 cat >conftest.$ac_ext <<_ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1986 ac_clean_files_save=$ac_clean_files
1987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1988 # Try to create an executable without -o first, disregard a.out.
1989 # It will help us diagnose broken compilers, and finding out an intuition
1991 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1994 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1995 (eval $ac_link_default) 2>&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; then
1999 # Find the output, starting from the most likely. This scheme is
2000 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2003 # Be careful to initialize this variable, since it used to be cached.
2004 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2006 # b.out is created by i960 compilers.
2007 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2009 test -f "$ac_file" || continue
2011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2014 # This is the source file.
2017 # We found the default executable, but exeext='' is most
2021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2022 # FIXME: I believe we export ac_cv_exeext for Libtool,
2023 # but it would be cool to find out if it's true. Does anybody
2024 # maintain Libtool? --akim.
2032 echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: C compiler cannot create executables
2038 See \`config.log' for more details." >&2;}
2039 { (exit 77); exit 77; }; }
2042 ac_exeext=$ac_cv_exeext
2043 echo "$as_me:$LINENO: result: $ac_file" >&5
2044 echo "${ECHO_T}$ac_file" >&6
2046 # Check the compiler produces executables we can run. If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2051 # If not cross compiling, check that we can run a simple program.
2052 if test "$cross_compiling" != yes; then
2053 if { ac_try='./$ac_file'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2061 if test "$cross_compiling" = maybe; then
2064 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'.
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: cannot run C compiled programs.
2068 If you meant to cross compile, use \`--host'.
2069 See \`config.log' for more details." >&2;}
2070 { (exit 1); exit 1; }; }
2074 echo "$as_me:$LINENO: result: yes" >&5
2075 echo "${ECHO_T}yes" >&6
2077 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2078 ac_clean_files=$ac_clean_files_save
2079 # Check the compiler produces executables we can run. If not, either
2080 # the compiler is broken, or we cross compile.
2081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2082 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2083 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2084 echo "${ECHO_T}$cross_compiling" >&6
2086 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2087 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2089 (eval $ac_link) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; then
2093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2095 # work properly (i.e., refer to `conftest.exe'), while it won't with
2097 for ac_file in conftest.exe conftest conftest.*; do
2098 test -f "$ac_file" || continue
2100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2101 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2111 See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2115 rm -f conftest$ac_cv_exeext
2116 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2117 echo "${ECHO_T}$ac_cv_exeext" >&6
2119 rm -f conftest.$ac_ext
2120 EXEEXT=$ac_cv_exeext
2123 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2124 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2125 if test "${ac_cv_objext+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 cat >conftest.$ac_ext <<_ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h. */
2143 rm -f conftest.o conftest.obj
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2163 See \`config.log' for more details." >&2;}
2164 { (exit 1); exit 1; }; }
2167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2169 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2170 echo "${ECHO_T}$ac_cv_objext" >&6
2171 OBJEXT=$ac_cv_objext
2173 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2174 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2175 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 cat >conftest.$ac_ext <<_ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2200 grep -v '^ *+' conftest.er1 >conftest.err
2202 cat conftest.err >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try='test -z "$ac_c_werror_flag"
2206 || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2229 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2230 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2231 GCC=`test $ac_compiler_gnu = yes && echo yes`
2232 ac_test_CFLAGS=${CFLAGS+set}
2233 ac_save_CFLAGS=$CFLAGS
2235 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2236 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2237 if test "${ac_cv_prog_cc_g+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 cat >conftest.$ac_ext <<_ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h. */
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2287 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2288 if test "$ac_test_CFLAGS" = set; then
2289 CFLAGS=$ac_save_CFLAGS
2290 elif test $ac_cv_prog_cc_g = yes; then
2291 if test "$GCC" = yes; then
2297 if test "$GCC" = yes; then
2303 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2304 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2305 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 ac_cv_prog_cc_stdc=no
2310 cat >conftest.$ac_ext <<_ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2318 #include <sys/types.h>
2319 #include <sys/stat.h>
2320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2321 struct buf { int x; };
2322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2323 static char *e (p, i)
2329 static char *f (char * (*g) (char **, int), char **p, ...)
2334 s = g (p, va_arg (v,int));
2339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2340 function prototypes and stuff, but not '\xHH' hex character constants.
2341 These don't provoke an error unfortunately, instead are silently treated
2342 as 'x'. The following induces an error, until -std1 is added to get
2343 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2344 array size at least. It's necessary to write '\x00'==0 to get something
2345 that's true only with -std1. */
2346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2348 int test (int i, double x);
2349 struct s1 {int (*f) (int a);};
2350 struct s2 {int (*f) (double a);};
2351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2362 # Don't try gcc -ansi; that turns off useful extensions and
2363 # breaks some systems' header files.
2364 # AIX -qlanglvl=ansi
2365 # Ultrix and OSF/1 -std1
2366 # HP-UX 10.20 and later -Ae
2367 # HP-UX older versions -Aa -D_HPUX_SOURCE
2368 # SVR4 -Xc -D__EXTENSIONS__
2369 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2371 CC="$ac_save_CC $ac_arg"
2372 rm -f conftest.$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>conftest.er1
2376 grep -v '^ *+' conftest.er1 >conftest.err
2378 cat conftest.err >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try='test -z "$ac_c_werror_flag"
2382 || test ! -s conftest.err'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2394 ac_cv_prog_cc_stdc=$ac_arg
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2401 rm -f conftest.err conftest.$ac_objext
2403 rm -f conftest.$ac_ext conftest.$ac_objext
2408 case "x$ac_cv_prog_cc_stdc" in
2410 echo "$as_me:$LINENO: result: none needed" >&5
2411 echo "${ECHO_T}none needed" >&6 ;;
2413 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2414 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2415 CC="$CC $ac_cv_prog_cc_stdc" ;;
2418 # Some people use a C++ compiler to compile C. Since we use `exit',
2419 # in C++ we need to declare it. In case someone uses the same compiler
2420 # for both compiling C and C++ we need to have the C++ compiler decide
2421 # the declaration of exit, since it's the most demanding environment.
2422 cat >conftest.$ac_ext <<_ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>conftest.er1
2431 grep -v '^ *+' conftest.er1 >conftest.err
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2449 for ac_declaration in \
2451 'extern "C" void std::exit (int) throw (); using std::exit;' \
2452 'extern "C" void std::exit (int); using std::exit;' \
2453 'extern "C" void exit (int) throw ();' \
2454 'extern "C" void exit (int);' \
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2477 grep -v '^ *+' conftest.er1 >conftest.err
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -z "$ac_c_werror_flag"
2483 || test ! -s conftest.err'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; } &&
2489 { ac_try='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2522 grep -v '^ *+' conftest.er1 >conftest.err
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 if test -n "$ac_declaration"; then
2550 echo '#ifdef __cplusplus' >>confdefs.h
2551 echo $ac_declaration >>confdefs.h
2552 echo '#endif' >>confdefs.h
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 ac_cpp='$CXXCPP $CPPFLAGS'
2569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2572 if test -n "$ac_tool_prefix"; then
2573 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2577 echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2579 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$CXX"; then
2583 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 CXX=$glibcxx_cv_prog_CXX
2602 if test -n "$CXX"; then
2603 echo "$as_me:$LINENO: result: $CXX" >&5
2604 echo "${ECHO_T}$CXX" >&6
2606 echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6
2610 test -n "$CXX" && break
2613 if test -z "$CXX"; then
2615 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2621 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 if test -n "$ac_ct_CXX"; then
2625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_ac_ct_CXX="$ac_prog"
2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2644 if test -n "$ac_ct_CXX"; then
2645 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2646 echo "${ECHO_T}$ac_ct_CXX" >&6
2648 echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6
2652 test -n "$ac_ct_CXX" && break
2654 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2660 # Provide some information about the compiler.
2661 echo "$as_me:$LINENO:" \
2662 "checking for C++ compiler version" >&5
2663 ac_compiler=`set X $ac_compile; echo $2`
2664 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2665 (eval $ac_compiler --version </dev/null >&5) 2>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }
2669 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2670 (eval $ac_compiler -v </dev/null >&5) 2>&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2675 (eval $ac_compiler -V </dev/null >&5) 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2682 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_cxx_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2736 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2737 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2738 GXX=`test $ac_compiler_gnu = yes && echo yes`
2739 ac_test_CXXFLAGS=${CXXFLAGS+set}
2740 ac_save_CXXFLAGS=$CXXFLAGS
2742 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2743 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2744 if test "${ac_cv_prog_cxx_g+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 cat >conftest.$ac_ext <<_ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1 >conftest.err
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_cxx_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_prog_cxx_g=yes
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2795 if test "$ac_test_CXXFLAGS" = set; then
2796 CXXFLAGS=$ac_save_CXXFLAGS
2797 elif test $ac_cv_prog_cxx_g = yes; then
2798 if test "$GXX" = yes; then
2804 if test "$GXX" = yes; then
2810 for ac_declaration in \
2812 'extern "C" void std::exit (int) throw (); using std::exit;' \
2813 'extern "C" void std::exit (int); using std::exit;' \
2814 'extern "C" void exit (int) throw ();' \
2815 'extern "C" void exit (int);' \
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2834 rm -f conftest.$ac_objext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836 (eval $ac_compile) 2>conftest.er1
2838 grep -v '^ *+' conftest.er1 >conftest.err
2840 cat conftest.err >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try='test -z "$ac_cxx_werror_flag"
2844 || test ! -s conftest.err'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864 cat >conftest.$ac_ext <<_ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_cxx_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910 if test -n "$ac_declaration"; then
2911 echo '#ifdef __cplusplus' >>confdefs.h
2912 echo $ac_declaration >>confdefs.h
2913 echo '#endif' >>confdefs.h
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922 CXXFLAGS="$save_CXXFLAGS"
2928 am__api_version="1.9"
2929 # Find a good install program. We prefer a C program (faster),
2930 # so one script is as good as another. But avoid the broken or
2931 # incompatible versions:
2932 # SysV /etc/install, /usr/sbin/install
2933 # SunOS /usr/etc/install
2934 # IRIX /sbin/install
2936 # AmigaOS /C/install, which installs bootblocks on floppy discs
2937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2940 # OS/2's system install, which has a completely different semantic
2941 # ./install, which can be erroneously created by make from ./install.sh.
2942 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2943 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2944 if test -z "$INSTALL"; then
2945 if test "${ac_cv_path_install+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 # Account for people who put trailing slashes in PATH elements.
2955 ./ | .// | /cC/* | \
2956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2957 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2960 # OSF1 and SCO ODT 3.0 have their own names for install.
2961 # Don't use installbsd from OSF since it installs stuff as root
2963 for ac_prog in ginstall scoinst install; do
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2966 if test $ac_prog = install &&
2967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # AIX install. It has an incompatible calling convention.
2970 elif test $ac_prog = install &&
2971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # program-specific install script used by HP pwplus--don't use.
2975 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2987 if test "${ac_cv_path_install+set}" = set; then
2988 INSTALL=$ac_cv_path_install
2990 # As a last resort, use the slow shell script. We don't cache a
2991 # path for INSTALL within a source directory, because that will
2992 # break other packages using the cache if that directory is
2993 # removed, or if the path is relative.
2994 INSTALL=$ac_install_sh
2997 echo "$as_me:$LINENO: result: $INSTALL" >&5
2998 echo "${ECHO_T}$INSTALL" >&6
3000 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3001 # It thinks the first close brace ends the variable substitution.
3002 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3004 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3006 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3008 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3009 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3012 echo timestamp > conftest.file
3013 # Do `set' in a subshell so we don't clobber the current shell's
3014 # arguments. Must try -L first in case configure is actually a
3015 # symlink; some systems play weird games with the mod time of symlinks
3016 # (eg FreeBSD returns the mod time of the symlink's containing
3019 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3020 if test "$*" = "X"; then
3022 set X `ls -t $srcdir/configure conftest.file`
3025 if test "$*" != "X $srcdir/configure conftest.file" \
3026 && test "$*" != "X conftest.file $srcdir/configure"; then
3028 # If neither matched, then we have a broken ls. This can happen
3029 # if, for instance, CONFIG_SHELL is bash and it inherits a
3030 # broken ls alias from the environment. This has actually
3031 # happened. Such a system could not be considered "sane".
3032 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3033 alias in your environment" >&5
3034 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3035 alias in your environment" >&2;}
3036 { (exit 1); exit 1; }; }
3039 test "$2" = conftest.file
3045 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3046 Check your system clock" >&5
3047 echo "$as_me: error: newly created file is older than distributed files!
3048 Check your system clock" >&2;}
3049 { (exit 1); exit 1; }; }
3051 echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3053 test "$program_prefix" != NONE &&
3054 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3055 # Use a double $ so make ignores it.
3056 test "$program_suffix" != NONE &&
3057 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3058 # Double any \ or $. echo might interpret backslashes.
3059 # By default was `s,x,x', remove it if useless.
3060 cat <<\_ACEOF >conftest.sed
3061 s/[\\$]/&&/g;s/;s,x,x,$//
3063 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3066 # expand $ac_aux_dir to an absolute path
3067 am_aux_dir=`cd $ac_aux_dir && pwd`
3069 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3070 # Use eval to expand $SHELL
3071 if eval "$MISSING --run true"; then
3072 am_missing_run="$MISSING --run "
3075 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3076 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3079 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3080 # We used to keeping the `.' as first argument, in order to
3081 # allow $(mkdir_p) to be used without argument. As in
3082 # $(mkdir_p) $(somedir)
3083 # where $(somedir) is conditionally defined. However this is wrong
3085 # 1. if the package is installed by a user who cannot write `.'
3086 # make install will fail,
3087 # 2. the above comment should most certainly read
3088 # $(mkdir_p) $(DESTDIR)$(somedir)
3089 # so it does not work when $(somedir) is undefined and
3090 # $(DESTDIR) is not.
3091 # To support the latter case, we have to write
3092 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3093 # so the `.' trick is pointless.
3094 mkdir_p='mkdir -p --'
3096 # On NextStep and OpenStep, the `mkdir' command does not
3097 # recognize any option. It will interpret all options as
3098 # directories to create, and then abort because `.' already
3100 for d in ./-p ./--version;
3102 test -d $d && rmdir $d
3104 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3105 if test -f "$ac_aux_dir/mkinstalldirs"; then
3106 mkdir_p='$(mkinstalldirs)'
3108 mkdir_p='$(install_sh) -d'
3112 for ac_prog in gawk mawk nawk awk
3114 # Extract the first word of "$ac_prog", so it can be a program name with args.
3115 set dummy $ac_prog; ac_word=$2
3116 echo "$as_me:$LINENO: checking for $ac_word" >&5
3117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118 if test "${ac_cv_prog_AWK+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 if test -n "$AWK"; then
3122 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_AWK="$ac_prog"
3132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 if test -n "$AWK"; then
3142 echo "$as_me:$LINENO: result: $AWK" >&5
3143 echo "${ECHO_T}$AWK" >&6
3145 echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3149 test -n "$AWK" && break
3152 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3153 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3154 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3155 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 cat >conftest.make <<\_ACEOF
3160 @echo 'ac_maketemp="$(MAKE)"'
3162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3163 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3164 if test -n "$ac_maketemp"; then
3165 eval ac_cv_prog_make_${ac_make}_set=yes
3167 eval ac_cv_prog_make_${ac_make}_set=no
3171 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3172 echo "$as_me:$LINENO: result: yes" >&5
3173 echo "${ECHO_T}yes" >&6
3176 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3178 SET_MAKE="MAKE=${MAKE-make}"
3181 rm -rf .tst 2>/dev/null
3182 mkdir .tst 2>/dev/null
3183 if test -d .tst; then
3188 rmdir .tst 2>/dev/null
3190 DEPDIR="${am__leading_dot}deps"
3192 ac_config_commands="$ac_config_commands depfiles"
3195 am_make=${MAKE-make}
3196 cat > confinc << 'END'
3201 # If we don't find an include directive, just comment out the code.
3202 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3203 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3207 # First try GNU make style include.
3208 echo "include confinc" > confmf
3209 # We grep out `Entering directory' and `Leaving directory'
3210 # messages which can occur if `w' ends up in MAKEFLAGS.
3211 # In particular we don't look at `^make:' because GNU make might
3212 # be invoked under some other name (usually "gmake"), in which
3213 # case it prints its new name instead of `make'.
3214 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3219 # Now try BSD make style include.
3220 if test "$am__include" = "#"; then
3221 echo '.include "confinc"' > confmf
3222 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3223 am__include=.include
3230 echo "$as_me:$LINENO: result: $_am_result" >&5
3231 echo "${ECHO_T}$_am_result" >&6
3232 rm -f confinc confmf
3234 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3235 if test "${enable_dependency_tracking+set}" = set; then
3236 enableval="$enable_dependency_tracking"
3239 if test "x$enable_dependency_tracking" != xno; then
3240 am_depcomp="$ac_aux_dir/depcomp"
3245 if test "x$enable_dependency_tracking" != xno; then
3255 # test to see if srcdir already configured
3256 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3257 test -f $srcdir/config.status; then
3258 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3259 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3260 { (exit 1); exit 1; }; }
3263 # test whether we have cygpath
3264 if test -z "$CYGPATH_W"; then
3265 if (cygpath --version) >/dev/null 2>/dev/null; then
3266 CYGPATH_W='cygpath -w'
3273 # Define the identity of the package.
3275 VERSION='version-unused'
3278 cat >>confdefs.h <<_ACEOF
3279 #define PACKAGE "$PACKAGE"
3283 cat >>confdefs.h <<_ACEOF
3284 #define VERSION "$VERSION"
3287 # Some tools Automake needs.
3289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3303 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3305 # Installed binaries are usually stripped using `strip' when the user
3306 # run `make install-strip'. However `strip' might not be the right
3307 # tool to use in cross-compilation environments, therefore Automake
3308 # will honor the `STRIP' environment variable to overrule this program.
3309 if test "$cross_compiling" != no; then
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}strip; ac_word=$2
3313 echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_STRIP+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 if test -n "$STRIP"; then
3319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 STRIP=$ac_cv_prog_STRIP
3338 if test -n "$STRIP"; then
3339 echo "$as_me:$LINENO: result: $STRIP" >&5
3340 echo "${ECHO_T}$STRIP" >&6
3342 echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3347 if test -z "$ac_cv_prog_STRIP"; then
3349 # Extract the first word of "strip", so it can be a program name with args.
3350 set dummy strip; ac_word=$2
3351 echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 if test -n "$ac_ct_STRIP"; then
3357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_ac_ct_STRIP="strip"
3367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3377 if test -n "$ac_ct_STRIP"; then
3378 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3379 echo "${ECHO_T}$ac_ct_STRIP" >&6
3381 echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3387 STRIP="$ac_cv_prog_STRIP"
3391 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3393 # We need awk for the "check" target. The system "awk" is bad on
3395 # Always define AMTAR for backward compatibility.
3397 AMTAR=${AMTAR-"${am_missing_run}tar"}
3399 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3404 depcc="$CC" am_compiler_list=
3406 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3412 # We make a subdir and do the tests there. Otherwise we can end up
3413 # making bogus files that we don't know about and never remove. For
3414 # instance it was reported that on HP-UX the gcc test will end up
3415 # making a dummy file named `D' -- because `-MD' means `put the output
3418 # Copy depcomp to subdir because otherwise we won't find it if we're
3419 # using a relative directory.
3420 cp "$am_depcomp" conftest.dir
3422 # We will build objects and dependencies in a subdirectory because
3423 # it helps to detect inapplicable dependency modes. For instance
3424 # both Tru64's cc and ICC support -MD to output dependencies as a
3425 # side effect of compilation, but ICC will put the dependencies in
3426 # the current directory while Tru64 will put them in the object
3430 am_cv_CC_dependencies_compiler_type=none
3431 if test "$am_compiler_list" = ""; then
3432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3434 for depmode in $am_compiler_list; do
3435 # Setup a source with many dependencies, because some compilers
3436 # like to wrap large dependency lists on column 80 (with \), and
3437 # we should not choose a depcomp mode which is confused by this.
3439 # We need to recreate these files for each test, as the compiler may
3440 # overwrite some of them when testing with obscure command lines.
3441 # This happens at least with the AIX C compiler.
3443 for i in 1 2 3 4 5 6; do
3444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3446 # Solaris 8's {/usr,}/bin/sh.
3447 touch sub/conftst$i.h
3449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3453 # after this tag, mechanisms are not by side-effect, so they'll
3454 # only be used when explicitly requested
3455 if test "x$enable_dependency_tracking" = xyes; then
3463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3464 # mode. It turns out that the SunPro C++ compiler does not properly
3465 # handle `-M -o', and we need to detect this.
3466 if depmode=$depmode \
3467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3470 >/dev/null 2>conftest.err &&
3471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3474 # icc doesn't choke on unknown options, it will just issue warnings
3475 # or remarks (even with -Werror). So we grep stderr for any message
3476 # that says an option was ignored or not supported.
3477 # When given -MP, icc 7.0 and 7.1 complain thusly:
3478 # icc: Command line warning: ignoring option '-M'; no argument required
3479 # The diagnosis changed in icc 8.0:
3480 # icc: Command line remark: option '-MP' not supported
3481 if (grep 'ignoring option' conftest.err ||
3482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3483 am_cv_CC_dependencies_compiler_type=$depmode
3492 am_cv_CC_dependencies_compiler_type=none
3496 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3503 test "x$enable_dependency_tracking" != xno \
3504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3506 am__fastdepCC_FALSE='#'
3508 am__fastdepCC_TRUE='#'
3509 am__fastdepCC_FALSE=
3513 depcc="$CXX" am_compiler_list=
3515 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3516 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3517 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3521 # We make a subdir and do the tests there. Otherwise we can end up
3522 # making bogus files that we don't know about and never remove. For
3523 # instance it was reported that on HP-UX the gcc test will end up
3524 # making a dummy file named `D' -- because `-MD' means `put the output
3527 # Copy depcomp to subdir because otherwise we won't find it if we're
3528 # using a relative directory.
3529 cp "$am_depcomp" conftest.dir
3531 # We will build objects and dependencies in a subdirectory because
3532 # it helps to detect inapplicable dependency modes. For instance
3533 # both Tru64's cc and ICC support -MD to output dependencies as a
3534 # side effect of compilation, but ICC will put the dependencies in
3535 # the current directory while Tru64 will put them in the object
3539 am_cv_CXX_dependencies_compiler_type=none
3540 if test "$am_compiler_list" = ""; then
3541 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3543 for depmode in $am_compiler_list; do
3544 # Setup a source with many dependencies, because some compilers
3545 # like to wrap large dependency lists on column 80 (with \), and
3546 # we should not choose a depcomp mode which is confused by this.
3548 # We need to recreate these files for each test, as the compiler may
3549 # overwrite some of them when testing with obscure command lines.
3550 # This happens at least with the AIX C compiler.
3552 for i in 1 2 3 4 5 6; do
3553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3555 # Solaris 8's {/usr,}/bin/sh.
3556 touch sub/conftst$i.h
3558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3562 # after this tag, mechanisms are not by side-effect, so they'll
3563 # only be used when explicitly requested
3564 if test "x$enable_dependency_tracking" = xyes; then
3572 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3573 # mode. It turns out that the SunPro C++ compiler does not properly
3574 # handle `-M -o', and we need to detect this.
3575 if depmode=$depmode \
3576 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3577 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3578 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3579 >/dev/null 2>conftest.err &&
3580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3581 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3583 # icc doesn't choke on unknown options, it will just issue warnings
3584 # or remarks (even with -Werror). So we grep stderr for any message
3585 # that says an option was ignored or not supported.
3586 # When given -MP, icc 7.0 and 7.1 complain thusly:
3587 # icc: Command line warning: ignoring option '-M'; no argument required
3588 # The diagnosis changed in icc 8.0:
3589 # icc: Command line remark: option '-MP' not supported
3590 if (grep 'ignoring option' conftest.err ||
3591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3592 am_cv_CXX_dependencies_compiler_type=$depmode
3601 am_cv_CXX_dependencies_compiler_type=none
3605 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3606 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3607 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3612 test "x$enable_dependency_tracking" != xno \
3613 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3614 am__fastdepCXX_TRUE=
3615 am__fastdepCXX_FALSE='#'
3617 am__fastdepCXX_TRUE='#'
3618 am__fastdepCXX_FALSE=
3624 if test -n "$ac_tool_prefix"; then
3625 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3626 set dummy ${ac_tool_prefix}as; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_prog_AS+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 if test -n "$AS"; then
3633 ac_cv_prog_AS="$AS" # Let the user override the test.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 ac_cv_prog_AS="${ac_tool_prefix}as"
3643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 if test -n "$AS"; then
3653 echo "$as_me:$LINENO: result: $AS" >&5
3654 echo "${ECHO_T}$AS" >&6
3656 echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3661 if test -z "$ac_cv_prog_AS"; then
3663 # Extract the first word of "as", so it can be a program name with args.
3664 set dummy as; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test -n "$ac_ct_AS"; then
3671 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_ac_ct_AS="as"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3690 if test -n "$ac_ct_AS"; then
3691 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3692 echo "${ECHO_T}$ac_ct_AS" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3703 if test -n "$ac_tool_prefix"; then
3704 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3705 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 if test -n "$AR"; then
3712 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 if test -n "$AR"; then
3732 echo "$as_me:$LINENO: result: $AR" >&5
3733 echo "${ECHO_T}$AR" >&6
3735 echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3740 if test -z "$ac_cv_prog_AR"; then
3742 # Extract the first word of "ar", so it can be a program name with args.
3743 set dummy ar; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 if test -n "$ac_ct_AR"; then
3750 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_ac_ct_AR="ar"
3760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3769 if test -n "$ac_ct_AR"; then
3770 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3771 echo "${ECHO_T}$ac_ct_AR" >&6
3773 echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3782 if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 if test -n "$RANLIB"; then
3791 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
3801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 RANLIB=$ac_cv_prog_RANLIB
3810 if test -n "$RANLIB"; then
3811 echo "$as_me:$LINENO: result: $RANLIB" >&5
3812 echo "${ECHO_T}$RANLIB" >&6
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3819 if test -z "$ac_cv_prog_RANLIB"; then
3820 ac_ct_RANLIB=$RANLIB
3821 # Extract the first word of "ranlib", so it can be a program name with args.
3822 set dummy ranlib; ac_word=$2
3823 echo "$as_me:$LINENO: checking for $ac_word" >&5
3824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3825 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 if test -n "$ac_ct_RANLIB"; then
3829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_ac_ct_RANLIB="ranlib"
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3848 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3849 if test -n "$ac_ct_RANLIB"; then
3850 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3851 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3853 echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3857 RANLIB=$ac_ct_RANLIB
3859 RANLIB="$ac_cv_prog_RANLIB"
3863 # Find a good install program. We prefer a C program (faster),
3864 # so one script is as good as another. But avoid the broken or
3865 # incompatible versions:
3866 # SysV /etc/install, /usr/sbin/install
3867 # SunOS /usr/etc/install
3868 # IRIX /sbin/install
3870 # AmigaOS /C/install, which installs bootblocks on floppy discs
3871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3874 # OS/2's system install, which has a completely different semantic
3875 # ./install, which can be erroneously created by make from ./install.sh.
3876 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3877 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3878 if test -z "$INSTALL"; then
3879 if test "${ac_cv_path_install+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir=.
3887 # Account for people who put trailing slashes in PATH elements.
3889 ./ | .// | /cC/* | \
3890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3891 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3894 # OSF1 and SCO ODT 3.0 have their own names for install.
3895 # Don't use installbsd from OSF since it installs stuff as root
3897 for ac_prog in ginstall scoinst install; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3900 if test $ac_prog = install &&
3901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3902 # AIX install. It has an incompatible calling convention.
3904 elif test $ac_prog = install &&
3905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3906 # program-specific install script used by HP pwplus--don't use.
3909 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3921 if test "${ac_cv_path_install+set}" = set; then
3922 INSTALL=$ac_cv_path_install
3924 # As a last resort, use the slow shell script. We don't cache a
3925 # path for INSTALL within a source directory, because that will
3926 # break other packages using the cache if that directory is
3927 # removed, or if the path is relative.
3928 INSTALL=$ac_install_sh
3931 echo "$as_me:$LINENO: result: $INSTALL" >&5
3932 echo "${ECHO_T}$INSTALL" >&6
3934 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3935 # It thinks the first close brace ends the variable substitution.
3936 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3938 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3940 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3943 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3944 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3945 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3946 if test "${enable_maintainer_mode+set}" = set; then
3947 enableval="$enable_maintainer_mode"
3948 USE_MAINTAINER_MODE=$enableval
3950 USE_MAINTAINER_MODE=no
3952 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3953 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3956 if test $USE_MAINTAINER_MODE = yes; then
3957 MAINTAINER_MODE_TRUE=
3958 MAINTAINER_MODE_FALSE='#'
3960 MAINTAINER_MODE_TRUE='#'
3961 MAINTAINER_MODE_FALSE=
3964 MAINT=$MAINTAINER_MODE_TRUE
3970 # configure.host sets the following important variables
3971 # libgcj_cflags - host specific C compiler flags
3972 # libgcj_cxxflags - host specific C++ compiler flags
3973 # libgcj_javaflags - host specific Java compiler flags
3979 . ${srcdir}/configure.host
3981 LIBGCJ_CFLAGS="${libgcj_cflags}"
3982 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3983 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3988 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3991 # Only use libltdl for non-newlib builds.
3992 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3993 case $enable_ltdl_convenience in
3994 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3995 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3996 { (exit 1); exit 1; }; } ;;
3997 "") enable_ltdl_convenience=yes
3998 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4000 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4001 INCLTDL='-I${top_srcdir}/''libltdl'
4006 cat >>confdefs.h <<\_ACEOF
4010 # Sigh. Libtool's macro doesn't do the right thing.
4011 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4012 # FIXME: this is a hack.
4013 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4014 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4019 # Check whether --enable-shared or --disable-shared was given.
4020 if test "${enable_shared+set}" = set; then
4021 enableval="$enable_shared"
4022 p=${PACKAGE-default}
4024 yes) enable_shared=yes ;;
4025 no) enable_shared=no ;;
4028 # Look at the argument we got. We use all the common list separators.
4029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4030 for pkg in $enableval; do
4031 if test "X$pkg" = "X$p"; then
4041 # Check whether --enable-static or --disable-static was given.
4042 if test "${enable_static+set}" = set; then
4043 enableval="$enable_static"
4044 p=${PACKAGE-default}
4046 yes) enable_static=yes ;;
4047 no) enable_static=no ;;
4050 # Look at the argument we got. We use all the common list separators.
4051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4052 for pkg in $enableval; do
4053 if test "X$pkg" = "X$p"; then
4063 # Check whether --enable-fast-install or --disable-fast-install was given.
4064 if test "${enable_fast_install+set}" = set; then
4065 enableval="$enable_fast_install"
4066 p=${PACKAGE-default}
4068 yes) enable_fast_install=yes ;;
4069 no) enable_fast_install=no ;;
4071 enable_fast_install=no
4072 # Look at the argument we got. We use all the common list separators.
4073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4074 for pkg in $enableval; do
4075 if test "X$pkg" = "X$p"; then
4076 enable_fast_install=yes
4083 enable_fast_install=yes
4086 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4087 if test "${with_gnu_ld+set}" = set; then
4088 withval="$with_gnu_ld"
4089 test "$withval" = no || with_gnu_ld=yes
4094 if test "$GCC" = yes; then
4095 # Check if gcc -print-prog-name=ld gives a path.
4096 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4097 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4100 # gcc leaves a trailing carriage return which upsets mingw
4101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4106 # Accept absolute paths.
4107 [\\/]* | [A-Za-z]:[\\/]*)
4108 re_direlt='/[^/][^/]*/\.\./'
4109 # Canonicalize the path of ld
4110 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4111 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4112 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4114 test -z "$LD" && LD="$ac_prog"
4117 # If it fails, then pretend we aren't using GCC.
4121 # If it is relative, then search for the first ld in PATH.
4125 elif test "$with_gnu_ld" = yes; then
4126 echo "$as_me:$LINENO: checking for GNU ld" >&5
4127 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4129 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4130 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4132 if test "${lt_cv_path_LD+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 if test -z "$LD"; then
4136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4137 for ac_dir in $PATH; do
4138 test -z "$ac_dir" && ac_dir=.
4139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4140 lt_cv_path_LD="$ac_dir/$ac_prog"
4141 # Check to see if the program is GNU ld. I'd rather use --version,
4142 # but apparently some GNU ld's only accept -v.
4143 # Break only if it was the GNU/non-GNU ld that we prefer.
4144 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4145 test "$with_gnu_ld" != no && break
4147 test "$with_gnu_ld" != yes && break
4153 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4158 if test -n "$LD"; then
4159 echo "$as_me:$LINENO: result: $LD" >&5
4160 echo "${ECHO_T}$LD" >&6
4162 echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6
4165 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4166 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4167 { (exit 1); exit 1; }; }
4168 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4169 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4170 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4174 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4175 lt_cv_prog_gnu_ld=yes
4177 lt_cv_prog_gnu_ld=no
4180 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4181 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4182 with_gnu_ld=$lt_cv_prog_gnu_ld
4185 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4186 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4187 if test "${lt_cv_ld_reload_flag+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 lt_cv_ld_reload_flag='-r'
4192 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4193 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4194 reload_flag=$lt_cv_ld_reload_flag
4195 test -n "$reload_flag" && reload_flag=" $reload_flag"
4197 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4198 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4199 if test "${lt_cv_path_NM+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 if test -n "$NM"; then
4203 # Let the user override the test.
4206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4207 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4208 test -z "$ac_dir" && ac_dir=.
4209 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4210 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4211 # Check to see if the nm accepts a BSD-compat flag.
4212 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4213 # nm: unknown option "B" ignored
4214 # Tru64's nm complains that /dev/null is an invalid object file
4215 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4216 lt_cv_path_NM="$tmp_nm -B"
4218 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4219 lt_cv_path_NM="$tmp_nm -p"
4222 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4223 continue # so that we can try to find one that supports BSD flags
4228 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4233 echo "$as_me:$LINENO: result: $NM" >&5
4234 echo "${ECHO_T}$NM" >&6
4236 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4237 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4238 if test "${lt_cv_deplibs_check_method+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 lt_cv_file_magic_cmd='$MAGIC_CMD'
4242 lt_cv_file_magic_test_file=
4243 lt_cv_deplibs_check_method='unknown'
4244 # Need to set the preceding variable on all platforms that support
4245 # interlibrary dependencies.
4246 # 'none' -- dependencies not supported.
4247 # `unknown' -- same as none, but documents that we really don't know.
4248 # 'pass_all' -- all dependencies passed with no checks.
4249 # 'test_compile' -- check by making test program.
4250 # 'file_magic [regex]' -- check by looking for files in library path
4251 # which responds to the $file_magic_cmd with a given egrep regex.
4252 # If you have `file' or equivalent on your system and you're not sure
4253 # whether `pass_all' will *always* work, you probably want this one.
4257 lt_cv_deplibs_check_method=pass_all
4261 lt_cv_deplibs_check_method=pass_all
4265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4266 lt_cv_file_magic_cmd='/usr/bin/file -L'
4267 lt_cv_file_magic_test_file=/shlib/libc.so
4270 cygwin* | mingw* |pw32*)
4271 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4272 lt_cv_file_magic_cmd='$OBJDUMP -f'
4275 darwin* | rhapsody*)
4276 # this will be overwritten by pass_all, but leave it in just in case
4277 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4278 lt_cv_file_magic_cmd='/usr/bin/file -L'
4280 rhapsody* | darwin1.012)
4281 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4284 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4287 lt_cv_deplibs_check_method=pass_all
4290 freebsd* | kfreebsd*-gnu)
4291 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4294 # Not sure whether the presence of OpenBSD here was a mistake.
4295 # Let's accept both of them until this is cleared up.
4296 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4297 lt_cv_file_magic_cmd=/usr/bin/file
4298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4302 lt_cv_deplibs_check_method=pass_all
4307 lt_cv_deplibs_check_method=pass_all
4313 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4314 lt_cv_file_magic_cmd=/usr/bin/file
4315 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4318 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4319 lt_cv_file_magic_cmd=/usr/bin/file
4320 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4328 # this will be overridden with pass_all, but let us keep it just in case
4329 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4333 *-32|*"-32 ") libmagic=32-bit;;
4334 *-n32|*"-n32 ") libmagic=N32;;
4335 *-64|*"-64 ") libmagic=64-bit;;
4336 *) libmagic=never-match;;
4338 # this will be overridden with pass_all, but let us keep it just in case
4339 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4342 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4343 lt_cv_deplibs_check_method=pass_all
4346 # This must be Linux ELF.
4349 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4350 lt_cv_deplibs_check_method=pass_all ;;
4352 # glibc up to 2.1.1 does not perform some relocations on ARM
4353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4355 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4358 netbsd* | knetbsd*-gnu)
4359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4360 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4362 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4368 lt_cv_file_magic_cmd=/usr/bin/file
4369 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4372 osf3* | osf4* | osf5*)
4373 # this will be overridden with pass_all, but let us keep it just in case
4374 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4375 lt_cv_file_magic_test_file=/shlib/libc.so
4376 lt_cv_deplibs_check_method=pass_all
4380 lt_cv_deplibs_check_method=pass_all
4384 lt_cv_deplibs_check_method=pass_all
4385 lt_cv_file_magic_test_file=/lib/libc.so
4388 sysv5uw[78]* | sysv4*uw2*)
4389 lt_cv_deplibs_check_method=pass_all
4392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4393 case $host_vendor in
4395 lt_cv_deplibs_check_method=pass_all
4398 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]'
4399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4406 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4407 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4408 file_magic_cmd=$lt_cv_file_magic_cmd
4409 deplibs_check_method=$lt_cv_deplibs_check_method
4414 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4416 # Only perform the check for file, if the check method requires it
4417 case $deplibs_check_method in
4419 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4420 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4421 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4422 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4430 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4433 ac_save_MAGIC_CMD="$MAGIC_CMD"
4434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4435 ac_dummy="/usr/bin:$PATH"
4436 for ac_dir in $ac_dummy; do
4437 test -z "$ac_dir" && ac_dir=.
4438 if test -f $ac_dir/${ac_tool_prefix}file; then
4439 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4440 if test -n "$file_magic_test_file"; then
4441 case $deplibs_check_method in
4443 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4446 egrep "$file_magic_regex" > /dev/null; then
4451 *** Warning: the command libtool uses to detect shared libraries,
4452 *** $file_magic_cmd, produces output that libtool cannot recognize.
4453 *** The result is that libtool may fail to recognize shared libraries
4454 *** as such. This will affect the creation of libtool libraries that
4455 *** depend on shared libraries, but programs linked with such libtool
4456 *** libraries will work regardless of this problem. Nevertheless, you
4457 *** may want to report the problem to your system manager and/or to
4458 *** bug-libtool@gnu.org
4468 MAGIC_CMD="$ac_save_MAGIC_CMD"
4473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4474 if test -n "$MAGIC_CMD"; then
4475 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4476 echo "${ECHO_T}$MAGIC_CMD" >&6
4478 echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4482 if test -z "$lt_cv_path_MAGIC_CMD"; then
4483 if test -n "$ac_tool_prefix"; then
4484 echo "$as_me:$LINENO: checking for file" >&5
4485 echo $ECHO_N "checking for file... $ECHO_C" >&6
4486 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4497 ac_save_MAGIC_CMD="$MAGIC_CMD"
4498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4499 ac_dummy="/usr/bin:$PATH"
4500 for ac_dir in $ac_dummy; do
4501 test -z "$ac_dir" && ac_dir=.
4502 if test -f $ac_dir/file; then
4503 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4504 if test -n "$file_magic_test_file"; then
4505 case $deplibs_check_method in
4507 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4510 egrep "$file_magic_regex" > /dev/null; then
4515 *** Warning: the command libtool uses to detect shared libraries,
4516 *** $file_magic_cmd, produces output that libtool cannot recognize.
4517 *** The result is that libtool may fail to recognize shared libraries
4518 *** as such. This will affect the creation of libtool libraries that
4519 *** depend on shared libraries, but programs linked with such libtool
4520 *** libraries will work regardless of this problem. Nevertheless, you
4521 *** may want to report the problem to your system manager and/or to
4522 *** bug-libtool@gnu.org
4532 MAGIC_CMD="$ac_save_MAGIC_CMD"
4537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4538 if test -n "$MAGIC_CMD"; then
4539 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4540 echo "${ECHO_T}$MAGIC_CMD" >&6
4542 echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4555 if test -n "$ac_tool_prefix"; then
4556 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_RANLIB+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 if test -n "$RANLIB"; then
4564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584 echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593 ac_ct_RANLIB=$RANLIB
4594 # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test -n "$ac_ct_RANLIB"; then
4602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_ac_ct_RANLIB="ranlib"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4626 echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4630 RANLIB=$ac_ct_RANLIB
4632 RANLIB="$ac_cv_prog_RANLIB"
4635 if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}strip; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_STRIP+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 if test -n "$STRIP"; then
4644 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 STRIP=$ac_cv_prog_STRIP
4663 if test -n "$STRIP"; then
4664 echo "$as_me:$LINENO: result: $STRIP" >&5
4665 echo "${ECHO_T}$STRIP" >&6
4667 echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4672 if test -z "$ac_cv_prog_STRIP"; then
4674 # Extract the first word of "strip", so it can be a program name with args.
4675 set dummy strip; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 if test -n "$ac_ct_STRIP"; then
4682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_ac_ct_STRIP="strip"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4702 if test -n "$ac_ct_STRIP"; then
4703 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4704 echo "${ECHO_T}$ac_ct_STRIP" >&6
4706 echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4712 STRIP="$ac_cv_prog_STRIP"
4716 # Check for any special flags to pass to ltconfig.
4717 libtool_flags="--cache-file=$cache_file"
4718 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4719 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4720 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4721 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4722 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4725 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4726 if test "${enable_libtool_lock+set}" = set; then
4727 enableval="$enable_libtool_lock"
4730 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4731 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4734 # Check whether --with-pic or --without-pic was given.
4735 if test "${with_pic+set}" = set; then
4741 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4742 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4744 # Some flags need to be propagated to the compiler or linker for good
4748 # Find out which ABI we are using.
4749 echo '#line 4749 "configure"' > conftest.$ac_ext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; then
4755 if test "$lt_cv_prog_gnu_ld" = yes; then
4756 case `/usr/bin/file conftest.$ac_objext` in
4758 LD="${LD-ld} -melf32bsmip"
4761 LD="${LD-ld} -melf32bmipn32"
4764 LD="${LD-ld} -melf64bmip"
4768 case `/usr/bin/file conftest.$ac_objext` in
4785 # Find out which ABI we are using.
4786 echo 'int i;' > conftest.$ac_ext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; then
4792 case "`/usr/bin/file conftest.o`" in
4804 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4805 # Find out which ABI we are using.
4806 echo 'int i;' > conftest.$ac_ext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; then
4812 case "`/usr/bin/file conftest.o`" in
4816 LD="${LD-ld} -m elf_i386"
4818 ppc64-*linux*|powerpc64-*linux*)
4819 LD="${LD-ld} -m elf32ppclinux"
4822 LD="${LD-ld} -m elf_s390"
4825 LD="${LD-ld} -m elf32_sparc"
4832 LD="${LD-ld} -m elf_x86_64"
4834 ppc*-*linux*|powerpc*-*linux*)
4835 LD="${LD-ld} -m elf64ppc"
4838 LD="${LD-ld} -m elf64_s390"
4841 LD="${LD-ld} -m elf64_sparc"
4851 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4852 SAVE_CFLAGS="$CFLAGS"
4853 CFLAGS="$CFLAGS -belf"
4854 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4855 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4856 if test "${lt_cv_cc_needs_belf+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867 if test x$gcc_no_link = xyes; then
4868 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4870 { (exit 1); exit 1; }; }
4872 cat >conftest.$ac_ext <<_ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889 (eval $ac_link) 2>conftest.er1
4891 grep -v '^ *+' conftest.er1 >conftest.err
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -z "$ac_c_werror_flag"
4897 || test ! -s conftest.err'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest$ac_exeext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 lt_cv_cc_needs_belf=yes
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 lt_cv_cc_needs_belf=no
4916 rm -f conftest.err conftest.$ac_objext \
4917 conftest$ac_exeext conftest.$ac_ext
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4925 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4926 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4927 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4928 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4929 CFLAGS="$SAVE_CFLAGS"
4937 # Save cache, so that ltconfig can load it
4938 cat >confcache <<\_ACEOF
4939 # This file is a shell script that caches the results of configure
4940 # tests run on this system so they can be shared between configure
4941 # scripts and configure runs, see configure's option --config-cache.
4942 # It is not useful on other systems. If it contains results you don't
4943 # want to keep, you may remove or edit it.
4945 # config.status only pays attention to the cache file if you give it
4946 # the --recheck option to rerun configure.
4948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4954 # The following way of writing the cache mishandles newlines in values,
4955 # but we know of no workaround that is simple, portable, and efficient.
4956 # So, don't put newlines in cache variables' values.
4957 # Ultrix sh set writes to stderr and can't be redirected directly,
4958 # and sets the high bit in the cache file unless we assign to the vars.
4961 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4963 # `set' does not quote correctly, so add quotes (double-quote
4964 # substitution turns \\\\ into \\, and sed turns \\ into \).
4967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4970 # `set' quotes correctly as required by POSIX, so do not add quotes.
4972 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4981 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4983 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4984 if test -w $cache_file; then
4985 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4986 cat confcache >$cache_file
4988 echo "not updating unwritable cache $cache_file"
4993 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4994 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4995 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4996 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4997 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4998 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4999 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5000 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5001 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5002 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5003 echo "$as_me: error: libtool configure failed" >&2;}
5004 { (exit 1); exit 1; }; }
5006 # Reload cache, that may have been modified by ltconfig
5007 if test -r "$cache_file"; then
5008 # Some versions of bash will fail to source /dev/null (special
5009 # files actually), so we avoid doing that.
5010 if test -f "$cache_file"; then
5011 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5012 echo "$as_me: loading cache $cache_file" >&6;}
5014 [\\/]* | ?:[\\/]* ) . $cache_file;;
5015 *) . ./$cache_file;;
5019 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5020 echo "$as_me: creating cache $cache_file" >&6;}
5025 # This can be used to rebuild libtool when needed
5026 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5028 # Always use our own libtool.
5029 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5031 # Redirect the config.log output again, so that the ltconfig log is not
5032 # clobbered by the next message.
5033 exec 5>>./config.log
5036 ac_cpp='$CXXCPP $CPPFLAGS'
5037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5040 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5041 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5042 if test -z "$CXXCPP"; then
5043 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 # Double quotes because CXXCPP needs to be expanded
5047 for CXXCPP in "$CXX -E" "/lib/cpp"
5050 for ac_cxx_preproc_warn_flag in '' yes
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat >conftest.$ac_ext <<_ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5065 # include <limits.h>
5067 # include <assert.h>
5071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 grep -v '^ *+' conftest.er1 >conftest.err
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } >/dev/null; then
5079 if test -s conftest.err; then
5080 ac_cpp_err=$ac_cxx_preproc_warn_flag
5081 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5088 if test -z "$ac_cpp_err"; then
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 # Broken: fails on valid input.
5097 rm -f conftest.err conftest.$ac_ext
5099 # OK, works on sane cases. Now check whether non-existent headers
5100 # can be detected and how.
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 #include <ac_nonexistent.h>
5109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112 grep -v '^ *+' conftest.er1 >conftest.err
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } >/dev/null; then
5117 if test -s conftest.err; then
5118 ac_cpp_err=$ac_cxx_preproc_warn_flag
5119 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5126 if test -z "$ac_cpp_err"; then
5127 # Broken: success on invalid input.
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Passes both tests.
5137 rm -f conftest.err conftest.$ac_ext
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then
5147 ac_cv_prog_CXXCPP=$CXXCPP
5150 CXXCPP=$ac_cv_prog_CXXCPP
5152 ac_cv_prog_CXXCPP=$CXXCPP
5154 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5155 echo "${ECHO_T}$CXXCPP" >&6
5157 for ac_cxx_preproc_warn_flag in '' yes
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat >conftest.$ac_ext <<_ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5172 # include <limits.h>
5174 # include <assert.h>
5178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181 grep -v '^ *+' conftest.er1 >conftest.err
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } >/dev/null; then
5186 if test -s conftest.err; then
5187 ac_cpp_err=$ac_cxx_preproc_warn_flag
5188 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5195 if test -z "$ac_cpp_err"; then
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 # Broken: fails on valid input.
5204 rm -f conftest.err conftest.$ac_ext
5206 # OK, works on sane cases. Now check whether non-existent headers
5207 # can be detected and how.
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <ac_nonexistent.h>
5216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5219 grep -v '^ *+' conftest.er1 >conftest.err
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } >/dev/null; then
5224 if test -s conftest.err; then
5225 ac_cpp_err=$ac_cxx_preproc_warn_flag
5226 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5233 if test -z "$ac_cpp_err"; then
5234 # Broken: success on invalid input.
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 # Passes both tests.
5244 rm -f conftest.err conftest.$ac_ext
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then
5252 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5253 See \`config.log' for more details." >&5
5254 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5255 See \`config.log' for more details." >&2;}
5256 { (exit 1); exit 1; }; }
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5267 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5269 lt_save_CFLAGS="$CFLAGS"
5270 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5271 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5272 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5273 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5274 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5275 deplibs_check_method="$deplibs_check_method" \
5276 file_magic_cmd="$file_magic_cmd" \
5277 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5278 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5279 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5280 echo "$as_me: error: libtool tag configuration failed" >&2;}
5281 { (exit 1); exit 1; }; }
5283 CFLAGS="$lt_save_CFLAGS"
5285 # Redirect the config.log output again, so that the ltconfig log is not
5286 # clobbered by the next message.
5287 exec 5>>./config.log
5295 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_GCJ+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 if test -n "$GCJ"; then
5305 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_GCJ="$ac_prog"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 if test -n "$GCJ"; then
5325 echo "$as_me:$LINENO: result: $GCJ" >&5
5326 echo "${ECHO_T}$GCJ" >&6
5328 echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5332 test -n "$GCJ" && break
5334 test -n "$GCJ" || GCJ="gcj"
5336 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5337 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5338 { (exit 1); exit 1; }; }
5339 if test "x${GCJFLAGS-unset}" = xunset; then
5344 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5346 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5347 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5348 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5352 # We make a subdir and do the tests there. Otherwise we can end up
5353 # making bogus files that we don't know about and never remove. For
5354 # instance it was reported that on HP-UX the gcc test will end up
5355 # making a dummy file named `D' -- because `-MD' means `put the output
5358 # Copy depcomp to subdir because otherwise we won't find it if we're
5359 # using a relative directory.
5360 cp "$am_depcomp" conftest.dir
5362 # We will build objects and dependencies in a subdirectory because
5363 # it helps to detect inapplicable dependency modes. For instance
5364 # both Tru64's cc and ICC support -MD to output dependencies as a
5365 # side effect of compilation, but ICC will put the dependencies in
5366 # the current directory while Tru64 will put them in the object
5370 am_cv_GCJ_dependencies_compiler_type=none
5371 if test "$am_compiler_list" = ""; then
5372 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5374 for depmode in $am_compiler_list; do
5375 # Setup a source with many dependencies, because some compilers
5376 # like to wrap large dependency lists on column 80 (with \), and
5377 # we should not choose a depcomp mode which is confused by this.
5379 # We need to recreate these files for each test, as the compiler may
5380 # overwrite some of them when testing with obscure command lines.
5381 # This happens at least with the AIX C compiler.
5383 for i in 1 2 3 4 5 6; do
5384 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5385 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5386 # Solaris 8's {/usr,}/bin/sh.
5387 touch sub/conftst$i.h
5389 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5393 # after this tag, mechanisms are not by side-effect, so they'll
5394 # only be used when explicitly requested
5395 if test "x$enable_dependency_tracking" = xyes; then
5403 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5404 # mode. It turns out that the SunPro C++ compiler does not properly
5405 # handle `-M -o', and we need to detect this.
5406 if depmode=$depmode \
5407 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5409 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5410 >/dev/null 2>conftest.err &&
5411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5412 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5414 # icc doesn't choke on unknown options, it will just issue warnings
5415 # or remarks (even with -Werror). So we grep stderr for any message
5416 # that says an option was ignored or not supported.
5417 # When given -MP, icc 7.0 and 7.1 complain thusly:
5418 # icc: Command line warning: ignoring option '-M'; no argument required
5419 # The diagnosis changed in icc 8.0:
5420 # icc: Command line remark: option '-MP' not supported
5421 if (grep 'ignoring option' conftest.err ||
5422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5423 am_cv_GCJ_dependencies_compiler_type=$depmode
5432 am_cv_GCJ_dependencies_compiler_type=none
5436 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5437 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5438 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5443 test "x$enable_dependency_tracking" != xno \
5444 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5445 am__fastdepGCJ_TRUE=
5446 am__fastdepGCJ_FALSE='#'
5448 am__fastdepGCJ_TRUE='#'
5449 am__fastdepGCJ_FALSE=
5455 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5457 lt_save_CFLAGS="$CFLAGS"
5458 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5459 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5460 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5461 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5462 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5463 deplibs_check_method="$deplibs_check_method" \
5464 file_magic_cmd="$file_magic_cmd" \
5465 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5466 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5467 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5468 echo "$as_me: error: libtool tag configuration failed" >&2;}
5469 { (exit 1); exit 1; }; }
5471 CFLAGS="$lt_save_CFLAGS"
5473 # Redirect the config.log output again, so that the ltconfig log is not
5474 # clobbered by the next message.
5475 exec 5>>./config.log
5479 if test "x$CC" != xcc; then
5480 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5481 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5483 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5484 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5486 set dummy $CC; ac_cc=`echo $2 |
5487 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5488 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 cat >conftest.$ac_ext <<_ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5506 # Make sure it works both with $CC and with simple cc.
5507 # We do the test twice because some compilers refuse to overwrite an
5508 # existing .o file with -o, though they will create one.
5509 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5510 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); };
5521 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5522 if test "x$CC" != xcc; then
5523 # Test first that cc exists at all.
5524 if { ac_try='cc -c conftest.$ac_ext >&5'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5531 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); };
5545 # cc exists but doesn't like -o.
5546 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5551 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5556 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5557 echo "$as_me:$LINENO: result: yes" >&5
5558 echo "${ECHO_T}yes" >&6
5560 echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6
5563 cat >>confdefs.h <<\_ACEOF
5564 #define NO_MINUS_C_MINUS_O 1
5569 # FIXME: we rely on the cache variable name because
5570 # there is no other way.
5572 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5573 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5574 # Losing compiler, so override with the script.
5575 # FIXME: It is wrong to rewrite CC.
5576 # But if we don't then we get into trouble of one sort or another.
5577 # A longer-term fix would be to have automake use am__CC in this case,
5578 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5579 CC="$am_aux_dir/compile $CC"
5584 subdirs="$subdirs libltdl"
5587 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5594 # The -no-testsuite modules omit the test subdir.
5597 if test -d $srcdir/testsuite; then
5599 TESTSUBDIR_FALSE='#'
5606 # Should the runtime set system properties by examining the
5607 # environment variable GCJ_PROPERTIES?
5608 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5609 if test "${enable_getenv_properties+set}" = set; then
5610 enableval="$enable_getenv_properties"
5614 # Whether GCJ_PROPERTIES is used depends on the target.
5615 if test -z "$enable_getenv_properties"; then
5616 enable_getenv_properties=${enable_getenv_properties_default-yes}
5618 if test "$enable_getenv_properties" = no; then
5620 cat >>confdefs.h <<\_ACEOF
5621 #define DISABLE_GETENV_PROPERTIES 1
5626 # Whether we should use arguments to main()
5627 if test -z "$enable_main_args"; then
5628 enable_main_args=${enable_main_args_default-yes}
5630 if test "$enable_main_args" = no; then
5632 cat >>confdefs.h <<\_ACEOF
5633 #define DISABLE_MAIN_ARGS 1
5639 # Should we use hashtable-based synchronization?
5640 # Currently works only for Linux X86/ia64
5641 # Typically faster and more space-efficient
5642 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5643 if test "${enable_hash_synchronization+set}" = set; then
5644 enableval="$enable_hash_synchronization"
5648 if test -z "$enable_hash_synchronization"; then
5649 enable_hash_synchronization=$enable_hash_synchronization_default
5652 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5653 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5654 if test "${enable_libgcj_multifile+set}" = set; then
5655 enableval="$enable_libgcj_multifile"
5656 case "${enableval}" in
5657 yes) enable_libgcj_multifile=yes ;;
5658 no) enable_libgcj_multifile=no ;;
5659 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5660 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5661 { (exit 1); exit 1; }; } ;;
5664 enable_libgcj_multifile=no
5668 if test "$enable_libgcj_multifile" = yes; then
5677 # What is the native OS API for MinGW?
5679 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5680 if test "${with_win32_nlsapi+set}" = set; then
5681 withval="$with_win32_nlsapi"
5682 case "${withval}" in
5683 ansi) with_win32_nlsapi=ansi ;;
5684 unicows) with_win32_nlsapi=unicows ;;
5685 unicode) with_win32_nlsapi=unicode ;;
5686 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5687 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5688 { (exit 1); exit 1; }; } ;;
5691 with_win32_nlsapi=ansi
5694 case "${with_win32_nlsapi}" in
5697 cat >>confdefs.h <<\_ACEOF
5698 #define MINGW_LIBGCJ_UNICODE 1
5704 # configure.host sets slow_pthread_self if the synchronization code should
5705 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5706 if test "${slow_pthread_self}" = "yes"; then
5708 cat >>confdefs.h <<\_ACEOF
5709 #define SLOW_PTHREAD_SELF 1
5715 # See if the user has requested runtime debugging.
5718 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5719 if test "${enable_libgcj_debug+set}" = set; then
5720 enableval="$enable_libgcj_debug"
5721 if test "$enable_libgcj_debug" = yes; then
5723 cat >>confdefs.h <<\_ACEOF
5731 # Check for gc debugging. This option is handled both here and in the GC.
5732 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5733 if test "${enable_gc_debug+set}" = set; then
5734 enableval="$enable_gc_debug"
5735 if test "$enable_gc_debug" = "yes"; then
5737 cat >>confdefs.h <<\_ACEOF
5738 #define LIBGCJ_GC_DEBUG 1
5744 # See if the user has the interpreter included.
5745 # Check whether --enable-interpreter or --disable-interpreter was given.
5746 if test "${enable_interpreter+set}" = set; then
5747 enableval="$enable_interpreter"
5748 if test "$enable_interpreter" = yes; then
5749 # This can also be set in configure.host.
5750 libgcj_interpreter=yes
5751 elif test "$enable_interpreter" = no; then
5752 libgcj_interpreter=no
5756 if test "$libgcj_interpreter" = yes; then
5758 cat >>confdefs.h <<\_ACEOF
5759 #define INTERPRETER 1
5763 INTERPRETER="$libgcj_interpreter"
5766 echo "$as_me:$LINENO: checking for exception model to use" >&5
5767 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5769 ac_cpp='$CXXCPP $CPPFLAGS'
5770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5774 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5775 if test "${enable_sjlj_exceptions+set}" = set; then
5776 enableval="$enable_sjlj_exceptions"
5779 cat > conftest.$ac_ext << EOF
5780 #line 5780 "configure"
5789 old_CXXFLAGS="$CXXFLAGS"
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792 (eval $ac_compile) 2>&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; then
5796 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5797 enable_sjlj_exceptions=yes
5798 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5799 enable_sjlj_exceptions=no
5802 CXXFLAGS="$old_CXXFLAGS"
5805 if test x$enable_sjlj_exceptions = xyes; then
5807 cat >>confdefs.h <<\_ACEOF
5808 #define SJLJ_EXCEPTIONS 1
5811 ac_exception_model_name=sjlj
5812 elif test x$enable_sjlj_exceptions = xno; then
5813 ac_exception_model_name="call frame"
5815 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5816 echo "$as_me: error: unable to detect exception model" >&2;}
5817 { (exit 1); exit 1; }; }
5820 ac_cpp='$CPP $CPPFLAGS'
5821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5826 echo "${ECHO_T}$ac_exception_model_name" >&6
5828 # If we are non using SJLJ exceptions, and this host does not have support
5829 # for unwinding from a signal handler, enable checked dereferences and divides.
5830 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5831 CHECKREFSPEC=-fcheck-references
5832 DIVIDESPEC=-fuse-divide-subroutine
5836 # See if the user wants to disable java.net. This is the mildly
5837 # ugly way that we admit that target-side configuration sucks.
5838 # Check whether --enable-java-net or --disable-java-net was given.
5839 if test "${enable_java_net+set}" = set; then
5840 enableval="$enable_java_net"
5844 # Whether java.net is built by default can depend on the target.
5845 if test -z "$enable_java_net"; then
5846 enable_java_net=${enable_java_net_default-yes}
5848 if test "$enable_java_net" = no; then
5850 cat >>confdefs.h <<\_ACEOF
5851 #define DISABLE_JAVA_NET 1
5856 # See if the user wants to configure without libffi. Some
5857 # architectures don't support it, and default values are set in
5860 # Check whether --with-libffi or --without-libffi was given.
5861 if test "${with_libffi+set}" = set; then
5862 withval="$with_libffi"
5865 with_libffi=${with_libffi_default-yes}
5870 if test "$with_libffi" != no; then
5872 cat >>confdefs.h <<\_ACEOF
5873 #define USE_LIBFFI 1
5876 LIBFFI=../libffi/libffi_convenience.la
5877 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5882 # See if the user wants to disable JVMPI support.
5883 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5884 if test "${enable_jvmpi+set}" = set; then
5885 enableval="$enable_jvmpi"
5889 if test "$enable_jvmpi" != no; then
5891 cat >>confdefs.h <<\_ACEOF
5892 #define ENABLE_JVMPI 1
5897 # If the target is an eCos system, use the appropriate eCos
5899 # FIXME: this should not be a local option but a global target
5900 # system; at present there is no eCos target.
5901 TARGET_ECOS=${PROCESS-"no"}
5903 # Check whether --with-ecos or --without-ecos was given.
5904 if test "${with_ecos+set}" = set; then
5905 withval="$with_ecos"
5906 TARGET_ECOS="$with_ecos"
5912 PLATFORM_INNER_NAT_HDRS=
5913 case "$TARGET_ECOS" in
5920 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5921 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5922 LD_PROG=`$CC --print-prog-name=ld`
5923 LD_VERSION=`$LD_PROG --version`
5924 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5925 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5926 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5929 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5933 if test "x$LD_OK" != x; then
5934 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5935 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5937 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5938 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5939 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5940 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5942 cat >>confdefs.h <<\_ACEOF
5943 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5952 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5960 cat >>confdefs.h <<\_ACEOF
5968 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5977 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5978 # On Suns, sometimes $CPP names a directory.
5979 if test -n "$CPP" && test -d "$CPP"; then
5982 if test -z "$CPP"; then
5983 if test "${ac_cv_prog_CPP+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 # Double quotes because CPP needs to be expanded
5987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5990 for ac_c_preproc_warn_flag in '' yes
5992 # Use a header file that comes with gcc, so configuring glibc
5993 # with a fresh cross-compiler works.
5994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995 # <limits.h> exists even on freestanding compilers.
5996 # On the NeXT, cc -E runs the code through the compiler's parser,
5997 # not just through cpp. "Syntax error" is here to catch this case.
5998 cat >conftest.$ac_ext <<_ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6005 # include <limits.h>
6007 # include <assert.h>
6011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } >/dev/null; then
6019 if test -s conftest.err; then
6020 ac_cpp_err=$ac_c_preproc_warn_flag
6021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6028 if test -z "$ac_cpp_err"; then
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 # Broken: fails on valid input.
6037 rm -f conftest.err conftest.$ac_ext
6039 # OK, works on sane cases. Now check whether non-existent headers
6040 # can be detected and how.
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <ac_nonexistent.h>
6049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } >/dev/null; then
6057 if test -s conftest.err; then
6058 ac_cpp_err=$ac_c_preproc_warn_flag
6059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6066 if test -z "$ac_cpp_err"; then
6067 # Broken: success on invalid input.
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 # Passes both tests.
6077 rm -f conftest.err conftest.$ac_ext
6080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6081 rm -f conftest.err conftest.$ac_ext
6082 if $ac_preproc_ok; then
6094 echo "$as_me:$LINENO: result: $CPP" >&5
6095 echo "${ECHO_T}$CPP" >&6
6097 for ac_c_preproc_warn_flag in '' yes
6099 # Use a header file that comes with gcc, so configuring glibc
6100 # with a fresh cross-compiler works.
6101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6102 # <limits.h> exists even on freestanding compilers.
6103 # On the NeXT, cc -E runs the code through the compiler's parser,
6104 # not just through cpp. "Syntax error" is here to catch this case.
6105 cat >conftest.$ac_ext <<_ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6112 # include <limits.h>
6114 # include <assert.h>
6118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } >/dev/null; then
6126 if test -s conftest.err; then
6127 ac_cpp_err=$ac_c_preproc_warn_flag
6128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6135 if test -z "$ac_cpp_err"; then
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 # Broken: fails on valid input.
6144 rm -f conftest.err conftest.$ac_ext
6146 # OK, works on sane cases. Now check whether non-existent headers
6147 # can be detected and how.
6148 cat >conftest.$ac_ext <<_ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <ac_nonexistent.h>
6156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6159 grep -v '^ *+' conftest.er1 >conftest.err
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null; then
6164 if test -s conftest.err; then
6165 ac_cpp_err=$ac_c_preproc_warn_flag
6166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6173 if test -z "$ac_cpp_err"; then
6174 # Broken: success on invalid input.
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 # Passes both tests.
6184 rm -f conftest.err conftest.$ac_ext
6187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6188 rm -f conftest.err conftest.$ac_ext
6189 if $ac_preproc_ok; then
6192 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6193 See \`config.log' for more details." >&5
6194 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6195 See \`config.log' for more details." >&2;}
6196 { (exit 1); exit 1; }; }
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206 echo "$as_me:$LINENO: checking for egrep" >&5
6207 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6208 if test "${ac_cv_prog_egrep+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6212 then ac_cv_prog_egrep='grep -E'
6213 else ac_cv_prog_egrep='egrep'
6216 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6217 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6218 EGREP=$ac_cv_prog_egrep
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231 $EGREP "uint32_t" >/dev/null 2>&1; then
6233 cat >>confdefs.h <<\_ACEOF
6234 #define HAVE_INT32_DEFINED 1
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 #include <inttypes.h>
6249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 $EGREP "uint32_t" >/dev/null 2>&1; then
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HAVE_INT32_DEFINED 1
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 #include <sys/types.h>
6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269 $EGREP "u_int32_t" >/dev/null 2>&1; then
6271 cat >>confdefs.h <<\_ACEOF
6272 #define HAVE_BSD_INT32_DEFINED 1
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 #include <sys/config.h>
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 $EGREP "u_int32_t" >/dev/null 2>&1; then
6290 cat >>confdefs.h <<\_ACEOF
6291 #define HAVE_BSD_INT32_DEFINED 1
6300 if test "$PLATFORM" = Win32; then
6301 USING_WIN32_PLATFORM_TRUE=
6302 USING_WIN32_PLATFORM_FALSE='#'
6304 USING_WIN32_PLATFORM_TRUE='#'
6305 USING_WIN32_PLATFORM_FALSE=
6310 if test "$PLATFORM" = Posix; then
6311 USING_POSIX_PLATFORM_TRUE=
6312 USING_POSIX_PLATFORM_FALSE='#'
6314 USING_POSIX_PLATFORM_TRUE='#'
6315 USING_POSIX_PLATFORM_FALSE=
6320 if test "$PLATFORM" = Ecos; then
6321 USING_ECOS_PLATFORM_TRUE=
6322 USING_ECOS_PLATFORM_FALSE='#'
6324 USING_ECOS_PLATFORM_TRUE='#'
6325 USING_ECOS_PLATFORM_FALSE=
6329 # These may not be defined in a non-ANS conformant embedded system.
6330 # FIXME: Should these case a runtime exception in that case?
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6341 $EGREP "mktime" >/dev/null 2>&1; then
6343 cat >>confdefs.h <<\_ACEOF
6344 #define HAVE_MKTIME 1
6350 cat >conftest.$ac_ext <<_ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6360 $EGREP "localtime" >/dev/null 2>&1; then
6362 cat >>confdefs.h <<\_ACEOF
6363 #define HAVE_LOCALTIME 1
6370 # Create the subdirectory for natFile.cc, or the attempt
6371 # to create the link will fail.
6372 test -d java || mkdir java
6373 test -d java/io || mkdir java/io
6374 test -d gnu || mkdir gnu
6375 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6378 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6379 test -d java/lang || mkdir java/lang
6380 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6382 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6385 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6386 test -d java/net || mkdir java/net
6387 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6389 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6392 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6393 test -d gnu/java || mkdir gnu/java
6394 test -d gnu/java/net || mkdir gnu/java/net
6395 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6397 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6400 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6401 test -d gnu/java/nio || mkdir gnu/java/nio
6402 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6404 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6406 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6407 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6412 SYSTEMSPEC="-lgdi32 -lws2_32"
6413 if test "${with_win32_nlsapi}" = "unicows"; then
6414 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6423 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6427 # Check whether --with-system-zlib or --without-system-zlib was given.
6428 if test "${with_system_zlib+set}" = set; then
6429 withval="$with_system_zlib"
6437 echo "$as_me:$LINENO: checking for X" >&5
6438 echo $ECHO_N "checking for X... $ECHO_C" >&6
6441 # Check whether --with-x or --without-x was given.
6442 if test "${with_x+set}" = set; then
6446 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6447 if test "x$with_x" = xno; then
6448 # The user explicitly disabled X.
6451 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6452 # Both variables are already set.
6455 if test "${ac_cv_have_x+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 # One or both of the vars are not set, and there is no cached value.
6459 ac_x_includes=no ac_x_libraries=no
6461 if mkdir conftest.dir; then
6463 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6464 cat >Imakefile <<'_ACEOF'
6466 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6468 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6469 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6470 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6471 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6472 for ac_extension in a so sl; do
6473 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6474 test -f $ac_im_libdir/libX11.$ac_extension; then
6475 ac_im_usrlibdir=$ac_im_libdir; break
6478 # Screen out bogus values from the imake configuration. They are
6479 # bogus both because they are the default anyway, and because
6480 # using them would break gcc on systems where it needs fixed includes.
6481 case $ac_im_incroot in
6483 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6485 case $ac_im_usrlibdir in
6487 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6494 # Standard set of common directories for X headers.
6495 # Check X11 before X11Rn because it is often a symlink to the current release.
6507 /usr/local/X11/include
6508 /usr/local/X11R6/include
6509 /usr/local/X11R5/include
6510 /usr/local/X11R4/include
6512 /usr/local/include/X11
6513 /usr/local/include/X11R6
6514 /usr/local/include/X11R5
6515 /usr/local/include/X11R4
6519 /usr/XFree86/include/X11
6523 /usr/unsupported/include
6525 /usr/local/x11r5/include
6526 /usr/lpp/Xamples/include
6528 /usr/openwin/include
6529 /usr/openwin/share/include'
6531 if test "$ac_x_includes" = no; then
6532 # Guess where to find include files, by looking for Intrinsic.h.
6533 # First, try using that file with no special directory specified.
6534 cat >conftest.$ac_ext <<_ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 #include <X11/Intrinsic.h>
6542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } >/dev/null; then
6550 if test -s conftest.err; then
6551 ac_cpp_err=$ac_c_preproc_warn_flag
6552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6559 if test -z "$ac_cpp_err"; then
6560 # We can compile using X headers with no special include directory.
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 for ac_dir in $ac_x_header_dirs; do
6567 if test -r "$ac_dir/X11/Intrinsic.h"; then
6568 ac_x_includes=$ac_dir
6573 rm -f conftest.err conftest.$ac_ext
6574 fi # $ac_x_includes = no
6576 if test "$ac_x_libraries" = no; then
6577 # Check for the libraries.
6578 # See if we find them without any special options.
6579 # Don't add to $LIBS permanently.
6582 if test x$gcc_no_link = xyes; then
6583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6585 { (exit 1); exit 1; }; }
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <X11/Intrinsic.h>
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>conftest.er1
6606 grep -v '^ *+' conftest.er1 >conftest.err
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -z "$ac_c_werror_flag"
6612 || test ! -s conftest.err'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; } &&
6618 { ac_try='test -s conftest$ac_exeext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6625 # We can link X programs with no special library path.
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6632 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6634 # Don't even attempt the hair of trying to link an X program!
6635 for ac_extension in a so sl; do
6636 if test -r $ac_dir/libXt.$ac_extension; then
6637 ac_x_libraries=$ac_dir
6643 rm -f conftest.err conftest.$ac_objext \
6644 conftest$ac_exeext conftest.$ac_ext
6645 fi # $ac_x_libraries = no
6647 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6648 # Didn't find X anywhere. Cache the known absence of X.
6649 ac_cv_have_x="have_x=no"
6651 # Record where we found X for the cache.
6652 ac_cv_have_x="have_x=yes \
6653 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6658 eval "$ac_cv_have_x"
6661 if test "$have_x" != yes; then
6662 echo "$as_me:$LINENO: result: $have_x" >&5
6663 echo "${ECHO_T}$have_x" >&6
6666 # If each of the values was on the command line, it overrides each guess.
6667 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6668 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6669 # Update the cache value to reflect the command line values.
6670 ac_cv_have_x="have_x=yes \
6671 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6672 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6673 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6676 if test "$no_x" = yes; then
6677 # Not all programs may use this symbol, but it does not hurt to define it.
6679 cat >>confdefs.h <<\_ACEOF
6680 #define X_DISPLAY_MISSING 1
6683 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6685 if test -n "$x_includes"; then
6686 X_CFLAGS="$X_CFLAGS -I$x_includes"
6689 # It would also be nice to do this for all -L options, not just this one.
6690 if test -n "$x_libraries"; then
6691 X_LIBS="$X_LIBS -L$x_libraries"
6692 # For Solaris; some versions of Sun CC require a space after -R and
6693 # others require no space. Words are not sufficient . . . .
6694 case `(uname -sr) 2>/dev/null` in
6696 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6697 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6698 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6699 if test x$gcc_no_link = xyes; then
6700 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6702 { (exit 1); exit 1; }; }
6704 cat >conftest.$ac_ext <<_ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6719 rm -f conftest.$ac_objext conftest$ac_exeext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6721 (eval $ac_link) 2>conftest.er1
6723 grep -v '^ *+' conftest.er1 >conftest.err
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } &&
6728 { ac_try='test -z "$ac_c_werror_flag"
6729 || test ! -s conftest.err'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; } &&
6735 { ac_try='test -s conftest$ac_exeext'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }; then
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6748 rm -f conftest.err conftest.$ac_objext \
6749 conftest$ac_exeext conftest.$ac_ext
6750 if test $ac_R_nospace = yes; then
6751 echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6
6753 X_LIBS="$X_LIBS -R$x_libraries"
6755 LIBS="$ac_xsave_LIBS -R $x_libraries"
6756 if test x$gcc_no_link = xyes; then
6757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6759 { (exit 1); exit 1; }; }
6761 cat >conftest.$ac_ext <<_ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6776 rm -f conftest.$ac_objext conftest$ac_exeext
6777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6778 (eval $ac_link) 2>conftest.er1
6780 grep -v '^ *+' conftest.er1 >conftest.err
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } &&
6785 { ac_try='test -z "$ac_c_werror_flag"
6786 || test ! -s conftest.err'
6787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); }; } &&
6792 { ac_try='test -s conftest$ac_exeext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6805 rm -f conftest.err conftest.$ac_objext \
6806 conftest$ac_exeext conftest.$ac_ext
6807 if test $ac_R_space = yes; then
6808 echo "$as_me:$LINENO: result: yes" >&5
6809 echo "${ECHO_T}yes" >&6
6810 X_LIBS="$X_LIBS -R $x_libraries"
6812 echo "$as_me:$LINENO: result: neither works" >&5
6813 echo "${ECHO_T}neither works" >&6
6820 # Check for system-dependent libraries X programs must link with.
6821 # Do this before checking for the system-independent R6 libraries
6822 # (-lICE), since we may need -lsocket or whatever for X linking.
6824 if test "$ISC" = yes; then
6825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6827 # Martyn Johnson says this is needed for Ultrix, if the X
6828 # libraries were built with DECnet support. And Karl Berry says
6829 # the Alpha needs dnet_stub (dnet does not exist).
6830 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6831 if test x$gcc_no_link = xyes; then
6832 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6834 { (exit 1); exit 1; }; }
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6843 /* Override any gcc2 internal prototype to avoid an error. */
6847 /* We use char because int might match the return type of a gcc2
6848 builtin and then its argument prototype would still apply. */
6849 char XOpenDisplay ();
6858 rm -f conftest.$ac_objext conftest$ac_exeext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860 (eval $ac_link) 2>conftest.er1
6862 grep -v '^ *+' conftest.er1 >conftest.err
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try='test -s conftest$ac_exeext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6886 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6887 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 ac_check_lib_save_LIBS=$LIBS
6892 if test x$gcc_no_link = xyes; then
6893 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6895 { (exit 1); exit 1; }; }
6897 cat >conftest.$ac_ext <<_ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6904 /* Override any gcc2 internal prototype to avoid an error. */
6908 /* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6919 rm -f conftest.$ac_objext conftest$ac_exeext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6921 (eval $ac_link) 2>conftest.er1
6923 grep -v '^ *+' conftest.er1 >conftest.err
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -z "$ac_c_werror_flag"
6929 || test ! -s conftest.err'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
6935 { ac_try='test -s conftest$ac_exeext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_lib_dnet_dnet_ntoa=yes
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 ac_cv_lib_dnet_dnet_ntoa=no
6948 rm -f conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6950 LIBS=$ac_check_lib_save_LIBS
6952 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6953 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6954 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6955 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6958 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6959 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6960 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6961 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 ac_check_lib_save_LIBS=$LIBS
6965 LIBS="-ldnet_stub $LIBS"
6966 if test x$gcc_no_link = xyes; then
6967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6969 { (exit 1); exit 1; }; }
6971 cat >conftest.$ac_ext <<_ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6978 /* Override any gcc2 internal prototype to avoid an error. */
6982 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */
6993 rm -f conftest.$ac_objext conftest$ac_exeext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6995 (eval $ac_link) 2>conftest.er1
6997 grep -v '^ *+' conftest.er1 >conftest.err
6999 cat conftest.err >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } &&
7002 { ac_try='test -z "$ac_c_werror_flag"
7003 || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_cv_lib_dnet_stub_dnet_ntoa=no
7022 rm -f conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024 LIBS=$ac_check_lib_save_LIBS
7026 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7027 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7028 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7029 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7034 rm -f conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 LIBS="$ac_xsave_LIBS"
7038 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7039 # to get the SysV transport functions.
7040 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7042 # The nsl library prevents programs from opening the X display
7043 # on Irix 5.2, according to T.E. Dickey.
7044 # The functions gethostbyname, getservbyname, and inet_addr are
7045 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7046 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7047 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7048 if test "${ac_cv_func_gethostbyname+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 if test x$gcc_no_link = xyes; then
7052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7054 { (exit 1); exit 1; }; }
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7064 #define gethostbyname innocuous_gethostbyname
7066 /* System header to define __stub macros and hopefully few prototypes,
7067 which can conflict with char gethostbyname (); below.
7068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069 <limits.h> exists even on freestanding compilers. */
7072 # include <limits.h>
7074 # include <assert.h>
7077 #undef gethostbyname
7079 /* Override any gcc2 internal prototype to avoid an error. */
7084 /* We use char because int might match the return type of a gcc2
7085 builtin and then its argument prototype would still apply. */
7086 char gethostbyname ();
7087 /* The GNU C library defines this for functions which it implements
7088 to always fail with ENOSYS. Some functions are actually named
7089 something starting with __ and the normal name is an alias. */
7090 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7093 char (*f) () = gethostbyname;
7102 return f != gethostbyname;
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>conftest.er1
7111 grep -v '^ *+' conftest.er1 >conftest.err
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try='test -s conftest$ac_exeext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_func_gethostbyname=yes
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 ac_cv_func_gethostbyname=no
7136 rm -f conftest.err conftest.$ac_objext \
7137 conftest$ac_exeext conftest.$ac_ext
7139 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7140 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7142 if test $ac_cv_func_gethostbyname = no; then
7143 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7144 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7145 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 ac_check_lib_save_LIBS=$LIBS
7150 if test x$gcc_no_link = xyes; then
7151 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7153 { (exit 1); exit 1; }; }
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7162 /* Override any gcc2 internal prototype to avoid an error. */
7166 /* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7168 char gethostbyname ();
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179 (eval $ac_link) 2>conftest.er1
7181 grep -v '^ *+' conftest.er1 >conftest.err
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest$ac_exeext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 ac_cv_lib_nsl_gethostbyname=yes
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_cv_lib_nsl_gethostbyname=no
7206 rm -f conftest.err conftest.$ac_objext \
7207 conftest$ac_exeext conftest.$ac_ext
7208 LIBS=$ac_check_lib_save_LIBS
7210 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7211 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7212 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7216 if test $ac_cv_lib_nsl_gethostbyname = no; then
7217 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7218 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7219 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 ac_check_lib_save_LIBS=$LIBS
7224 if test x$gcc_no_link = xyes; then
7225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7227 { (exit 1); exit 1; }; }
7229 cat >conftest.$ac_ext <<_ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7236 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7242 char gethostbyname ();
7251 rm -f conftest.$ac_objext conftest$ac_exeext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7253 (eval $ac_link) 2>conftest.er1
7255 grep -v '^ *+' conftest.er1 >conftest.err
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -z "$ac_c_werror_flag"
7261 || test ! -s conftest.err'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try='test -s conftest$ac_exeext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 ac_cv_lib_bsd_gethostbyname=yes
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 ac_cv_lib_bsd_gethostbyname=no
7280 rm -f conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 LIBS=$ac_check_lib_save_LIBS
7284 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7285 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7286 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7293 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7294 # socket/setsockopt and other routines are undefined under SCO ODT
7295 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7296 # on later versions), says Simon Leinen: it contains gethostby*
7297 # variants that don't use the name server (or something). -lsocket
7298 # must be given before -lnsl if both are needed. We assume that
7299 # if connect needs -lnsl, so does gethostbyname.
7300 echo "$as_me:$LINENO: checking for connect" >&5
7301 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7302 if test "${ac_cv_func_connect+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 if test x$gcc_no_link = xyes; then
7306 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7307 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7308 { (exit 1); exit 1; }; }
7310 cat >conftest.$ac_ext <<_ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7318 #define connect innocuous_connect
7320 /* System header to define __stub macros and hopefully few prototypes,
7321 which can conflict with char connect (); below.
7322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7323 <limits.h> exists even on freestanding compilers. */
7326 # include <limits.h>
7328 # include <assert.h>
7333 /* Override any gcc2 internal prototype to avoid an error. */
7338 /* We use char because int might match the return type of a gcc2
7339 builtin and then its argument prototype would still apply. */
7341 /* The GNU C library defines this for functions which it implements
7342 to always fail with ENOSYS. Some functions are actually named
7343 something starting with __ and the normal name is an alias. */
7344 #if defined (__stub_connect) || defined (__stub___connect)
7347 char (*f) () = connect;
7356 return f != connect;
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363 (eval $ac_link) 2>conftest.er1
7365 grep -v '^ *+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try='test -z "$ac_c_werror_flag"
7371 || test ! -s conftest.err'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; } &&
7377 { ac_try='test -s conftest$ac_exeext'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7383 ac_cv_func_connect=yes
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_cv_func_connect=no
7390 rm -f conftest.err conftest.$ac_objext \
7391 conftest$ac_exeext conftest.$ac_ext
7393 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7394 echo "${ECHO_T}$ac_cv_func_connect" >&6
7396 if test $ac_cv_func_connect = no; then
7397 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7398 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7399 if test "${ac_cv_lib_socket_connect+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 ac_check_lib_save_LIBS=$LIBS
7403 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7404 if test x$gcc_no_link = xyes; then
7405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7407 { (exit 1); exit 1; }; }
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7416 /* Override any gcc2 internal prototype to avoid an error. */
7420 /* We use char because int might match the return type of a gcc2
7421 builtin and then its argument prototype would still apply. */
7431 rm -f conftest.$ac_objext conftest$ac_exeext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433 (eval $ac_link) 2>conftest.er1
7435 grep -v '^ *+' conftest.er1 >conftest.err
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } &&
7440 { ac_try='test -z "$ac_c_werror_flag"
7441 || test ! -s conftest.err'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; } &&
7447 { ac_try='test -s conftest$ac_exeext'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_cv_lib_socket_connect=yes
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 ac_cv_lib_socket_connect=no
7460 rm -f conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext conftest.$ac_ext
7462 LIBS=$ac_check_lib_save_LIBS
7464 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7465 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7466 if test $ac_cv_lib_socket_connect = yes; then
7467 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7472 # Guillermo Gomez says -lposix is necessary on A/UX.
7473 echo "$as_me:$LINENO: checking for remove" >&5
7474 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7475 if test "${ac_cv_func_remove+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 if test x$gcc_no_link = xyes; then
7479 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7481 { (exit 1); exit 1; }; }
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7491 #define remove innocuous_remove
7493 /* System header to define __stub macros and hopefully few prototypes,
7494 which can conflict with char remove (); below.
7495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7496 <limits.h> exists even on freestanding compilers. */
7499 # include <limits.h>
7501 # include <assert.h>
7506 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7514 /* The GNU C library defines this for functions which it implements
7515 to always fail with ENOSYS. Some functions are actually named
7516 something starting with __ and the normal name is an alias. */
7517 #if defined (__stub_remove) || defined (__stub___remove)
7520 char (*f) () = remove;
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536 (eval $ac_link) 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag"
7544 || test ! -s conftest.err'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; } &&
7550 { ac_try='test -s conftest$ac_exeext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 ac_cv_func_remove=yes
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_cv_func_remove=no
7563 rm -f conftest.err conftest.$ac_objext \
7564 conftest$ac_exeext conftest.$ac_ext
7566 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7567 echo "${ECHO_T}$ac_cv_func_remove" >&6
7569 if test $ac_cv_func_remove = no; then
7570 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7571 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7572 if test "${ac_cv_lib_posix_remove+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 ac_check_lib_save_LIBS=$LIBS
7576 LIBS="-lposix $LIBS"
7577 if test x$gcc_no_link = xyes; then
7578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7580 { (exit 1); exit 1; }; }
7582 cat >conftest.$ac_ext <<_ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7589 /* Override any gcc2 internal prototype to avoid an error. */
7593 /* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606 (eval $ac_link) 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_c_werror_flag"
7614 || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_cv_lib_posix_remove=yes
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 ac_cv_lib_posix_remove=no
7633 rm -f conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LIBS=$ac_check_lib_save_LIBS
7637 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7638 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7639 if test $ac_cv_lib_posix_remove = yes; then
7640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7645 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7646 echo "$as_me:$LINENO: checking for shmat" >&5
7647 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7648 if test "${ac_cv_func_shmat+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 if test x$gcc_no_link = xyes; then
7652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7654 { (exit 1); exit 1; }; }
7656 cat >conftest.$ac_ext <<_ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7664 #define shmat innocuous_shmat
7666 /* System header to define __stub macros and hopefully few prototypes,
7667 which can conflict with char shmat (); below.
7668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7669 <limits.h> exists even on freestanding compilers. */
7672 # include <limits.h>
7674 # include <assert.h>
7679 /* Override any gcc2 internal prototype to avoid an error. */
7684 /* We use char because int might match the return type of a gcc2
7685 builtin and then its argument prototype would still apply. */
7687 /* The GNU C library defines this for functions which it implements
7688 to always fail with ENOSYS. Some functions are actually named
7689 something starting with __ and the normal name is an alias. */
7690 #if defined (__stub_shmat) || defined (__stub___shmat)
7693 char (*f) () = shmat;
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>conftest.er1
7711 grep -v '^ *+' conftest.er1 >conftest.err
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest$ac_exeext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_func_shmat=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7736 rm -f conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7739 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7740 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7742 if test $ac_cv_func_shmat = no; then
7743 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7744 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7745 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 ac_check_lib_save_LIBS=$LIBS
7750 if test x$gcc_no_link = xyes; then
7751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7753 { (exit 1); exit 1; }; }
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7762 /* Override any gcc2 internal prototype to avoid an error. */
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779 (eval $ac_link) 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -z "$ac_c_werror_flag"
7787 || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest$ac_exeext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 ac_cv_lib_ipc_shmat=yes
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 ac_cv_lib_ipc_shmat=no
7806 rm -f conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7810 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7811 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7812 if test $ac_cv_lib_ipc_shmat = yes; then
7813 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7819 # Check for libraries that X11R6 Xt/Xaw programs need.
7820 ac_save_LDFLAGS=$LDFLAGS
7821 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7822 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7823 # check for ICE first), but we must link in the order -lSM -lICE or
7824 # we get undefined symbols. So assume we have SM if we have ICE.
7825 # These have to be linked with before -lX11, unlike the other
7826 # libraries we check for below, so use a different variable.
7827 # John Interrante, Karl Berry
7828 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7829 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7830 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 ac_check_lib_save_LIBS=$LIBS
7834 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7835 if test x$gcc_no_link = xyes; then
7836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7838 { (exit 1); exit 1; }; }
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7847 /* Override any gcc2 internal prototype to avoid an error. */
7851 /* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */
7853 char IceConnectionNumber ();
7857 IceConnectionNumber ();
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864 (eval $ac_link) 2>conftest.er1
7866 grep -v '^ *+' conftest.er1 >conftest.err
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag"
7872 || test ! -s conftest.err'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_lib_ICE_IceConnectionNumber=yes
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 ac_cv_lib_ICE_IceConnectionNumber=no
7891 rm -f conftest.err conftest.$ac_objext \
7892 conftest$ac_exeext conftest.$ac_ext
7893 LIBS=$ac_check_lib_save_LIBS
7895 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7896 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7897 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7898 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7901 LDFLAGS=$ac_save_LDFLAGS
7906 # Determine which AWT peer libraries to build
7907 # Check whether --enable-java-awt or --disable-java-awt was given.
7908 if test "${enable_java_awt+set}" = set; then
7909 enableval="$enable_java_awt"
7913 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7916 # The default toolkit to use is the first one specified.
7920 for peer in $peerlibs ; do
7923 if test "$no_x" = yes; then
7924 echo "*** xlib peers requested but no X library available" 1>&2
7928 if test -z "$TOOLKIT"; then
7929 TOOLKIT=gnu.awt.xlib.XToolkit
7934 if test "$no_x" = yes; then
7935 echo "*** xlib peers requested but no X library available" 1>&2
7939 if test -z "$TOOLKIT"; then
7940 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7942 test -d jniinclude || mkdir jniinclude
7951 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7958 if test "$use_xlib_awt" = yes; then
7968 if test "$use_gtk_awt" = yes; then
7977 # determine whether to enable the cairo GTK Graphics2D backend
7978 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7979 if test "${enable_gtk_cairo+set}" = set; then
7980 enableval="$enable_gtk_cairo"
7985 if test "x${enable_gtk_cairo}" = xyes; then
7993 if test "x${enable_gtk_cairo}" = xyes
7998 if test -z "$PKG_CONFIG"; then
7999 # Extract the first word of "pkg-config", so it can be a program name with args.
8000 set dummy pkg-config; ac_word=$2
8001 echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8003 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8031 if test -n "$PKG_CONFIG"; then
8032 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8033 echo "${ECHO_T}$PKG_CONFIG" >&6
8035 echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6
8041 if test "$PKG_CONFIG" = "no" ; then
8042 echo "*** The pkg-config script could not be found. Make sure it is"
8043 echo "*** in your path, or set the PKG_CONFIG environment variable"
8044 echo "*** to the full path to pkg-config."
8045 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8047 PKG_CONFIG_MIN_VERSION=0.9.0
8048 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8049 echo "$as_me:$LINENO: checking for cairo" >&5
8050 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8052 if $PKG_CONFIG --exists "cairo" ; then
8053 echo "$as_me:$LINENO: result: yes" >&5
8054 echo "${ECHO_T}yes" >&6
8057 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8058 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8059 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8060 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8061 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8063 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8064 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8065 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8066 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8067 echo "${ECHO_T}$CAIRO_LIBS" >&6
8071 ## If we have a custom action on failure, don't print errors, but
8072 ## do set a variable so people can do so.
8073 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8074 echo $CAIRO_PKG_ERRORS
8080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8085 if test $succeeded = yes; then
8088 { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8089 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8090 { (exit 1); exit 1; }; }
8096 if test -z "$PKG_CONFIG"; then
8097 # Extract the first word of "pkg-config", so it can be a program name with args.
8098 set dummy pkg-config; ac_word=$2
8099 echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8127 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8129 if test -n "$PKG_CONFIG"; then
8130 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8131 echo "${ECHO_T}$PKG_CONFIG" >&6
8133 echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6
8139 if test "$PKG_CONFIG" = "no" ; then
8140 echo "*** The pkg-config script could not be found. Make sure it is"
8141 echo "*** in your path, or set the PKG_CONFIG environment variable"
8142 echo "*** to the full path to pkg-config."
8143 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8145 PKG_CONFIG_MIN_VERSION=0.9.0
8146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8147 echo "$as_me:$LINENO: checking for pangoft2" >&5
8148 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8150 if $PKG_CONFIG --exists "pangoft2" ; then
8151 echo "$as_me:$LINENO: result: yes" >&5
8152 echo "${ECHO_T}yes" >&6
8155 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8156 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8157 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8158 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8159 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8161 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8162 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8163 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8164 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8165 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8169 ## If we have a custom action on failure, don't print errors, but
8170 ## do set a variable so people can do so.
8171 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8172 echo $PANGOFT2_PKG_ERRORS
8178 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8179 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8183 if test $succeeded = yes; then
8186 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8187 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8188 { (exit 1); exit 1; }; }
8197 # FIXME: this should be _libs on some hosts.
8200 # Allow the GC to be disabled. Can be useful when debugging.
8201 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8202 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8203 # Check whether --enable-java-gc or --disable-java-gc was given.
8204 if test "${enable_java_gc+set}" = set; then
8205 enableval="$enable_java_gc"
8218 echo "$as_me:$LINENO: result: boehm" >&5
8219 echo "${ECHO_T}boehm" >&6
8220 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8221 JC1GCSPEC='-fuse-boehm-gc'
8222 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8223 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8226 # The POSIX thread support needs to know this.
8228 cat >>confdefs.h <<\_ACEOF
8229 #define HAVE_BOEHM_GC 1
8234 echo "$as_me:$LINENO: result: none" >&5
8235 echo "${ECHO_T}none" >&6
8239 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8240 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8241 { (exit 1); exit 1; }; }
8250 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8254 if test "$GC" = boehm; then
8256 USING_BOEHMGC_FALSE='#'
8258 USING_BOEHMGC_TRUE='#'
8259 USING_BOEHMGC_FALSE=
8264 if test "$GC" = no; then
8266 USING_NOGC_FALSE='#'
8274 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8275 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8276 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8277 echo "$as_me:$LINENO: result: $THREADS" >&5
8278 echo "${ECHO_T}$THREADS" >&6
8289 cat >>confdefs.h <<\_ACEOF
8290 #define LINUX_THREADS 1
8298 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8299 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8300 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8301 { (exit 1); exit 1; }; }
8304 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8305 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8306 { (exit 1); exit 1; }; }
8321 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8324 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8325 # merely adds pthread_* functions) but it does have a -pthread switch
8326 # which is required at link-time to select -lc_r *instead* of -lc.
8327 THREADLDFLAGS=-pthread
8328 # Don't set THREADSPEC here as might be expected since -pthread is
8329 # not processed when found within a spec file, it must come from
8330 # the command line. For now, the user must provide the -pthread
8331 # switch to link code compiled with gcj. In future, consider adding
8332 # support for weak references to pthread_* functions ala gthr.h API.
8333 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
8336 # FreeBSD 5 implements a model much closer to other modern UNIX
8337 # which support threads. However, it still does not support
8339 THREADLDFLAGS=-pthread
8343 THREADCXXFLAGS=-pthread
8344 # boehm-gc needs some functions from librt, so link that too.
8345 THREADLIBS='-lpthread -lrt'
8346 THREADSPEC='-lpthread -lrt'
8349 THREADLIBS=-lpthread
8350 THREADSPEC=-lpthread
8353 THREADH=posix-threads.h
8354 # MIT pthreads doesn't seem to have the mutexattr functions.
8355 # But for now we don't check for it. We just assume you aren't
8356 # using MIT pthreads.
8358 cat >>confdefs.h <<\_ACEOF
8359 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8363 # If we're using the Boehm GC, then we happen to know that it
8364 # defines _REENTRANT, so we don't bother. Eww.
8365 if test "$GC" != boehm; then
8367 cat >>confdefs.h <<\_ACEOF
8368 #define _REENTRANT 1
8373 cat >>confdefs.h <<\_ACEOF
8374 #define _POSIX_PTHREAD_SEMANTICS 1
8380 THREADH=win32-threads.h
8384 THREADH=no-threads.h
8387 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8397 if test "$THREADS" = posix; then
8398 USING_POSIX_THREADS_TRUE=
8399 USING_POSIX_THREADS_FALSE='#'
8401 USING_POSIX_THREADS_TRUE='#'
8402 USING_POSIX_THREADS_FALSE=
8407 if test "$THREADS" = win32; then
8408 USING_WIN32_THREADS_TRUE=
8409 USING_WIN32_THREADS_FALSE='#'
8411 USING_WIN32_THREADS_TRUE='#'
8412 USING_WIN32_THREADS_FALSE=
8417 if test "$THREADS" = none; then
8418 USING_NO_THREADS_TRUE=
8419 USING_NO_THREADS_FALSE='#'
8421 USING_NO_THREADS_TRUE='#'
8422 USING_NO_THREADS_FALSE=
8426 if test -d sysdep; then true; else mkdir sysdep; fi
8427 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8431 # Hash synchronization is only useful with posix threads right now.
8432 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8433 HASH_SYNC_SPEC=-fhash-synchronization
8435 cat >>confdefs.h <<\_ACEOF
8436 #define JV_HASH_SYNCHRONIZATION 1
8445 if test "$GCC" = yes; then
8454 # We're in the tree with gcc, and need to include some of its headers.
8455 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8457 # Figure out where generated headers like libgcj-config.h get installed.
8458 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8459 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8460 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8461 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8465 if test "x${with_newlib}" = "xyes"; then
8466 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8467 # may not work correctly, because the compiler may not be able to
8470 # We assume newlib. This lets us hard-code the functions we know
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_MEMMOVE 1
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_MEMCPY 1
8483 cat >>confdefs.h <<\_ACEOF
8484 #define HAVE_STRERROR 1
8488 cat >>confdefs.h <<\_ACEOF
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_GMTIME_R 1
8498 cat >>confdefs.h <<\_ACEOF
8499 #define HAVE_LOCALTIME_R 1
8503 cat >>confdefs.h <<\_ACEOF
8504 #define HAVE_USLEEP_DECL 1
8507 # This is only for POSIX threads.
8509 cat >>confdefs.h <<\_ACEOF
8510 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8513 # We also assume we are using gcc, which provides alloca.
8514 cat >>confdefs.h <<\_ACEOF
8515 #define HAVE_ALLOCA 1
8519 # Assume we do not have getuid and friends.
8521 cat >>confdefs.h <<\_ACEOF
8535 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8538 echo "$as_me:$LINENO: checking for $ac_func" >&5
8539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8540 if eval "test \"\${$as_ac_var+set}\" = set"; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 if test x$gcc_no_link = xyes; then
8544 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8546 { (exit 1); exit 1; }; }
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8556 #define $ac_func innocuous_$ac_func
8558 /* System header to define __stub macros and hopefully few prototypes,
8559 which can conflict with char $ac_func (); below.
8560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8561 <limits.h> exists even on freestanding compilers. */
8564 # include <limits.h>
8566 # include <assert.h>
8571 /* Override any gcc2 internal prototype to avoid an error. */
8576 /* We use char because int might match the return type of a gcc2
8577 builtin and then its argument prototype would still apply. */
8579 /* The GNU C library defines this for functions which it implements
8580 to always fail with ENOSYS. Some functions are actually named
8581 something starting with __ and the normal name is an alias. */
8582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8585 char (*f) () = $ac_func;
8594 return f != $ac_func;
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601 (eval $ac_link) 2>conftest.er1
8603 grep -v '^ *+' conftest.er1 >conftest.err
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest$ac_exeext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 eval "$as_ac_var=yes"
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 eval "$as_ac_var=no"
8628 rm -f conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8633 if test `eval echo '${'$as_ac_var'}'` = yes; then
8634 cat >>confdefs.h <<_ACEOF
8635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8646 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8649 echo "$as_me:$LINENO: checking for $ac_func" >&5
8650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8651 if eval "test \"\${$as_ac_var+set}\" = set"; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 if test x$gcc_no_link = xyes; then
8655 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8657 { (exit 1); exit 1; }; }
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8667 #define $ac_func innocuous_$ac_func
8669 /* System header to define __stub macros and hopefully few prototypes,
8670 which can conflict with char $ac_func (); below.
8671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 <limits.h> exists even on freestanding compilers. */
8675 # include <limits.h>
8677 # include <assert.h>
8682 /* Override any gcc2 internal prototype to avoid an error. */
8687 /* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8690 /* The GNU C library defines this for functions which it implements
8691 to always fail with ENOSYS. Some functions are actually named
8692 something starting with __ and the normal name is an alias. */
8693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8696 char (*f) () = $ac_func;
8705 return f != $ac_func;
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 eval "$as_ac_var=yes"
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 eval "$as_ac_var=no"
8739 rm -f conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8744 if test `eval echo '${'$as_ac_var'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8761 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8764 echo "$as_me:$LINENO: checking for $ac_func" >&5
8765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_var+set}\" = set"; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 if test x$gcc_no_link = xyes; then
8770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8772 { (exit 1); exit 1; }; }
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8782 #define $ac_func innocuous_$ac_func
8784 /* System header to define __stub macros and hopefully few prototypes,
8785 which can conflict with char $ac_func (); below.
8786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8787 <limits.h> exists even on freestanding compilers. */
8790 # include <limits.h>
8792 # include <assert.h>
8797 /* Override any gcc2 internal prototype to avoid an error. */
8802 /* We use char because int might match the return type of a gcc2
8803 builtin and then its argument prototype would still apply. */
8805 /* The GNU C library defines this for functions which it implements
8806 to always fail with ENOSYS. Some functions are actually named
8807 something starting with __ and the normal name is an alias. */
8808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8811 char (*f) () = $ac_func;
8820 return f != $ac_func;
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>conftest.er1
8829 grep -v '^ *+' conftest.er1 >conftest.err
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
8834 { ac_try='test -z "$ac_c_werror_flag"
8835 || test ! -s conftest.err'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; } &&
8841 { ac_try='test -s conftest$ac_exeext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 eval "$as_ac_var=yes"
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8852 eval "$as_ac_var=no"
8854 rm -f conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8859 if test `eval echo '${'$as_ac_var'}'` = yes; then
8860 cat >>confdefs.h <<_ACEOF
8861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8869 for ac_func in nl_langinfo setlocale
8871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8872 echo "$as_me:$LINENO: checking for $ac_func" >&5
8873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8874 if eval "test \"\${$as_ac_var+set}\" = set"; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 if test x$gcc_no_link = xyes; then
8878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8880 { (exit 1); exit 1; }; }
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8890 #define $ac_func innocuous_$ac_func
8892 /* System header to define __stub macros and hopefully few prototypes,
8893 which can conflict with char $ac_func (); below.
8894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8895 <limits.h> exists even on freestanding compilers. */
8898 # include <limits.h>
8900 # include <assert.h>
8905 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */
8913 /* The GNU C library defines this for functions which it implements
8914 to always fail with ENOSYS. Some functions are actually named
8915 something starting with __ and the normal name is an alias. */
8916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8919 char (*f) () = $ac_func;
8928 return f != $ac_func;
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935 (eval $ac_link) 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag"
8943 || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try='test -s conftest$ac_exeext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 eval "$as_ac_var=yes"
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8960 eval "$as_ac_var=no"
8962 rm -f conftest.err conftest.$ac_objext \
8963 conftest$ac_exeext conftest.$ac_ext
8965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8967 if test `eval echo '${'$as_ac_var'}'` = yes; then
8968 cat >>confdefs.h <<_ACEOF
8969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8977 for ac_func in inet_aton inet_addr
8979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8980 echo "$as_me:$LINENO: checking for $ac_func" >&5
8981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8982 if eval "test \"\${$as_ac_var+set}\" = set"; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 if test x$gcc_no_link = xyes; then
8986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8988 { (exit 1); exit 1; }; }
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8998 #define $ac_func innocuous_$ac_func
9000 /* System header to define __stub macros and hopefully few prototypes,
9001 which can conflict with char $ac_func (); below.
9002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003 <limits.h> exists even on freestanding compilers. */
9006 # include <limits.h>
9008 # include <assert.h>
9013 /* Override any gcc2 internal prototype to avoid an error. */
9018 /* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9021 /* The GNU C library defines this for functions which it implements
9022 to always fail with ENOSYS. Some functions are actually named
9023 something starting with __ and the normal name is an alias. */
9024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9027 char (*f) () = $ac_func;
9036 return f != $ac_func;
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9045 grep -v '^ *+' conftest.er1 >conftest.err
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 eval "$as_ac_var=yes"
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 eval "$as_ac_var=no"
9070 rm -f conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9075 if test `eval echo '${'$as_ac_var'}'` = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9086 for ac_func in inet_pton uname inet_ntoa
9088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9089 echo "$as_me:$LINENO: checking for $ac_func" >&5
9090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9091 if eval "test \"\${$as_ac_var+set}\" = set"; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 if test x$gcc_no_link = xyes; then
9095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9097 { (exit 1); exit 1; }; }
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9107 #define $ac_func innocuous_$ac_func
9109 /* System header to define __stub macros and hopefully few prototypes,
9110 which can conflict with char $ac_func (); below.
9111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9112 <limits.h> exists even on freestanding compilers. */
9115 # include <limits.h>
9117 # include <assert.h>
9122 /* Override any gcc2 internal prototype to avoid an error. */
9127 /* We use char because int might match the return type of a gcc2
9128 builtin and then its argument prototype would still apply. */
9130 /* The GNU C library defines this for functions which it implements
9131 to always fail with ENOSYS. Some functions are actually named
9132 something starting with __ and the normal name is an alias. */
9133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9136 char (*f) () = $ac_func;
9145 return f != $ac_func;
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152 (eval $ac_link) 2>conftest.er1
9154 grep -v '^ *+' conftest.er1 >conftest.err
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag"
9160 || test ! -s conftest.err'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; } &&
9166 { ac_try='test -s conftest$ac_exeext'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 eval "$as_ac_var=yes"
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 eval "$as_ac_var=no"
9179 rm -f conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9184 if test `eval echo '${'$as_ac_var'}'` = yes; then
9185 cat >>confdefs.h <<_ACEOF
9186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9197 for ac_func in fork execvp pipe sigaction ftruncate
9199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9200 echo "$as_me:$LINENO: checking for $ac_func" >&5
9201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9202 if eval "test \"\${$as_ac_var+set}\" = set"; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 if test x$gcc_no_link = xyes; then
9206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9208 { (exit 1); exit 1; }; }
9210 cat >conftest.$ac_ext <<_ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9218 #define $ac_func innocuous_$ac_func
9220 /* System header to define __stub macros and hopefully few prototypes,
9221 which can conflict with char $ac_func (); below.
9222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9223 <limits.h> exists even on freestanding compilers. */
9226 # include <limits.h>
9228 # include <assert.h>
9233 /* Override any gcc2 internal prototype to avoid an error. */
9238 /* We use char because int might match the return type of a gcc2
9239 builtin and then its argument prototype would still apply. */
9241 /* The GNU C library defines this for functions which it implements
9242 to always fail with ENOSYS. Some functions are actually named
9243 something starting with __ and the normal name is an alias. */
9244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9247 char (*f) () = $ac_func;
9256 return f != $ac_func;
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9265 grep -v '^ *+' conftest.er1 >conftest.err
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag"
9271 || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 eval "$as_ac_var=yes"
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 eval "$as_ac_var=no"
9290 rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9295 if test `eval echo '${'$as_ac_var'}'` = yes; then
9296 cat >>confdefs.h <<_ACEOF
9297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9303 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9305 if test "${ac_cv_header_stdc+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 cat >conftest.$ac_ext <<_ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329 (eval $ac_compile) 2>conftest.er1
9331 grep -v '^ *+' conftest.er1 >conftest.err
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } &&
9336 { ac_try='test -z "$ac_c_werror_flag"
9337 || test ! -s conftest.err'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest.$ac_objext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 ac_cv_header_stdc=yes
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9354 ac_cv_header_stdc=no
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9358 if test $ac_cv_header_stdc = yes; then
9359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9360 cat >conftest.$ac_ext <<_ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9370 $EGREP "memchr" >/dev/null 2>&1; then
9373 ac_cv_header_stdc=no
9379 if test $ac_cv_header_stdc = yes; then
9380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9381 cat >conftest.$ac_ext <<_ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9391 $EGREP "free" >/dev/null 2>&1; then
9394 ac_cv_header_stdc=no
9400 if test $ac_cv_header_stdc = yes; then
9401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9402 if test "$cross_compiling" = yes; then
9405 cat >conftest.$ac_ext <<_ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9412 #if ((' ' & 0x0FF) == 0x020)
9413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9416 # define ISLOWER(c) \
9417 (('a' <= (c) && (c) <= 'i') \
9418 || ('j' <= (c) && (c) <= 'r') \
9419 || ('s' <= (c) && (c) <= 'z'))
9420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9428 for (i = 0; i < 256; i++)
9429 if (XOR (islower (i), ISLOWER (i))
9430 || toupper (i) != TOUPPER (i))
9435 rm -f conftest$ac_exeext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9437 (eval $ac_link) 2>&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9448 echo "$as_me: program exited with status $ac_status" >&5
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_cv_header_stdc=no
9455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9459 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9460 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9461 if test $ac_cv_header_stdc = yes; then
9463 cat >>confdefs.h <<\_ACEOF
9464 #define STDC_HEADERS 1
9469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9479 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9480 inttypes.h stdint.h unistd.h
9482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9483 echo "$as_me:$LINENO: checking for $ac_header" >&5
9484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 cat >conftest.$ac_ext <<_ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 $ac_includes_default
9496 #include <$ac_header>
9498 rm -f conftest.$ac_objext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500 (eval $ac_compile) 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest.$ac_objext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 eval "$as_ac_Header=yes"
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9525 eval "$as_ac_Header=no"
9527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9532 cat >>confdefs.h <<_ACEOF
9533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9544 for ac_header in execinfo.h unistd.h dlfcn.h
9546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9548 echo "$as_me:$LINENO: checking for $ac_header" >&5
9549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9556 # Is the header compilable?
9557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 $ac_includes_default
9566 #include <$ac_header>
9568 rm -f conftest.$ac_objext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9570 (eval $ac_compile) 2>conftest.er1
9572 grep -v '^ *+' conftest.er1 >conftest.err
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } &&
9577 { ac_try='test -z "$ac_c_werror_flag"
9578 || test ! -s conftest.err'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; } &&
9584 { ac_try='test -s conftest.$ac_objext'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 ac_header_compiler=yes
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 ac_header_compiler=no
9597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9599 echo "${ECHO_T}$ac_header_compiler" >&6
9601 # Is the header present?
9602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 #include <$ac_header>
9612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } >/dev/null; then
9620 if test -s conftest.err; then
9621 ac_cpp_err=$ac_c_preproc_warn_flag
9622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9629 if test -z "$ac_cpp_err"; then
9630 ac_header_preproc=yes
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9635 ac_header_preproc=no
9637 rm -f conftest.err conftest.$ac_ext
9638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9639 echo "${ECHO_T}$ac_header_preproc" >&6
9641 # So? What about this header?
9642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9648 ac_header_preproc=yes
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9665 ## ---------------------------------- ##
9666 ## Report this to the libjava lists. ##
9667 ## ---------------------------------- ##
9670 sed "s/^/$as_me: WARNING: /" >&2
9673 echo "$as_me:$LINENO: checking for $ac_header" >&5
9674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 eval "$as_ac_Header=\$ac_header_preproc"
9680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9685 cat >>confdefs.h <<_ACEOF
9686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9693 echo "$as_me:$LINENO: checking for backtrace" >&5
9694 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9695 if test "${ac_cv_func_backtrace+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 if test x$gcc_no_link = xyes; then
9699 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9700 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9701 { (exit 1); exit 1; }; }
9703 cat >conftest.$ac_ext <<_ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9711 #define backtrace innocuous_backtrace
9713 /* System header to define __stub macros and hopefully few prototypes,
9714 which can conflict with char backtrace (); below.
9715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716 <limits.h> exists even on freestanding compilers. */
9719 # include <limits.h>
9721 # include <assert.h>
9726 /* Override any gcc2 internal prototype to avoid an error. */
9731 /* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9734 /* The GNU C library defines this for functions which it implements
9735 to always fail with ENOSYS. Some functions are actually named
9736 something starting with __ and the normal name is an alias. */
9737 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9740 char (*f) () = backtrace;
9749 return f != backtrace;
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_func_backtrace=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_cv_func_backtrace=no
9783 rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9786 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9787 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9788 if test $ac_cv_func_backtrace = yes; then
9792 # Has broken backtrace()
9795 # Has broken backtrace(), but we supply our own.
9796 if test -d sysdep; then true; else mkdir -p sysdep; fi
9797 supply_backtrace=yes
9799 cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_BACKTRACE 1
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_BACKTRACE 1
9817 # Has backtrace() defined in libgcj itself
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_BACKTRACE 1
9829 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9830 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9831 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 ac_check_lib_save_LIBS=$LIBS
9836 if test x$gcc_no_link = xyes; then
9837 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9838 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9839 { (exit 1); exit 1; }; }
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9848 /* Override any gcc2 internal prototype to avoid an error. */
9852 /* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>conftest.er1
9867 grep -v '^ *+' conftest.er1 >conftest.err
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -z "$ac_c_werror_flag"
9873 || test ! -s conftest.err'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_lib_dl_dladdr=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_cv_lib_dl_dladdr=no
9892 rm -f conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 LIBS=$ac_check_lib_save_LIBS
9896 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9897 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9898 if test $ac_cv_lib_dl_dladdr = yes; then
9900 if test "x${disable_dladdr}" = "xyes"; then
9905 cat >>confdefs.h <<\_ACEOF
9906 #define HAVE_DLADDR 1
9913 if test x"$build" = x"$host"; then
9914 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9915 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9916 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 test "$cross_compiling" = yes &&
9920 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9921 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9922 { (exit 1); exit 1; }; }
9923 if test -r "/proc/self/exe"; then
9924 ac_cv_file__proc_self_exe=yes
9926 ac_cv_file__proc_self_exe=no
9929 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9930 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9931 if test $ac_cv_file__proc_self_exe = yes; then
9933 cat >>confdefs.h <<_ACEOF
9934 #define HAVE__PROC_SELF_EXE 1
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_PROC_SELF_EXE 1
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_PROC_SELF_EXE 1
9959 am_cv_lib_iconv_ldpath=
9961 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9962 if test "${with_libiconv_prefix+set}" = set; then
9963 withval="$with_libiconv_prefix"
9965 for dir in `echo "$withval" | tr : ' '`; do
9966 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9967 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9972 echo "$as_me:$LINENO: checking for iconv" >&5
9973 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9974 if test "${am_cv_func_iconv+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 am_cv_func_iconv="no, consider installing GNU libiconv"
9980 if test x$gcc_no_link = xyes; then
9981 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9983 { (exit 1); exit 1; }; }
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9996 iconv_t cd = iconv_open("","");
9997 iconv(cd,NULL,NULL,NULL,NULL);
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005 (eval $ac_link) 2>conftest.er1
10007 grep -v '^ *+' conftest.er1 >conftest.err
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag"
10013 || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 am_cv_func_iconv=yes
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10031 rm -f conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 if test "$am_cv_func_iconv" != yes; then
10034 am_save_LIBS="$LIBS"
10035 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
10036 if test x$gcc_no_link = xyes; then
10037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10039 { (exit 1); exit 1; }; }
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 #include <stdlib.h>
10052 iconv_t cd = iconv_open("","");
10053 iconv(cd,NULL,NULL,NULL,NULL);
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061 (eval $ac_link) 2>conftest.er1
10063 grep -v '^ *+' conftest.er1 >conftest.err
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag"
10069 || test ! -s conftest.err'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 am_cv_lib_iconv=yes
10082 am_cv_func_iconv=yes
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10088 rm -f conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 LIBS="$am_save_LIBS"
10094 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10095 echo "${ECHO_T}$am_cv_func_iconv" >&6
10096 if test "$am_cv_func_iconv" = yes; then
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_ICONV 1
10102 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10103 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10104 if test "${am_cv_proto_iconv+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 cat >conftest.$ac_ext <<_ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10115 #include <stdlib.h>
10121 #if defined(__STDC__) || defined(__cplusplus)
10122 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 am_cv_proto_iconv_arg1=""
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 am_cv_proto_iconv_arg1="const"
10164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10165 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);"
10168 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10169 echo "$as_me:$LINENO: result: ${ac_t:-
10170 }$am_cv_proto_iconv" >&5
10171 echo "${ECHO_T}${ac_t:-
10172 }$am_cv_proto_iconv" >&6
10174 cat >>confdefs.h <<_ACEOF
10175 #define ICONV_CONST $am_cv_proto_iconv_arg1
10180 if test "$am_cv_lib_iconv" = yes; then
10181 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10186 for ac_header in locale.h
10188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10190 echo "$as_me:$LINENO: checking for $ac_header" >&5
10191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10198 # Is the header compilable?
10199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10201 cat >conftest.$ac_ext <<_ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 $ac_includes_default
10208 #include <$ac_header>
10210 rm -f conftest.$ac_objext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212 (eval $ac_compile) 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -z "$ac_c_werror_flag"
10220 || test ! -s conftest.err'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try='test -s conftest.$ac_objext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_header_compiler=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_header_compiler=no
10239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10241 echo "${ECHO_T}$ac_header_compiler" >&6
10243 # Is the header present?
10244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <$ac_header>
10254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10257 grep -v '^ *+' conftest.er1 >conftest.err
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } >/dev/null; then
10262 if test -s conftest.err; then
10263 ac_cpp_err=$ac_c_preproc_warn_flag
10264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10271 if test -z "$ac_cpp_err"; then
10272 ac_header_preproc=yes
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_header_preproc=no
10279 rm -f conftest.err conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10281 echo "${ECHO_T}$ac_header_preproc" >&6
10283 # So? What about this header?
10284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10290 ac_header_preproc=yes
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10307 ## ---------------------------------- ##
10308 ## Report this to the libjava lists. ##
10309 ## ---------------------------------- ##
10312 sed "s/^/$as_me: WARNING: /" >&2
10315 echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 eval "$as_ac_Header=\$ac_header_preproc"
10322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10327 cat >>confdefs.h <<_ACEOF
10328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10335 if test $ac_cv_header_locale_h = yes; then
10336 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10337 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10338 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 if test x$gcc_no_link = xyes; then
10342 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10344 { (exit 1); exit 1; }; }
10346 cat >conftest.$ac_ext <<_ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352 #include <locale.h>
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363 (eval $ac_link) 2>conftest.er1
10365 grep -v '^ *+' conftest.er1 >conftest.err
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } &&
10370 { ac_try='test -z "$ac_c_werror_flag"
10371 || test ! -s conftest.err'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest$ac_exeext'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 am_cv_val_LC_MESSAGES=yes
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 am_cv_val_LC_MESSAGES=no
10390 rm -f conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10393 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10394 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10395 if test $am_cv_val_LC_MESSAGES = yes; then
10397 cat >>confdefs.h <<\_ACEOF
10398 #define HAVE_LC_MESSAGES 1
10403 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10404 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10405 if test "${ac_cv_struct_tm+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 cat >conftest.$ac_ext <<_ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10414 #include <sys/types.h>
10420 struct tm *tp; tp->tm_sec;
10425 rm -f conftest.$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>conftest.er1
10429 grep -v '^ *+' conftest.er1 >conftest.err
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -z "$ac_c_werror_flag"
10435 || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 ac_cv_struct_tm=time.h
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10452 ac_cv_struct_tm=sys/time.h
10454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10456 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10457 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10458 if test $ac_cv_struct_tm = sys/time.h; then
10460 cat >>confdefs.h <<\_ACEOF
10461 #define TM_IN_SYS_TIME 1
10466 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10467 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10468 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 #include <sys/types.h>
10478 #include <$ac_cv_struct_tm>
10484 static struct tm ac_aggr;
10485 if (ac_aggr.tm_zone)
10491 rm -f conftest.$ac_objext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493 (eval $ac_compile) 2>conftest.er1
10495 grep -v '^ *+' conftest.er1 >conftest.err
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag"
10501 || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest.$ac_objext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_cv_member_struct_tm_tm_zone=yes
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 #include <sys/types.h>
10525 #include <$ac_cv_struct_tm>
10531 static struct tm ac_aggr;
10532 if (sizeof ac_aggr.tm_zone)
10538 rm -f conftest.$ac_objext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10540 (eval $ac_compile) 2>conftest.er1
10542 grep -v '^ *+' conftest.er1 >conftest.err
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag"
10548 || test ! -s conftest.err'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; } &&
10554 { ac_try='test -s conftest.$ac_objext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_cv_member_struct_tm_tm_zone=yes
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 ac_cv_member_struct_tm_tm_zone=no
10567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10572 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10573 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define HAVE_STRUCT_TM_TM_ZONE 1
10582 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10584 cat >>confdefs.h <<\_ACEOF
10585 #define HAVE_TM_ZONE 1
10589 echo "$as_me:$LINENO: checking for tzname" >&5
10590 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10591 if test "${ac_cv_var_tzname+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 if test x$gcc_no_link = xyes; then
10595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10597 { (exit 1); exit 1; }; }
10599 cat >conftest.$ac_ext <<_ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10606 #ifndef tzname /* For SGI. */
10607 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620 (eval $ac_link) 2>conftest.er1
10622 grep -v '^ *+' conftest.er1 >conftest.err
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag"
10628 || test ! -s conftest.err'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest$ac_exeext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_var_tzname=yes
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_var_tzname=no
10647 rm -f conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10650 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10651 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10652 if test $ac_cv_var_tzname = yes; then
10654 cat >>confdefs.h <<\_ACEOF
10655 #define HAVE_TZNAME 1
10664 for ac_func in gethostbyname_r
10666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10667 echo "$as_me:$LINENO: checking for $ac_func" >&5
10668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10669 if eval "test \"\${$as_ac_var+set}\" = set"; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 if test x$gcc_no_link = xyes; then
10673 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10675 { (exit 1); exit 1; }; }
10677 cat >conftest.$ac_ext <<_ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10685 #define $ac_func innocuous_$ac_func
10687 /* System header to define __stub macros and hopefully few prototypes,
10688 which can conflict with char $ac_func (); below.
10689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10690 <limits.h> exists even on freestanding compilers. */
10693 # include <limits.h>
10695 # include <assert.h>
10700 /* Override any gcc2 internal prototype to avoid an error. */
10705 /* We use char because int might match the return type of a gcc2
10706 builtin and then its argument prototype would still apply. */
10708 /* The GNU C library defines this for functions which it implements
10709 to always fail with ENOSYS. Some functions are actually named
10710 something starting with __ and the normal name is an alias. */
10711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10714 char (*f) () = $ac_func;
10723 return f != $ac_func;
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10730 (eval $ac_link) 2>conftest.er1
10732 grep -v '^ *+' conftest.er1 >conftest.err
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } &&
10737 { ac_try='test -z "$ac_c_werror_flag"
10738 || test ! -s conftest.err'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; } &&
10744 { ac_try='test -s conftest$ac_exeext'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 eval "$as_ac_var=yes"
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 eval "$as_ac_var=no"
10757 rm -f conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext conftest.$ac_ext
10760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10762 if test `eval echo '${'$as_ac_var'}'` = yes; then
10763 cat >>confdefs.h <<_ACEOF
10764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10768 cat >>confdefs.h <<\_ACEOF
10769 #define HAVE_GETHOSTBYNAME_R 1
10772 # There are two different kinds of gethostbyname_r.
10773 # We look for the one that returns `int'.
10774 # Hopefully this check is robust enough.
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10785 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10788 cat >>confdefs.h <<\_ACEOF
10789 #define GETHOSTBYNAME_R_RETURNS_INT 1
10796 case " $GCINCS " in
10797 *" -D_REENTRANT "*) ;;
10799 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10800 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10801 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 ac_cpp='$CXXCPP $CPPFLAGS'
10806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10810 cat >conftest.$ac_ext <<_ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h. */
10820 gethostbyname_r("", 0, 0);
10825 rm -f conftest.$ac_objext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>conftest.er1
10829 grep -v '^ *+' conftest.er1 >conftest.err
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_cxx_werror_flag"
10835 || test ! -s conftest.err'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 libjava_cv_gethostbyname_r_needs_reentrant=no
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 CPPFLAGS_SAVE="$CPPFLAGS"
10853 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10854 cat >conftest.$ac_ext <<_ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10864 gethostbyname_r("", 0, 0);
10869 rm -f conftest.$ac_objext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_cxx_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 libjava_cv_gethostbyname_r_needs_reentrant=yes
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10896 libjava_cv_gethostbyname_r_needs_reentrant=fail
10898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899 CPPFLAGS="$CPPFLAGS_SAVE"
10902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10904 ac_cpp='$CPP $CPPFLAGS'
10905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10911 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10912 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10913 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10915 cat >>confdefs.h <<\_ACEOF
10916 #define _REENTRANT 1
10923 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10924 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10925 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 cat >conftest.$ac_ext <<_ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h. */
10935 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10936 # define _REENTRANT 1
10942 struct hostent_data data;
10947 rm -f conftest.$ac_objext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10949 (eval $ac_compile) 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_c_werror_flag"
10957 || test ! -s conftest.err'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; } &&
10963 { ac_try='test -s conftest.$ac_objext'
10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 libjava_cv_struct_hostent_data=yes
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 libjava_cv_struct_hostent_data=no
10976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10978 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10979 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10980 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_STRUCT_HOSTENT_DATA 1
10992 # FIXME: libjava source code expects to find a prototype for
10993 # gethostbyaddr_r in netdb.h. The outer check ensures that
10994 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10995 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10996 # linkage check is enough, yet C++ code requires proper prototypes.)
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11007 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11010 for ac_func in gethostbyaddr_r
11012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11013 echo "$as_me:$LINENO: checking for $ac_func" >&5
11014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11015 if eval "test \"\${$as_ac_var+set}\" = set"; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 if test x$gcc_no_link = xyes; then
11019 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11021 { (exit 1); exit 1; }; }
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11031 #define $ac_func innocuous_$ac_func
11033 /* System header to define __stub macros and hopefully few prototypes,
11034 which can conflict with char $ac_func (); below.
11035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11036 <limits.h> exists even on freestanding compilers. */
11039 # include <limits.h>
11041 # include <assert.h>
11046 /* Override any gcc2 internal prototype to avoid an error. */
11051 /* We use char because int might match the return type of a gcc2
11052 builtin and then its argument prototype would still apply. */
11054 /* The GNU C library defines this for functions which it implements
11055 to always fail with ENOSYS. Some functions are actually named
11056 something starting with __ and the normal name is an alias. */
11057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11060 char (*f) () = $ac_func;
11069 return f != $ac_func;
11074 rm -f conftest.$ac_objext conftest$ac_exeext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11076 (eval $ac_link) 2>conftest.er1
11078 grep -v '^ *+' conftest.er1 >conftest.err
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
11083 { ac_try='test -z "$ac_c_werror_flag"
11084 || test ! -s conftest.err'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; } &&
11090 { ac_try='test -s conftest$ac_exeext'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 eval "$as_ac_var=yes"
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11101 eval "$as_ac_var=no"
11103 rm -f conftest.err conftest.$ac_objext \
11104 conftest$ac_exeext conftest.$ac_ext
11106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11108 if test `eval echo '${'$as_ac_var'}'` = yes; then
11109 cat >>confdefs.h <<_ACEOF
11110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_GETHOSTBYADDR_R 1
11118 # There are two different kinds of gethostbyaddr_r.
11119 # We look for the one that returns `int'.
11120 # Hopefully this check is robust enough.
11121 cat >conftest.$ac_ext <<_ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11131 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11134 cat >>confdefs.h <<\_ACEOF
11135 #define GETHOSTBYADDR_R_RETURNS_INT 1
11149 for ac_func in gethostname
11151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11152 echo "$as_me:$LINENO: checking for $ac_func" >&5
11153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11154 if eval "test \"\${$as_ac_var+set}\" = set"; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 if test x$gcc_no_link = xyes; then
11158 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11160 { (exit 1); exit 1; }; }
11162 cat >conftest.$ac_ext <<_ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11170 #define $ac_func innocuous_$ac_func
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func (); below.
11174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 <limits.h> exists even on freestanding compilers. */
11178 # include <limits.h>
11180 # include <assert.h>
11185 /* Override any gcc2 internal prototype to avoid an error. */
11190 /* We use char because int might match the return type of a gcc2
11191 builtin and then its argument prototype would still apply. */
11193 /* The GNU C library defines this for functions which it implements
11194 to always fail with ENOSYS. Some functions are actually named
11195 something starting with __ and the normal name is an alias. */
11196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11199 char (*f) () = $ac_func;
11208 return f != $ac_func;
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>conftest.er1
11217 grep -v '^ *+' conftest.er1 >conftest.err
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try='test -z "$ac_c_werror_flag"
11223 || test ! -s conftest.err'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 eval "$as_ac_var=yes"
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 eval "$as_ac_var=no"
11242 rm -f conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11247 if test `eval echo '${'$as_ac_var'}'` = yes; then
11248 cat >>confdefs.h <<_ACEOF
11249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_GETHOSTNAME 1
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <unistd.h>
11266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11267 $EGREP "gethostname" >/dev/null 2>&1; then
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_GETHOSTNAME_DECL 1
11282 for ac_func in usleep
11284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11285 echo "$as_me:$LINENO: checking for $ac_func" >&5
11286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11287 if eval "test \"\${$as_ac_var+set}\" = set"; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 if test x$gcc_no_link = xyes; then
11291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11293 { (exit 1); exit 1; }; }
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11303 #define $ac_func innocuous_$ac_func
11305 /* System header to define __stub macros and hopefully few prototypes,
11306 which can conflict with char $ac_func (); below.
11307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11308 <limits.h> exists even on freestanding compilers. */
11311 # include <limits.h>
11313 # include <assert.h>
11318 /* Override any gcc2 internal prototype to avoid an error. */
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11326 /* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11332 char (*f) () = $ac_func;
11341 return f != $ac_func;
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>conftest.er1
11350 grep -v '^ *+' conftest.er1 >conftest.err
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
11355 { ac_try='test -z "$ac_c_werror_flag"
11356 || test ! -s conftest.err'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; } &&
11362 { ac_try='test -s conftest$ac_exeext'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 eval "$as_ac_var=yes"
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 eval "$as_ac_var=no"
11375 rm -f conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11380 if test `eval echo '${'$as_ac_var'}'` = yes; then
11381 cat >>confdefs.h <<_ACEOF
11382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11385 cat >conftest.$ac_ext <<_ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 #include <unistd.h>
11394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11395 $EGREP "usleep" >/dev/null 2>&1; then
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_USLEEP_DECL 1
11409 # Look for these functions in the thread library, but only bother
11410 # if using POSIX threads.
11411 if test "$THREADS" = posix; then
11413 LIBS="$LIBS $THREADLIBS"
11414 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11418 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11421 echo "$as_me:$LINENO: checking for $ac_func" >&5
11422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11423 if eval "test \"\${$as_ac_var+set}\" = set"; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 if test x$gcc_no_link = xyes; then
11427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11429 { (exit 1); exit 1; }; }
11431 cat >conftest.$ac_ext <<_ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11439 #define $ac_func innocuous_$ac_func
11441 /* System header to define __stub macros and hopefully few prototypes,
11442 which can conflict with char $ac_func (); below.
11443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444 <limits.h> exists even on freestanding compilers. */
11447 # include <limits.h>
11449 # include <assert.h>
11454 /* Override any gcc2 internal prototype to avoid an error. */
11459 /* We use char because int might match the return type of a gcc2
11460 builtin and then its argument prototype would still apply. */
11462 /* The GNU C library defines this for functions which it implements
11463 to always fail with ENOSYS. Some functions are actually named
11464 something starting with __ and the normal name is an alias. */
11465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11468 char (*f) () = $ac_func;
11477 return f != $ac_func;
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484 (eval $ac_link) 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest$ac_exeext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 eval "$as_ac_var=yes"
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 eval "$as_ac_var=no"
11511 rm -f conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11516 if test `eval echo '${'$as_ac_var'}'` = yes; then
11517 cat >>confdefs.h <<_ACEOF
11518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11525 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11526 # Solaris 7 the name librt is preferred.
11528 for ac_func in sched_yield
11530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11531 echo "$as_me:$LINENO: checking for $ac_func" >&5
11532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11533 if eval "test \"\${$as_ac_var+set}\" = set"; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 if test x$gcc_no_link = xyes; then
11537 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11539 { (exit 1); exit 1; }; }
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11549 #define $ac_func innocuous_$ac_func
11551 /* System header to define __stub macros and hopefully few prototypes,
11552 which can conflict with char $ac_func (); below.
11553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11554 <limits.h> exists even on freestanding compilers. */
11557 # include <limits.h>
11559 # include <assert.h>
11564 /* Override any gcc2 internal prototype to avoid an error. */
11569 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11572 /* The GNU C library defines this for functions which it implements
11573 to always fail with ENOSYS. Some functions are actually named
11574 something starting with __ and the normal name is an alias. */
11575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11578 char (*f) () = $ac_func;
11587 return f != $ac_func;
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594 (eval $ac_link) 2>conftest.er1
11596 grep -v '^ *+' conftest.er1 >conftest.err
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -z "$ac_c_werror_flag"
11602 || test ! -s conftest.err'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try='test -s conftest$ac_exeext'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 eval "$as_ac_var=yes"
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 eval "$as_ac_var=no"
11621 rm -f conftest.err conftest.$ac_objext \
11622 conftest$ac_exeext conftest.$ac_ext
11624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11626 if test `eval echo '${'$as_ac_var'}'` = yes; then
11627 cat >>confdefs.h <<_ACEOF
11628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11633 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11634 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11635 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 ac_check_lib_save_LIBS=$LIBS
11640 if test x$gcc_no_link = xyes; then
11641 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11643 { (exit 1); exit 1; }; }
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11652 /* Override any gcc2 internal prototype to avoid an error. */
11656 /* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11658 char sched_yield ();
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag"
11677 || test ! -s conftest.err'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest$ac_exeext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 ac_cv_lib_rt_sched_yield=yes
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ac_cv_lib_rt_sched_yield=no
11696 rm -f conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_lib_save_LIBS
11700 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11701 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11702 if test $ac_cv_lib_rt_sched_yield = yes; then
11704 cat >>confdefs.h <<\_ACEOF
11705 #define HAVE_SCHED_YIELD 1
11708 THREADLIBS="$THREADLIBS -lrt"
11709 THREADSPEC="$THREADSPEC -lrt"
11712 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11713 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11714 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-lposix4 $LIBS"
11719 if test x$gcc_no_link = xyes; then
11720 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11722 { (exit 1); exit 1; }; }
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11731 /* Override any gcc2 internal prototype to avoid an error. */
11735 /* We use char because int might match the return type of a gcc2
11736 builtin and then its argument prototype would still apply. */
11737 char sched_yield ();
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748 (eval $ac_link) 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag"
11756 || test ! -s conftest.err'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 ac_cv_lib_posix4_sched_yield=yes
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_cv_lib_posix4_sched_yield=no
11775 rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11779 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11780 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11781 if test $ac_cv_lib_posix4_sched_yield = yes; then
11783 cat >>confdefs.h <<\_ACEOF
11784 #define HAVE_SCHED_YIELD 1
11787 THREADLIBS="$THREADLIBS -lposix4"
11788 THREADSPEC="$THREADSPEC -lposix4"
11798 # We can save a little space at runtime if the mutex has m_count
11799 # or __m_count. This is a nice hack for Linux.
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 #include <pthread.h>
11811 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11821 grep -v '^ *+' conftest.er1 >conftest.err
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -z "$ac_c_werror_flag"
11827 || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest.$ac_objext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11840 cat >>confdefs.h <<\_ACEOF
11841 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11849 cat >conftest.$ac_ext <<_ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 #include <pthread.h>
11860 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>conftest.er1
11870 grep -v '^ *+' conftest.er1 >conftest.err
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11889 cat >>confdefs.h <<\_ACEOF
11890 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11903 # We require a way to get the time.
11908 for ac_func in gettimeofday time ftime
11910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11911 echo "$as_me:$LINENO: checking for $ac_func" >&5
11912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11913 if eval "test \"\${$as_ac_var+set}\" = set"; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 if test x$gcc_no_link = xyes; then
11917 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11919 { (exit 1); exit 1; }; }
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11929 #define $ac_func innocuous_$ac_func
11931 /* System header to define __stub macros and hopefully few prototypes,
11932 which can conflict with char $ac_func (); below.
11933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934 <limits.h> exists even on freestanding compilers. */
11937 # include <limits.h>
11939 # include <assert.h>
11944 /* Override any gcc2 internal prototype to avoid an error. */
11949 /* We use char because int might match the return type of a gcc2
11950 builtin and then its argument prototype would still apply. */
11952 /* The GNU C library defines this for functions which it implements
11953 to always fail with ENOSYS. Some functions are actually named
11954 something starting with __ and the normal name is an alias. */
11955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11958 char (*f) () = $ac_func;
11967 return f != $ac_func;
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974 (eval $ac_link) 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -z "$ac_c_werror_flag"
11982 || test ! -s conftest.err'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try='test -s conftest$ac_exeext'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 eval "$as_ac_var=yes"
11996 echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11999 eval "$as_ac_var=no"
12001 rm -f conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12006 if test `eval echo '${'$as_ac_var'}'` = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12014 if test "$time_found" = no; then
12015 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12016 echo "$as_me: error: no function found to get the time" >&2;}
12017 { (exit 1); exit 1; }; }
12021 for ac_func in memmove
12023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12024 echo "$as_me:$LINENO: checking for $ac_func" >&5
12025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12026 if eval "test \"\${$as_ac_var+set}\" = set"; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 if test x$gcc_no_link = xyes; then
12030 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12032 { (exit 1); exit 1; }; }
12034 cat >conftest.$ac_ext <<_ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12042 #define $ac_func innocuous_$ac_func
12044 /* System header to define __stub macros and hopefully few prototypes,
12045 which can conflict with char $ac_func (); below.
12046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12047 <limits.h> exists even on freestanding compilers. */
12050 # include <limits.h>
12052 # include <assert.h>
12057 /* Override any gcc2 internal prototype to avoid an error. */
12062 /* We use char because int might match the return type of a gcc2
12063 builtin and then its argument prototype would still apply. */
12065 /* The GNU C library defines this for functions which it implements
12066 to always fail with ENOSYS. Some functions are actually named
12067 something starting with __ and the normal name is an alias. */
12068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12071 char (*f) () = $ac_func;
12080 return f != $ac_func;
12085 rm -f conftest.$ac_objext conftest$ac_exeext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12087 (eval $ac_link) 2>conftest.er1
12089 grep -v '^ *+' conftest.er1 >conftest.err
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -z "$ac_c_werror_flag"
12095 || test ! -s conftest.err'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest$ac_exeext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 eval "$as_ac_var=yes"
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 eval "$as_ac_var=no"
12114 rm -f conftest.err conftest.$ac_objext \
12115 conftest$ac_exeext conftest.$ac_ext
12117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12119 if test `eval echo '${'$as_ac_var'}'` = yes; then
12120 cat >>confdefs.h <<_ACEOF
12121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12128 # We require memcpy.
12131 for ac_func in memcpy
12133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12134 echo "$as_me:$LINENO: checking for $ac_func" >&5
12135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12136 if eval "test \"\${$as_ac_var+set}\" = set"; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 if test x$gcc_no_link = xyes; then
12140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12142 { (exit 1); exit 1; }; }
12144 cat >conftest.$ac_ext <<_ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12152 #define $ac_func innocuous_$ac_func
12154 /* System header to define __stub macros and hopefully few prototypes,
12155 which can conflict with char $ac_func (); below.
12156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12157 <limits.h> exists even on freestanding compilers. */
12160 # include <limits.h>
12162 # include <assert.h>
12167 /* Override any gcc2 internal prototype to avoid an error. */
12172 /* We use char because int might match the return type of a gcc2
12173 builtin and then its argument prototype would still apply. */
12175 /* The GNU C library defines this for functions which it implements
12176 to always fail with ENOSYS. Some functions are actually named
12177 something starting with __ and the normal name is an alias. */
12178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12181 char (*f) () = $ac_func;
12190 return f != $ac_func;
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197 (eval $ac_link) 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag"
12205 || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest$ac_exeext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 eval "$as_ac_var=yes"
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 eval "$as_ac_var=no"
12224 rm -f conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12229 if test `eval echo '${'$as_ac_var'}'` = yes; then
12230 cat >>confdefs.h <<_ACEOF
12231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12237 if test "$memcpy_found" = no; then
12238 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12239 echo "$as_me: error: memcpy is required" >&2;}
12240 { (exit 1); exit 1; }; }
12243 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12244 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12245 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 ac_check_lib_save_LIBS=$LIBS
12250 if test x$gcc_no_link = xyes; then
12251 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12253 { (exit 1); exit 1; }; }
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 /* Override any gcc2 internal prototype to avoid an error. */
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try='test -s conftest$ac_exeext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_lib_dl_dlopen=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 ac_cv_lib_dl_dlopen=no
12306 rm -f conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12312 if test $ac_cv_lib_dl_dlopen = yes; then
12315 cat >>confdefs.h <<\_ACEOF
12316 #define HAVE_DLOPEN 1
12322 # Some library-finding code we stole from Tcl.
12323 #--------------------------------------------------------------------
12324 # Check for the existence of the -lsocket and -lnsl libraries.
12325 # The order here is important, so that they end up in the right
12326 # order in the command line generated by make. Here are some
12327 # special considerations:
12328 # 1. Use "connect" and "accept" to check for -lsocket, and
12329 # "gethostbyname" to check for -lnsl.
12330 # 2. Use each function name only once: can't redo a check because
12331 # autoconf caches the results of the last check and won't redo it.
12332 # 3. Use -lnsl and -lsocket only if they supply procedures that
12333 # aren't already present in the normal libraries. This is because
12334 # IRIX 5.2 has libraries, but they aren't needed and they're
12335 # bogus: they goof up name resolution if used.
12336 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12337 # To get around this problem, check for both libraries together
12338 # if -lsocket doesn't work by itself.
12339 #--------------------------------------------------------------------
12341 echo "$as_me:$LINENO: checking for socket libraries" >&5
12342 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12343 if test "${gcj_cv_lib_sockets+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 gcj_cv_lib_sockets=
12348 unset ac_cv_func_connect
12349 echo "$as_me:$LINENO: checking for connect" >&5
12350 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12351 if test "${ac_cv_func_connect+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 if test x$gcc_no_link = xyes; then
12355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12357 { (exit 1); exit 1; }; }
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12367 #define connect innocuous_connect
12369 /* System header to define __stub macros and hopefully few prototypes,
12370 which can conflict with char connect (); below.
12371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12372 <limits.h> exists even on freestanding compilers. */
12375 # include <limits.h>
12377 # include <assert.h>
12382 /* Override any gcc2 internal prototype to avoid an error. */
12387 /* We use char because int might match the return type of a gcc2
12388 builtin and then its argument prototype would still apply. */
12390 /* The GNU C library defines this for functions which it implements
12391 to always fail with ENOSYS. Some functions are actually named
12392 something starting with __ and the normal name is an alias. */
12393 #if defined (__stub_connect) || defined (__stub___connect)
12396 char (*f) () = connect;
12405 return f != connect;
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412 (eval $ac_link) 2>conftest.er1
12414 grep -v '^ *+' conftest.er1 >conftest.err
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -z "$ac_c_werror_flag"
12420 || test ! -s conftest.err'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; } &&
12426 { ac_try='test -s conftest$ac_exeext'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 ac_cv_func_connect=yes
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 ac_cv_func_connect=no
12439 rm -f conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12442 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12443 echo "${ECHO_T}$ac_cv_func_connect" >&6
12444 if test $ac_cv_func_connect = yes; then
12450 if test "$gcj_checkSocket" = 1; then
12451 unset ac_cv_func_connect
12452 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12453 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12454 if test "${ac_cv_lib_socket_main+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-lsocket $LIBS"
12459 if test x$gcc_no_link = xyes; then
12460 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12462 { (exit 1); exit 1; }; }
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482 (eval $ac_link) 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag"
12490 || test ! -s conftest.err'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest$ac_exeext'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 ac_cv_lib_socket_main=yes
12504 echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12507 ac_cv_lib_socket_main=no
12509 rm -f conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12511 LIBS=$ac_check_lib_save_LIBS
12513 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12514 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12515 if test $ac_cv_lib_socket_main = yes; then
12516 gcj_cv_lib_sockets="-lsocket"
12522 if test "$gcj_checkBoth" = 1; then
12524 LIBS="$LIBS -lsocket -lnsl"
12525 unset ac_cv_func_accept
12526 echo "$as_me:$LINENO: checking for accept" >&5
12527 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12528 if test "${ac_cv_func_accept+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 if test x$gcc_no_link = xyes; then
12532 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12533 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12534 { (exit 1); exit 1; }; }
12536 cat >conftest.$ac_ext <<_ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12544 #define accept innocuous_accept
12546 /* System header to define __stub macros and hopefully few prototypes,
12547 which can conflict with char accept (); below.
12548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12549 <limits.h> exists even on freestanding compilers. */
12552 # include <limits.h>
12554 # include <assert.h>
12559 /* Override any gcc2 internal prototype to avoid an error. */
12564 /* We use char because int might match the return type of a gcc2
12565 builtin and then its argument prototype would still apply. */
12567 /* The GNU C library defines this for functions which it implements
12568 to always fail with ENOSYS. Some functions are actually named
12569 something starting with __ and the normal name is an alias. */
12570 #if defined (__stub_accept) || defined (__stub___accept)
12573 char (*f) () = accept;
12582 return f != accept;
12587 rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12589 (eval $ac_link) 2>conftest.er1
12591 grep -v '^ *+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag"
12597 || test ! -s conftest.err'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest$ac_exeext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_cv_func_accept=yes
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12614 ac_cv_func_accept=no
12616 rm -f conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12619 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12620 echo "${ECHO_T}$ac_cv_func_accept" >&6
12621 if test $ac_cv_func_accept = yes; then
12623 gcj_cv_lib_sockets="-lsocket -lnsl"
12626 unset ac_cv_func_accept
12629 unset ac_cv_func_gethostbyname
12631 LIBS="$LIBS $gcj_cv_lib_sockets"
12632 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12633 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12634 if test "${ac_cv_func_gethostbyname+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 if test x$gcc_no_link = xyes; then
12638 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12640 { (exit 1); exit 1; }; }
12642 cat >conftest.$ac_ext <<_ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12650 #define gethostbyname innocuous_gethostbyname
12652 /* System header to define __stub macros and hopefully few prototypes,
12653 which can conflict with char gethostbyname (); below.
12654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12655 <limits.h> exists even on freestanding compilers. */
12658 # include <limits.h>
12660 # include <assert.h>
12663 #undef gethostbyname
12665 /* Override any gcc2 internal prototype to avoid an error. */
12670 /* We use char because int might match the return type of a gcc2
12671 builtin and then its argument prototype would still apply. */
12672 char gethostbyname ();
12673 /* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12679 char (*f) () = gethostbyname;
12688 return f != gethostbyname;
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695 (eval $ac_link) 2>conftest.er1
12697 grep -v '^ *+' conftest.er1 >conftest.err
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag"
12703 || test ! -s conftest.err'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest$ac_exeext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_cv_func_gethostbyname=yes
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 ac_cv_func_gethostbyname=no
12722 rm -f conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
12725 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12726 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12727 if test $ac_cv_func_gethostbyname = yes; then
12730 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12731 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12732 if test "${ac_cv_lib_nsl_main+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 ac_check_lib_save_LIBS=$LIBS
12737 if test x$gcc_no_link = xyes; then
12738 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12740 { (exit 1); exit 1; }; }
12742 cat >conftest.$ac_ext <<_ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12760 (eval $ac_link) 2>conftest.er1
12762 grep -v '^ *+' conftest.er1 >conftest.err
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } &&
12767 { ac_try='test -z "$ac_c_werror_flag"
12768 || test ! -s conftest.err'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try='test -s conftest$ac_exeext'
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
12780 ac_cv_lib_nsl_main=yes
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 ac_cv_lib_nsl_main=no
12787 rm -f conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext conftest.$ac_ext
12789 LIBS=$ac_check_lib_save_LIBS
12791 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12792 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12793 if test $ac_cv_lib_nsl_main = yes; then
12794 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12799 unset ac_cv_func_gethostbyname
12803 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12804 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12805 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12807 if test "$with_system_zlib" = yes; then
12808 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12809 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12810 if test "${ac_cv_lib_z_deflate+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 ac_check_lib_save_LIBS=$LIBS
12815 if test x$gcc_no_link = xyes; then
12816 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12818 { (exit 1); exit 1; }; }
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12827 /* Override any gcc2 internal prototype to avoid an error. */
12831 /* We use char because int might match the return type of a gcc2
12832 builtin and then its argument prototype would still apply. */
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844 (eval $ac_link) 2>conftest.er1
12846 grep -v '^ *+' conftest.er1 >conftest.err
12848 cat conftest.err >&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -z "$ac_c_werror_flag"
12852 || test ! -s conftest.err'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; } &&
12858 { ac_try='test -s conftest$ac_exeext'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 ac_cv_lib_z_deflate=yes
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 ac_cv_lib_z_deflate=no
12871 rm -f conftest.err conftest.$ac_objext \
12872 conftest$ac_exeext conftest.$ac_ext
12873 LIBS=$ac_check_lib_save_LIBS
12875 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12876 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12877 if test $ac_cv_lib_z_deflate = yes; then
12885 # Test for Gtk stuff, if asked for.
12886 if test "$use_gtk_awt" = yes; then
12890 if test -z "$PKG_CONFIG"; then
12891 # Extract the first word of "pkg-config", so it can be a program name with args.
12892 set dummy pkg-config; ac_word=$2
12893 echo "$as_me:$LINENO: checking for $ac_word" >&5
12894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12895 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 case $PKG_CONFIG in
12900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $PATH
12907 test -z "$as_dir" && as_dir=.
12908 for ac_exec_ext in '' $ac_executable_extensions; do
12909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12923 if test -n "$PKG_CONFIG"; then
12924 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12925 echo "${ECHO_T}$PKG_CONFIG" >&6
12927 echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6
12933 if test "$PKG_CONFIG" = "no" ; then
12934 echo "*** The pkg-config script could not be found. Make sure it is"
12935 echo "*** in your path, or set the PKG_CONFIG environment variable"
12936 echo "*** to the full path to pkg-config."
12937 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12939 PKG_CONFIG_MIN_VERSION=0.9.0
12940 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12941 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12942 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12944 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12945 echo "$as_me:$LINENO: result: yes" >&5
12946 echo "${ECHO_T}yes" >&6
12949 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12950 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12951 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12952 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12953 echo "${ECHO_T}$GTK_CFLAGS" >&6
12955 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12956 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12957 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12958 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12959 echo "${ECHO_T}$GTK_LIBS" >&6
12963 ## If we have a custom action on failure, don't print errors, but
12964 ## do set a variable so people can do so.
12965 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12966 echo $GTK_PKG_ERRORS
12972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12977 if test $succeeded = yes; then
12980 { { 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
12981 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;}
12982 { (exit 1); exit 1; }; }
12991 if test -z "$PKG_CONFIG"; then
12992 # Extract the first word of "pkg-config", so it can be a program name with args.
12993 set dummy pkg-config; ac_word=$2
12994 echo "$as_me:$LINENO: checking for $ac_word" >&5
12995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12996 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 case $PKG_CONFIG in
13001 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13022 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13024 if test -n "$PKG_CONFIG"; then
13025 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13026 echo "${ECHO_T}$PKG_CONFIG" >&6
13028 echo "$as_me:$LINENO: result: no" >&5
13029 echo "${ECHO_T}no" >&6
13034 if test "$PKG_CONFIG" = "no" ; then
13035 echo "*** The pkg-config script could not be found. Make sure it is"
13036 echo "*** in your path, or set the PKG_CONFIG environment variable"
13037 echo "*** to the full path to pkg-config."
13038 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13040 PKG_CONFIG_MIN_VERSION=0.9.0
13041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13042 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13043 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13045 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13046 echo "$as_me:$LINENO: result: yes" >&5
13047 echo "${ECHO_T}yes" >&6
13050 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13051 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13052 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13053 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13054 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13056 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13057 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13058 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13059 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13060 echo "${ECHO_T}$GLIB_LIBS" >&6
13064 ## If we have a custom action on failure, don't print errors, but
13065 ## do set a variable so people can do so.
13066 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13067 echo $GLIB_PKG_ERRORS
13073 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13074 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13078 if test $succeeded = yes; then
13081 { { 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
13082 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;}
13083 { (exit 1); exit 1; }; }
13092 if test -z "$PKG_CONFIG"; then
13093 # Extract the first word of "pkg-config", so it can be a program name with args.
13094 set dummy pkg-config; ac_word=$2
13095 echo "$as_me:$LINENO: checking for $ac_word" >&5
13096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 case $PKG_CONFIG in
13102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13125 if test -n "$PKG_CONFIG"; then
13126 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13127 echo "${ECHO_T}$PKG_CONFIG" >&6
13129 echo "$as_me:$LINENO: result: no" >&5
13130 echo "${ECHO_T}no" >&6
13135 if test "$PKG_CONFIG" = "no" ; then
13136 echo "*** The pkg-config script could not be found. Make sure it is"
13137 echo "*** in your path, or set the PKG_CONFIG environment variable"
13138 echo "*** to the full path to pkg-config."
13139 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13141 PKG_CONFIG_MIN_VERSION=0.9.0
13142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13143 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13144 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13146 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13147 echo "$as_me:$LINENO: result: yes" >&5
13148 echo "${ECHO_T}yes" >&6
13151 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13152 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13153 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13154 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13155 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13157 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13158 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13159 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13160 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13161 echo "${ECHO_T}$LIBART_LIBS" >&6
13165 ## If we have a custom action on failure, don't print errors, but
13166 ## do set a variable so people can do so.
13167 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13168 echo $LIBART_PKG_ERRORS
13174 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13175 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13179 if test $succeeded = yes; then
13182 { { 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
13183 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;}
13184 { (exit 1); exit 1; }; }
13191 # On Solaris, and maybe other architectures, the Boehm collector
13193 if test "$GC" = boehm; then
13194 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13195 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13196 if test "${ac_cv_lib_dl_main+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 ac_check_lib_save_LIBS=$LIBS
13201 if test x$gcc_no_link = xyes; then
13202 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13203 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13204 { (exit 1); exit 1; }; }
13206 cat >conftest.$ac_ext <<_ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13222 rm -f conftest.$ac_objext conftest$ac_exeext
13223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13224 (eval $ac_link) 2>conftest.er1
13226 grep -v '^ *+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag"
13232 || test ! -s conftest.err'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; } &&
13238 { ac_try='test -s conftest$ac_exeext'
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; }; then
13244 ac_cv_lib_dl_main=yes
13246 echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13249 ac_cv_lib_dl_main=no
13251 rm -f conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
13253 LIBS=$ac_check_lib_save_LIBS
13255 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13256 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13257 if test $ac_cv_lib_dl_main = yes; then
13258 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13265 if test "$supply_backtrace" = yes; then
13266 SUPPLY_BACKTRACE_TRUE=
13267 SUPPLY_BACKTRACE_FALSE='#'
13269 SUPPLY_BACKTRACE_TRUE='#'
13270 SUPPLY_BACKTRACE_FALSE=
13274 if test -z "${with_multisubdir}"; then
13277 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13282 # Which gcj do we use?
13284 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13285 if test -n "${with_cross_host}"; then
13286 # We are being configured with a cross compiler. We can't
13287 # use ac_exeext, because that is for the target platform.
13290 case "${with_cross_host}" in
13291 *mingw* | *cygwin*)
13292 cross_host_exeext=.exe
13295 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13296 if test x"$build_noncanonical" = x"$with_cross_host"; then
13297 # Ordinary cross (host!=target and host=build)
13300 # Canadian cross (host!=target and host!=build)
13307 # We are being configured with a native or crossed-native compiler
13308 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13309 if test x"$build" = x"$host"; then
13310 # True native build (host=target and host=build)
13313 # Crossed-native build (host=target and host!=build)
13320 case "${which_gcj}" in
13322 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13323 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13324 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13327 if test "x${with_newlib}" = "xyes"; then
13328 # FIXME (comment): Why is this needed?
13329 GCC_UNWIND_INCLUDE=
13330 GCJ="${target_noncanonical}-gcj"
13332 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13335 GCJH='$(target_noncanonical)-gcjh'
13338 GCJ="gcj -B`${PWDCMD-pwd}`/"
13339 ## In this case, gcj is found outside the build tree. However, zip is
13340 ## found in the build tree.
13341 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13349 # Create it, so that compile/link tests don't fail
13350 test -f libgcj.spec || touch libgcj.spec
13352 # We must search the source tree for java.lang, since we still don't
13353 # have libgcj.jar nor java/lang/*.class
13354 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13355 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13357 # Since some classes depend on this one, we need its source available
13358 # before we can do any GCJ compilation test :-(
13359 if test ! -f gnu/classpath/Configuration.java; then
13360 test -d gnu || mkdir gnu
13361 test -d gnu/classpath || mkdir gnu/classpath
13362 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13363 -e 's,@TOOLKIT@,$TOOLKIT,' \
13364 < $srcdir/gnu/classpath/Configuration.java.in \
13365 > gnu/classpath/Configuration.java
13366 # We do not want to redirect the output of the grep below to /dev/null,
13367 # but we add /dev/null to the input list so that grep will print the
13368 # filename of Configuration.java in case it finds any matches.
13369 if grep @ gnu/classpath/Configuration.java /dev/null; then
13370 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13371 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13372 { (exit 1); exit 1; }; }
13376 if test -n "$ac_tool_prefix"; then
13377 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13378 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13379 echo "$as_me:$LINENO: checking for $ac_word" >&5
13380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13381 if test "${ac_cv_prog_GCJ+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 if test -n "$GCJ"; then
13385 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 GCJ=$ac_cv_prog_GCJ
13404 if test -n "$GCJ"; then
13405 echo "$as_me:$LINENO: result: $GCJ" >&5
13406 echo "${ECHO_T}$GCJ" >&6
13408 echo "$as_me:$LINENO: result: no" >&5
13409 echo "${ECHO_T}no" >&6
13413 if test -z "$ac_cv_prog_GCJ"; then
13415 # Extract the first word of "gcj", so it can be a program name with args.
13416 set dummy gcj; ac_word=$2
13417 echo "$as_me:$LINENO: checking for $ac_word" >&5
13418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13419 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 if test -n "$ac_ct_GCJ"; then
13423 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432 ac_cv_prog_ac_ct_GCJ="gcj"
13433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13439 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13442 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13443 if test -n "$ac_ct_GCJ"; then
13444 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13445 echo "${ECHO_T}$ac_ct_GCJ" >&6
13447 echo "$as_me:$LINENO: result: no" >&5
13448 echo "${ECHO_T}no" >&6
13453 GCJ="$ac_cv_prog_GCJ"
13456 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13461 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13463 echo "$as_me:$LINENO: checking size of void *" >&5
13464 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13465 if test "${ac_cv_sizeof_void_p+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 #include "confdefs.h"
13476 #include <sys/types.h>
13482 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489 (eval $ac_compile) 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag"
13497 || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_sizeof_void_p=$ac_size
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13516 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13521 if test x$ac_cv_sizeof_void_p = x ; then
13522 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13523 echo "$as_me: error: cannot determine a size for void *" >&2;}
13524 { (exit 1); exit 1; }; }
13526 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13527 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13529 cat >>confdefs.h <<_ACEOF
13530 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13539 if test -z "$ZLIBSPEC"; then
13540 # Use zlib from the GCC tree.
13541 ZINCS='-I$(top_srcdir)/../zlib'
13542 ZLIBS=../zlib/libzgcj_convenience.la
13545 SYS_ZLIBS="$ZLIBSPEC"
13557 if test "$NATIVE" = yes; then
13567 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13568 NEEDS_DATA_START_TRUE=
13569 NEEDS_DATA_START_FALSE='#'
13571 NEEDS_DATA_START_TRUE='#'
13572 NEEDS_DATA_START_FALSE=
13577 # Process the option "--enable-version-specific-runtime-libs"
13578 # Calculate toolexeclibdir
13579 case ${version_specific_libs} in
13581 # Need the gcc compiler version to know where to install libraries
13582 # and header files if --enable-version-specific-runtime-libs option
13584 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
13585 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13586 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
13587 toolexeclibdir=$toolexecmainlibdir
13590 if test -n "$with_cross_host" &&
13591 test x"$with_cross_host" != x"no"; then
13592 # Install a library built with a cross compiler in tooldir, not libdir.
13593 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13594 toolexecmainlibdir='$(toolexecdir)/lib'
13596 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13597 toolexecmainlibdir='$(libdir)'
13599 multi_os_directory=`$CC -print-multi-os-directory`
13600 case $multi_os_directory in
13601 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13602 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13610 # Determine gcj version number.
13611 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13612 GCJVERSION=$gcjversion
13615 cat >>confdefs.h <<_ACEOF
13616 #define GCJVERSION "$GCJVERSION"
13620 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13621 # On that system, sys/ioctl.h will not include sys/filio.h unless
13622 # BSD_COMP is defined; just including sys/filio.h is simpler.
13642 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
13644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13646 echo "$as_me:$LINENO: checking for $ac_header" >&5
13647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13654 # Is the header compilable?
13655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13664 #include <$ac_header>
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 ac_header_compiler=yes
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 ac_header_compiler=no
13695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13697 echo "${ECHO_T}$ac_header_compiler" >&6
13699 # Is the header present?
13700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13702 cat >conftest.$ac_ext <<_ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h. */
13708 #include <$ac_header>
13710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13713 grep -v '^ *+' conftest.er1 >conftest.err
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } >/dev/null; then
13718 if test -s conftest.err; then
13719 ac_cpp_err=$ac_c_preproc_warn_flag
13720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13727 if test -z "$ac_cpp_err"; then
13728 ac_header_preproc=yes
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13733 ac_header_preproc=no
13735 rm -f conftest.err conftest.$ac_ext
13736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13737 echo "${ECHO_T}$ac_header_preproc" >&6
13739 # So? What about this header?
13740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13746 ac_header_preproc=yes
13749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13763 ## ---------------------------------- ##
13764 ## Report this to the libjava lists. ##
13765 ## ---------------------------------- ##
13768 sed "s/^/$as_me: WARNING: /" >&2
13771 echo "$as_me:$LINENO: checking for $ac_header" >&5
13772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 eval "$as_ac_Header=\$ac_header_preproc"
13778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13783 cat >>confdefs.h <<_ACEOF
13784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13791 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13792 # for now. If you change this, you also must update natFile.cc.
13794 for ac_header in dirent.h
13796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13798 echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13806 # Is the header compilable?
13807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 $ac_includes_default
13816 #include <$ac_header>
13818 rm -f conftest.$ac_objext
13819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13820 (eval $ac_compile) 2>conftest.er1
13822 grep -v '^ *+' conftest.er1 >conftest.err
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
13827 { ac_try='test -z "$ac_c_werror_flag"
13828 || test ! -s conftest.err'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest.$ac_objext'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_header_compiler=yes
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13845 ac_header_compiler=no
13847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13849 echo "${ECHO_T}$ac_header_compiler" >&6
13851 # Is the header present?
13852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 #include <$ac_header>
13862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13865 grep -v '^ *+' conftest.er1 >conftest.err
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } >/dev/null; then
13870 if test -s conftest.err; then
13871 ac_cpp_err=$ac_c_preproc_warn_flag
13872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13879 if test -z "$ac_cpp_err"; then
13880 ac_header_preproc=yes
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ac_header_preproc=no
13887 rm -f conftest.err conftest.$ac_ext
13888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13889 echo "${ECHO_T}$ac_header_preproc" >&6
13891 # So? What about this header?
13892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13898 ac_header_preproc=yes
13901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13915 ## ---------------------------------- ##
13916 ## Report this to the libjava lists. ##
13917 ## ---------------------------------- ##
13920 sed "s/^/$as_me: WARNING: /" >&2
13923 echo "$as_me:$LINENO: checking for $ac_header" >&5
13924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 eval "$as_ac_Header=\$ac_header_preproc"
13930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13935 cat >>confdefs.h <<_ACEOF
13936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13944 for ac_header in inttypes.h
13946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13948 echo "$as_me:$LINENO: checking for $ac_header" >&5
13949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13956 # Is the header compilable?
13957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13959 cat >conftest.$ac_ext <<_ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 $ac_includes_default
13966 #include <$ac_header>
13968 rm -f conftest.$ac_objext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970 (eval $ac_compile) 2>conftest.er1
13972 grep -v '^ *+' conftest.er1 >conftest.err
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest.$ac_objext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_header_compiler=yes
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13995 ac_header_compiler=no
13997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13999 echo "${ECHO_T}$ac_header_compiler" >&6
14001 # Is the header present?
14002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 #include <$ac_header>
14012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14015 grep -v '^ *+' conftest.er1 >conftest.err
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } >/dev/null; then
14020 if test -s conftest.err; then
14021 ac_cpp_err=$ac_c_preproc_warn_flag
14022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14029 if test -z "$ac_cpp_err"; then
14030 ac_header_preproc=yes
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 ac_header_preproc=no
14037 rm -f conftest.err conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14039 echo "${ECHO_T}$ac_header_preproc" >&6
14041 # So? What about this header?
14042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14048 ac_header_preproc=yes
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14065 ## ---------------------------------- ##
14066 ## Report this to the libjava lists. ##
14067 ## ---------------------------------- ##
14070 sed "s/^/$as_me: WARNING: /" >&2
14073 echo "$as_me:$LINENO: checking for $ac_header" >&5
14074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 eval "$as_ac_Header=\$ac_header_preproc"
14080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14085 cat >>confdefs.h <<_ACEOF
14086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_INTTYPES_H 1
14095 cat >>confdefs.h <<\_ACEOF
14096 #define JV_HAVE_INTTYPES_H 1
14104 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14105 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14106 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 cat >conftest.$ac_ext <<_ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 #include <sys/types.h>
14116 #include <sys/wait.h>
14117 #ifndef WEXITSTATUS
14118 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14121 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14129 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14134 rm -f conftest.$ac_objext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14136 (eval $ac_compile) 2>conftest.er1
14138 grep -v '^ *+' conftest.er1 >conftest.err
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
14143 { ac_try='test -z "$ac_c_werror_flag"
14144 || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest.$ac_objext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_header_sys_wait_h=yes
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_cv_header_sys_wait_h=no
14163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14165 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14166 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14167 if test $ac_cv_header_sys_wait_h = yes; then
14169 cat >>confdefs.h <<\_ACEOF
14170 #define HAVE_SYS_WAIT_H 1
14176 echo "$as_me:$LINENO: checking for ssize_t" >&5
14177 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14178 if test "${ac_cv_type_ssize_t+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 cat >conftest.$ac_ext <<_ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187 $ac_includes_default
14193 if (sizeof (ssize_t))
14199 rm -f conftest.$ac_objext
14200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14201 (eval $ac_compile) 2>conftest.er1
14203 grep -v '^ *+' conftest.er1 >conftest.err
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag"
14209 || test ! -s conftest.err'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; } &&
14215 { ac_try='test -s conftest.$ac_objext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 ac_cv_type_ssize_t=yes
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14226 ac_cv_type_ssize_t=no
14228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14230 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14231 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14232 if test $ac_cv_type_ssize_t = yes; then
14236 cat >>confdefs.h <<_ACEOF
14237 #define ssize_t int
14243 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14244 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14245 cat >conftest.$ac_ext <<_ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14251 #include <sys/types.h>
14253 #include <stdlib.h>
14254 #include <stddef.h>
14256 #if HAVE_NETINET_IN_H
14257 #include <netinet/in.h>
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag"
14277 || test ! -s conftest.err'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14290 cat >>confdefs.h <<\_ACEOF
14291 #define HAVE_IN_ADDR_T 1
14294 echo "$as_me:$LINENO: result: yes" >&5
14295 echo "${ECHO_T}yes" >&6
14297 echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 echo "$as_me:$LINENO: result: no" >&5
14301 echo "${ECHO_T}no" >&6
14303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14305 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14306 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14307 cat >conftest.$ac_ext <<_ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 #include <netinet/in.h>
14317 struct ip_mreq mreq;
14322 rm -f conftest.$ac_objext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14324 (eval $ac_compile) 2>conftest.er1
14326 grep -v '^ *+' conftest.er1 >conftest.err
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -z "$ac_c_werror_flag"
14332 || test ! -s conftest.err'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try='test -s conftest.$ac_objext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14345 cat >>confdefs.h <<\_ACEOF
14346 #define HAVE_STRUCT_IP_MREQ 1
14349 echo "$as_me:$LINENO: result: yes" >&5
14350 echo "${ECHO_T}yes" >&6
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14355 echo "$as_me:$LINENO: result: no" >&5
14356 echo "${ECHO_T}no" >&6
14358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14360 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14361 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14362 cat >conftest.$ac_ext <<_ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 #include <netinet/in.h>
14372 struct ipv6_mreq mreq6;
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379 (eval $ac_compile) 2>conftest.er1
14381 grep -v '^ *+' conftest.er1 >conftest.err
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
14386 { ac_try='test -z "$ac_c_werror_flag"
14387 || test ! -s conftest.err'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest.$ac_objext'
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14400 cat >>confdefs.h <<\_ACEOF
14401 #define HAVE_STRUCT_IPV6_MREQ 1
14404 echo "$as_me:$LINENO: result: yes" >&5
14405 echo "${ECHO_T}yes" >&6
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 echo "$as_me:$LINENO: result: no" >&5
14411 echo "${ECHO_T}no" >&6
14413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14415 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14416 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14417 cat >conftest.$ac_ext <<_ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 #include <netinet/in.h>
14427 struct sockaddr_in6 addr6;
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434 (eval $ac_compile) 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14455 cat >>confdefs.h <<\_ACEOF
14456 #define HAVE_INET6 1
14459 echo "$as_me:$LINENO: result: yes" >&5
14460 echo "${ECHO_T}yes" >&6
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 echo "$as_me:$LINENO: result: no" >&5
14466 echo "${ECHO_T}no" >&6
14468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14471 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #define _POSIX_PII_SOCKET
14479 #include <sys/types.h>
14480 #include <sys/socket.h>
14489 rm -f conftest.$ac_objext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14491 (eval $ac_compile) 2>conftest.er1
14493 grep -v '^ *+' conftest.er1 >conftest.err
14495 cat conftest.err >&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
14498 { ac_try='test -z "$ac_c_werror_flag"
14499 || test ! -s conftest.err'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; } &&
14505 { ac_try='test -s conftest.$ac_objext'
14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507 (eval $ac_try) 2>&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14512 cat >>confdefs.h <<\_ACEOF
14513 #define HAVE_SOCKLEN_T 1
14516 echo "$as_me:$LINENO: result: yes" >&5
14517 echo "${ECHO_T}yes" >&6
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14522 echo "$as_me:$LINENO: result: no" >&5
14523 echo "${ECHO_T}no" >&6
14525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14527 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14528 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14539 struct tm tim; tim.tm_gmtoff = 0;
14544 rm -f conftest.$ac_objext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546 (eval $ac_compile) 2>conftest.er1
14548 grep -v '^ *+' conftest.er1 >conftest.err
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try='test -z "$ac_c_werror_flag"
14554 || test ! -s conftest.err'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest.$ac_objext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14567 cat >>confdefs.h <<\_ACEOF
14568 #define STRUCT_TM_HAS_GMTOFF 1
14571 echo "$as_me:$LINENO: result: yes" >&5
14572 echo "${ECHO_T}yes" >&6
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 echo "$as_me:$LINENO: result: no" >&5
14578 echo "${ECHO_T}no" >&6
14579 echo "$as_me:$LINENO: checking for global timezone variable" >&5
14580 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14591 void i(){long z2 = 2*timezone;}
14596 rm -f conftest.$ac_objext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14598 (eval $ac_compile) 2>conftest.er1
14600 grep -v '^ *+' conftest.er1 >conftest.err
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_c_werror_flag"
14606 || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest.$ac_objext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14619 cat >>confdefs.h <<\_ACEOF
14620 #define HAVE_TIMEZONE 1
14623 echo "$as_me:$LINENO: result: yes" >&5
14624 echo "${ECHO_T}yes" >&6
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 echo "$as_me:$LINENO: result: no" >&5
14630 echo "${ECHO_T}no" >&6
14631 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14632 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14633 cat >conftest.$ac_ext <<_ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14643 long z2 = _timezone;
14648 rm -f conftest.$ac_objext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650 (eval $ac_compile) 2>conftest.er1
14652 grep -v '^ *+' conftest.er1 >conftest.err
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag"
14658 || test ! -s conftest.err'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14671 cat >>confdefs.h <<\_ACEOF
14672 #define HAVE_UNDERSCORE_TIMEZONE 1
14675 echo "$as_me:$LINENO: result: yes" >&5
14676 echo "${ECHO_T}yes" >&6
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 echo "$as_me:$LINENO: result: no" >&5
14682 echo "${ECHO_T}no" >&6
14684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14690 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14691 # for constant arguments. Useless!
14692 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14693 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14694 if test "${ac_cv_working_alloca_h+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 if test x$gcc_no_link = xyes; then
14698 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14699 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14700 { (exit 1); exit 1; }; }
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 #include <alloca.h>
14712 char *p = (char *) alloca (2 * sizeof (int));
14717 rm -f conftest.$ac_objext conftest$ac_exeext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14719 (eval $ac_link) 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag"
14727 || test ! -s conftest.err'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest$ac_exeext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_cv_working_alloca_h=yes
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_cv_working_alloca_h=no
14746 rm -f conftest.err conftest.$ac_objext \
14747 conftest$ac_exeext conftest.$ac_ext
14749 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14750 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14751 if test $ac_cv_working_alloca_h = yes; then
14753 cat >>confdefs.h <<\_ACEOF
14754 #define HAVE_ALLOCA_H 1
14759 echo "$as_me:$LINENO: checking for alloca" >&5
14760 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14761 if test "${ac_cv_func_alloca_works+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 if test x$gcc_no_link = xyes; then
14765 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14766 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14767 { (exit 1); exit 1; }; }
14769 cat >conftest.$ac_ext <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14776 # define alloca __builtin_alloca
14779 # include <malloc.h>
14780 # define alloca _alloca
14783 # include <alloca.h>
14788 # ifndef alloca /* predefined by HP cc +Olibcalls */
14799 char *p = (char *) alloca (1);
14804 rm -f conftest.$ac_objext conftest$ac_exeext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14806 (eval $ac_link) 2>conftest.er1
14808 grep -v '^ *+' conftest.er1 >conftest.err
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -z "$ac_c_werror_flag"
14814 || test ! -s conftest.err'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest$ac_exeext'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 ac_cv_func_alloca_works=yes
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 ac_cv_func_alloca_works=no
14833 rm -f conftest.err conftest.$ac_objext \
14834 conftest$ac_exeext conftest.$ac_ext
14836 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14837 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14839 if test $ac_cv_func_alloca_works = yes; then
14841 cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_ALLOCA 1
14846 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14847 # that cause trouble. Some versions do not even contain alloca or
14848 # contain a buggy version. If you still want to use their alloca,
14849 # use ar to extract alloca.o from them instead of compiling alloca.c.
14851 ALLOCA=alloca.$ac_objext
14853 cat >>confdefs.h <<\_ACEOF
14858 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14859 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14860 if test "${ac_cv_os_cray+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 #if defined(CRAY) && ! defined(CRAY2)
14876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14877 $EGREP "webecray" >/dev/null 2>&1; then
14885 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14886 echo "${ECHO_T}$ac_cv_os_cray" >&6
14887 if test $ac_cv_os_cray = yes; then
14888 for ac_func in _getb67 GETB67 getb67; do
14889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14890 echo "$as_me:$LINENO: checking for $ac_func" >&5
14891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14892 if eval "test \"\${$as_ac_var+set}\" = set"; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 if test x$gcc_no_link = xyes; then
14896 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14897 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14898 { (exit 1); exit 1; }; }
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14908 #define $ac_func innocuous_$ac_func
14910 /* System header to define __stub macros and hopefully few prototypes,
14911 which can conflict with char $ac_func (); below.
14912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14913 <limits.h> exists even on freestanding compilers. */
14916 # include <limits.h>
14918 # include <assert.h>
14923 /* Override any gcc2 internal prototype to avoid an error. */
14928 /* We use char because int might match the return type of a gcc2
14929 builtin and then its argument prototype would still apply. */
14931 /* The GNU C library defines this for functions which it implements
14932 to always fail with ENOSYS. Some functions are actually named
14933 something starting with __ and the normal name is an alias. */
14934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14937 char (*f) () = $ac_func;
14946 return f != $ac_func;
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>conftest.er1
14955 grep -v '^ *+' conftest.er1 >conftest.err
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
14960 { ac_try='test -z "$ac_c_werror_flag"
14961 || test ! -s conftest.err'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest$ac_exeext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 eval "$as_ac_var=yes"
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 eval "$as_ac_var=no"
14980 rm -f conftest.err conftest.$ac_objext \
14981 conftest$ac_exeext conftest.$ac_ext
14983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14985 if test `eval echo '${'$as_ac_var'}'` = yes; then
14987 cat >>confdefs.h <<_ACEOF
14988 #define CRAY_STACKSEG_END $ac_func
14997 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14998 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14999 if test "${ac_cv_c_stack_direction+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 if test "$cross_compiling" = yes; then
15003 ac_cv_c_stack_direction=0
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15012 find_stack_direction ()
15014 static char *addr = 0;
15019 return find_stack_direction ();
15022 return (&dummy > addr) ? 1 : -1;
15028 exit (find_stack_direction () < 0);
15031 rm -f conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_c_stack_direction=1
15044 echo "$as_me: program exited with status $ac_status" >&5
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ( exit $ac_status )
15049 ac_cv_c_stack_direction=-1
15051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15054 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15055 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15057 cat >>confdefs.h <<_ACEOF
15058 #define STACK_DIRECTION $ac_cv_c_stack_direction
15064 if test x$gcc_no_link = xyes; then
15065 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15066 ac_cv_func_mmap_fixed_mapped=no
15069 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15072 for ac_header in stdlib.h unistd.h
15074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15076 echo "$as_me:$LINENO: checking for $ac_header" >&5
15077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15084 # Is the header compilable?
15085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15087 cat >conftest.$ac_ext <<_ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15093 $ac_includes_default
15094 #include <$ac_header>
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098 (eval $ac_compile) 2>conftest.er1
15100 grep -v '^ *+' conftest.er1 >conftest.err
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
15105 { ac_try='test -z "$ac_c_werror_flag"
15106 || test ! -s conftest.err'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest.$ac_objext'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15118 ac_header_compiler=yes
15120 echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15123 ac_header_compiler=no
15125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15127 echo "${ECHO_T}$ac_header_compiler" >&6
15129 # Is the header present?
15130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15132 cat >conftest.$ac_ext <<_ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15138 #include <$ac_header>
15140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } >/dev/null; then
15148 if test -s conftest.err; then
15149 ac_cpp_err=$ac_c_preproc_warn_flag
15150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15157 if test -z "$ac_cpp_err"; then
15158 ac_header_preproc=yes
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_header_preproc=no
15165 rm -f conftest.err conftest.$ac_ext
15166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15167 echo "${ECHO_T}$ac_header_preproc" >&6
15169 # So? What about this header?
15170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15176 ac_header_preproc=yes
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15193 ## ---------------------------------- ##
15194 ## Report this to the libjava lists. ##
15195 ## ---------------------------------- ##
15198 sed "s/^/$as_me: WARNING: /" >&2
15201 echo "$as_me:$LINENO: checking for $ac_header" >&5
15202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 eval "$as_ac_Header=\$ac_header_preproc"
15208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15213 cat >>confdefs.h <<_ACEOF
15214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15222 for ac_func in getpagesize
15224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15225 echo "$as_me:$LINENO: checking for $ac_func" >&5
15226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15227 if eval "test \"\${$as_ac_var+set}\" = set"; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15230 if test x$gcc_no_link = xyes; then
15231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15233 { (exit 1); exit 1; }; }
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15243 #define $ac_func innocuous_$ac_func
15245 /* System header to define __stub macros and hopefully few prototypes,
15246 which can conflict with char $ac_func (); below.
15247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15248 <limits.h> exists even on freestanding compilers. */
15251 # include <limits.h>
15253 # include <assert.h>
15258 /* Override any gcc2 internal prototype to avoid an error. */
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15266 /* The GNU C library defines this for functions which it implements
15267 to always fail with ENOSYS. Some functions are actually named
15268 something starting with __ and the normal name is an alias. */
15269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15272 char (*f) () = $ac_func;
15281 return f != $ac_func;
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15288 (eval $ac_link) 2>conftest.er1
15290 grep -v '^ *+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -z "$ac_c_werror_flag"
15296 || test ! -s conftest.err'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest$ac_exeext'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 eval "$as_ac_var=yes"
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 eval "$as_ac_var=no"
15315 rm -f conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
15318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15320 if test `eval echo '${'$as_ac_var'}'` = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15328 echo "$as_me:$LINENO: checking for working mmap" >&5
15329 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15330 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 if test "$cross_compiling" = yes; then
15334 ac_cv_func_mmap_fixed_mapped=no
15336 cat >conftest.$ac_ext <<_ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15342 $ac_includes_default
15343 /* malloc might have been renamed as rpl_malloc. */
15346 /* Thanks to Mike Haertel and Jim Avera for this test.
15347 Here is a matrix of mmap possibilities:
15348 mmap private not fixed
15349 mmap private fixed at somewhere currently unmapped
15350 mmap private fixed at somewhere already mapped
15351 mmap shared not fixed
15352 mmap shared fixed at somewhere currently unmapped
15353 mmap shared fixed at somewhere already mapped
15354 For private mappings, we should verify that changes cannot be read()
15355 back from the file, nor mmap's back from the file at a different
15356 address. (There have been systems where private was not correctly
15357 implemented like the infamous i386 svr4.0, and systems where the
15358 VM page cache was not coherent with the file system buffer cache
15359 like early versions of FreeBSD and possibly contemporary NetBSD.)
15360 For shared mappings, we should conversely verify that changes get
15361 propagated back to all the places they're supposed to be.
15363 Grep wants private fixed already mapped.
15364 The main things grep needs to know about mmap are:
15365 * does it exist and is it safe to write into the mmap'd area
15366 * how to use it (BSD variants) */
15369 #include <sys/mman.h>
15371 #if !STDC_HEADERS && !HAVE_STDLIB_H
15375 /* This mess was copied from the GNU getpagesize.h. */
15376 #if !HAVE_GETPAGESIZE
15377 /* Assume that all systems that can run configure have sys/param.h. */
15378 # if !HAVE_SYS_PARAM_H
15379 # define HAVE_SYS_PARAM_H 1
15382 # ifdef _SC_PAGESIZE
15383 # define getpagesize() sysconf(_SC_PAGESIZE)
15384 # else /* no _SC_PAGESIZE */
15385 # if HAVE_SYS_PARAM_H
15386 # include <sys/param.h>
15387 # ifdef EXEC_PAGESIZE
15388 # define getpagesize() EXEC_PAGESIZE
15389 # else /* no EXEC_PAGESIZE */
15391 # define getpagesize() NBPG * CLSIZE
15394 # endif /* no CLSIZE */
15395 # else /* no NBPG */
15397 # define getpagesize() NBPC
15398 # else /* no NBPC */
15400 # define getpagesize() PAGESIZE
15401 # endif /* PAGESIZE */
15402 # endif /* no NBPC */
15403 # endif /* no NBPG */
15404 # endif /* no EXEC_PAGESIZE */
15405 # else /* no HAVE_SYS_PARAM_H */
15406 # define getpagesize() 8192 /* punt totally */
15407 # endif /* no HAVE_SYS_PARAM_H */
15408 # endif /* no _SC_PAGESIZE */
15410 #endif /* no HAVE_GETPAGESIZE */
15415 char *data, *data2, *data3;
15419 pagesize = getpagesize ();
15421 /* First, make a file with some known garbage in it. */
15422 data = (char *) malloc (pagesize);
15425 for (i = 0; i < pagesize; ++i)
15426 *(data + i) = rand ();
15428 fd = creat ("conftest.mmap", 0600);
15431 if (write (fd, data, pagesize) != pagesize)
15435 /* Next, try to mmap the file at a fixed address which already has
15436 something else allocated at it. If we can, also make sure that
15437 we see the same garbage. */
15438 fd = open ("conftest.mmap", O_RDWR);
15441 data2 = (char *) malloc (2 * pagesize);
15444 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15445 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15446 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15448 for (i = 0; i < pagesize; ++i)
15449 if (*(data + i) != *(data2 + i))
15452 /* Finally, make sure that changes to the mapped area do not
15453 percolate back to the file as seen by read(). (This is a bug on
15454 some variants of i386 svr4.0.) */
15455 for (i = 0; i < pagesize; ++i)
15456 *(data2 + i) = *(data2 + i) + 1;
15457 data3 = (char *) malloc (pagesize);
15460 if (read (fd, data3, pagesize) != pagesize)
15462 for (i = 0; i < pagesize; ++i)
15463 if (*(data + i) != *(data3 + i))
15469 rm -f conftest$ac_exeext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15471 (eval $ac_link) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 ac_cv_func_mmap_fixed_mapped=yes
15482 echo "$as_me: program exited with status $ac_status" >&5
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ( exit $ac_status )
15487 ac_cv_func_mmap_fixed_mapped=no
15489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15492 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15493 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15494 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15496 cat >>confdefs.h <<\_ACEOF
15497 #define HAVE_MMAP 1
15501 rm -f conftest.mmap
15505 for ac_prog in perl
15507 # Extract the first word of "$ac_prog", so it can be a program name with args.
15508 set dummy $ac_prog; ac_word=$2
15509 echo "$as_me:$LINENO: checking for $ac_word" >&5
15510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15511 if test "${ac_cv_prog_PERL+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 if test -n "$PERL"; then
15515 ac_cv_prog_PERL="$PERL" # Let the user override the test.
15517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15518 for as_dir in $PATH
15521 test -z "$as_dir" && as_dir=.
15522 for ac_exec_ext in '' $ac_executable_extensions; do
15523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15524 ac_cv_prog_PERL="$ac_prog"
15525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15533 PERL=$ac_cv_prog_PERL
15534 if test -n "$PERL"; then
15535 echo "$as_me:$LINENO: result: $PERL" >&5
15536 echo "${ECHO_T}$PERL" >&6
15538 echo "$as_me:$LINENO: result: no" >&5
15539 echo "${ECHO_T}no" >&6
15542 test -n "$PERL" && break
15544 test -n "$PERL" || PERL="false"
15548 SIGNAL_HANDLER_AUX=
15552 SIGNAL_HANDLER=include/i386-signal.h
15554 sparc*-sun-solaris*)
15555 SIGNAL_HANDLER=include/sparc-signal.h
15558 # SYSDEP_SOURCES=sysdep/ia64.c
15559 # test -d sysdep || mkdir sysdep
15562 SIGNAL_HANDLER=include/pa-signal.h
15565 SIGNAL_HANDLER=include/dwarf2-signal.h
15568 SIGNAL_HANDLER=include/powerpc-signal.h
15571 SIGNAL_HANDLER=include/dwarf2-signal.h
15574 SIGNAL_HANDLER=include/s390-signal.h
15577 SIGNAL_HANDLER=include/x86_64-signal.h
15578 SIGNAL_HANDLER_AUX=include/i386-signal.h
15581 SIGNAL_HANDLER=include/dwarf2-signal.h
15583 sh-*-linux* | sh[34]*-*-linux*)
15584 SIGNAL_HANDLER=include/dwarf2-signal.h
15587 SIGNAL_HANDLER=include/win32-signal.h
15590 SIGNAL_HANDLER=include/mips-signal.h
15593 SIGNAL_HANDLER=include/darwin-signal.h
15596 SIGNAL_HANDLER=include/default-signal.h
15600 # If we're using sjlj exceptions, forget what we just learned.
15601 if test "$enable_sjlj_exceptions" = yes; then
15602 SIGNAL_HANDLER=include/default-signal.h
15603 SIGNAL_HANDLER_AUX=
15606 # Define here any compiler flags that you need in order to make backtrace() work.
15609 x86_64*-*-linux*|i?86-*)
15610 BACKTRACESPEC=-fno-omit-frame-pointer
15617 if test -z "$SIGNAL_HANDLER_AUX"; then
15618 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15621 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15624 if test "${multilib}" = "yes"; then
15625 multilib_arg="--enable-multilib"
15632 here=`${PWDCMD-pwd}`
15635 # We get this from the environment.
15638 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
15641 ac_config_commands="$ac_config_commands default"
15644 cat >confcache <<\_ACEOF
15645 # This file is a shell script that caches the results of configure
15646 # tests run on this system so they can be shared between configure
15647 # scripts and configure runs, see configure's option --config-cache.
15648 # It is not useful on other systems. If it contains results you don't
15649 # want to keep, you may remove or edit it.
15651 # config.status only pays attention to the cache file if you give it
15652 # the --recheck option to rerun configure.
15654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15656 # following values.
15660 # The following way of writing the cache mishandles newlines in values,
15661 # but we know of no workaround that is simple, portable, and efficient.
15662 # So, don't put newlines in cache variables' values.
15663 # Ultrix sh set writes to stderr and can't be redirected directly,
15664 # and sets the high bit in the cache file unless we assign to the vars.
15667 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15669 # `set' does not quote correctly, so add quotes (double-quote
15670 # substitution turns \\\\ into \\, and sed turns \\ into \).
15673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15676 # `set' quotes correctly as required by POSIX, so do not add quotes.
15678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15689 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15690 if test -w $cache_file; then
15691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15692 cat confcache >$cache_file
15694 echo "not updating unwritable cache $cache_file"
15699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15700 # Let make expand exec_prefix.
15701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15703 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15704 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15705 # trailing colons and then remove the whole line if VPATH becomes empty
15706 # (actually we leave an empty line to preserve line numbers).
15707 if test "x$srcdir" = x.; then
15708 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15709 s/:*\$(srcdir):*/:/;
15710 s/:*\${srcdir}:*/:/;
15712 s/^\([^=]*=[ ]*\):*/\1/;
15718 DEFS=-DHAVE_CONFIG_H
15722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15723 # 1. Remove the extension, and $U if already installed.
15724 ac_i=`echo "$ac_i" |
15725 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15727 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15728 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15730 LIBOBJS=$ac_libobjs
15732 LTLIBOBJS=$ac_ltlibobjs
15735 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15736 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15737 Usually this means the macro was only invoked conditionally." >&5
15738 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15739 Usually this means the macro was only invoked conditionally." >&2;}
15740 { (exit 1); exit 1; }; }
15742 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15743 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15744 Usually this means the macro was only invoked conditionally." >&5
15745 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15746 Usually this means the macro was only invoked conditionally." >&2;}
15747 { (exit 1); exit 1; }; }
15749 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15750 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15751 Usually this means the macro was only invoked conditionally." >&5
15752 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15753 Usually this means the macro was only invoked conditionally." >&2;}
15754 { (exit 1); exit 1; }; }
15756 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15757 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15758 Usually this means the macro was only invoked conditionally." >&5
15759 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15760 Usually this means the macro was only invoked conditionally." >&2;}
15761 { (exit 1); exit 1; }; }
15763 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15764 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15765 Usually this means the macro was only invoked conditionally." >&5
15766 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15767 Usually this means the macro was only invoked conditionally." >&2;}
15768 { (exit 1); exit 1; }; }
15770 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15771 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15772 Usually this means the macro was only invoked conditionally." >&5
15773 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15774 Usually this means the macro was only invoked conditionally." >&2;}
15775 { (exit 1); exit 1; }; }
15777 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15778 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15779 Usually this means the macro was only invoked conditionally." >&5
15780 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15781 Usually this means the macro was only invoked conditionally." >&2;}
15782 { (exit 1); exit 1; }; }
15784 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15785 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15786 Usually this means the macro was only invoked conditionally." >&5
15787 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15788 Usually this means the macro was only invoked conditionally." >&2;}
15789 { (exit 1); exit 1; }; }
15791 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15792 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15793 Usually this means the macro was only invoked conditionally." >&5
15794 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15795 Usually this means the macro was only invoked conditionally." >&2;}
15796 { (exit 1); exit 1; }; }
15798 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15799 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15800 Usually this means the macro was only invoked conditionally." >&5
15801 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15802 Usually this means the macro was only invoked conditionally." >&2;}
15803 { (exit 1); exit 1; }; }
15805 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15806 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15807 Usually this means the macro was only invoked conditionally." >&5
15808 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15809 Usually this means the macro was only invoked conditionally." >&2;}
15810 { (exit 1); exit 1; }; }
15812 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15813 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15814 Usually this means the macro was only invoked conditionally." >&5
15815 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15816 Usually this means the macro was only invoked conditionally." >&2;}
15817 { (exit 1); exit 1; }; }
15819 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15820 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15821 Usually this means the macro was only invoked conditionally." >&5
15822 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15823 Usually this means the macro was only invoked conditionally." >&2;}
15824 { (exit 1); exit 1; }; }
15826 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15827 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15828 Usually this means the macro was only invoked conditionally." >&5
15829 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15830 Usually this means the macro was only invoked conditionally." >&2;}
15831 { (exit 1); exit 1; }; }
15833 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15834 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15835 Usually this means the macro was only invoked conditionally." >&5
15836 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15837 Usually this means the macro was only invoked conditionally." >&2;}
15838 { (exit 1); exit 1; }; }
15840 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15841 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15842 Usually this means the macro was only invoked conditionally." >&5
15843 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15844 Usually this means the macro was only invoked conditionally." >&2;}
15845 { (exit 1); exit 1; }; }
15847 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15848 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15849 Usually this means the macro was only invoked conditionally." >&5
15850 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15851 Usually this means the macro was only invoked conditionally." >&2;}
15852 { (exit 1); exit 1; }; }
15854 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15855 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15856 Usually this means the macro was only invoked conditionally." >&5
15857 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15858 Usually this means the macro was only invoked conditionally." >&2;}
15859 { (exit 1); exit 1; }; }
15861 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15862 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15863 Usually this means the macro was only invoked conditionally." >&5
15864 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15865 Usually this means the macro was only invoked conditionally." >&2;}
15866 { (exit 1); exit 1; }; }
15868 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15869 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15870 Usually this means the macro was only invoked conditionally." >&5
15871 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15872 Usually this means the macro was only invoked conditionally." >&2;}
15873 { (exit 1); exit 1; }; }
15875 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15876 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15877 Usually this means the macro was only invoked conditionally." >&5
15878 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15879 Usually this means the macro was only invoked conditionally." >&2;}
15880 { (exit 1); exit 1; }; }
15882 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15883 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15884 Usually this means the macro was only invoked conditionally." >&5
15885 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
15886 Usually this means the macro was only invoked conditionally." >&2;}
15887 { (exit 1); exit 1; }; }
15890 : ${CONFIG_STATUS=./config.status}
15891 ac_clean_files_save=$ac_clean_files
15892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15893 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15894 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15895 cat >$CONFIG_STATUS <<_ACEOF
15897 # Generated by $as_me.
15898 # Run this file to recreate the current configuration.
15899 # Compiler output produced by configure, useful for debugging
15900 # configure, is in config.log if it exists.
15903 ac_cs_recheck=false
15905 SHELL=\${CONFIG_SHELL-$SHELL}
15908 cat >>$CONFIG_STATUS <<\_ACEOF
15909 ## --------------------- ##
15910 ## M4sh Initialization. ##
15911 ## --------------------- ##
15913 # Be Bourne compatible
15914 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15917 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15918 # is contrary to our usage. Disable this feature.
15919 alias -g '${1+"$@"}'='"$@"'
15920 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15923 DUALCASE=1; export DUALCASE # for MKS sh
15925 # Support unset when possible.
15926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15933 # Work around bugs in pre-3.0 UWIN ksh.
15934 $as_unset ENV MAIL MAILPATH
15941 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15942 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15943 LC_TELEPHONE LC_TIME
15945 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15946 eval $as_var=C; export $as_var
15952 # Required to use basename.
15953 if expr a : '\(a\)' >/dev/null 2>&1; then
15959 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15960 as_basename=basename
15966 # Name of the executable.
15967 as_me=`$as_basename "$0" ||
15968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15969 X"$0" : 'X\(//\)$' \| \
15970 X"$0" : 'X\(/\)$' \| \
15971 . : '\(.\)' 2>/dev/null ||
15973 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15974 /^X\/\(\/\/\)$/{ s//\1/; q; }
15975 /^X\/\(\/\).*/{ s//\1/; q; }
15979 # PATH needs CR, and LINENO needs CR and PATH.
15980 # Avoid depending upon Character Ranges.
15981 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15984 as_cr_digits='0123456789'
15985 as_cr_alnum=$as_cr_Letters$as_cr_digits
15987 # The user is always right.
15988 if test "${PATH_SEPARATOR+set}" != set; then
15989 echo "#! /bin/sh" >conf$$.sh
15990 echo "exit 0" >>conf$$.sh
15992 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16001 as_lineno_1=$LINENO
16002 as_lineno_2=$LINENO
16003 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16004 test "x$as_lineno_1" != "x$as_lineno_2" &&
16005 test "x$as_lineno_3" = "x$as_lineno_2" || {
16006 # Find who we are. Look in the path if we contain no path at all
16009 *[\\/]* ) as_myself=$0 ;;
16010 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011 for as_dir in $PATH
16014 test -z "$as_dir" && as_dir=.
16015 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16020 # We did not find ourselves, most probably we were run as `sh COMMAND'
16021 # in which case we are not to be found in the path.
16022 if test "x$as_myself" = x; then
16025 if test ! -f "$as_myself"; then
16026 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16027 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16028 { (exit 1); exit 1; }; }
16030 case $CONFIG_SHELL in
16032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16033 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16036 test -z "$as_dir" && as_dir=.
16037 for as_base in sh bash ksh sh5; do
16040 if ("$as_dir/$as_base" -c '
16041 as_lineno_1=$LINENO
16042 as_lineno_2=$LINENO
16043 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16044 test "x$as_lineno_1" != "x$as_lineno_2" &&
16045 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16046 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16047 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16048 CONFIG_SHELL=$as_dir/$as_base
16049 export CONFIG_SHELL
16050 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16058 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16059 # uniformly replaced by the line number. The first 'sed' inserts a
16060 # line-number line before each line; the second 'sed' does the real
16061 # work. The second script uses 'N' to pair each line-number line
16062 # with the numbered line, and appends trailing '-' during
16063 # substitution so that $LINENO is not a special case at line end.
16064 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16065 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16066 sed '=' <$as_myself |
16071 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16074 s,^['$as_cr_digits']*\n,,
16075 ' >$as_me.lineno &&
16076 chmod +x $as_me.lineno ||
16077 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16078 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16079 { (exit 1); exit 1; }; }
16081 # Don't try to exec as it changes $[0], causing all sort of problems
16082 # (the dirname of $[0] is not the place where we might find the
16083 # original and so on. Autoconf is especially sensible to this).
16085 # Exit status is that of the last command.
16090 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16091 *c*,-n*) ECHO_N= ECHO_C='
16093 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16094 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16097 if expr a : '\(a\)' >/dev/null 2>&1; then
16103 rm -f conf$$ conf$$.exe conf$$.file
16105 if ln -s conf$$.file conf$$ 2>/dev/null; then
16106 # We could just check for DJGPP; but this test a) works b) is more generic
16107 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16108 if test -f conf$$.exe; then
16109 # Don't use ln at all; we don't have any links
16114 elif ln conf$$.file conf$$ 2>/dev/null; then
16119 rm -f conf$$ conf$$.exe conf$$.file
16121 if mkdir -p . 2>/dev/null; then
16124 test -d ./-p && rmdir ./-p
16128 as_executable_p="test -f"
16130 # Sed expression to map a string onto a valid CPP name.
16131 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16133 # Sed expression to map a string onto a valid variable name.
16134 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16138 # We need space, tab and new line, in precisely that order.
16148 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16149 # report actual input values of CONFIG_FILES etc. instead of their
16150 # values after options handling. Logging --version etc. is OK.
16154 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16155 ## Running $as_me. ##
16160 This file was extended by libjava $as_me version-unused, which was
16161 generated by GNU Autoconf 2.59. Invocation command line was
16163 CONFIG_FILES = $CONFIG_FILES
16164 CONFIG_HEADERS = $CONFIG_HEADERS
16165 CONFIG_LINKS = $CONFIG_LINKS
16166 CONFIG_COMMANDS = $CONFIG_COMMANDS
16170 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16174 # Files that config.status was made for.
16175 if test -n "$ac_config_files"; then
16176 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16179 if test -n "$ac_config_headers"; then
16180 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16183 if test -n "$ac_config_links"; then
16184 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16187 if test -n "$ac_config_commands"; then
16188 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16191 cat >>$CONFIG_STATUS <<\_ACEOF
16194 \`$as_me' instantiates files from templates according to the
16195 current configuration.
16197 Usage: $0 [OPTIONS] [FILE]...
16199 -h, --help print this help, then exit
16200 -V, --version print version number, then exit
16201 -q, --quiet do not print progress messages
16202 -d, --debug don't remove temporary files
16203 --recheck update $as_me by reconfiguring in the same conditions
16204 --file=FILE[:TEMPLATE]
16205 instantiate the configuration file FILE
16206 --header=FILE[:TEMPLATE]
16207 instantiate the configuration header FILE
16209 Configuration files:
16212 Configuration headers:
16215 Configuration links:
16218 Configuration commands:
16221 Report bugs to <bug-autoconf@gnu.org>."
16224 cat >>$CONFIG_STATUS <<_ACEOF
16226 libjava config.status version-unused
16227 configured by $0, generated by GNU Autoconf 2.59,
16228 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16230 Copyright (C) 2003 Free Software Foundation, Inc.
16231 This config.status script is free software; the Free Software Foundation
16232 gives unlimited permission to copy, distribute and modify it."
16237 cat >>$CONFIG_STATUS <<\_ACEOF
16238 # If no file are specified by the user, then we need to provide default
16239 # value. By we need to know if files were specified by the user.
16245 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16246 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16254 *) # This is not an option, so the user has probably given explicit
16257 ac_need_defaults=false;;
16261 # Handling of the options.
16263 cat >>$CONFIG_STATUS <<\_ACEOF
16264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16266 --version | --vers* | -V )
16267 echo "$ac_cs_version"; exit 0 ;;
16269 # Conflict between --help and --header
16270 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16271 Try \`$0 --help' for more information." >&5
16272 echo "$as_me: error: ambiguous option: $1
16273 Try \`$0 --help' for more information." >&2;}
16274 { (exit 1); exit 1; }; };;
16275 --help | --hel | -h )
16276 echo "$ac_cs_usage"; exit 0 ;;
16277 --debug | --d* | -d )
16279 --file | --fil | --fi | --f )
16281 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16282 ac_need_defaults=false;;
16283 --header | --heade | --head | --hea )
16285 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16286 ac_need_defaults=false;;
16287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16291 # This is an error.
16292 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16293 Try \`$0 --help' for more information." >&5
16294 echo "$as_me: error: unrecognized option: $1
16295 Try \`$0 --help' for more information." >&2;}
16296 { (exit 1); exit 1; }; } ;;
16298 *) ac_config_targets="$ac_config_targets $1" ;;
16304 ac_configure_extra_args=
16306 if $ac_cs_silent; then
16308 ac_configure_extra_args="$ac_configure_extra_args --silent"
16312 cat >>$CONFIG_STATUS <<_ACEOF
16313 if \$ac_cs_recheck; then
16314 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16315 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16320 cat >>$CONFIG_STATUS <<_ACEOF
16322 # INIT-COMMANDS section.
16325 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16329 with_multisubdir=${with_multisubdir}
16330 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16331 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16332 libgcj_basedir=${libgcj_basedir}
16335 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16342 cat >>$CONFIG_STATUS <<\_ACEOF
16343 for ac_config_target in $ac_config_targets
16345 case "$ac_config_target" in
16346 # Handling of arguments.
16347 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16348 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16349 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16350 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16351 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16352 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16353 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16354 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16355 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16356 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16357 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16358 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16359 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16360 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16361 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16362 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16363 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16364 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16365 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16366 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16367 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16368 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16369 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16370 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16371 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16372 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16373 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16374 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16375 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16376 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16377 { (exit 1); exit 1; }; };;
16381 # If the user did not use the arguments to specify the items to instantiate,
16382 # then the envvar interface is used. Set only those that are not.
16383 # We use the long form for the default assignment because of an extremely
16384 # bizarre bug on SunOS 4.1.3.
16385 if $ac_need_defaults; then
16386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16388 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16389 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16392 # Have a temporary directory for convenience. Make it in the build tree
16393 # simply because there is no reason to put it here, and in addition,
16394 # creating and moving files from /tmp can sometimes cause problems.
16395 # Create a temporary directory, and hook for its removal unless debugging.
16398 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16399 trap '{ (exit 1); exit 1; }' 1 2 13 15
16402 # Create a (secure) tmp directory for tmp files.
16405 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16406 test -n "$tmp" && test -d "$tmp"
16409 tmp=./confstat$$-$RANDOM
16410 (umask 077 && mkdir $tmp)
16413 echo "$me: cannot create a temporary directory in ." >&2
16414 { (exit 1); exit 1; }
16419 cat >>$CONFIG_STATUS <<_ACEOF
16422 # CONFIG_FILES section.
16425 # No need to generate the scripts if there are no CONFIG_FILES.
16426 # This happens for instance when ./config.status config.h
16427 if test -n "\$CONFIG_FILES"; then
16428 # Protect against being on the right side of a sed subst in config.status.
16429 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16430 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16431 s,@SHELL@,$SHELL,;t t
16432 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16433 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16434 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16435 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16436 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16437 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16438 s,@exec_prefix@,$exec_prefix,;t t
16439 s,@prefix@,$prefix,;t t
16440 s,@program_transform_name@,$program_transform_name,;t t
16441 s,@bindir@,$bindir,;t t
16442 s,@sbindir@,$sbindir,;t t
16443 s,@libexecdir@,$libexecdir,;t t
16444 s,@datadir@,$datadir,;t t
16445 s,@sysconfdir@,$sysconfdir,;t t
16446 s,@sharedstatedir@,$sharedstatedir,;t t
16447 s,@localstatedir@,$localstatedir,;t t
16448 s,@libdir@,$libdir,;t t
16449 s,@includedir@,$includedir,;t t
16450 s,@oldincludedir@,$oldincludedir,;t t
16451 s,@infodir@,$infodir,;t t
16452 s,@mandir@,$mandir,;t t
16453 s,@build_alias@,$build_alias,;t t
16454 s,@host_alias@,$host_alias,;t t
16455 s,@target_alias@,$target_alias,;t t
16456 s,@DEFS@,$DEFS,;t t
16457 s,@ECHO_C@,$ECHO_C,;t t
16458 s,@ECHO_N@,$ECHO_N,;t t
16459 s,@ECHO_T@,$ECHO_T,;t t
16460 s,@LIBS@,$LIBS,;t t
16461 s,@libgcj_basedir@,$libgcj_basedir,;t t
16462 s,@build@,$build,;t t
16463 s,@build_cpu@,$build_cpu,;t t
16464 s,@build_vendor@,$build_vendor,;t t
16465 s,@build_os@,$build_os,;t t
16466 s,@host@,$host,;t t
16467 s,@host_cpu@,$host_cpu,;t t
16468 s,@host_vendor@,$host_vendor,;t t
16469 s,@host_os@,$host_os,;t t
16470 s,@target@,$target,;t t
16471 s,@target_cpu@,$target_cpu,;t t
16472 s,@target_vendor@,$target_vendor,;t t
16473 s,@target_os@,$target_os,;t t
16474 s,@target_noncanonical@,$target_noncanonical,;t t
16475 s,@LN_S@,$LN_S,;t t
16476 s,@mkinstalldirs@,$mkinstalldirs,;t t
16478 s,@ac_ct_CC@,$ac_ct_CC,;t t
16479 s,@EXEEXT@,$EXEEXT,;t t
16480 s,@OBJEXT@,$OBJEXT,;t t
16482 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16483 s,@CFLAGS@,$CFLAGS,;t t
16484 s,@CXXFLAGS@,$CXXFLAGS,;t t
16485 s,@LDFLAGS@,$LDFLAGS,;t t
16486 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16487 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16488 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16489 s,@CYGPATH_W@,$CYGPATH_W,;t t
16490 s,@PACKAGE@,$PACKAGE,;t t
16491 s,@VERSION@,$VERSION,;t t
16492 s,@ACLOCAL@,$ACLOCAL,;t t
16493 s,@AUTOCONF@,$AUTOCONF,;t t
16494 s,@AUTOMAKE@,$AUTOMAKE,;t t
16495 s,@AUTOHEADER@,$AUTOHEADER,;t t
16496 s,@MAKEINFO@,$MAKEINFO,;t t
16497 s,@install_sh@,$install_sh,;t t
16498 s,@STRIP@,$STRIP,;t t
16499 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16500 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16501 s,@mkdir_p@,$mkdir_p,;t t
16503 s,@SET_MAKE@,$SET_MAKE,;t t
16504 s,@am__leading_dot@,$am__leading_dot,;t t
16505 s,@AMTAR@,$AMTAR,;t t
16506 s,@am__tar@,$am__tar,;t t
16507 s,@am__untar@,$am__untar,;t t
16508 s,@DEPDIR@,$DEPDIR,;t t
16509 s,@am__include@,$am__include,;t t
16510 s,@am__quote@,$am__quote,;t t
16511 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16512 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16513 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16514 s,@CCDEPMODE@,$CCDEPMODE,;t t
16515 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16516 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16517 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16518 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16519 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16521 s,@ac_ct_AS@,$ac_ct_AS,;t t
16523 s,@ac_ct_AR@,$ac_ct_AR,;t t
16524 s,@RANLIB@,$RANLIB,;t t
16525 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16526 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16527 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16528 s,@MAINT@,$MAINT,;t t
16529 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16530 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16531 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16532 s,@INCLTDL@,$INCLTDL,;t t
16533 s,@LIBLTDL@,$LIBLTDL,;t t
16534 s,@DIRLTDL@,$DIRLTDL,;t t
16535 s,@LIBTOOL@,$LIBTOOL,;t t
16536 s,@CXXCPP@,$CXXCPP,;t t
16537 s,@CPPFLAGS@,$CPPFLAGS,;t t
16539 s,@GCJFLAGS@,$GCJFLAGS,;t t
16540 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16541 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16542 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16543 s,@subdirs@,$subdirs,;t t
16544 s,@COMPPATH@,$COMPPATH,;t t
16545 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16546 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16547 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16548 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16549 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16550 s,@INTERPRETER@,$INTERPRETER,;t t
16551 s,@LIBFFI@,$LIBFFI,;t t
16552 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16553 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16555 s,@EGREP@,$EGREP,;t t
16556 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16557 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16558 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16559 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16560 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16561 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16562 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16563 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16564 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16565 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16566 s,@X_CFLAGS@,$X_CFLAGS,;t t
16567 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16568 s,@X_LIBS@,$X_LIBS,;t t
16569 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16570 s,@TOOLKIT@,$TOOLKIT,;t t
16571 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16572 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16573 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16574 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16575 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16576 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16577 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16578 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16579 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16580 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16581 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16582 s,@GCLIBS@,$GCLIBS,;t t
16583 s,@GCINCS@,$GCINCS,;t t
16584 s,@GCDEPS@,$GCDEPS,;t t
16585 s,@GCSPEC@,$GCSPEC,;t t
16586 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16587 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16588 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16589 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16590 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16591 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16592 s,@THREADLIBS@,$THREADLIBS,;t t
16593 s,@THREADINCS@,$THREADINCS,;t t
16594 s,@THREADDEPS@,$THREADDEPS,;t t
16595 s,@THREADSPEC@,$THREADSPEC,;t t
16596 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16597 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16598 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16599 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16600 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16601 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16602 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16603 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16604 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16605 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16606 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16607 s,@tool_include_dir@,$tool_include_dir,;t t
16608 s,@gcc_version@,$gcc_version,;t t
16609 s,@LIBICONV@,$LIBICONV,;t t
16610 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16611 s,@GTK_LIBS@,$GTK_LIBS,;t t
16612 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16613 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16614 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16615 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16616 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16617 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16618 s,@GCJH@,$GCJH,;t t
16620 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16621 s,@ZLIBS@,$ZLIBS,;t t
16622 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16623 s,@ZINCS@,$ZINCS,;t t
16624 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16625 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16626 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16627 s,@IEEESPEC@,$IEEESPEC,;t t
16628 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16629 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16630 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16631 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16632 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16633 s,@toolexecdir@,$toolexecdir,;t t
16634 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16635 s,@toolexeclibdir@,$toolexeclibdir,;t t
16636 s,@GCJVERSION@,$GCJVERSION,;t t
16637 s,@ALLOCA@,$ALLOCA,;t t
16638 s,@PERL@,$PERL,;t t
16639 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16640 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16641 s,@here@,$here,;t t
16642 s,@LIBOBJS@,$LIBOBJS,;t t
16643 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16648 cat >>$CONFIG_STATUS <<\_ACEOF
16649 # Split the substitutions into bite-sized pieces for seds with
16650 # small command number limits, like on Digital OSF/1 and HP-UX.
16651 ac_max_sed_lines=48
16652 ac_sed_frag=1 # Number of current file.
16653 ac_beg=1 # First line for current file.
16654 ac_end=$ac_max_sed_lines # Line after last line for current file.
16657 while $ac_more_lines; do
16658 if test $ac_beg -gt 1; then
16659 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16661 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16663 if test ! -s $tmp/subs.frag; then
16664 ac_more_lines=false
16666 # The purpose of the label and of the branching condition is to
16667 # speed up the sed processing (if there are no `@' at all, there
16668 # is no need to browse any of the substitutions).
16669 # These are the two extra sed commands mentioned above.
16671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16672 if test -z "$ac_sed_cmds"; then
16673 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16675 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16677 ac_sed_frag=`expr $ac_sed_frag + 1`
16679 ac_end=`expr $ac_end + $ac_max_sed_lines`
16682 if test -z "$ac_sed_cmds"; then
16685 fi # test -n "$CONFIG_FILES"
16688 cat >>$CONFIG_STATUS <<\_ACEOF
16689 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16690 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16692 - | *:- | *:-:* ) # input from stdin
16694 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16695 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16696 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16698 * ) ac_file_in=$ac_file.in ;;
16701 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16702 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16704 X"$ac_file" : 'X\(//\)[^/]' \| \
16705 X"$ac_file" : 'X\(//\)$' \| \
16706 X"$ac_file" : 'X\(/\)' \| \
16707 . : '\(.\)' 2>/dev/null ||
16709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16711 /^X\(\/\/\)$/{ s//\1/; q; }
16712 /^X\(\/\).*/{ s//\1/; q; }
16714 { if $as_mkdir_p; then
16719 while test ! -d "$as_dir"; do
16720 as_dirs="$as_dir $as_dirs"
16721 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16723 X"$as_dir" : 'X\(//\)[^/]' \| \
16724 X"$as_dir" : 'X\(//\)$' \| \
16725 X"$as_dir" : 'X\(/\)' \| \
16726 . : '\(.\)' 2>/dev/null ||
16728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16730 /^X\(\/\/\)$/{ s//\1/; q; }
16731 /^X\(\/\).*/{ s//\1/; q; }
16734 test ! -n "$as_dirs" || mkdir $as_dirs
16735 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16736 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16737 { (exit 1); exit 1; }; }; }
16741 if test "$ac_dir" != .; then
16742 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16743 # A "../" for each directory in $ac_dir_suffix.
16744 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16746 ac_dir_suffix= ac_top_builddir=
16750 .) # No --srcdir option. We are building in place.
16752 if test -z "$ac_top_builddir"; then
16755 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16757 [\\/]* | ?:[\\/]* ) # Absolute path.
16758 ac_srcdir=$srcdir$ac_dir_suffix;
16759 ac_top_srcdir=$srcdir ;;
16760 *) # Relative path.
16761 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16762 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16765 # Do not use `cd foo && pwd` to compute absolute paths, because
16766 # the directories may not exist.
16768 .) ac_abs_builddir="$ac_dir";;
16771 .) ac_abs_builddir=`pwd`;;
16772 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16773 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16776 case $ac_abs_builddir in
16777 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16779 case ${ac_top_builddir}. in
16780 .) ac_abs_top_builddir=$ac_abs_builddir;;
16781 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16782 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16785 case $ac_abs_builddir in
16786 .) ac_abs_srcdir=$ac_srcdir;;
16789 .) ac_abs_srcdir=$ac_abs_builddir;;
16790 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16791 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16794 case $ac_abs_builddir in
16795 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16797 case $ac_top_srcdir in
16798 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16799 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16800 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16807 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16810 if test x"$ac_file" != x-; then
16811 { echo "$as_me:$LINENO: creating $ac_file" >&5
16812 echo "$as_me: creating $ac_file" >&6;}
16815 # Let's still pretend it is `configure' which instantiates (i.e., don't
16816 # use $as_me), people would be surprised to read:
16817 # /* config.h. Generated by config.status. */
16818 if test x"$ac_file" = x-; then
16821 configure_input="$ac_file. "
16823 configure_input=$configure_input"Generated from `echo $ac_file_in |
16824 sed 's,.*/,,'` by configure."
16826 # First look for the input files in the build tree, otherwise in the
16828 ac_file_inputs=`IFS=:
16829 for f in $ac_file_in; do
16831 -) echo $tmp/stdin ;;
16833 # Absolute (can't be DOS-style, as IFS=:)
16834 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16835 echo "$as_me: error: cannot find input file: $f" >&2;}
16836 { (exit 1); exit 1; }; }
16839 if test -f "$f"; then
16842 elif test -f "$srcdir/$f"; then
16847 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16848 echo "$as_me: error: cannot find input file: $f" >&2;}
16849 { (exit 1); exit 1; }; }
16852 done` || { (exit 1); exit 1; }
16854 cat >>$CONFIG_STATUS <<_ACEOF
16858 cat >>$CONFIG_STATUS <<\_ACEOF
16860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16861 s,@configure_input@,$configure_input,;t t
16862 s,@srcdir@,$ac_srcdir,;t t
16863 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16864 s,@top_srcdir@,$ac_top_srcdir,;t t
16865 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16866 s,@builddir@,$ac_builddir,;t t
16867 s,@abs_builddir@,$ac_abs_builddir,;t t
16868 s,@top_builddir@,$ac_top_builddir,;t t
16869 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16870 s,@INSTALL@,$ac_INSTALL,;t t
16871 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16873 if test x"$ac_file" != x-; then
16874 mv $tmp/out $ac_file
16882 cat >>$CONFIG_STATUS <<\_ACEOF
16885 # CONFIG_HEADER section.
16888 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16889 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16891 # ac_d sets the value in "#define NAME VALUE" lines.
16892 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16893 ac_dB='[ ].*$,\1#\2'
16896 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16897 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16898 ac_uB='$,\1#\2define\3'
16902 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16905 - | *:- | *:-:* ) # input from stdin
16907 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16908 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16909 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16911 * ) ac_file_in=$ac_file.in ;;
16914 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16915 echo "$as_me: creating $ac_file" >&6;}
16917 # First look for the input files in the build tree, otherwise in the
16919 ac_file_inputs=`IFS=:
16920 for f in $ac_file_in; do
16922 -) echo $tmp/stdin ;;
16924 # Absolute (can't be DOS-style, as IFS=:)
16925 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16926 echo "$as_me: error: cannot find input file: $f" >&2;}
16927 { (exit 1); exit 1; }; }
16928 # Do quote $f, to prevent DOS paths from being IFS'd.
16931 if test -f "$f"; then
16934 elif test -f "$srcdir/$f"; then
16939 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16940 echo "$as_me: error: cannot find input file: $f" >&2;}
16941 { (exit 1); exit 1; }; }
16944 done` || { (exit 1); exit 1; }
16945 # Remove the trailing spaces.
16946 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16950 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16951 # `conftest.undefs', that substitutes the proper values into
16952 # config.h.in to produce config.h. The first handles `#define'
16953 # templates, and the second `#undef' templates.
16954 # And first: Protect against being on the right side of a sed subst in
16955 # config.status. Protect against being in an unquoted here document
16956 # in config.status.
16957 rm -f conftest.defines conftest.undefs
16958 # Using a here document instead of a string reduces the quoting nightmare.
16959 # Putting comments in sed scripts is not portable.
16961 # `end' is used to avoid that the second main sed command (meant for
16962 # 0-ary CPP macros) applies to n-ary macro definitions.
16963 # See the Autoconf documentation for `clear'.
16964 cat >confdef2sed.sed <<\_ACEOF
16969 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16971 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16974 # If some macros were called several times there might be several times
16975 # the same #defines, which is useless. Nevertheless, we may not want to
16976 # sort them, since we want the *last* AC-DEFINE to be honored.
16977 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16978 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16979 rm -f confdef2sed.sed
16981 # This sed command replaces #undef with comments. This is necessary, for
16982 # example, in the case of _POSIX_SOURCE, which is predefined and required
16983 # on some systems where configure will not decide to define it.
16984 cat >>conftest.undefs <<\_ACEOF
16985 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16988 # Break up conftest.defines because some shells have a limit on the size
16989 # of here documents, and old seds have small limits too (100 cmds).
16990 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16991 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16992 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16993 echo ' :' >>$CONFIG_STATUS
16994 rm -f conftest.tail
16995 while grep . conftest.defines >/dev/null
16997 # Write a limited-size here document to $tmp/defines.sed.
16998 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16999 # Speed up: don't consider the non `#define' lines.
17000 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17001 # Work around the forget-to-reset-the-flag bug.
17002 echo 't clr' >>$CONFIG_STATUS
17003 echo ': clr' >>$CONFIG_STATUS
17004 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17006 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17008 mv $tmp/out $tmp/in
17010 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17011 rm -f conftest.defines
17012 mv conftest.tail conftest.defines
17014 rm -f conftest.defines
17015 echo ' fi # grep' >>$CONFIG_STATUS
17016 echo >>$CONFIG_STATUS
17018 # Break up conftest.undefs because some shells have a limit on the size
17019 # of here documents, and old seds have small limits too (100 cmds).
17020 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17021 rm -f conftest.tail
17022 while grep . conftest.undefs >/dev/null
17024 # Write a limited-size here document to $tmp/undefs.sed.
17025 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17026 # Speed up: don't consider the non `#undef'
17027 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17028 # Work around the forget-to-reset-the-flag bug.
17029 echo 't clr' >>$CONFIG_STATUS
17030 echo ': clr' >>$CONFIG_STATUS
17031 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17033 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17035 mv $tmp/out $tmp/in
17037 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17038 rm -f conftest.undefs
17039 mv conftest.tail conftest.undefs
17041 rm -f conftest.undefs
17043 cat >>$CONFIG_STATUS <<\_ACEOF
17044 # Let's still pretend it is `configure' which instantiates (i.e., don't
17045 # use $as_me), people would be surprised to read:
17046 # /* config.h. Generated by config.status. */
17047 if test x"$ac_file" = x-; then
17048 echo "/* Generated by configure. */" >$tmp/config.h
17050 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17052 cat $tmp/in >>$tmp/config.h
17054 if test x"$ac_file" != x-; then
17055 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17056 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17057 echo "$as_me: $ac_file is unchanged" >&6;}
17059 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17061 X"$ac_file" : 'X\(//\)[^/]' \| \
17062 X"$ac_file" : 'X\(//\)$' \| \
17063 X"$ac_file" : 'X\(/\)' \| \
17064 . : '\(.\)' 2>/dev/null ||
17066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17068 /^X\(\/\/\)$/{ s//\1/; q; }
17069 /^X\(\/\).*/{ s//\1/; q; }
17071 { if $as_mkdir_p; then
17076 while test ! -d "$as_dir"; do
17077 as_dirs="$as_dir $as_dirs"
17078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17080 X"$as_dir" : 'X\(//\)[^/]' \| \
17081 X"$as_dir" : 'X\(//\)$' \| \
17082 X"$as_dir" : 'X\(/\)' \| \
17083 . : '\(.\)' 2>/dev/null ||
17085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17087 /^X\(\/\/\)$/{ s//\1/; q; }
17088 /^X\(\/\).*/{ s//\1/; q; }
17091 test ! -n "$as_dirs" || mkdir $as_dirs
17092 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17093 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17094 { (exit 1); exit 1; }; }; }
17097 mv $tmp/config.h $ac_file
17101 rm -f $tmp/config.h
17103 # Compute $ac_file's index in $config_headers.
17105 for _am_header in $config_headers :; do
17106 case $_am_header in
17107 $ac_file | $ac_file:* )
17110 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17113 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17114 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17115 X$ac_file : 'X\(//\)[^/]' \| \
17116 X$ac_file : 'X\(//\)$' \| \
17117 X$ac_file : 'X\(/\)' \| \
17118 . : '\(.\)' 2>/dev/null ||
17120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17122 /^X\(\/\/\)$/{ s//\1/; q; }
17123 /^X\(\/\).*/{ s//\1/; q; }
17124 s/.*/./; q'`/stamp-h$_am_stamp_count
17127 cat >>$CONFIG_STATUS <<\_ACEOF
17130 # CONFIG_LINKS section.
17133 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17134 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17135 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17137 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17138 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17140 if test ! -r $srcdir/$ac_source; then
17141 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17142 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17143 { (exit 1); exit 1; }; }
17147 # Make relative symlinks.
17148 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17149 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17150 X"$ac_dest" : 'X\(//\)[^/]' \| \
17151 X"$ac_dest" : 'X\(//\)$' \| \
17152 X"$ac_dest" : 'X\(/\)' \| \
17153 . : '\(.\)' 2>/dev/null ||
17155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17157 /^X\(\/\/\)$/{ s//\1/; q; }
17158 /^X\(\/\).*/{ s//\1/; q; }
17160 { if $as_mkdir_p; then
17161 mkdir -p "$ac_dest_dir"
17163 as_dir="$ac_dest_dir"
17165 while test ! -d "$as_dir"; do
17166 as_dirs="$as_dir $as_dirs"
17167 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17169 X"$as_dir" : 'X\(//\)[^/]' \| \
17170 X"$as_dir" : 'X\(//\)$' \| \
17171 X"$as_dir" : 'X\(/\)' \| \
17172 . : '\(.\)' 2>/dev/null ||
17174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17176 /^X\(\/\/\)$/{ s//\1/; q; }
17177 /^X\(\/\).*/{ s//\1/; q; }
17180 test ! -n "$as_dirs" || mkdir $as_dirs
17181 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17182 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17183 { (exit 1); exit 1; }; }; }
17187 if test "$ac_dest_dir" != .; then
17188 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17189 # A "../" for each directory in $ac_dir_suffix.
17190 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17192 ac_dir_suffix= ac_top_builddir=
17196 .) # No --srcdir option. We are building in place.
17198 if test -z "$ac_top_builddir"; then
17201 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17203 [\\/]* | ?:[\\/]* ) # Absolute path.
17204 ac_srcdir=$srcdir$ac_dir_suffix;
17205 ac_top_srcdir=$srcdir ;;
17206 *) # Relative path.
17207 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17208 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17211 # Do not use `cd foo && pwd` to compute absolute paths, because
17212 # the directories may not exist.
17214 .) ac_abs_builddir="$ac_dest_dir";;
17216 case "$ac_dest_dir" in
17217 .) ac_abs_builddir=`pwd`;;
17218 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17219 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17222 case $ac_abs_builddir in
17223 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17225 case ${ac_top_builddir}. in
17226 .) ac_abs_top_builddir=$ac_abs_builddir;;
17227 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17228 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17231 case $ac_abs_builddir in
17232 .) ac_abs_srcdir=$ac_srcdir;;
17235 .) ac_abs_srcdir=$ac_abs_builddir;;
17236 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17237 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17240 case $ac_abs_builddir in
17241 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17243 case $ac_top_srcdir in
17244 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17245 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17246 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17252 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17253 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17256 # Try a symlink, then a hard link, then a copy.
17257 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17258 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17259 cp -p $srcdir/$ac_source $ac_dest ||
17260 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17261 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17262 { (exit 1); exit 1; }; }
17265 cat >>$CONFIG_STATUS <<\_ACEOF
17268 # CONFIG_COMMANDS section.
17270 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17271 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17272 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17273 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17274 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17275 X"$ac_dest" : 'X\(//\)[^/]' \| \
17276 X"$ac_dest" : 'X\(//\)$' \| \
17277 X"$ac_dest" : 'X\(/\)' \| \
17278 . : '\(.\)' 2>/dev/null ||
17280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17282 /^X\(\/\/\)$/{ s//\1/; q; }
17283 /^X\(\/\).*/{ s//\1/; q; }
17285 { if $as_mkdir_p; then
17290 while test ! -d "$as_dir"; do
17291 as_dirs="$as_dir $as_dirs"
17292 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17294 X"$as_dir" : 'X\(//\)[^/]' \| \
17295 X"$as_dir" : 'X\(//\)$' \| \
17296 X"$as_dir" : 'X\(/\)' \| \
17297 . : '\(.\)' 2>/dev/null ||
17299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17301 /^X\(\/\/\)$/{ s//\1/; q; }
17302 /^X\(\/\).*/{ s//\1/; q; }
17305 test ! -n "$as_dirs" || mkdir $as_dirs
17306 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17307 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17308 { (exit 1); exit 1; }; }; }
17312 if test "$ac_dir" != .; then
17313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17314 # A "../" for each directory in $ac_dir_suffix.
17315 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17317 ac_dir_suffix= ac_top_builddir=
17321 .) # No --srcdir option. We are building in place.
17323 if test -z "$ac_top_builddir"; then
17326 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17328 [\\/]* | ?:[\\/]* ) # Absolute path.
17329 ac_srcdir=$srcdir$ac_dir_suffix;
17330 ac_top_srcdir=$srcdir ;;
17331 *) # Relative path.
17332 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17333 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17336 # Do not use `cd foo && pwd` to compute absolute paths, because
17337 # the directories may not exist.
17339 .) ac_abs_builddir="$ac_dir";;
17342 .) ac_abs_builddir=`pwd`;;
17343 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17344 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17347 case $ac_abs_builddir in
17348 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17350 case ${ac_top_builddir}. in
17351 .) ac_abs_top_builddir=$ac_abs_builddir;;
17352 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17353 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17356 case $ac_abs_builddir in
17357 .) ac_abs_srcdir=$ac_srcdir;;
17360 .) ac_abs_srcdir=$ac_abs_builddir;;
17361 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17362 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17365 case $ac_abs_builddir in
17366 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17368 case $ac_top_srcdir in
17369 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17370 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17371 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17376 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17377 echo "$as_me: executing $ac_dest commands" >&6;}
17379 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17380 # Strip MF so we end up with the name of the file.
17381 mf=`echo "$mf" | sed -e 's/:.*$//'`
17382 # Check whether this is an Automake generated Makefile or not.
17383 # We used to match only the files named `Makefile.in', but
17384 # some people rename them; so instead we look at the file content.
17385 # Grep'ing the first line is not enough: some people post-process
17386 # each Makefile.in and add a new line on top of each file to say so.
17387 # So let's grep whole file.
17388 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17389 dirpart=`(dirname "$mf") 2>/dev/null ||
17390 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17391 X"$mf" : 'X\(//\)[^/]' \| \
17392 X"$mf" : 'X\(//\)$' \| \
17393 X"$mf" : 'X\(/\)' \| \
17394 . : '\(.\)' 2>/dev/null ||
17396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17398 /^X\(\/\/\)$/{ s//\1/; q; }
17399 /^X\(\/\).*/{ s//\1/; q; }
17404 # Extract the definition of DEPDIR, am__include, and am__quote
17405 # from the Makefile without running `make'.
17406 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17407 test -z "$DEPDIR" && continue
17408 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17409 test -z "am__include" && continue
17410 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17411 # When using ansi2knr, U may be empty or an underscore; expand it
17412 U=`sed -n 's/^U = //p' < "$mf"`
17413 # Find all dependency output files, they are included files with
17414 # $(DEPDIR) in their names. We invoke sed twice because it is the
17415 # simplest approach to changing $(DEPDIR) to its actual value in the
17417 for file in `sed -n "
17418 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17419 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17420 # Make sure the directory exists.
17421 test -f "$dirpart/$file" && continue
17422 fdir=`(dirname "$file") 2>/dev/null ||
17423 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17424 X"$file" : 'X\(//\)[^/]' \| \
17425 X"$file" : 'X\(//\)$' \| \
17426 X"$file" : 'X\(/\)' \| \
17427 . : '\(.\)' 2>/dev/null ||
17429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17431 /^X\(\/\/\)$/{ s//\1/; q; }
17432 /^X\(\/\).*/{ s//\1/; q; }
17434 { if $as_mkdir_p; then
17435 mkdir -p $dirpart/$fdir
17437 as_dir=$dirpart/$fdir
17439 while test ! -d "$as_dir"; do
17440 as_dirs="$as_dir $as_dirs"
17441 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17443 X"$as_dir" : 'X\(//\)[^/]' \| \
17444 X"$as_dir" : 'X\(//\)$' \| \
17445 X"$as_dir" : 'X\(/\)' \| \
17446 . : '\(.\)' 2>/dev/null ||
17448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17450 /^X\(\/\/\)$/{ s//\1/; q; }
17451 /^X\(\/\).*/{ s//\1/; q; }
17454 test ! -n "$as_dirs" || mkdir $as_dirs
17455 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17456 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17457 { (exit 1); exit 1; }; }; }
17459 # echo "creating $dirpart/$file"
17460 echo '# dummy' > "$dirpart/$file"
17464 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17465 case " $CONFIG_FILES " in
17467 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17468 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17476 cat >>$CONFIG_STATUS <<\_ACEOF
17478 { (exit 0); exit 0; }
17480 chmod +x $CONFIG_STATUS
17481 ac_clean_files=$ac_clean_files_save
17484 # configure is writing to config.log, and then calls config.status.
17485 # config.status does its own redirection, appending to config.log.
17486 # Unfortunately, on DOS this fails, as config.log is still kept open
17487 # by configure, so config.status won't be able to write to it; its
17488 # output is simply discarded. So we exec the FD to /dev/null,
17489 # effectively closing config.log, so it can be properly (re)opened and
17490 # appended to by config.status. When coming back to configure, we
17491 # need to make the FD available again.
17492 if test "$no_create" != yes; then
17494 ac_config_status_args=
17495 test "$silent" = yes &&
17496 ac_config_status_args="$ac_config_status_args --quiet"
17498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17501 # would make configure fail if this is the last instruction.
17502 $ac_cs_success || { (exit 1); exit 1; }
17506 # CONFIG_SUBDIRS section.
17508 if test "$no_recursion" != yes; then
17510 # Remove --cache-file and --srcdir arguments so they do not pile up.
17511 ac_sub_configure_args=
17513 for ac_arg in $ac_configure_args; do
17514 if test -n "$ac_prev"; then
17519 -cache-file | --cache-file | --cache-fil | --cache-fi \
17520 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17521 ac_prev=cache_file ;;
17522 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17523 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17526 --config-cache | -C)
17528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17536 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17540 # Always prepend --prefix to ensure using the same prefix
17541 # in subdir configurations.
17542 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17545 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17547 # Do not complain, so a configure script can configure whichever
17548 # parts of a large source tree are present.
17549 test -d $srcdir/$ac_dir || continue
17551 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17552 echo "$as_me: configuring in $ac_dir" >&6;}
17553 { if $as_mkdir_p; then
17558 while test ! -d "$as_dir"; do
17559 as_dirs="$as_dir $as_dirs"
17560 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17562 X"$as_dir" : 'X\(//\)[^/]' \| \
17563 X"$as_dir" : 'X\(//\)$' \| \
17564 X"$as_dir" : 'X\(/\)' \| \
17565 . : '\(.\)' 2>/dev/null ||
17567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17569 /^X\(\/\/\)$/{ s//\1/; q; }
17570 /^X\(\/\).*/{ s//\1/; q; }
17573 test ! -n "$as_dirs" || mkdir $as_dirs
17574 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17576 { (exit 1); exit 1; }; }; }
17580 if test "$ac_dir" != .; then
17581 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17582 # A "../" for each directory in $ac_dir_suffix.
17583 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17585 ac_dir_suffix= ac_top_builddir=
17589 .) # No --srcdir option. We are building in place.
17591 if test -z "$ac_top_builddir"; then
17594 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17596 [\\/]* | ?:[\\/]* ) # Absolute path.
17597 ac_srcdir=$srcdir$ac_dir_suffix;
17598 ac_top_srcdir=$srcdir ;;
17599 *) # Relative path.
17600 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17601 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17604 # Do not use `cd foo && pwd` to compute absolute paths, because
17605 # the directories may not exist.
17607 .) ac_abs_builddir="$ac_dir";;
17610 .) ac_abs_builddir=`pwd`;;
17611 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17612 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17615 case $ac_abs_builddir in
17616 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17618 case ${ac_top_builddir}. in
17619 .) ac_abs_top_builddir=$ac_abs_builddir;;
17620 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17621 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17624 case $ac_abs_builddir in
17625 .) ac_abs_srcdir=$ac_srcdir;;
17628 .) ac_abs_srcdir=$ac_abs_builddir;;
17629 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17630 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17633 case $ac_abs_builddir in
17634 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17636 case $ac_top_srcdir in
17637 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17638 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17639 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17646 # Check for guested configure; otherwise get Cygnus style configure.
17647 if test -f $ac_srcdir/configure.gnu; then
17648 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17649 elif test -f $ac_srcdir/configure; then
17650 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17651 elif test -f $ac_srcdir/configure.in; then
17652 ac_sub_configure=$ac_configure
17654 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17655 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17659 # The recursion is here.
17660 if test -n "$ac_sub_configure"; then
17661 # Make the cache file name correct relative to the subdirectory.
17662 case $cache_file in
17663 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17664 *) # Relative path.
17665 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17668 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17669 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17670 # The eval makes quoting arguments work.
17671 eval $ac_sub_configure $ac_sub_configure_args \
17672 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17673 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17674 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17675 { (exit 1); exit 1; }; }