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 build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-shared=PKGS build shared libraries default=yes
861 --enable-static=PKGS build static libraries default=yes
862 --enable-fast-install=PKGS optimize for fast installation default=yes
863 --disable-libtool-lock avoid locking (might break parallel builds)
864 --disable-getenv-properties
865 don't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-debug enable runtime debugging code
869 --enable-gc-debug include full support for pointer backtracing etc.
870 --enable-interpreter enable interpreter
871 --enable-sjlj-exceptions
872 force use of builtin_setjmp for exceptions
873 --disable-java-net disable java.net
874 --disable-jvmpi disable JVMPI support
875 --enable-java-awt list of AWT peer implementations to be built
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-target-subdir=SUBDIR
884 configure in a subdirectory
885 --with-cross-host=HOST configure with a cross compiler from HOST
886 --with-newlib configure with newlib
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-pic try to use only PIC/non-PIC objects default=use both
889 --with-java-home=DIRECTORY
890 value of java.home system property
891 --with-win32-nlsapi=ansi or unicows or unicode
892 native MinGW libgcj Win32 OS API (default is ansi)
893 --without-libffi don't use libffi
894 --with-ecos enable runtime eCos target support
895 --with-system-zlib use installed libz
896 --with-x use the X Window System
897 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
898 --without-libiconv-prefix don't search for libiconv in includedir and libdir
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
907 CXX C++ compiler command
908 CXXFLAGS C++ compiler flags
909 CXXCPP C++ preprocessor
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 ac_dir_suffix= ac_top_builddir=
934 .) # No --srcdir option. We are building in place.
936 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
952 .) ac_abs_builddir="$ac_dir";;
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1010 libjava configure version-unused
1011 generated by GNU Autoconf 2.59
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by libjava $as_me version-unused, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_must_keep_next=false
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 -* ) ac_must_keep_next=true ;;
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1142 # The following way of writing the cache mishandles newlines in values,
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1172 if test -n "$ac_subst_files"; then
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1187 if test -s confdefs.h; then
1194 sed "/^$/d" confdefs.h | sort
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1277 # Check that the precious variables saved in the cache have kept the same
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1365 if test -f $ac_dir/install-sh; then
1367 ac_install_sh="$ac_aux_dir/install-sh -c"
1369 elif test -f $ac_dir/install.sh; then
1371 ac_install_sh="$ac_aux_dir/install.sh -c"
1373 elif test -f $ac_dir/shtool; then
1375 ac_install_sh="$ac_aux_dir/shtool install -c"
1379 if test -z "$ac_aux_dir"; then
1380 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1381 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1382 { (exit 1); exit 1; }; }
1384 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1385 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1386 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1388 # Make sure we can run config.sub.
1389 $ac_config_sub sun4 >/dev/null 2>&1 ||
1390 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1391 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1392 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: checking build system type" >&5
1395 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1396 if test "${ac_cv_build+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 ac_cv_build_alias=$build_alias
1400 test -z "$ac_cv_build_alias" &&
1401 ac_cv_build_alias=`$ac_config_guess`
1402 test -z "$ac_cv_build_alias" &&
1403 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1404 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1405 { (exit 1); exit 1; }; }
1406 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1412 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1413 echo "${ECHO_T}$ac_cv_build" >&6
1415 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420 case ${build_alias} in
1421 "") build_noncanonical=${build} ;;
1422 *) build_noncanonical=${build_alias} ;;
1425 case ${host_alias} in
1426 "") host_noncanonical=${build_noncanonical} ;;
1427 *) host_noncanonical=${host_alias} ;;
1430 case ${target_alias} in
1431 "") target_noncanonical=${host_noncanonical} ;;
1432 *) target_noncanonical=${target_alias} ;;
1435 # Prefix 'build-' so this never conflicts with target_subdir.
1436 build_subdir="build-${build_noncanonical}"
1437 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1438 if ( test $srcdir = . && test -d gcc ) \
1439 || test -d $srcdir/../host-${host_noncanonical}; then
1440 host_subdir="host-${host_noncanonical}"
1445 target_subdir=${target_noncanonical}
1448 # We use these options to decide which functions to include.
1450 # Check whether --with-target-subdir or --without-target-subdir was given.
1451 if test "${with_target_subdir+set}" = set; then
1452 withval="$with_target_subdir"
1456 # We may get other options which we don't document:
1457 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1459 # When building with srcdir == objdir, links to the source files will
1460 # be created in directories within the target_subdir. We have to
1461 # adjust toplevel_srcdir accordingly, so that configure finds
1462 # install-sh and other auxiliary files that live in the top-level
1464 if test "${srcdir}" = "."; then
1465 if test -z "${with_target_subdir}"; then
1468 if test "${with_target_subdir}" != "."; then
1469 toprel="${with_multisrctop}../.."
1471 toprel="${with_multisrctop}.."
1478 libgcj_basedir=$srcdir/$toprel/./libjava
1481 echo "$as_me:$LINENO: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488 ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492 { (exit 1); exit 1; }; }
1495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503 echo "$as_me:$LINENO: checking target system type" >&5
1504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1505 if test "${ac_cv_target+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 ac_cv_target_alias=$target_alias
1509 test "x$ac_cv_target_alias" = "x" &&
1510 ac_cv_target_alias=$ac_cv_host_alias
1511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1514 { (exit 1); exit 1; }; }
1517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1518 echo "${ECHO_T}$ac_cv_target" >&6
1519 target=$ac_cv_target
1520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 test -n "$target_alias" &&
1528 test "$program_prefix$program_suffix$program_transform_name" = \
1530 program_prefix=${target_alias}-
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
1536 case ${target_alias} in
1537 "") target_noncanonical=${host_noncanonical} ;;
1538 *) target_noncanonical=${target_alias} ;;
1544 # This works around the fact that libtool configuration may change LD
1545 # for this particular configuration, but some shells, instead of
1546 # keeping the changes in LD private, export them just because LD is
1548 ORIGINAL_LD_FOR_MULTILIBS=$LD
1550 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1553 if test "$LN_S" = "ln -s"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1557 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1558 echo "${ECHO_T}no, using $LN_S" >&6
1562 # This works around an automake problem.
1563 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1567 # Check whether --with-cross-host or --without-cross-host was given.
1568 if test "${with_cross_host+set}" = set; then
1569 withval="$with_cross_host"
1574 # Check whether --with-newlib or --without-newlib was given.
1575 if test "${with_newlib+set}" = set; then
1576 withval="$with_newlib"
1580 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1581 if test "${enable_version_specific_runtime_libs+set}" = set; then
1582 enableval="$enable_version_specific_runtime_libs"
1583 case "$enableval" in
1584 yes) version_specific_libs=yes ;;
1585 no) version_specific_libs=no ;;
1586 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1587 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1588 { (exit 1); exit 1; }; };;
1591 version_specific_libs=no
1595 # Default to --enable-multilib
1596 # Check whether --enable-multilib or --disable-multilib was given.
1597 if test "${enable_multilib+set}" = set; then
1598 enableval="$enable_multilib"
1599 case "${enableval}" in
1600 yes) multilib=yes ;;
1602 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1603 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1604 { (exit 1); exit 1; }; } ;;
1609 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1612 # (1) We use an abnormal CXX (without library references), so we
1613 # must cache it under a different name.
1614 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1615 # the non-multilib-adjusted value will be used in multilibs.
1616 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1617 # (4) As another side effect, automake doesn't automatically include them
1619 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1620 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1621 # used in later tests. This may not be necessary in libjava; I don't know.
1625 save_CXXFLAGS="$CXXFLAGS"
1626 CXXFLAGS="$CXXFLAGS -fno-builtin"
1628 ac_cpp='$CPP $CPPFLAGS'
1629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1632 if test -n "$ac_tool_prefix"; then
1633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test -n "$CC"; then
1661 echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1669 if test -z "$ac_cv_prog_CC"; then
1671 # Extract the first word of "gcc", so it can be a program name with args.
1672 set dummy gcc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 if test -n "$ac_ct_CC"; then
1679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_ac_ct_CC="gcc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1698 if test -n "$ac_ct_CC"; then
1699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1700 echo "${ECHO_T}$ac_ct_CC" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1711 if test -z "$CC"; then
1712 if test -n "$ac_tool_prefix"; then
1713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1714 set dummy ${ac_tool_prefix}cc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 if test -n "$CC"; then
1721 ac_cv_prog_CC="$CC" # Let the user override the test.
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_CC="${ac_tool_prefix}cc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 if test -n "$CC"; then
1741 echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1749 if test -z "$ac_cv_prog_CC"; then
1751 # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 if test -n "$ac_ct_CC"; then
1759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_ac_ct_CC="cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1792 if test -z "$CC"; then
1793 # Extract the first word of "cc", so it can be a program name with args.
1794 set dummy cc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1812 ac_prog_rejected=yes
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 if test $ac_prog_rejected = yes; then
1823 # We found a bogon in the path, so make sure we never use it.
1824 set dummy $ac_cv_prog_CC
1826 if test $# != 0; then
1827 # We chose a different compiler from the bogus one.
1828 # However, it has the same basename, so the bogon will be chosen
1829 # first if we set CC to just the basename; use the full file name.
1831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1885 test -n "$CC" && break
1888 if test -z "$CC"; then
1892 # Extract the first word of "$ac_prog", so it can be a program name with args.
1893 set dummy $ac_prog; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 if test -n "$ac_ct_CC"; then
1900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_CC="$ac_prog"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919 if test -n "$ac_ct_CC"; then
1920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921 echo "${ECHO_T}$ac_ct_CC" >&6
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1927 test -n "$ac_ct_CC" && break
1936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1937 See \`config.log' for more details." >&5
1938 echo "$as_me: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&2;}
1940 { (exit 1); exit 1; }; }
1942 # Provide some information about the compiler.
1943 echo "$as_me:$LINENO:" \
1944 "checking for C compiler version" >&5
1945 ac_compiler=`set X $ac_compile; echo $2`
1946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1947 (eval $ac_compiler --version </dev/null >&5) 2>&5
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }
1951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1952 (eval $ac_compiler -v </dev/null >&5) 2>&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1957 (eval $ac_compiler -V </dev/null >&5) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1962 cat >conftest.$ac_ext <<_ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1979 (eval $ac_link) 2>&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; then
1988 if test x$gcc_no_link = xyes; then
1989 # Setting cross_compile will disable run tests; it will
1990 # also disable AC_CHECK_FILE but that's generally
1991 # correct if we can't link.
1995 cat >conftest.$ac_ext <<_ACEOF
1998 cat confdefs.h >>conftest.$ac_ext
1999 cat >>conftest.$ac_ext <<_ACEOF
2000 /* end confdefs.h. */
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2015 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2016 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019 (eval $ac_link_default) 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; then
2023 # Find the output, starting from the most likely. This scheme is
2024 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # Be careful to initialize this variable, since it used to be cached.
2028 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2030 # b.out is created by i960 compilers.
2031 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2033 test -f "$ac_file" || continue
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2038 # This is the source file.
2041 # We found the default executable, but exeext='' is most
2045 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 # FIXME: I believe we export ac_cv_exeext for Libtool,
2047 # but it would be cool to find out if it's true. Does anybody
2048 # maintain Libtool? --akim.
2056 echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2059 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&2;}
2063 { (exit 77); exit 77; }; }
2066 ac_exeext=$ac_cv_exeext
2067 echo "$as_me:$LINENO: result: $ac_file" >&5
2068 echo "${ECHO_T}$ac_file" >&6
2070 # Check the compiler produces executables we can run. If not, either
2071 # the compiler is broken, or we cross compile.
2072 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2073 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2074 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2075 # If not cross compiling, check that we can run a simple program.
2076 if test "$cross_compiling" != yes; then
2077 if { ac_try='./$ac_file'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2085 if test "$cross_compiling" = maybe; then
2088 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2089 If you meant to cross compile, use \`--host'.
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&2;}
2094 { (exit 1); exit 1; }; }
2098 echo "$as_me:$LINENO: result: yes" >&5
2099 echo "${ECHO_T}yes" >&6
2101 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2102 ac_clean_files=$ac_clean_files_save
2103 # Check the compiler produces executables we can run. If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108 echo "${ECHO_T}$cross_compiling" >&6
2110 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2119 # work properly (i.e., refer to `conftest.exe'), while it won't with
2121 for ac_file in conftest.exe conftest conftest.*; do
2122 test -f "$ac_file" || continue
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2139 rm -f conftest$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2141 echo "${ECHO_T}$ac_cv_exeext" >&6
2143 rm -f conftest.$ac_ext
2144 EXEEXT=$ac_cv_exeext
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 cat >conftest.$ac_ext <<_ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2167 rm -f conftest.o conftest.obj
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 cat >conftest.$ac_ext <<_ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2224 grep -v '^ *+' conftest.er1 >conftest.err
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2254 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2255 GCC=`test $ac_compiler_gnu = yes && echo yes`
2256 ac_test_CFLAGS=${CFLAGS+set}
2257 ac_save_CFLAGS=$CFLAGS
2259 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_g+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 cat >conftest.$ac_ext <<_ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2283 grep -v '^ *+' conftest.er1 >conftest.err
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_c_werror_flag"
2289 || test ! -s conftest.err'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2312 if test "$ac_test_CFLAGS" = set; then
2313 CFLAGS=$ac_save_CFLAGS
2314 elif test $ac_cv_prog_cc_g = yes; then
2315 if test "$GCC" = yes; then
2321 if test "$GCC" = yes; then
2327 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2328 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2329 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 ac_cv_prog_cc_stdc=no
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2342 #include <sys/types.h>
2343 #include <sys/stat.h>
2344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2345 struct buf { int x; };
2346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347 static char *e (p, i)
2353 static char *f (char * (*g) (char **, int), char **p, ...)
2358 s = g (p, va_arg (v,int));
2363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2364 function prototypes and stuff, but not '\xHH' hex character constants.
2365 These don't provoke an error unfortunately, instead are silently treated
2366 as 'x'. The following induces an error, until -std1 is added to get
2367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2368 array size at least. It's necessary to write '\x00'==0 to get something
2369 that's true only with -std1. */
2370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2372 int test (int i, double x);
2373 struct s1 {int (*f) (int a);};
2374 struct s2 {int (*f) (double a);};
2375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2386 # Don't try gcc -ansi; that turns off useful extensions and
2387 # breaks some systems' header files.
2388 # AIX -qlanglvl=ansi
2389 # Ultrix and OSF/1 -std1
2390 # HP-UX 10.20 and later -Ae
2391 # HP-UX older versions -Aa -D_HPUX_SOURCE
2392 # SVR4 -Xc -D__EXTENSIONS__
2393 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2395 CC="$ac_save_CC $ac_arg"
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2400 grep -v '^ *+' conftest.er1 >conftest.err
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_prog_cc_stdc=$ac_arg
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2425 rm -f conftest.err conftest.$ac_objext
2427 rm -f conftest.$ac_ext conftest.$ac_objext
2432 case "x$ac_cv_prog_cc_stdc" in
2434 echo "$as_me:$LINENO: result: none needed" >&5
2435 echo "${ECHO_T}none needed" >&6 ;;
2437 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2439 CC="$CC $ac_cv_prog_cc_stdc" ;;
2442 # Some people use a C++ compiler to compile C. Since we use `exit',
2443 # in C++ we need to declare it. In case someone uses the same compiler
2444 # for both compiling C and C++ we need to have the C++ compiler decide
2445 # the declaration of exit, since it's the most demanding environment.
2446 cat >conftest.$ac_ext <<_ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2455 grep -v '^ *+' conftest.er1 >conftest.err
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 for ac_declaration in \
2475 'extern "C" void std::exit (int) throw (); using std::exit;' \
2476 'extern "C" void std::exit (int); using std::exit;' \
2477 'extern "C" void exit (int) throw ();' \
2478 'extern "C" void exit (int);' \
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2546 grep -v '^ *+' conftest.er1 >conftest.err
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 if test -n "$ac_declaration"; then
2574 echo '#ifdef __cplusplus' >>confdefs.h
2575 echo $ac_declaration >>confdefs.h
2576 echo '#endif' >>confdefs.h
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 ac_cpp='$CXXCPP $CPPFLAGS'
2593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$CXX"; then
2607 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 CXX=$glibcxx_cv_prog_CXX
2626 if test -n "$CXX"; then
2627 echo "$as_me:$LINENO: result: $CXX" >&5
2628 echo "${ECHO_T}$CXX" >&6
2630 echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2634 test -n "$CXX" && break
2637 if test -z "$CXX"; then
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$ac_ct_CXX"; then
2649 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CXX="$ac_prog"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2668 if test -n "$ac_ct_CXX"; then
2669 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2670 echo "${ECHO_T}$ac_ct_CXX" >&6
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2676 test -n "$ac_ct_CXX" && break
2678 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2684 # Provide some information about the compiler.
2685 echo "$as_me:$LINENO:" \
2686 "checking for C++ compiler version" >&5
2687 ac_compiler=`set X $ac_compile; echo $2`
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2689 (eval $ac_compiler --version </dev/null >&5) 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2694 (eval $ac_compiler -v </dev/null >&5) 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2699 (eval $ac_compiler -V </dev/null >&5) 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
2704 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2706 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_cxx_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2760 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2762 GXX=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CXXFLAGS=${CXXFLAGS+set}
2764 ac_save_CXXFLAGS=$CXXFLAGS
2766 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2767 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cxx_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 cat >conftest.$ac_ext <<_ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2790 grep -v '^ *+' conftest.er1 >conftest.err
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_cxx_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_prog_cxx_g=yes
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2819 if test "$ac_test_CXXFLAGS" = set; then
2820 CXXFLAGS=$ac_save_CXXFLAGS
2821 elif test $ac_cv_prog_cxx_g = yes; then
2822 if test "$GXX" = yes; then
2828 if test "$GXX" = yes; then
2834 for ac_declaration in \
2836 'extern "C" void std::exit (int) throw (); using std::exit;' \
2837 'extern "C" void std::exit (int); using std::exit;' \
2838 'extern "C" void exit (int) throw ();' \
2839 'extern "C" void exit (int);' \
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2862 grep -v '^ *+' conftest.er1 >conftest.err
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_cxx_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_cxx_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 if test -n "$ac_declaration"; then
2935 echo '#ifdef __cplusplus' >>confdefs.h
2936 echo $ac_declaration >>confdefs.h
2937 echo '#endif' >>confdefs.h
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 CXXFLAGS="$save_CXXFLAGS"
2952 am__api_version="1.9"
2953 # Find a good install program. We prefer a C program (faster),
2954 # so one script is as good as another. But avoid the broken or
2955 # incompatible versions:
2956 # SysV /etc/install, /usr/sbin/install
2957 # SunOS /usr/etc/install
2958 # IRIX /sbin/install
2960 # AmigaOS /C/install, which installs bootblocks on floppy discs
2961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2964 # OS/2's system install, which has a completely different semantic
2965 # ./install, which can be erroneously created by make from ./install.sh.
2966 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3011 if test "${ac_cv_path_install+set}" = set; then
3012 INSTALL=$ac_cv_path_install
3014 # As a last resort, use the slow shell script. We don't cache a
3015 # path for INSTALL within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the path is relative.
3018 INSTALL=$ac_install_sh
3021 echo "$as_me:$LINENO: result: $INSTALL" >&5
3022 echo "${ECHO_T}$INSTALL" >&6
3024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3025 # It thinks the first close brace ends the variable substitution.
3026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3032 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3033 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3036 echo timestamp > conftest.file
3037 # Do `set' in a subshell so we don't clobber the current shell's
3038 # arguments. Must try -L first in case configure is actually a
3039 # symlink; some systems play weird games with the mod time of symlinks
3040 # (eg FreeBSD returns the mod time of the symlink's containing
3043 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3044 if test "$*" = "X"; then
3046 set X `ls -t $srcdir/configure conftest.file`
3049 if test "$*" != "X $srcdir/configure conftest.file" \
3050 && test "$*" != "X conftest.file $srcdir/configure"; then
3052 # If neither matched, then we have a broken ls. This can happen
3053 # if, for instance, CONFIG_SHELL is bash and it inherits a
3054 # broken ls alias from the environment. This has actually
3055 # happened. Such a system could not be considered "sane".
3056 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3057 alias in your environment" >&5
3058 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&2;}
3060 { (exit 1); exit 1; }; }
3063 test "$2" = conftest.file
3069 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3070 Check your system clock" >&5
3071 echo "$as_me: error: newly created file is older than distributed files!
3072 Check your system clock" >&2;}
3073 { (exit 1); exit 1; }; }
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3082 # Double any \ or $. echo might interpret backslashes.
3083 # By default was `s,x,x', remove it if useless.
3084 cat <<\_ACEOF >conftest.sed
3085 s/[\\$]/&&/g;s/;s,x,x,$//
3087 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3090 # expand $ac_aux_dir to an absolute path
3091 am_aux_dir=`cd $ac_aux_dir && pwd`
3093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3094 # Use eval to expand $SHELL
3095 if eval "$MISSING --run true"; then
3096 am_missing_run="$MISSING --run "
3099 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3100 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3104 # We used to keeping the `.' as first argument, in order to
3105 # allow $(mkdir_p) to be used without argument. As in
3106 # $(mkdir_p) $(somedir)
3107 # where $(somedir) is conditionally defined. However this is wrong
3109 # 1. if the package is installed by a user who cannot write `.'
3110 # make install will fail,
3111 # 2. the above comment should most certainly read
3112 # $(mkdir_p) $(DESTDIR)$(somedir)
3113 # so it does not work when $(somedir) is undefined and
3114 # $(DESTDIR) is not.
3115 # To support the latter case, we have to write
3116 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3117 # so the `.' trick is pointless.
3118 mkdir_p='mkdir -p --'
3120 # On NextStep and OpenStep, the `mkdir' command does not
3121 # recognize any option. It will interpret all options as
3122 # directories to create, and then abort because `.' already
3124 for d in ./-p ./--version;
3126 test -d $d && rmdir $d
3128 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3129 if test -f "$ac_aux_dir/mkinstalldirs"; then
3130 mkdir_p='$(mkinstalldirs)'
3132 mkdir_p='$(install_sh) -d'
3136 for ac_prog in gawk mawk nawk awk
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_AWK+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 if test -n "$AWK"; then
3146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_AWK="$ac_prog"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$AWK"; then
3166 echo "$as_me:$LINENO: result: $AWK" >&5
3167 echo "${ECHO_T}$AWK" >&6
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3173 test -n "$AWK" && break
3176 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3178 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 cat >conftest.make <<\_ACEOF
3184 @echo 'ac_maketemp="$(MAKE)"'
3186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3187 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3188 if test -n "$ac_maketemp"; then
3189 eval ac_cv_prog_make_${ac_make}_set=yes
3191 eval ac_cv_prog_make_${ac_make}_set=no
3195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 SET_MAKE="MAKE=${MAKE-make}"
3205 rm -rf .tst 2>/dev/null
3206 mkdir .tst 2>/dev/null
3207 if test -d .tst; then
3212 rmdir .tst 2>/dev/null
3214 DEPDIR="${am__leading_dot}deps"
3216 ac_config_commands="$ac_config_commands depfiles"
3219 am_make=${MAKE-make}
3220 cat > confinc << 'END'
3225 # If we don't find an include directive, just comment out the code.
3226 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3227 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3231 # First try GNU make style include.
3232 echo "include confinc" > confmf
3233 # We grep out `Entering directory' and `Leaving directory'
3234 # messages which can occur if `w' ends up in MAKEFLAGS.
3235 # In particular we don't look at `^make:' because GNU make might
3236 # be invoked under some other name (usually "gmake"), in which
3237 # case it prints its new name instead of `make'.
3238 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3243 # Now try BSD make style include.
3244 if test "$am__include" = "#"; then
3245 echo '.include "confinc"' > confmf
3246 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3247 am__include=.include
3254 echo "$as_me:$LINENO: result: $_am_result" >&5
3255 echo "${ECHO_T}$_am_result" >&6
3256 rm -f confinc confmf
3258 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3259 if test "${enable_dependency_tracking+set}" = set; then
3260 enableval="$enable_dependency_tracking"
3263 if test "x$enable_dependency_tracking" != xno; then
3264 am_depcomp="$ac_aux_dir/depcomp"
3269 if test "x$enable_dependency_tracking" != xno; then
3279 # test to see if srcdir already configured
3280 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3281 test -f $srcdir/config.status; then
3282 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3283 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3284 { (exit 1); exit 1; }; }
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3297 # Define the identity of the package.
3299 VERSION='version-unused'
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3311 # Some tools Automake needs.
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3327 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3329 # Installed binaries are usually stripped using `strip' when the user
3330 # run `make install-strip'. However `strip' might not be the right
3331 # tool to use in cross-compilation environments, therefore Automake
3332 # will honor the `STRIP' environment variable to overrule this program.
3333 if test "$cross_compiling" != no; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}strip; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_STRIP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 if test -n "$STRIP"; then
3343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 STRIP=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 echo "$as_me:$LINENO: result: $STRIP" >&5
3364 echo "${ECHO_T}$STRIP" >&6
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3371 if test -z "$ac_cv_prog_STRIP"; then
3373 # Extract the first word of "strip", so it can be a program name with args.
3374 set dummy strip; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if test -n "$ac_ct_STRIP"; then
3381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_STRIP="strip"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3401 if test -n "$ac_ct_STRIP"; then
3402 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3403 echo "${ECHO_T}$ac_ct_STRIP" >&6
3405 echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3411 STRIP="$ac_cv_prog_STRIP"
3415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3417 # We need awk for the "check" target. The system "awk" is bad on
3419 # Always define AMTAR for backward compatibility.
3421 AMTAR=${AMTAR-"${am_missing_run}tar"}
3423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3428 depcc="$CC" am_compiler_list=
3430 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3431 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3432 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3436 # We make a subdir and do the tests there. Otherwise we can end up
3437 # making bogus files that we don't know about and never remove. For
3438 # instance it was reported that on HP-UX the gcc test will end up
3439 # making a dummy file named `D' -- because `-MD' means `put the output
3442 # Copy depcomp to subdir because otherwise we won't find it if we're
3443 # using a relative directory.
3444 cp "$am_depcomp" conftest.dir
3446 # We will build objects and dependencies in a subdirectory because
3447 # it helps to detect inapplicable dependency modes. For instance
3448 # both Tru64's cc and ICC support -MD to output dependencies as a
3449 # side effect of compilation, but ICC will put the dependencies in
3450 # the current directory while Tru64 will put them in the object
3454 am_cv_CC_dependencies_compiler_type=none
3455 if test "$am_compiler_list" = ""; then
3456 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3458 for depmode in $am_compiler_list; do
3459 # Setup a source with many dependencies, because some compilers
3460 # like to wrap large dependency lists on column 80 (with \), and
3461 # we should not choose a depcomp mode which is confused by this.
3463 # We need to recreate these files for each test, as the compiler may
3464 # overwrite some of them when testing with obscure command lines.
3465 # This happens at least with the AIX C compiler.
3467 for i in 1 2 3 4 5 6; do
3468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3470 # Solaris 8's {/usr,}/bin/sh.
3471 touch sub/conftst$i.h
3473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3477 # after this tag, mechanisms are not by side-effect, so they'll
3478 # only be used when explicitly requested
3479 if test "x$enable_dependency_tracking" = xyes; then
3487 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3488 # mode. It turns out that the SunPro C++ compiler does not properly
3489 # handle `-M -o', and we need to detect this.
3490 if depmode=$depmode \
3491 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3493 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3494 >/dev/null 2>conftest.err &&
3495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3496 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3498 # icc doesn't choke on unknown options, it will just issue warnings
3499 # or remarks (even with -Werror). So we grep stderr for any message
3500 # that says an option was ignored or not supported.
3501 # When given -MP, icc 7.0 and 7.1 complain thusly:
3502 # icc: Command line warning: ignoring option '-M'; no argument required
3503 # The diagnosis changed in icc 8.0:
3504 # icc: Command line remark: option '-MP' not supported
3505 if (grep 'ignoring option' conftest.err ||
3506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3507 am_cv_CC_dependencies_compiler_type=$depmode
3516 am_cv_CC_dependencies_compiler_type=none
3520 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3521 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3522 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3527 test "x$enable_dependency_tracking" != xno \
3528 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3530 am__fastdepCC_FALSE='#'
3532 am__fastdepCC_TRUE='#'
3533 am__fastdepCC_FALSE=
3537 depcc="$CXX" am_compiler_list=
3539 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3541 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545 # We make a subdir and do the tests there. Otherwise we can end up
3546 # making bogus files that we don't know about and never remove. For
3547 # instance it was reported that on HP-UX the gcc test will end up
3548 # making a dummy file named `D' -- because `-MD' means `put the output
3551 # Copy depcomp to subdir because otherwise we won't find it if we're
3552 # using a relative directory.
3553 cp "$am_depcomp" conftest.dir
3555 # We will build objects and dependencies in a subdirectory because
3556 # it helps to detect inapplicable dependency modes. For instance
3557 # both Tru64's cc and ICC support -MD to output dependencies as a
3558 # side effect of compilation, but ICC will put the dependencies in
3559 # the current directory while Tru64 will put them in the object
3563 am_cv_CXX_dependencies_compiler_type=none
3564 if test "$am_compiler_list" = ""; then
3565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567 for depmode in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3576 for i in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579 # Solaris 8's {/usr,}/bin/sh.
3580 touch sub/conftst$i.h
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586 # after this tag, mechanisms are not by side-effect, so they'll
3587 # only be used when explicitly requested
3588 if test "x$enable_dependency_tracking" = xyes; then
3596 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3597 # mode. It turns out that the SunPro C++ compiler does not properly
3598 # handle `-M -o', and we need to detect this.
3599 if depmode=$depmode \
3600 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3602 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3603 >/dev/null 2>conftest.err &&
3604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607 # icc doesn't choke on unknown options, it will just issue warnings
3608 # or remarks (even with -Werror). So we grep stderr for any message
3609 # that says an option was ignored or not supported.
3610 # When given -MP, icc 7.0 and 7.1 complain thusly:
3611 # icc: Command line warning: ignoring option '-M'; no argument required
3612 # The diagnosis changed in icc 8.0:
3613 # icc: Command line remark: option '-MP' not supported
3614 if (grep 'ignoring option' conftest.err ||
3615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616 am_cv_CXX_dependencies_compiler_type=$depmode
3625 am_cv_CXX_dependencies_compiler_type=none
3629 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3630 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3631 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3636 test "x$enable_dependency_tracking" != xno \
3637 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3638 am__fastdepCXX_TRUE=
3639 am__fastdepCXX_FALSE='#'
3641 am__fastdepCXX_TRUE='#'
3642 am__fastdepCXX_FALSE=
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}as; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_AS+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -n "$AS"; then
3657 ac_cv_prog_AS="$AS" # Let the user override the test.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_AS="${ac_tool_prefix}as"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 if test -n "$AS"; then
3677 echo "$as_me:$LINENO: result: $AS" >&5
3678 echo "${ECHO_T}$AS" >&6
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3685 if test -z "$ac_cv_prog_AS"; then
3687 # Extract the first word of "as", so it can be a program name with args.
3688 set dummy as; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 if test -n "$ac_ct_AS"; then
3695 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_AS="as"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3714 if test -n "$ac_ct_AS"; then
3715 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3716 echo "${ECHO_T}$ac_ct_AS" >&6
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}ar; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_AR+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if test -n "$AR"; then
3736 ac_cv_prog_AR="$AR" # Let the user override the test.
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_AR="${ac_tool_prefix}ar"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 if test -n "$AR"; then
3756 echo "$as_me:$LINENO: result: $AR" >&5
3757 echo "${ECHO_T}$AR" >&6
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3764 if test -z "$ac_cv_prog_AR"; then
3766 # Extract the first word of "ar", so it can be a program name with args.
3767 set dummy ar; ac_word=$2
3768 echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 if test -n "$ac_ct_AR"; then
3774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_ac_ct_AR="ar"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3793 if test -n "$ac_ct_AR"; then
3794 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3795 echo "${ECHO_T}$ac_ct_AR" >&6
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_RANLIB+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test -n "$RANLIB"; then
3815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 RANLIB=$ac_cv_prog_RANLIB
3834 if test -n "$RANLIB"; then
3835 echo "$as_me:$LINENO: result: $RANLIB" >&5
3836 echo "${ECHO_T}$RANLIB" >&6
3838 echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3843 if test -z "$ac_cv_prog_RANLIB"; then
3844 ac_ct_RANLIB=$RANLIB
3845 # Extract the first word of "ranlib", so it can be a program name with args.
3846 set dummy ranlib; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 if test -n "$ac_ct_RANLIB"; then
3853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_RANLIB="ranlib"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3873 if test -n "$ac_ct_RANLIB"; then
3874 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 RANLIB=$ac_ct_RANLIB
3883 RANLIB="$ac_cv_prog_RANLIB"
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 # Account for people who put trailing slashes in PATH elements.
3913 ./ | .// | /cC/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3921 for ac_prog in ginstall scoinst install; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3924 if test $ac_prog = install &&
3925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3928 elif test $ac_prog = install &&
3929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3945 if test "${ac_cv_path_install+set}" = set; then
3946 INSTALL=$ac_cv_path_install
3948 # As a last resort, use the slow shell script. We don't cache a
3949 # path for INSTALL within a source directory, because that will
3950 # break other packages using the cache if that directory is
3951 # removed, or if the path is relative.
3952 INSTALL=$ac_install_sh
3955 echo "$as_me:$LINENO: result: $INSTALL" >&5
3956 echo "${ECHO_T}$INSTALL" >&6
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3968 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3969 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3970 if test "${enable_maintainer_mode+set}" = set; then
3971 enableval="$enable_maintainer_mode"
3972 USE_MAINTAINER_MODE=$enableval
3974 USE_MAINTAINER_MODE=no
3976 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3977 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3980 if test $USE_MAINTAINER_MODE = yes; then
3981 MAINTAINER_MODE_TRUE=
3982 MAINTAINER_MODE_FALSE='#'
3984 MAINTAINER_MODE_TRUE='#'
3985 MAINTAINER_MODE_FALSE=
3988 MAINT=$MAINTAINER_MODE_TRUE
3994 # configure.host sets the following important variables
3995 # libgcj_cflags - host specific C compiler flags
3996 # libgcj_cxxflags - host specific C++ compiler flags
3997 # libgcj_javaflags - host specific Java compiler flags
4003 . ${srcdir}/configure.host
4005 LIBGCJ_CFLAGS="${libgcj_cflags}"
4006 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4007 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4008 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4014 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4017 # Only use libltdl for non-newlib builds.
4018 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4019 case $enable_ltdl_convenience in
4020 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4021 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4022 { (exit 1); exit 1; }; } ;;
4023 "") enable_ltdl_convenience=yes
4024 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4026 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4027 INCLTDL='-I${top_srcdir}/''libltdl'
4032 cat >>confdefs.h <<\_ACEOF
4036 # Sigh. Libtool's macro doesn't do the right thing.
4037 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4038 # FIXME: this is a hack.
4039 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4040 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4045 # Check whether --enable-shared or --disable-shared was given.
4046 if test "${enable_shared+set}" = set; then
4047 enableval="$enable_shared"
4048 p=${PACKAGE-default}
4050 yes) enable_shared=yes ;;
4051 no) enable_shared=no ;;
4054 # Look at the argument we got. We use all the common list separators.
4055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4056 for pkg in $enableval; do
4057 if test "X$pkg" = "X$p"; then
4067 # Check whether --enable-static or --disable-static was given.
4068 if test "${enable_static+set}" = set; then
4069 enableval="$enable_static"
4070 p=${PACKAGE-default}
4072 yes) enable_static=yes ;;
4073 no) enable_static=no ;;
4076 # Look at the argument we got. We use all the common list separators.
4077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4078 for pkg in $enableval; do
4079 if test "X$pkg" = "X$p"; then
4089 # Check whether --enable-fast-install or --disable-fast-install was given.
4090 if test "${enable_fast_install+set}" = set; then
4091 enableval="$enable_fast_install"
4092 p=${PACKAGE-default}
4094 yes) enable_fast_install=yes ;;
4095 no) enable_fast_install=no ;;
4097 enable_fast_install=no
4098 # Look at the argument we got. We use all the common list separators.
4099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4100 for pkg in $enableval; do
4101 if test "X$pkg" = "X$p"; then
4102 enable_fast_install=yes
4109 enable_fast_install=yes
4112 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4113 if test "${with_gnu_ld+set}" = set; then
4114 withval="$with_gnu_ld"
4115 test "$withval" = no || with_gnu_ld=yes
4120 if test "$GCC" = yes; then
4121 # Check if gcc -print-prog-name=ld gives a path.
4122 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4123 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4126 # gcc leaves a trailing carriage return which upsets mingw
4127 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4129 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4132 # Accept absolute paths.
4133 [\\/]* | [A-Za-z]:[\\/]*)
4134 re_direlt='/[^/][^/]*/\.\./'
4135 # Canonicalize the path of ld
4136 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4137 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4138 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4140 test -z "$LD" && LD="$ac_prog"
4143 # If it fails, then pretend we aren't using GCC.
4147 # If it is relative, then search for the first ld in PATH.
4151 elif test "$with_gnu_ld" = yes; then
4152 echo "$as_me:$LINENO: checking for GNU ld" >&5
4153 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4155 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4156 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4158 if test "${lt_cv_path_LD+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -z "$LD"; then
4162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4163 for ac_dir in $PATH; do
4164 test -z "$ac_dir" && ac_dir=.
4165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4166 lt_cv_path_LD="$ac_dir/$ac_prog"
4167 # Check to see if the program is GNU ld. I'd rather use --version,
4168 # but apparently some GNU ld's only accept -v.
4169 # Break only if it was the GNU/non-GNU ld that we prefer.
4170 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4171 test "$with_gnu_ld" != no && break
4173 test "$with_gnu_ld" != yes && break
4179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4184 if test -n "$LD"; then
4185 echo "$as_me:$LINENO: result: $LD" >&5
4186 echo "${ECHO_T}$LD" >&6
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4193 { (exit 1); exit 1; }; }
4194 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4200 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4201 lt_cv_prog_gnu_ld=yes
4203 lt_cv_prog_gnu_ld=no
4206 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4207 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4208 with_gnu_ld=$lt_cv_prog_gnu_ld
4211 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4212 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4213 if test "${lt_cv_ld_reload_flag+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 lt_cv_ld_reload_flag='-r'
4218 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4219 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4220 reload_flag=$lt_cv_ld_reload_flag
4221 test -n "$reload_flag" && reload_flag=" $reload_flag"
4223 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4224 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4225 if test "${lt_cv_path_NM+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 if test -n "$NM"; then
4229 # Let the user override the test.
4232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4233 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4234 test -z "$ac_dir" && ac_dir=.
4235 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4236 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4237 # Check to see if the nm accepts a BSD-compat flag.
4238 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4239 # nm: unknown option "B" ignored
4240 # Tru64's nm complains that /dev/null is an invalid object file
4241 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4242 lt_cv_path_NM="$tmp_nm -B"
4244 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4245 lt_cv_path_NM="$tmp_nm -p"
4248 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4249 continue # so that we can try to find one that supports BSD flags
4254 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4259 echo "$as_me:$LINENO: result: $NM" >&5
4260 echo "${ECHO_T}$NM" >&6
4262 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4263 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4264 if test "${lt_cv_deplibs_check_method+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 lt_cv_file_magic_cmd='$MAGIC_CMD'
4268 lt_cv_file_magic_test_file=
4269 lt_cv_deplibs_check_method='unknown'
4270 # Need to set the preceding variable on all platforms that support
4271 # interlibrary dependencies.
4272 # 'none' -- dependencies not supported.
4273 # `unknown' -- same as none, but documents that we really don't know.
4274 # 'pass_all' -- all dependencies passed with no checks.
4275 # 'test_compile' -- check by making test program.
4276 # 'file_magic [regex]' -- check by looking for files in library path
4277 # which responds to the $file_magic_cmd with a given egrep regex.
4278 # If you have `file' or equivalent on your system and you're not sure
4279 # whether `pass_all' will *always* work, you probably want this one.
4283 lt_cv_deplibs_check_method=pass_all
4287 lt_cv_deplibs_check_method=pass_all
4291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4292 lt_cv_file_magic_cmd='/usr/bin/file -L'
4293 lt_cv_file_magic_test_file=/shlib/libc.so
4296 cygwin* | mingw* |pw32*)
4297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4298 lt_cv_file_magic_cmd='$OBJDUMP -f'
4301 darwin* | rhapsody*)
4302 # this will be overwritten by pass_all, but leave it in just in case
4303 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4304 lt_cv_file_magic_cmd='/usr/bin/file -L'
4306 rhapsody* | darwin1.012)
4307 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4310 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4313 lt_cv_deplibs_check_method=pass_all
4316 freebsd* | kfreebsd*-gnu)
4317 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4320 # Not sure whether the presence of OpenBSD here was a mistake.
4321 # Let's accept both of them until this is cleared up.
4322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4323 lt_cv_file_magic_cmd=/usr/bin/file
4324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4328 lt_cv_deplibs_check_method=pass_all
4333 lt_cv_deplibs_check_method=pass_all
4339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4340 lt_cv_file_magic_cmd=/usr/bin/file
4341 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4345 lt_cv_file_magic_cmd=/usr/bin/file
4346 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4354 # this will be overridden with pass_all, but let us keep it just in case
4355 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4359 *-32|*"-32 ") libmagic=32-bit;;
4360 *-n32|*"-n32 ") libmagic=N32;;
4361 *-64|*"-64 ") libmagic=64-bit;;
4362 *) libmagic=never-match;;
4364 # this will be overridden with pass_all, but let us keep it just in case
4365 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4368 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4369 lt_cv_deplibs_check_method=pass_all
4372 # This must be Linux ELF.
4374 lt_cv_deplibs_check_method=pass_all
4377 netbsd* | knetbsd*-gnu)
4378 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4379 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4381 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4387 lt_cv_file_magic_cmd=/usr/bin/file
4388 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4391 osf3* | osf4* | osf5*)
4392 # this will be overridden with pass_all, but let us keep it just in case
4393 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4394 lt_cv_file_magic_test_file=/shlib/libc.so
4395 lt_cv_deplibs_check_method=pass_all
4399 lt_cv_deplibs_check_method=pass_all
4403 lt_cv_deplibs_check_method=pass_all
4404 lt_cv_file_magic_test_file=/lib/libc.so
4407 sysv5uw[78]* | sysv4*uw2*)
4408 lt_cv_deplibs_check_method=pass_all
4411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4412 case $host_vendor in
4414 lt_cv_deplibs_check_method=pass_all
4417 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]'
4418 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4425 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4426 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4427 file_magic_cmd=$lt_cv_file_magic_cmd
4428 deplibs_check_method=$lt_cv_deplibs_check_method
4433 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4435 # find the maximum length of command line arguments
4436 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4437 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4438 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 # On DJGPP, this test can blow up pretty badly due to problems in libc
4447 # (any single argument exceeding 2000 bytes causes a buffer overrun
4448 # during glob expansion). Even if it were fixed, the result of this
4449 # check would be larger than it should be.
4450 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4454 # On Win9x/ME, this test blows up -- it succeeds, but takes
4455 # about 5 minutes as the teststring grows exponentially.
4456 # Worse, since 9x/ME are not pre-emptively multitasking,
4457 # you end up with a "frozen" computer, even though with patience
4458 # the test eventually succeeds (with a max line length of 256k).
4459 # Instead, let's just punt: use the minimum linelength reported by
4460 # all of the supported platforms: 8192 (on NT/2K/XP).
4461 lt_cv_sys_max_cmd_len=8192;
4465 # On AmigaOS with pdksh, this test takes hours, literally.
4466 # So we just punt and use a minimum line length of 8192.
4467 lt_cv_sys_max_cmd_len=8192;
4470 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4471 # This has been around since 386BSD, at least. Likely further.
4472 if test -x /sbin/sysctl; then
4473 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4474 elif test -x /usr/sbin/sysctl; then
4475 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4477 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4479 # And add a safety zone
4480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4487 if test -n "$lt_cv_sys_max_cmd_len" ; then
4488 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4489 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4491 echo "$as_me:$LINENO: result: none" >&5
4492 echo "${ECHO_T}none" >&6
4496 # Only perform the check for file, if the check method requires it
4497 case $deplibs_check_method in
4499 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4500 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4501 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4502 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4513 ac_save_MAGIC_CMD="$MAGIC_CMD"
4514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4515 ac_dummy="/usr/bin:$PATH"
4516 for ac_dir in $ac_dummy; do
4517 test -z "$ac_dir" && ac_dir=.
4518 if test -f $ac_dir/${ac_tool_prefix}file; then
4519 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4520 if test -n "$file_magic_test_file"; then
4521 case $deplibs_check_method in
4523 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4526 egrep "$file_magic_regex" > /dev/null; then
4531 *** Warning: the command libtool uses to detect shared libraries,
4532 *** $file_magic_cmd, produces output that libtool cannot recognize.
4533 *** The result is that libtool may fail to recognize shared libraries
4534 *** as such. This will affect the creation of libtool libraries that
4535 *** depend on shared libraries, but programs linked with such libtool
4536 *** libraries will work regardless of this problem. Nevertheless, you
4537 *** may want to report the problem to your system manager and/or to
4538 *** bug-libtool@gnu.org
4548 MAGIC_CMD="$ac_save_MAGIC_CMD"
4553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4554 if test -n "$MAGIC_CMD"; then
4555 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4556 echo "${ECHO_T}$MAGIC_CMD" >&6
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4562 if test -z "$lt_cv_path_MAGIC_CMD"; then
4563 if test -n "$ac_tool_prefix"; then
4564 echo "$as_me:$LINENO: checking for file" >&5
4565 echo $ECHO_N "checking for file... $ECHO_C" >&6
4566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4577 ac_save_MAGIC_CMD="$MAGIC_CMD"
4578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4579 ac_dummy="/usr/bin:$PATH"
4580 for ac_dir in $ac_dummy; do
4581 test -z "$ac_dir" && ac_dir=.
4582 if test -f $ac_dir/file; then
4583 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4584 if test -n "$file_magic_test_file"; then
4585 case $deplibs_check_method in
4587 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4590 egrep "$file_magic_regex" > /dev/null; then
4595 *** Warning: the command libtool uses to detect shared libraries,
4596 *** $file_magic_cmd, produces output that libtool cannot recognize.
4597 *** The result is that libtool may fail to recognize shared libraries
4598 *** as such. This will affect the creation of libtool libraries that
4599 *** depend on shared libraries, but programs linked with such libtool
4600 *** libraries will work regardless of this problem. Nevertheless, you
4601 *** may want to report the problem to your system manager and/or to
4602 *** bug-libtool@gnu.org
4612 MAGIC_CMD="$ac_save_MAGIC_CMD"
4617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4618 if test -n "$MAGIC_CMD"; then
4619 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4620 echo "${ECHO_T}$MAGIC_CMD" >&6
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4635 if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 if test -n "$RANLIB"; then
4644 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 RANLIB=$ac_cv_prog_RANLIB
4663 if test -n "$RANLIB"; then
4664 echo "$as_me:$LINENO: result: $RANLIB" >&5
4665 echo "${ECHO_T}$RANLIB" >&6
4667 echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4672 if test -z "$ac_cv_prog_RANLIB"; then
4673 ac_ct_RANLIB=$RANLIB
4674 # Extract the first word of "ranlib", so it can be a program name with args.
4675 set dummy ranlib; 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_RANLIB+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 if test -n "$ac_ct_RANLIB"; then
4682 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4701 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4702 if test -n "$ac_ct_RANLIB"; then
4703 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4704 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4706 echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4710 RANLIB=$ac_ct_RANLIB
4712 RANLIB="$ac_cv_prog_RANLIB"
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}strip; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_STRIP+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 if test -n "$STRIP"; then
4724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 STRIP=$ac_cv_prog_STRIP
4743 if test -n "$STRIP"; then
4744 echo "$as_me:$LINENO: result: $STRIP" >&5
4745 echo "${ECHO_T}$STRIP" >&6
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4752 if test -z "$ac_cv_prog_STRIP"; then
4754 # Extract the first word of "strip", so it can be a program name with args.
4755 set dummy strip; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$ac_ct_STRIP"; then
4762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_STRIP="strip"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782 if test -n "$ac_ct_STRIP"; then
4783 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784 echo "${ECHO_T}$ac_ct_STRIP" >&6
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4792 STRIP="$ac_cv_prog_STRIP"
4796 # Check for any special flags to pass to ltconfig.
4797 libtool_flags="--cache-file=$cache_file"
4798 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4799 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4800 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4801 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4802 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4805 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4806 if test "${enable_libtool_lock+set}" = set; then
4807 enableval="$enable_libtool_lock"
4810 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4811 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4814 # Check whether --with-pic or --without-pic was given.
4815 if test "${with_pic+set}" = set; then
4821 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4822 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4824 # Some flags need to be propagated to the compiler or linker for good
4828 # Find out which ABI we are using.
4829 echo '#line 4829 "configure"' > conftest.$ac_ext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; then
4835 if test "$lt_cv_prog_gnu_ld" = yes; then
4836 case `/usr/bin/file conftest.$ac_objext` in
4838 LD="${LD-ld} -melf32bsmip"
4841 LD="${LD-ld} -melf32bmipn32"
4844 LD="${LD-ld} -melf64bmip"
4848 case `/usr/bin/file conftest.$ac_objext` in
4865 # Find out which ABI we are using.
4866 echo 'int i;' > conftest.$ac_ext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; then
4872 case "`/usr/bin/file conftest.o`" in
4884 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4885 # Find out which ABI we are using.
4886 echo 'int i;' > conftest.$ac_ext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4888 (eval $ac_compile) 2>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; then
4892 case "`/usr/bin/file conftest.o`" in
4896 LD="${LD-ld} -m elf_i386"
4898 ppc64-*linux*|powerpc64-*linux*)
4899 LD="${LD-ld} -m elf32ppclinux"
4902 LD="${LD-ld} -m elf_s390"
4905 LD="${LD-ld} -m elf32_sparc"
4912 LD="${LD-ld} -m elf_x86_64"
4914 ppc*-*linux*|powerpc*-*linux*)
4915 LD="${LD-ld} -m elf64ppc"
4918 LD="${LD-ld} -m elf64_s390"
4921 LD="${LD-ld} -m elf64_sparc"
4931 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4932 SAVE_CFLAGS="$CFLAGS"
4933 CFLAGS="$CFLAGS -belf"
4934 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4935 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4936 if test "${lt_cv_cc_needs_belf+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 if test x$gcc_no_link = xyes; then
4948 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4950 { (exit 1); exit 1; }; }
4952 cat >conftest.$ac_ext <<_ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4967 rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969 (eval $ac_link) 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -z "$ac_c_werror_flag"
4977 || test ! -s conftest.err'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; } &&
4983 { ac_try='test -s conftest$ac_exeext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 lt_cv_cc_needs_belf=yes
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 lt_cv_cc_needs_belf=no
4996 rm -f conftest.err conftest.$ac_objext \
4997 conftest$ac_exeext conftest.$ac_ext
4999 ac_cpp='$CPP $CPPFLAGS'
5000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5006 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5007 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5008 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5009 CFLAGS="$SAVE_CFLAGS"
5017 # Save cache, so that ltconfig can load it
5018 cat >confcache <<\_ACEOF
5019 # This file is a shell script that caches the results of configure
5020 # tests run on this system so they can be shared between configure
5021 # scripts and configure runs, see configure's option --config-cache.
5022 # It is not useful on other systems. If it contains results you don't
5023 # want to keep, you may remove or edit it.
5025 # config.status only pays attention to the cache file if you give it
5026 # the --recheck option to rerun configure.
5028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5034 # The following way of writing the cache mishandles newlines in values,
5035 # but we know of no workaround that is simple, portable, and efficient.
5036 # So, don't put newlines in cache variables' values.
5037 # Ultrix sh set writes to stderr and can't be redirected directly,
5038 # and sets the high bit in the cache file unless we assign to the vars.
5041 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5043 # `set' does not quote correctly, so add quotes (double-quote
5044 # substitution turns \\\\ into \\, and sed turns \\ into \).
5047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5050 # `set' quotes correctly as required by POSIX, so do not add quotes.
5052 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5061 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5063 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5064 if test -w $cache_file; then
5065 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5066 cat confcache >$cache_file
5068 echo "not updating unwritable cache $cache_file"
5073 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5074 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5075 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5076 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5077 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5078 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5079 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5080 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5081 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5082 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5083 echo "$as_me: error: libtool configure failed" >&2;}
5084 { (exit 1); exit 1; }; }
5086 # Reload cache, that may have been modified by ltconfig
5087 if test -r "$cache_file"; then
5088 # Some versions of bash will fail to source /dev/null (special
5089 # files actually), so we avoid doing that.
5090 if test -f "$cache_file"; then
5091 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5092 echo "$as_me: loading cache $cache_file" >&6;}
5094 [\\/]* | ?:[\\/]* ) . $cache_file;;
5095 *) . ./$cache_file;;
5099 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5100 echo "$as_me: creating cache $cache_file" >&6;}
5105 # This can be used to rebuild libtool when needed
5106 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5108 # Always use our own libtool.
5109 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5111 # Redirect the config.log output again, so that the ltconfig log is not
5112 # clobbered by the next message.
5113 exec 5>>./config.log
5116 ac_cpp='$CXXCPP $CPPFLAGS'
5117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5120 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5121 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5122 if test -z "$CXXCPP"; then
5123 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 # Double quotes because CXXCPP needs to be expanded
5127 for CXXCPP in "$CXX -E" "/lib/cpp"
5130 for ac_cxx_preproc_warn_flag in '' yes
5132 # Use a header file that comes with gcc, so configuring glibc
5133 # with a fresh cross-compiler works.
5134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135 # <limits.h> exists even on freestanding compilers.
5136 # On the NeXT, cc -E runs the code through the compiler's parser,
5137 # not just through cpp. "Syntax error" is here to catch this case.
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5145 # include <limits.h>
5147 # include <assert.h>
5151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5154 grep -v '^ *+' conftest.er1 >conftest.err
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } >/dev/null; then
5159 if test -s conftest.err; then
5160 ac_cpp_err=$ac_cxx_preproc_warn_flag
5161 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5168 if test -z "$ac_cpp_err"; then
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 # Broken: fails on valid input.
5177 rm -f conftest.err conftest.$ac_ext
5179 # OK, works on sane cases. Now check whether non-existent headers
5180 # can be detected and how.
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <ac_nonexistent.h>
5189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null; then
5197 if test -s conftest.err; then
5198 ac_cpp_err=$ac_cxx_preproc_warn_flag
5199 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5206 if test -z "$ac_cpp_err"; then
5207 # Broken: success on invalid input.
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 # Passes both tests.
5217 rm -f conftest.err conftest.$ac_ext
5220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5221 rm -f conftest.err conftest.$ac_ext
5222 if $ac_preproc_ok; then
5227 ac_cv_prog_CXXCPP=$CXXCPP
5230 CXXCPP=$ac_cv_prog_CXXCPP
5232 ac_cv_prog_CXXCPP=$CXXCPP
5234 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5235 echo "${ECHO_T}$CXXCPP" >&6
5237 for ac_cxx_preproc_warn_flag in '' yes
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 # <limits.h> exists even on freestanding compilers.
5243 # On the NeXT, cc -E runs the code through the compiler's parser,
5244 # not just through cpp. "Syntax error" is here to catch this case.
5245 cat >conftest.$ac_ext <<_ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5252 # include <limits.h>
5254 # include <assert.h>
5258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } >/dev/null; then
5266 if test -s conftest.err; then
5267 ac_cpp_err=$ac_cxx_preproc_warn_flag
5268 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5275 if test -z "$ac_cpp_err"; then
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 # Broken: fails on valid input.
5284 rm -f conftest.err conftest.$ac_ext
5286 # OK, works on sane cases. Now check whether non-existent headers
5287 # can be detected and how.
5288 cat >conftest.$ac_ext <<_ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 #include <ac_nonexistent.h>
5296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5299 grep -v '^ *+' conftest.er1 >conftest.err
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } >/dev/null; then
5304 if test -s conftest.err; then
5305 ac_cpp_err=$ac_cxx_preproc_warn_flag
5306 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5313 if test -z "$ac_cpp_err"; then
5314 # Broken: success on invalid input.
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 # Passes both tests.
5324 rm -f conftest.err conftest.$ac_ext
5327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5328 rm -f conftest.err conftest.$ac_ext
5329 if $ac_preproc_ok; then
5332 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5333 See \`config.log' for more details." >&5
5334 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5335 See \`config.log' for more details." >&2;}
5336 { (exit 1); exit 1; }; }
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5349 lt_save_CFLAGS="$CFLAGS"
5350 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5351 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5352 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5353 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5354 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5355 deplibs_check_method="$deplibs_check_method" \
5356 file_magic_cmd="$file_magic_cmd" \
5357 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5358 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5359 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5360 echo "$as_me: error: libtool tag configuration failed" >&2;}
5361 { (exit 1); exit 1; }; }
5363 CFLAGS="$lt_save_CFLAGS"
5365 # Redirect the config.log output again, so that the ltconfig log is not
5366 # clobbered by the next message.
5367 exec 5>>./config.log
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_prog_GCJ+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 if test -n "$GCJ"; then
5385 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_GCJ="$ac_prog"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 if test -n "$GCJ"; then
5405 echo "$as_me:$LINENO: result: $GCJ" >&5
5406 echo "${ECHO_T}$GCJ" >&6
5408 echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5412 test -n "$GCJ" && break
5414 test -n "$GCJ" || GCJ="gcj"
5416 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5417 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5418 { (exit 1); exit 1; }; }
5419 if test "x${GCJFLAGS-unset}" = xunset; then
5424 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5426 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5427 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5428 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5432 # We make a subdir and do the tests there. Otherwise we can end up
5433 # making bogus files that we don't know about and never remove. For
5434 # instance it was reported that on HP-UX the gcc test will end up
5435 # making a dummy file named `D' -- because `-MD' means `put the output
5438 # Copy depcomp to subdir because otherwise we won't find it if we're
5439 # using a relative directory.
5440 cp "$am_depcomp" conftest.dir
5442 # We will build objects and dependencies in a subdirectory because
5443 # it helps to detect inapplicable dependency modes. For instance
5444 # both Tru64's cc and ICC support -MD to output dependencies as a
5445 # side effect of compilation, but ICC will put the dependencies in
5446 # the current directory while Tru64 will put them in the object
5450 am_cv_GCJ_dependencies_compiler_type=none
5451 if test "$am_compiler_list" = ""; then
5452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5454 for depmode in $am_compiler_list; do
5455 # Setup a source with many dependencies, because some compilers
5456 # like to wrap large dependency lists on column 80 (with \), and
5457 # we should not choose a depcomp mode which is confused by this.
5459 # We need to recreate these files for each test, as the compiler may
5460 # overwrite some of them when testing with obscure command lines.
5461 # This happens at least with the AIX C compiler.
5463 for i in 1 2 3 4 5 6; do
5464 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5465 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5466 # Solaris 8's {/usr,}/bin/sh.
5467 touch sub/conftst$i.h
5469 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5473 # after this tag, mechanisms are not by side-effect, so they'll
5474 # only be used when explicitly requested
5475 if test "x$enable_dependency_tracking" = xyes; then
5483 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5484 # mode. It turns out that the SunPro C++ compiler does not properly
5485 # handle `-M -o', and we need to detect this.
5486 if depmode=$depmode \
5487 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5489 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5490 >/dev/null 2>conftest.err &&
5491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5492 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5494 # icc doesn't choke on unknown options, it will just issue warnings
5495 # or remarks (even with -Werror). So we grep stderr for any message
5496 # that says an option was ignored or not supported.
5497 # When given -MP, icc 7.0 and 7.1 complain thusly:
5498 # icc: Command line warning: ignoring option '-M'; no argument required
5499 # The diagnosis changed in icc 8.0:
5500 # icc: Command line remark: option '-MP' not supported
5501 if (grep 'ignoring option' conftest.err ||
5502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5503 am_cv_GCJ_dependencies_compiler_type=$depmode
5512 am_cv_GCJ_dependencies_compiler_type=none
5516 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5517 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5518 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5523 test "x$enable_dependency_tracking" != xno \
5524 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5525 am__fastdepGCJ_TRUE=
5526 am__fastdepGCJ_FALSE='#'
5528 am__fastdepGCJ_TRUE='#'
5529 am__fastdepGCJ_FALSE=
5535 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5537 lt_save_CFLAGS="$CFLAGS"
5538 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5539 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5540 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5541 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5542 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5543 deplibs_check_method="$deplibs_check_method" \
5544 file_magic_cmd="$file_magic_cmd" \
5545 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5546 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5547 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5548 echo "$as_me: error: libtool tag configuration failed" >&2;}
5549 { (exit 1); exit 1; }; }
5551 CFLAGS="$lt_save_CFLAGS"
5553 # Redirect the config.log output again, so that the ltconfig log is not
5554 # clobbered by the next message.
5555 exec 5>>./config.log
5559 if test "x$CC" != xcc; then
5560 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5561 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5563 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5564 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5566 set dummy $CC; ac_cc=`echo $2 |
5567 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5568 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5586 # Make sure it works both with $CC and with simple cc.
5587 # We do the test twice because some compilers refuse to overwrite an
5588 # existing .o file with -o, though they will create one.
5589 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5590 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); };
5601 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5602 if test "x$CC" != xcc; then
5603 # Test first that cc exists at all.
5604 if { ac_try='cc -c conftest.$ac_ext >&5'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5611 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); };
5625 # cc exists but doesn't like -o.
5626 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5631 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5636 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5637 echo "$as_me:$LINENO: result: yes" >&5
5638 echo "${ECHO_T}yes" >&6
5640 echo "$as_me:$LINENO: result: no" >&5
5641 echo "${ECHO_T}no" >&6
5643 cat >>confdefs.h <<\_ACEOF
5644 #define NO_MINUS_C_MINUS_O 1
5649 # FIXME: we rely on the cache variable name because
5650 # there is no other way.
5652 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5653 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5654 # Losing compiler, so override with the script.
5655 # FIXME: It is wrong to rewrite CC.
5656 # But if we don't then we get into trouble of one sort or another.
5657 # A longer-term fix would be to have automake use am__CC in this case,
5658 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5659 CC="$am_aux_dir/compile $CC"
5664 subdirs="$subdirs libltdl"
5667 # The -no-testsuite modules omit the test subdir.
5670 if test -d $srcdir/testsuite; then
5672 TESTSUBDIR_FALSE='#'
5679 # Should the runtime set system properties by examining the
5680 # environment variable GCJ_PROPERTIES?
5681 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5682 if test "${enable_getenv_properties+set}" = set; then
5683 enableval="$enable_getenv_properties"
5687 # Whether GCJ_PROPERTIES is used depends on the target.
5688 if test -z "$enable_getenv_properties"; then
5689 enable_getenv_properties=${enable_getenv_properties_default-yes}
5691 if test "$enable_getenv_properties" = no; then
5693 cat >>confdefs.h <<\_ACEOF
5694 #define DISABLE_GETENV_PROPERTIES 1
5699 # Whether we should use arguments to main()
5700 if test -z "$enable_main_args"; then
5701 enable_main_args=${enable_main_args_default-yes}
5703 if test "$enable_main_args" = no; then
5705 cat >>confdefs.h <<\_ACEOF
5706 #define DISABLE_MAIN_ARGS 1
5712 # Should we use hashtable-based synchronization?
5713 # Currently works only for Linux X86/ia64
5714 # Typically faster and more space-efficient
5715 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5716 if test "${enable_hash_synchronization+set}" = set; then
5717 enableval="$enable_hash_synchronization"
5721 if test -z "$enable_hash_synchronization"; then
5722 enable_hash_synchronization=$enable_hash_synchronization_default
5726 # Check whether --with-java-home or --without-java-home was given.
5727 if test "${with_java_home+set}" = set; then
5728 withval="$with_java_home"
5729 JAVA_HOME="${withval}"
5735 if test ! -z "$JAVA_HOME"; then
5737 JAVA_HOME_SET_FALSE='#'
5739 JAVA_HOME_SET_TRUE='#'
5740 JAVA_HOME_SET_FALSE=
5745 # What is the native OS API for MinGW?
5747 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5748 if test "${with_win32_nlsapi+set}" = set; then
5749 withval="$with_win32_nlsapi"
5750 case "${withval}" in
5751 ansi) with_win32_nlsapi=ansi ;;
5752 unicows) with_win32_nlsapi=unicows ;;
5753 unicode) with_win32_nlsapi=unicode ;;
5754 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5755 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5756 { (exit 1); exit 1; }; } ;;
5759 with_win32_nlsapi=ansi
5762 case "${with_win32_nlsapi}" in
5765 cat >>confdefs.h <<\_ACEOF
5766 #define MINGW_LIBGCJ_UNICODE 1
5772 # configure.host sets slow_pthread_self if the synchronization code should
5773 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5774 if test "${slow_pthread_self}" = "yes"; then
5776 cat >>confdefs.h <<\_ACEOF
5777 #define SLOW_PTHREAD_SELF 1
5783 # See if the user has requested runtime debugging.
5786 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5787 if test "${enable_libgcj_debug+set}" = set; then
5788 enableval="$enable_libgcj_debug"
5789 if test "$enable_libgcj_debug" = yes; then
5791 cat >>confdefs.h <<\_ACEOF
5799 # Check for gc debugging. This option is handled both here and in the GC.
5800 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5801 if test "${enable_gc_debug+set}" = set; then
5802 enableval="$enable_gc_debug"
5803 if test "$enable_gc_debug" = "yes"; then
5805 cat >>confdefs.h <<\_ACEOF
5806 #define LIBGCJ_GC_DEBUG 1
5812 # See if the user has the interpreter included.
5813 # Check whether --enable-interpreter or --disable-interpreter was given.
5814 if test "${enable_interpreter+set}" = set; then
5815 enableval="$enable_interpreter"
5816 if test "$enable_interpreter" = yes; then
5817 # This can also be set in configure.host.
5818 libgcj_interpreter=yes
5819 elif test "$enable_interpreter" = no; then
5820 libgcj_interpreter=no
5824 if test "$libgcj_interpreter" = yes; then
5826 cat >>confdefs.h <<\_ACEOF
5827 #define INTERPRETER 1
5831 INTERPRETER="$libgcj_interpreter"
5834 echo "$as_me:$LINENO: checking for exception model to use" >&5
5835 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5837 ac_cpp='$CXXCPP $CPPFLAGS'
5838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5842 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5843 if test "${enable_sjlj_exceptions+set}" = set; then
5844 enableval="$enable_sjlj_exceptions"
5847 cat > conftest.$ac_ext << EOF
5848 #line 5848 "configure"
5857 old_CXXFLAGS="$CXXFLAGS"
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; then
5864 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5865 enable_sjlj_exceptions=yes
5866 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5867 enable_sjlj_exceptions=no
5870 CXXFLAGS="$old_CXXFLAGS"
5873 if test x$enable_sjlj_exceptions = xyes; then
5875 cat >>confdefs.h <<\_ACEOF
5876 #define SJLJ_EXCEPTIONS 1
5879 ac_exception_model_name=sjlj
5880 elif test x$enable_sjlj_exceptions = xno; then
5881 ac_exception_model_name="call frame"
5883 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5884 echo "$as_me: error: unable to detect exception model" >&2;}
5885 { (exit 1); exit 1; }; }
5888 ac_cpp='$CPP $CPPFLAGS'
5889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5894 echo "${ECHO_T}$ac_exception_model_name" >&6
5896 # If we are non using SJLJ exceptions, and this host does not have support
5897 # for unwinding from a signal handler, enable checked dereferences and divides.
5898 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5899 CHECKREFSPEC=-fcheck-references
5900 DIVIDESPEC=-fuse-divide-subroutine
5904 # See if the user wants to disable java.net. This is the mildly
5905 # ugly way that we admit that target-side configuration sucks.
5906 # Check whether --enable-java-net or --disable-java-net was given.
5907 if test "${enable_java_net+set}" = set; then
5908 enableval="$enable_java_net"
5912 # Whether java.net is built by default can depend on the target.
5913 if test -z "$enable_java_net"; then
5914 enable_java_net=${enable_java_net_default-yes}
5916 if test "$enable_java_net" = no; then
5918 cat >>confdefs.h <<\_ACEOF
5919 #define DISABLE_JAVA_NET 1
5924 # See if the user wants to configure without libffi. Some
5925 # architectures don't support it, and default values are set in
5928 # Check whether --with-libffi or --without-libffi was given.
5929 if test "${with_libffi+set}" = set; then
5930 withval="$with_libffi"
5933 with_libffi=${with_libffi_default-yes}
5938 if test "$with_libffi" != no; then
5940 cat >>confdefs.h <<\_ACEOF
5941 #define USE_LIBFFI 1
5944 LIBFFI=../libffi/libffi_convenience.la
5945 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5950 # See if the user wants to disable JVMPI support.
5951 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5952 if test "${enable_jvmpi+set}" = set; then
5953 enableval="$enable_jvmpi"
5957 if test "$enable_jvmpi" != no; then
5959 cat >>confdefs.h <<\_ACEOF
5960 #define ENABLE_JVMPI 1
5965 # If the target is an eCos system, use the appropriate eCos
5967 # FIXME: this should not be a local option but a global target
5968 # system; at present there is no eCos target.
5969 TARGET_ECOS=${PROCESS-"no"}
5971 # Check whether --with-ecos or --without-ecos was given.
5972 if test "${with_ecos+set}" = set; then
5973 withval="$with_ecos"
5974 TARGET_ECOS="$with_ecos"
5980 PLATFORM_INNER_NAT_HDRS=
5981 case "$TARGET_ECOS" in
5988 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5989 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5990 LD_PROG=`$CC --print-prog-name=ld`
5991 LD_VERSION=`$LD_PROG --version`
5992 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5993 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5994 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5997 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6001 if test "x$LD_OK" != x; then
6002 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6003 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6005 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6006 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6007 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6008 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6010 cat >>confdefs.h <<\_ACEOF
6011 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6020 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6028 cat >>confdefs.h <<\_ACEOF
6036 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6045 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6046 # On Suns, sometimes $CPP names a directory.
6047 if test -n "$CPP" && test -d "$CPP"; then
6050 if test -z "$CPP"; then
6051 if test "${ac_cv_prog_CPP+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 # Double quotes because CPP needs to be expanded
6055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6058 for ac_c_preproc_warn_flag in '' yes
6060 # Use a header file that comes with gcc, so configuring glibc
6061 # with a fresh cross-compiler works.
6062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6063 # <limits.h> exists even on freestanding compilers.
6064 # On the NeXT, cc -E runs the code through the compiler's parser,
6065 # not just through cpp. "Syntax error" is here to catch this case.
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 # include <limits.h>
6075 # include <assert.h>
6079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6082 grep -v '^ *+' conftest.er1 >conftest.err
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } >/dev/null; then
6087 if test -s conftest.err; then
6088 ac_cpp_err=$ac_c_preproc_warn_flag
6089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6096 if test -z "$ac_cpp_err"; then
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 # Broken: fails on valid input.
6105 rm -f conftest.err conftest.$ac_ext
6107 # OK, works on sane cases. Now check whether non-existent headers
6108 # can be detected and how.
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #include <ac_nonexistent.h>
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120 grep -v '^ *+' conftest.er1 >conftest.err
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } >/dev/null; then
6125 if test -s conftest.err; then
6126 ac_cpp_err=$ac_c_preproc_warn_flag
6127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6134 if test -z "$ac_cpp_err"; then
6135 # Broken: success on invalid input.
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 # Passes both tests.
6145 rm -f conftest.err conftest.$ac_ext
6148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6149 rm -f conftest.err conftest.$ac_ext
6150 if $ac_preproc_ok; then
6162 echo "$as_me:$LINENO: result: $CPP" >&5
6163 echo "${ECHO_T}$CPP" >&6
6165 for ac_c_preproc_warn_flag in '' yes
6167 # Use a header file that comes with gcc, so configuring glibc
6168 # with a fresh cross-compiler works.
6169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6170 # <limits.h> exists even on freestanding compilers.
6171 # On the NeXT, cc -E runs the code through the compiler's parser,
6172 # not just through cpp. "Syntax error" is here to catch this case.
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 # include <limits.h>
6182 # include <assert.h>
6186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6189 grep -v '^ *+' conftest.er1 >conftest.err
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } >/dev/null; then
6194 if test -s conftest.err; then
6195 ac_cpp_err=$ac_c_preproc_warn_flag
6196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6203 if test -z "$ac_cpp_err"; then
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 # Broken: fails on valid input.
6212 rm -f conftest.err conftest.$ac_ext
6214 # OK, works on sane cases. Now check whether non-existent headers
6215 # can be detected and how.
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 #include <ac_nonexistent.h>
6224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6227 grep -v '^ *+' conftest.er1 >conftest.err
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } >/dev/null; then
6232 if test -s conftest.err; then
6233 ac_cpp_err=$ac_c_preproc_warn_flag
6234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6241 if test -z "$ac_cpp_err"; then
6242 # Broken: success on invalid input.
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 # Passes both tests.
6252 rm -f conftest.err conftest.$ac_ext
6255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6256 rm -f conftest.err conftest.$ac_ext
6257 if $ac_preproc_ok; then
6260 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6261 See \`config.log' for more details." >&5
6262 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6263 See \`config.log' for more details." >&2;}
6264 { (exit 1); exit 1; }; }
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6274 echo "$as_me:$LINENO: checking for egrep" >&5
6275 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6276 if test "${ac_cv_prog_egrep+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6280 then ac_cv_prog_egrep='grep -E'
6281 else ac_cv_prog_egrep='egrep'
6284 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6285 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6286 EGREP=$ac_cv_prog_egrep
6289 cat >conftest.$ac_ext <<_ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 $EGREP "uint32_t" >/dev/null 2>&1; then
6301 cat >>confdefs.h <<\_ACEOF
6302 #define HAVE_INT32_DEFINED 1
6308 cat >conftest.$ac_ext <<_ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <inttypes.h>
6317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318 $EGREP "uint32_t" >/dev/null 2>&1; then
6320 cat >>confdefs.h <<\_ACEOF
6321 #define HAVE_INT32_DEFINED 1
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 #include <sys/types.h>
6336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6337 $EGREP "u_int32_t" >/dev/null 2>&1; then
6339 cat >>confdefs.h <<\_ACEOF
6340 #define HAVE_BSD_INT32_DEFINED 1
6346 cat >conftest.$ac_ext <<_ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 #include <sys/config.h>
6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6356 $EGREP "u_int32_t" >/dev/null 2>&1; then
6358 cat >>confdefs.h <<\_ACEOF
6359 #define HAVE_BSD_INT32_DEFINED 1
6368 if test "$PLATFORM" = Win32; then
6369 USING_WIN32_PLATFORM_TRUE=
6370 USING_WIN32_PLATFORM_FALSE='#'
6372 USING_WIN32_PLATFORM_TRUE='#'
6373 USING_WIN32_PLATFORM_FALSE=
6378 if test "$PLATFORM" = Posix; then
6379 USING_POSIX_PLATFORM_TRUE=
6380 USING_POSIX_PLATFORM_FALSE='#'
6382 USING_POSIX_PLATFORM_TRUE='#'
6383 USING_POSIX_PLATFORM_FALSE=
6388 if test "$PLATFORM" = Ecos; then
6389 USING_ECOS_PLATFORM_TRUE=
6390 USING_ECOS_PLATFORM_FALSE='#'
6392 USING_ECOS_PLATFORM_TRUE='#'
6393 USING_ECOS_PLATFORM_FALSE=
6398 *-darwin*) DARWIN_CRT=true ;;
6399 *) DARWIN_CRT=false ;;
6403 if $DARWIN_CRT; then
6404 USING_DARWIN_CRT_TRUE=
6405 USING_DARWIN_CRT_FALSE='#'
6407 USING_DARWIN_CRT_TRUE='#'
6408 USING_DARWIN_CRT_FALSE=
6412 # These may not be defined in a non-ANS conformant embedded system.
6413 # FIXME: Should these case a runtime exception in that case?
6414 cat >conftest.$ac_ext <<_ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424 $EGREP "mktime" >/dev/null 2>&1; then
6426 cat >>confdefs.h <<\_ACEOF
6427 #define HAVE_MKTIME 1
6433 cat >conftest.$ac_ext <<_ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443 $EGREP "localtime" >/dev/null 2>&1; then
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_LOCALTIME 1
6453 # Create the subdirectory for natFile.cc, or the attempt
6454 # to create the link will fail.
6455 test -d java || mkdir java
6456 test -d java/io || mkdir java/io
6457 test -d gnu || mkdir gnu
6458 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6461 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6462 test -d java/lang || mkdir java/lang
6463 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6465 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6468 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
6469 test -d java/net || mkdir java/net
6470 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6472 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
6475 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6476 test -d gnu/java || mkdir gnu/java
6477 test -d gnu/java/net || mkdir gnu/java/net
6478 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6480 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6483 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6484 test -d gnu/java/nio || mkdir gnu/java/nio
6485 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6487 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6489 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6490 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6495 SYSTEMSPEC="-lgdi32 -lws2_32"
6496 if test "${with_win32_nlsapi}" = "unicows"; then
6497 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6506 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6510 # Check whether --with-system-zlib or --without-system-zlib was given.
6511 if test "${with_system_zlib+set}" = set; then
6512 withval="$with_system_zlib"
6520 echo "$as_me:$LINENO: checking for X" >&5
6521 echo $ECHO_N "checking for X... $ECHO_C" >&6
6524 # Check whether --with-x or --without-x was given.
6525 if test "${with_x+set}" = set; then
6529 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6530 if test "x$with_x" = xno; then
6531 # The user explicitly disabled X.
6534 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6535 # Both variables are already set.
6538 if test "${ac_cv_have_x+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 # One or both of the vars are not set, and there is no cached value.
6542 ac_x_includes=no ac_x_libraries=no
6544 if mkdir conftest.dir; then
6546 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6547 cat >Imakefile <<'_ACEOF'
6549 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6551 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6552 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6553 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6554 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6555 for ac_extension in a so sl; do
6556 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6557 test -f $ac_im_libdir/libX11.$ac_extension; then
6558 ac_im_usrlibdir=$ac_im_libdir; break
6561 # Screen out bogus values from the imake configuration. They are
6562 # bogus both because they are the default anyway, and because
6563 # using them would break gcc on systems where it needs fixed includes.
6564 case $ac_im_incroot in
6566 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6568 case $ac_im_usrlibdir in
6570 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6577 # Standard set of common directories for X headers.
6578 # Check X11 before X11Rn because it is often a symlink to the current release.
6590 /usr/local/X11/include
6591 /usr/local/X11R6/include
6592 /usr/local/X11R5/include
6593 /usr/local/X11R4/include
6595 /usr/local/include/X11
6596 /usr/local/include/X11R6
6597 /usr/local/include/X11R5
6598 /usr/local/include/X11R4
6602 /usr/XFree86/include/X11
6606 /usr/unsupported/include
6608 /usr/local/x11r5/include
6609 /usr/lpp/Xamples/include
6611 /usr/openwin/include
6612 /usr/openwin/share/include'
6614 if test "$ac_x_includes" = no; then
6615 # Guess where to find include files, by looking for Intrinsic.h.
6616 # First, try using that file with no special directory specified.
6617 cat >conftest.$ac_ext <<_ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 #include <X11/Intrinsic.h>
6625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } >/dev/null; then
6633 if test -s conftest.err; then
6634 ac_cpp_err=$ac_c_preproc_warn_flag
6635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6642 if test -z "$ac_cpp_err"; then
6643 # We can compile using X headers with no special include directory.
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 for ac_dir in $ac_x_header_dirs; do
6650 if test -r "$ac_dir/X11/Intrinsic.h"; then
6651 ac_x_includes=$ac_dir
6656 rm -f conftest.err conftest.$ac_ext
6657 fi # $ac_x_includes = no
6659 if test "$ac_x_libraries" = no; then
6660 # Check for the libraries.
6661 # See if we find them without any special options.
6662 # Don't add to $LIBS permanently.
6665 if test x$gcc_no_link = xyes; then
6666 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6668 { (exit 1); exit 1; }; }
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <X11/Intrinsic.h>
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687 (eval $ac_link) 2>conftest.er1
6689 grep -v '^ *+' conftest.er1 >conftest.err
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try='test -z "$ac_c_werror_flag"
6695 || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try='test -s conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6708 # We can link X programs with no special library path.
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6715 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6717 # Don't even attempt the hair of trying to link an X program!
6718 for ac_extension in a so sl; do
6719 if test -r $ac_dir/libXt.$ac_extension; then
6720 ac_x_libraries=$ac_dir
6726 rm -f conftest.err conftest.$ac_objext \
6727 conftest$ac_exeext conftest.$ac_ext
6728 fi # $ac_x_libraries = no
6730 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6731 # Didn't find X anywhere. Cache the known absence of X.
6732 ac_cv_have_x="have_x=no"
6734 # Record where we found X for the cache.
6735 ac_cv_have_x="have_x=yes \
6736 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6741 eval "$ac_cv_have_x"
6744 if test "$have_x" != yes; then
6745 echo "$as_me:$LINENO: result: $have_x" >&5
6746 echo "${ECHO_T}$have_x" >&6
6749 # If each of the values was on the command line, it overrides each guess.
6750 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6751 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6752 # Update the cache value to reflect the command line values.
6753 ac_cv_have_x="have_x=yes \
6754 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6755 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6756 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6759 if test "$no_x" = yes; then
6760 # Not all programs may use this symbol, but it does not hurt to define it.
6762 cat >>confdefs.h <<\_ACEOF
6763 #define X_DISPLAY_MISSING 1
6766 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6768 if test -n "$x_includes"; then
6769 X_CFLAGS="$X_CFLAGS -I$x_includes"
6772 # It would also be nice to do this for all -L options, not just this one.
6773 if test -n "$x_libraries"; then
6774 X_LIBS="$X_LIBS -L$x_libraries"
6775 # For Solaris; some versions of Sun CC require a space after -R and
6776 # others require no space. Words are not sufficient . . . .
6777 case `(uname -sr) 2>/dev/null` in
6779 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6780 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6781 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6782 if test x$gcc_no_link = xyes; then
6783 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6785 { (exit 1); exit 1; }; }
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>conftest.er1
6806 grep -v '^ *+' conftest.er1 >conftest.err
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest$ac_exeext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6831 rm -f conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 if test $ac_R_nospace = yes; then
6834 echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6
6836 X_LIBS="$X_LIBS -R$x_libraries"
6838 LIBS="$ac_xsave_LIBS -R $x_libraries"
6839 if test x$gcc_no_link = xyes; then
6840 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6841 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6842 { (exit 1); exit 1; }; }
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861 (eval $ac_link) 2>conftest.er1
6863 grep -v '^ *+' conftest.er1 >conftest.err
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
6868 { ac_try='test -z "$ac_c_werror_flag"
6869 || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try='test -s conftest$ac_exeext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6888 rm -f conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 if test $ac_R_space = yes; then
6891 echo "$as_me:$LINENO: result: yes" >&5
6892 echo "${ECHO_T}yes" >&6
6893 X_LIBS="$X_LIBS -R $x_libraries"
6895 echo "$as_me:$LINENO: result: neither works" >&5
6896 echo "${ECHO_T}neither works" >&6
6903 # Check for system-dependent libraries X programs must link with.
6904 # Do this before checking for the system-independent R6 libraries
6905 # (-lICE), since we may need -lsocket or whatever for X linking.
6907 if test "$ISC" = yes; then
6908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6910 # Martyn Johnson says this is needed for Ultrix, if the X
6911 # libraries were built with DECnet support. And Karl Berry says
6912 # the Alpha needs dnet_stub (dnet does not exist).
6913 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6914 if test x$gcc_no_link = xyes; then
6915 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6917 { (exit 1); exit 1; }; }
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6926 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6932 char XOpenDisplay ();
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag"
6951 || test ! -s conftest.err'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6969 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6970 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_check_lib_save_LIBS=$LIBS
6975 if test x$gcc_no_link = xyes; then
6976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6978 { (exit 1); exit 1; }; }
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6987 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1 >conftest.err
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -z "$ac_c_werror_flag"
7012 || test ! -s conftest.err'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 ac_cv_lib_dnet_dnet_ntoa=yes
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_cv_lib_dnet_dnet_ntoa=no
7031 rm -f conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7033 LIBS=$ac_check_lib_save_LIBS
7035 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7036 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7037 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7038 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7041 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7042 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7043 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7044 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 ac_check_lib_save_LIBS=$LIBS
7048 LIBS="-ldnet_stub $LIBS"
7049 if test x$gcc_no_link = xyes; then
7050 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7052 { (exit 1); exit 1; }; }
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7061 /* Override any gcc2 internal prototype to avoid an error. */
7065 /* We use char because int might match the return type of a gcc2
7066 builtin and then its argument prototype would still apply. */
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest$ac_exeext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7103 ac_cv_lib_dnet_stub_dnet_ntoa=no
7105 rm -f conftest.err conftest.$ac_objext \
7106 conftest$ac_exeext conftest.$ac_ext
7107 LIBS=$ac_check_lib_save_LIBS
7109 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7110 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7111 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7112 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7117 rm -f conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
7119 LIBS="$ac_xsave_LIBS"
7121 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7122 # to get the SysV transport functions.
7123 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7125 # The nsl library prevents programs from opening the X display
7126 # on Irix 5.2, according to T.E. Dickey.
7127 # The functions gethostbyname, getservbyname, and inet_addr are
7128 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7129 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7130 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7131 if test "${ac_cv_func_gethostbyname+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 if test x$gcc_no_link = xyes; then
7135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7137 { (exit 1); exit 1; }; }
7139 cat >conftest.$ac_ext <<_ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7147 #define gethostbyname innocuous_gethostbyname
7149 /* System header to define __stub macros and hopefully few prototypes,
7150 which can conflict with char gethostbyname (); below.
7151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152 <limits.h> exists even on freestanding compilers. */
7155 # include <limits.h>
7157 # include <assert.h>
7160 #undef gethostbyname
7162 /* Override any gcc2 internal prototype to avoid an error. */
7167 /* We use char because int might match the return type of a gcc2
7168 builtin and then its argument prototype would still apply. */
7169 char gethostbyname ();
7170 /* The GNU C library defines this for functions which it implements
7171 to always fail with ENOSYS. Some functions are actually named
7172 something starting with __ and the normal name is an alias. */
7173 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7176 char (*f) () = gethostbyname;
7185 return f != gethostbyname;
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192 (eval $ac_link) 2>conftest.er1
7194 grep -v '^ *+' conftest.er1 >conftest.err
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -z "$ac_c_werror_flag"
7200 || test ! -s conftest.err'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; } &&
7206 { ac_try='test -s conftest$ac_exeext'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7212 ac_cv_func_gethostbyname=yes
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7217 ac_cv_func_gethostbyname=no
7219 rm -f conftest.err conftest.$ac_objext \
7220 conftest$ac_exeext conftest.$ac_ext
7222 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7223 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7225 if test $ac_cv_func_gethostbyname = no; then
7226 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7227 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7228 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 ac_check_lib_save_LIBS=$LIBS
7233 if test x$gcc_no_link = xyes; then
7234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7236 { (exit 1); exit 1; }; }
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7245 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7251 char gethostbyname ();
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>conftest.er1
7264 grep -v '^ *+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_lib_nsl_gethostbyname=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_lib_nsl_gethostbyname=no
7289 rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7291 LIBS=$ac_check_lib_save_LIBS
7293 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7294 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7295 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7299 if test $ac_cv_lib_nsl_gethostbyname = no; then
7300 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7301 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7302 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_check_lib_save_LIBS=$LIBS
7307 if test x$gcc_no_link = xyes; then
7308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7310 { (exit 1); exit 1; }; }
7312 cat >conftest.$ac_ext <<_ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7319 /* Override any gcc2 internal prototype to avoid an error. */
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7325 char gethostbyname ();
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336 (eval $ac_link) 2>conftest.er1
7338 grep -v '^ *+' conftest.er1 >conftest.err
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest$ac_exeext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_lib_bsd_gethostbyname=yes
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 ac_cv_lib_bsd_gethostbyname=no
7363 rm -f conftest.err conftest.$ac_objext \
7364 conftest$ac_exeext conftest.$ac_ext
7365 LIBS=$ac_check_lib_save_LIBS
7367 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7368 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7369 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7370 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7376 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7377 # socket/setsockopt and other routines are undefined under SCO ODT
7378 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7379 # on later versions), says Simon Leinen: it contains gethostby*
7380 # variants that don't use the name server (or something). -lsocket
7381 # must be given before -lnsl if both are needed. We assume that
7382 # if connect needs -lnsl, so does gethostbyname.
7383 echo "$as_me:$LINENO: checking for connect" >&5
7384 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7385 if test "${ac_cv_func_connect+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 if test x$gcc_no_link = xyes; then
7389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7391 { (exit 1); exit 1; }; }
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7401 #define connect innocuous_connect
7403 /* System header to define __stub macros and hopefully few prototypes,
7404 which can conflict with char connect (); below.
7405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7406 <limits.h> exists even on freestanding compilers. */
7409 # include <limits.h>
7411 # include <assert.h>
7416 /* Override any gcc2 internal prototype to avoid an error. */
7421 /* We use char because int might match the return type of a gcc2
7422 builtin and then its argument prototype would still apply. */
7424 /* The GNU C library defines this for functions which it implements
7425 to always fail with ENOSYS. Some functions are actually named
7426 something starting with __ and the normal name is an alias. */
7427 #if defined (__stub_connect) || defined (__stub___connect)
7430 char (*f) () = connect;
7439 return f != connect;
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>conftest.er1
7448 grep -v '^ *+' conftest.er1 >conftest.err
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -z "$ac_c_werror_flag"
7454 || test ! -s conftest.err'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; } &&
7460 { ac_try='test -s conftest$ac_exeext'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; }; then
7466 ac_cv_func_connect=yes
7468 echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7471 ac_cv_func_connect=no
7473 rm -f conftest.err conftest.$ac_objext \
7474 conftest$ac_exeext conftest.$ac_ext
7476 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7477 echo "${ECHO_T}$ac_cv_func_connect" >&6
7479 if test $ac_cv_func_connect = no; then
7480 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7481 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7482 if test "${ac_cv_lib_socket_connect+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 ac_check_lib_save_LIBS=$LIBS
7486 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7487 if test x$gcc_no_link = xyes; then
7488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7490 { (exit 1); exit 1; }; }
7492 cat >conftest.$ac_ext <<_ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7499 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>conftest.er1
7518 grep -v '^ *+' conftest.er1 >conftest.err
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -z "$ac_c_werror_flag"
7524 || test ! -s conftest.err'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; } &&
7530 { ac_try='test -s conftest$ac_exeext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_lib_socket_connect=yes
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 ac_cv_lib_socket_connect=no
7543 rm -f conftest.err conftest.$ac_objext \
7544 conftest$ac_exeext conftest.$ac_ext
7545 LIBS=$ac_check_lib_save_LIBS
7547 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7548 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7549 if test $ac_cv_lib_socket_connect = yes; then
7550 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7555 # Guillermo Gomez says -lposix is necessary on A/UX.
7556 echo "$as_me:$LINENO: checking for remove" >&5
7557 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7558 if test "${ac_cv_func_remove+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 if test x$gcc_no_link = xyes; then
7562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7564 { (exit 1); exit 1; }; }
7566 cat >conftest.$ac_ext <<_ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7574 #define remove innocuous_remove
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char remove (); below.
7578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7579 <limits.h> exists even on freestanding compilers. */
7582 # include <limits.h>
7584 # include <assert.h>
7589 /* Override any gcc2 internal prototype to avoid an error. */
7594 /* We use char because int might match the return type of a gcc2
7595 builtin and then its argument prototype would still apply. */
7597 /* The GNU C library defines this for functions which it implements
7598 to always fail with ENOSYS. Some functions are actually named
7599 something starting with __ and the normal name is an alias. */
7600 #if defined (__stub_remove) || defined (__stub___remove)
7603 char (*f) () = remove;
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619 (eval $ac_link) 2>conftest.er1
7621 grep -v '^ *+' conftest.er1 >conftest.err
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest$ac_exeext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_func_remove=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_cv_func_remove=no
7646 rm -f conftest.err conftest.$ac_objext \
7647 conftest$ac_exeext conftest.$ac_ext
7649 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7650 echo "${ECHO_T}$ac_cv_func_remove" >&6
7652 if test $ac_cv_func_remove = no; then
7653 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7654 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7655 if test "${ac_cv_lib_posix_remove+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 ac_check_lib_save_LIBS=$LIBS
7659 LIBS="-lposix $LIBS"
7660 if test x$gcc_no_link = xyes; then
7661 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7662 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7663 { (exit 1); exit 1; }; }
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7672 /* Override any gcc2 internal prototype to avoid an error. */
7676 /* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 ac_cv_lib_posix_remove=yes
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 ac_cv_lib_posix_remove=no
7716 rm -f conftest.err conftest.$ac_objext \
7717 conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7720 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7721 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7722 if test $ac_cv_lib_posix_remove = yes; then
7723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7728 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7729 echo "$as_me:$LINENO: checking for shmat" >&5
7730 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7731 if test "${ac_cv_func_shmat+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 if test x$gcc_no_link = xyes; then
7735 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7737 { (exit 1); exit 1; }; }
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7745 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7747 #define shmat innocuous_shmat
7749 /* System header to define __stub macros and hopefully few prototypes,
7750 which can conflict with char shmat (); below.
7751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7752 <limits.h> exists even on freestanding compilers. */
7755 # include <limits.h>
7757 # include <assert.h>
7762 /* Override any gcc2 internal prototype to avoid an error. */
7767 /* We use char because int might match the return type of a gcc2
7768 builtin and then its argument prototype would still apply. */
7770 /* The GNU C library defines this for functions which it implements
7771 to always fail with ENOSYS. Some functions are actually named
7772 something starting with __ and the normal name is an alias. */
7773 #if defined (__stub_shmat) || defined (__stub___shmat)
7776 char (*f) () = shmat;
7790 rm -f conftest.$ac_objext conftest$ac_exeext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792 (eval $ac_link) 2>conftest.er1
7794 grep -v '^ *+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } &&
7799 { ac_try='test -z "$ac_c_werror_flag"
7800 || test ! -s conftest.err'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; } &&
7806 { ac_try='test -s conftest$ac_exeext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 ac_cv_func_shmat=yes
7814 echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7819 rm -f conftest.err conftest.$ac_objext \
7820 conftest$ac_exeext conftest.$ac_ext
7822 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7823 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7825 if test $ac_cv_func_shmat = no; then
7826 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7827 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7828 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 ac_check_lib_save_LIBS=$LIBS
7833 if test x$gcc_no_link = xyes; then
7834 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7835 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7836 { (exit 1); exit 1; }; }
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7845 /* Override any gcc2 internal prototype to avoid an error. */
7849 /* We use char because int might match the return type of a gcc2
7850 builtin and then its argument prototype would still apply. */
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862 (eval $ac_link) 2>conftest.er1
7864 grep -v '^ *+' conftest.er1 >conftest.err
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } &&
7869 { ac_try='test -z "$ac_c_werror_flag"
7870 || test ! -s conftest.err'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; } &&
7876 { ac_try='test -s conftest$ac_exeext'
7877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 ac_cv_lib_ipc_shmat=yes
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 ac_cv_lib_ipc_shmat=no
7889 rm -f conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7893 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7894 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7895 if test $ac_cv_lib_ipc_shmat = yes; then
7896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7902 # Check for libraries that X11R6 Xt/Xaw programs need.
7903 ac_save_LDFLAGS=$LDFLAGS
7904 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7905 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7906 # check for ICE first), but we must link in the order -lSM -lICE or
7907 # we get undefined symbols. So assume we have SM if we have ICE.
7908 # These have to be linked with before -lX11, unlike the other
7909 # libraries we check for below, so use a different variable.
7910 # John Interrante, Karl Berry
7911 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7912 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7913 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 ac_check_lib_save_LIBS=$LIBS
7917 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7918 if test x$gcc_no_link = xyes; then
7919 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7921 { (exit 1); exit 1; }; }
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7930 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7936 char IceConnectionNumber ();
7940 IceConnectionNumber ();
7945 rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7947 (eval $ac_link) 2>conftest.er1
7949 grep -v '^ *+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest$ac_exeext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_lib_ICE_IceConnectionNumber=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ac_cv_lib_ICE_IceConnectionNumber=no
7974 rm -f conftest.err conftest.$ac_objext \
7975 conftest$ac_exeext conftest.$ac_ext
7976 LIBS=$ac_check_lib_save_LIBS
7978 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7979 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7980 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7981 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7984 LDFLAGS=$ac_save_LDFLAGS
7989 # Determine which AWT peer libraries to build
7990 # Check whether --enable-java-awt or --disable-java-awt was given.
7991 if test "${enable_java_awt+set}" = set; then
7992 enableval="$enable_java_awt"
7996 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7999 # The default toolkit to use is the first one specified.
8003 for peer in $peerlibs ; do
8006 if test "$no_x" = yes; then
8007 echo "*** xlib peers requested but no X library available" 1>&2
8011 if test -z "$TOOLKIT"; then
8012 TOOLKIT=gnu.awt.xlib.XToolkit
8017 if test "$no_x" = yes; then
8018 echo "*** xlib peers requested but no X library available" 1>&2
8022 if test -z "$TOOLKIT"; then
8023 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
8025 test -d jniinclude || mkdir jniinclude
8034 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8041 if test "$use_xlib_awt" = yes; then
8051 if test "$use_gtk_awt" = yes; then
8060 # determine whether to enable the cairo GTK Graphics2D backend
8061 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8062 if test "${enable_gtk_cairo+set}" = set; then
8063 enableval="$enable_gtk_cairo"
8068 if test "x${enable_gtk_cairo}" = xyes; then
8076 if test "x${enable_gtk_cairo}" = xyes
8081 if test -z "$PKG_CONFIG"; then
8082 # Extract the first word of "pkg-config", so it can be a program name with args.
8083 set dummy pkg-config; ac_word=$2
8084 echo "$as_me:$LINENO: checking for $ac_word" >&5
8085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8086 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8112 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8114 if test -n "$PKG_CONFIG"; then
8115 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8116 echo "${ECHO_T}$PKG_CONFIG" >&6
8118 echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6
8124 if test "$PKG_CONFIG" = "no" ; then
8125 echo "*** The pkg-config script could not be found. Make sure it is"
8126 echo "*** in your path, or set the PKG_CONFIG environment variable"
8127 echo "*** to the full path to pkg-config."
8128 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8130 PKG_CONFIG_MIN_VERSION=0.9.0
8131 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8132 echo "$as_me:$LINENO: checking for cairo" >&5
8133 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8135 if $PKG_CONFIG --exists "cairo" ; then
8136 echo "$as_me:$LINENO: result: yes" >&5
8137 echo "${ECHO_T}yes" >&6
8140 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8141 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8142 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8143 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8144 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8146 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8147 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8148 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8149 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8150 echo "${ECHO_T}$CAIRO_LIBS" >&6
8154 ## If we have a custom action on failure, don't print errors, but
8155 ## do set a variable so people can do so.
8156 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8157 echo $CAIRO_PKG_ERRORS
8163 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8164 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8168 if test $succeeded = yes; then
8171 { { 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
8172 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;}
8173 { (exit 1); exit 1; }; }
8179 if test -z "$PKG_CONFIG"; then
8180 # Extract the first word of "pkg-config", so it can be a program name with args.
8181 set dummy pkg-config; ac_word=$2
8182 echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8184 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8210 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8212 if test -n "$PKG_CONFIG"; then
8213 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8214 echo "${ECHO_T}$PKG_CONFIG" >&6
8216 echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8222 if test "$PKG_CONFIG" = "no" ; then
8223 echo "*** The pkg-config script could not be found. Make sure it is"
8224 echo "*** in your path, or set the PKG_CONFIG environment variable"
8225 echo "*** to the full path to pkg-config."
8226 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8228 PKG_CONFIG_MIN_VERSION=0.9.0
8229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8230 echo "$as_me:$LINENO: checking for pangoft2" >&5
8231 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8233 if $PKG_CONFIG --exists "pangoft2" ; then
8234 echo "$as_me:$LINENO: result: yes" >&5
8235 echo "${ECHO_T}yes" >&6
8238 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8239 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8240 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8241 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8242 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8244 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8245 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8246 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8247 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8248 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8252 ## If we have a custom action on failure, don't print errors, but
8253 ## do set a variable so people can do so.
8254 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8255 echo $PANGOFT2_PKG_ERRORS
8261 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8262 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8266 if test $succeeded = yes; then
8269 { { 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
8270 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;}
8271 { (exit 1); exit 1; }; }
8280 # FIXME: this should be _libs on some hosts.
8283 # Allow the GC to be disabled. Can be useful when debugging.
8284 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8285 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8286 # Check whether --enable-java-gc or --disable-java-gc was given.
8287 if test "${enable_java_gc+set}" = set; then
8288 enableval="$enable_java_gc"
8301 echo "$as_me:$LINENO: result: boehm" >&5
8302 echo "${ECHO_T}boehm" >&6
8303 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8304 JC1GCSPEC='-fuse-boehm-gc'
8305 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8306 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8309 # The POSIX thread support needs to know this.
8311 cat >>confdefs.h <<\_ACEOF
8312 #define HAVE_BOEHM_GC 1
8317 echo "$as_me:$LINENO: result: none" >&5
8318 echo "${ECHO_T}none" >&6
8322 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8323 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8324 { (exit 1); exit 1; }; }
8333 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8337 if test "$GC" = boehm; then
8339 USING_BOEHMGC_FALSE='#'
8341 USING_BOEHMGC_TRUE='#'
8342 USING_BOEHMGC_FALSE=
8347 if test "$GC" = no; then
8349 USING_NOGC_FALSE='#'
8357 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8358 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8359 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8360 echo "$as_me:$LINENO: result: $THREADS" >&5
8361 echo "${ECHO_T}$THREADS" >&6
8367 posix | posix95 | pthreads)
8372 cat >>confdefs.h <<\_ACEOF
8373 #define LINUX_THREADS 1
8381 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8382 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8383 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8384 { (exit 1); exit 1; }; }
8387 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8388 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8389 { (exit 1); exit 1; }; }
8404 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8407 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8408 # merely adds pthread_* functions) but it does have a -pthread switch
8409 # which is required at link-time to select -lc_r *instead* of -lc.
8410 THREADLDFLAGS=-pthread
8411 # Don't set THREADSPEC here as might be expected since -pthread is
8412 # not processed when found within a spec file, it must come from
8413 # the command line. For now, the user must provide the -pthread
8414 # switch to link code compiled with gcj. In future, consider adding
8415 # support for weak references to pthread_* functions ala gthr.h API.
8416 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8419 # FreeBSD 5 implements a model much closer to other modern UNIX
8420 # which support threads. However, it still does not support
8422 THREADLDFLAGS=-pthread
8426 THREADCXXFLAGS=-pthread
8427 # boehm-gc needs some functions from librt, so link that too.
8428 THREADLIBS='-lpthread -lrt'
8429 THREADSPEC='-lpthread -lrt'
8432 THREADLIBS=-lpthread
8433 THREADSPEC=-lpthread
8436 THREADH=posix-threads.h
8437 # MIT pthreads doesn't seem to have the mutexattr functions.
8438 # But for now we don't check for it. We just assume you aren't
8439 # using MIT pthreads.
8441 cat >>confdefs.h <<\_ACEOF
8442 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8446 # If we're using the Boehm GC, then we happen to know that it
8447 # defines _REENTRANT, so we don't bother. Eww.
8448 if test "$GC" != boehm; then
8450 cat >>confdefs.h <<\_ACEOF
8451 #define _REENTRANT 1
8456 cat >>confdefs.h <<\_ACEOF
8457 #define _POSIX_PTHREAD_SEMANTICS 1
8463 THREADH=win32-threads.h
8467 THREADH=no-threads.h
8470 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8480 if test "$THREADS" = posix; then
8481 USING_POSIX_THREADS_TRUE=
8482 USING_POSIX_THREADS_FALSE='#'
8484 USING_POSIX_THREADS_TRUE='#'
8485 USING_POSIX_THREADS_FALSE=
8490 if test "$THREADS" = win32; then
8491 USING_WIN32_THREADS_TRUE=
8492 USING_WIN32_THREADS_FALSE='#'
8494 USING_WIN32_THREADS_TRUE='#'
8495 USING_WIN32_THREADS_FALSE=
8500 if test "$THREADS" = none; then
8501 USING_NO_THREADS_TRUE=
8502 USING_NO_THREADS_FALSE='#'
8504 USING_NO_THREADS_TRUE='#'
8505 USING_NO_THREADS_FALSE=
8509 if test -d sysdep; then true; else mkdir sysdep; fi
8510 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8512 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8514 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
8518 # Hash synchronization is only useful with posix threads right now.
8519 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8520 HASH_SYNC_SPEC=-fhash-synchronization
8522 cat >>confdefs.h <<\_ACEOF
8523 #define JV_HASH_SYNCHRONIZATION 1
8531 if test "$GCC" = yes; then
8540 # We're in the tree with gcc, and need to include some of its headers.
8541 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8543 if test "x${with_newlib}" = "xyes"; then
8544 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8545 # may not work correctly, because the compiler may not be able to
8548 # We assume newlib. This lets us hard-code the functions we know
8551 cat >>confdefs.h <<\_ACEOF
8552 #define HAVE_MEMMOVE 1
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_MEMCPY 1
8561 cat >>confdefs.h <<\_ACEOF
8562 #define HAVE_STRERROR 1
8566 cat >>confdefs.h <<\_ACEOF
8571 cat >>confdefs.h <<\_ACEOF
8572 #define HAVE_GMTIME_R 1
8576 cat >>confdefs.h <<\_ACEOF
8577 #define HAVE_LOCALTIME_R 1
8581 cat >>confdefs.h <<\_ACEOF
8582 #define HAVE_USLEEP_DECL 1
8585 # This is only for POSIX threads.
8587 cat >>confdefs.h <<\_ACEOF
8588 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8591 # We also assume we are using gcc, which provides alloca.
8592 cat >>confdefs.h <<\_ACEOF
8593 #define HAVE_ALLOCA 1
8597 # Assume we do not have getuid and friends.
8599 cat >>confdefs.h <<\_ACEOF
8637 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8638 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8639 access stat mkdir rename rmdir unlink realpath utime chmod \
8640 nl_langinfo setlocale \
8641 inet_pton uname inet_ntoa \
8642 fork execvp pipe sigaction ftruncate
8644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8645 echo "$as_me:$LINENO: checking for $ac_func" >&5
8646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8647 if eval "test \"\${$as_ac_var+set}\" = set"; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 if test x$gcc_no_link = xyes; then
8651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8653 { (exit 1); exit 1; }; }
8655 cat >conftest.$ac_ext <<_ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8663 #define $ac_func innocuous_$ac_func
8665 /* System header to define __stub macros and hopefully few prototypes,
8666 which can conflict with char $ac_func (); below.
8667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668 <limits.h> exists even on freestanding compilers. */
8671 # include <limits.h>
8673 # include <assert.h>
8678 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8686 /* The GNU C library defines this for functions which it implements
8687 to always fail with ENOSYS. Some functions are actually named
8688 something starting with __ and the normal name is an alias. */
8689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8692 char (*f) () = $ac_func;
8701 return f != $ac_func;
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8708 (eval $ac_link) 2>conftest.er1
8710 grep -v '^ *+' conftest.er1 >conftest.err
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -z "$ac_c_werror_flag"
8716 || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest$ac_exeext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 eval "$as_ac_var=yes"
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 eval "$as_ac_var=no"
8735 rm -f conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8740 if test `eval echo '${'$as_ac_var'}'` = yes; then
8741 cat >>confdefs.h <<_ACEOF
8742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8750 for ac_func in inet_aton inet_addr
8752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8753 echo "$as_me:$LINENO: checking for $ac_func" >&5
8754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8755 if eval "test \"\${$as_ac_var+set}\" = set"; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 if test x$gcc_no_link = xyes; then
8759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8761 { (exit 1); exit 1; }; }
8763 cat >conftest.$ac_ext <<_ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8771 #define $ac_func innocuous_$ac_func
8773 /* System header to define __stub macros and hopefully few prototypes,
8774 which can conflict with char $ac_func (); below.
8775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8776 <limits.h> exists even on freestanding compilers. */
8779 # include <limits.h>
8781 # include <assert.h>
8786 /* Override any gcc2 internal prototype to avoid an error. */
8791 /* We use char because int might match the return type of a gcc2
8792 builtin and then its argument prototype would still apply. */
8794 /* The GNU C library defines this for functions which it implements
8795 to always fail with ENOSYS. Some functions are actually named
8796 something starting with __ and the normal name is an alias. */
8797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8800 char (*f) () = $ac_func;
8809 return f != $ac_func;
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 eval "$as_ac_var=yes"
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 eval "$as_ac_var=no"
8843 rm -f conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8848 if test `eval echo '${'$as_ac_var'}'` = yes; then
8849 cat >>confdefs.h <<_ACEOF
8850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8856 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8858 if test "${ac_cv_header_stdc+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 cat >conftest.$ac_ext <<_ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8880 rm -f conftest.$ac_objext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8882 (eval $ac_compile) 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } &&
8889 { ac_try='test -z "$ac_c_werror_flag"
8890 || test ! -s conftest.err'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try='test -s conftest.$ac_objext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_header_stdc=yes
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 ac_cv_header_stdc=no
8909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8911 if test $ac_cv_header_stdc = yes; then
8912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8913 cat >conftest.$ac_ext <<_ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h. */
8922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8923 $EGREP "memchr" >/dev/null 2>&1; then
8926 ac_cv_header_stdc=no
8932 if test $ac_cv_header_stdc = yes; then
8933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8944 $EGREP "free" >/dev/null 2>&1; then
8947 ac_cv_header_stdc=no
8953 if test $ac_cv_header_stdc = yes; then
8954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8955 if test "$cross_compiling" = yes; then
8958 cat >conftest.$ac_ext <<_ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8965 #if ((' ' & 0x0FF) == 0x020)
8966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8969 # define ISLOWER(c) \
8970 (('a' <= (c) && (c) <= 'i') \
8971 || ('j' <= (c) && (c) <= 'r') \
8972 || ('s' <= (c) && (c) <= 'z'))
8973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8981 for (i = 0; i < 256; i++)
8982 if (XOR (islower (i), ISLOWER (i))
8983 || toupper (i) != TOUPPER (i))
8988 rm -f conftest$ac_exeext
8989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8990 (eval $ac_link) 2>&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
9001 echo "$as_me: program exited with status $ac_status" >&5
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9006 ac_cv_header_stdc=no
9008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9013 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9014 if test $ac_cv_header_stdc = yes; then
9016 cat >>confdefs.h <<\_ACEOF
9017 #define STDC_HEADERS 1
9022 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9033 inttypes.h stdint.h unistd.h
9035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9036 echo "$as_me:$LINENO: checking for $ac_header" >&5
9037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 cat >conftest.$ac_ext <<_ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 $ac_includes_default
9049 #include <$ac_header>
9051 rm -f conftest.$ac_objext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9053 (eval $ac_compile) 2>conftest.er1
9055 grep -v '^ *+' conftest.er1 >conftest.err
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag"
9061 || test ! -s conftest.err'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try='test -s conftest.$ac_objext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 eval "$as_ac_Header=yes"
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 eval "$as_ac_Header=no"
9080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9085 cat >>confdefs.h <<_ACEOF
9086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9097 for ac_header in execinfo.h unistd.h dlfcn.h
9099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9101 echo "$as_me:$LINENO: checking for $ac_header" >&5
9102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9109 # Is the header compilable?
9110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9112 cat >conftest.$ac_ext <<_ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 $ac_includes_default
9119 #include <$ac_header>
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123 (eval $ac_compile) 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -z "$ac_c_werror_flag"
9131 || test ! -s conftest.err'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; } &&
9137 { ac_try='test -s conftest.$ac_objext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_header_compiler=yes
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ac_header_compiler=no
9150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9152 echo "${ECHO_T}$ac_header_compiler" >&6
9154 # Is the header present?
9155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 #include <$ac_header>
9165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9168 grep -v '^ *+' conftest.er1 >conftest.err
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } >/dev/null; then
9173 if test -s conftest.err; then
9174 ac_cpp_err=$ac_c_preproc_warn_flag
9175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9182 if test -z "$ac_cpp_err"; then
9183 ac_header_preproc=yes
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9188 ac_header_preproc=no
9190 rm -f conftest.err conftest.$ac_ext
9191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9192 echo "${ECHO_T}$ac_header_preproc" >&6
9194 # So? What about this header?
9195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9201 ac_header_preproc=yes
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9218 ## ---------------------------------- ##
9219 ## Report this to the libjava lists. ##
9220 ## ---------------------------------- ##
9223 sed "s/^/$as_me: WARNING: /" >&2
9226 echo "$as_me:$LINENO: checking for $ac_header" >&5
9227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 eval "$as_ac_Header=\$ac_header_preproc"
9233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9238 cat >>confdefs.h <<_ACEOF
9239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9246 echo "$as_me:$LINENO: checking for backtrace" >&5
9247 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9248 if test "${ac_cv_func_backtrace+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 if test x$gcc_no_link = xyes; then
9252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9254 { (exit 1); exit 1; }; }
9256 cat >conftest.$ac_ext <<_ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9264 #define backtrace innocuous_backtrace
9266 /* System header to define __stub macros and hopefully few prototypes,
9267 which can conflict with char backtrace (); below.
9268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9269 <limits.h> exists even on freestanding compilers. */
9272 # include <limits.h>
9274 # include <assert.h>
9279 /* Override any gcc2 internal prototype to avoid an error. */
9284 /* We use char because int might match the return type of a gcc2
9285 builtin and then its argument prototype would still apply. */
9287 /* The GNU C library defines this for functions which it implements
9288 to always fail with ENOSYS. Some functions are actually named
9289 something starting with __ and the normal name is an alias. */
9290 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9293 char (*f) () = backtrace;
9302 return f != backtrace;
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309 (eval $ac_link) 2>conftest.er1
9311 grep -v '^ *+' conftest.er1 >conftest.err
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -z "$ac_c_werror_flag"
9317 || test ! -s conftest.err'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; } &&
9323 { ac_try='test -s conftest$ac_exeext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_func_backtrace=yes
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 ac_cv_func_backtrace=no
9336 rm -f conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9340 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9341 if test $ac_cv_func_backtrace = yes; then
9345 # Has broken backtrace()
9348 # Has broken backtrace(), but we supply our own.
9349 if test -d sysdep; then true; else mkdir -p sysdep; fi
9350 supply_backtrace=yes
9352 cat >>confdefs.h <<\_ACEOF
9353 #define HAVE_BACKTRACE 1
9359 cat >>confdefs.h <<\_ACEOF
9360 #define HAVE_BACKTRACE 1
9370 # Has backtrace() defined in libgcj itself
9372 cat >>confdefs.h <<\_ACEOF
9373 #define HAVE_BACKTRACE 1
9382 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9383 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9384 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 ac_check_lib_save_LIBS=$LIBS
9389 if test x$gcc_no_link = xyes; then
9390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9392 { (exit 1); exit 1; }; }
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9401 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_cv_lib_dl_dladdr=yes
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_cv_lib_dl_dladdr=no
9445 rm -f conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9450 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9451 if test $ac_cv_lib_dl_dladdr = yes; then
9453 if test "x${disable_dladdr}" = "xyes"; then
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_DLADDR 1
9466 if test x"$build" = x"$host"; then
9467 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9468 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9469 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 test "$cross_compiling" = yes &&
9473 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9474 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9475 { (exit 1); exit 1; }; }
9476 if test -r "/proc/self/exe"; then
9477 ac_cv_file__proc_self_exe=yes
9479 ac_cv_file__proc_self_exe=no
9482 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9483 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9484 if test $ac_cv_file__proc_self_exe = yes; then
9486 cat >>confdefs.h <<_ACEOF
9487 #define HAVE__PROC_SELF_EXE 1
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_PROC_SELF_EXE 1
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_PROC_SELF_EXE 1
9511 if test "X$prefix" = "XNONE"; then
9512 acl_final_prefix="$ac_default_prefix"
9514 acl_final_prefix="$prefix"
9516 if test "X$exec_prefix" = "XNONE"; then
9517 acl_final_exec_prefix='${prefix}'
9519 acl_final_exec_prefix="$exec_prefix"
9521 acl_save_prefix="$prefix"
9522 prefix="$acl_final_prefix"
9523 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9524 prefix="$acl_save_prefix"
9527 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9528 if test "${with_gnu_ld+set}" = set; then
9529 withval="$with_gnu_ld"
9530 test "$withval" = no || with_gnu_ld=yes
9534 # Prepare PATH_SEPARATOR.
9535 # The user is always right.
9536 if test "${PATH_SEPARATOR+set}" != set; then
9537 echo "#! /bin/sh" >conf$$.sh
9538 echo "exit 0" >>conf$$.sh
9540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9548 if test "$GCC" = yes; then
9549 # Check if gcc -print-prog-name=ld gives a path.
9550 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9551 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9554 # gcc leaves a trailing carriage return which upsets mingw
9555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9560 # Accept absolute paths.
9561 [\\/]* | [A-Za-z]:[\\/]*)
9562 re_direlt='/[^/][^/]*/\.\./'
9563 # Canonicalize the path of ld
9564 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9565 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9566 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9568 test -z "$LD" && LD="$ac_prog"
9571 # If it fails, then pretend we aren't using GCC.
9575 # If it is relative, then search for the first ld in PATH.
9579 elif test "$with_gnu_ld" = yes; then
9580 echo "$as_me:$LINENO: checking for GNU ld" >&5
9581 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9583 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9584 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9586 if test "${acl_cv_path_LD+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 if test -z "$LD"; then
9590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9591 for ac_dir in $PATH; do
9592 test -z "$ac_dir" && ac_dir=.
9593 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9594 acl_cv_path_LD="$ac_dir/$ac_prog"
9595 # Check to see if the program is GNU ld. I'd rather use --version,
9596 # but apparently some GNU ld's only accept -v.
9597 # Break only if it was the GNU/non-GNU ld that we prefer.
9598 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9599 test "$with_gnu_ld" != no && break
9601 test "$with_gnu_ld" != yes && break
9607 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9611 LD="$acl_cv_path_LD"
9612 if test -n "$LD"; then
9613 echo "$as_me:$LINENO: result: $LD" >&5
9614 echo "${ECHO_T}$LD" >&6
9616 echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6
9619 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9620 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9621 { (exit 1); exit 1; }; }
9622 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9623 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9624 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9628 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9629 acl_cv_prog_gnu_ld=yes
9631 acl_cv_prog_gnu_ld=no
9634 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9635 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9636 with_gnu_ld=$acl_cv_prog_gnu_ld
9640 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9641 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9642 if test "${acl_cv_rpath+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9647 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9653 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9654 echo "${ECHO_T}$acl_cv_rpath" >&6
9656 libext="$acl_cv_libext"
9657 shlibext="$acl_cv_shlibext"
9658 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9659 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9660 hardcode_direct="$acl_cv_hardcode_direct"
9661 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9662 # Check whether --enable-rpath or --disable-rpath was given.
9663 if test "${enable_rpath+set}" = set; then
9664 enableval="$enable_rpath"
9678 acl_save_prefix="$prefix"
9679 prefix="$acl_final_prefix"
9680 acl_save_exec_prefix="$exec_prefix"
9681 exec_prefix="$acl_final_exec_prefix"
9683 eval additional_includedir=\"$includedir\"
9684 eval additional_libdir=\"$libdir\"
9686 exec_prefix="$acl_save_exec_prefix"
9687 prefix="$acl_save_prefix"
9690 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9691 if test "${with_libiconv_prefix+set}" = set; then
9692 withval="$with_libiconv_prefix"
9694 if test "X$withval" = "Xno"; then
9697 if test "X$withval" = "X"; then
9699 acl_save_prefix="$prefix"
9700 prefix="$acl_final_prefix"
9701 acl_save_exec_prefix="$exec_prefix"
9702 exec_prefix="$acl_final_exec_prefix"
9704 eval additional_includedir=\"$includedir\"
9705 eval additional_libdir=\"$libdir\"
9707 exec_prefix="$acl_save_exec_prefix"
9708 prefix="$acl_save_prefix"
9711 additional_includedir="$withval/include"
9712 additional_libdir="$withval/lib"
9722 names_already_handled=
9723 names_next_round='iconv '
9724 while test -n "$names_next_round"; do
9725 names_this_round="$names_next_round"
9727 for name in $names_this_round; do
9729 for n in $names_already_handled; do
9730 if test "$n" = "$name"; then
9735 if test -z "$already_handled"; then
9736 names_already_handled="$names_already_handled $name"
9737 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9738 eval value=\"\$HAVE_LIB$uppername\"
9739 if test -n "$value"; then
9740 if test "$value" = yes; then
9741 eval value=\"\$LIB$uppername\"
9742 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9743 eval value=\"\$LTLIB$uppername\"
9744 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9753 if test $use_additional = yes; then
9754 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9755 found_dir="$additional_libdir"
9756 found_so="$additional_libdir/lib$name.$shlibext"
9757 if test -f "$additional_libdir/lib$name.la"; then
9758 found_la="$additional_libdir/lib$name.la"
9761 if test -f "$additional_libdir/lib$name.$libext"; then
9762 found_dir="$additional_libdir"
9763 found_a="$additional_libdir/lib$name.$libext"
9764 if test -f "$additional_libdir/lib$name.la"; then
9765 found_la="$additional_libdir/lib$name.la"
9770 if test "X$found_dir" = "X"; then
9771 for x in $LDFLAGS $LTLIBICONV; do
9773 acl_save_prefix="$prefix"
9774 prefix="$acl_final_prefix"
9775 acl_save_exec_prefix="$exec_prefix"
9776 exec_prefix="$acl_final_exec_prefix"
9778 exec_prefix="$acl_save_exec_prefix"
9779 prefix="$acl_save_prefix"
9783 dir=`echo "X$x" | sed -e 's/^X-L//'`
9784 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9786 found_so="$dir/lib$name.$shlibext"
9787 if test -f "$dir/lib$name.la"; then
9788 found_la="$dir/lib$name.la"
9791 if test -f "$dir/lib$name.$libext"; then
9793 found_a="$dir/lib$name.$libext"
9794 if test -f "$dir/lib$name.la"; then
9795 found_la="$dir/lib$name.la"
9801 if test "X$found_dir" != "X"; then
9806 if test "X$found_dir" != "X"; then
9807 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9808 if test "X$found_so" != "X"; then
9809 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9813 for x in $ltrpathdirs; do
9814 if test "X$x" = "X$found_dir"; then
9819 if test -z "$haveit"; then
9820 ltrpathdirs="$ltrpathdirs $found_dir"
9822 if test "$hardcode_direct" = yes; then
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9825 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9826 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9828 for x in $rpathdirs; do
9829 if test "X$x" = "X$found_dir"; then
9834 if test -z "$haveit"; then
9835 rpathdirs="$rpathdirs $found_dir"
9839 for x in $LDFLAGS $LIBICONV; do
9841 acl_save_prefix="$prefix"
9842 prefix="$acl_final_prefix"
9843 acl_save_exec_prefix="$exec_prefix"
9844 exec_prefix="$acl_final_exec_prefix"
9846 exec_prefix="$acl_save_exec_prefix"
9847 prefix="$acl_save_prefix"
9849 if test "X$x" = "X-L$found_dir"; then
9854 if test -z "$haveit"; then
9855 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9857 if test "$hardcode_minus_L" != no; then
9858 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9860 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9866 if test "X$found_a" != "X"; then
9867 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9869 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9872 additional_includedir=
9873 case "$found_dir" in
9875 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9876 additional_includedir="$basedir/include"
9879 if test "X$additional_includedir" != "X"; then
9880 if test "X$additional_includedir" != "X/usr/include"; then
9882 if test "X$additional_includedir" = "X/usr/local/include"; then
9883 if test -n "$GCC"; then
9885 linux*) haveit=yes;;
9889 if test -z "$haveit"; then
9890 for x in $CPPFLAGS $INCICONV; do
9892 acl_save_prefix="$prefix"
9893 prefix="$acl_final_prefix"
9894 acl_save_exec_prefix="$exec_prefix"
9895 exec_prefix="$acl_final_exec_prefix"
9897 exec_prefix="$acl_save_exec_prefix"
9898 prefix="$acl_save_prefix"
9900 if test "X$x" = "X-I$additional_includedir"; then
9905 if test -z "$haveit"; then
9906 if test -d "$additional_includedir"; then
9907 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9913 if test -n "$found_la"; then
9914 save_libdir="$libdir"
9916 */* | *\\*) . "$found_la" ;;
9917 *) . "./$found_la" ;;
9919 libdir="$save_libdir"
9920 for dep in $dependency_libs; do
9923 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9924 if test "X$additional_libdir" != "X/usr/lib"; then
9926 if test "X$additional_libdir" = "X/usr/local/lib"; then
9927 if test -n "$GCC"; then
9929 linux*) haveit=yes;;
9933 if test -z "$haveit"; then
9935 for x in $LDFLAGS $LIBICONV; do
9937 acl_save_prefix="$prefix"
9938 prefix="$acl_final_prefix"
9939 acl_save_exec_prefix="$exec_prefix"
9940 exec_prefix="$acl_final_exec_prefix"
9942 exec_prefix="$acl_save_exec_prefix"
9943 prefix="$acl_save_prefix"
9945 if test "X$x" = "X-L$additional_libdir"; then
9950 if test -z "$haveit"; then
9951 if test -d "$additional_libdir"; then
9952 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9956 for x in $LDFLAGS $LTLIBICONV; do
9958 acl_save_prefix="$prefix"
9959 prefix="$acl_final_prefix"
9960 acl_save_exec_prefix="$exec_prefix"
9961 exec_prefix="$acl_final_exec_prefix"
9963 exec_prefix="$acl_save_exec_prefix"
9964 prefix="$acl_save_prefix"
9966 if test "X$x" = "X-L$additional_libdir"; then
9971 if test -z "$haveit"; then
9972 if test -d "$additional_libdir"; then
9973 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9980 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9981 if test "$enable_rpath" != no; then
9983 for x in $rpathdirs; do
9984 if test "X$x" = "X$dir"; then
9989 if test -z "$haveit"; then
9990 rpathdirs="$rpathdirs $dir"
9993 for x in $ltrpathdirs; do
9994 if test "X$x" = "X$dir"; then
9999 if test -z "$haveit"; then
10000 ltrpathdirs="$ltrpathdirs $dir"
10005 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10008 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10011 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10018 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10019 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10025 if test "X$rpathdirs" != "X"; then
10026 if test -n "$hardcode_libdir_separator"; then
10028 for found_dir in $rpathdirs; do
10029 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10031 acl_save_libdir="$libdir"
10033 eval flag=\"$hardcode_libdir_flag_spec\"
10034 libdir="$acl_save_libdir"
10035 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10037 for found_dir in $rpathdirs; do
10038 acl_save_libdir="$libdir"
10039 libdir="$found_dir"
10040 eval flag=\"$hardcode_libdir_flag_spec\"
10041 libdir="$acl_save_libdir"
10042 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10046 if test "X$ltrpathdirs" != "X"; then
10047 for found_dir in $ltrpathdirs; do
10048 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10058 am_save_CPPFLAGS="$CPPFLAGS"
10060 for element in $INCICONV; do
10062 for x in $CPPFLAGS; do
10064 acl_save_prefix="$prefix"
10065 prefix="$acl_final_prefix"
10066 acl_save_exec_prefix="$exec_prefix"
10067 exec_prefix="$acl_final_exec_prefix"
10069 exec_prefix="$acl_save_exec_prefix"
10070 prefix="$acl_save_prefix"
10072 if test "X$x" = "X$element"; then
10077 if test -z "$haveit"; then
10078 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10083 echo "$as_me:$LINENO: checking for iconv" >&5
10084 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10085 if test "${am_cv_func_iconv+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 am_cv_func_iconv="no, consider installing GNU libiconv"
10091 if test x$gcc_no_link = xyes; then
10092 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10093 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10094 { (exit 1); exit 1; }; }
10096 cat >conftest.$ac_ext <<_ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 #include <stdlib.h>
10107 iconv_t cd = iconv_open("","");
10108 iconv(cd,NULL,NULL,NULL,NULL);
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>conftest.er1
10118 grep -v '^ *+' conftest.er1 >conftest.err
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag"
10124 || test ! -s conftest.err'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 am_cv_func_iconv=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10142 rm -f conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 if test "$am_cv_func_iconv" != yes; then
10145 am_save_LIBS="$LIBS"
10146 LIBS="$LIBS $LIBICONV"
10147 if test x$gcc_no_link = xyes; then
10148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10150 { (exit 1); exit 1; }; }
10152 cat >conftest.$ac_ext <<_ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 #include <stdlib.h>
10163 iconv_t cd = iconv_open("","");
10164 iconv(cd,NULL,NULL,NULL,NULL);
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1 >conftest.err
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest$ac_exeext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 am_cv_lib_iconv=yes
10193 am_cv_func_iconv=yes
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10199 rm -f conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201 LIBS="$am_save_LIBS"
10205 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10206 echo "${ECHO_T}$am_cv_func_iconv" >&6
10207 if test "$am_cv_func_iconv" = yes; then
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_ICONV 1
10214 if test "$am_cv_lib_iconv" = yes; then
10215 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10216 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10217 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10218 echo "${ECHO_T}$LIBICONV" >&6
10220 CPPFLAGS="$am_save_CPPFLAGS"
10227 if test "$am_cv_func_iconv" = yes; then
10228 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10229 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10230 if test "${am_cv_proto_iconv+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 cat >conftest.$ac_ext <<_ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10241 #include <stdlib.h>
10247 #if defined(__STDC__) || defined(__cplusplus)
10248 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10261 rm -f conftest.$ac_objext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10265 grep -v '^ *+' conftest.er1 >conftest.err
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 am_cv_proto_iconv_arg1=""
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 am_cv_proto_iconv_arg1="const"
10290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10291 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);"
10294 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10295 echo "$as_me:$LINENO: result: ${ac_t:-
10296 }$am_cv_proto_iconv" >&5
10297 echo "${ECHO_T}${ac_t:-
10298 }$am_cv_proto_iconv" >&6
10300 cat >>confdefs.h <<_ACEOF
10301 #define ICONV_CONST $am_cv_proto_iconv_arg1
10307 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10308 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10309 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 if test x$gcc_no_link = xyes; then
10313 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10314 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10315 { (exit 1); exit 1; }; }
10317 cat >conftest.$ac_ext <<_ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 #include <locale.h>
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>conftest.er1
10336 grep -v '^ *+' conftest.er1 >conftest.err
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag"
10342 || test ! -s conftest.err'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 am_cv_val_LC_MESSAGES=yes
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 am_cv_val_LC_MESSAGES=no
10361 rm -f conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10364 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10365 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10366 if test $am_cv_val_LC_MESSAGES = yes; then
10368 cat >>confdefs.h <<\_ACEOF
10369 #define HAVE_LC_MESSAGES 1
10374 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10375 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10376 if test "${ac_cv_struct_tm+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 #include <sys/types.h>
10391 struct tm *tp; tp->tm_sec;
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 (eval $ac_compile) 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag"
10406 || test ! -s conftest.err'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; } &&
10412 { ac_try='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_cv_struct_tm=time.h
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_cv_struct_tm=sys/time.h
10425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10427 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10428 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10429 if test $ac_cv_struct_tm = sys/time.h; then
10431 cat >>confdefs.h <<\_ACEOF
10432 #define TM_IN_SYS_TIME 1
10437 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10438 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10439 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 cat >conftest.$ac_ext <<_ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10448 #include <sys/types.h>
10449 #include <$ac_cv_struct_tm>
10455 static struct tm ac_aggr;
10456 if (ac_aggr.tm_zone)
10462 rm -f conftest.$ac_objext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464 (eval $ac_compile) 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest.$ac_objext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_member_struct_tm_tm_zone=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 cat >conftest.$ac_ext <<_ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 #include <sys/types.h>
10496 #include <$ac_cv_struct_tm>
10502 static struct tm ac_aggr;
10503 if (sizeof ac_aggr.tm_zone)
10509 rm -f conftest.$ac_objext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -z "$ac_c_werror_flag"
10519 || test ! -s conftest.err'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; } &&
10525 { ac_try='test -s conftest.$ac_objext'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_cv_member_struct_tm_tm_zone=yes
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 ac_cv_member_struct_tm_tm_zone=no
10538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10542 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10543 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10544 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10546 cat >>confdefs.h <<_ACEOF
10547 #define HAVE_STRUCT_TM_TM_ZONE 1
10553 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10555 cat >>confdefs.h <<\_ACEOF
10556 #define HAVE_TM_ZONE 1
10560 echo "$as_me:$LINENO: checking for tzname" >&5
10561 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10562 if test "${ac_cv_var_tzname+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 if test x$gcc_no_link = xyes; then
10566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10568 { (exit 1); exit 1; }; }
10570 cat >conftest.$ac_ext <<_ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10577 #ifndef tzname /* For SGI. */
10578 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10589 rm -f conftest.$ac_objext conftest$ac_exeext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10591 (eval $ac_link) 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag"
10599 || test ! -s conftest.err'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest$ac_exeext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_var_tzname=yes
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_cv_var_tzname=no
10618 rm -f conftest.err conftest.$ac_objext \
10619 conftest$ac_exeext conftest.$ac_ext
10621 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10622 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10623 if test $ac_cv_var_tzname = yes; then
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_TZNAME 1
10635 for ac_func in gethostbyname_r
10637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10638 echo "$as_me:$LINENO: checking for $ac_func" >&5
10639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10640 if eval "test \"\${$as_ac_var+set}\" = set"; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 if test x$gcc_no_link = xyes; then
10644 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10646 { (exit 1); exit 1; }; }
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10656 #define $ac_func innocuous_$ac_func
10658 /* System header to define __stub macros and hopefully few prototypes,
10659 which can conflict with char $ac_func (); below.
10660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10661 <limits.h> exists even on freestanding compilers. */
10664 # include <limits.h>
10666 # include <assert.h>
10671 /* Override any gcc2 internal prototype to avoid an error. */
10676 /* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10679 /* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10685 char (*f) () = $ac_func;
10694 return f != $ac_func;
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 eval "$as_ac_var=yes"
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 eval "$as_ac_var=no"
10728 rm -f conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10733 if test `eval echo '${'$as_ac_var'}'` = yes; then
10734 cat >>confdefs.h <<_ACEOF
10735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10739 cat >>confdefs.h <<\_ACEOF
10740 #define HAVE_GETHOSTBYNAME_R 1
10743 # There are two different kinds of gethostbyname_r.
10744 # We look for the one that returns `int'.
10745 # Hopefully this check is robust enough.
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10756 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10759 cat >>confdefs.h <<\_ACEOF
10760 #define GETHOSTBYNAME_R_RETURNS_INT 1
10767 case " $GCINCS " in
10768 *" -D_REENTRANT "*) ;;
10770 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10771 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10772 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 ac_cpp='$CXXCPP $CPPFLAGS'
10777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10781 cat >conftest.$ac_ext <<_ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10791 gethostbyname_r("", 0, 0);
10796 rm -f conftest.$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798 (eval $ac_compile) 2>conftest.er1
10800 grep -v '^ *+' conftest.er1 >conftest.err
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -z "$ac_cxx_werror_flag"
10806 || test ! -s conftest.err'
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; } &&
10812 { ac_try='test -s conftest.$ac_objext'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 libjava_cv_gethostbyname_r_needs_reentrant=no
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 CPPFLAGS_SAVE="$CPPFLAGS"
10824 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10825 cat >conftest.$ac_ext <<_ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10835 gethostbyname_r("", 0, 0);
10840 rm -f conftest.$ac_objext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>conftest.er1
10844 grep -v '^ *+' conftest.er1 >conftest.err
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
10849 { ac_try='test -z "$ac_cxx_werror_flag"
10850 || test ! -s conftest.err'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; } &&
10856 { ac_try='test -s conftest.$ac_objext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 libjava_cv_gethostbyname_r_needs_reentrant=yes
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 libjava_cv_gethostbyname_r_needs_reentrant=fail
10869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10870 CPPFLAGS="$CPPFLAGS_SAVE"
10873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10875 ac_cpp='$CPP $CPPFLAGS'
10876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10882 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10883 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10884 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10886 cat >>confdefs.h <<\_ACEOF
10887 #define _REENTRANT 1
10894 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10895 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10896 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10906 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10907 # define _REENTRANT 1
10913 struct hostent_data data;
10918 rm -f conftest.$ac_objext
10919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10920 (eval $ac_compile) 2>conftest.er1
10922 grep -v '^ *+' conftest.er1 >conftest.err
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try='test -z "$ac_c_werror_flag"
10928 || test ! -s conftest.err'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try='test -s conftest.$ac_objext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 libjava_cv_struct_hostent_data=yes
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 libjava_cv_struct_hostent_data=no
10947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10949 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10950 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10951 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10953 cat >>confdefs.h <<\_ACEOF
10954 #define HAVE_STRUCT_HOSTENT_DATA 1
10963 # FIXME: libjava source code expects to find a prototype for
10964 # gethostbyaddr_r in netdb.h. The outer check ensures that
10965 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10966 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10967 # linkage check is enough, yet C++ code requires proper prototypes.)
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10978 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10981 for ac_func in gethostbyaddr_r
10983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10984 echo "$as_me:$LINENO: checking for $ac_func" >&5
10985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10986 if eval "test \"\${$as_ac_var+set}\" = set"; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 if test x$gcc_no_link = xyes; then
10990 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10992 { (exit 1); exit 1; }; }
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11002 #define $ac_func innocuous_$ac_func
11004 /* System header to define __stub macros and hopefully few prototypes,
11005 which can conflict with char $ac_func (); below.
11006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007 <limits.h> exists even on freestanding compilers. */
11010 # include <limits.h>
11012 # include <assert.h>
11017 /* Override any gcc2 internal prototype to avoid an error. */
11022 /* We use char because int might match the return type of a gcc2
11023 builtin and then its argument prototype would still apply. */
11025 /* The GNU C library defines this for functions which it implements
11026 to always fail with ENOSYS. Some functions are actually named
11027 something starting with __ and the normal name is an alias. */
11028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11031 char (*f) () = $ac_func;
11040 return f != $ac_func;
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047 (eval $ac_link) 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -z "$ac_c_werror_flag"
11055 || test ! -s conftest.err'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 eval "$as_ac_var=yes"
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 eval "$as_ac_var=no"
11074 rm -f conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11079 if test `eval echo '${'$as_ac_var'}'` = yes; then
11080 cat >>confdefs.h <<_ACEOF
11081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11085 cat >>confdefs.h <<\_ACEOF
11086 #define HAVE_GETHOSTBYADDR_R 1
11089 # There are two different kinds of gethostbyaddr_r.
11090 # We look for the one that returns `int'.
11091 # Hopefully this check is robust enough.
11092 cat >conftest.$ac_ext <<_ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11102 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11105 cat >>confdefs.h <<\_ACEOF
11106 #define GETHOSTBYADDR_R_RETURNS_INT 1
11120 for ac_func in gethostname
11122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11123 echo "$as_me:$LINENO: checking for $ac_func" >&5
11124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11125 if eval "test \"\${$as_ac_var+set}\" = set"; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 if test x$gcc_no_link = xyes; then
11129 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11130 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11131 { (exit 1); exit 1; }; }
11133 cat >conftest.$ac_ext <<_ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11141 #define $ac_func innocuous_$ac_func
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below.
11145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 <limits.h> exists even on freestanding compilers. */
11149 # include <limits.h>
11151 # include <assert.h>
11156 /* Override any gcc2 internal prototype to avoid an error. */
11161 /* We use char because int might match the return type of a gcc2
11162 builtin and then its argument prototype would still apply. */
11164 /* The GNU C library defines this for functions which it implements
11165 to always fail with ENOSYS. Some functions are actually named
11166 something starting with __ and the normal name is an alias. */
11167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11170 char (*f) () = $ac_func;
11179 return f != $ac_func;
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>conftest.er1
11188 grep -v '^ *+' conftest.er1 >conftest.err
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try='test -z "$ac_c_werror_flag"
11194 || test ! -s conftest.err'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest$ac_exeext'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 eval "$as_ac_var=yes"
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 eval "$as_ac_var=no"
11213 rm -f conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11218 if test `eval echo '${'$as_ac_var'}'` = yes; then
11219 cat >>confdefs.h <<_ACEOF
11220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224 cat >>confdefs.h <<\_ACEOF
11225 #define HAVE_GETHOSTNAME 1
11228 cat >conftest.$ac_ext <<_ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 #include <unistd.h>
11237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11238 $EGREP "gethostname" >/dev/null 2>&1; then
11241 cat >>confdefs.h <<\_ACEOF
11242 #define HAVE_GETHOSTNAME_DECL 1
11253 for ac_func in usleep
11255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11256 echo "$as_me:$LINENO: checking for $ac_func" >&5
11257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11258 if eval "test \"\${$as_ac_var+set}\" = set"; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 if test x$gcc_no_link = xyes; then
11262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11264 { (exit 1); exit 1; }; }
11266 cat >conftest.$ac_ext <<_ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11274 #define $ac_func innocuous_$ac_func
11276 /* System header to define __stub macros and hopefully few prototypes,
11277 which can conflict with char $ac_func (); below.
11278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11279 <limits.h> exists even on freestanding compilers. */
11282 # include <limits.h>
11284 # include <assert.h>
11289 /* Override any gcc2 internal prototype to avoid an error. */
11294 /* We use char because int might match the return type of a gcc2
11295 builtin and then its argument prototype would still apply. */
11297 /* The GNU C library defines this for functions which it implements
11298 to always fail with ENOSYS. Some functions are actually named
11299 something starting with __ and the normal name is an alias. */
11300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11303 char (*f) () = $ac_func;
11312 return f != $ac_func;
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319 (eval $ac_link) 2>conftest.er1
11321 grep -v '^ *+' conftest.er1 >conftest.err
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
11326 { ac_try='test -z "$ac_c_werror_flag"
11327 || test ! -s conftest.err'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest$ac_exeext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 eval "$as_ac_var=yes"
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 eval "$as_ac_var=no"
11346 rm -f conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11351 if test `eval echo '${'$as_ac_var'}'` = yes; then
11352 cat >>confdefs.h <<_ACEOF
11353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11356 cat >conftest.$ac_ext <<_ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 #include <unistd.h>
11365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11366 $EGREP "usleep" >/dev/null 2>&1; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_USLEEP_DECL 1
11380 # Look for these functions in the thread library, but only bother
11381 # if using POSIX threads.
11382 if test "$THREADS" = posix; then
11384 LIBS="$LIBS $THREADLIBS"
11385 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11389 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11392 echo "$as_me:$LINENO: checking for $ac_func" >&5
11393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11394 if eval "test \"\${$as_ac_var+set}\" = set"; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 if test x$gcc_no_link = xyes; then
11398 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11399 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11400 { (exit 1); exit 1; }; }
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11410 #define $ac_func innocuous_$ac_func
11412 /* System header to define __stub macros and hopefully few prototypes,
11413 which can conflict with char $ac_func (); below.
11414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11415 <limits.h> exists even on freestanding compilers. */
11418 # include <limits.h>
11420 # include <assert.h>
11425 /* Override any gcc2 internal prototype to avoid an error. */
11430 /* We use char because int might match the return type of a gcc2
11431 builtin and then its argument prototype would still apply. */
11433 /* The GNU C library defines this for functions which it implements
11434 to always fail with ENOSYS. Some functions are actually named
11435 something starting with __ and the normal name is an alias. */
11436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11439 char (*f) () = $ac_func;
11448 return f != $ac_func;
11453 rm -f conftest.$ac_objext conftest$ac_exeext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11455 (eval $ac_link) 2>conftest.er1
11457 grep -v '^ *+' conftest.er1 >conftest.err
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_c_werror_flag"
11463 || test ! -s conftest.err'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest$ac_exeext'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 eval "$as_ac_var=yes"
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 eval "$as_ac_var=no"
11482 rm -f conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11487 if test `eval echo '${'$as_ac_var'}'` = yes; then
11488 cat >>confdefs.h <<_ACEOF
11489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11496 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11497 # Solaris 7 the name librt is preferred.
11499 for ac_func in sched_yield
11501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11502 echo "$as_me:$LINENO: checking for $ac_func" >&5
11503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11504 if eval "test \"\${$as_ac_var+set}\" = set"; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 if test x$gcc_no_link = xyes; then
11508 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11510 { (exit 1); exit 1; }; }
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11520 #define $ac_func innocuous_$ac_func
11522 /* System header to define __stub macros and hopefully few prototypes,
11523 which can conflict with char $ac_func (); below.
11524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11525 <limits.h> exists even on freestanding compilers. */
11528 # include <limits.h>
11530 # include <assert.h>
11535 /* Override any gcc2 internal prototype to avoid an error. */
11540 /* We use char because int might match the return type of a gcc2
11541 builtin and then its argument prototype would still apply. */
11543 /* The GNU C library defines this for functions which it implements
11544 to always fail with ENOSYS. Some functions are actually named
11545 something starting with __ and the normal name is an alias. */
11546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11549 char (*f) () = $ac_func;
11558 return f != $ac_func;
11563 rm -f conftest.$ac_objext conftest$ac_exeext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565 (eval $ac_link) 2>conftest.er1
11567 grep -v '^ *+' conftest.er1 >conftest.err
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
11572 { ac_try='test -z "$ac_c_werror_flag"
11573 || test ! -s conftest.err'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try='test -s conftest$ac_exeext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 eval "$as_ac_var=yes"
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 eval "$as_ac_var=no"
11592 rm -f conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11597 if test `eval echo '${'$as_ac_var'}'` = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11604 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11605 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11606 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 ac_check_lib_save_LIBS=$LIBS
11611 if test x$gcc_no_link = xyes; then
11612 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11613 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11614 { (exit 1); exit 1; }; }
11616 cat >conftest.$ac_ext <<_ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11623 /* Override any gcc2 internal prototype to avoid an error. */
11627 /* We use char because int might match the return type of a gcc2
11628 builtin and then its argument prototype would still apply. */
11629 char sched_yield ();
11638 rm -f conftest.$ac_objext conftest$ac_exeext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11640 (eval $ac_link) 2>conftest.er1
11642 grep -v '^ *+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -z "$ac_c_werror_flag"
11648 || test ! -s conftest.err'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 ac_cv_lib_rt_sched_yield=yes
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11665 ac_cv_lib_rt_sched_yield=no
11667 rm -f conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11671 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11672 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11673 if test $ac_cv_lib_rt_sched_yield = yes; then
11675 cat >>confdefs.h <<\_ACEOF
11676 #define HAVE_SCHED_YIELD 1
11679 THREADLIBS="$THREADLIBS -lrt"
11680 THREADSPEC="$THREADSPEC -lrt"
11683 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11684 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11685 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 ac_check_lib_save_LIBS=$LIBS
11689 LIBS="-lposix4 $LIBS"
11690 if test x$gcc_no_link = xyes; then
11691 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11693 { (exit 1); exit 1; }; }
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11702 /* Override any gcc2 internal prototype to avoid an error. */
11706 /* We use char because int might match the return type of a gcc2
11707 builtin and then its argument prototype would still apply. */
11708 char sched_yield ();
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719 (eval $ac_link) 2>conftest.er1
11721 grep -v '^ *+' conftest.er1 >conftest.err
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -z "$ac_c_werror_flag"
11727 || test ! -s conftest.err'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; } &&
11733 { ac_try='test -s conftest$ac_exeext'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 ac_cv_lib_posix4_sched_yield=yes
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 ac_cv_lib_posix4_sched_yield=no
11746 rm -f conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748 LIBS=$ac_check_lib_save_LIBS
11750 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11751 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11752 if test $ac_cv_lib_posix4_sched_yield = yes; then
11754 cat >>confdefs.h <<\_ACEOF
11755 #define HAVE_SCHED_YIELD 1
11758 THREADLIBS="$THREADLIBS -lposix4"
11759 THREADSPEC="$THREADSPEC -lposix4"
11769 # We can save a little space at runtime if the mutex has m_count
11770 # or __m_count. This is a nice hack for Linux.
11771 cat >conftest.$ac_ext <<_ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 #include <pthread.h>
11782 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11788 rm -f conftest.$ac_objext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11790 (eval $ac_compile) 2>conftest.er1
11792 grep -v '^ *+' conftest.er1 >conftest.err
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -z "$ac_c_werror_flag"
11798 || test ! -s conftest.err'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest.$ac_objext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11811 cat >>confdefs.h <<\_ACEOF
11812 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11820 cat >conftest.$ac_ext <<_ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 #include <pthread.h>
11831 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11837 rm -f conftest.$ac_objext
11838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839 (eval $ac_compile) 2>conftest.er1
11841 grep -v '^ *+' conftest.er1 >conftest.err
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -z "$ac_c_werror_flag"
11847 || test ! -s conftest.err'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; } &&
11853 { ac_try='test -s conftest.$ac_objext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11860 cat >>confdefs.h <<\_ACEOF
11861 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11874 # We require a way to get the time.
11879 for ac_func in gettimeofday time ftime
11881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11882 echo "$as_me:$LINENO: checking for $ac_func" >&5
11883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11884 if eval "test \"\${$as_ac_var+set}\" = set"; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 if test x$gcc_no_link = xyes; then
11888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11890 { (exit 1); exit 1; }; }
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11900 #define $ac_func innocuous_$ac_func
11902 /* System header to define __stub macros and hopefully few prototypes,
11903 which can conflict with char $ac_func (); below.
11904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11905 <limits.h> exists even on freestanding compilers. */
11908 # include <limits.h>
11910 # include <assert.h>
11915 /* Override any gcc2 internal prototype to avoid an error. */
11920 /* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11923 /* The GNU C library defines this for functions which it implements
11924 to always fail with ENOSYS. Some functions are actually named
11925 something starting with __ and the normal name is an alias. */
11926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11929 char (*f) () = $ac_func;
11938 return f != $ac_func;
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945 (eval $ac_link) 2>conftest.er1
11947 grep -v '^ *+' conftest.er1 >conftest.err
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -z "$ac_c_werror_flag"
11953 || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest$ac_exeext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 eval "$as_ac_var=yes"
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970 eval "$as_ac_var=no"
11972 rm -f conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985 if test "$time_found" = no; then
11986 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11987 echo "$as_me: error: no function found to get the time" >&2;}
11988 { (exit 1); exit 1; }; }
11992 for ac_func in memmove
11994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11995 echo "$as_me:$LINENO: checking for $ac_func" >&5
11996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11997 if eval "test \"\${$as_ac_var+set}\" = set"; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 if test x$gcc_no_link = xyes; then
12001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12003 { (exit 1); exit 1; }; }
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12013 #define $ac_func innocuous_$ac_func
12015 /* System header to define __stub macros and hopefully few prototypes,
12016 which can conflict with char $ac_func (); below.
12017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12018 <limits.h> exists even on freestanding compilers. */
12021 # include <limits.h>
12023 # include <assert.h>
12028 /* Override any gcc2 internal prototype to avoid an error. */
12033 /* We use char because int might match the return type of a gcc2
12034 builtin and then its argument prototype would still apply. */
12036 /* The GNU C library defines this for functions which it implements
12037 to always fail with ENOSYS. Some functions are actually named
12038 something starting with __ and the normal name is an alias. */
12039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12042 char (*f) () = $ac_func;
12051 return f != $ac_func;
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058 (eval $ac_link) 2>conftest.er1
12060 grep -v '^ *+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -z "$ac_c_werror_flag"
12066 || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 eval "$as_ac_var=yes"
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 eval "$as_ac_var=no"
12085 rm -f conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12090 if test `eval echo '${'$as_ac_var'}'` = yes; then
12091 cat >>confdefs.h <<_ACEOF
12092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12099 # We require memcpy.
12102 for ac_func in memcpy
12104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12105 echo "$as_me:$LINENO: checking for $ac_func" >&5
12106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12107 if eval "test \"\${$as_ac_var+set}\" = set"; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 if test x$gcc_no_link = xyes; then
12111 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12112 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12113 { (exit 1); exit 1; }; }
12115 cat >conftest.$ac_ext <<_ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12123 #define $ac_func innocuous_$ac_func
12125 /* System header to define __stub macros and hopefully few prototypes,
12126 which can conflict with char $ac_func (); below.
12127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128 <limits.h> exists even on freestanding compilers. */
12131 # include <limits.h>
12133 # include <assert.h>
12138 /* Override any gcc2 internal prototype to avoid an error. */
12143 /* We use char because int might match the return type of a gcc2
12144 builtin and then its argument prototype would still apply. */
12146 /* The GNU C library defines this for functions which it implements
12147 to always fail with ENOSYS. Some functions are actually named
12148 something starting with __ and the normal name is an alias. */
12149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12152 char (*f) () = $ac_func;
12161 return f != $ac_func;
12166 rm -f conftest.$ac_objext conftest$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168 (eval $ac_link) 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -z "$ac_c_werror_flag"
12176 || test ! -s conftest.err'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 eval "$as_ac_var=yes"
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 eval "$as_ac_var=no"
12195 rm -f conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12200 if test `eval echo '${'$as_ac_var'}'` = yes; then
12201 cat >>confdefs.h <<_ACEOF
12202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12208 if test "$memcpy_found" = no; then
12209 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12210 echo "$as_me: error: memcpy is required" >&2;}
12211 { (exit 1); exit 1; }; }
12214 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12215 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12216 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 ac_check_lib_save_LIBS=$LIBS
12221 if test x$gcc_no_link = xyes; then
12222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12224 { (exit 1); exit 1; }; }
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 /* Override any gcc2 internal prototype to avoid an error. */
12237 /* We use char because int might match the return type of a gcc2
12238 builtin and then its argument prototype would still apply. */
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest$ac_exeext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_cv_lib_dl_dlopen=yes
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_cv_lib_dl_dlopen=no
12277 rm -f conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12281 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12282 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12283 if test $ac_cv_lib_dl_dlopen = yes; then
12286 cat >>confdefs.h <<\_ACEOF
12287 #define HAVE_DLOPEN 1
12293 # Some library-finding code we stole from Tcl.
12294 #--------------------------------------------------------------------
12295 # Check for the existence of the -lsocket and -lnsl libraries.
12296 # The order here is important, so that they end up in the right
12297 # order in the command line generated by make. Here are some
12298 # special considerations:
12299 # 1. Use "connect" and "accept" to check for -lsocket, and
12300 # "gethostbyname" to check for -lnsl.
12301 # 2. Use each function name only once: can't redo a check because
12302 # autoconf caches the results of the last check and won't redo it.
12303 # 3. Use -lnsl and -lsocket only if they supply procedures that
12304 # aren't already present in the normal libraries. This is because
12305 # IRIX 5.2 has libraries, but they aren't needed and they're
12306 # bogus: they goof up name resolution if used.
12307 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12308 # To get around this problem, check for both libraries together
12309 # if -lsocket doesn't work by itself.
12310 #--------------------------------------------------------------------
12312 echo "$as_me:$LINENO: checking for socket libraries" >&5
12313 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12314 if test "${gcj_cv_lib_sockets+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 gcj_cv_lib_sockets=
12319 unset ac_cv_func_connect
12320 echo "$as_me:$LINENO: checking for connect" >&5
12321 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12322 if test "${ac_cv_func_connect+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 if test x$gcc_no_link = xyes; then
12326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12328 { (exit 1); exit 1; }; }
12330 cat >conftest.$ac_ext <<_ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12338 #define connect innocuous_connect
12340 /* System header to define __stub macros and hopefully few prototypes,
12341 which can conflict with char connect (); below.
12342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12343 <limits.h> exists even on freestanding compilers. */
12346 # include <limits.h>
12348 # include <assert.h>
12353 /* Override any gcc2 internal prototype to avoid an error. */
12358 /* We use char because int might match the return type of a gcc2
12359 builtin and then its argument prototype would still apply. */
12361 /* The GNU C library defines this for functions which it implements
12362 to always fail with ENOSYS. Some functions are actually named
12363 something starting with __ and the normal name is an alias. */
12364 #if defined (__stub_connect) || defined (__stub___connect)
12367 char (*f) () = connect;
12376 return f != connect;
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_func_connect=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_cv_func_connect=no
12410 rm -f conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12413 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12414 echo "${ECHO_T}$ac_cv_func_connect" >&6
12415 if test $ac_cv_func_connect = yes; then
12421 if test "$gcj_checkSocket" = 1; then
12422 unset ac_cv_func_connect
12423 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12424 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12425 if test "${ac_cv_lib_socket_main+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-lsocket $LIBS"
12430 if test x$gcc_no_link = xyes; then
12431 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12433 { (exit 1); exit 1; }; }
12435 cat >conftest.$ac_ext <<_ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12451 rm -f conftest.$ac_objext conftest$ac_exeext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_c_werror_flag"
12461 || test ! -s conftest.err'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest$ac_exeext'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_lib_socket_main=yes
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12478 ac_cv_lib_socket_main=no
12480 rm -f conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12484 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12485 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12486 if test $ac_cv_lib_socket_main = yes; then
12487 gcj_cv_lib_sockets="-lsocket"
12493 if test "$gcj_checkBoth" = 1; then
12495 LIBS="$LIBS -lsocket -lnsl"
12496 unset ac_cv_func_accept
12497 echo "$as_me:$LINENO: checking for accept" >&5
12498 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12499 if test "${ac_cv_func_accept+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 if test x$gcc_no_link = xyes; then
12503 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12505 { (exit 1); exit 1; }; }
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12515 #define accept innocuous_accept
12517 /* System header to define __stub macros and hopefully few prototypes,
12518 which can conflict with char accept (); below.
12519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12520 <limits.h> exists even on freestanding compilers. */
12523 # include <limits.h>
12525 # include <assert.h>
12530 /* Override any gcc2 internal prototype to avoid an error. */
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12538 /* The GNU C library defines this for functions which it implements
12539 to always fail with ENOSYS. Some functions are actually named
12540 something starting with __ and the normal name is an alias. */
12541 #if defined (__stub_accept) || defined (__stub___accept)
12544 char (*f) () = accept;
12553 return f != accept;
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560 (eval $ac_link) 2>conftest.er1
12562 grep -v '^ *+' conftest.er1 >conftest.err
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -z "$ac_c_werror_flag"
12568 || test ! -s conftest.err'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 ac_cv_func_accept=yes
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 ac_cv_func_accept=no
12587 rm -f conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12590 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12591 echo "${ECHO_T}$ac_cv_func_accept" >&6
12592 if test $ac_cv_func_accept = yes; then
12594 gcj_cv_lib_sockets="-lsocket -lnsl"
12597 unset ac_cv_func_accept
12600 unset ac_cv_func_gethostbyname
12602 LIBS="$LIBS $gcj_cv_lib_sockets"
12603 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12604 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12605 if test "${ac_cv_func_gethostbyname+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 if test x$gcc_no_link = xyes; then
12609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12611 { (exit 1); exit 1; }; }
12613 cat >conftest.$ac_ext <<_ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12621 #define gethostbyname innocuous_gethostbyname
12623 /* System header to define __stub macros and hopefully few prototypes,
12624 which can conflict with char gethostbyname (); below.
12625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12626 <limits.h> exists even on freestanding compilers. */
12629 # include <limits.h>
12631 # include <assert.h>
12634 #undef gethostbyname
12636 /* Override any gcc2 internal prototype to avoid an error. */
12641 /* We use char because int might match the return type of a gcc2
12642 builtin and then its argument prototype would still apply. */
12643 char gethostbyname ();
12644 /* The GNU C library defines this for functions which it implements
12645 to always fail with ENOSYS. Some functions are actually named
12646 something starting with __ and the normal name is an alias. */
12647 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12650 char (*f) () = gethostbyname;
12659 return f != gethostbyname;
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>conftest.er1
12668 grep -v '^ *+' conftest.er1 >conftest.err
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
12673 { ac_try='test -z "$ac_c_werror_flag"
12674 || test ! -s conftest.err'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_cv_func_gethostbyname=yes
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 ac_cv_func_gethostbyname=no
12693 rm -f conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12696 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12697 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12698 if test $ac_cv_func_gethostbyname = yes; then
12701 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12702 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12703 if test "${ac_cv_lib_nsl_main+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 ac_check_lib_save_LIBS=$LIBS
12708 if test x$gcc_no_link = xyes; then
12709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12711 { (exit 1); exit 1; }; }
12713 cat >conftest.$ac_ext <<_ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12729 rm -f conftest.$ac_objext conftest$ac_exeext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12731 (eval $ac_link) 2>conftest.er1
12733 grep -v '^ *+' conftest.er1 >conftest.err
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -z "$ac_c_werror_flag"
12739 || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_lib_nsl_main=yes
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 ac_cv_lib_nsl_main=no
12758 rm -f conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
12760 LIBS=$ac_check_lib_save_LIBS
12762 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12763 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12764 if test $ac_cv_lib_nsl_main = yes; then
12765 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12770 unset ac_cv_func_gethostbyname
12774 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12775 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12776 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12778 if test "$with_system_zlib" = yes; then
12779 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12780 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12781 if test "${ac_cv_lib_z_deflate+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 ac_check_lib_save_LIBS=$LIBS
12786 if test x$gcc_no_link = xyes; then
12787 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12789 { (exit 1); exit 1; }; }
12791 cat >conftest.$ac_ext <<_ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12798 /* Override any gcc2 internal prototype to avoid an error. */
12802 /* We use char because int might match the return type of a gcc2
12803 builtin and then its argument prototype would still apply. */
12813 rm -f conftest.$ac_objext conftest$ac_exeext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12815 (eval $ac_link) 2>conftest.er1
12817 grep -v '^ *+' conftest.er1 >conftest.err
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -z "$ac_c_werror_flag"
12823 || test ! -s conftest.err'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; } &&
12829 { ac_try='test -s conftest$ac_exeext'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 ac_cv_lib_z_deflate=yes
12837 echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12840 ac_cv_lib_z_deflate=no
12842 rm -f conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12844 LIBS=$ac_check_lib_save_LIBS
12846 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12847 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12848 if test $ac_cv_lib_z_deflate = yes; then
12856 # Test for Gtk stuff, if asked for.
12857 if test "$use_gtk_awt" = yes; then
12861 if test -z "$PKG_CONFIG"; then
12862 # Extract the first word of "pkg-config", so it can be a program name with args.
12863 set dummy pkg-config; ac_word=$2
12864 echo "$as_me:$LINENO: checking for $ac_word" >&5
12865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12866 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 case $PKG_CONFIG in
12871 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12878 test -z "$as_dir" && as_dir=.
12879 for ac_exec_ext in '' $ac_executable_extensions; do
12880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12881 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12892 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12894 if test -n "$PKG_CONFIG"; then
12895 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12896 echo "${ECHO_T}$PKG_CONFIG" >&6
12898 echo "$as_me:$LINENO: result: no" >&5
12899 echo "${ECHO_T}no" >&6
12904 if test "$PKG_CONFIG" = "no" ; then
12905 echo "*** The pkg-config script could not be found. Make sure it is"
12906 echo "*** in your path, or set the PKG_CONFIG environment variable"
12907 echo "*** to the full path to pkg-config."
12908 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12910 PKG_CONFIG_MIN_VERSION=0.9.0
12911 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12912 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12913 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12915 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12916 echo "$as_me:$LINENO: result: yes" >&5
12917 echo "${ECHO_T}yes" >&6
12920 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12921 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12922 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12923 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12924 echo "${ECHO_T}$GTK_CFLAGS" >&6
12926 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12927 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12928 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12929 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12930 echo "${ECHO_T}$GTK_LIBS" >&6
12934 ## If we have a custom action on failure, don't print errors, but
12935 ## do set a variable so people can do so.
12936 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12937 echo $GTK_PKG_ERRORS
12943 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12944 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12948 if test $succeeded = yes; then
12951 { { 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
12952 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;}
12953 { (exit 1); exit 1; }; }
12962 if test -z "$PKG_CONFIG"; then
12963 # Extract the first word of "pkg-config", so it can be a program name with args.
12964 set dummy pkg-config; ac_word=$2
12965 echo "$as_me:$LINENO: checking for $ac_word" >&5
12966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12967 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 case $PKG_CONFIG in
12972 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12982 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12989 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12993 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12995 if test -n "$PKG_CONFIG"; then
12996 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12997 echo "${ECHO_T}$PKG_CONFIG" >&6
12999 echo "$as_me:$LINENO: result: no" >&5
13000 echo "${ECHO_T}no" >&6
13005 if test "$PKG_CONFIG" = "no" ; then
13006 echo "*** The pkg-config script could not be found. Make sure it is"
13007 echo "*** in your path, or set the PKG_CONFIG environment variable"
13008 echo "*** to the full path to pkg-config."
13009 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13011 PKG_CONFIG_MIN_VERSION=0.9.0
13012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13013 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13014 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13016 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13017 echo "$as_me:$LINENO: result: yes" >&5
13018 echo "${ECHO_T}yes" >&6
13021 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13022 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13023 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13024 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13025 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13027 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13028 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13029 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13030 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13031 echo "${ECHO_T}$GLIB_LIBS" >&6
13035 ## If we have a custom action on failure, don't print errors, but
13036 ## do set a variable so people can do so.
13037 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13038 echo $GLIB_PKG_ERRORS
13044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13049 if test $succeeded = yes; then
13052 { { 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
13053 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;}
13054 { (exit 1); exit 1; }; }
13063 if test -z "$PKG_CONFIG"; then
13064 # Extract the first word of "pkg-config", so it can be a program name with args.
13065 set dummy pkg-config; ac_word=$2
13066 echo "$as_me:$LINENO: checking for $ac_word" >&5
13067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13068 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 case $PKG_CONFIG in
13073 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13083 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13096 if test -n "$PKG_CONFIG"; then
13097 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13098 echo "${ECHO_T}$PKG_CONFIG" >&6
13100 echo "$as_me:$LINENO: result: no" >&5
13101 echo "${ECHO_T}no" >&6
13106 if test "$PKG_CONFIG" = "no" ; then
13107 echo "*** The pkg-config script could not be found. Make sure it is"
13108 echo "*** in your path, or set the PKG_CONFIG environment variable"
13109 echo "*** to the full path to pkg-config."
13110 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13112 PKG_CONFIG_MIN_VERSION=0.9.0
13113 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13114 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13115 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13117 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13118 echo "$as_me:$LINENO: result: yes" >&5
13119 echo "${ECHO_T}yes" >&6
13122 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13123 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13124 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13125 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13126 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13128 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13129 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13130 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13131 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13132 echo "${ECHO_T}$LIBART_LIBS" >&6
13136 ## If we have a custom action on failure, don't print errors, but
13137 ## do set a variable so people can do so.
13138 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13139 echo $LIBART_PKG_ERRORS
13145 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13146 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13150 if test $succeeded = yes; then
13153 { { 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
13154 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;}
13155 { (exit 1); exit 1; }; }
13161 # We require the XTest Extension to support java.awt.Robot.
13162 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13163 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13164 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lXtst ${X_LIBS} $LIBS"
13169 if test x$gcc_no_link = xyes; then
13170 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13171 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13172 { (exit 1); exit 1; }; }
13174 cat >conftest.$ac_ext <<_ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13181 /* Override any gcc2 internal prototype to avoid an error. */
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13187 char XTestQueryExtension ();
13191 XTestQueryExtension ();
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_c_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_lib_Xtst_XTestQueryExtension=yes
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 ac_cv_lib_Xtst_XTestQueryExtension=no
13225 rm -f conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13230 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13231 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13234 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13235 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13236 { (exit 1); exit 1; }; }
13241 # On Solaris, and maybe other architectures, the Boehm collector
13243 if test "$GC" = boehm; then
13244 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13245 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13246 if test "${ac_cv_lib_dl_main+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 ac_check_lib_save_LIBS=$LIBS
13251 if test x$gcc_no_link = xyes; then
13252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13254 { (exit 1); exit 1; }; }
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274 (eval $ac_link) 2>conftest.er1
13276 grep -v '^ *+' conftest.er1 >conftest.err
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -z "$ac_c_werror_flag"
13282 || test ! -s conftest.err'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; } &&
13288 { ac_try='test -s conftest$ac_exeext'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; }; then
13294 ac_cv_lib_dl_main=yes
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 ac_cv_lib_dl_main=no
13301 rm -f conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13303 LIBS=$ac_check_lib_save_LIBS
13305 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13306 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13307 if test $ac_cv_lib_dl_main = yes; then
13308 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13315 if test "$supply_backtrace" = yes; then
13316 SUPPLY_BACKTRACE_TRUE=
13317 SUPPLY_BACKTRACE_FALSE='#'
13319 SUPPLY_BACKTRACE_TRUE='#'
13320 SUPPLY_BACKTRACE_FALSE=
13324 if test -z "${with_multisubdir}"; then
13327 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13332 # Which gcj do we use?
13334 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13335 if test -n "${with_cross_host}"; then
13336 # We are being configured with a cross compiler. We can't
13337 # use ac_exeext, because that is for the target platform.
13340 case "${with_cross_host}" in
13341 *mingw* | *cygwin*)
13342 cross_host_exeext=.exe
13345 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13346 if test x"$build_noncanonical" = x"$with_cross_host"; then
13347 # Ordinary cross (host!=target and host=build)
13350 # Canadian cross (host!=target and host!=build)
13357 # We are being configured with a native or crossed-native compiler
13358 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13359 if test x"$build" = x"$host"; then
13360 # True native build (host=target and host=build)
13363 # Crossed-native build (host=target and host!=build)
13370 case "${which_gcj}" in
13372 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13373 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13374 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13377 if test "x${with_newlib}" = "xyes"; then
13378 # FIXME (comment): Why is this needed?
13379 GCC_UNWIND_INCLUDE=
13380 GCJ="${target_noncanonical}-gcj"
13382 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13384 ZIP='$(target_noncanonical)-fastjar'
13385 GCJH='$(target_noncanonical)-gcjh'
13388 GCJ="gcj -B`${PWDCMD-pwd}`/"
13389 ## In this case, gcj is found outside the build tree. However, zip is
13390 ## found in the build tree.
13391 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13399 # Create it, so that compile/link tests don't fail
13400 test -f libgcj.spec || touch libgcj.spec
13402 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13404 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13405 *) CLASSPATH_SEPARATOR=':' ;;
13409 # We must search the source tree for java.lang, since we still don't
13410 # have libgcj.jar nor java/lang/*.class
13411 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13412 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13414 # Since some classes depend on this one, we need its source available
13415 # before we can do any GCJ compilation test :-(
13416 if test ! -f gnu/classpath/Configuration.java; then
13417 test -d gnu || mkdir gnu
13418 test -d gnu/classpath || mkdir gnu/classpath
13419 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13420 -e 's,@TOOLKIT@,$TOOLKIT,' \
13421 < $srcdir/gnu/classpath/Configuration.java.in \
13422 > gnu/classpath/Configuration.java
13423 # We do not want to redirect the output of the grep below to /dev/null,
13424 # but we add /dev/null to the input list so that grep will print the
13425 # filename of Configuration.java in case it finds any matches.
13426 if grep @ gnu/classpath/Configuration.java /dev/null; then
13427 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13428 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13429 { (exit 1); exit 1; }; }
13433 if test -n "$ac_tool_prefix"; then
13434 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13435 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13436 echo "$as_me:$LINENO: checking for $ac_word" >&5
13437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13438 if test "${ac_cv_prog_GCJ+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 if test -n "$GCJ"; then
13442 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445 for as_dir in $PATH
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
13450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13451 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13460 GCJ=$ac_cv_prog_GCJ
13461 if test -n "$GCJ"; then
13462 echo "$as_me:$LINENO: result: $GCJ" >&5
13463 echo "${ECHO_T}$GCJ" >&6
13465 echo "$as_me:$LINENO: result: no" >&5
13466 echo "${ECHO_T}no" >&6
13470 if test -z "$ac_cv_prog_GCJ"; then
13472 # Extract the first word of "gcj", so it can be a program name with args.
13473 set dummy gcj; ac_word=$2
13474 echo "$as_me:$LINENO: checking for $ac_word" >&5
13475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13476 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 if test -n "$ac_ct_GCJ"; then
13480 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489 ac_cv_prog_ac_ct_GCJ="gcj"
13490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13496 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13499 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13500 if test -n "$ac_ct_GCJ"; then
13501 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13502 echo "${ECHO_T}$ac_ct_GCJ" >&6
13504 echo "$as_me:$LINENO: result: no" >&5
13505 echo "${ECHO_T}no" >&6
13510 GCJ="$ac_cv_prog_GCJ"
13513 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13518 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13520 echo "$as_me:$LINENO: checking for void *" >&5
13521 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13522 if test "${ac_cv_type_void_p+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 cat >conftest.$ac_ext <<_ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 $ac_includes_default
13537 if (sizeof (void *))
13543 rm -f conftest.$ac_objext
13544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13545 (eval $ac_compile) 2>conftest.er1
13547 grep -v '^ *+' conftest.er1 >conftest.err
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
13552 { ac_try='test -z "$ac_c_werror_flag"
13553 || test ! -s conftest.err'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; } &&
13559 { ac_try='test -s conftest.$ac_objext'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
13565 ac_cv_type_void_p=yes
13567 echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13570 ac_cv_type_void_p=no
13572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13574 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13575 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13577 echo "$as_me:$LINENO: checking size of void *" >&5
13578 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13579 if test "${ac_cv_sizeof_void_p+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 if test "$ac_cv_type_void_p" = yes; then
13583 # The cast to unsigned long works around a bug in the HP C Compiler
13584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13586 # This bug is HP SR number 8606223364.
13587 if test "$cross_compiling" = yes; then
13588 # Depending upon the size, compute the lo and hi bounds.
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 $ac_includes_default
13599 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13606 rm -f conftest.$ac_objext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13608 (eval $ac_compile) 2>conftest.er1
13610 grep -v '^ *+' conftest.er1 >conftest.err
13612 cat conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } &&
13615 { ac_try='test -z "$ac_c_werror_flag"
13616 || test ! -s conftest.err'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; } &&
13622 { ac_try='test -s conftest.$ac_objext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13630 cat >conftest.$ac_ext <<_ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 $ac_includes_default
13640 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13647 rm -f conftest.$ac_objext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13649 (eval $ac_compile) 2>conftest.er1
13651 grep -v '^ *+' conftest.er1 >conftest.err
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } &&
13656 { ac_try='test -z "$ac_c_werror_flag"
13657 || test ! -s conftest.err'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; } &&
13663 { ac_try='test -s conftest.$ac_objext'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13669 ac_hi=$ac_mid; break
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13674 ac_lo=`expr $ac_mid + 1`
13675 if test $ac_lo -le $ac_mid; then
13679 ac_mid=`expr 2 '*' $ac_mid + 1`
13681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 cat >conftest.$ac_ext <<_ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 $ac_includes_default
13697 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13704 rm -f conftest.$ac_objext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706 (eval $ac_compile) 2>conftest.er1
13708 grep -v '^ *+' conftest.er1 >conftest.err
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } &&
13713 { ac_try='test -z "$ac_c_werror_flag"
13714 || test ! -s conftest.err'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest.$ac_objext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13728 cat >conftest.$ac_ext <<_ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734 $ac_includes_default
13738 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag"
13755 || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_lo=$ac_mid; break
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13772 ac_hi=`expr '(' $ac_mid ')' - 1`
13773 if test $ac_mid -le $ac_hi; then
13777 ac_mid=`expr 2 '*' $ac_mid`
13779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13790 # Binary search between lo and hi bounds.
13791 while test "x$ac_lo" != "x$ac_hi"; do
13792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13793 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13803 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13810 rm -f conftest.$ac_objext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13812 (eval $ac_compile) 2>conftest.er1
13814 grep -v '^ *+' conftest.er1 >conftest.err
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag"
13820 || test ! -s conftest.err'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13837 ac_lo=`expr '(' $ac_mid ')' + 1`
13839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13842 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13843 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13844 See \`config.log' for more details." >&5
13845 echo "$as_me: error: cannot compute sizeof (void *), 77
13846 See \`config.log' for more details." >&2;}
13847 { (exit 1); exit 1; }; } ;;
13850 if test "$cross_compiling" = yes; then
13851 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13852 See \`config.log' for more details." >&5
13853 echo "$as_me: error: cannot run test program while cross compiling
13854 See \`config.log' for more details." >&2;}
13855 { (exit 1); exit 1; }; }
13857 cat >conftest.$ac_ext <<_ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13863 $ac_includes_default
13864 long longval () { return (long) (sizeof (void *)); }
13865 unsigned long ulongval () { return (long) (sizeof (void *)); }
13867 #include <stdlib.h>
13872 FILE *f = fopen ("conftest.val", "w");
13875 if (((long) (sizeof (void *))) < 0)
13877 long i = longval ();
13878 if (i != ((long) (sizeof (void *))))
13880 fprintf (f, "%ld\n", i);
13884 unsigned long i = ulongval ();
13885 if (i != ((long) (sizeof (void *))))
13887 fprintf (f, "%lu\n", i);
13889 exit (ferror (f) || fclose (f) != 0);
13895 rm -f conftest$ac_exeext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13906 ac_cv_sizeof_void_p=`cat conftest.val`
13908 echo "$as_me: program exited with status $ac_status" >&5
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 ( exit $ac_status )
13913 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13914 See \`config.log' for more details." >&5
13915 echo "$as_me: error: cannot compute sizeof (void *), 77
13916 See \`config.log' for more details." >&2;}
13917 { (exit 1); exit 1; }; }
13919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13924 ac_cv_sizeof_void_p=0
13927 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13928 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13929 cat >>confdefs.h <<_ACEOF
13930 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13935 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13936 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13937 if test "${ac_cv_c_bigendian+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 # See if sys/param.h defines the BYTE_ORDER macro.
13941 cat >conftest.$ac_ext <<_ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 #include <sys/types.h>
13948 #include <sys/param.h>
13953 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13954 bogus endian macros
13961 rm -f conftest.$ac_objext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13963 (eval $ac_compile) 2>conftest.er1
13965 grep -v '^ *+' conftest.er1 >conftest.err
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -z "$ac_c_werror_flag"
13971 || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 # It does; now see whether it defined to BIG_ENDIAN or not.
13984 cat >conftest.$ac_ext <<_ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 #include <sys/types.h>
13991 #include <sys/param.h>
13996 #if BYTE_ORDER != BIG_ENDIAN
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>conftest.er1
14008 grep -v '^ *+' conftest.er1 >conftest.err
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -z "$ac_c_werror_flag"
14014 || test ! -s conftest.err'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 ac_cv_c_bigendian=yes
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ac_cv_c_bigendian=no
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 # It does not; compile a test program.
14039 if test "$cross_compiling" = yes; then
14040 # try to guess the endianness by grepping values into an object file
14041 ac_cv_c_bigendian=unknown
14042 cat >conftest.$ac_ext <<_ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14048 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14049 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14050 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14051 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14052 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14053 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14057 _ascii (); _ebcdic ();
14062 rm -f conftest.$ac_objext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14064 (eval $ac_compile) 2>conftest.er1
14066 grep -v '^ *+' conftest.er1 >conftest.err
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
14071 { ac_try='test -z "$ac_c_werror_flag"
14072 || test ! -s conftest.err'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; } &&
14078 { ac_try='test -s conftest.$ac_objext'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14085 ac_cv_c_bigendian=yes
14087 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14088 if test "$ac_cv_c_bigendian" = unknown; then
14089 ac_cv_c_bigendian=no
14091 # finding both strings is unlikely to happen, but who knows?
14092 ac_cv_c_bigendian=unknown
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14111 /* Are we little or big endian? From Harbison&Steele. */
14115 char c[sizeof (long)];
14118 exit (u.c[sizeof (long) - 1] == 1);
14121 rm -f conftest$ac_exeext
14122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14123 (eval $ac_link) 2>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_cv_c_bigendian=no
14134 echo "$as_me: program exited with status $ac_status" >&5
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14138 ( exit $ac_status )
14139 ac_cv_c_bigendian=yes
14141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14146 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14147 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14148 case $ac_cv_c_bigendian in
14151 cat >>confdefs.h <<\_ACEOF
14152 #define WORDS_BIGENDIAN 1
14158 { { echo "$as_me:$LINENO: error: unknown endianness
14159 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14160 echo "$as_me: error: unknown endianness
14161 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14162 { (exit 1); exit 1; }; } ;;
14170 if test -z "$ZLIBSPEC"; then
14171 # Use zlib from the GCC tree.
14172 ZINCS='-I$(top_srcdir)/../zlib'
14173 ZLIBS=../zlib/libzgcj_convenience.la
14176 SYS_ZLIBS="$ZLIBSPEC"
14189 if test "$NATIVE" = yes; then
14199 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14200 NEEDS_DATA_START_TRUE=
14201 NEEDS_DATA_START_FALSE='#'
14203 NEEDS_DATA_START_TRUE='#'
14204 NEEDS_DATA_START_FALSE=
14209 # Process the option "--enable-version-specific-runtime-libs"
14210 # Calculate toolexeclibdir
14211 case ${version_specific_libs} in
14213 # Need the gcc compiler version to know where to install libraries
14214 # and header files if --enable-version-specific-runtime-libs option
14216 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14217 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14218 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14219 toolexeclibdir=$toolexecmainlibdir
14222 if test -n "$with_cross_host" &&
14223 test x"$with_cross_host" != x"no"; then
14224 # Install a library built with a cross compiler in tooldir, not libdir.
14225 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14226 toolexecmainlibdir='$(toolexecdir)/lib'
14228 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14229 toolexecmainlibdir='$(libdir)'
14231 multi_os_directory=`$CC -print-multi-os-directory`
14232 case $multi_os_directory in
14233 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14234 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14242 # Determine gcj version number.
14243 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14244 GCJVERSION=$gcjversion
14247 cat >>confdefs.h <<_ACEOF
14248 #define GCJVERSION "$GCJVERSION"
14253 cat >>confdefs.h <<\_ACEOF
14254 #define JV_VERSION "1.4.2"
14258 cat >>confdefs.h <<\_ACEOF
14259 #define JV_API_VERSION "1.4"
14264 case "${with_gxx_include_dir}" in
14266 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14267 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14268 { (exit 1); exit 1; }; }
14271 case "${enable_version_specific_runtime_libs}" in
14272 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14274 libstdcxx_incdir='c++/$(gcc_version)'
14275 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14277 *) gxx_include_dir=${with_gxx_include_dir} ;;
14283 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14284 # On that system, sys/ioctl.h will not include sys/filio.h unless
14285 # BSD_COMP is defined; just including sys/filio.h is simpler.
14286 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14287 # for now. If you change this, you also must update natFile.cc.
14308 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14309 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14310 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14311 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14316 echo "$as_me:$LINENO: checking for $ac_header" >&5
14317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14324 # Is the header compilable?
14325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14327 cat >conftest.$ac_ext <<_ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 $ac_includes_default
14334 #include <$ac_header>
14336 rm -f conftest.$ac_objext
14337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14338 (eval $ac_compile) 2>conftest.er1
14340 grep -v '^ *+' conftest.er1 >conftest.err
14342 cat conftest.err >&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); } &&
14345 { ac_try='test -z "$ac_c_werror_flag"
14346 || test ! -s conftest.err'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest.$ac_objext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14358 ac_header_compiler=yes
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.$ac_ext >&5
14363 ac_header_compiler=no
14365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14367 echo "${ECHO_T}$ac_header_compiler" >&6
14369 # Is the header present?
14370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 #include <$ac_header>
14380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14383 grep -v '^ *+' conftest.er1 >conftest.err
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } >/dev/null; then
14388 if test -s conftest.err; then
14389 ac_cpp_err=$ac_c_preproc_warn_flag
14390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14397 if test -z "$ac_cpp_err"; then
14398 ac_header_preproc=yes
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_header_preproc=no
14405 rm -f conftest.err conftest.$ac_ext
14406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14407 echo "${ECHO_T}$ac_header_preproc" >&6
14409 # So? What about this header?
14410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14416 ac_header_preproc=yes
14419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14433 ## ---------------------------------- ##
14434 ## Report this to the libjava lists. ##
14435 ## ---------------------------------- ##
14438 sed "s/^/$as_me: WARNING: /" >&2
14441 echo "$as_me:$LINENO: checking for $ac_header" >&5
14442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 eval "$as_ac_Header=\$ac_header_preproc"
14448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14453 cat >>confdefs.h <<_ACEOF
14454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14462 for ac_header in inttypes.h
14464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14466 echo "$as_me:$LINENO: checking for $ac_header" >&5
14467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14474 # Is the header compilable?
14475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14477 cat >conftest.$ac_ext <<_ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 $ac_includes_default
14484 #include <$ac_header>
14486 rm -f conftest.$ac_objext
14487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14488 (eval $ac_compile) 2>conftest.er1
14490 grep -v '^ *+' conftest.er1 >conftest.err
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } &&
14495 { ac_try='test -z "$ac_c_werror_flag"
14496 || test ! -s conftest.err'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; } &&
14502 { ac_try='test -s conftest.$ac_objext'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 ac_header_compiler=yes
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 ac_header_compiler=no
14515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14517 echo "${ECHO_T}$ac_header_compiler" >&6
14519 # Is the header present?
14520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14522 cat >conftest.$ac_ext <<_ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 #include <$ac_header>
14530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14533 grep -v '^ *+' conftest.er1 >conftest.err
14535 cat conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } >/dev/null; then
14538 if test -s conftest.err; then
14539 ac_cpp_err=$ac_c_preproc_warn_flag
14540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14547 if test -z "$ac_cpp_err"; then
14548 ac_header_preproc=yes
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 ac_header_preproc=no
14555 rm -f conftest.err conftest.$ac_ext
14556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14557 echo "${ECHO_T}$ac_header_preproc" >&6
14559 # So? What about this header?
14560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14566 ac_header_preproc=yes
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14583 ## ---------------------------------- ##
14584 ## Report this to the libjava lists. ##
14585 ## ---------------------------------- ##
14588 sed "s/^/$as_me: WARNING: /" >&2
14591 echo "$as_me:$LINENO: checking for $ac_header" >&5
14592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 eval "$as_ac_Header=\$ac_header_preproc"
14598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14603 cat >>confdefs.h <<_ACEOF
14604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14608 cat >>confdefs.h <<\_ACEOF
14609 #define HAVE_INTTYPES_H 1
14613 cat >>confdefs.h <<\_ACEOF
14614 #define JV_HAVE_INTTYPES_H 1
14622 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14623 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14624 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 cat >conftest.$ac_ext <<_ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 #include <sys/types.h>
14634 #include <sys/wait.h>
14635 #ifndef WEXITSTATUS
14636 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14639 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14647 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14652 rm -f conftest.$ac_objext
14653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14654 (eval $ac_compile) 2>conftest.er1
14656 grep -v '^ *+' conftest.er1 >conftest.err
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -z "$ac_c_werror_flag"
14662 || test ! -s conftest.err'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_cv_header_sys_wait_h=yes
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 ac_cv_header_sys_wait_h=no
14681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14684 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14685 if test $ac_cv_header_sys_wait_h = yes; then
14687 cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_SYS_WAIT_H 1
14694 echo "$as_me:$LINENO: checking for ssize_t" >&5
14695 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14696 if test "${ac_cv_type_ssize_t+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 cat >conftest.$ac_ext <<_ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 $ac_includes_default
14711 if (sizeof (ssize_t))
14717 rm -f conftest.$ac_objext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14719 (eval $ac_compile) 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_objext'
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_type_ssize_t=yes
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_cv_type_ssize_t=no
14746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14748 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14749 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14750 if test $ac_cv_type_ssize_t = yes; then
14754 cat >>confdefs.h <<_ACEOF
14755 #define ssize_t int
14761 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14762 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14763 cat >conftest.$ac_ext <<_ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 #include <sys/types.h>
14771 #include <stdlib.h>
14772 #include <stddef.h>
14774 #if HAVE_NETINET_IN_H
14775 #include <netinet/in.h>
14785 rm -f conftest.$ac_objext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14787 (eval $ac_compile) 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -z "$ac_c_werror_flag"
14795 || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14808 cat >>confdefs.h <<\_ACEOF
14809 #define HAVE_IN_ADDR_T 1
14812 echo "$as_me:$LINENO: result: yes" >&5
14813 echo "${ECHO_T}yes" >&6
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 echo "$as_me:$LINENO: result: no" >&5
14819 echo "${ECHO_T}no" >&6
14821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14824 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 #include <netinet/in.h>
14835 struct ip_mreq mreq;
14840 rm -f conftest.$ac_objext
14841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14842 (eval $ac_compile) 2>conftest.er1
14844 grep -v '^ *+' conftest.er1 >conftest.err
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } &&
14849 { ac_try='test -z "$ac_c_werror_flag"
14850 || test ! -s conftest.err'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; } &&
14856 { ac_try='test -s conftest.$ac_objext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_STRUCT_IP_MREQ 1
14867 echo "$as_me:$LINENO: result: yes" >&5
14868 echo "${ECHO_T}yes" >&6
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873 echo "$as_me:$LINENO: result: no" >&5
14874 echo "${ECHO_T}no" >&6
14876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14878 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14879 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 #include <netinet/in.h>
14890 struct ipv6_mreq mreq6;
14895 rm -f conftest.$ac_objext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897 (eval $ac_compile) 2>conftest.er1
14899 grep -v '^ *+' conftest.er1 >conftest.err
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest.$ac_objext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14918 cat >>confdefs.h <<\_ACEOF
14919 #define HAVE_STRUCT_IPV6_MREQ 1
14922 echo "$as_me:$LINENO: result: yes" >&5
14923 echo "${ECHO_T}yes" >&6
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 echo "$as_me:$LINENO: result: no" >&5
14929 echo "${ECHO_T}no" >&6
14931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14933 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14934 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 #include <netinet/in.h>
14945 struct sockaddr_in6 addr6;
14950 rm -f conftest.$ac_objext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952 (eval $ac_compile) 2>conftest.er1
14954 grep -v '^ *+' conftest.er1 >conftest.err
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag"
14960 || test ! -s conftest.err'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest.$ac_objext'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_INET6 1
14977 echo "$as_me:$LINENO: result: yes" >&5
14978 echo "${ECHO_T}yes" >&6
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 echo "$as_me:$LINENO: result: no" >&5
14984 echo "${ECHO_T}no" >&6
14986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14988 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14989 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14990 cat >conftest.$ac_ext <<_ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 #define _POSIX_PII_SOCKET
14997 #include <sys/types.h>
14998 #include <sys/socket.h>
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009 (eval $ac_compile) 2>conftest.er1
15011 grep -v '^ *+' conftest.er1 >conftest.err
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
15016 { ac_try='test -z "$ac_c_werror_flag"
15017 || test ! -s conftest.err'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; } &&
15023 { ac_try='test -s conftest.$ac_objext'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }; then
15030 cat >>confdefs.h <<\_ACEOF
15031 #define HAVE_SOCKLEN_T 1
15034 echo "$as_me:$LINENO: result: yes" >&5
15035 echo "${ECHO_T}yes" >&6
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 echo "$as_me:$LINENO: result: no" >&5
15041 echo "${ECHO_T}no" >&6
15043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15045 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15046 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15047 cat >conftest.$ac_ext <<_ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15057 struct tm tim; tim.tm_gmtoff = 0;
15062 rm -f conftest.$ac_objext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15064 (eval $ac_compile) 2>conftest.er1
15066 grep -v '^ *+' conftest.er1 >conftest.err
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } &&
15071 { ac_try='test -z "$ac_c_werror_flag"
15072 || test ! -s conftest.err'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; } &&
15078 { ac_try='test -s conftest.$ac_objext'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }; then
15085 cat >>confdefs.h <<\_ACEOF
15086 #define STRUCT_TM_HAS_GMTOFF 1
15089 echo "$as_me:$LINENO: result: yes" >&5
15090 echo "${ECHO_T}yes" >&6
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 echo "$as_me:$LINENO: result: no" >&5
15096 echo "${ECHO_T}no" >&6
15097 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15098 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15099 cat >conftest.$ac_ext <<_ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15109 void i(){long z2 = 2*timezone;}
15114 rm -f conftest.$ac_objext
15115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15116 (eval $ac_compile) 2>conftest.er1
15118 grep -v '^ *+' conftest.er1 >conftest.err
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
15123 { ac_try='test -z "$ac_c_werror_flag"
15124 || test ! -s conftest.err'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try='test -s conftest.$ac_objext'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_TIMEZONE 1
15141 echo "$as_me:$LINENO: result: yes" >&5
15142 echo "${ECHO_T}yes" >&6
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15147 echo "$as_me:$LINENO: result: no" >&5
15148 echo "${ECHO_T}no" >&6
15149 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15150 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15161 long z2 = _timezone;
15166 rm -f conftest.$ac_objext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15168 (eval $ac_compile) 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag"
15176 || test ! -s conftest.err'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest.$ac_objext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15189 cat >>confdefs.h <<\_ACEOF
15190 #define HAVE_UNDERSCORE_TIMEZONE 1
15193 echo "$as_me:$LINENO: result: yes" >&5
15194 echo "${ECHO_T}yes" >&6
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 echo "$as_me:$LINENO: result: no" >&5
15200 echo "${ECHO_T}no" >&6
15202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15208 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15209 # for constant arguments. Useless!
15210 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15211 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15212 if test "${ac_cv_working_alloca_h+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 if test x$gcc_no_link = xyes; then
15216 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15218 { (exit 1); exit 1; }; }
15220 cat >conftest.$ac_ext <<_ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 #include <alloca.h>
15230 char *p = (char *) alloca (2 * sizeof (int));
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag"
15245 || test ! -s conftest.err'
15246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247 (eval $ac_try) 2>&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; } &&
15251 { ac_try='test -s conftest$ac_exeext'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_cv_working_alloca_h=yes
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15262 ac_cv_working_alloca_h=no
15264 rm -f conftest.err conftest.$ac_objext \
15265 conftest$ac_exeext conftest.$ac_ext
15267 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15268 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15269 if test $ac_cv_working_alloca_h = yes; then
15271 cat >>confdefs.h <<\_ACEOF
15272 #define HAVE_ALLOCA_H 1
15277 echo "$as_me:$LINENO: checking for alloca" >&5
15278 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15279 if test "${ac_cv_func_alloca_works+set}" = set; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 if test x$gcc_no_link = xyes; then
15283 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15285 { (exit 1); exit 1; }; }
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15294 # define alloca __builtin_alloca
15297 # include <malloc.h>
15298 # define alloca _alloca
15301 # include <alloca.h>
15306 # ifndef alloca /* predefined by HP cc +Olibcalls */
15317 char *p = (char *) alloca (1);
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_c_werror_flag"
15332 || test ! -s conftest.err'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_cv_func_alloca_works=yes
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 ac_cv_func_alloca_works=no
15351 rm -f conftest.err conftest.$ac_objext \
15352 conftest$ac_exeext conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15355 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15357 if test $ac_cv_func_alloca_works = yes; then
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_ALLOCA 1
15364 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15365 # that cause trouble. Some versions do not even contain alloca or
15366 # contain a buggy version. If you still want to use their alloca,
15367 # use ar to extract alloca.o from them instead of compiling alloca.c.
15369 ALLOCA=alloca.$ac_objext
15371 cat >>confdefs.h <<\_ACEOF
15376 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15377 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15378 if test "${ac_cv_os_cray+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 #if defined(CRAY) && ! defined(CRAY2)
15394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15395 $EGREP "webecray" >/dev/null 2>&1; then
15403 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15404 echo "${ECHO_T}$ac_cv_os_cray" >&6
15405 if test $ac_cv_os_cray = yes; then
15406 for ac_func in _getb67 GETB67 getb67; do
15407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15408 echo "$as_me:$LINENO: checking for $ac_func" >&5
15409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15410 if eval "test \"\${$as_ac_var+set}\" = set"; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 if test x$gcc_no_link = xyes; then
15414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15416 { (exit 1); exit 1; }; }
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15426 #define $ac_func innocuous_$ac_func
15428 /* System header to define __stub macros and hopefully few prototypes,
15429 which can conflict with char $ac_func (); below.
15430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15431 <limits.h> exists even on freestanding compilers. */
15434 # include <limits.h>
15436 # include <assert.h>
15441 /* Override any gcc2 internal prototype to avoid an error. */
15446 /* We use char because int might match the return type of a gcc2
15447 builtin and then its argument prototype would still apply. */
15449 /* The GNU C library defines this for functions which it implements
15450 to always fail with ENOSYS. Some functions are actually named
15451 something starting with __ and the normal name is an alias. */
15452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15455 char (*f) () = $ac_func;
15464 return f != $ac_func;
15469 rm -f conftest.$ac_objext conftest$ac_exeext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15471 (eval $ac_link) 2>conftest.er1
15473 grep -v '^ *+' conftest.er1 >conftest.err
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try='test -s conftest$ac_exeext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 eval "$as_ac_var=yes"
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 eval "$as_ac_var=no"
15498 rm -f conftest.err conftest.$ac_objext \
15499 conftest$ac_exeext conftest.$ac_ext
15501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15503 if test `eval echo '${'$as_ac_var'}'` = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define CRAY_STACKSEG_END $ac_func
15515 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15516 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15517 if test "${ac_cv_c_stack_direction+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15520 if test "$cross_compiling" = yes; then
15521 ac_cv_c_stack_direction=0
15523 cat >conftest.$ac_ext <<_ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15530 find_stack_direction ()
15532 static char *addr = 0;
15537 return find_stack_direction ();
15540 return (&dummy > addr) ? 1 : -1;
15546 exit (find_stack_direction () < 0);
15549 rm -f conftest$ac_exeext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15551 (eval $ac_link) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_cv_c_stack_direction=1
15562 echo "$as_me: program exited with status $ac_status" >&5
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ( exit $ac_status )
15567 ac_cv_c_stack_direction=-1
15569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15572 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15573 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15575 cat >>confdefs.h <<_ACEOF
15576 #define STACK_DIRECTION $ac_cv_c_stack_direction
15582 if test x$gcc_no_link = xyes; then
15583 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15584 ac_cv_func_mmap_fixed_mapped=no
15587 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
15590 for ac_header in stdlib.h unistd.h
15592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15594 echo "$as_me:$LINENO: checking for $ac_header" >&5
15595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15602 # Is the header compilable?
15603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15605 cat >conftest.$ac_ext <<_ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15611 $ac_includes_default
15612 #include <$ac_header>
15614 rm -f conftest.$ac_objext
15615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15616 (eval $ac_compile) 2>conftest.er1
15618 grep -v '^ *+' conftest.er1 >conftest.err
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -z "$ac_c_werror_flag"
15624 || test ! -s conftest.err'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest.$ac_objext'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_header_compiler=yes
15638 echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.$ac_ext >&5
15641 ac_header_compiler=no
15643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15645 echo "${ECHO_T}$ac_header_compiler" >&6
15647 # Is the header present?
15648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15650 cat >conftest.$ac_ext <<_ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h. */
15656 #include <$ac_header>
15658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15661 grep -v '^ *+' conftest.er1 >conftest.err
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } >/dev/null; then
15666 if test -s conftest.err; then
15667 ac_cpp_err=$ac_c_preproc_warn_flag
15668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15675 if test -z "$ac_cpp_err"; then
15676 ac_header_preproc=yes
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_header_preproc=no
15683 rm -f conftest.err conftest.$ac_ext
15684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15685 echo "${ECHO_T}$ac_header_preproc" >&6
15687 # So? What about this header?
15688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15694 ac_header_preproc=yes
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15711 ## ---------------------------------- ##
15712 ## Report this to the libjava lists. ##
15713 ## ---------------------------------- ##
15716 sed "s/^/$as_me: WARNING: /" >&2
15719 echo "$as_me:$LINENO: checking for $ac_header" >&5
15720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 eval "$as_ac_Header=\$ac_header_preproc"
15726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15731 cat >>confdefs.h <<_ACEOF
15732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15740 for ac_func in getpagesize
15742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15743 echo "$as_me:$LINENO: checking for $ac_func" >&5
15744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15745 if eval "test \"\${$as_ac_var+set}\" = set"; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 if test x$gcc_no_link = xyes; then
15749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15751 { (exit 1); exit 1; }; }
15753 cat >conftest.$ac_ext <<_ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15761 #define $ac_func innocuous_$ac_func
15763 /* System header to define __stub macros and hopefully few prototypes,
15764 which can conflict with char $ac_func (); below.
15765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15766 <limits.h> exists even on freestanding compilers. */
15769 # include <limits.h>
15771 # include <assert.h>
15776 /* Override any gcc2 internal prototype to avoid an error. */
15781 /* We use char because int might match the return type of a gcc2
15782 builtin and then its argument prototype would still apply. */
15784 /* The GNU C library defines this for functions which it implements
15785 to always fail with ENOSYS. Some functions are actually named
15786 something starting with __ and the normal name is an alias. */
15787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15790 char (*f) () = $ac_func;
15799 return f != $ac_func;
15804 rm -f conftest.$ac_objext conftest$ac_exeext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806 (eval $ac_link) 2>conftest.er1
15808 grep -v '^ *+' conftest.er1 >conftest.err
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
15813 { ac_try='test -z "$ac_c_werror_flag"
15814 || test ! -s conftest.err'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; } &&
15820 { ac_try='test -s conftest$ac_exeext'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15826 eval "$as_ac_var=yes"
15828 echo "$as_me: failed program was:" >&5
15829 sed 's/^/| /' conftest.$ac_ext >&5
15831 eval "$as_ac_var=no"
15833 rm -f conftest.err conftest.$ac_objext \
15834 conftest$ac_exeext conftest.$ac_ext
15836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15838 if test `eval echo '${'$as_ac_var'}'` = yes; then
15839 cat >>confdefs.h <<_ACEOF
15840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15846 echo "$as_me:$LINENO: checking for working mmap" >&5
15847 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15848 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 if test "$cross_compiling" = yes; then
15852 ac_cv_func_mmap_fixed_mapped=no
15854 cat >conftest.$ac_ext <<_ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h. */
15860 $ac_includes_default
15861 /* malloc might have been renamed as rpl_malloc. */
15864 /* Thanks to Mike Haertel and Jim Avera for this test.
15865 Here is a matrix of mmap possibilities:
15866 mmap private not fixed
15867 mmap private fixed at somewhere currently unmapped
15868 mmap private fixed at somewhere already mapped
15869 mmap shared not fixed
15870 mmap shared fixed at somewhere currently unmapped
15871 mmap shared fixed at somewhere already mapped
15872 For private mappings, we should verify that changes cannot be read()
15873 back from the file, nor mmap's back from the file at a different
15874 address. (There have been systems where private was not correctly
15875 implemented like the infamous i386 svr4.0, and systems where the
15876 VM page cache was not coherent with the file system buffer cache
15877 like early versions of FreeBSD and possibly contemporary NetBSD.)
15878 For shared mappings, we should conversely verify that changes get
15879 propagated back to all the places they're supposed to be.
15881 Grep wants private fixed already mapped.
15882 The main things grep needs to know about mmap are:
15883 * does it exist and is it safe to write into the mmap'd area
15884 * how to use it (BSD variants) */
15887 #include <sys/mman.h>
15889 #if !STDC_HEADERS && !HAVE_STDLIB_H
15893 /* This mess was copied from the GNU getpagesize.h. */
15894 #if !HAVE_GETPAGESIZE
15895 /* Assume that all systems that can run configure have sys/param.h. */
15896 # if !HAVE_SYS_PARAM_H
15897 # define HAVE_SYS_PARAM_H 1
15900 # ifdef _SC_PAGESIZE
15901 # define getpagesize() sysconf(_SC_PAGESIZE)
15902 # else /* no _SC_PAGESIZE */
15903 # if HAVE_SYS_PARAM_H
15904 # include <sys/param.h>
15905 # ifdef EXEC_PAGESIZE
15906 # define getpagesize() EXEC_PAGESIZE
15907 # else /* no EXEC_PAGESIZE */
15909 # define getpagesize() NBPG * CLSIZE
15912 # endif /* no CLSIZE */
15913 # else /* no NBPG */
15915 # define getpagesize() NBPC
15916 # else /* no NBPC */
15918 # define getpagesize() PAGESIZE
15919 # endif /* PAGESIZE */
15920 # endif /* no NBPC */
15921 # endif /* no NBPG */
15922 # endif /* no EXEC_PAGESIZE */
15923 # else /* no HAVE_SYS_PARAM_H */
15924 # define getpagesize() 8192 /* punt totally */
15925 # endif /* no HAVE_SYS_PARAM_H */
15926 # endif /* no _SC_PAGESIZE */
15928 #endif /* no HAVE_GETPAGESIZE */
15933 char *data, *data2, *data3;
15937 pagesize = getpagesize ();
15939 /* First, make a file with some known garbage in it. */
15940 data = (char *) malloc (pagesize);
15943 for (i = 0; i < pagesize; ++i)
15944 *(data + i) = rand ();
15946 fd = creat ("conftest.mmap", 0600);
15949 if (write (fd, data, pagesize) != pagesize)
15953 /* Next, try to mmap the file at a fixed address which already has
15954 something else allocated at it. If we can, also make sure that
15955 we see the same garbage. */
15956 fd = open ("conftest.mmap", O_RDWR);
15959 data2 = (char *) malloc (2 * pagesize);
15962 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15963 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15964 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15966 for (i = 0; i < pagesize; ++i)
15967 if (*(data + i) != *(data2 + i))
15970 /* Finally, make sure that changes to the mapped area do not
15971 percolate back to the file as seen by read(). (This is a bug on
15972 some variants of i386 svr4.0.) */
15973 for (i = 0; i < pagesize; ++i)
15974 *(data2 + i) = *(data2 + i) + 1;
15975 data3 = (char *) malloc (pagesize);
15978 if (read (fd, data3, pagesize) != pagesize)
15980 for (i = 0; i < pagesize; ++i)
15981 if (*(data + i) != *(data3 + i))
15987 rm -f conftest$ac_exeext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15989 (eval $ac_link) 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ac_cv_func_mmap_fixed_mapped=yes
16000 echo "$as_me: program exited with status $ac_status" >&5
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 ( exit $ac_status )
16005 ac_cv_func_mmap_fixed_mapped=no
16007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16010 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16011 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16012 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16014 cat >>confdefs.h <<\_ACEOF
16015 #define HAVE_MMAP 1
16019 rm -f conftest.mmap
16023 for ac_prog in perl
16025 # Extract the first word of "$ac_prog", so it can be a program name with args.
16026 set dummy $ac_prog; ac_word=$2
16027 echo "$as_me:$LINENO: checking for $ac_word" >&5
16028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16029 if test "${ac_cv_prog_PERL+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 if test -n "$PERL"; then
16033 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16036 for as_dir in $PATH
16039 test -z "$as_dir" && as_dir=.
16040 for ac_exec_ext in '' $ac_executable_extensions; do
16041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16042 ac_cv_prog_PERL="$ac_prog"
16043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16051 PERL=$ac_cv_prog_PERL
16052 if test -n "$PERL"; then
16053 echo "$as_me:$LINENO: result: $PERL" >&5
16054 echo "${ECHO_T}$PERL" >&6
16056 echo "$as_me:$LINENO: result: no" >&5
16057 echo "${ECHO_T}no" >&6
16060 test -n "$PERL" && break
16062 test -n "$PERL" || PERL="false"
16066 SIGNAL_HANDLER_AUX=
16070 SIGNAL_HANDLER=include/i386-signal.h
16072 sparc*-sun-solaris*)
16073 SIGNAL_HANDLER=include/sparc-signal.h
16076 # SYSDEP_SOURCES=sysdep/ia64.c
16077 # test -d sysdep || mkdir sysdep
16080 SIGNAL_HANDLER=include/pa-signal.h
16083 SIGNAL_HANDLER=include/dwarf2-signal.h
16086 SIGNAL_HANDLER=include/powerpc-signal.h
16089 SIGNAL_HANDLER=include/dwarf2-signal.h
16092 SIGNAL_HANDLER=include/s390-signal.h
16095 SIGNAL_HANDLER=include/x86_64-signal.h
16096 SIGNAL_HANDLER_AUX=include/i386-signal.h
16099 SIGNAL_HANDLER=include/dwarf2-signal.h
16102 SIGNAL_HANDLER=include/sh-signal.h
16105 SIGNAL_HANDLER=include/win32-signal.h
16108 SIGNAL_HANDLER=include/mips-signal.h
16111 SIGNAL_HANDLER=include/darwin-signal.h
16114 SIGNAL_HANDLER=include/default-signal.h
16118 # If we're using sjlj exceptions, forget what we just learned.
16119 if test "$enable_sjlj_exceptions" = yes; then
16120 SIGNAL_HANDLER=include/default-signal.h
16121 SIGNAL_HANDLER_AUX=
16126 if test -z "$SIGNAL_HANDLER_AUX"; then
16127 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16130 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16133 if test "${multilib}" = "yes"; then
16134 multilib_arg="--enable-multilib"
16141 here=`${PWDCMD-pwd}`
16144 # We get this from the environment.
16147 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
16150 ac_config_commands="$ac_config_commands default"
16153 cat >confcache <<\_ACEOF
16154 # This file is a shell script that caches the results of configure
16155 # tests run on this system so they can be shared between configure
16156 # scripts and configure runs, see configure's option --config-cache.
16157 # It is not useful on other systems. If it contains results you don't
16158 # want to keep, you may remove or edit it.
16160 # config.status only pays attention to the cache file if you give it
16161 # the --recheck option to rerun configure.
16163 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16164 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16165 # following values.
16169 # The following way of writing the cache mishandles newlines in values,
16170 # but we know of no workaround that is simple, portable, and efficient.
16171 # So, don't put newlines in cache variables' values.
16172 # Ultrix sh set writes to stderr and can't be redirected directly,
16173 # and sets the high bit in the cache file unless we assign to the vars.
16176 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16178 # `set' does not quote correctly, so add quotes (double-quote
16179 # substitution turns \\\\ into \\, and sed turns \\ into \).
16182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16185 # `set' quotes correctly as required by POSIX, so do not add quotes.
16187 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16196 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16198 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16199 if test -w $cache_file; then
16200 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16201 cat confcache >$cache_file
16203 echo "not updating unwritable cache $cache_file"
16208 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16209 # Let make expand exec_prefix.
16210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16212 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16213 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16214 # trailing colons and then remove the whole line if VPATH becomes empty
16215 # (actually we leave an empty line to preserve line numbers).
16216 if test "x$srcdir" = x.; then
16217 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16218 s/:*\$(srcdir):*/:/;
16219 s/:*\${srcdir}:*/:/;
16221 s/^\([^=]*=[ ]*\):*/\1/;
16227 DEFS=-DHAVE_CONFIG_H
16231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16232 # 1. Remove the extension, and $U if already installed.
16233 ac_i=`echo "$ac_i" |
16234 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16236 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16237 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16239 LIBOBJS=$ac_libobjs
16241 LTLIBOBJS=$ac_ltlibobjs
16244 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16245 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16246 Usually this means the macro was only invoked conditionally." >&5
16247 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16248 Usually this means the macro was only invoked conditionally." >&2;}
16249 { (exit 1); exit 1; }; }
16251 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16252 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16253 Usually this means the macro was only invoked conditionally." >&5
16254 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16255 Usually this means the macro was only invoked conditionally." >&2;}
16256 { (exit 1); exit 1; }; }
16258 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16259 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16260 Usually this means the macro was only invoked conditionally." >&5
16261 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16262 Usually this means the macro was only invoked conditionally." >&2;}
16263 { (exit 1); exit 1; }; }
16265 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16266 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16267 Usually this means the macro was only invoked conditionally." >&5
16268 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16269 Usually this means the macro was only invoked conditionally." >&2;}
16270 { (exit 1); exit 1; }; }
16272 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16273 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16274 Usually this means the macro was only invoked conditionally." >&5
16275 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16276 Usually this means the macro was only invoked conditionally." >&2;}
16277 { (exit 1); exit 1; }; }
16279 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16280 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16281 Usually this means the macro was only invoked conditionally." >&5
16282 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16283 Usually this means the macro was only invoked conditionally." >&2;}
16284 { (exit 1); exit 1; }; }
16286 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16287 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16288 Usually this means the macro was only invoked conditionally." >&5
16289 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16290 Usually this means the macro was only invoked conditionally." >&2;}
16291 { (exit 1); exit 1; }; }
16293 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16294 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16295 Usually this means the macro was only invoked conditionally." >&5
16296 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16297 Usually this means the macro was only invoked conditionally." >&2;}
16298 { (exit 1); exit 1; }; }
16300 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16301 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16302 Usually this means the macro was only invoked conditionally." >&5
16303 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16304 Usually this means the macro was only invoked conditionally." >&2;}
16305 { (exit 1); exit 1; }; }
16307 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16308 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16309 Usually this means the macro was only invoked conditionally." >&5
16310 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16311 Usually this means the macro was only invoked conditionally." >&2;}
16312 { (exit 1); exit 1; }; }
16314 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16315 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16316 Usually this means the macro was only invoked conditionally." >&5
16317 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16318 Usually this means the macro was only invoked conditionally." >&2;}
16319 { (exit 1); exit 1; }; }
16321 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16322 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16323 Usually this means the macro was only invoked conditionally." >&5
16324 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16325 Usually this means the macro was only invoked conditionally." >&2;}
16326 { (exit 1); exit 1; }; }
16328 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16329 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16330 Usually this means the macro was only invoked conditionally." >&5
16331 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16332 Usually this means the macro was only invoked conditionally." >&2;}
16333 { (exit 1); exit 1; }; }
16335 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16336 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16337 Usually this means the macro was only invoked conditionally." >&5
16338 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16339 Usually this means the macro was only invoked conditionally." >&2;}
16340 { (exit 1); exit 1; }; }
16342 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16343 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16344 Usually this means the macro was only invoked conditionally." >&5
16345 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16346 Usually this means the macro was only invoked conditionally." >&2;}
16347 { (exit 1); exit 1; }; }
16349 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16350 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16351 Usually this means the macro was only invoked conditionally." >&5
16352 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16353 Usually this means the macro was only invoked conditionally." >&2;}
16354 { (exit 1); exit 1; }; }
16356 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16357 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16358 Usually this means the macro was only invoked conditionally." >&5
16359 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16360 Usually this means the macro was only invoked conditionally." >&2;}
16361 { (exit 1); exit 1; }; }
16363 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16364 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16365 Usually this means the macro was only invoked conditionally." >&5
16366 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16367 Usually this means the macro was only invoked conditionally." >&2;}
16368 { (exit 1); exit 1; }; }
16370 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16371 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16372 Usually this means the macro was only invoked conditionally." >&5
16373 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16374 Usually this means the macro was only invoked conditionally." >&2;}
16375 { (exit 1); exit 1; }; }
16377 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16378 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16379 Usually this means the macro was only invoked conditionally." >&5
16380 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16381 Usually this means the macro was only invoked conditionally." >&2;}
16382 { (exit 1); exit 1; }; }
16384 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16385 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16386 Usually this means the macro was only invoked conditionally." >&5
16387 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16388 Usually this means the macro was only invoked conditionally." >&2;}
16389 { (exit 1); exit 1; }; }
16391 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16392 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16393 Usually this means the macro was only invoked conditionally." >&5
16394 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16395 Usually this means the macro was only invoked conditionally." >&2;}
16396 { (exit 1); exit 1; }; }
16398 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16399 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16400 Usually this means the macro was only invoked conditionally." >&5
16401 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16402 Usually this means the macro was only invoked conditionally." >&2;}
16403 { (exit 1); exit 1; }; }
16406 : ${CONFIG_STATUS=./config.status}
16407 ac_clean_files_save=$ac_clean_files
16408 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16409 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16410 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16411 cat >$CONFIG_STATUS <<_ACEOF
16413 # Generated by $as_me.
16414 # Run this file to recreate the current configuration.
16415 # Compiler output produced by configure, useful for debugging
16416 # configure, is in config.log if it exists.
16419 ac_cs_recheck=false
16421 SHELL=\${CONFIG_SHELL-$SHELL}
16424 cat >>$CONFIG_STATUS <<\_ACEOF
16425 ## --------------------- ##
16426 ## M4sh Initialization. ##
16427 ## --------------------- ##
16429 # Be Bourne compatible
16430 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16433 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16434 # is contrary to our usage. Disable this feature.
16435 alias -g '${1+"$@"}'='"$@"'
16436 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16439 DUALCASE=1; export DUALCASE # for MKS sh
16441 # Support unset when possible.
16442 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16449 # Work around bugs in pre-3.0 UWIN ksh.
16450 $as_unset ENV MAIL MAILPATH
16457 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16458 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16459 LC_TELEPHONE LC_TIME
16461 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16462 eval $as_var=C; export $as_var
16468 # Required to use basename.
16469 if expr a : '\(a\)' >/dev/null 2>&1; then
16475 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16476 as_basename=basename
16482 # Name of the executable.
16483 as_me=`$as_basename "$0" ||
16484 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16485 X"$0" : 'X\(//\)$' \| \
16486 X"$0" : 'X\(/\)$' \| \
16487 . : '\(.\)' 2>/dev/null ||
16489 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16490 /^X\/\(\/\/\)$/{ s//\1/; q; }
16491 /^X\/\(\/\).*/{ s//\1/; q; }
16495 # PATH needs CR, and LINENO needs CR and PATH.
16496 # Avoid depending upon Character Ranges.
16497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16500 as_cr_digits='0123456789'
16501 as_cr_alnum=$as_cr_Letters$as_cr_digits
16503 # The user is always right.
16504 if test "${PATH_SEPARATOR+set}" != set; then
16505 echo "#! /bin/sh" >conf$$.sh
16506 echo "exit 0" >>conf$$.sh
16508 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16517 as_lineno_1=$LINENO
16518 as_lineno_2=$LINENO
16519 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16520 test "x$as_lineno_1" != "x$as_lineno_2" &&
16521 test "x$as_lineno_3" = "x$as_lineno_2" || {
16522 # Find who we are. Look in the path if we contain no path at all
16525 *[\\/]* ) as_myself=$0 ;;
16526 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16527 for as_dir in $PATH
16530 test -z "$as_dir" && as_dir=.
16531 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16536 # We did not find ourselves, most probably we were run as `sh COMMAND'
16537 # in which case we are not to be found in the path.
16538 if test "x$as_myself" = x; then
16541 if test ! -f "$as_myself"; then
16542 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16543 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16544 { (exit 1); exit 1; }; }
16546 case $CONFIG_SHELL in
16548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16552 test -z "$as_dir" && as_dir=.
16553 for as_base in sh bash ksh sh5; do
16556 if ("$as_dir/$as_base" -c '
16557 as_lineno_1=$LINENO
16558 as_lineno_2=$LINENO
16559 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16560 test "x$as_lineno_1" != "x$as_lineno_2" &&
16561 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16562 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16563 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16564 CONFIG_SHELL=$as_dir/$as_base
16565 export CONFIG_SHELL
16566 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16574 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16575 # uniformly replaced by the line number. The first 'sed' inserts a
16576 # line-number line before each line; the second 'sed' does the real
16577 # work. The second script uses 'N' to pair each line-number line
16578 # with the numbered line, and appends trailing '-' during
16579 # substitution so that $LINENO is not a special case at line end.
16580 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16581 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16582 sed '=' <$as_myself |
16587 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16590 s,^['$as_cr_digits']*\n,,
16591 ' >$as_me.lineno &&
16592 chmod +x $as_me.lineno ||
16593 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16594 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16595 { (exit 1); exit 1; }; }
16597 # Don't try to exec as it changes $[0], causing all sort of problems
16598 # (the dirname of $[0] is not the place where we might find the
16599 # original and so on. Autoconf is especially sensible to this).
16601 # Exit status is that of the last command.
16606 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16607 *c*,-n*) ECHO_N= ECHO_C='
16609 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16610 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16613 if expr a : '\(a\)' >/dev/null 2>&1; then
16619 rm -f conf$$ conf$$.exe conf$$.file
16621 if ln -s conf$$.file conf$$ 2>/dev/null; then
16622 # We could just check for DJGPP; but this test a) works b) is more generic
16623 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16624 if test -f conf$$.exe; then
16625 # Don't use ln at all; we don't have any links
16630 elif ln conf$$.file conf$$ 2>/dev/null; then
16635 rm -f conf$$ conf$$.exe conf$$.file
16637 if mkdir -p . 2>/dev/null; then
16640 test -d ./-p && rmdir ./-p
16644 as_executable_p="test -f"
16646 # Sed expression to map a string onto a valid CPP name.
16647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16649 # Sed expression to map a string onto a valid variable name.
16650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16654 # We need space, tab and new line, in precisely that order.
16664 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16665 # report actual input values of CONFIG_FILES etc. instead of their
16666 # values after options handling. Logging --version etc. is OK.
16670 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16671 ## Running $as_me. ##
16676 This file was extended by libjava $as_me version-unused, which was
16677 generated by GNU Autoconf 2.59. Invocation command line was
16679 CONFIG_FILES = $CONFIG_FILES
16680 CONFIG_HEADERS = $CONFIG_HEADERS
16681 CONFIG_LINKS = $CONFIG_LINKS
16682 CONFIG_COMMANDS = $CONFIG_COMMANDS
16686 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16690 # Files that config.status was made for.
16691 if test -n "$ac_config_files"; then
16692 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16695 if test -n "$ac_config_headers"; then
16696 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16699 if test -n "$ac_config_links"; then
16700 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16703 if test -n "$ac_config_commands"; then
16704 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16707 cat >>$CONFIG_STATUS <<\_ACEOF
16710 \`$as_me' instantiates files from templates according to the
16711 current configuration.
16713 Usage: $0 [OPTIONS] [FILE]...
16715 -h, --help print this help, then exit
16716 -V, --version print version number, then exit
16717 -q, --quiet do not print progress messages
16718 -d, --debug don't remove temporary files
16719 --recheck update $as_me by reconfiguring in the same conditions
16720 --file=FILE[:TEMPLATE]
16721 instantiate the configuration file FILE
16722 --header=FILE[:TEMPLATE]
16723 instantiate the configuration header FILE
16725 Configuration files:
16728 Configuration headers:
16731 Configuration links:
16734 Configuration commands:
16737 Report bugs to <bug-autoconf@gnu.org>."
16740 cat >>$CONFIG_STATUS <<_ACEOF
16742 libjava config.status version-unused
16743 configured by $0, generated by GNU Autoconf 2.59,
16744 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16746 Copyright (C) 2003 Free Software Foundation, Inc.
16747 This config.status script is free software; the Free Software Foundation
16748 gives unlimited permission to copy, distribute and modify it."
16753 cat >>$CONFIG_STATUS <<\_ACEOF
16754 # If no file are specified by the user, then we need to provide default
16755 # value. By we need to know if files were specified by the user.
16761 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16762 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16770 *) # This is not an option, so the user has probably given explicit
16773 ac_need_defaults=false;;
16777 # Handling of the options.
16779 cat >>$CONFIG_STATUS <<\_ACEOF
16780 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16782 --version | --vers* | -V )
16783 echo "$ac_cs_version"; exit 0 ;;
16785 # Conflict between --help and --header
16786 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16787 Try \`$0 --help' for more information." >&5
16788 echo "$as_me: error: ambiguous option: $1
16789 Try \`$0 --help' for more information." >&2;}
16790 { (exit 1); exit 1; }; };;
16791 --help | --hel | -h )
16792 echo "$ac_cs_usage"; exit 0 ;;
16793 --debug | --d* | -d )
16795 --file | --fil | --fi | --f )
16797 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16798 ac_need_defaults=false;;
16799 --header | --heade | --head | --hea )
16801 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16802 ac_need_defaults=false;;
16803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16807 # This is an error.
16808 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16809 Try \`$0 --help' for more information." >&5
16810 echo "$as_me: error: unrecognized option: $1
16811 Try \`$0 --help' for more information." >&2;}
16812 { (exit 1); exit 1; }; } ;;
16814 *) ac_config_targets="$ac_config_targets $1" ;;
16820 ac_configure_extra_args=
16822 if $ac_cs_silent; then
16824 ac_configure_extra_args="$ac_configure_extra_args --silent"
16828 cat >>$CONFIG_STATUS <<_ACEOF
16829 if \$ac_cs_recheck; then
16830 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16831 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16836 cat >>$CONFIG_STATUS <<_ACEOF
16838 # INIT-COMMANDS section.
16841 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16845 with_multisubdir=${with_multisubdir}
16846 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16847 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16848 libgcj_basedir=${libgcj_basedir}
16851 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16858 cat >>$CONFIG_STATUS <<\_ACEOF
16859 for ac_config_target in $ac_config_targets
16861 case "$ac_config_target" in
16862 # Handling of arguments.
16863 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16864 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16865 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16866 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16867 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16868 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16869 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16870 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16871 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16872 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16873 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16874 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16875 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16876 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16877 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16878 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16879 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
16880 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16881 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16882 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16883 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16884 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16885 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16886 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16887 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16888 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16889 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
16890 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16891 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16892 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16893 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16894 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16895 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16896 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16897 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16898 { (exit 1); exit 1; }; };;
16902 # If the user did not use the arguments to specify the items to instantiate,
16903 # then the envvar interface is used. Set only those that are not.
16904 # We use the long form for the default assignment because of an extremely
16905 # bizarre bug on SunOS 4.1.3.
16906 if $ac_need_defaults; then
16907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16909 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16913 # Have a temporary directory for convenience. Make it in the build tree
16914 # simply because there is no reason to put it here, and in addition,
16915 # creating and moving files from /tmp can sometimes cause problems.
16916 # Create a temporary directory, and hook for its removal unless debugging.
16919 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16920 trap '{ (exit 1); exit 1; }' 1 2 13 15
16923 # Create a (secure) tmp directory for tmp files.
16926 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16927 test -n "$tmp" && test -d "$tmp"
16930 tmp=./confstat$$-$RANDOM
16931 (umask 077 && mkdir $tmp)
16934 echo "$me: cannot create a temporary directory in ." >&2
16935 { (exit 1); exit 1; }
16940 cat >>$CONFIG_STATUS <<_ACEOF
16943 # CONFIG_FILES section.
16946 # No need to generate the scripts if there are no CONFIG_FILES.
16947 # This happens for instance when ./config.status config.h
16948 if test -n "\$CONFIG_FILES"; then
16949 # Protect against being on the right side of a sed subst in config.status.
16950 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16951 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16952 s,@SHELL@,$SHELL,;t t
16953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16954 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16955 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16956 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16957 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16958 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16959 s,@exec_prefix@,$exec_prefix,;t t
16960 s,@prefix@,$prefix,;t t
16961 s,@program_transform_name@,$program_transform_name,;t t
16962 s,@bindir@,$bindir,;t t
16963 s,@sbindir@,$sbindir,;t t
16964 s,@libexecdir@,$libexecdir,;t t
16965 s,@datadir@,$datadir,;t t
16966 s,@sysconfdir@,$sysconfdir,;t t
16967 s,@sharedstatedir@,$sharedstatedir,;t t
16968 s,@localstatedir@,$localstatedir,;t t
16969 s,@libdir@,$libdir,;t t
16970 s,@includedir@,$includedir,;t t
16971 s,@oldincludedir@,$oldincludedir,;t t
16972 s,@infodir@,$infodir,;t t
16973 s,@mandir@,$mandir,;t t
16974 s,@build_alias@,$build_alias,;t t
16975 s,@host_alias@,$host_alias,;t t
16976 s,@target_alias@,$target_alias,;t t
16977 s,@DEFS@,$DEFS,;t t
16978 s,@ECHO_C@,$ECHO_C,;t t
16979 s,@ECHO_N@,$ECHO_N,;t t
16980 s,@ECHO_T@,$ECHO_T,;t t
16981 s,@LIBS@,$LIBS,;t t
16982 s,@build@,$build,;t t
16983 s,@build_cpu@,$build_cpu,;t t
16984 s,@build_vendor@,$build_vendor,;t t
16985 s,@build_os@,$build_os,;t t
16986 s,@build_subdir@,$build_subdir,;t t
16987 s,@host_subdir@,$host_subdir,;t t
16988 s,@target_subdir@,$target_subdir,;t t
16989 s,@libgcj_basedir@,$libgcj_basedir,;t t
16990 s,@host@,$host,;t t
16991 s,@host_cpu@,$host_cpu,;t t
16992 s,@host_vendor@,$host_vendor,;t t
16993 s,@host_os@,$host_os,;t t
16994 s,@target@,$target,;t t
16995 s,@target_cpu@,$target_cpu,;t t
16996 s,@target_vendor@,$target_vendor,;t t
16997 s,@target_os@,$target_os,;t t
16998 s,@target_noncanonical@,$target_noncanonical,;t t
16999 s,@LN_S@,$LN_S,;t t
17000 s,@mkinstalldirs@,$mkinstalldirs,;t t
17002 s,@ac_ct_CC@,$ac_ct_CC,;t t
17003 s,@EXEEXT@,$EXEEXT,;t t
17004 s,@OBJEXT@,$OBJEXT,;t t
17006 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17007 s,@CFLAGS@,$CFLAGS,;t t
17008 s,@CXXFLAGS@,$CXXFLAGS,;t t
17009 s,@LDFLAGS@,$LDFLAGS,;t t
17010 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17011 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17012 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17013 s,@CYGPATH_W@,$CYGPATH_W,;t t
17014 s,@PACKAGE@,$PACKAGE,;t t
17015 s,@VERSION@,$VERSION,;t t
17016 s,@ACLOCAL@,$ACLOCAL,;t t
17017 s,@AUTOCONF@,$AUTOCONF,;t t
17018 s,@AUTOMAKE@,$AUTOMAKE,;t t
17019 s,@AUTOHEADER@,$AUTOHEADER,;t t
17020 s,@MAKEINFO@,$MAKEINFO,;t t
17021 s,@install_sh@,$install_sh,;t t
17022 s,@STRIP@,$STRIP,;t t
17023 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17024 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17025 s,@mkdir_p@,$mkdir_p,;t t
17027 s,@SET_MAKE@,$SET_MAKE,;t t
17028 s,@am__leading_dot@,$am__leading_dot,;t t
17029 s,@AMTAR@,$AMTAR,;t t
17030 s,@am__tar@,$am__tar,;t t
17031 s,@am__untar@,$am__untar,;t t
17032 s,@DEPDIR@,$DEPDIR,;t t
17033 s,@am__include@,$am__include,;t t
17034 s,@am__quote@,$am__quote,;t t
17035 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17036 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17037 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17038 s,@CCDEPMODE@,$CCDEPMODE,;t t
17039 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17040 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17041 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17042 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17043 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17045 s,@ac_ct_AS@,$ac_ct_AS,;t t
17047 s,@ac_ct_AR@,$ac_ct_AR,;t t
17048 s,@RANLIB@,$RANLIB,;t t
17049 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17050 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17051 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17052 s,@MAINT@,$MAINT,;t t
17053 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17054 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17055 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17056 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17057 s,@INCLTDL@,$INCLTDL,;t t
17058 s,@LIBLTDL@,$LIBLTDL,;t t
17059 s,@DIRLTDL@,$DIRLTDL,;t t
17060 s,@LIBTOOL@,$LIBTOOL,;t t
17061 s,@CXXCPP@,$CXXCPP,;t t
17062 s,@CPPFLAGS@,$CPPFLAGS,;t t
17064 s,@GCJFLAGS@,$GCJFLAGS,;t t
17065 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17066 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17067 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17068 s,@subdirs@,$subdirs,;t t
17069 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17070 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17071 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17072 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17073 s,@JAVA_HOME@,$JAVA_HOME,;t t
17074 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17075 s,@INTERPRETER@,$INTERPRETER,;t t
17076 s,@LIBFFI@,$LIBFFI,;t t
17077 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17078 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17080 s,@EGREP@,$EGREP,;t t
17081 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17082 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17083 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17084 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17085 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
17086 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
17087 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17088 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17089 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17090 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17091 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17092 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17093 s,@X_CFLAGS@,$X_CFLAGS,;t t
17094 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17095 s,@X_LIBS@,$X_LIBS,;t t
17096 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17097 s,@TOOLKIT@,$TOOLKIT,;t t
17098 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17099 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17100 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17101 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17102 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17103 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17104 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17105 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17106 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17107 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17108 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17109 s,@GCLIBS@,$GCLIBS,;t t
17110 s,@GCINCS@,$GCINCS,;t t
17111 s,@GCDEPS@,$GCDEPS,;t t
17112 s,@GCSPEC@,$GCSPEC,;t t
17113 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17114 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17115 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17116 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17117 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17118 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17119 s,@THREADLIBS@,$THREADLIBS,;t t
17120 s,@THREADINCS@,$THREADINCS,;t t
17121 s,@THREADDEPS@,$THREADDEPS,;t t
17122 s,@THREADSPEC@,$THREADSPEC,;t t
17123 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17124 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17125 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17126 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17127 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17128 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17129 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17130 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17131 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17132 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17133 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17134 s,@LIBICONV@,$LIBICONV,;t t
17135 s,@LTLIBICONV@,$LTLIBICONV,;t t
17136 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17137 s,@GTK_LIBS@,$GTK_LIBS,;t t
17138 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17139 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17140 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17141 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17142 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17143 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17144 s,@GCJH@,$GCJH,;t t
17146 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17147 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17148 s,@ZLIBS@,$ZLIBS,;t t
17149 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17150 s,@ZINCS@,$ZINCS,;t t
17151 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17152 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17153 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17154 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17155 s,@IEEESPEC@,$IEEESPEC,;t t
17156 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17157 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17158 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17159 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17160 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17161 s,@toolexecdir@,$toolexecdir,;t t
17162 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17163 s,@toolexeclibdir@,$toolexeclibdir,;t t
17164 s,@GCJVERSION@,$GCJVERSION,;t t
17165 s,@gxx_include_dir@,$gxx_include_dir,;t t
17166 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17167 s,@ALLOCA@,$ALLOCA,;t t
17168 s,@PERL@,$PERL,;t t
17169 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17170 s,@here@,$here,;t t
17171 s,@LIBOBJS@,$LIBOBJS,;t t
17172 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17177 cat >>$CONFIG_STATUS <<\_ACEOF
17178 # Split the substitutions into bite-sized pieces for seds with
17179 # small command number limits, like on Digital OSF/1 and HP-UX.
17180 ac_max_sed_lines=48
17181 ac_sed_frag=1 # Number of current file.
17182 ac_beg=1 # First line for current file.
17183 ac_end=$ac_max_sed_lines # Line after last line for current file.
17186 while $ac_more_lines; do
17187 if test $ac_beg -gt 1; then
17188 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17190 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17192 if test ! -s $tmp/subs.frag; then
17193 ac_more_lines=false
17195 # The purpose of the label and of the branching condition is to
17196 # speed up the sed processing (if there are no `@' at all, there
17197 # is no need to browse any of the substitutions).
17198 # These are the two extra sed commands mentioned above.
17200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17201 if test -z "$ac_sed_cmds"; then
17202 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17204 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17206 ac_sed_frag=`expr $ac_sed_frag + 1`
17208 ac_end=`expr $ac_end + $ac_max_sed_lines`
17211 if test -z "$ac_sed_cmds"; then
17214 fi # test -n "$CONFIG_FILES"
17217 cat >>$CONFIG_STATUS <<\_ACEOF
17218 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17221 - | *:- | *:-:* ) # input from stdin
17223 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17225 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17227 * ) ac_file_in=$ac_file.in ;;
17230 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17231 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17233 X"$ac_file" : 'X\(//\)[^/]' \| \
17234 X"$ac_file" : 'X\(//\)$' \| \
17235 X"$ac_file" : 'X\(/\)' \| \
17236 . : '\(.\)' 2>/dev/null ||
17238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17240 /^X\(\/\/\)$/{ s//\1/; q; }
17241 /^X\(\/\).*/{ s//\1/; q; }
17243 { if $as_mkdir_p; then
17248 while test ! -d "$as_dir"; do
17249 as_dirs="$as_dir $as_dirs"
17250 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17252 X"$as_dir" : 'X\(//\)[^/]' \| \
17253 X"$as_dir" : 'X\(//\)$' \| \
17254 X"$as_dir" : 'X\(/\)' \| \
17255 . : '\(.\)' 2>/dev/null ||
17257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17259 /^X\(\/\/\)$/{ s//\1/; q; }
17260 /^X\(\/\).*/{ s//\1/; q; }
17263 test ! -n "$as_dirs" || mkdir $as_dirs
17264 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17265 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17266 { (exit 1); exit 1; }; }; }
17270 if test "$ac_dir" != .; then
17271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17272 # A "../" for each directory in $ac_dir_suffix.
17273 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17275 ac_dir_suffix= ac_top_builddir=
17279 .) # No --srcdir option. We are building in place.
17281 if test -z "$ac_top_builddir"; then
17284 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17286 [\\/]* | ?:[\\/]* ) # Absolute path.
17287 ac_srcdir=$srcdir$ac_dir_suffix;
17288 ac_top_srcdir=$srcdir ;;
17289 *) # Relative path.
17290 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17291 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17294 # Do not use `cd foo && pwd` to compute absolute paths, because
17295 # the directories may not exist.
17297 .) ac_abs_builddir="$ac_dir";;
17300 .) ac_abs_builddir=`pwd`;;
17301 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17302 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17305 case $ac_abs_builddir in
17306 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17308 case ${ac_top_builddir}. in
17309 .) ac_abs_top_builddir=$ac_abs_builddir;;
17310 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17311 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17314 case $ac_abs_builddir in
17315 .) ac_abs_srcdir=$ac_srcdir;;
17318 .) ac_abs_srcdir=$ac_abs_builddir;;
17319 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17320 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17323 case $ac_abs_builddir in
17324 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17326 case $ac_top_srcdir in
17327 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17328 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17329 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17336 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17339 if test x"$ac_file" != x-; then
17340 { echo "$as_me:$LINENO: creating $ac_file" >&5
17341 echo "$as_me: creating $ac_file" >&6;}
17344 # Let's still pretend it is `configure' which instantiates (i.e., don't
17345 # use $as_me), people would be surprised to read:
17346 # /* config.h. Generated by config.status. */
17347 if test x"$ac_file" = x-; then
17350 configure_input="$ac_file. "
17352 configure_input=$configure_input"Generated from `echo $ac_file_in |
17353 sed 's,.*/,,'` by configure."
17355 # First look for the input files in the build tree, otherwise in the
17357 ac_file_inputs=`IFS=:
17358 for f in $ac_file_in; do
17360 -) echo $tmp/stdin ;;
17362 # Absolute (can't be DOS-style, as IFS=:)
17363 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17364 echo "$as_me: error: cannot find input file: $f" >&2;}
17365 { (exit 1); exit 1; }; }
17368 if test -f "$f"; then
17371 elif test -f "$srcdir/$f"; then
17376 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17377 echo "$as_me: error: cannot find input file: $f" >&2;}
17378 { (exit 1); exit 1; }; }
17381 done` || { (exit 1); exit 1; }
17383 cat >>$CONFIG_STATUS <<_ACEOF
17387 cat >>$CONFIG_STATUS <<\_ACEOF
17389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17390 s,@configure_input@,$configure_input,;t t
17391 s,@srcdir@,$ac_srcdir,;t t
17392 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17393 s,@top_srcdir@,$ac_top_srcdir,;t t
17394 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17395 s,@builddir@,$ac_builddir,;t t
17396 s,@abs_builddir@,$ac_abs_builddir,;t t
17397 s,@top_builddir@,$ac_top_builddir,;t t
17398 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17399 s,@INSTALL@,$ac_INSTALL,;t t
17400 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17402 if test x"$ac_file" != x-; then
17403 mv $tmp/out $ac_file
17411 cat >>$CONFIG_STATUS <<\_ACEOF
17414 # CONFIG_HEADER section.
17417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17420 # ac_d sets the value in "#define NAME VALUE" lines.
17421 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17422 ac_dB='[ ].*$,\1#\2'
17425 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17426 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17427 ac_uB='$,\1#\2define\3'
17431 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17434 - | *:- | *:-:* ) # input from stdin
17436 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17437 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17438 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17439 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17440 * ) ac_file_in=$ac_file.in ;;
17443 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17444 echo "$as_me: creating $ac_file" >&6;}
17446 # First look for the input files in the build tree, otherwise in the
17448 ac_file_inputs=`IFS=:
17449 for f in $ac_file_in; do
17451 -) echo $tmp/stdin ;;
17453 # Absolute (can't be DOS-style, as IFS=:)
17454 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17455 echo "$as_me: error: cannot find input file: $f" >&2;}
17456 { (exit 1); exit 1; }; }
17457 # Do quote $f, to prevent DOS paths from being IFS'd.
17460 if test -f "$f"; then
17463 elif test -f "$srcdir/$f"; then
17468 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17469 echo "$as_me: error: cannot find input file: $f" >&2;}
17470 { (exit 1); exit 1; }; }
17473 done` || { (exit 1); exit 1; }
17474 # Remove the trailing spaces.
17475 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17479 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17480 # `conftest.undefs', that substitutes the proper values into
17481 # config.h.in to produce config.h. The first handles `#define'
17482 # templates, and the second `#undef' templates.
17483 # And first: Protect against being on the right side of a sed subst in
17484 # config.status. Protect against being in an unquoted here document
17485 # in config.status.
17486 rm -f conftest.defines conftest.undefs
17487 # Using a here document instead of a string reduces the quoting nightmare.
17488 # Putting comments in sed scripts is not portable.
17490 # `end' is used to avoid that the second main sed command (meant for
17491 # 0-ary CPP macros) applies to n-ary macro definitions.
17492 # See the Autoconf documentation for `clear'.
17493 cat >confdef2sed.sed <<\_ACEOF
17498 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17500 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17503 # If some macros were called several times there might be several times
17504 # the same #defines, which is useless. Nevertheless, we may not want to
17505 # sort them, since we want the *last* AC-DEFINE to be honored.
17506 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17507 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17508 rm -f confdef2sed.sed
17510 # This sed command replaces #undef with comments. This is necessary, for
17511 # example, in the case of _POSIX_SOURCE, which is predefined and required
17512 # on some systems where configure will not decide to define it.
17513 cat >>conftest.undefs <<\_ACEOF
17514 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17517 # Break up conftest.defines because some shells have a limit on the size
17518 # of here documents, and old seds have small limits too (100 cmds).
17519 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17520 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17521 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17522 echo ' :' >>$CONFIG_STATUS
17523 rm -f conftest.tail
17524 while grep . conftest.defines >/dev/null
17526 # Write a limited-size here document to $tmp/defines.sed.
17527 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17528 # Speed up: don't consider the non `#define' lines.
17529 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17530 # Work around the forget-to-reset-the-flag bug.
17531 echo 't clr' >>$CONFIG_STATUS
17532 echo ': clr' >>$CONFIG_STATUS
17533 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17535 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17537 mv $tmp/out $tmp/in
17539 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17540 rm -f conftest.defines
17541 mv conftest.tail conftest.defines
17543 rm -f conftest.defines
17544 echo ' fi # grep' >>$CONFIG_STATUS
17545 echo >>$CONFIG_STATUS
17547 # Break up conftest.undefs because some shells have a limit on the size
17548 # of here documents, and old seds have small limits too (100 cmds).
17549 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17550 rm -f conftest.tail
17551 while grep . conftest.undefs >/dev/null
17553 # Write a limited-size here document to $tmp/undefs.sed.
17554 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17555 # Speed up: don't consider the non `#undef'
17556 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17557 # Work around the forget-to-reset-the-flag bug.
17558 echo 't clr' >>$CONFIG_STATUS
17559 echo ': clr' >>$CONFIG_STATUS
17560 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17562 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17564 mv $tmp/out $tmp/in
17566 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17567 rm -f conftest.undefs
17568 mv conftest.tail conftest.undefs
17570 rm -f conftest.undefs
17572 cat >>$CONFIG_STATUS <<\_ACEOF
17573 # Let's still pretend it is `configure' which instantiates (i.e., don't
17574 # use $as_me), people would be surprised to read:
17575 # /* config.h. Generated by config.status. */
17576 if test x"$ac_file" = x-; then
17577 echo "/* Generated by configure. */" >$tmp/config.h
17579 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17581 cat $tmp/in >>$tmp/config.h
17583 if test x"$ac_file" != x-; then
17584 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17585 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17586 echo "$as_me: $ac_file is unchanged" >&6;}
17588 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17590 X"$ac_file" : 'X\(//\)[^/]' \| \
17591 X"$ac_file" : 'X\(//\)$' \| \
17592 X"$ac_file" : 'X\(/\)' \| \
17593 . : '\(.\)' 2>/dev/null ||
17595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17597 /^X\(\/\/\)$/{ s//\1/; q; }
17598 /^X\(\/\).*/{ s//\1/; q; }
17600 { if $as_mkdir_p; then
17605 while test ! -d "$as_dir"; do
17606 as_dirs="$as_dir $as_dirs"
17607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17609 X"$as_dir" : 'X\(//\)[^/]' \| \
17610 X"$as_dir" : 'X\(//\)$' \| \
17611 X"$as_dir" : 'X\(/\)' \| \
17612 . : '\(.\)' 2>/dev/null ||
17614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17616 /^X\(\/\/\)$/{ s//\1/; q; }
17617 /^X\(\/\).*/{ s//\1/; q; }
17620 test ! -n "$as_dirs" || mkdir $as_dirs
17621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17622 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17623 { (exit 1); exit 1; }; }; }
17626 mv $tmp/config.h $ac_file
17630 rm -f $tmp/config.h
17632 # Compute $ac_file's index in $config_headers.
17634 for _am_header in $config_headers :; do
17635 case $_am_header in
17636 $ac_file | $ac_file:* )
17639 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17642 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17643 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17644 X$ac_file : 'X\(//\)[^/]' \| \
17645 X$ac_file : 'X\(//\)$' \| \
17646 X$ac_file : 'X\(/\)' \| \
17647 . : '\(.\)' 2>/dev/null ||
17649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17651 /^X\(\/\/\)$/{ s//\1/; q; }
17652 /^X\(\/\).*/{ s//\1/; q; }
17653 s/.*/./; q'`/stamp-h$_am_stamp_count
17656 cat >>$CONFIG_STATUS <<\_ACEOF
17659 # CONFIG_LINKS section.
17662 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17663 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17664 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17666 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17667 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17669 if test ! -r $srcdir/$ac_source; then
17670 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17671 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17672 { (exit 1); exit 1; }; }
17676 # Make relative symlinks.
17677 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17678 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17679 X"$ac_dest" : 'X\(//\)[^/]' \| \
17680 X"$ac_dest" : 'X\(//\)$' \| \
17681 X"$ac_dest" : 'X\(/\)' \| \
17682 . : '\(.\)' 2>/dev/null ||
17684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17686 /^X\(\/\/\)$/{ s//\1/; q; }
17687 /^X\(\/\).*/{ s//\1/; q; }
17689 { if $as_mkdir_p; then
17690 mkdir -p "$ac_dest_dir"
17692 as_dir="$ac_dest_dir"
17694 while test ! -d "$as_dir"; do
17695 as_dirs="$as_dir $as_dirs"
17696 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17698 X"$as_dir" : 'X\(//\)[^/]' \| \
17699 X"$as_dir" : 'X\(//\)$' \| \
17700 X"$as_dir" : 'X\(/\)' \| \
17701 . : '\(.\)' 2>/dev/null ||
17703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17705 /^X\(\/\/\)$/{ s//\1/; q; }
17706 /^X\(\/\).*/{ s//\1/; q; }
17709 test ! -n "$as_dirs" || mkdir $as_dirs
17710 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17711 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17712 { (exit 1); exit 1; }; }; }
17716 if test "$ac_dest_dir" != .; then
17717 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17718 # A "../" for each directory in $ac_dir_suffix.
17719 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17721 ac_dir_suffix= ac_top_builddir=
17725 .) # No --srcdir option. We are building in place.
17727 if test -z "$ac_top_builddir"; then
17730 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17732 [\\/]* | ?:[\\/]* ) # Absolute path.
17733 ac_srcdir=$srcdir$ac_dir_suffix;
17734 ac_top_srcdir=$srcdir ;;
17735 *) # Relative path.
17736 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17737 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17740 # Do not use `cd foo && pwd` to compute absolute paths, because
17741 # the directories may not exist.
17743 .) ac_abs_builddir="$ac_dest_dir";;
17745 case "$ac_dest_dir" in
17746 .) ac_abs_builddir=`pwd`;;
17747 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17748 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17751 case $ac_abs_builddir in
17752 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17754 case ${ac_top_builddir}. in
17755 .) ac_abs_top_builddir=$ac_abs_builddir;;
17756 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17757 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17760 case $ac_abs_builddir in
17761 .) ac_abs_srcdir=$ac_srcdir;;
17764 .) ac_abs_srcdir=$ac_abs_builddir;;
17765 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17766 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17769 case $ac_abs_builddir in
17770 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17772 case $ac_top_srcdir in
17773 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17774 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17775 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17781 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17782 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17785 # Try a symlink, then a hard link, then a copy.
17786 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17787 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17788 cp -p $srcdir/$ac_source $ac_dest ||
17789 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17790 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17791 { (exit 1); exit 1; }; }
17794 cat >>$CONFIG_STATUS <<\_ACEOF
17797 # CONFIG_COMMANDS section.
17799 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17800 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17801 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17802 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17803 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17804 X"$ac_dest" : 'X\(//\)[^/]' \| \
17805 X"$ac_dest" : 'X\(//\)$' \| \
17806 X"$ac_dest" : 'X\(/\)' \| \
17807 . : '\(.\)' 2>/dev/null ||
17809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17811 /^X\(\/\/\)$/{ s//\1/; q; }
17812 /^X\(\/\).*/{ s//\1/; q; }
17814 { if $as_mkdir_p; then
17819 while test ! -d "$as_dir"; do
17820 as_dirs="$as_dir $as_dirs"
17821 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17823 X"$as_dir" : 'X\(//\)[^/]' \| \
17824 X"$as_dir" : 'X\(//\)$' \| \
17825 X"$as_dir" : 'X\(/\)' \| \
17826 . : '\(.\)' 2>/dev/null ||
17828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17830 /^X\(\/\/\)$/{ s//\1/; q; }
17831 /^X\(\/\).*/{ s//\1/; q; }
17834 test ! -n "$as_dirs" || mkdir $as_dirs
17835 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17836 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17837 { (exit 1); exit 1; }; }; }
17841 if test "$ac_dir" != .; then
17842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17843 # A "../" for each directory in $ac_dir_suffix.
17844 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17846 ac_dir_suffix= ac_top_builddir=
17850 .) # No --srcdir option. We are building in place.
17852 if test -z "$ac_top_builddir"; then
17855 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17857 [\\/]* | ?:[\\/]* ) # Absolute path.
17858 ac_srcdir=$srcdir$ac_dir_suffix;
17859 ac_top_srcdir=$srcdir ;;
17860 *) # Relative path.
17861 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17862 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17865 # Do not use `cd foo && pwd` to compute absolute paths, because
17866 # the directories may not exist.
17868 .) ac_abs_builddir="$ac_dir";;
17871 .) ac_abs_builddir=`pwd`;;
17872 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17873 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17876 case $ac_abs_builddir in
17877 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17879 case ${ac_top_builddir}. in
17880 .) ac_abs_top_builddir=$ac_abs_builddir;;
17881 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17882 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17885 case $ac_abs_builddir in
17886 .) ac_abs_srcdir=$ac_srcdir;;
17889 .) ac_abs_srcdir=$ac_abs_builddir;;
17890 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17891 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17894 case $ac_abs_builddir in
17895 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17897 case $ac_top_srcdir in
17898 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17899 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17900 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17905 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17906 echo "$as_me: executing $ac_dest commands" >&6;}
17908 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17909 # Strip MF so we end up with the name of the file.
17910 mf=`echo "$mf" | sed -e 's/:.*$//'`
17911 # Check whether this is an Automake generated Makefile or not.
17912 # We used to match only the files named `Makefile.in', but
17913 # some people rename them; so instead we look at the file content.
17914 # Grep'ing the first line is not enough: some people post-process
17915 # each Makefile.in and add a new line on top of each file to say so.
17916 # So let's grep whole file.
17917 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17918 dirpart=`(dirname "$mf") 2>/dev/null ||
17919 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17920 X"$mf" : 'X\(//\)[^/]' \| \
17921 X"$mf" : 'X\(//\)$' \| \
17922 X"$mf" : 'X\(/\)' \| \
17923 . : '\(.\)' 2>/dev/null ||
17925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17927 /^X\(\/\/\)$/{ s//\1/; q; }
17928 /^X\(\/\).*/{ s//\1/; q; }
17933 # Extract the definition of DEPDIR, am__include, and am__quote
17934 # from the Makefile without running `make'.
17935 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17936 test -z "$DEPDIR" && continue
17937 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17938 test -z "am__include" && continue
17939 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17940 # When using ansi2knr, U may be empty or an underscore; expand it
17941 U=`sed -n 's/^U = //p' < "$mf"`
17942 # Find all dependency output files, they are included files with
17943 # $(DEPDIR) in their names. We invoke sed twice because it is the
17944 # simplest approach to changing $(DEPDIR) to its actual value in the
17946 for file in `sed -n "
17947 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17948 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17949 # Make sure the directory exists.
17950 test -f "$dirpart/$file" && continue
17951 fdir=`(dirname "$file") 2>/dev/null ||
17952 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17953 X"$file" : 'X\(//\)[^/]' \| \
17954 X"$file" : 'X\(//\)$' \| \
17955 X"$file" : 'X\(/\)' \| \
17956 . : '\(.\)' 2>/dev/null ||
17958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17960 /^X\(\/\/\)$/{ s//\1/; q; }
17961 /^X\(\/\).*/{ s//\1/; q; }
17963 { if $as_mkdir_p; then
17964 mkdir -p $dirpart/$fdir
17966 as_dir=$dirpart/$fdir
17968 while test ! -d "$as_dir"; do
17969 as_dirs="$as_dir $as_dirs"
17970 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17972 X"$as_dir" : 'X\(//\)[^/]' \| \
17973 X"$as_dir" : 'X\(//\)$' \| \
17974 X"$as_dir" : 'X\(/\)' \| \
17975 . : '\(.\)' 2>/dev/null ||
17977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17979 /^X\(\/\/\)$/{ s//\1/; q; }
17980 /^X\(\/\).*/{ s//\1/; q; }
17983 test ! -n "$as_dirs" || mkdir $as_dirs
17984 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17985 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17986 { (exit 1); exit 1; }; }; }
17988 # echo "creating $dirpart/$file"
17989 echo '# dummy' > "$dirpart/$file"
17993 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17994 case " $CONFIG_FILES " in
17996 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17997 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18000 for ac_multi_file in $CONFIG_FILES; do
18001 case $ac_multi_file in
18003 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18011 cat >>$CONFIG_STATUS <<\_ACEOF
18013 { (exit 0); exit 0; }
18015 chmod +x $CONFIG_STATUS
18016 ac_clean_files=$ac_clean_files_save
18019 # configure is writing to config.log, and then calls config.status.
18020 # config.status does its own redirection, appending to config.log.
18021 # Unfortunately, on DOS this fails, as config.log is still kept open
18022 # by configure, so config.status won't be able to write to it; its
18023 # output is simply discarded. So we exec the FD to /dev/null,
18024 # effectively closing config.log, so it can be properly (re)opened and
18025 # appended to by config.status. When coming back to configure, we
18026 # need to make the FD available again.
18027 if test "$no_create" != yes; then
18029 ac_config_status_args=
18030 test "$silent" = yes &&
18031 ac_config_status_args="$ac_config_status_args --quiet"
18033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18036 # would make configure fail if this is the last instruction.
18037 $ac_cs_success || { (exit 1); exit 1; }
18041 # CONFIG_SUBDIRS section.
18043 if test "$no_recursion" != yes; then
18045 # Remove --cache-file and --srcdir arguments so they do not pile up.
18046 ac_sub_configure_args=
18048 for ac_arg in $ac_configure_args; do
18049 if test -n "$ac_prev"; then
18054 -cache-file | --cache-file | --cache-fil | --cache-fi \
18055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18056 ac_prev=cache_file ;;
18057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18061 --config-cache | -C)
18063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18071 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18075 # Always prepend --prefix to ensure using the same prefix
18076 # in subdir configurations.
18077 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18080 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18082 # Do not complain, so a configure script can configure whichever
18083 # parts of a large source tree are present.
18084 test -d $srcdir/$ac_dir || continue
18086 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18087 echo "$as_me: configuring in $ac_dir" >&6;}
18088 { if $as_mkdir_p; then
18093 while test ! -d "$as_dir"; do
18094 as_dirs="$as_dir $as_dirs"
18095 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18097 X"$as_dir" : 'X\(//\)[^/]' \| \
18098 X"$as_dir" : 'X\(//\)$' \| \
18099 X"$as_dir" : 'X\(/\)' \| \
18100 . : '\(.\)' 2>/dev/null ||
18102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18104 /^X\(\/\/\)$/{ s//\1/; q; }
18105 /^X\(\/\).*/{ s//\1/; q; }
18108 test ! -n "$as_dirs" || mkdir $as_dirs
18109 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18111 { (exit 1); exit 1; }; }; }
18115 if test "$ac_dir" != .; then
18116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18117 # A "../" for each directory in $ac_dir_suffix.
18118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18120 ac_dir_suffix= ac_top_builddir=
18124 .) # No --srcdir option. We are building in place.
18126 if test -z "$ac_top_builddir"; then
18129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18131 [\\/]* | ?:[\\/]* ) # Absolute path.
18132 ac_srcdir=$srcdir$ac_dir_suffix;
18133 ac_top_srcdir=$srcdir ;;
18134 *) # Relative path.
18135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18139 # Do not use `cd foo && pwd` to compute absolute paths, because
18140 # the directories may not exist.
18142 .) ac_abs_builddir="$ac_dir";;
18145 .) ac_abs_builddir=`pwd`;;
18146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18150 case $ac_abs_builddir in
18151 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18153 case ${ac_top_builddir}. in
18154 .) ac_abs_top_builddir=$ac_abs_builddir;;
18155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18159 case $ac_abs_builddir in
18160 .) ac_abs_srcdir=$ac_srcdir;;
18163 .) ac_abs_srcdir=$ac_abs_builddir;;
18164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18168 case $ac_abs_builddir in
18169 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18171 case $ac_top_srcdir in
18172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18181 # Check for guested configure; otherwise get Cygnus style configure.
18182 if test -f $ac_srcdir/configure.gnu; then
18183 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18184 elif test -f $ac_srcdir/configure; then
18185 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18186 elif test -f $ac_srcdir/configure.in; then
18187 ac_sub_configure=$ac_configure
18189 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18190 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18194 # The recursion is here.
18195 if test -n "$ac_sub_configure"; then
18196 # Make the cache file name correct relative to the subdirectory.
18197 case $cache_file in
18198 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18199 *) # Relative path.
18200 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18203 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18204 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18205 # The eval makes quoting arguments work.
18206 eval $ac_sub_configure $ac_sub_configure_args \
18207 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18208 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18209 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18210 { (exit 1); exit 1; }; }