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 ONESTEP_TRUE ONESTEP_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 IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-shared=PKGS build shared libraries default=yes
861 --enable-static=PKGS build static libraries default=yes
862 --enable-fast-install=PKGS optimize for fast installation default=yes
863 --disable-libtool-lock avoid locking (might break parallel builds)
864 --disable-getenv-properties
865 don't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-multifile
869 allow compilation of several files at once
871 --enable-libgcj-debug enable runtime debugging code
872 --enable-gc-debug include full support for pointer backtracing etc.
873 --enable-interpreter enable interpreter
874 --enable-sjlj-exceptions
875 force use of builtin_setjmp for exceptions
876 --disable-java-net disable java.net
877 --disable-jvmpi disable JVMPI support
878 --enable-java-awt list of AWT peer implementations to be built
879 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
881 --disable-rpath do not hardcode runtime library paths
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-target-subdir=SUBDIR
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
892 --with-java-home=DIRECTORY
893 value of java.home system property
894 --with-win32-nlsapi=ansi or unicows or unicode
895 native MinGW libgcj Win32 OS API (default is ansi)
896 --without-libffi don't use libffi
897 --with-ecos enable runtime eCos target support
898 --with-system-zlib use installed libz
899 --with-x use the X Window System
900 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
901 --without-libiconv-prefix don't search for libiconv in includedir and libdir
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CXX C++ compiler command
911 CXXFLAGS C++ compiler flags
912 CXXCPP C++ preprocessor
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 ac_dir_suffix= ac_top_builddir=
937 .) # No --srcdir option. We are building in place.
939 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
955 .) ac_abs_builddir="$ac_dir";;
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1002 $ac_configure --help
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_must_keep_next=false
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 -* ) ac_must_keep_next=true ;;
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135 # Save into config.log some information that might help in debugging.
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1145 # The following way of writing the cache mishandles newlines in values,
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1168 for ac_var in $ac_subst_vars
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -n "$ac_subst_files"; then
1182 for ac_var in $ac_subst_files
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1190 if test -s confdefs.h; then
1197 sed "/^$/d" confdefs.h | sort
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1204 rm -f core *.core &&
1205 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's/^/| /' "$ac_site_file" >&5
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1280 # Check that the precious variables saved in the cache have kept the same
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted=:
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg=$ac_var=$ac_new_val ;;
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh; then
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool; then
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404 ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408 { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 case ${build_alias} in
1424 "") build_noncanonical=${build} ;;
1425 *) build_noncanonical=${build_alias} ;;
1428 case ${host_alias} in
1429 "") host_noncanonical=${build_noncanonical} ;;
1430 *) host_noncanonical=${host_alias} ;;
1433 case ${target_alias} in
1434 "") target_noncanonical=${host_noncanonical} ;;
1435 *) target_noncanonical=${target_alias} ;;
1438 # Prefix 'build-' so this never conflicts with target_subdir.
1439 build_subdir="build-${build_noncanonical}"
1440 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1441 if ( test $srcdir = . && test -d gcc ) \
1442 || test -d $srcdir/../host-${host_noncanonical}; then
1443 host_subdir="host-${host_noncanonical}"
1448 target_subdir=${target_noncanonical}
1451 # We use these options to decide which functions to include.
1453 # Check whether --with-target-subdir or --without-target-subdir was given.
1454 if test "${with_target_subdir+set}" = set; then
1455 withval="$with_target_subdir"
1459 # We may get other options which we don't document:
1460 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1462 # When building with srcdir == objdir, links to the source files will
1463 # be created in directories within the target_subdir. We have to
1464 # adjust toplevel_srcdir accordingly, so that configure finds
1465 # install-sh and other auxiliary files that live in the top-level
1467 if test "${srcdir}" = "."; then
1468 if test -z "${with_target_subdir}"; then
1471 if test "${with_target_subdir}" != "."; then
1472 toprel="${with_multisrctop}../.."
1474 toprel="${with_multisrctop}.."
1481 libgcj_basedir=$srcdir/$toprel/./libjava
1484 echo "$as_me:$LINENO: checking host system type" >&5
1485 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1486 if test "${ac_cv_host+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 ac_cv_host_alias=$host_alias
1490 test -z "$ac_cv_host_alias" &&
1491 ac_cv_host_alias=$ac_cv_build_alias
1492 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1493 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1495 { (exit 1); exit 1; }; }
1498 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1499 echo "${ECHO_T}$ac_cv_host" >&6
1501 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1506 echo "$as_me:$LINENO: checking target system type" >&5
1507 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1508 if test "${ac_cv_target+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 ac_cv_target_alias=$target_alias
1512 test "x$ac_cv_target_alias" = "x" &&
1513 ac_cv_target_alias=$ac_cv_host_alias
1514 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1515 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1517 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1521 echo "${ECHO_T}$ac_cv_target" >&6
1522 target=$ac_cv_target
1523 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 test -n "$target_alias" &&
1531 test "$program_prefix$program_suffix$program_transform_name" = \
1533 program_prefix=${target_alias}-
1534 case ${build_alias} in
1535 "") build_noncanonical=${build} ;;
1536 *) build_noncanonical=${build_alias} ;;
1539 case ${target_alias} in
1540 "") target_noncanonical=${host_noncanonical} ;;
1541 *) target_noncanonical=${target_alias} ;;
1547 # This works around the fact that libtool configuration may change LD
1548 # for this particular configuration, but some shells, instead of
1549 # keeping the changes in LD private, export them just because LD is
1551 ORIGINAL_LD_FOR_MULTILIBS=$LD
1553 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1554 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1556 if test "$LN_S" = "ln -s"; then
1557 echo "$as_me:$LINENO: result: yes" >&5
1558 echo "${ECHO_T}yes" >&6
1560 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1561 echo "${ECHO_T}no, using $LN_S" >&6
1565 # This works around an automake problem.
1566 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1570 # Check whether --with-cross-host or --without-cross-host was given.
1571 if test "${with_cross_host+set}" = set; then
1572 withval="$with_cross_host"
1577 # Check whether --with-newlib or --without-newlib was given.
1578 if test "${with_newlib+set}" = set; then
1579 withval="$with_newlib"
1583 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1584 if test "${enable_version_specific_runtime_libs+set}" = set; then
1585 enableval="$enable_version_specific_runtime_libs"
1586 case "$enableval" in
1587 yes) version_specific_libs=yes ;;
1588 no) version_specific_libs=no ;;
1589 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1590 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1591 { (exit 1); exit 1; }; };;
1594 version_specific_libs=no
1598 # Default to --enable-multilib
1599 # Check whether --enable-multilib or --disable-multilib was given.
1600 if test "${enable_multilib+set}" = set; then
1601 enableval="$enable_multilib"
1602 case "${enableval}" in
1603 yes) multilib=yes ;;
1605 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1606 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1607 { (exit 1); exit 1; }; } ;;
1612 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1615 # (1) We use an abnormal CXX (without library references), so we
1616 # must cache it under a different name.
1617 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1618 # the non-multilib-adjusted value will be used in multilibs.
1619 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1620 # (4) As another side effect, automake doesn't automatically include them
1622 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1623 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1624 # used in later tests. This may not be necessary in libjava; I don't know.
1628 save_CXXFLAGS="$CXXFLAGS"
1629 CXXFLAGS="$CXXFLAGS -fno-builtin"
1631 ac_cpp='$CPP $CPPFLAGS'
1632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635 if test -n "$ac_tool_prefix"; then
1636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1672 if test -z "$ac_cv_prog_CC"; then
1674 # Extract the first word of "gcc", so it can be a program name with args.
1675 set dummy gcc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 if test -n "$ac_ct_CC"; then
1682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_ac_ct_CC="gcc"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1714 if test -z "$CC"; then
1715 if test -n "$ac_tool_prefix"; then
1716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$CC"; then
1724 ac_cv_prog_CC="$CC" # Let the user override the test.
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_CC="${ac_tool_prefix}cc"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 if test -n "$CC"; then
1744 echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1752 if test -z "$ac_cv_prog_CC"; then
1754 # Extract the first word of "cc", so it can be a program name with args.
1755 set dummy cc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 if test -n "$ac_ct_CC"; then
1762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_ac_ct_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1785 echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1795 if test -z "$CC"; then
1796 # Extract the first word of "cc", so it can be a program name with args.
1797 set dummy cc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test -n "$CC"; then
1804 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1815 ac_prog_rejected=yes
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 if test $ac_prog_rejected = yes; then
1826 # We found a bogon in the path, so make sure we never use it.
1827 set dummy $ac_cv_prog_CC
1829 if test $# != 0; then
1830 # We chose a different compiler from the bogus one.
1831 # However, it has the same basename, so the bogon will be chosen
1832 # first if we set CC to just the basename; use the full file name.
1834 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1840 if test -n "$CC"; then
1841 echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1849 if test -z "$CC"; then
1850 if test -n "$ac_tool_prefix"; then
1853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$CC"; then
1861 ac_cv_prog_CC="$CC" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 if test -n "$CC"; then
1881 echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1888 test -n "$CC" && break
1891 if test -z "$CC"; then
1895 # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="$ac_prog"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1930 test -n "$ac_ct_CC" && break
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&2;}
1943 { (exit 1); exit 1; }; }
1945 # Provide some information about the compiler.
1946 echo "$as_me:$LINENO:" \
1947 "checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950 (eval $ac_compiler --version </dev/null >&5) 2>&5
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); }
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955 (eval $ac_compiler -v </dev/null >&5) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960 (eval $ac_compiler -V </dev/null >&5) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }
1965 cat >conftest.$ac_ext <<_ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1982 (eval $ac_link) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1991 if test x$gcc_no_link = xyes; then
1992 # Setting cross_compile will disable run tests; it will
1993 # also disable AC_CHECK_FILE but that's generally
1994 # correct if we can't link.
1998 cat >conftest.$ac_ext <<_ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h. */
2013 ac_clean_files_save=$ac_clean_files
2014 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2015 # Try to create an executable without -o first, disregard a.out.
2016 # It will help us diagnose broken compilers, and finding out an intuition
2018 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2019 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2020 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2021 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2022 (eval $ac_link_default) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; then
2026 # Find the output, starting from the most likely. This scheme is
2027 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2030 # Be careful to initialize this variable, since it used to be cached.
2031 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2033 # b.out is created by i960 compilers.
2034 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2036 test -f "$ac_file" || continue
2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2041 # This is the source file.
2044 # We found the default executable, but exeext='' is most
2048 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049 # FIXME: I believe we export ac_cv_exeext for Libtool,
2050 # but it would be cool to find out if it's true. Does anybody
2051 # maintain Libtool? --akim.
2059 echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: C compiler cannot create executables
2065 See \`config.log' for more details." >&2;}
2066 { (exit 77); exit 77; }; }
2069 ac_exeext=$ac_cv_exeext
2070 echo "$as_me:$LINENO: result: $ac_file" >&5
2071 echo "${ECHO_T}$ac_file" >&6
2073 # Check the compiler produces executables we can run. If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2076 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2077 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2078 # If not cross compiling, check that we can run a simple program.
2079 if test "$cross_compiling" != yes; then
2080 if { ac_try='./$ac_file'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; }; then
2088 if test "$cross_compiling" = maybe; then
2091 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'.
2096 See \`config.log' for more details." >&2;}
2097 { (exit 1); exit 1; }; }
2101 echo "$as_me:$LINENO: result: yes" >&5
2102 echo "${ECHO_T}yes" >&6
2104 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2105 ac_clean_files=$ac_clean_files_save
2106 # Check the compiler produces executables we can run. If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2109 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2110 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2111 echo "${ECHO_T}$cross_compiling" >&6
2113 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2114 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2116 (eval $ac_link) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2121 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2122 # work properly (i.e., refer to `conftest.exe'), while it won't with
2124 for ac_file in conftest.exe conftest conftest.*; do
2125 test -f "$ac_file" || continue
2127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2135 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2138 See \`config.log' for more details." >&2;}
2139 { (exit 1); exit 1; }; }
2142 rm -f conftest$ac_cv_exeext
2143 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2144 echo "${ECHO_T}$ac_cv_exeext" >&6
2146 rm -f conftest.$ac_ext
2147 EXEEXT=$ac_cv_exeext
2150 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2151 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2152 if test "${ac_cv_objext+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 cat >conftest.$ac_ext <<_ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2187 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2190 See \`config.log' for more details." >&2;}
2191 { (exit 1); exit 1; }; }
2194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2196 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2197 echo "${ECHO_T}$ac_cv_objext" >&6
2198 OBJEXT=$ac_cv_objext
2200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 cat >conftest.$ac_ext <<_ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2227 grep -v '^ *+' conftest.er1 >conftest.err
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2256 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2258 GCC=`test $ac_compiler_gnu = yes && echo yes`
2259 ac_test_CFLAGS=${CFLAGS+set}
2260 ac_save_CFLAGS=$CFLAGS
2262 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2264 if test "${ac_cv_prog_cc_g+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 cat >conftest.$ac_ext <<_ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>conftest.er1
2286 grep -v '^ *+' conftest.er1 >conftest.err
2288 cat conftest.err >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -z "$ac_c_werror_flag"
2292 || test ! -s conftest.err'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2315 if test "$ac_test_CFLAGS" = set; then
2316 CFLAGS=$ac_save_CFLAGS
2317 elif test $ac_cv_prog_cc_g = yes; then
2318 if test "$GCC" = yes; then
2324 if test "$GCC" = yes; then
2330 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 ac_cv_prog_cc_stdc=no
2337 cat >conftest.$ac_ext <<_ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2345 #include <sys/types.h>
2346 #include <sys/stat.h>
2347 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2348 struct buf { int x; };
2349 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2350 static char *e (p, i)
2356 static char *f (char * (*g) (char **, int), char **p, ...)
2361 s = g (p, va_arg (v,int));
2366 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2367 function prototypes and stuff, but not '\xHH' hex character constants.
2368 These don't provoke an error unfortunately, instead are silently treated
2369 as 'x'. The following induces an error, until -std1 is added to get
2370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2371 array size at least. It's necessary to write '\x00'==0 to get something
2372 that's true only with -std1. */
2373 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2375 int test (int i, double x);
2376 struct s1 {int (*f) (int a);};
2377 struct s2 {int (*f) (double a);};
2378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2384 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2389 # Don't try gcc -ansi; that turns off useful extensions and
2390 # breaks some systems' header files.
2391 # AIX -qlanglvl=ansi
2392 # Ultrix and OSF/1 -std1
2393 # HP-UX 10.20 and later -Ae
2394 # HP-UX older versions -Aa -D_HPUX_SOURCE
2395 # SVR4 -Xc -D__EXTENSIONS__
2396 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2398 CC="$ac_save_CC $ac_arg"
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2403 grep -v '^ *+' conftest.er1 >conftest.err
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_prog_cc_stdc=$ac_arg
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.err conftest.$ac_objext
2430 rm -f conftest.$ac_ext conftest.$ac_objext
2435 case "x$ac_cv_prog_cc_stdc" in
2437 echo "$as_me:$LINENO: result: none needed" >&5
2438 echo "${ECHO_T}none needed" >&6 ;;
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2442 CC="$CC $ac_cv_prog_cc_stdc" ;;
2445 # Some people use a C++ compiler to compile C. Since we use `exit',
2446 # in C++ we need to declare it. In case someone uses the same compiler
2447 # for both compiling C and C++ we need to have the C++ compiler decide
2448 # the declaration of exit, since it's the most demanding environment.
2449 cat >conftest.$ac_ext <<_ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2458 grep -v '^ *+' conftest.er1 >conftest.err
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 for ac_declaration in \
2478 'extern "C" void std::exit (int) throw (); using std::exit;' \
2479 'extern "C" void std::exit (int); using std::exit;' \
2480 'extern "C" void exit (int) throw ();' \
2481 'extern "C" void exit (int);' \
2484 cat >conftest.$ac_ext <<_ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1 >conftest.err
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 if test -n "$ac_declaration"; then
2577 echo '#ifdef __cplusplus' >>confdefs.h
2578 echo $ac_declaration >>confdefs.h
2579 echo '#endif' >>confdefs.h
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 ac_cpp='$CXXCPP $CPPFLAGS'
2596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2606 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -n "$CXX"; then
2610 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 CXX=$glibcxx_cv_prog_CXX
2629 if test -n "$CXX"; then
2630 echo "$as_me:$LINENO: result: $CXX" >&5
2631 echo "${ECHO_T}$CXX" >&6
2633 echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6
2637 test -n "$CXX" && break
2640 if test -z "$CXX"; then
2642 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 if test -n "$ac_ct_CXX"; then
2652 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_ac_ct_CXX="$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2671 if test -n "$ac_ct_CXX"; then
2672 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2673 echo "${ECHO_T}$ac_ct_CXX" >&6
2675 echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2679 test -n "$ac_ct_CXX" && break
2681 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO:" \
2689 "checking for C++ compiler version" >&5
2690 ac_compiler=`set X $ac_compile; echo $2`
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2692 (eval $ac_compiler --version </dev/null >&5) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2697 (eval $ac_compiler -v </dev/null >&5) 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
2701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2702 (eval $ac_compiler -V </dev/null >&5) 2>&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
2707 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2708 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 cat >conftest.$ac_ext <<_ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2734 grep -v '^ *+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_cxx_werror_flag"
2740 || test ! -s conftest.err'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2763 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2765 GXX=`test $ac_compiler_gnu = yes && echo yes`
2766 ac_test_CXXFLAGS=${CXXFLAGS+set}
2767 ac_save_CXXFLAGS=$CXXFLAGS
2769 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2770 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2771 if test "${ac_cv_prog_cxx_g+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 cat >conftest.$ac_ext <<_ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1 >conftest.err
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_cxx_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_cv_prog_cxx_g=yes
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2822 if test "$ac_test_CXXFLAGS" = set; then
2823 CXXFLAGS=$ac_save_CXXFLAGS
2824 elif test $ac_cv_prog_cxx_g = yes; then
2825 if test "$GXX" = yes; then
2831 if test "$GXX" = yes; then
2837 for ac_declaration in \
2839 'extern "C" void std::exit (int) throw (); using std::exit;' \
2840 'extern "C" void std::exit (int); using std::exit;' \
2841 'extern "C" void exit (int) throw ();' \
2842 'extern "C" void exit (int);' \
2845 cat >conftest.$ac_ext <<_ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1 >conftest.err
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_cxx_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 cat >conftest.$ac_ext <<_ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_cxx_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2937 if test -n "$ac_declaration"; then
2938 echo '#ifdef __cplusplus' >>confdefs.h
2939 echo $ac_declaration >>confdefs.h
2940 echo '#endif' >>confdefs.h
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949 CXXFLAGS="$save_CXXFLAGS"
2955 am__api_version="1.9"
2956 # Find a good install program. We prefer a C program (faster),
2957 # so one script is as good as another. But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2971 if test -z "$INSTALL"; then
2972 if test "${ac_cv_path_install+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 # Account for people who put trailing slashes in PATH elements.
2982 ./ | .// | /cC/* | \
2983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2984 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2987 # OSF1 and SCO ODT 3.0 have their own names for install.
2988 # Don't use installbsd from OSF since it installs stuff as root
2990 for ac_prog in ginstall scoinst install; do
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2993 if test $ac_prog = install &&
2994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995 # AIX install. It has an incompatible calling convention.
2997 elif test $ac_prog = install &&
2998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2999 # program-specific install script used by HP pwplus--don't use.
3002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3014 if test "${ac_cv_path_install+set}" = set; then
3015 INSTALL=$ac_cv_path_install
3017 # As a last resort, use the slow shell script. We don't cache a
3018 # path for INSTALL within a source directory, because that will
3019 # break other packages using the cache if that directory is
3020 # removed, or if the path is relative.
3021 INSTALL=$ac_install_sh
3024 echo "$as_me:$LINENO: result: $INSTALL" >&5
3025 echo "${ECHO_T}$INSTALL" >&6
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3035 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3036 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3039 echo timestamp > conftest.file
3040 # Do `set' in a subshell so we don't clobber the current shell's
3041 # arguments. Must try -L first in case configure is actually a
3042 # symlink; some systems play weird games with the mod time of symlinks
3043 # (eg FreeBSD returns the mod time of the symlink's containing
3046 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3047 if test "$*" = "X"; then
3049 set X `ls -t $srcdir/configure conftest.file`
3052 if test "$*" != "X $srcdir/configure conftest.file" \
3053 && test "$*" != "X conftest.file $srcdir/configure"; then
3055 # If neither matched, then we have a broken ls. This can happen
3056 # if, for instance, CONFIG_SHELL is bash and it inherits a
3057 # broken ls alias from the environment. This has actually
3058 # happened. Such a system could not be considered "sane".
3059 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3060 alias in your environment" >&5
3061 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3062 alias in your environment" >&2;}
3063 { (exit 1); exit 1; }; }
3066 test "$2" = conftest.file
3072 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3073 Check your system clock" >&5
3074 echo "$as_me: error: newly created file is older than distributed files!
3075 Check your system clock" >&2;}
3076 { (exit 1); exit 1; }; }
3078 echo "$as_me:$LINENO: result: yes" >&5
3079 echo "${ECHO_T}yes" >&6
3080 test "$program_prefix" != NONE &&
3081 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3082 # Use a double $ so make ignores it.
3083 test "$program_suffix" != NONE &&
3084 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3085 # Double any \ or $. echo might interpret backslashes.
3086 # By default was `s,x,x', remove it if useless.
3087 cat <<\_ACEOF >conftest.sed
3088 s/[\\$]/&&/g;s/;s,x,x,$//
3090 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3093 # expand $ac_aux_dir to an absolute path
3094 am_aux_dir=`cd $ac_aux_dir && pwd`
3096 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3097 # Use eval to expand $SHELL
3098 if eval "$MISSING --run true"; then
3099 am_missing_run="$MISSING --run "
3102 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3103 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3106 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3107 # We used to keeping the `.' as first argument, in order to
3108 # allow $(mkdir_p) to be used without argument. As in
3109 # $(mkdir_p) $(somedir)
3110 # where $(somedir) is conditionally defined. However this is wrong
3112 # 1. if the package is installed by a user who cannot write `.'
3113 # make install will fail,
3114 # 2. the above comment should most certainly read
3115 # $(mkdir_p) $(DESTDIR)$(somedir)
3116 # so it does not work when $(somedir) is undefined and
3117 # $(DESTDIR) is not.
3118 # To support the latter case, we have to write
3119 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3120 # so the `.' trick is pointless.
3121 mkdir_p='mkdir -p --'
3123 # On NextStep and OpenStep, the `mkdir' command does not
3124 # recognize any option. It will interpret all options as
3125 # directories to create, and then abort because `.' already
3127 for d in ./-p ./--version;
3129 test -d $d && rmdir $d
3131 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3132 if test -f "$ac_aux_dir/mkinstalldirs"; then
3133 mkdir_p='$(mkinstalldirs)'
3135 mkdir_p='$(install_sh) -d'
3139 for ac_prog in gawk mawk nawk awk
3141 # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_AWK+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 if test -n "$AWK"; then
3149 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_AWK="$ac_prog"
3159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 if test -n "$AWK"; then
3169 echo "$as_me:$LINENO: result: $AWK" >&5
3170 echo "${ECHO_T}$AWK" >&6
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3176 test -n "$AWK" && break
3179 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3180 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3181 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3182 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.make <<\_ACEOF
3187 @echo 'ac_maketemp="$(MAKE)"'
3189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3190 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3191 if test -n "$ac_maketemp"; then
3192 eval ac_cv_prog_make_${ac_make}_set=yes
3194 eval ac_cv_prog_make_${ac_make}_set=no
3198 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 SET_MAKE="MAKE=${MAKE-make}"
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3215 rmdir .tst 2>/dev/null
3217 DEPDIR="${am__leading_dot}deps"
3219 ac_config_commands="$ac_config_commands depfiles"
3222 am_make=${MAKE-make}
3223 cat > confinc << 'END'
3228 # If we don't find an include directive, just comment out the code.
3229 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3230 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3234 # First try GNU make style include.
3235 echo "include confinc" > confmf
3236 # We grep out `Entering directory' and `Leaving directory'
3237 # messages which can occur if `w' ends up in MAKEFLAGS.
3238 # In particular we don't look at `^make:' because GNU make might
3239 # be invoked under some other name (usually "gmake"), in which
3240 # case it prints its new name instead of `make'.
3241 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3246 # Now try BSD make style include.
3247 if test "$am__include" = "#"; then
3248 echo '.include "confinc"' > confmf
3249 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3250 am__include=.include
3257 echo "$as_me:$LINENO: result: $_am_result" >&5
3258 echo "${ECHO_T}$_am_result" >&6
3259 rm -f confinc confmf
3261 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3262 if test "${enable_dependency_tracking+set}" = set; then
3263 enableval="$enable_dependency_tracking"
3266 if test "x$enable_dependency_tracking" != xno; then
3267 am_depcomp="$ac_aux_dir/depcomp"
3272 if test "x$enable_dependency_tracking" != xno; then
3282 # test to see if srcdir already configured
3283 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3284 test -f $srcdir/config.status; then
3285 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3286 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3287 { (exit 1); exit 1; }; }
3290 # test whether we have cygpath
3291 if test -z "$CYGPATH_W"; then
3292 if (cygpath --version) >/dev/null 2>/dev/null; then
3293 CYGPATH_W='cygpath -w'
3300 # Define the identity of the package.
3302 VERSION='version-unused'
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE "$PACKAGE"
3310 cat >>confdefs.h <<_ACEOF
3311 #define VERSION "$VERSION"
3314 # Some tools Automake needs.
3316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3330 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3332 # Installed binaries are usually stripped using `strip' when the user
3333 # run `make install-strip'. However `strip' might not be the right
3334 # tool to use in cross-compilation environments, therefore Automake
3335 # will honor the `STRIP' environment variable to overrule this program.
3336 if test "$cross_compiling" != no; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}strip; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_prog_STRIP+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 if test -n "$STRIP"; then
3346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 STRIP=$ac_cv_prog_STRIP
3365 if test -n "$STRIP"; then
3366 echo "$as_me:$LINENO: result: $STRIP" >&5
3367 echo "${ECHO_T}$STRIP" >&6
3369 echo "$as_me:$LINENO: result: no" >&5
3370 echo "${ECHO_T}no" >&6
3374 if test -z "$ac_cv_prog_STRIP"; then
3376 # Extract the first word of "strip", so it can be a program name with args.
3377 set dummy strip; ac_word=$2
3378 echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$ac_ct_STRIP"; then
3384 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_STRIP="strip"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3404 if test -n "$ac_ct_STRIP"; then
3405 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3406 echo "${ECHO_T}$ac_ct_STRIP" >&6
3408 echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6
3414 STRIP="$ac_cv_prog_STRIP"
3418 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3420 # We need awk for the "check" target. The system "awk" is bad on
3422 # Always define AMTAR for backward compatibility.
3424 AMTAR=${AMTAR-"${am_missing_run}tar"}
3426 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3431 depcc="$CC" am_compiler_list=
3433 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3434 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3435 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3439 # We make a subdir and do the tests there. Otherwise we can end up
3440 # making bogus files that we don't know about and never remove. For
3441 # instance it was reported that on HP-UX the gcc test will end up
3442 # making a dummy file named `D' -- because `-MD' means `put the output
3445 # Copy depcomp to subdir because otherwise we won't find it if we're
3446 # using a relative directory.
3447 cp "$am_depcomp" conftest.dir
3449 # We will build objects and dependencies in a subdirectory because
3450 # it helps to detect inapplicable dependency modes. For instance
3451 # both Tru64's cc and ICC support -MD to output dependencies as a
3452 # side effect of compilation, but ICC will put the dependencies in
3453 # the current directory while Tru64 will put them in the object
3457 am_cv_CC_dependencies_compiler_type=none
3458 if test "$am_compiler_list" = ""; then
3459 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3461 for depmode in $am_compiler_list; do
3462 # Setup a source with many dependencies, because some compilers
3463 # like to wrap large dependency lists on column 80 (with \), and
3464 # we should not choose a depcomp mode which is confused by this.
3466 # We need to recreate these files for each test, as the compiler may
3467 # overwrite some of them when testing with obscure command lines.
3468 # This happens at least with the AIX C compiler.
3470 for i in 1 2 3 4 5 6; do
3471 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3472 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3473 # Solaris 8's {/usr,}/bin/sh.
3474 touch sub/conftst$i.h
3476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3480 # after this tag, mechanisms are not by side-effect, so they'll
3481 # only be used when explicitly requested
3482 if test "x$enable_dependency_tracking" = xyes; then
3490 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3491 # mode. It turns out that the SunPro C++ compiler does not properly
3492 # handle `-M -o', and we need to detect this.
3493 if depmode=$depmode \
3494 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3496 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3497 >/dev/null 2>conftest.err &&
3498 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3499 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3501 # icc doesn't choke on unknown options, it will just issue warnings
3502 # or remarks (even with -Werror). So we grep stderr for any message
3503 # that says an option was ignored or not supported.
3504 # When given -MP, icc 7.0 and 7.1 complain thusly:
3505 # icc: Command line warning: ignoring option '-M'; no argument required
3506 # The diagnosis changed in icc 8.0:
3507 # icc: Command line remark: option '-MP' not supported
3508 if (grep 'ignoring option' conftest.err ||
3509 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3510 am_cv_CC_dependencies_compiler_type=$depmode
3519 am_cv_CC_dependencies_compiler_type=none
3523 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3524 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3525 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3530 test "x$enable_dependency_tracking" != xno \
3531 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533 am__fastdepCC_FALSE='#'
3535 am__fastdepCC_TRUE='#'
3536 am__fastdepCC_FALSE=
3540 depcc="$CXX" am_compiler_list=
3542 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3543 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3544 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3548 # We make a subdir and do the tests there. Otherwise we can end up
3549 # making bogus files that we don't know about and never remove. For
3550 # instance it was reported that on HP-UX the gcc test will end up
3551 # making a dummy file named `D' -- because `-MD' means `put the output
3554 # Copy depcomp to subdir because otherwise we won't find it if we're
3555 # using a relative directory.
3556 cp "$am_depcomp" conftest.dir
3558 # We will build objects and dependencies in a subdirectory because
3559 # it helps to detect inapplicable dependency modes. For instance
3560 # both Tru64's cc and ICC support -MD to output dependencies as a
3561 # side effect of compilation, but ICC will put the dependencies in
3562 # the current directory while Tru64 will put them in the object
3566 am_cv_CXX_dependencies_compiler_type=none
3567 if test "$am_compiler_list" = ""; then
3568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3570 for depmode in $am_compiler_list; do
3571 # Setup a source with many dependencies, because some compilers
3572 # like to wrap large dependency lists on column 80 (with \), and
3573 # we should not choose a depcomp mode which is confused by this.
3575 # We need to recreate these files for each test, as the compiler may
3576 # overwrite some of them when testing with obscure command lines.
3577 # This happens at least with the AIX C compiler.
3579 for i in 1 2 3 4 5 6; do
3580 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3581 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3582 # Solaris 8's {/usr,}/bin/sh.
3583 touch sub/conftst$i.h
3585 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3589 # after this tag, mechanisms are not by side-effect, so they'll
3590 # only be used when explicitly requested
3591 if test "x$enable_dependency_tracking" = xyes; then
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 if depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3606 >/dev/null 2>conftest.err &&
3607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3608 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3610 # icc doesn't choke on unknown options, it will just issue warnings
3611 # or remarks (even with -Werror). So we grep stderr for any message
3612 # that says an option was ignored or not supported.
3613 # When given -MP, icc 7.0 and 7.1 complain thusly:
3614 # icc: Command line warning: ignoring option '-M'; no argument required
3615 # The diagnosis changed in icc 8.0:
3616 # icc: Command line remark: option '-MP' not supported
3617 if (grep 'ignoring option' conftest.err ||
3618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3619 am_cv_CXX_dependencies_compiler_type=$depmode
3628 am_cv_CXX_dependencies_compiler_type=none
3632 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3633 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3634 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3639 test "x$enable_dependency_tracking" != xno \
3640 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3641 am__fastdepCXX_TRUE=
3642 am__fastdepCXX_FALSE='#'
3644 am__fastdepCXX_TRUE='#'
3645 am__fastdepCXX_FALSE=
3651 if test -n "$ac_tool_prefix"; then
3652 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}as; ac_word=$2
3654 echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656 if test "${ac_cv_prog_AS+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if test -n "$AS"; then
3660 ac_cv_prog_AS="$AS" # Let the user override the test.
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_AS="${ac_tool_prefix}as"
3670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 if test -n "$AS"; then
3680 echo "$as_me:$LINENO: result: $AS" >&5
3681 echo "${ECHO_T}$AS" >&6
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3688 if test -z "$ac_cv_prog_AS"; then
3690 # Extract the first word of "as", so it can be a program name with args.
3691 set dummy as; ac_word=$2
3692 echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 if test -n "$ac_ct_AS"; then
3698 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_ac_ct_AS="as"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3717 if test -n "$ac_ct_AS"; then
3718 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3719 echo "${ECHO_T}$ac_ct_AS" >&6
3721 echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6
3730 if test -n "$ac_tool_prefix"; then
3731 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ar; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_AR+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if test -n "$AR"; then
3739 ac_cv_prog_AR="$AR" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_AR="${ac_tool_prefix}ar"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 if test -n "$AR"; then
3759 echo "$as_me:$LINENO: result: $AR" >&5
3760 echo "${ECHO_T}$AR" >&6
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3767 if test -z "$ac_cv_prog_AR"; then
3769 # Extract the first word of "ar", so it can be a program name with args.
3770 set dummy ar; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if test -n "$ac_ct_AR"; then
3777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 ac_cv_prog_ac_ct_AR="ar"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3796 if test -n "$ac_ct_AR"; then
3797 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3798 echo "${ECHO_T}$ac_ct_AR" >&6
3800 echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3812 echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814 if test "${ac_cv_prog_RANLIB+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 if test -n "$RANLIB"; then
3818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 RANLIB=$ac_cv_prog_RANLIB
3837 if test -n "$RANLIB"; then
3838 echo "$as_me:$LINENO: result: $RANLIB" >&5
3839 echo "${ECHO_T}$RANLIB" >&6
3841 echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3846 if test -z "$ac_cv_prog_RANLIB"; then
3847 ac_ct_RANLIB=$RANLIB
3848 # Extract the first word of "ranlib", so it can be a program name with args.
3849 set dummy ranlib; ac_word=$2
3850 echo "$as_me:$LINENO: checking for $ac_word" >&5
3851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 if test -n "$ac_ct_RANLIB"; then
3856 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_ac_ct_RANLIB="ranlib"
3866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3876 if test -n "$ac_ct_RANLIB"; then
3877 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3878 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3880 echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3884 RANLIB=$ac_ct_RANLIB
3886 RANLIB="$ac_cv_prog_RANLIB"
3890 # Find a good install program. We prefer a C program (faster),
3891 # so one script is as good as another. But avoid the broken or
3892 # incompatible versions:
3893 # SysV /etc/install, /usr/sbin/install
3894 # SunOS /usr/etc/install
3895 # IRIX /sbin/install
3897 # AmigaOS /C/install, which installs bootblocks on floppy discs
3898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3901 # OS/2's system install, which has a completely different semantic
3902 # ./install, which can be erroneously created by make from ./install.sh.
3903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 # Account for people who put trailing slashes in PATH elements.
3916 ./ | .// | /cC/* | \
3917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3921 # OSF1 and SCO ODT 3.0 have their own names for install.
3922 # Don't use installbsd from OSF since it installs stuff as root
3924 for ac_prog in ginstall scoinst install; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3927 if test $ac_prog = install &&
3928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929 # AIX install. It has an incompatible calling convention.
3931 elif test $ac_prog = install &&
3932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933 # program-specific install script used by HP pwplus--don't use.
3936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3948 if test "${ac_cv_path_install+set}" = set; then
3949 INSTALL=$ac_cv_path_install
3951 # As a last resort, use the slow shell script. We don't cache a
3952 # path for INSTALL within a source directory, because that will
3953 # break other packages using the cache if that directory is
3954 # removed, or if the path is relative.
3955 INSTALL=$ac_install_sh
3958 echo "$as_me:$LINENO: result: $INSTALL" >&5
3959 echo "${ECHO_T}$INSTALL" >&6
3961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962 # It thinks the first close brace ends the variable substitution.
3963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3970 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3971 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3972 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3973 if test "${enable_maintainer_mode+set}" = set; then
3974 enableval="$enable_maintainer_mode"
3975 USE_MAINTAINER_MODE=$enableval
3977 USE_MAINTAINER_MODE=no
3979 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3980 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3983 if test $USE_MAINTAINER_MODE = yes; then
3984 MAINTAINER_MODE_TRUE=
3985 MAINTAINER_MODE_FALSE='#'
3987 MAINTAINER_MODE_TRUE='#'
3988 MAINTAINER_MODE_FALSE=
3991 MAINT=$MAINTAINER_MODE_TRUE
3997 # configure.host sets the following important variables
3998 # libgcj_cflags - host specific C compiler flags
3999 # libgcj_cxxflags - host specific C++ compiler flags
4000 # libgcj_javaflags - host specific Java compiler flags
4006 . ${srcdir}/configure.host
4008 LIBGCJ_CFLAGS="${libgcj_cflags}"
4009 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4010 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4011 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4017 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4020 # Only use libltdl for non-newlib builds.
4021 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4022 case $enable_ltdl_convenience in
4023 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4024 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4025 { (exit 1); exit 1; }; } ;;
4026 "") enable_ltdl_convenience=yes
4027 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4029 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4030 INCLTDL='-I${top_srcdir}/''libltdl'
4035 cat >>confdefs.h <<\_ACEOF
4039 # Sigh. Libtool's macro doesn't do the right thing.
4040 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4041 # FIXME: this is a hack.
4042 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4043 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4048 # Check whether --enable-shared or --disable-shared was given.
4049 if test "${enable_shared+set}" = set; then
4050 enableval="$enable_shared"
4051 p=${PACKAGE-default}
4053 yes) enable_shared=yes ;;
4054 no) enable_shared=no ;;
4057 # Look at the argument we got. We use all the common list separators.
4058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4059 for pkg in $enableval; do
4060 if test "X$pkg" = "X$p"; then
4070 # Check whether --enable-static or --disable-static was given.
4071 if test "${enable_static+set}" = set; then
4072 enableval="$enable_static"
4073 p=${PACKAGE-default}
4075 yes) enable_static=yes ;;
4076 no) enable_static=no ;;
4079 # Look at the argument we got. We use all the common list separators.
4080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4081 for pkg in $enableval; do
4082 if test "X$pkg" = "X$p"; then
4092 # Check whether --enable-fast-install or --disable-fast-install was given.
4093 if test "${enable_fast_install+set}" = set; then
4094 enableval="$enable_fast_install"
4095 p=${PACKAGE-default}
4097 yes) enable_fast_install=yes ;;
4098 no) enable_fast_install=no ;;
4100 enable_fast_install=no
4101 # Look at the argument we got. We use all the common list separators.
4102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4103 for pkg in $enableval; do
4104 if test "X$pkg" = "X$p"; then
4105 enable_fast_install=yes
4112 enable_fast_install=yes
4115 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4116 if test "${with_gnu_ld+set}" = set; then
4117 withval="$with_gnu_ld"
4118 test "$withval" = no || with_gnu_ld=yes
4123 if test "$GCC" = yes; then
4124 # Check if gcc -print-prog-name=ld gives a path.
4125 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4126 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4129 # gcc leaves a trailing carriage return which upsets mingw
4130 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4132 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4135 # Accept absolute paths.
4136 [\\/]* | [A-Za-z]:[\\/]*)
4137 re_direlt='/[^/][^/]*/\.\./'
4138 # Canonicalize the path of ld
4139 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4140 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4141 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4143 test -z "$LD" && LD="$ac_prog"
4146 # If it fails, then pretend we aren't using GCC.
4150 # If it is relative, then search for the first ld in PATH.
4154 elif test "$with_gnu_ld" = yes; then
4155 echo "$as_me:$LINENO: checking for GNU ld" >&5
4156 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4158 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4159 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4161 if test "${lt_cv_path_LD+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 if test -z "$LD"; then
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4166 for ac_dir in $PATH; do
4167 test -z "$ac_dir" && ac_dir=.
4168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4169 lt_cv_path_LD="$ac_dir/$ac_prog"
4170 # Check to see if the program is GNU ld. I'd rather use --version,
4171 # but apparently some GNU ld's only accept -v.
4172 # Break only if it was the GNU/non-GNU ld that we prefer.
4173 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4174 test "$with_gnu_ld" != no && break
4176 test "$with_gnu_ld" != yes && break
4182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4187 if test -n "$LD"; then
4188 echo "$as_me:$LINENO: result: $LD" >&5
4189 echo "${ECHO_T}$LD" >&6
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4196 { (exit 1); exit 1; }; }
4197 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4203 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4204 lt_cv_prog_gnu_ld=yes
4206 lt_cv_prog_gnu_ld=no
4209 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4211 with_gnu_ld=$lt_cv_prog_gnu_ld
4214 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4216 if test "${lt_cv_ld_reload_flag+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 lt_cv_ld_reload_flag='-r'
4221 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4223 reload_flag=$lt_cv_ld_reload_flag
4224 test -n "$reload_flag" && reload_flag=" $reload_flag"
4226 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4227 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4228 if test "${lt_cv_path_NM+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$NM"; then
4232 # Let the user override the test.
4235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4236 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4237 test -z "$ac_dir" && ac_dir=.
4238 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4239 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4240 # Check to see if the nm accepts a BSD-compat flag.
4241 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4242 # nm: unknown option "B" ignored
4243 # Tru64's nm complains that /dev/null is an invalid object file
4244 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4245 lt_cv_path_NM="$tmp_nm -B"
4247 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4248 lt_cv_path_NM="$tmp_nm -p"
4251 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4252 continue # so that we can try to find one that supports BSD flags
4257 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4262 echo "$as_me:$LINENO: result: $NM" >&5
4263 echo "${ECHO_T}$NM" >&6
4265 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4266 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4267 if test "${lt_cv_deplibs_check_method+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 lt_cv_file_magic_cmd='$MAGIC_CMD'
4271 lt_cv_file_magic_test_file=
4272 lt_cv_deplibs_check_method='unknown'
4273 # Need to set the preceding variable on all platforms that support
4274 # interlibrary dependencies.
4275 # 'none' -- dependencies not supported.
4276 # `unknown' -- same as none, but documents that we really don't know.
4277 # 'pass_all' -- all dependencies passed with no checks.
4278 # 'test_compile' -- check by making test program.
4279 # 'file_magic [regex]' -- check by looking for files in library path
4280 # which responds to the $file_magic_cmd with a given egrep regex.
4281 # If you have `file' or equivalent on your system and you're not sure
4282 # whether `pass_all' will *always* work, you probably want this one.
4286 lt_cv_deplibs_check_method=pass_all
4290 lt_cv_deplibs_check_method=pass_all
4294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4295 lt_cv_file_magic_cmd='/usr/bin/file -L'
4296 lt_cv_file_magic_test_file=/shlib/libc.so
4299 cygwin* | mingw* |pw32*)
4300 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4301 lt_cv_file_magic_cmd='$OBJDUMP -f'
4304 darwin* | rhapsody*)
4305 # this will be overwritten by pass_all, but leave it in just in case
4306 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4307 lt_cv_file_magic_cmd='/usr/bin/file -L'
4309 rhapsody* | darwin1.012)
4310 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4313 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4316 lt_cv_deplibs_check_method=pass_all
4319 freebsd* | kfreebsd*-gnu)
4320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323 # Not sure whether the presence of OpenBSD here was a mistake.
4324 # Let's accept both of them until this is cleared up.
4325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4331 lt_cv_deplibs_check_method=pass_all
4336 lt_cv_deplibs_check_method=pass_all
4342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4343 lt_cv_file_magic_cmd=/usr/bin/file
4344 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4348 lt_cv_file_magic_cmd=/usr/bin/file
4349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4357 # this will be overridden with pass_all, but let us keep it just in case
4358 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4362 *-32|*"-32 ") libmagic=32-bit;;
4363 *-n32|*"-n32 ") libmagic=N32;;
4364 *-64|*"-64 ") libmagic=64-bit;;
4365 *) libmagic=never-match;;
4367 # this will be overridden with pass_all, but let us keep it just in case
4368 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4371 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4372 lt_cv_deplibs_check_method=pass_all
4375 # This must be Linux ELF.
4377 lt_cv_deplibs_check_method=pass_all
4380 netbsd* | knetbsd*-gnu)
4381 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4382 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4384 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4390 lt_cv_file_magic_cmd=/usr/bin/file
4391 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4394 osf3* | osf4* | osf5*)
4395 # this will be overridden with pass_all, but let us keep it just in case
4396 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4397 lt_cv_file_magic_test_file=/shlib/libc.so
4398 lt_cv_deplibs_check_method=pass_all
4402 lt_cv_deplibs_check_method=pass_all
4406 lt_cv_deplibs_check_method=pass_all
4407 lt_cv_file_magic_test_file=/lib/libc.so
4410 sysv5uw[78]* | sysv4*uw2*)
4411 lt_cv_deplibs_check_method=pass_all
4414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4415 case $host_vendor in
4417 lt_cv_deplibs_check_method=pass_all
4420 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]'
4421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4428 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4429 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4430 file_magic_cmd=$lt_cv_file_magic_cmd
4431 deplibs_check_method=$lt_cv_deplibs_check_method
4436 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4438 # find the maximum length of command line arguments
4439 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4440 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4441 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 # On DJGPP, this test can blow up pretty badly due to problems in libc
4450 # (any single argument exceeding 2000 bytes causes a buffer overrun
4451 # during glob expansion). Even if it were fixed, the result of this
4452 # check would be larger than it should be.
4453 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4457 # On Win9x/ME, this test blows up -- it succeeds, but takes
4458 # about 5 minutes as the teststring grows exponentially.
4459 # Worse, since 9x/ME are not pre-emptively multitasking,
4460 # you end up with a "frozen" computer, even though with patience
4461 # the test eventually succeeds (with a max line length of 256k).
4462 # Instead, let's just punt: use the minimum linelength reported by
4463 # all of the supported platforms: 8192 (on NT/2K/XP).
4464 lt_cv_sys_max_cmd_len=8192;
4468 # On AmigaOS with pdksh, this test takes hours, literally.
4469 # So we just punt and use a minimum line length of 8192.
4470 lt_cv_sys_max_cmd_len=8192;
4473 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4474 # This has been around since 386BSD, at least. Likely further.
4475 if test -x /sbin/sysctl; then
4476 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4477 elif test -x /usr/sbin/sysctl; then
4478 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4480 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4482 # And add a safety zone
4483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4487 # If test is not a shell built-in, we'll probably end up computing a
4488 # maximum length that is only half of the actual maximum length, but
4490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4491 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4492 = "XX$teststring") >/dev/null 2>&1 &&
4493 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4494 lt_cv_sys_max_cmd_len=$new_result &&
4495 test $i != 17 # 1/2 MB should be enough
4498 teststring=$teststring$teststring
4501 # Add a significant safety factor because C++ compilers can tack on massive
4502 # amounts of additional arguments before passing them to the linker.
4503 # It appears as though 1/2 is a usable value.
4504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4510 if test -n $lt_cv_sys_max_cmd_len ; then
4511 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4512 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4514 echo "$as_me:$LINENO: result: none" >&5
4515 echo "${ECHO_T}none" >&6
4519 # Only perform the check for file, if the check method requires it
4520 case $deplibs_check_method in
4522 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4523 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4524 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4525 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4536 ac_save_MAGIC_CMD="$MAGIC_CMD"
4537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4538 ac_dummy="/usr/bin:$PATH"
4539 for ac_dir in $ac_dummy; do
4540 test -z "$ac_dir" && ac_dir=.
4541 if test -f $ac_dir/${ac_tool_prefix}file; then
4542 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4543 if test -n "$file_magic_test_file"; then
4544 case $deplibs_check_method in
4546 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4548 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4549 egrep "$file_magic_regex" > /dev/null; then
4554 *** Warning: the command libtool uses to detect shared libraries,
4555 *** $file_magic_cmd, produces output that libtool cannot recognize.
4556 *** The result is that libtool may fail to recognize shared libraries
4557 *** as such. This will affect the creation of libtool libraries that
4558 *** depend on shared libraries, but programs linked with such libtool
4559 *** libraries will work regardless of this problem. Nevertheless, you
4560 *** may want to report the problem to your system manager and/or to
4561 *** bug-libtool@gnu.org
4571 MAGIC_CMD="$ac_save_MAGIC_CMD"
4576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4577 if test -n "$MAGIC_CMD"; then
4578 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4579 echo "${ECHO_T}$MAGIC_CMD" >&6
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4585 if test -z "$lt_cv_path_MAGIC_CMD"; then
4586 if test -n "$ac_tool_prefix"; then
4587 echo "$as_me:$LINENO: checking for file" >&5
4588 echo $ECHO_N "checking for file... $ECHO_C" >&6
4589 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4600 ac_save_MAGIC_CMD="$MAGIC_CMD"
4601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4602 ac_dummy="/usr/bin:$PATH"
4603 for ac_dir in $ac_dummy; do
4604 test -z "$ac_dir" && ac_dir=.
4605 if test -f $ac_dir/file; then
4606 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4607 if test -n "$file_magic_test_file"; then
4608 case $deplibs_check_method in
4610 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4612 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4613 egrep "$file_magic_regex" > /dev/null; then
4618 *** Warning: the command libtool uses to detect shared libraries,
4619 *** $file_magic_cmd, produces output that libtool cannot recognize.
4620 *** The result is that libtool may fail to recognize shared libraries
4621 *** as such. This will affect the creation of libtool libraries that
4622 *** depend on shared libraries, but programs linked with such libtool
4623 *** libraries will work regardless of this problem. Nevertheless, you
4624 *** may want to report the problem to your system manager and/or to
4625 *** bug-libtool@gnu.org
4635 MAGIC_CMD="$ac_save_MAGIC_CMD"
4640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4641 if test -n "$MAGIC_CMD"; then
4642 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4643 echo "${ECHO_T}$MAGIC_CMD" >&6
4645 echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4661 echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4663 if test "${ac_cv_prog_RANLIB+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test -n "$RANLIB"; then
4667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 RANLIB=$ac_cv_prog_RANLIB
4686 if test -n "$RANLIB"; then
4687 echo "$as_me:$LINENO: result: $RANLIB" >&5
4688 echo "${ECHO_T}$RANLIB" >&6
4690 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4695 if test -z "$ac_cv_prog_RANLIB"; then
4696 ac_ct_RANLIB=$RANLIB
4697 # Extract the first word of "ranlib", so it can be a program name with args.
4698 set dummy ranlib; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 if test -n "$ac_ct_RANLIB"; then
4705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_ac_ct_RANLIB="ranlib"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4725 if test -n "$ac_ct_RANLIB"; then
4726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4727 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4729 echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6
4733 RANLIB=$ac_ct_RANLIB
4735 RANLIB="$ac_cv_prog_RANLIB"
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}strip; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_STRIP+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 if test -n "$STRIP"; then
4747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 STRIP=$ac_cv_prog_STRIP
4766 if test -n "$STRIP"; then
4767 echo "$as_me:$LINENO: result: $STRIP" >&5
4768 echo "${ECHO_T}$STRIP" >&6
4770 echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4775 if test -z "$ac_cv_prog_STRIP"; then
4777 # Extract the first word of "strip", so it can be a program name with args.
4778 set dummy strip; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 if test -n "$ac_ct_STRIP"; then
4785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_ac_ct_STRIP="strip"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4805 if test -n "$ac_ct_STRIP"; then
4806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4807 echo "${ECHO_T}$ac_ct_STRIP" >&6
4809 echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4815 STRIP="$ac_cv_prog_STRIP"
4819 # Check for any special flags to pass to ltconfig.
4820 libtool_flags="--cache-file=$cache_file"
4821 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4822 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4823 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4824 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4825 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4828 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4829 if test "${enable_libtool_lock+set}" = set; then
4830 enableval="$enable_libtool_lock"
4833 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4834 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4837 # Check whether --with-pic or --without-pic was given.
4838 if test "${with_pic+set}" = set; then
4844 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4845 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4847 # Some flags need to be propagated to the compiler or linker for good
4851 # Find out which ABI we are using.
4852 echo '#line 4852 "configure"' > conftest.$ac_ext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; then
4858 if test "$lt_cv_prog_gnu_ld" = yes; then
4859 case `/usr/bin/file conftest.$ac_objext` in
4861 LD="${LD-ld} -melf32bsmip"
4864 LD="${LD-ld} -melf32bmipn32"
4867 LD="${LD-ld} -melf64bmip"
4871 case `/usr/bin/file conftest.$ac_objext` in
4888 # Find out which ABI we are using.
4889 echo 'int i;' > conftest.$ac_ext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; then
4895 case "`/usr/bin/file conftest.o`" in
4907 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4908 # Find out which ABI we are using.
4909 echo 'int i;' > conftest.$ac_ext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; then
4915 case "`/usr/bin/file conftest.o`" in
4919 LD="${LD-ld} -m elf_i386"
4921 ppc64-*linux*|powerpc64-*linux*)
4922 LD="${LD-ld} -m elf32ppclinux"
4925 LD="${LD-ld} -m elf_s390"
4928 LD="${LD-ld} -m elf32_sparc"
4935 LD="${LD-ld} -m elf_x86_64"
4937 ppc*-*linux*|powerpc*-*linux*)
4938 LD="${LD-ld} -m elf64ppc"
4941 LD="${LD-ld} -m elf64_s390"
4944 LD="${LD-ld} -m elf64_sparc"
4954 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4955 SAVE_CFLAGS="$CFLAGS"
4956 CFLAGS="$CFLAGS -belf"
4957 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4958 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4959 if test "${lt_cv_cc_needs_belf+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 if test x$gcc_no_link = xyes; then
4971 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4972 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4973 { (exit 1); exit 1; }; }
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4990 rm -f conftest.$ac_objext conftest$ac_exeext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4992 (eval $ac_link) 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -z "$ac_c_werror_flag"
5000 || test ! -s conftest.err'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; } &&
5006 { ac_try='test -s conftest$ac_exeext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 lt_cv_cc_needs_belf=yes
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 lt_cv_cc_needs_belf=no
5019 rm -f conftest.err conftest.$ac_objext \
5020 conftest$ac_exeext conftest.$ac_ext
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5028 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5029 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5030 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5031 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5032 CFLAGS="$SAVE_CFLAGS"
5040 # Save cache, so that ltconfig can load it
5041 cat >confcache <<\_ACEOF
5042 # This file is a shell script that caches the results of configure
5043 # tests run on this system so they can be shared between configure
5044 # scripts and configure runs, see configure's option --config-cache.
5045 # It is not useful on other systems. If it contains results you don't
5046 # want to keep, you may remove or edit it.
5048 # config.status only pays attention to the cache file if you give it
5049 # the --recheck option to rerun configure.
5051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5057 # The following way of writing the cache mishandles newlines in values,
5058 # but we know of no workaround that is simple, portable, and efficient.
5059 # So, don't put newlines in cache variables' values.
5060 # Ultrix sh set writes to stderr and can't be redirected directly,
5061 # and sets the high bit in the cache file unless we assign to the vars.
5064 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5066 # `set' does not quote correctly, so add quotes (double-quote
5067 # substitution turns \\\\ into \\, and sed turns \\ into \).
5070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5073 # `set' quotes correctly as required by POSIX, so do not add quotes.
5075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5084 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5086 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5087 if test -w $cache_file; then
5088 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5089 cat confcache >$cache_file
5091 echo "not updating unwritable cache $cache_file"
5096 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5097 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5098 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5099 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5100 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5101 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5102 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5103 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5104 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5105 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5106 echo "$as_me: error: libtool configure failed" >&2;}
5107 { (exit 1); exit 1; }; }
5109 # Reload cache, that may have been modified by ltconfig
5110 if test -r "$cache_file"; then
5111 # Some versions of bash will fail to source /dev/null (special
5112 # files actually), so we avoid doing that.
5113 if test -f "$cache_file"; then
5114 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5115 echo "$as_me: loading cache $cache_file" >&6;}
5117 [\\/]* | ?:[\\/]* ) . $cache_file;;
5118 *) . ./$cache_file;;
5122 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5123 echo "$as_me: creating cache $cache_file" >&6;}
5128 # This can be used to rebuild libtool when needed
5129 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5131 # Always use our own libtool.
5132 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5134 # Redirect the config.log output again, so that the ltconfig log is not
5135 # clobbered by the next message.
5136 exec 5>>./config.log
5139 ac_cpp='$CXXCPP $CPPFLAGS'
5140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5143 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5144 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5145 if test -z "$CXXCPP"; then
5146 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 # Double quotes because CXXCPP needs to be expanded
5150 for CXXCPP in "$CXX -E" "/lib/cpp"
5153 for ac_cxx_preproc_warn_flag in '' yes
5155 # Use a header file that comes with gcc, so configuring glibc
5156 # with a fresh cross-compiler works.
5157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 # <limits.h> exists even on freestanding compilers.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5168 # include <limits.h>
5170 # include <assert.h>
5174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5177 grep -v '^ *+' conftest.er1 >conftest.err
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } >/dev/null; then
5182 if test -s conftest.err; then
5183 ac_cpp_err=$ac_cxx_preproc_warn_flag
5184 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5191 if test -z "$ac_cpp_err"; then
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5197 # Broken: fails on valid input.
5200 rm -f conftest.err conftest.$ac_ext
5202 # OK, works on sane cases. Now check whether non-existent headers
5203 # can be detected and how.
5204 cat >conftest.$ac_ext <<_ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <ac_nonexistent.h>
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev/null; then
5220 if test -s conftest.err; then
5221 ac_cpp_err=$ac_cxx_preproc_warn_flag
5222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5229 if test -z "$ac_cpp_err"; then
5230 # Broken: success on invalid input.
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5236 # Passes both tests.
5240 rm -f conftest.err conftest.$ac_ext
5243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5244 rm -f conftest.err conftest.$ac_ext
5245 if $ac_preproc_ok; then
5250 ac_cv_prog_CXXCPP=$CXXCPP
5253 CXXCPP=$ac_cv_prog_CXXCPP
5255 ac_cv_prog_CXXCPP=$CXXCPP
5257 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5258 echo "${ECHO_T}$CXXCPP" >&6
5260 for ac_cxx_preproc_warn_flag in '' yes
5262 # Use a header file that comes with gcc, so configuring glibc
5263 # with a fresh cross-compiler works.
5264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5265 # <limits.h> exists even on freestanding compilers.
5266 # On the NeXT, cc -E runs the code through the compiler's parser,
5267 # not just through cpp. "Syntax error" is here to catch this case.
5268 cat >conftest.$ac_ext <<_ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5275 # include <limits.h>
5277 # include <assert.h>
5281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5284 grep -v '^ *+' conftest.er1 >conftest.err
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } >/dev/null; then
5289 if test -s conftest.err; then
5290 ac_cpp_err=$ac_cxx_preproc_warn_flag
5291 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5298 if test -z "$ac_cpp_err"; then
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 # Broken: fails on valid input.
5307 rm -f conftest.err conftest.$ac_ext
5309 # OK, works on sane cases. Now check whether non-existent headers
5310 # can be detected and how.
5311 cat >conftest.$ac_ext <<_ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 #include <ac_nonexistent.h>
5319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } >/dev/null; then
5327 if test -s conftest.err; then
5328 ac_cpp_err=$ac_cxx_preproc_warn_flag
5329 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5336 if test -z "$ac_cpp_err"; then
5337 # Broken: success on invalid input.
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 # Passes both tests.
5347 rm -f conftest.err conftest.$ac_ext
5350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351 rm -f conftest.err conftest.$ac_ext
5352 if $ac_preproc_ok; then
5355 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5356 See \`config.log' for more details." >&5
5357 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5358 See \`config.log' for more details." >&2;}
5359 { (exit 1); exit 1; }; }
5363 ac_cpp='$CPP $CPPFLAGS'
5364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5370 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5372 lt_save_CFLAGS="$CFLAGS"
5373 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5374 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5375 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5376 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5377 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5378 deplibs_check_method="$deplibs_check_method" \
5379 file_magic_cmd="$file_magic_cmd" \
5380 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5381 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5382 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5383 echo "$as_me: error: libtool tag configuration failed" >&2;}
5384 { (exit 1); exit 1; }; }
5386 CFLAGS="$lt_save_CFLAGS"
5388 # Redirect the config.log output again, so that the ltconfig log is not
5389 # clobbered by the next message.
5390 exec 5>>./config.log
5400 # Extract the first word of "$ac_prog", so it can be a program name with args.
5401 set dummy $ac_prog; ac_word=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_GCJ+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 if test -n "$GCJ"; then
5408 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_GCJ="$ac_prog"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 if test -n "$GCJ"; then
5428 echo "$as_me:$LINENO: result: $GCJ" >&5
5429 echo "${ECHO_T}$GCJ" >&6
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5435 test -n "$GCJ" && break
5437 test -n "$GCJ" || GCJ="gcj"
5439 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5440 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5441 { (exit 1); exit 1; }; }
5442 if test "x${GCJFLAGS-unset}" = xunset; then
5447 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5449 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5450 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5451 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5455 # We make a subdir and do the tests there. Otherwise we can end up
5456 # making bogus files that we don't know about and never remove. For
5457 # instance it was reported that on HP-UX the gcc test will end up
5458 # making a dummy file named `D' -- because `-MD' means `put the output
5461 # Copy depcomp to subdir because otherwise we won't find it if we're
5462 # using a relative directory.
5463 cp "$am_depcomp" conftest.dir
5465 # We will build objects and dependencies in a subdirectory because
5466 # it helps to detect inapplicable dependency modes. For instance
5467 # both Tru64's cc and ICC support -MD to output dependencies as a
5468 # side effect of compilation, but ICC will put the dependencies in
5469 # the current directory while Tru64 will put them in the object
5473 am_cv_GCJ_dependencies_compiler_type=none
5474 if test "$am_compiler_list" = ""; then
5475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5477 for depmode in $am_compiler_list; do
5478 # Setup a source with many dependencies, because some compilers
5479 # like to wrap large dependency lists on column 80 (with \), and
5480 # we should not choose a depcomp mode which is confused by this.
5482 # We need to recreate these files for each test, as the compiler may
5483 # overwrite some of them when testing with obscure command lines.
5484 # This happens at least with the AIX C compiler.
5486 for i in 1 2 3 4 5 6; do
5487 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5488 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5489 # Solaris 8's {/usr,}/bin/sh.
5490 touch sub/conftst$i.h
5492 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5496 # after this tag, mechanisms are not by side-effect, so they'll
5497 # only be used when explicitly requested
5498 if test "x$enable_dependency_tracking" = xyes; then
5506 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5507 # mode. It turns out that the SunPro C++ compiler does not properly
5508 # handle `-M -o', and we need to detect this.
5509 if depmode=$depmode \
5510 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5511 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5512 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5513 >/dev/null 2>conftest.err &&
5514 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5515 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5516 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5517 # icc doesn't choke on unknown options, it will just issue warnings
5518 # or remarks (even with -Werror). So we grep stderr for any message
5519 # that says an option was ignored or not supported.
5520 # When given -MP, icc 7.0 and 7.1 complain thusly:
5521 # icc: Command line warning: ignoring option '-M'; no argument required
5522 # The diagnosis changed in icc 8.0:
5523 # icc: Command line remark: option '-MP' not supported
5524 if (grep 'ignoring option' conftest.err ||
5525 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5526 am_cv_GCJ_dependencies_compiler_type=$depmode
5535 am_cv_GCJ_dependencies_compiler_type=none
5539 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5540 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5541 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5546 test "x$enable_dependency_tracking" != xno \
5547 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5548 am__fastdepGCJ_TRUE=
5549 am__fastdepGCJ_FALSE='#'
5551 am__fastdepGCJ_TRUE='#'
5552 am__fastdepGCJ_FALSE=
5558 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5560 lt_save_CFLAGS="$CFLAGS"
5561 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5562 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5563 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5564 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5565 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5566 deplibs_check_method="$deplibs_check_method" \
5567 file_magic_cmd="$file_magic_cmd" \
5568 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5569 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5570 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5571 echo "$as_me: error: libtool tag configuration failed" >&2;}
5572 { (exit 1); exit 1; }; }
5574 CFLAGS="$lt_save_CFLAGS"
5576 # Redirect the config.log output again, so that the ltconfig log is not
5577 # clobbered by the next message.
5578 exec 5>>./config.log
5582 if test "x$CC" != xcc; then
5583 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5584 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5586 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5587 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5589 set dummy $CC; ac_cc=`echo $2 |
5590 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5591 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5609 # Make sure it works both with $CC and with simple cc.
5610 # We do the test twice because some compilers refuse to overwrite an
5611 # existing .o file with -o, though they will create one.
5612 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5613 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); };
5624 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5625 if test "x$CC" != xcc; then
5626 # Test first that cc exists at all.
5627 if { ac_try='cc -c conftest.$ac_ext >&5'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5634 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); };
5648 # cc exists but doesn't like -o.
5649 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5654 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5659 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5660 echo "$as_me:$LINENO: result: yes" >&5
5661 echo "${ECHO_T}yes" >&6
5663 echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6
5666 cat >>confdefs.h <<\_ACEOF
5667 #define NO_MINUS_C_MINUS_O 1
5672 # FIXME: we rely on the cache variable name because
5673 # there is no other way.
5675 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5676 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5677 # Losing compiler, so override with the script.
5678 # FIXME: It is wrong to rewrite CC.
5679 # But if we don't then we get into trouble of one sort or another.
5680 # A longer-term fix would be to have automake use am__CC in this case,
5681 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5682 CC="$am_aux_dir/compile $CC"
5687 subdirs="$subdirs libltdl"
5690 # The -no-testsuite modules omit the test subdir.
5693 if test -d $srcdir/testsuite; then
5695 TESTSUBDIR_FALSE='#'
5702 # Should the runtime set system properties by examining the
5703 # environment variable GCJ_PROPERTIES?
5704 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5705 if test "${enable_getenv_properties+set}" = set; then
5706 enableval="$enable_getenv_properties"
5710 # Whether GCJ_PROPERTIES is used depends on the target.
5711 if test -z "$enable_getenv_properties"; then
5712 enable_getenv_properties=${enable_getenv_properties_default-yes}
5714 if test "$enable_getenv_properties" = no; then
5716 cat >>confdefs.h <<\_ACEOF
5717 #define DISABLE_GETENV_PROPERTIES 1
5722 # Whether we should use arguments to main()
5723 if test -z "$enable_main_args"; then
5724 enable_main_args=${enable_main_args_default-yes}
5726 if test "$enable_main_args" = no; then
5728 cat >>confdefs.h <<\_ACEOF
5729 #define DISABLE_MAIN_ARGS 1
5735 # Should we use hashtable-based synchronization?
5736 # Currently works only for Linux X86/ia64
5737 # Typically faster and more space-efficient
5738 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5739 if test "${enable_hash_synchronization+set}" = set; then
5740 enableval="$enable_hash_synchronization"
5744 if test -z "$enable_hash_synchronization"; then
5745 enable_hash_synchronization=$enable_hash_synchronization_default
5748 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5749 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5750 if test "${enable_libgcj_multifile+set}" = set; then
5751 enableval="$enable_libgcj_multifile"
5752 case "${enableval}" in
5753 yes) enable_libgcj_multifile=yes ;;
5754 no) enable_libgcj_multifile=no ;;
5755 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5756 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5757 { (exit 1); exit 1; }; } ;;
5760 enable_libgcj_multifile=no
5764 if test "$enable_libgcj_multifile" = yes; then
5774 # Check whether --with-java-home or --without-java-home was given.
5775 if test "${with_java_home+set}" = set; then
5776 withval="$with_java_home"
5777 JAVA_HOME="${withval}"
5783 if test ! -z "$JAVA_HOME"; then
5785 JAVA_HOME_SET_FALSE='#'
5787 JAVA_HOME_SET_TRUE='#'
5788 JAVA_HOME_SET_FALSE=
5793 # What is the native OS API for MinGW?
5795 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5796 if test "${with_win32_nlsapi+set}" = set; then
5797 withval="$with_win32_nlsapi"
5798 case "${withval}" in
5799 ansi) with_win32_nlsapi=ansi ;;
5800 unicows) with_win32_nlsapi=unicows ;;
5801 unicode) with_win32_nlsapi=unicode ;;
5802 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5803 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5804 { (exit 1); exit 1; }; } ;;
5807 with_win32_nlsapi=ansi
5810 case "${with_win32_nlsapi}" in
5813 cat >>confdefs.h <<\_ACEOF
5814 #define MINGW_LIBGCJ_UNICODE 1
5820 # configure.host sets slow_pthread_self if the synchronization code should
5821 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5822 if test "${slow_pthread_self}" = "yes"; then
5824 cat >>confdefs.h <<\_ACEOF
5825 #define SLOW_PTHREAD_SELF 1
5831 # See if the user has requested runtime debugging.
5834 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5835 if test "${enable_libgcj_debug+set}" = set; then
5836 enableval="$enable_libgcj_debug"
5837 if test "$enable_libgcj_debug" = yes; then
5839 cat >>confdefs.h <<\_ACEOF
5847 # Check for gc debugging. This option is handled both here and in the GC.
5848 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5849 if test "${enable_gc_debug+set}" = set; then
5850 enableval="$enable_gc_debug"
5851 if test "$enable_gc_debug" = "yes"; then
5853 cat >>confdefs.h <<\_ACEOF
5854 #define LIBGCJ_GC_DEBUG 1
5860 # See if the user has the interpreter included.
5861 # Check whether --enable-interpreter or --disable-interpreter was given.
5862 if test "${enable_interpreter+set}" = set; then
5863 enableval="$enable_interpreter"
5864 if test "$enable_interpreter" = yes; then
5865 # This can also be set in configure.host.
5866 libgcj_interpreter=yes
5867 elif test "$enable_interpreter" = no; then
5868 libgcj_interpreter=no
5872 if test "$libgcj_interpreter" = yes; then
5874 cat >>confdefs.h <<\_ACEOF
5875 #define INTERPRETER 1
5879 INTERPRETER="$libgcj_interpreter"
5882 echo "$as_me:$LINENO: checking for exception model to use" >&5
5883 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5885 ac_cpp='$CXXCPP $CPPFLAGS'
5886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5890 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5891 if test "${enable_sjlj_exceptions+set}" = set; then
5892 enableval="$enable_sjlj_exceptions"
5895 cat > conftest.$ac_ext << EOF
5896 #line 5896 "configure"
5905 old_CXXFLAGS="$CXXFLAGS"
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; then
5912 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5913 enable_sjlj_exceptions=yes
5914 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5915 enable_sjlj_exceptions=no
5918 CXXFLAGS="$old_CXXFLAGS"
5921 if test x$enable_sjlj_exceptions = xyes; then
5923 cat >>confdefs.h <<\_ACEOF
5924 #define SJLJ_EXCEPTIONS 1
5927 ac_exception_model_name=sjlj
5928 elif test x$enable_sjlj_exceptions = xno; then
5929 ac_exception_model_name="call frame"
5931 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5932 echo "$as_me: error: unable to detect exception model" >&2;}
5933 { (exit 1); exit 1; }; }
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5941 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5942 echo "${ECHO_T}$ac_exception_model_name" >&6
5944 # If we are non using SJLJ exceptions, and this host does not have support
5945 # for unwinding from a signal handler, enable checked dereferences and divides.
5946 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5947 CHECKREFSPEC=-fcheck-references
5948 DIVIDESPEC=-fuse-divide-subroutine
5952 # See if the user wants to disable java.net. This is the mildly
5953 # ugly way that we admit that target-side configuration sucks.
5954 # Check whether --enable-java-net or --disable-java-net was given.
5955 if test "${enable_java_net+set}" = set; then
5956 enableval="$enable_java_net"
5960 # Whether java.net is built by default can depend on the target.
5961 if test -z "$enable_java_net"; then
5962 enable_java_net=${enable_java_net_default-yes}
5964 if test "$enable_java_net" = no; then
5966 cat >>confdefs.h <<\_ACEOF
5967 #define DISABLE_JAVA_NET 1
5972 # See if the user wants to configure without libffi. Some
5973 # architectures don't support it, and default values are set in
5976 # Check whether --with-libffi or --without-libffi was given.
5977 if test "${with_libffi+set}" = set; then
5978 withval="$with_libffi"
5981 with_libffi=${with_libffi_default-yes}
5986 if test "$with_libffi" != no; then
5988 cat >>confdefs.h <<\_ACEOF
5989 #define USE_LIBFFI 1
5992 LIBFFI=../libffi/libffi_convenience.la
5993 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5998 # See if the user wants to disable JVMPI support.
5999 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6000 if test "${enable_jvmpi+set}" = set; then
6001 enableval="$enable_jvmpi"
6005 if test "$enable_jvmpi" != no; then
6007 cat >>confdefs.h <<\_ACEOF
6008 #define ENABLE_JVMPI 1
6013 # If the target is an eCos system, use the appropriate eCos
6015 # FIXME: this should not be a local option but a global target
6016 # system; at present there is no eCos target.
6017 TARGET_ECOS=${PROCESS-"no"}
6019 # Check whether --with-ecos or --without-ecos was given.
6020 if test "${with_ecos+set}" = set; then
6021 withval="$with_ecos"
6022 TARGET_ECOS="$with_ecos"
6028 PLATFORM_INNER_NAT_HDRS=
6029 case "$TARGET_ECOS" in
6036 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6037 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6038 LD_PROG=`$CC --print-prog-name=ld`
6039 LD_VERSION=`$LD_PROG --version`
6040 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6041 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6042 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6045 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6049 if test "x$LD_OK" != x; then
6050 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6051 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6053 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6054 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6055 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6056 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6058 cat >>confdefs.h <<\_ACEOF
6059 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6068 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6076 cat >>confdefs.h <<\_ACEOF
6084 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6088 ac_cpp='$CPP $CPPFLAGS'
6089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6092 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6093 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6094 # On Suns, sometimes $CPP names a directory.
6095 if test -n "$CPP" && test -d "$CPP"; then
6098 if test -z "$CPP"; then
6099 if test "${ac_cv_prog_CPP+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 # Double quotes because CPP needs to be expanded
6103 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6106 for ac_c_preproc_warn_flag in '' yes
6108 # Use a header file that comes with gcc, so configuring glibc
6109 # with a fresh cross-compiler works.
6110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111 # <limits.h> exists even on freestanding compilers.
6112 # On the NeXT, cc -E runs the code through the compiler's parser,
6113 # not just through cpp. "Syntax error" is here to catch this case.
6114 cat >conftest.$ac_ext <<_ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6121 # include <limits.h>
6123 # include <assert.h>
6127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } >/dev/null; then
6135 if test -s conftest.err; then
6136 ac_cpp_err=$ac_c_preproc_warn_flag
6137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6144 if test -z "$ac_cpp_err"; then
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 # Broken: fails on valid input.
6153 rm -f conftest.err conftest.$ac_ext
6155 # OK, works on sane cases. Now check whether non-existent headers
6156 # can be detected and how.
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <ac_nonexistent.h>
6165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6168 grep -v '^ *+' conftest.er1 >conftest.err
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } >/dev/null; then
6173 if test -s conftest.err; then
6174 ac_cpp_err=$ac_c_preproc_warn_flag
6175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6182 if test -z "$ac_cpp_err"; then
6183 # Broken: success on invalid input.
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 # Passes both tests.
6193 rm -f conftest.err conftest.$ac_ext
6196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6197 rm -f conftest.err conftest.$ac_ext
6198 if $ac_preproc_ok; then
6210 echo "$as_me:$LINENO: result: $CPP" >&5
6211 echo "${ECHO_T}$CPP" >&6
6213 for ac_c_preproc_warn_flag in '' yes
6215 # Use a header file that comes with gcc, so configuring glibc
6216 # with a fresh cross-compiler works.
6217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6218 # <limits.h> exists even on freestanding compilers.
6219 # On the NeXT, cc -E runs the code through the compiler's parser,
6220 # not just through cpp. "Syntax error" is here to catch this case.
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6228 # include <limits.h>
6230 # include <assert.h>
6234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6237 grep -v '^ *+' conftest.er1 >conftest.err
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } >/dev/null; then
6242 if test -s conftest.err; then
6243 ac_cpp_err=$ac_c_preproc_warn_flag
6244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251 if test -z "$ac_cpp_err"; then
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 # Broken: fails on valid input.
6260 rm -f conftest.err conftest.$ac_ext
6262 # OK, works on sane cases. Now check whether non-existent headers
6263 # can be detected and how.
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 #include <ac_nonexistent.h>
6272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6275 grep -v '^ *+' conftest.er1 >conftest.err
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } >/dev/null; then
6280 if test -s conftest.err; then
6281 ac_cpp_err=$ac_c_preproc_warn_flag
6282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6289 if test -z "$ac_cpp_err"; then
6290 # Broken: success on invalid input.
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6296 # Passes both tests.
6300 rm -f conftest.err conftest.$ac_ext
6303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6304 rm -f conftest.err conftest.$ac_ext
6305 if $ac_preproc_ok; then
6308 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6309 See \`config.log' for more details." >&5
6310 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6311 See \`config.log' for more details." >&2;}
6312 { (exit 1); exit 1; }; }
6316 ac_cpp='$CPP $CPPFLAGS'
6317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322 echo "$as_me:$LINENO: checking for egrep" >&5
6323 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6324 if test "${ac_cv_prog_egrep+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6328 then ac_cv_prog_egrep='grep -E'
6329 else ac_cv_prog_egrep='egrep'
6332 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6333 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6334 EGREP=$ac_cv_prog_egrep
6337 cat >conftest.$ac_ext <<_ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "uint32_t" >/dev/null 2>&1; then
6349 cat >>confdefs.h <<\_ACEOF
6350 #define HAVE_INT32_DEFINED 1
6356 cat >conftest.$ac_ext <<_ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362 #include <inttypes.h>
6365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6366 $EGREP "uint32_t" >/dev/null 2>&1; then
6368 cat >>confdefs.h <<\_ACEOF
6369 #define HAVE_INT32_DEFINED 1
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 #include <sys/types.h>
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385 $EGREP "u_int32_t" >/dev/null 2>&1; then
6387 cat >>confdefs.h <<\_ACEOF
6388 #define HAVE_BSD_INT32_DEFINED 1
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 #include <sys/config.h>
6403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6404 $EGREP "u_int32_t" >/dev/null 2>&1; then
6406 cat >>confdefs.h <<\_ACEOF
6407 #define HAVE_BSD_INT32_DEFINED 1
6416 if test "$PLATFORM" = Win32; then
6417 USING_WIN32_PLATFORM_TRUE=
6418 USING_WIN32_PLATFORM_FALSE='#'
6420 USING_WIN32_PLATFORM_TRUE='#'
6421 USING_WIN32_PLATFORM_FALSE=
6426 if test "$PLATFORM" = Posix; then
6427 USING_POSIX_PLATFORM_TRUE=
6428 USING_POSIX_PLATFORM_FALSE='#'
6430 USING_POSIX_PLATFORM_TRUE='#'
6431 USING_POSIX_PLATFORM_FALSE=
6436 if test "$PLATFORM" = Ecos; then
6437 USING_ECOS_PLATFORM_TRUE=
6438 USING_ECOS_PLATFORM_FALSE='#'
6440 USING_ECOS_PLATFORM_TRUE='#'
6441 USING_ECOS_PLATFORM_FALSE=
6446 *-darwin*) DARWIN_CRT=true ;;
6447 *) DARWIN_CRT=false ;;
6451 if $DARWIN_CRT; then
6452 USING_DARWIN_CRT_TRUE=
6453 USING_DARWIN_CRT_FALSE='#'
6455 USING_DARWIN_CRT_TRUE='#'
6456 USING_DARWIN_CRT_FALSE=
6460 # These may not be defined in a non-ANS conformant embedded system.
6461 # FIXME: Should these case a runtime exception in that case?
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6472 $EGREP "mktime" >/dev/null 2>&1; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define HAVE_MKTIME 1
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6491 $EGREP "localtime" >/dev/null 2>&1; then
6493 cat >>confdefs.h <<\_ACEOF
6494 #define HAVE_LOCALTIME 1
6501 # Create the subdirectory for natFile.cc, or the attempt
6502 # to create the link will fail.
6503 test -d java || mkdir java
6504 test -d java/io || mkdir java/io
6505 test -d gnu || mkdir gnu
6506 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6509 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6510 test -d java/lang || mkdir java/lang
6511 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6513 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6516 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6517 test -d java/net || mkdir java/net
6518 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6520 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6523 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6524 test -d gnu/java || mkdir gnu/java
6525 test -d gnu/java/net || mkdir gnu/java/net
6526 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6528 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6531 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6532 test -d gnu/java/nio || mkdir gnu/java/nio
6533 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6535 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6537 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6538 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6543 SYSTEMSPEC="-lgdi32 -lws2_32"
6544 if test "${with_win32_nlsapi}" = "unicows"; then
6545 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6554 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6558 # Check whether --with-system-zlib or --without-system-zlib was given.
6559 if test "${with_system_zlib+set}" = set; then
6560 withval="$with_system_zlib"
6568 echo "$as_me:$LINENO: checking for X" >&5
6569 echo $ECHO_N "checking for X... $ECHO_C" >&6
6572 # Check whether --with-x or --without-x was given.
6573 if test "${with_x+set}" = set; then
6577 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6578 if test "x$with_x" = xno; then
6579 # The user explicitly disabled X.
6582 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6583 # Both variables are already set.
6586 if test "${ac_cv_have_x+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 # One or both of the vars are not set, and there is no cached value.
6590 ac_x_includes=no ac_x_libraries=no
6592 if mkdir conftest.dir; then
6594 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6595 cat >Imakefile <<'_ACEOF'
6597 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6599 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6600 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6601 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6602 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6603 for ac_extension in a so sl; do
6604 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6605 test -f $ac_im_libdir/libX11.$ac_extension; then
6606 ac_im_usrlibdir=$ac_im_libdir; break
6609 # Screen out bogus values from the imake configuration. They are
6610 # bogus both because they are the default anyway, and because
6611 # using them would break gcc on systems where it needs fixed includes.
6612 case $ac_im_incroot in
6614 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6616 case $ac_im_usrlibdir in
6618 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6625 # Standard set of common directories for X headers.
6626 # Check X11 before X11Rn because it is often a symlink to the current release.
6638 /usr/local/X11/include
6639 /usr/local/X11R6/include
6640 /usr/local/X11R5/include
6641 /usr/local/X11R4/include
6643 /usr/local/include/X11
6644 /usr/local/include/X11R6
6645 /usr/local/include/X11R5
6646 /usr/local/include/X11R4
6650 /usr/XFree86/include/X11
6654 /usr/unsupported/include
6656 /usr/local/x11r5/include
6657 /usr/lpp/Xamples/include
6659 /usr/openwin/include
6660 /usr/openwin/share/include'
6662 if test "$ac_x_includes" = no; then
6663 # Guess where to find include files, by looking for Intrinsic.h.
6664 # First, try using that file with no special directory specified.
6665 cat >conftest.$ac_ext <<_ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 #include <X11/Intrinsic.h>
6673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6676 grep -v '^ *+' conftest.er1 >conftest.err
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev/null; then
6681 if test -s conftest.err; then
6682 ac_cpp_err=$ac_c_preproc_warn_flag
6683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6690 if test -z "$ac_cpp_err"; then
6691 # We can compile using X headers with no special include directory.
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6697 for ac_dir in $ac_x_header_dirs; do
6698 if test -r "$ac_dir/X11/Intrinsic.h"; then
6699 ac_x_includes=$ac_dir
6704 rm -f conftest.err conftest.$ac_ext
6705 fi # $ac_x_includes = no
6707 if test "$ac_x_libraries" = no; then
6708 # Check for the libraries.
6709 # See if we find them without any special options.
6710 # Don't add to $LIBS permanently.
6713 if test x$gcc_no_link = xyes; then
6714 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6716 { (exit 1); exit 1; }; }
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <X11/Intrinsic.h>
6733 rm -f conftest.$ac_objext conftest$ac_exeext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6735 (eval $ac_link) 2>conftest.er1
6737 grep -v '^ *+' conftest.er1 >conftest.err
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -z "$ac_c_werror_flag"
6743 || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest$ac_exeext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6756 # We can link X programs with no special library path.
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6763 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6765 # Don't even attempt the hair of trying to link an X program!
6766 for ac_extension in a so sl; do
6767 if test -r $ac_dir/libXt.$ac_extension; then
6768 ac_x_libraries=$ac_dir
6774 rm -f conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6776 fi # $ac_x_libraries = no
6778 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6779 # Didn't find X anywhere. Cache the known absence of X.
6780 ac_cv_have_x="have_x=no"
6782 # Record where we found X for the cache.
6783 ac_cv_have_x="have_x=yes \
6784 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6789 eval "$ac_cv_have_x"
6792 if test "$have_x" != yes; then
6793 echo "$as_me:$LINENO: result: $have_x" >&5
6794 echo "${ECHO_T}$have_x" >&6
6797 # If each of the values was on the command line, it overrides each guess.
6798 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6799 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6800 # Update the cache value to reflect the command line values.
6801 ac_cv_have_x="have_x=yes \
6802 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6803 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6804 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6807 if test "$no_x" = yes; then
6808 # Not all programs may use this symbol, but it does not hurt to define it.
6810 cat >>confdefs.h <<\_ACEOF
6811 #define X_DISPLAY_MISSING 1
6814 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6816 if test -n "$x_includes"; then
6817 X_CFLAGS="$X_CFLAGS -I$x_includes"
6820 # It would also be nice to do this for all -L options, not just this one.
6821 if test -n "$x_libraries"; then
6822 X_LIBS="$X_LIBS -L$x_libraries"
6823 # For Solaris; some versions of Sun CC require a space after -R and
6824 # others require no space. Words are not sufficient . . . .
6825 case `(uname -sr) 2>/dev/null` in
6827 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6828 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6829 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6830 if test x$gcc_no_link = xyes; then
6831 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6833 { (exit 1); exit 1; }; }
6835 cat >conftest.$ac_ext <<_ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6850 rm -f conftest.$ac_objext conftest$ac_exeext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6852 (eval $ac_link) 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -z "$ac_c_werror_flag"
6860 || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } &&
6866 { ac_try='test -s conftest$ac_exeext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6879 rm -f conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6881 if test $ac_R_nospace = yes; then
6882 echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6
6884 X_LIBS="$X_LIBS -R$x_libraries"
6886 LIBS="$ac_xsave_LIBS -R $x_libraries"
6887 if test x$gcc_no_link = xyes; then
6888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6890 { (exit 1); exit 1; }; }
6892 cat >conftest.$ac_ext <<_ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6907 rm -f conftest.$ac_objext conftest$ac_exeext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909 (eval $ac_link) 2>conftest.er1
6911 grep -v '^ *+' conftest.er1 >conftest.err
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest$ac_exeext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6936 rm -f conftest.err conftest.$ac_objext \
6937 conftest$ac_exeext conftest.$ac_ext
6938 if test $ac_R_space = yes; then
6939 echo "$as_me:$LINENO: result: yes" >&5
6940 echo "${ECHO_T}yes" >&6
6941 X_LIBS="$X_LIBS -R $x_libraries"
6943 echo "$as_me:$LINENO: result: neither works" >&5
6944 echo "${ECHO_T}neither works" >&6
6951 # Check for system-dependent libraries X programs must link with.
6952 # Do this before checking for the system-independent R6 libraries
6953 # (-lICE), since we may need -lsocket or whatever for X linking.
6955 if test "$ISC" = yes; then
6956 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6958 # Martyn Johnson says this is needed for Ultrix, if the X
6959 # libraries were built with DECnet support. And Karl Berry says
6960 # the Alpha needs dnet_stub (dnet does not exist).
6961 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6962 if test x$gcc_no_link = xyes; then
6963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6965 { (exit 1); exit 1; }; }
6967 cat >conftest.$ac_ext <<_ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6974 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6980 char XOpenDisplay ();
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7017 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7018 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 ac_check_lib_save_LIBS=$LIBS
7023 if test x$gcc_no_link = xyes; then
7024 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7025 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7026 { (exit 1); exit 1; }; }
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7035 /* Override any gcc2 internal prototype to avoid an error. */
7039 /* We use char because int might match the return type of a gcc2
7040 builtin and then its argument prototype would still apply. */
7050 rm -f conftest.$ac_objext conftest$ac_exeext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052 (eval $ac_link) 2>conftest.er1
7054 grep -v '^ *+' conftest.er1 >conftest.err
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -z "$ac_c_werror_flag"
7060 || test ! -s conftest.err'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; } &&
7066 { ac_try='test -s conftest$ac_exeext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 ac_cv_lib_dnet_dnet_ntoa=yes
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7077 ac_cv_lib_dnet_dnet_ntoa=no
7079 rm -f conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7081 LIBS=$ac_check_lib_save_LIBS
7083 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7084 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7085 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7086 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7089 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7090 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7091 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7092 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 ac_check_lib_save_LIBS=$LIBS
7096 LIBS="-ldnet_stub $LIBS"
7097 if test x$gcc_no_link = xyes; then
7098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7100 { (exit 1); exit 1; }; }
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7109 /* Override any gcc2 internal prototype to avoid an error. */
7113 /* We use char because int might match the return type of a gcc2
7114 builtin and then its argument prototype would still apply. */
7124 rm -f conftest.$ac_objext conftest$ac_exeext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>conftest.er1
7128 grep -v '^ *+' conftest.er1 >conftest.err
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -z "$ac_c_werror_flag"
7134 || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try='test -s conftest$ac_exeext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 ac_cv_lib_dnet_stub_dnet_ntoa=no
7153 rm -f conftest.err conftest.$ac_objext \
7154 conftest$ac_exeext conftest.$ac_ext
7155 LIBS=$ac_check_lib_save_LIBS
7157 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7158 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7159 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7160 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7165 rm -f conftest.err conftest.$ac_objext \
7166 conftest$ac_exeext conftest.$ac_ext
7167 LIBS="$ac_xsave_LIBS"
7169 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7170 # to get the SysV transport functions.
7171 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7173 # The nsl library prevents programs from opening the X display
7174 # on Irix 5.2, according to T.E. Dickey.
7175 # The functions gethostbyname, getservbyname, and inet_addr are
7176 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7177 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7178 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7179 if test "${ac_cv_func_gethostbyname+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 if test x$gcc_no_link = xyes; then
7183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7185 { (exit 1); exit 1; }; }
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7195 #define gethostbyname innocuous_gethostbyname
7197 /* System header to define __stub macros and hopefully few prototypes,
7198 which can conflict with char gethostbyname (); below.
7199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7200 <limits.h> exists even on freestanding compilers. */
7203 # include <limits.h>
7205 # include <assert.h>
7208 #undef gethostbyname
7210 /* Override any gcc2 internal prototype to avoid an error. */
7215 /* We use char because int might match the return type of a gcc2
7216 builtin and then its argument prototype would still apply. */
7217 char gethostbyname ();
7218 /* The GNU C library defines this for functions which it implements
7219 to always fail with ENOSYS. Some functions are actually named
7220 something starting with __ and the normal name is an alias. */
7221 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7224 char (*f) () = gethostbyname;
7233 return f != gethostbyname;
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240 (eval $ac_link) 2>conftest.er1
7242 grep -v '^ *+' conftest.er1 >conftest.err
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -z "$ac_c_werror_flag"
7248 || test ! -s conftest.err'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; } &&
7254 { ac_try='test -s conftest$ac_exeext'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7260 ac_cv_func_gethostbyname=yes
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 ac_cv_func_gethostbyname=no
7267 rm -f conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7270 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7271 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7273 if test $ac_cv_func_gethostbyname = no; then
7274 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7275 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7276 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 ac_check_lib_save_LIBS=$LIBS
7281 if test x$gcc_no_link = xyes; then
7282 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7284 { (exit 1); exit 1; }; }
7286 cat >conftest.$ac_ext <<_ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7293 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7299 char gethostbyname ();
7308 rm -f conftest.$ac_objext conftest$ac_exeext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7310 (eval $ac_link) 2>conftest.er1
7312 grep -v '^ *+' conftest.er1 >conftest.err
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest$ac_exeext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_cv_lib_nsl_gethostbyname=yes
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7335 ac_cv_lib_nsl_gethostbyname=no
7337 rm -f conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
7339 LIBS=$ac_check_lib_save_LIBS
7341 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7342 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7343 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7347 if test $ac_cv_lib_nsl_gethostbyname = no; then
7348 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7349 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7350 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_check_lib_save_LIBS=$LIBS
7355 if test x$gcc_no_link = xyes; then
7356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7358 { (exit 1); exit 1; }; }
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7367 /* Override any gcc2 internal prototype to avoid an error. */
7371 /* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7373 char gethostbyname ();
7382 rm -f conftest.$ac_objext conftest$ac_exeext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384 (eval $ac_link) 2>conftest.er1
7386 grep -v '^ *+' conftest.er1 >conftest.err
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } &&
7391 { ac_try='test -z "$ac_c_werror_flag"
7392 || test ! -s conftest.err'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; } &&
7398 { ac_try='test -s conftest$ac_exeext'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7404 ac_cv_lib_bsd_gethostbyname=yes
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7409 ac_cv_lib_bsd_gethostbyname=no
7411 rm -f conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7413 LIBS=$ac_check_lib_save_LIBS
7415 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7416 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7417 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7418 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7424 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7425 # socket/setsockopt and other routines are undefined under SCO ODT
7426 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7427 # on later versions), says Simon Leinen: it contains gethostby*
7428 # variants that don't use the name server (or something). -lsocket
7429 # must be given before -lnsl if both are needed. We assume that
7430 # if connect needs -lnsl, so does gethostbyname.
7431 echo "$as_me:$LINENO: checking for connect" >&5
7432 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7433 if test "${ac_cv_func_connect+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 if test x$gcc_no_link = xyes; then
7437 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7439 { (exit 1); exit 1; }; }
7441 cat >conftest.$ac_ext <<_ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7449 #define connect innocuous_connect
7451 /* System header to define __stub macros and hopefully few prototypes,
7452 which can conflict with char connect (); below.
7453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454 <limits.h> exists even on freestanding compilers. */
7457 # include <limits.h>
7459 # include <assert.h>
7464 /* Override any gcc2 internal prototype to avoid an error. */
7469 /* We use char because int might match the return type of a gcc2
7470 builtin and then its argument prototype would still apply. */
7472 /* The GNU C library defines this for functions which it implements
7473 to always fail with ENOSYS. Some functions are actually named
7474 something starting with __ and the normal name is an alias. */
7475 #if defined (__stub_connect) || defined (__stub___connect)
7478 char (*f) () = connect;
7487 return f != connect;
7492 rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7494 (eval $ac_link) 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -z "$ac_c_werror_flag"
7502 || test ! -s conftest.err'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; } &&
7508 { ac_try='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 ac_cv_func_connect=yes
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7519 ac_cv_func_connect=no
7521 rm -f conftest.err conftest.$ac_objext \
7522 conftest$ac_exeext conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7525 echo "${ECHO_T}$ac_cv_func_connect" >&6
7527 if test $ac_cv_func_connect = no; then
7528 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7529 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7530 if test "${ac_cv_lib_socket_connect+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 ac_check_lib_save_LIBS=$LIBS
7534 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7535 if test x$gcc_no_link = xyes; then
7536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7538 { (exit 1); exit 1; }; }
7540 cat >conftest.$ac_ext <<_ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7547 /* Override any gcc2 internal prototype to avoid an error. */
7551 /* We use char because int might match the return type of a gcc2
7552 builtin and then its argument prototype would still apply. */
7562 rm -f conftest.$ac_objext conftest$ac_exeext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564 (eval $ac_link) 2>conftest.er1
7566 grep -v '^ *+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -z "$ac_c_werror_flag"
7572 || test ! -s conftest.err'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try='test -s conftest$ac_exeext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584 ac_cv_lib_socket_connect=yes
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 ac_cv_lib_socket_connect=no
7591 rm -f conftest.err conftest.$ac_objext \
7592 conftest$ac_exeext conftest.$ac_ext
7593 LIBS=$ac_check_lib_save_LIBS
7595 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7596 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7597 if test $ac_cv_lib_socket_connect = yes; then
7598 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7603 # Guillermo Gomez says -lposix is necessary on A/UX.
7604 echo "$as_me:$LINENO: checking for remove" >&5
7605 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7606 if test "${ac_cv_func_remove+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 if test x$gcc_no_link = xyes; then
7610 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7612 { (exit 1); exit 1; }; }
7614 cat >conftest.$ac_ext <<_ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7622 #define remove innocuous_remove
7624 /* System header to define __stub macros and hopefully few prototypes,
7625 which can conflict with char remove (); below.
7626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7627 <limits.h> exists even on freestanding compilers. */
7630 # include <limits.h>
7632 # include <assert.h>
7637 /* Override any gcc2 internal prototype to avoid an error. */
7642 /* We use char because int might match the return type of a gcc2
7643 builtin and then its argument prototype would still apply. */
7645 /* The GNU C library defines this for functions which it implements
7646 to always fail with ENOSYS. Some functions are actually named
7647 something starting with __ and the normal name is an alias. */
7648 #if defined (__stub_remove) || defined (__stub___remove)
7651 char (*f) () = remove;
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7667 (eval $ac_link) 2>conftest.er1
7669 grep -v '^ *+' conftest.er1 >conftest.err
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -z "$ac_c_werror_flag"
7675 || test ! -s conftest.err'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try='test -s conftest$ac_exeext'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 ac_cv_func_remove=yes
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 ac_cv_func_remove=no
7694 rm -f conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
7697 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7698 echo "${ECHO_T}$ac_cv_func_remove" >&6
7700 if test $ac_cv_func_remove = no; then
7701 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7702 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7703 if test "${ac_cv_lib_posix_remove+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-lposix $LIBS"
7708 if test x$gcc_no_link = xyes; then
7709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7711 { (exit 1); exit 1; }; }
7713 cat >conftest.$ac_ext <<_ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7720 /* Override any gcc2 internal prototype to avoid an error. */
7724 /* We use char because int might match the return type of a gcc2
7725 builtin and then its argument prototype would still apply. */
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737 (eval $ac_link) 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag"
7745 || test ! -s conftest.err'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_cv_lib_posix_remove=yes
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 ac_cv_lib_posix_remove=no
7764 rm -f conftest.err conftest.$ac_objext \
7765 conftest$ac_exeext conftest.$ac_ext
7766 LIBS=$ac_check_lib_save_LIBS
7768 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7769 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7770 if test $ac_cv_lib_posix_remove = yes; then
7771 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7776 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7777 echo "$as_me:$LINENO: checking for shmat" >&5
7778 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7779 if test "${ac_cv_func_shmat+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 if test x$gcc_no_link = xyes; then
7783 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7785 { (exit 1); exit 1; }; }
7787 cat >conftest.$ac_ext <<_ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7795 #define shmat innocuous_shmat
7797 /* System header to define __stub macros and hopefully few prototypes,
7798 which can conflict with char shmat (); below.
7799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7800 <limits.h> exists even on freestanding compilers. */
7803 # include <limits.h>
7805 # include <assert.h>
7810 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7818 /* The GNU C library defines this for functions which it implements
7819 to always fail with ENOSYS. Some functions are actually named
7820 something starting with __ and the normal name is an alias. */
7821 #if defined (__stub_shmat) || defined (__stub___shmat)
7824 char (*f) () = shmat;
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>conftest.er1
7842 grep -v '^ *+' conftest.er1 >conftest.err
7844 cat conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } &&
7847 { ac_try='test -z "$ac_c_werror_flag"
7848 || test ! -s conftest.err'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_func_shmat=yes
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7867 rm -f conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7870 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7871 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7873 if test $ac_cv_func_shmat = no; then
7874 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7875 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7876 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 ac_check_lib_save_LIBS=$LIBS
7881 if test x$gcc_no_link = xyes; then
7882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7884 { (exit 1); exit 1; }; }
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7893 /* Override any gcc2 internal prototype to avoid an error. */
7897 /* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910 (eval $ac_link) 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -z "$ac_c_werror_flag"
7918 || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest$ac_exeext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_cv_lib_ipc_shmat=yes
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 ac_cv_lib_ipc_shmat=no
7937 rm -f conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939 LIBS=$ac_check_lib_save_LIBS
7941 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7942 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7943 if test $ac_cv_lib_ipc_shmat = yes; then
7944 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7950 # Check for libraries that X11R6 Xt/Xaw programs need.
7951 ac_save_LDFLAGS=$LDFLAGS
7952 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7953 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7954 # check for ICE first), but we must link in the order -lSM -lICE or
7955 # we get undefined symbols. So assume we have SM if we have ICE.
7956 # These have to be linked with before -lX11, unlike the other
7957 # libraries we check for below, so use a different variable.
7958 # John Interrante, Karl Berry
7959 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7960 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7961 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 ac_check_lib_save_LIBS=$LIBS
7965 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7966 if test x$gcc_no_link = xyes; then
7967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7969 { (exit 1); exit 1; }; }
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7978 /* Override any gcc2 internal prototype to avoid an error. */
7982 /* We use char because int might match the return type of a gcc2
7983 builtin and then its argument prototype would still apply. */
7984 char IceConnectionNumber ();
7988 IceConnectionNumber ();
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7995 (eval $ac_link) 2>conftest.er1
7997 grep -v '^ *+' conftest.er1 >conftest.err
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -z "$ac_c_werror_flag"
8003 || test ! -s conftest.err'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; } &&
8009 { ac_try='test -s conftest$ac_exeext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 ac_cv_lib_ICE_IceConnectionNumber=yes
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 ac_cv_lib_ICE_IceConnectionNumber=no
8022 rm -f conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8024 LIBS=$ac_check_lib_save_LIBS
8026 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8027 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8028 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8029 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8032 LDFLAGS=$ac_save_LDFLAGS
8037 # Determine which AWT peer libraries to build
8038 # Check whether --enable-java-awt or --disable-java-awt was given.
8039 if test "${enable_java_awt+set}" = set; then
8040 enableval="$enable_java_awt"
8044 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
8047 # The default toolkit to use is the first one specified.
8051 for peer in $peerlibs ; do
8054 if test "$no_x" = yes; then
8055 echo "*** xlib peers requested but no X library available" 1>&2
8059 if test -z "$TOOLKIT"; then
8060 TOOLKIT=gnu.awt.xlib.XToolkit
8065 if test "$no_x" = yes; then
8066 echo "*** xlib peers requested but no X library available" 1>&2
8070 if test -z "$TOOLKIT"; then
8071 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
8073 test -d jniinclude || mkdir jniinclude
8082 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8089 if test "$use_xlib_awt" = yes; then
8099 if test "$use_gtk_awt" = yes; then
8108 # determine whether to enable the cairo GTK Graphics2D backend
8109 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8110 if test "${enable_gtk_cairo+set}" = set; then
8111 enableval="$enable_gtk_cairo"
8116 if test "x${enable_gtk_cairo}" = xyes; then
8124 if test "x${enable_gtk_cairo}" = xyes
8129 if test -z "$PKG_CONFIG"; then
8130 # Extract the first word of "pkg-config", so it can be a program name with args.
8131 set dummy pkg-config; ac_word=$2
8132 echo "$as_me:$LINENO: checking for $ac_word" >&5
8133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8134 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8160 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8162 if test -n "$PKG_CONFIG"; then
8163 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8164 echo "${ECHO_T}$PKG_CONFIG" >&6
8166 echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8172 if test "$PKG_CONFIG" = "no" ; then
8173 echo "*** The pkg-config script could not be found. Make sure it is"
8174 echo "*** in your path, or set the PKG_CONFIG environment variable"
8175 echo "*** to the full path to pkg-config."
8176 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8178 PKG_CONFIG_MIN_VERSION=0.9.0
8179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8180 echo "$as_me:$LINENO: checking for cairo" >&5
8181 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8183 if $PKG_CONFIG --exists "cairo" ; then
8184 echo "$as_me:$LINENO: result: yes" >&5
8185 echo "${ECHO_T}yes" >&6
8188 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8189 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8190 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8191 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8192 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8194 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8195 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8196 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8197 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8198 echo "${ECHO_T}$CAIRO_LIBS" >&6
8202 ## If we have a custom action on failure, don't print errors, but
8203 ## do set a variable so people can do so.
8204 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8205 echo $CAIRO_PKG_ERRORS
8211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8216 if test $succeeded = yes; then
8219 { { 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
8220 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;}
8221 { (exit 1); exit 1; }; }
8227 if test -z "$PKG_CONFIG"; then
8228 # Extract the first word of "pkg-config", so it can be a program name with args.
8229 set dummy pkg-config; ac_word=$2
8230 echo "$as_me:$LINENO: checking for $ac_word" >&5
8231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8232 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8254 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8258 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8260 if test -n "$PKG_CONFIG"; then
8261 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8262 echo "${ECHO_T}$PKG_CONFIG" >&6
8264 echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6
8270 if test "$PKG_CONFIG" = "no" ; then
8271 echo "*** The pkg-config script could not be found. Make sure it is"
8272 echo "*** in your path, or set the PKG_CONFIG environment variable"
8273 echo "*** to the full path to pkg-config."
8274 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8276 PKG_CONFIG_MIN_VERSION=0.9.0
8277 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8278 echo "$as_me:$LINENO: checking for pangoft2" >&5
8279 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8281 if $PKG_CONFIG --exists "pangoft2" ; then
8282 echo "$as_me:$LINENO: result: yes" >&5
8283 echo "${ECHO_T}yes" >&6
8286 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8287 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8288 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8289 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8290 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8292 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8293 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8294 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8295 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8296 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8300 ## If we have a custom action on failure, don't print errors, but
8301 ## do set a variable so people can do so.
8302 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8303 echo $PANGOFT2_PKG_ERRORS
8309 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8310 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8314 if test $succeeded = yes; then
8317 { { 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
8318 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;}
8319 { (exit 1); exit 1; }; }
8328 # FIXME: this should be _libs on some hosts.
8331 # Allow the GC to be disabled. Can be useful when debugging.
8332 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8333 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8334 # Check whether --enable-java-gc or --disable-java-gc was given.
8335 if test "${enable_java_gc+set}" = set; then
8336 enableval="$enable_java_gc"
8349 echo "$as_me:$LINENO: result: boehm" >&5
8350 echo "${ECHO_T}boehm" >&6
8351 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8352 JC1GCSPEC='-fuse-boehm-gc'
8353 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8354 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8357 # The POSIX thread support needs to know this.
8359 cat >>confdefs.h <<\_ACEOF
8360 #define HAVE_BOEHM_GC 1
8365 echo "$as_me:$LINENO: result: none" >&5
8366 echo "${ECHO_T}none" >&6
8370 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8371 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8372 { (exit 1); exit 1; }; }
8381 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8385 if test "$GC" = boehm; then
8387 USING_BOEHMGC_FALSE='#'
8389 USING_BOEHMGC_TRUE='#'
8390 USING_BOEHMGC_FALSE=
8395 if test "$GC" = no; then
8397 USING_NOGC_FALSE='#'
8405 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8406 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8407 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8408 echo "$as_me:$LINENO: result: $THREADS" >&5
8409 echo "${ECHO_T}$THREADS" >&6
8415 posix | posix95 | pthreads)
8420 cat >>confdefs.h <<\_ACEOF
8421 #define LINUX_THREADS 1
8429 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8430 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8431 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8432 { (exit 1); exit 1; }; }
8435 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8436 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8437 { (exit 1); exit 1; }; }
8452 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8455 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8456 # merely adds pthread_* functions) but it does have a -pthread switch
8457 # which is required at link-time to select -lc_r *instead* of -lc.
8458 THREADLDFLAGS=-pthread
8459 # Don't set THREADSPEC here as might be expected since -pthread is
8460 # not processed when found within a spec file, it must come from
8461 # the command line. For now, the user must provide the -pthread
8462 # switch to link code compiled with gcj. In future, consider adding
8463 # support for weak references to pthread_* functions ala gthr.h API.
8464 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8467 # FreeBSD 5 implements a model much closer to other modern UNIX
8468 # which support threads. However, it still does not support
8470 THREADLDFLAGS=-pthread
8474 THREADCXXFLAGS=-pthread
8475 # boehm-gc needs some functions from librt, so link that too.
8476 THREADLIBS='-lpthread -lrt'
8477 THREADSPEC='-lpthread -lrt'
8480 THREADLIBS=-lpthread
8481 THREADSPEC=-lpthread
8484 THREADH=posix-threads.h
8485 # MIT pthreads doesn't seem to have the mutexattr functions.
8486 # But for now we don't check for it. We just assume you aren't
8487 # using MIT pthreads.
8489 cat >>confdefs.h <<\_ACEOF
8490 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8494 # If we're using the Boehm GC, then we happen to know that it
8495 # defines _REENTRANT, so we don't bother. Eww.
8496 if test "$GC" != boehm; then
8498 cat >>confdefs.h <<\_ACEOF
8499 #define _REENTRANT 1
8504 cat >>confdefs.h <<\_ACEOF
8505 #define _POSIX_PTHREAD_SEMANTICS 1
8511 THREADH=win32-threads.h
8515 THREADH=no-threads.h
8518 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8528 if test "$THREADS" = posix; then
8529 USING_POSIX_THREADS_TRUE=
8530 USING_POSIX_THREADS_FALSE='#'
8532 USING_POSIX_THREADS_TRUE='#'
8533 USING_POSIX_THREADS_FALSE=
8538 if test "$THREADS" = win32; then
8539 USING_WIN32_THREADS_TRUE=
8540 USING_WIN32_THREADS_FALSE='#'
8542 USING_WIN32_THREADS_TRUE='#'
8543 USING_WIN32_THREADS_FALSE=
8548 if test "$THREADS" = none; then
8549 USING_NO_THREADS_TRUE=
8550 USING_NO_THREADS_FALSE='#'
8552 USING_NO_THREADS_TRUE='#'
8553 USING_NO_THREADS_FALSE=
8557 if test -d sysdep; then true; else mkdir sysdep; fi
8558 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8560 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8564 # Hash synchronization is only useful with posix threads right now.
8565 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8566 HASH_SYNC_SPEC=-fhash-synchronization
8568 cat >>confdefs.h <<\_ACEOF
8569 #define JV_HASH_SYNCHRONIZATION 1
8577 if test "$GCC" = yes; then
8586 # We're in the tree with gcc, and need to include some of its headers.
8587 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8589 if test "x${with_newlib}" = "xyes"; then
8590 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8591 # may not work correctly, because the compiler may not be able to
8594 # We assume newlib. This lets us hard-code the functions we know
8597 cat >>confdefs.h <<\_ACEOF
8598 #define HAVE_MEMMOVE 1
8602 cat >>confdefs.h <<\_ACEOF
8603 #define HAVE_MEMCPY 1
8607 cat >>confdefs.h <<\_ACEOF
8608 #define HAVE_STRERROR 1
8612 cat >>confdefs.h <<\_ACEOF
8617 cat >>confdefs.h <<\_ACEOF
8618 #define HAVE_GMTIME_R 1
8622 cat >>confdefs.h <<\_ACEOF
8623 #define HAVE_LOCALTIME_R 1
8627 cat >>confdefs.h <<\_ACEOF
8628 #define HAVE_USLEEP_DECL 1
8631 # This is only for POSIX threads.
8633 cat >>confdefs.h <<\_ACEOF
8634 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8637 # We also assume we are using gcc, which provides alloca.
8638 cat >>confdefs.h <<\_ACEOF
8639 #define HAVE_ALLOCA 1
8643 # Assume we do not have getuid and friends.
8645 cat >>confdefs.h <<\_ACEOF
8683 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8684 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8685 access stat mkdir rename rmdir unlink realpath utime chmod \
8686 nl_langinfo setlocale \
8687 inet_pton uname inet_ntoa \
8688 fork execvp pipe sigaction ftruncate
8690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8691 echo "$as_me:$LINENO: checking for $ac_func" >&5
8692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8693 if eval "test \"\${$as_ac_var+set}\" = set"; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 if test x$gcc_no_link = xyes; then
8697 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8698 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8699 { (exit 1); exit 1; }; }
8701 cat >conftest.$ac_ext <<_ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8709 #define $ac_func innocuous_$ac_func
8711 /* System header to define __stub macros and hopefully few prototypes,
8712 which can conflict with char $ac_func (); below.
8713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8714 <limits.h> exists even on freestanding compilers. */
8717 # include <limits.h>
8719 # include <assert.h>
8724 /* Override any gcc2 internal prototype to avoid an error. */
8729 /* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8732 /* The GNU C library defines this for functions which it implements
8733 to always fail with ENOSYS. Some functions are actually named
8734 something starting with __ and the normal name is an alias. */
8735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8738 char (*f) () = $ac_func;
8747 return f != $ac_func;
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754 (eval $ac_link) 2>conftest.er1
8756 grep -v '^ *+' conftest.er1 >conftest.err
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 eval "$as_ac_var=yes"
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8779 eval "$as_ac_var=no"
8781 rm -f conftest.err conftest.$ac_objext \
8782 conftest$ac_exeext conftest.$ac_ext
8784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8786 if test `eval echo '${'$as_ac_var'}'` = yes; then
8787 cat >>confdefs.h <<_ACEOF
8788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8796 for ac_func in inet_aton inet_addr
8798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8799 echo "$as_me:$LINENO: checking for $ac_func" >&5
8800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8801 if eval "test \"\${$as_ac_var+set}\" = set"; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 if test x$gcc_no_link = xyes; then
8805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8807 { (exit 1); exit 1; }; }
8809 cat >conftest.$ac_ext <<_ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8817 #define $ac_func innocuous_$ac_func
8819 /* System header to define __stub macros and hopefully few prototypes,
8820 which can conflict with char $ac_func (); below.
8821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822 <limits.h> exists even on freestanding compilers. */
8825 # include <limits.h>
8827 # include <assert.h>
8832 /* Override any gcc2 internal prototype to avoid an error. */
8837 /* We use char because int might match the return type of a gcc2
8838 builtin and then its argument prototype would still apply. */
8840 /* The GNU C library defines this for functions which it implements
8841 to always fail with ENOSYS. Some functions are actually named
8842 something starting with __ and the normal name is an alias. */
8843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8846 char (*f) () = $ac_func;
8855 return f != $ac_func;
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862 (eval $ac_link) 2>conftest.er1
8864 grep -v '^ *+' conftest.er1 >conftest.err
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag"
8870 || test ! -s conftest.err'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try='test -s conftest$ac_exeext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 eval "$as_ac_var=yes"
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8887 eval "$as_ac_var=no"
8889 rm -f conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8894 if test `eval echo '${'$as_ac_var'}'` = yes; then
8895 cat >>confdefs.h <<_ACEOF
8896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8902 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8904 if test "${ac_cv_header_stdc+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8926 rm -f conftest.$ac_objext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8928 (eval $ac_compile) 2>conftest.er1
8930 grep -v '^ *+' conftest.er1 >conftest.err
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -z "$ac_c_werror_flag"
8936 || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest.$ac_objext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_header_stdc=yes
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8953 ac_cv_header_stdc=no
8955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8957 if test $ac_cv_header_stdc = yes; then
8958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8969 $EGREP "memchr" >/dev/null 2>&1; then
8972 ac_cv_header_stdc=no
8978 if test $ac_cv_header_stdc = yes; then
8979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8980 cat >conftest.$ac_ext <<_ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8990 $EGREP "free" >/dev/null 2>&1; then
8993 ac_cv_header_stdc=no
8999 if test $ac_cv_header_stdc = yes; then
9000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9001 if test "$cross_compiling" = yes; then
9004 cat >conftest.$ac_ext <<_ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9011 #if ((' ' & 0x0FF) == 0x020)
9012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9015 # define ISLOWER(c) \
9016 (('a' <= (c) && (c) <= 'i') \
9017 || ('j' <= (c) && (c) <= 'r') \
9018 || ('s' <= (c) && (c) <= 'z'))
9019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9027 for (i = 0; i < 256; i++)
9028 if (XOR (islower (i), ISLOWER (i))
9029 || toupper (i) != TOUPPER (i))
9034 rm -f conftest$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9047 echo "$as_me: program exited with status $ac_status" >&5
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_cv_header_stdc=no
9054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9059 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9060 if test $ac_cv_header_stdc = yes; then
9062 cat >>confdefs.h <<\_ACEOF
9063 #define STDC_HEADERS 1
9068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9078 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9079 inttypes.h stdint.h unistd.h
9081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9082 echo "$as_me:$LINENO: checking for $ac_header" >&5
9083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 cat >conftest.$ac_ext <<_ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093 $ac_includes_default
9095 #include <$ac_header>
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>conftest.er1
9101 grep -v '^ *+' conftest.er1 >conftest.err
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag"
9107 || test ! -s conftest.err'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 eval "$as_ac_Header=yes"
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 eval "$as_ac_Header=no"
9126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9131 cat >>confdefs.h <<_ACEOF
9132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9143 for ac_header in execinfo.h unistd.h dlfcn.h
9145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9147 echo "$as_me:$LINENO: checking for $ac_header" >&5
9148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9155 # Is the header compilable?
9156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 $ac_includes_default
9165 #include <$ac_header>
9167 rm -f conftest.$ac_objext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9169 (eval $ac_compile) 2>conftest.er1
9171 grep -v '^ *+' conftest.er1 >conftest.err
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -z "$ac_c_werror_flag"
9177 || test ! -s conftest.err'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try='test -s conftest.$ac_objext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 ac_header_compiler=yes
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_header_compiler=no
9196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9198 echo "${ECHO_T}$ac_header_compiler" >&6
9200 # Is the header present?
9201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 #include <$ac_header>
9211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9214 grep -v '^ *+' conftest.er1 >conftest.err
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } >/dev/null; then
9219 if test -s conftest.err; then
9220 ac_cpp_err=$ac_c_preproc_warn_flag
9221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9228 if test -z "$ac_cpp_err"; then
9229 ac_header_preproc=yes
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_header_preproc=no
9236 rm -f conftest.err conftest.$ac_ext
9237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9238 echo "${ECHO_T}$ac_header_preproc" >&6
9240 # So? What about this header?
9241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9247 ac_header_preproc=yes
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9264 ## ---------------------------------- ##
9265 ## Report this to the libjava lists. ##
9266 ## ---------------------------------- ##
9269 sed "s/^/$as_me: WARNING: /" >&2
9272 echo "$as_me:$LINENO: checking for $ac_header" >&5
9273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 eval "$as_ac_Header=\$ac_header_preproc"
9279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9284 cat >>confdefs.h <<_ACEOF
9285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9292 echo "$as_me:$LINENO: checking for backtrace" >&5
9293 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9294 if test "${ac_cv_func_backtrace+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 if test x$gcc_no_link = xyes; then
9298 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9300 { (exit 1); exit 1; }; }
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9310 #define backtrace innocuous_backtrace
9312 /* System header to define __stub macros and hopefully few prototypes,
9313 which can conflict with char backtrace (); below.
9314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9315 <limits.h> exists even on freestanding compilers. */
9318 # include <limits.h>
9320 # include <assert.h>
9325 /* Override any gcc2 internal prototype to avoid an error. */
9330 /* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9333 /* The GNU C library defines this for functions which it implements
9334 to always fail with ENOSYS. Some functions are actually named
9335 something starting with __ and the normal name is an alias. */
9336 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9339 char (*f) () = backtrace;
9348 return f != backtrace;
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355 (eval $ac_link) 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } &&
9362 { ac_try='test -z "$ac_c_werror_flag"
9363 || test ! -s conftest.err'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest$ac_exeext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 ac_cv_func_backtrace=yes
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_cv_func_backtrace=no
9382 rm -f conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9385 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9386 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9387 if test $ac_cv_func_backtrace = yes; then
9391 # Has broken backtrace()
9394 # Has broken backtrace(), but we supply our own.
9395 if test -d sysdep; then true; else mkdir -p sysdep; fi
9396 supply_backtrace=yes
9398 cat >>confdefs.h <<\_ACEOF
9399 #define HAVE_BACKTRACE 1
9405 cat >>confdefs.h <<\_ACEOF
9406 #define HAVE_BACKTRACE 1
9416 # Has backtrace() defined in libgcj itself
9418 cat >>confdefs.h <<\_ACEOF
9419 #define HAVE_BACKTRACE 1
9428 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9429 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9430 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 ac_check_lib_save_LIBS=$LIBS
9435 if test x$gcc_no_link = xyes; then
9436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9438 { (exit 1); exit 1; }; }
9440 cat >conftest.$ac_ext <<_ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9447 /* Override any gcc2 internal prototype to avoid an error. */
9451 /* We use char because int might match the return type of a gcc2
9452 builtin and then its argument prototype would still apply. */
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9466 grep -v '^ *+' conftest.er1 >conftest.err
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag"
9472 || test ! -s conftest.err'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; } &&
9478 { ac_try='test -s conftest$ac_exeext'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_lib_dl_dladdr=yes
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9489 ac_cv_lib_dl_dladdr=no
9491 rm -f conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493 LIBS=$ac_check_lib_save_LIBS
9495 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9496 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9497 if test $ac_cv_lib_dl_dladdr = yes; then
9499 if test "x${disable_dladdr}" = "xyes"; then
9504 cat >>confdefs.h <<\_ACEOF
9505 #define HAVE_DLADDR 1
9512 if test x"$build" = x"$host"; then
9513 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9514 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9515 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 test "$cross_compiling" = yes &&
9519 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9520 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9521 { (exit 1); exit 1; }; }
9522 if test -r "/proc/self/exe"; then
9523 ac_cv_file__proc_self_exe=yes
9525 ac_cv_file__proc_self_exe=no
9528 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9529 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9530 if test $ac_cv_file__proc_self_exe = yes; then
9532 cat >>confdefs.h <<_ACEOF
9533 #define HAVE__PROC_SELF_EXE 1
9538 cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_PROC_SELF_EXE 1
9548 cat >>confdefs.h <<\_ACEOF
9549 #define HAVE_PROC_SELF_EXE 1
9557 if test "X$prefix" = "XNONE"; then
9558 acl_final_prefix="$ac_default_prefix"
9560 acl_final_prefix="$prefix"
9562 if test "X$exec_prefix" = "XNONE"; then
9563 acl_final_exec_prefix='${prefix}'
9565 acl_final_exec_prefix="$exec_prefix"
9567 acl_save_prefix="$prefix"
9568 prefix="$acl_final_prefix"
9569 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9570 prefix="$acl_save_prefix"
9573 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9574 if test "${with_gnu_ld+set}" = set; then
9575 withval="$with_gnu_ld"
9576 test "$withval" = no || with_gnu_ld=yes
9580 # Prepare PATH_SEPARATOR.
9581 # The user is always right.
9582 if test "${PATH_SEPARATOR+set}" != set; then
9583 echo "#! /bin/sh" >conf$$.sh
9584 echo "exit 0" >>conf$$.sh
9586 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9594 if test "$GCC" = yes; then
9595 # Check if gcc -print-prog-name=ld gives a path.
9596 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9597 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9600 # gcc leaves a trailing carriage return which upsets mingw
9601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9606 # Accept absolute paths.
9607 [\\/]* | [A-Za-z]:[\\/]*)
9608 re_direlt='/[^/][^/]*/\.\./'
9609 # Canonicalize the path of ld
9610 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9611 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9612 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9614 test -z "$LD" && LD="$ac_prog"
9617 # If it fails, then pretend we aren't using GCC.
9621 # If it is relative, then search for the first ld in PATH.
9625 elif test "$with_gnu_ld" = yes; then
9626 echo "$as_me:$LINENO: checking for GNU ld" >&5
9627 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9629 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9630 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9632 if test "${acl_cv_path_LD+set}" = set; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 if test -z "$LD"; then
9636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9637 for ac_dir in $PATH; do
9638 test -z "$ac_dir" && ac_dir=.
9639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9640 acl_cv_path_LD="$ac_dir/$ac_prog"
9641 # Check to see if the program is GNU ld. I'd rather use --version,
9642 # but apparently some GNU ld's only accept -v.
9643 # Break only if it was the GNU/non-GNU ld that we prefer.
9644 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9645 test "$with_gnu_ld" != no && break
9647 test "$with_gnu_ld" != yes && break
9653 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9657 LD="$acl_cv_path_LD"
9658 if test -n "$LD"; then
9659 echo "$as_me:$LINENO: result: $LD" >&5
9660 echo "${ECHO_T}$LD" >&6
9662 echo "$as_me:$LINENO: result: no" >&5
9663 echo "${ECHO_T}no" >&6
9665 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9666 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9667 { (exit 1); exit 1; }; }
9668 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9669 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9670 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9674 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9675 acl_cv_prog_gnu_ld=yes
9677 acl_cv_prog_gnu_ld=no
9680 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9681 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9682 with_gnu_ld=$acl_cv_prog_gnu_ld
9686 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9687 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9688 if test "${acl_cv_rpath+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9693 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9699 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9700 echo "${ECHO_T}$acl_cv_rpath" >&6
9702 libext="$acl_cv_libext"
9703 shlibext="$acl_cv_shlibext"
9704 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9705 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9706 hardcode_direct="$acl_cv_hardcode_direct"
9707 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9708 # Check whether --enable-rpath or --disable-rpath was given.
9709 if test "${enable_rpath+set}" = set; then
9710 enableval="$enable_rpath"
9724 acl_save_prefix="$prefix"
9725 prefix="$acl_final_prefix"
9726 acl_save_exec_prefix="$exec_prefix"
9727 exec_prefix="$acl_final_exec_prefix"
9729 eval additional_includedir=\"$includedir\"
9730 eval additional_libdir=\"$libdir\"
9732 exec_prefix="$acl_save_exec_prefix"
9733 prefix="$acl_save_prefix"
9736 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9737 if test "${with_libiconv_prefix+set}" = set; then
9738 withval="$with_libiconv_prefix"
9740 if test "X$withval" = "Xno"; then
9743 if test "X$withval" = "X"; then
9745 acl_save_prefix="$prefix"
9746 prefix="$acl_final_prefix"
9747 acl_save_exec_prefix="$exec_prefix"
9748 exec_prefix="$acl_final_exec_prefix"
9750 eval additional_includedir=\"$includedir\"
9751 eval additional_libdir=\"$libdir\"
9753 exec_prefix="$acl_save_exec_prefix"
9754 prefix="$acl_save_prefix"
9757 additional_includedir="$withval/include"
9758 additional_libdir="$withval/lib"
9768 names_already_handled=
9769 names_next_round='iconv '
9770 while test -n "$names_next_round"; do
9771 names_this_round="$names_next_round"
9773 for name in $names_this_round; do
9775 for n in $names_already_handled; do
9776 if test "$n" = "$name"; then
9781 if test -z "$already_handled"; then
9782 names_already_handled="$names_already_handled $name"
9783 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9784 eval value=\"\$HAVE_LIB$uppername\"
9785 if test -n "$value"; then
9786 if test "$value" = yes; then
9787 eval value=\"\$LIB$uppername\"
9788 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9789 eval value=\"\$LTLIB$uppername\"
9790 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9799 if test $use_additional = yes; then
9800 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9801 found_dir="$additional_libdir"
9802 found_so="$additional_libdir/lib$name.$shlibext"
9803 if test -f "$additional_libdir/lib$name.la"; then
9804 found_la="$additional_libdir/lib$name.la"
9807 if test -f "$additional_libdir/lib$name.$libext"; then
9808 found_dir="$additional_libdir"
9809 found_a="$additional_libdir/lib$name.$libext"
9810 if test -f "$additional_libdir/lib$name.la"; then
9811 found_la="$additional_libdir/lib$name.la"
9816 if test "X$found_dir" = "X"; then
9817 for x in $LDFLAGS $LTLIBICONV; do
9819 acl_save_prefix="$prefix"
9820 prefix="$acl_final_prefix"
9821 acl_save_exec_prefix="$exec_prefix"
9822 exec_prefix="$acl_final_exec_prefix"
9824 exec_prefix="$acl_save_exec_prefix"
9825 prefix="$acl_save_prefix"
9829 dir=`echo "X$x" | sed -e 's/^X-L//'`
9830 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9832 found_so="$dir/lib$name.$shlibext"
9833 if test -f "$dir/lib$name.la"; then
9834 found_la="$dir/lib$name.la"
9837 if test -f "$dir/lib$name.$libext"; then
9839 found_a="$dir/lib$name.$libext"
9840 if test -f "$dir/lib$name.la"; then
9841 found_la="$dir/lib$name.la"
9847 if test "X$found_dir" != "X"; then
9852 if test "X$found_dir" != "X"; then
9853 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9854 if test "X$found_so" != "X"; then
9855 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9859 for x in $ltrpathdirs; do
9860 if test "X$x" = "X$found_dir"; then
9865 if test -z "$haveit"; then
9866 ltrpathdirs="$ltrpathdirs $found_dir"
9868 if test "$hardcode_direct" = yes; then
9869 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9871 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9872 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9874 for x in $rpathdirs; do
9875 if test "X$x" = "X$found_dir"; then
9880 if test -z "$haveit"; then
9881 rpathdirs="$rpathdirs $found_dir"
9885 for x in $LDFLAGS $LIBICONV; do
9887 acl_save_prefix="$prefix"
9888 prefix="$acl_final_prefix"
9889 acl_save_exec_prefix="$exec_prefix"
9890 exec_prefix="$acl_final_exec_prefix"
9892 exec_prefix="$acl_save_exec_prefix"
9893 prefix="$acl_save_prefix"
9895 if test "X$x" = "X-L$found_dir"; then
9900 if test -z "$haveit"; then
9901 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9903 if test "$hardcode_minus_L" != no; then
9904 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9906 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9912 if test "X$found_a" != "X"; then
9913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9918 additional_includedir=
9919 case "$found_dir" in
9921 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9922 additional_includedir="$basedir/include"
9925 if test "X$additional_includedir" != "X"; then
9926 if test "X$additional_includedir" != "X/usr/include"; then
9928 if test "X$additional_includedir" = "X/usr/local/include"; then
9929 if test -n "$GCC"; then
9931 linux*) haveit=yes;;
9935 if test -z "$haveit"; then
9936 for x in $CPPFLAGS $INCICONV; do
9938 acl_save_prefix="$prefix"
9939 prefix="$acl_final_prefix"
9940 acl_save_exec_prefix="$exec_prefix"
9941 exec_prefix="$acl_final_exec_prefix"
9943 exec_prefix="$acl_save_exec_prefix"
9944 prefix="$acl_save_prefix"
9946 if test "X$x" = "X-I$additional_includedir"; then
9951 if test -z "$haveit"; then
9952 if test -d "$additional_includedir"; then
9953 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9959 if test -n "$found_la"; then
9960 save_libdir="$libdir"
9962 */* | *\\*) . "$found_la" ;;
9963 *) . "./$found_la" ;;
9965 libdir="$save_libdir"
9966 for dep in $dependency_libs; do
9969 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9970 if test "X$additional_libdir" != "X/usr/lib"; then
9972 if test "X$additional_libdir" = "X/usr/local/lib"; then
9973 if test -n "$GCC"; then
9975 linux*) haveit=yes;;
9979 if test -z "$haveit"; then
9981 for x in $LDFLAGS $LIBICONV; do
9983 acl_save_prefix="$prefix"
9984 prefix="$acl_final_prefix"
9985 acl_save_exec_prefix="$exec_prefix"
9986 exec_prefix="$acl_final_exec_prefix"
9988 exec_prefix="$acl_save_exec_prefix"
9989 prefix="$acl_save_prefix"
9991 if test "X$x" = "X-L$additional_libdir"; then
9996 if test -z "$haveit"; then
9997 if test -d "$additional_libdir"; then
9998 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10002 for x in $LDFLAGS $LTLIBICONV; do
10004 acl_save_prefix="$prefix"
10005 prefix="$acl_final_prefix"
10006 acl_save_exec_prefix="$exec_prefix"
10007 exec_prefix="$acl_final_exec_prefix"
10009 exec_prefix="$acl_save_exec_prefix"
10010 prefix="$acl_save_prefix"
10012 if test "X$x" = "X-L$additional_libdir"; then
10017 if test -z "$haveit"; then
10018 if test -d "$additional_libdir"; then
10019 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10026 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10027 if test "$enable_rpath" != no; then
10029 for x in $rpathdirs; do
10030 if test "X$x" = "X$dir"; then
10035 if test -z "$haveit"; then
10036 rpathdirs="$rpathdirs $dir"
10039 for x in $ltrpathdirs; do
10040 if test "X$x" = "X$dir"; then
10045 if test -z "$haveit"; then
10046 ltrpathdirs="$ltrpathdirs $dir"
10051 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10054 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10057 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10064 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10071 if test "X$rpathdirs" != "X"; then
10072 if test -n "$hardcode_libdir_separator"; then
10074 for found_dir in $rpathdirs; do
10075 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10077 acl_save_libdir="$libdir"
10079 eval flag=\"$hardcode_libdir_flag_spec\"
10080 libdir="$acl_save_libdir"
10081 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10083 for found_dir in $rpathdirs; do
10084 acl_save_libdir="$libdir"
10085 libdir="$found_dir"
10086 eval flag=\"$hardcode_libdir_flag_spec\"
10087 libdir="$acl_save_libdir"
10088 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10092 if test "X$ltrpathdirs" != "X"; then
10093 for found_dir in $ltrpathdirs; do
10094 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10104 am_save_CPPFLAGS="$CPPFLAGS"
10106 for element in $INCICONV; do
10108 for x in $CPPFLAGS; do
10110 acl_save_prefix="$prefix"
10111 prefix="$acl_final_prefix"
10112 acl_save_exec_prefix="$exec_prefix"
10113 exec_prefix="$acl_final_exec_prefix"
10115 exec_prefix="$acl_save_exec_prefix"
10116 prefix="$acl_save_prefix"
10118 if test "X$x" = "X$element"; then
10123 if test -z "$haveit"; then
10124 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10129 echo "$as_me:$LINENO: checking for iconv" >&5
10130 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10131 if test "${am_cv_func_iconv+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 am_cv_func_iconv="no, consider installing GNU libiconv"
10137 if test x$gcc_no_link = xyes; then
10138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10140 { (exit 1); exit 1; }; }
10142 cat >conftest.$ac_ext <<_ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <stdlib.h>
10153 iconv_t cd = iconv_open("","");
10154 iconv(cd,NULL,NULL,NULL,NULL);
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162 (eval $ac_link) 2>conftest.er1
10164 grep -v '^ *+' conftest.er1 >conftest.err
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag"
10170 || test ! -s conftest.err'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 am_cv_func_iconv=yes
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10188 rm -f conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 if test "$am_cv_func_iconv" != yes; then
10191 am_save_LIBS="$LIBS"
10192 LIBS="$LIBS $LIBICONV"
10193 if test x$gcc_no_link = xyes; then
10194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10196 { (exit 1); exit 1; }; }
10198 cat >conftest.$ac_ext <<_ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #include <stdlib.h>
10209 iconv_t cd = iconv_open("","");
10210 iconv(cd,NULL,NULL,NULL,NULL);
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>conftest.er1
10220 grep -v '^ *+' conftest.er1 >conftest.err
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag"
10226 || test ! -s conftest.err'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try='test -s conftest$ac_exeext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 am_cv_lib_iconv=yes
10239 am_cv_func_iconv=yes
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10245 rm -f conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LIBS="$am_save_LIBS"
10251 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10252 echo "${ECHO_T}$am_cv_func_iconv" >&6
10253 if test "$am_cv_func_iconv" = yes; then
10255 cat >>confdefs.h <<\_ACEOF
10256 #define HAVE_ICONV 1
10260 if test "$am_cv_lib_iconv" = yes; then
10261 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10262 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10263 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10264 echo "${ECHO_T}$LIBICONV" >&6
10266 CPPFLAGS="$am_save_CPPFLAGS"
10273 if test "$am_cv_func_iconv" = yes; then
10274 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10275 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10276 if test "${am_cv_proto_iconv+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 cat >conftest.$ac_ext <<_ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10287 #include <stdlib.h>
10293 #if defined(__STDC__) || defined(__cplusplus)
10294 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10307 rm -f conftest.$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>conftest.er1
10311 grep -v '^ *+' conftest.er1 >conftest.err
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 am_cv_proto_iconv_arg1=""
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 am_cv_proto_iconv_arg1="const"
10336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10337 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);"
10340 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10341 echo "$as_me:$LINENO: result: ${ac_t:-
10342 }$am_cv_proto_iconv" >&5
10343 echo "${ECHO_T}${ac_t:-
10344 }$am_cv_proto_iconv" >&6
10346 cat >>confdefs.h <<_ACEOF
10347 #define ICONV_CONST $am_cv_proto_iconv_arg1
10353 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10354 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10355 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 if test x$gcc_no_link = xyes; then
10359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10361 { (exit 1); exit 1; }; }
10363 cat >conftest.$ac_ext <<_ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 #include <locale.h>
10378 rm -f conftest.$ac_objext conftest$ac_exeext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag"
10388 || test ! -s conftest.err'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; } &&
10394 { ac_try='test -s conftest$ac_exeext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 am_cv_val_LC_MESSAGES=yes
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10405 am_cv_val_LC_MESSAGES=no
10407 rm -f conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10410 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10411 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10412 if test $am_cv_val_LC_MESSAGES = yes; then
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_LC_MESSAGES 1
10420 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10421 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10422 if test "${ac_cv_struct_tm+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 cat >conftest.$ac_ext <<_ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 #include <sys/types.h>
10437 struct tm *tp; tp->tm_sec;
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_cv_struct_tm=time.h
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_cv_struct_tm=sys/time.h
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10473 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10474 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10475 if test $ac_cv_struct_tm = sys/time.h; then
10477 cat >>confdefs.h <<\_ACEOF
10478 #define TM_IN_SYS_TIME 1
10483 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10484 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10485 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <sys/types.h>
10495 #include <$ac_cv_struct_tm>
10501 static struct tm ac_aggr;
10502 if (ac_aggr.tm_zone)
10508 rm -f conftest.$ac_objext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510 (eval $ac_compile) 2>conftest.er1
10512 grep -v '^ *+' conftest.er1 >conftest.err
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } &&
10517 { ac_try='test -z "$ac_c_werror_flag"
10518 || test ! -s conftest.err'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try='test -s conftest.$ac_objext'
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_cv_member_struct_tm_tm_zone=yes
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 #include <sys/types.h>
10542 #include <$ac_cv_struct_tm>
10548 static struct tm ac_aggr;
10549 if (sizeof ac_aggr.tm_zone)
10555 rm -f conftest.$ac_objext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10557 (eval $ac_compile) 2>conftest.er1
10559 grep -v '^ *+' conftest.er1 >conftest.err
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_c_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest.$ac_objext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_cv_member_struct_tm_tm_zone=yes
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 ac_cv_member_struct_tm_tm_zone=no
10584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10588 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10589 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10590 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_STRUCT_TM_TM_ZONE 1
10599 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10601 cat >>confdefs.h <<\_ACEOF
10602 #define HAVE_TM_ZONE 1
10606 echo "$as_me:$LINENO: checking for tzname" >&5
10607 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10608 if test "${ac_cv_var_tzname+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 if test x$gcc_no_link = xyes; then
10612 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10613 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10614 { (exit 1); exit 1; }; }
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10623 #ifndef tzname /* For SGI. */
10624 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -z "$ac_c_werror_flag"
10645 || test ! -s conftest.err'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10657 ac_cv_var_tzname=yes
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 ac_cv_var_tzname=no
10664 rm -f conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10667 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10668 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10669 if test $ac_cv_var_tzname = yes; then
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_TZNAME 1
10681 for ac_func in gethostbyname_r
10683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10684 echo "$as_me:$LINENO: checking for $ac_func" >&5
10685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10686 if eval "test \"\${$as_ac_var+set}\" = set"; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 if test x$gcc_no_link = xyes; then
10690 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10692 { (exit 1); exit 1; }; }
10694 cat >conftest.$ac_ext <<_ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10702 #define $ac_func innocuous_$ac_func
10704 /* System header to define __stub macros and hopefully few prototypes,
10705 which can conflict with char $ac_func (); below.
10706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10707 <limits.h> exists even on freestanding compilers. */
10710 # include <limits.h>
10712 # include <assert.h>
10717 /* Override any gcc2 internal prototype to avoid an error. */
10722 /* We use char because int might match the return type of a gcc2
10723 builtin and then its argument prototype would still apply. */
10725 /* The GNU C library defines this for functions which it implements
10726 to always fail with ENOSYS. Some functions are actually named
10727 something starting with __ and the normal name is an alias. */
10728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10731 char (*f) () = $ac_func;
10740 return f != $ac_func;
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747 (eval $ac_link) 2>conftest.er1
10749 grep -v '^ *+' conftest.er1 >conftest.err
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -z "$ac_c_werror_flag"
10755 || test ! -s conftest.err'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try='test -s conftest$ac_exeext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 eval "$as_ac_var=yes"
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 eval "$as_ac_var=no"
10774 rm -f conftest.err conftest.$ac_objext \
10775 conftest$ac_exeext conftest.$ac_ext
10777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10779 if test `eval echo '${'$as_ac_var'}'` = yes; then
10780 cat >>confdefs.h <<_ACEOF
10781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10785 cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_GETHOSTBYNAME_R 1
10789 # There are two different kinds of gethostbyname_r.
10790 # We look for the one that returns `int'.
10791 # Hopefully this check is robust enough.
10792 cat >conftest.$ac_ext <<_ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10802 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10805 cat >>confdefs.h <<\_ACEOF
10806 #define GETHOSTBYNAME_R_RETURNS_INT 1
10813 case " $GCINCS " in
10814 *" -D_REENTRANT "*) ;;
10816 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10817 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10818 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 ac_cpp='$CXXCPP $CPPFLAGS'
10823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10837 gethostbyname_r("", 0, 0);
10842 rm -f conftest.$ac_objext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10844 (eval $ac_compile) 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_cxx_werror_flag"
10852 || test ! -s conftest.err'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest.$ac_objext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 libjava_cv_gethostbyname_r_needs_reentrant=no
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 CPPFLAGS_SAVE="$CPPFLAGS"
10870 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10871 cat >conftest.$ac_ext <<_ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10881 gethostbyname_r("", 0, 0);
10886 rm -f conftest.$ac_objext
10887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10888 (eval $ac_compile) 2>conftest.er1
10890 grep -v '^ *+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
10895 { ac_try='test -z "$ac_cxx_werror_flag"
10896 || test ! -s conftest.err'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; } &&
10902 { ac_try='test -s conftest.$ac_objext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 libjava_cv_gethostbyname_r_needs_reentrant=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 libjava_cv_gethostbyname_r_needs_reentrant=fail
10915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10916 CPPFLAGS="$CPPFLAGS_SAVE"
10919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10921 ac_cpp='$CPP $CPPFLAGS'
10922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10928 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10929 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10930 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10932 cat >>confdefs.h <<\_ACEOF
10933 #define _REENTRANT 1
10940 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10941 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10942 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 cat >conftest.$ac_ext <<_ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10952 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10953 # define _REENTRANT 1
10959 struct hostent_data data;
10964 rm -f conftest.$ac_objext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10966 (eval $ac_compile) 2>conftest.er1
10968 grep -v '^ *+' conftest.er1 >conftest.err
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -z "$ac_c_werror_flag"
10974 || test ! -s conftest.err'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; } &&
10980 { ac_try='test -s conftest.$ac_objext'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; }; then
10986 libjava_cv_struct_hostent_data=yes
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10991 libjava_cv_struct_hostent_data=no
10993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10995 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10996 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10997 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10999 cat >>confdefs.h <<\_ACEOF
11000 #define HAVE_STRUCT_HOSTENT_DATA 1
11009 # FIXME: libjava source code expects to find a prototype for
11010 # gethostbyaddr_r in netdb.h. The outer check ensures that
11011 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11012 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11013 # linkage check is enough, yet C++ code requires proper prototypes.)
11014 cat >conftest.$ac_ext <<_ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11024 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11027 for ac_func in gethostbyaddr_r
11029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11030 echo "$as_me:$LINENO: checking for $ac_func" >&5
11031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11032 if eval "test \"\${$as_ac_var+set}\" = set"; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 if test x$gcc_no_link = xyes; then
11036 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11038 { (exit 1); exit 1; }; }
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11048 #define $ac_func innocuous_$ac_func
11050 /* System header to define __stub macros and hopefully few prototypes,
11051 which can conflict with char $ac_func (); below.
11052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11053 <limits.h> exists even on freestanding compilers. */
11056 # include <limits.h>
11058 # include <assert.h>
11063 /* Override any gcc2 internal prototype to avoid an error. */
11068 /* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11071 /* The GNU C library defines this for functions which it implements
11072 to always fail with ENOSYS. Some functions are actually named
11073 something starting with __ and the normal name is an alias. */
11074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11077 char (*f) () = $ac_func;
11086 return f != $ac_func;
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093 (eval $ac_link) 2>conftest.er1
11095 grep -v '^ *+' conftest.er1 >conftest.err
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try='test -z "$ac_c_werror_flag"
11101 || test ! -s conftest.err'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest$ac_exeext'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 eval "$as_ac_var=yes"
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 eval "$as_ac_var=no"
11120 rm -f conftest.err conftest.$ac_objext \
11121 conftest$ac_exeext conftest.$ac_ext
11123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11125 if test `eval echo '${'$as_ac_var'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11131 cat >>confdefs.h <<\_ACEOF
11132 #define HAVE_GETHOSTBYADDR_R 1
11135 # There are two different kinds of gethostbyaddr_r.
11136 # We look for the one that returns `int'.
11137 # Hopefully this check is robust enough.
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11148 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11151 cat >>confdefs.h <<\_ACEOF
11152 #define GETHOSTBYADDR_R_RETURNS_INT 1
11166 for ac_func in gethostname
11168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11169 echo "$as_me:$LINENO: checking for $ac_func" >&5
11170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11171 if eval "test \"\${$as_ac_var+set}\" = set"; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 if test x$gcc_no_link = xyes; then
11175 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11177 { (exit 1); exit 1; }; }
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11187 #define $ac_func innocuous_$ac_func
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func (); below.
11191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11192 <limits.h> exists even on freestanding compilers. */
11195 # include <limits.h>
11197 # include <assert.h>
11202 /* Override any gcc2 internal prototype to avoid an error. */
11207 /* We use char because int might match the return type of a gcc2
11208 builtin and then its argument prototype would still apply. */
11210 /* The GNU C library defines this for functions which it implements
11211 to always fail with ENOSYS. Some functions are actually named
11212 something starting with __ and the normal name is an alias. */
11213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11216 char (*f) () = $ac_func;
11225 return f != $ac_func;
11230 rm -f conftest.$ac_objext conftest$ac_exeext
11231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11232 (eval $ac_link) 2>conftest.er1
11234 grep -v '^ *+' conftest.er1 >conftest.err
11236 cat conftest.err >&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } &&
11239 { ac_try='test -z "$ac_c_werror_flag"
11240 || test ! -s conftest.err'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest$ac_exeext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 eval "$as_ac_var=yes"
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 eval "$as_ac_var=no"
11259 rm -f conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11264 if test `eval echo '${'$as_ac_var'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_GETHOSTNAME 1
11274 cat >conftest.$ac_ext <<_ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11280 #include <unistd.h>
11283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11284 $EGREP "gethostname" >/dev/null 2>&1; then
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_GETHOSTNAME_DECL 1
11299 for ac_func in usleep
11301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11302 echo "$as_me:$LINENO: checking for $ac_func" >&5
11303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11304 if eval "test \"\${$as_ac_var+set}\" = set"; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 if test x$gcc_no_link = xyes; then
11308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11310 { (exit 1); exit 1; }; }
11312 cat >conftest.$ac_ext <<_ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11320 #define $ac_func innocuous_$ac_func
11322 /* System header to define __stub macros and hopefully few prototypes,
11323 which can conflict with char $ac_func (); below.
11324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11325 <limits.h> exists even on freestanding compilers. */
11328 # include <limits.h>
11330 # include <assert.h>
11335 /* Override any gcc2 internal prototype to avoid an error. */
11340 /* We use char because int might match the return type of a gcc2
11341 builtin and then its argument prototype would still apply. */
11343 /* The GNU C library defines this for functions which it implements
11344 to always fail with ENOSYS. Some functions are actually named
11345 something starting with __ and the normal name is an alias. */
11346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11349 char (*f) () = $ac_func;
11358 return f != $ac_func;
11363 rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>conftest.er1
11367 grep -v '^ *+' conftest.er1 >conftest.err
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest$ac_exeext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 eval "$as_ac_var=yes"
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 eval "$as_ac_var=no"
11392 rm -f conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11397 if test `eval echo '${'$as_ac_var'}'` = yes; then
11398 cat >>confdefs.h <<_ACEOF
11399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 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 #include <unistd.h>
11411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11412 $EGREP "usleep" >/dev/null 2>&1; then
11415 cat >>confdefs.h <<\_ACEOF
11416 #define HAVE_USLEEP_DECL 1
11426 # Look for these functions in the thread library, but only bother
11427 # if using POSIX threads.
11428 if test "$THREADS" = posix; then
11430 LIBS="$LIBS $THREADLIBS"
11431 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11435 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11438 echo "$as_me:$LINENO: checking for $ac_func" >&5
11439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11440 if eval "test \"\${$as_ac_var+set}\" = set"; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 if test x$gcc_no_link = xyes; then
11444 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11445 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11446 { (exit 1); exit 1; }; }
11448 cat >conftest.$ac_ext <<_ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11456 #define $ac_func innocuous_$ac_func
11458 /* System header to define __stub macros and hopefully few prototypes,
11459 which can conflict with char $ac_func (); below.
11460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11461 <limits.h> exists even on freestanding compilers. */
11464 # include <limits.h>
11466 # include <assert.h>
11471 /* Override any gcc2 internal prototype to avoid an error. */
11476 /* We use char because int might match the return type of a gcc2
11477 builtin and then its argument prototype would still apply. */
11479 /* The GNU C library defines this for functions which it implements
11480 to always fail with ENOSYS. Some functions are actually named
11481 something starting with __ and the normal name is an alias. */
11482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11485 char (*f) () = $ac_func;
11494 return f != $ac_func;
11499 rm -f conftest.$ac_objext conftest$ac_exeext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501 (eval $ac_link) 2>conftest.er1
11503 grep -v '^ *+' conftest.er1 >conftest.err
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -z "$ac_c_werror_flag"
11509 || test ! -s conftest.err'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; } &&
11515 { ac_try='test -s conftest$ac_exeext'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 eval "$as_ac_var=yes"
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 eval "$as_ac_var=no"
11528 rm -f conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11533 if test `eval echo '${'$as_ac_var'}'` = yes; then
11534 cat >>confdefs.h <<_ACEOF
11535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11542 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11543 # Solaris 7 the name librt is preferred.
11545 for ac_func in sched_yield
11547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11548 echo "$as_me:$LINENO: checking for $ac_func" >&5
11549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11550 if eval "test \"\${$as_ac_var+set}\" = set"; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 if test x$gcc_no_link = xyes; then
11554 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11556 { (exit 1); exit 1; }; }
11558 cat >conftest.$ac_ext <<_ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11566 #define $ac_func innocuous_$ac_func
11568 /* System header to define __stub macros and hopefully few prototypes,
11569 which can conflict with char $ac_func (); below.
11570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571 <limits.h> exists even on freestanding compilers. */
11574 # include <limits.h>
11576 # include <assert.h>
11581 /* Override any gcc2 internal prototype to avoid an error. */
11586 /* We use char because int might match the return type of a gcc2
11587 builtin and then its argument prototype would still apply. */
11589 /* The GNU C library defines this for functions which it implements
11590 to always fail with ENOSYS. Some functions are actually named
11591 something starting with __ and the normal name is an alias. */
11592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11595 char (*f) () = $ac_func;
11604 return f != $ac_func;
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11611 (eval $ac_link) 2>conftest.er1
11613 grep -v '^ *+' conftest.er1 >conftest.err
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try='test -z "$ac_c_werror_flag"
11619 || test ! -s conftest.err'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; } &&
11625 { ac_try='test -s conftest$ac_exeext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 eval "$as_ac_var=yes"
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 eval "$as_ac_var=no"
11638 rm -f conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11643 if test `eval echo '${'$as_ac_var'}'` = yes; then
11644 cat >>confdefs.h <<_ACEOF
11645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11650 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11651 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11652 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 ac_check_lib_save_LIBS=$LIBS
11657 if test x$gcc_no_link = xyes; then
11658 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11660 { (exit 1); exit 1; }; }
11662 cat >conftest.$ac_ext <<_ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11669 /* Override any gcc2 internal prototype to avoid an error. */
11673 /* We use char because int might match the return type of a gcc2
11674 builtin and then its argument prototype would still apply. */
11675 char sched_yield ();
11684 rm -f conftest.$ac_objext conftest$ac_exeext
11685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11686 (eval $ac_link) 2>conftest.er1
11688 grep -v '^ *+' conftest.er1 >conftest.err
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -z "$ac_c_werror_flag"
11694 || test ! -s conftest.err'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; } &&
11700 { ac_try='test -s conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ac_cv_lib_rt_sched_yield=yes
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_cv_lib_rt_sched_yield=no
11713 rm -f conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715 LIBS=$ac_check_lib_save_LIBS
11717 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11718 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11719 if test $ac_cv_lib_rt_sched_yield = yes; then
11721 cat >>confdefs.h <<\_ACEOF
11722 #define HAVE_SCHED_YIELD 1
11725 THREADLIBS="$THREADLIBS -lrt"
11726 THREADSPEC="$THREADSPEC -lrt"
11729 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11730 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11731 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 ac_check_lib_save_LIBS=$LIBS
11735 LIBS="-lposix4 $LIBS"
11736 if test x$gcc_no_link = xyes; then
11737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11739 { (exit 1); exit 1; }; }
11741 cat >conftest.$ac_ext <<_ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11748 /* Override any gcc2 internal prototype to avoid an error. */
11752 /* We use char because int might match the return type of a gcc2
11753 builtin and then its argument prototype would still apply. */
11754 char sched_yield ();
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11765 (eval $ac_link) 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag"
11773 || test ! -s conftest.err'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest$ac_exeext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_cv_lib_posix4_sched_yield=yes
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_cv_lib_posix4_sched_yield=no
11792 rm -f conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11796 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11797 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11798 if test $ac_cv_lib_posix4_sched_yield = yes; then
11800 cat >>confdefs.h <<\_ACEOF
11801 #define HAVE_SCHED_YIELD 1
11804 THREADLIBS="$THREADLIBS -lposix4"
11805 THREADSPEC="$THREADSPEC -lposix4"
11815 # We can save a little space at runtime if the mutex has m_count
11816 # or __m_count. This is a nice hack for Linux.
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 #include <pthread.h>
11828 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11834 rm -f conftest.$ac_objext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11836 (eval $ac_compile) 2>conftest.er1
11838 grep -v '^ *+' conftest.er1 >conftest.err
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } &&
11843 { ac_try='test -z "$ac_c_werror_flag"
11844 || test ! -s conftest.err'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest.$ac_objext'
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11857 cat >>confdefs.h <<\_ACEOF
11858 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 #include <pthread.h>
11877 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885 (eval $ac_compile) 2>conftest.er1
11887 grep -v '^ *+' conftest.er1 >conftest.err
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest.$ac_objext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11906 cat >>confdefs.h <<\_ACEOF
11907 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11920 # We require a way to get the time.
11925 for ac_func in gettimeofday time ftime
11927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11928 echo "$as_me:$LINENO: checking for $ac_func" >&5
11929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11930 if eval "test \"\${$as_ac_var+set}\" = set"; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 if test x$gcc_no_link = xyes; then
11934 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11936 { (exit 1); exit 1; }; }
11938 cat >conftest.$ac_ext <<_ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11946 #define $ac_func innocuous_$ac_func
11948 /* System header to define __stub macros and hopefully few prototypes,
11949 which can conflict with char $ac_func (); below.
11950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11951 <limits.h> exists even on freestanding compilers. */
11954 # include <limits.h>
11956 # include <assert.h>
11961 /* Override any gcc2 internal prototype to avoid an error. */
11966 /* We use char because int might match the return type of a gcc2
11967 builtin and then its argument prototype would still apply. */
11969 /* The GNU C library defines this for functions which it implements
11970 to always fail with ENOSYS. Some functions are actually named
11971 something starting with __ and the normal name is an alias. */
11972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11975 char (*f) () = $ac_func;
11984 return f != $ac_func;
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11991 (eval $ac_link) 2>conftest.er1
11993 grep -v '^ *+' conftest.er1 >conftest.err
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try='test -z "$ac_c_werror_flag"
11999 || test ! -s conftest.err'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; } &&
12005 { ac_try='test -s conftest$ac_exeext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 eval "$as_ac_var=yes"
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 eval "$as_ac_var=no"
12018 rm -f conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12023 if test `eval echo '${'$as_ac_var'}'` = yes; then
12024 cat >>confdefs.h <<_ACEOF
12025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12031 if test "$time_found" = no; then
12032 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12033 echo "$as_me: error: no function found to get the time" >&2;}
12034 { (exit 1); exit 1; }; }
12038 for ac_func in memmove
12040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12041 echo "$as_me:$LINENO: checking for $ac_func" >&5
12042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12043 if eval "test \"\${$as_ac_var+set}\" = set"; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 if test x$gcc_no_link = xyes; then
12047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12049 { (exit 1); exit 1; }; }
12051 cat >conftest.$ac_ext <<_ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12059 #define $ac_func innocuous_$ac_func
12061 /* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char $ac_func (); below.
12063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 <limits.h> exists even on freestanding compilers. */
12067 # include <limits.h>
12069 # include <assert.h>
12074 /* Override any gcc2 internal prototype to avoid an error. */
12079 /* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12082 /* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12088 char (*f) () = $ac_func;
12097 return f != $ac_func;
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>conftest.er1
12106 grep -v '^ *+' conftest.er1 >conftest.err
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_var=yes"
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 eval "$as_ac_var=no"
12131 rm -f conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12136 if test `eval echo '${'$as_ac_var'}'` = yes; then
12137 cat >>confdefs.h <<_ACEOF
12138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12145 # We require memcpy.
12148 for ac_func in memcpy
12150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12151 echo "$as_me:$LINENO: checking for $ac_func" >&5
12152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12153 if eval "test \"\${$as_ac_var+set}\" = set"; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 if test x$gcc_no_link = xyes; then
12157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12159 { (exit 1); exit 1; }; }
12161 cat >conftest.$ac_ext <<_ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12169 #define $ac_func innocuous_$ac_func
12171 /* System header to define __stub macros and hopefully few prototypes,
12172 which can conflict with char $ac_func (); below.
12173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12174 <limits.h> exists even on freestanding compilers. */
12177 # include <limits.h>
12179 # include <assert.h>
12184 /* Override any gcc2 internal prototype to avoid an error. */
12189 /* We use char because int might match the return type of a gcc2
12190 builtin and then its argument prototype would still apply. */
12192 /* The GNU C library defines this for functions which it implements
12193 to always fail with ENOSYS. Some functions are actually named
12194 something starting with __ and the normal name is an alias. */
12195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12198 char (*f) () = $ac_func;
12207 return f != $ac_func;
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214 (eval $ac_link) 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -z "$ac_c_werror_flag"
12222 || test ! -s conftest.err'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 eval "$as_ac_var=yes"
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 eval "$as_ac_var=no"
12241 rm -f conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12246 if test `eval echo '${'$as_ac_var'}'` = yes; then
12247 cat >>confdefs.h <<_ACEOF
12248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12254 if test "$memcpy_found" = no; then
12255 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12256 echo "$as_me: error: memcpy is required" >&2;}
12257 { (exit 1); exit 1; }; }
12260 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12261 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12262 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 ac_check_lib_save_LIBS=$LIBS
12267 if test x$gcc_no_link = xyes; then
12268 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12270 { (exit 1); exit 1; }; }
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12279 /* Override any gcc2 internal prototype to avoid an error. */
12283 /* We use char because int might match the return type of a gcc2
12284 builtin and then its argument prototype would still apply. */
12294 rm -f conftest.$ac_objext conftest$ac_exeext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12296 (eval $ac_link) 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag"
12304 || test ! -s conftest.err'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_cv_lib_dl_dlopen=yes
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 ac_cv_lib_dl_dlopen=no
12323 rm -f conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12325 LIBS=$ac_check_lib_save_LIBS
12327 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12328 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12329 if test $ac_cv_lib_dl_dlopen = yes; then
12332 cat >>confdefs.h <<\_ACEOF
12333 #define HAVE_DLOPEN 1
12339 # Some library-finding code we stole from Tcl.
12340 #--------------------------------------------------------------------
12341 # Check for the existence of the -lsocket and -lnsl libraries.
12342 # The order here is important, so that they end up in the right
12343 # order in the command line generated by make. Here are some
12344 # special considerations:
12345 # 1. Use "connect" and "accept" to check for -lsocket, and
12346 # "gethostbyname" to check for -lnsl.
12347 # 2. Use each function name only once: can't redo a check because
12348 # autoconf caches the results of the last check and won't redo it.
12349 # 3. Use -lnsl and -lsocket only if they supply procedures that
12350 # aren't already present in the normal libraries. This is because
12351 # IRIX 5.2 has libraries, but they aren't needed and they're
12352 # bogus: they goof up name resolution if used.
12353 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12354 # To get around this problem, check for both libraries together
12355 # if -lsocket doesn't work by itself.
12356 #--------------------------------------------------------------------
12358 echo "$as_me:$LINENO: checking for socket libraries" >&5
12359 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12360 if test "${gcj_cv_lib_sockets+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 gcj_cv_lib_sockets=
12365 unset ac_cv_func_connect
12366 echo "$as_me:$LINENO: checking for connect" >&5
12367 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12368 if test "${ac_cv_func_connect+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 if test x$gcc_no_link = xyes; then
12372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12374 { (exit 1); exit 1; }; }
12376 cat >conftest.$ac_ext <<_ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12384 #define connect innocuous_connect
12386 /* System header to define __stub macros and hopefully few prototypes,
12387 which can conflict with char connect (); below.
12388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389 <limits.h> exists even on freestanding compilers. */
12392 # include <limits.h>
12394 # include <assert.h>
12399 /* Override any gcc2 internal prototype to avoid an error. */
12404 /* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
12407 /* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
12410 #if defined (__stub_connect) || defined (__stub___connect)
12413 char (*f) () = connect;
12422 return f != connect;
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_func_connect=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_cv_func_connect=no
12456 rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12459 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12460 echo "${ECHO_T}$ac_cv_func_connect" >&6
12461 if test $ac_cv_func_connect = yes; then
12467 if test "$gcj_checkSocket" = 1; then
12468 unset ac_cv_func_connect
12469 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12470 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12471 if test "${ac_cv_lib_socket_main+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 ac_check_lib_save_LIBS=$LIBS
12475 LIBS="-lsocket $LIBS"
12476 if test x$gcc_no_link = xyes; then
12477 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12479 { (exit 1); exit 1; }; }
12481 cat >conftest.$ac_ext <<_ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12499 (eval $ac_link) 2>conftest.er1
12501 grep -v '^ *+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -z "$ac_c_werror_flag"
12507 || test ! -s conftest.err'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest$ac_exeext'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12519 ac_cv_lib_socket_main=yes
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 ac_cv_lib_socket_main=no
12526 rm -f conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12530 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12531 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12532 if test $ac_cv_lib_socket_main = yes; then
12533 gcj_cv_lib_sockets="-lsocket"
12539 if test "$gcj_checkBoth" = 1; then
12541 LIBS="$LIBS -lsocket -lnsl"
12542 unset ac_cv_func_accept
12543 echo "$as_me:$LINENO: checking for accept" >&5
12544 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12545 if test "${ac_cv_func_accept+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 if test x$gcc_no_link = xyes; then
12549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12551 { (exit 1); exit 1; }; }
12553 cat >conftest.$ac_ext <<_ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12561 #define accept innocuous_accept
12563 /* System header to define __stub macros and hopefully few prototypes,
12564 which can conflict with char accept (); below.
12565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12566 <limits.h> exists even on freestanding compilers. */
12569 # include <limits.h>
12571 # include <assert.h>
12576 /* Override any gcc2 internal prototype to avoid an error. */
12581 /* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12584 /* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
12587 #if defined (__stub_accept) || defined (__stub___accept)
12590 char (*f) () = accept;
12599 return f != accept;
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606 (eval $ac_link) 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest$ac_exeext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_func_accept=yes
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_cv_func_accept=no
12633 rm -f conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12636 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12637 echo "${ECHO_T}$ac_cv_func_accept" >&6
12638 if test $ac_cv_func_accept = yes; then
12640 gcj_cv_lib_sockets="-lsocket -lnsl"
12643 unset ac_cv_func_accept
12646 unset ac_cv_func_gethostbyname
12648 LIBS="$LIBS $gcj_cv_lib_sockets"
12649 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12650 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12651 if test "${ac_cv_func_gethostbyname+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 if test x$gcc_no_link = xyes; then
12655 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12657 { (exit 1); exit 1; }; }
12659 cat >conftest.$ac_ext <<_ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12665 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12667 #define gethostbyname innocuous_gethostbyname
12669 /* System header to define __stub macros and hopefully few prototypes,
12670 which can conflict with char gethostbyname (); below.
12671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672 <limits.h> exists even on freestanding compilers. */
12675 # include <limits.h>
12677 # include <assert.h>
12680 #undef gethostbyname
12682 /* Override any gcc2 internal prototype to avoid an error. */
12687 /* We use char because int might match the return type of a gcc2
12688 builtin and then its argument prototype would still apply. */
12689 char gethostbyname ();
12690 /* The GNU C library defines this for functions which it implements
12691 to always fail with ENOSYS. Some functions are actually named
12692 something starting with __ and the normal name is an alias. */
12693 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12696 char (*f) () = gethostbyname;
12705 return f != gethostbyname;
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712 (eval $ac_link) 2>conftest.er1
12714 grep -v '^ *+' conftest.er1 >conftest.err
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest$ac_exeext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_func_gethostbyname=yes
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 ac_cv_func_gethostbyname=no
12739 rm -f conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12742 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12743 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12744 if test $ac_cv_func_gethostbyname = yes; then
12747 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12748 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12749 if test "${ac_cv_lib_nsl_main+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 ac_check_lib_save_LIBS=$LIBS
12754 if test x$gcc_no_link = xyes; then
12755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12756 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12757 { (exit 1); exit 1; }; }
12759 cat >conftest.$ac_ext <<_ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777 (eval $ac_link) 2>conftest.er1
12779 grep -v '^ *+' conftest.er1 >conftest.err
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag"
12785 || test ! -s conftest.err'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 ac_cv_lib_nsl_main=yes
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_cv_lib_nsl_main=no
12804 rm -f conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12808 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12809 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12810 if test $ac_cv_lib_nsl_main = yes; then
12811 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12816 unset ac_cv_func_gethostbyname
12820 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12821 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12822 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12824 if test "$with_system_zlib" = yes; then
12825 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12826 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12827 if test "${ac_cv_lib_z_deflate+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 ac_check_lib_save_LIBS=$LIBS
12832 if test x$gcc_no_link = xyes; then
12833 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12834 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12835 { (exit 1); exit 1; }; }
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 /* Override any gcc2 internal prototype to avoid an error. */
12848 /* We use char because int might match the return type of a gcc2
12849 builtin and then its argument prototype would still apply. */
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>conftest.er1
12863 grep -v '^ *+' conftest.er1 >conftest.err
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
12868 { ac_try='test -z "$ac_c_werror_flag"
12869 || test ! -s conftest.err'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } &&
12875 { ac_try='test -s conftest$ac_exeext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_cv_lib_z_deflate=yes
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12886 ac_cv_lib_z_deflate=no
12888 rm -f conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12892 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12893 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12894 if test $ac_cv_lib_z_deflate = yes; then
12902 # Test for Gtk stuff, if asked for.
12903 if test "$use_gtk_awt" = yes; then
12907 if test -z "$PKG_CONFIG"; then
12908 # Extract the first word of "pkg-config", so it can be a program name with args.
12909 set dummy pkg-config; ac_word=$2
12910 echo "$as_me:$LINENO: checking for $ac_word" >&5
12911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12912 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 case $PKG_CONFIG in
12917 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12924 test -z "$as_dir" && as_dir=.
12925 for ac_exec_ext in '' $ac_executable_extensions; do
12926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12927 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12938 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12940 if test -n "$PKG_CONFIG"; then
12941 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12942 echo "${ECHO_T}$PKG_CONFIG" >&6
12944 echo "$as_me:$LINENO: result: no" >&5
12945 echo "${ECHO_T}no" >&6
12950 if test "$PKG_CONFIG" = "no" ; then
12951 echo "*** The pkg-config script could not be found. Make sure it is"
12952 echo "*** in your path, or set the PKG_CONFIG environment variable"
12953 echo "*** to the full path to pkg-config."
12954 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12956 PKG_CONFIG_MIN_VERSION=0.9.0
12957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12958 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12959 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12961 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12962 echo "$as_me:$LINENO: result: yes" >&5
12963 echo "${ECHO_T}yes" >&6
12966 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12967 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12968 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12969 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12970 echo "${ECHO_T}$GTK_CFLAGS" >&6
12972 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12973 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12974 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12975 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12976 echo "${ECHO_T}$GTK_LIBS" >&6
12980 ## If we have a custom action on failure, don't print errors, but
12981 ## do set a variable so people can do so.
12982 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12983 echo $GTK_PKG_ERRORS
12989 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12990 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12994 if test $succeeded = yes; then
12997 { { 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
12998 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;}
12999 { (exit 1); exit 1; }; }
13008 if test -z "$PKG_CONFIG"; then
13009 # Extract the first word of "pkg-config", so it can be a program name with args.
13010 set dummy pkg-config; ac_word=$2
13011 echo "$as_me:$LINENO: checking for $ac_word" >&5
13012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13013 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 case $PKG_CONFIG in
13018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13028 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13035 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13039 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13041 if test -n "$PKG_CONFIG"; then
13042 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13043 echo "${ECHO_T}$PKG_CONFIG" >&6
13045 echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6
13051 if test "$PKG_CONFIG" = "no" ; then
13052 echo "*** The pkg-config script could not be found. Make sure it is"
13053 echo "*** in your path, or set the PKG_CONFIG environment variable"
13054 echo "*** to the full path to pkg-config."
13055 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13057 PKG_CONFIG_MIN_VERSION=0.9.0
13058 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13059 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13060 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13062 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13063 echo "$as_me:$LINENO: result: yes" >&5
13064 echo "${ECHO_T}yes" >&6
13067 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13068 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13069 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13070 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13071 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13073 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13074 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13075 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13076 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13077 echo "${ECHO_T}$GLIB_LIBS" >&6
13081 ## If we have a custom action on failure, don't print errors, but
13082 ## do set a variable so people can do so.
13083 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13084 echo $GLIB_PKG_ERRORS
13090 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13091 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13095 if test $succeeded = yes; then
13098 { { 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
13099 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;}
13100 { (exit 1); exit 1; }; }
13109 if test -z "$PKG_CONFIG"; then
13110 # Extract the first word of "pkg-config", so it can be a program name with args.
13111 set dummy pkg-config; ac_word=$2
13112 echo "$as_me:$LINENO: checking for $ac_word" >&5
13113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13114 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 case $PKG_CONFIG in
13119 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13129 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13142 if test -n "$PKG_CONFIG"; then
13143 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13144 echo "${ECHO_T}$PKG_CONFIG" >&6
13146 echo "$as_me:$LINENO: result: no" >&5
13147 echo "${ECHO_T}no" >&6
13152 if test "$PKG_CONFIG" = "no" ; then
13153 echo "*** The pkg-config script could not be found. Make sure it is"
13154 echo "*** in your path, or set the PKG_CONFIG environment variable"
13155 echo "*** to the full path to pkg-config."
13156 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13158 PKG_CONFIG_MIN_VERSION=0.9.0
13159 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13160 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13161 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13163 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13164 echo "$as_me:$LINENO: result: yes" >&5
13165 echo "${ECHO_T}yes" >&6
13168 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13169 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13170 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13171 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13172 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13174 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13175 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13176 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13177 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13178 echo "${ECHO_T}$LIBART_LIBS" >&6
13182 ## If we have a custom action on failure, don't print errors, but
13183 ## do set a variable so people can do so.
13184 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13185 echo $LIBART_PKG_ERRORS
13191 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13192 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13196 if test $succeeded = yes; then
13199 { { 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
13200 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;}
13201 { (exit 1); exit 1; }; }
13207 # We require the XTest Extension to support java.awt.Robot.
13208 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13209 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13210 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 ac_check_lib_save_LIBS=$LIBS
13214 LIBS="-lXtst ${X_LIBS} $LIBS"
13215 if test x$gcc_no_link = xyes; then
13216 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13218 { (exit 1); exit 1; }; }
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13227 /* Override any gcc2 internal prototype to avoid an error. */
13231 /* We use char because int might match the return type of a gcc2
13232 builtin and then its argument prototype would still apply. */
13233 char XTestQueryExtension ();
13237 XTestQueryExtension ();
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244 (eval $ac_link) 2>conftest.er1
13246 grep -v '^ *+' conftest.er1 >conftest.err
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -z "$ac_c_werror_flag"
13252 || test ! -s conftest.err'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest$ac_exeext'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 ac_cv_lib_Xtst_XTestQueryExtension=yes
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ac_cv_lib_Xtst_XTestQueryExtension=no
13271 rm -f conftest.err conftest.$ac_objext \
13272 conftest$ac_exeext conftest.$ac_ext
13273 LIBS=$ac_check_lib_save_LIBS
13275 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13276 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13277 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13280 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13281 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13282 { (exit 1); exit 1; }; }
13287 # On Solaris, and maybe other architectures, the Boehm collector
13289 if test "$GC" = boehm; then
13290 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13291 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13292 if test "${ac_cv_lib_dl_main+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 ac_check_lib_save_LIBS=$LIBS
13297 if test x$gcc_no_link = xyes; then
13298 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13300 { (exit 1); exit 1; }; }
13302 cat >conftest.$ac_ext <<_ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag"
13328 || test ! -s conftest.err'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest$ac_exeext'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_cv_lib_dl_main=yes
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ac_cv_lib_dl_main=no
13347 rm -f conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
13349 LIBS=$ac_check_lib_save_LIBS
13351 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13352 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13353 if test $ac_cv_lib_dl_main = yes; then
13354 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13361 if test "$supply_backtrace" = yes; then
13362 SUPPLY_BACKTRACE_TRUE=
13363 SUPPLY_BACKTRACE_FALSE='#'
13365 SUPPLY_BACKTRACE_TRUE='#'
13366 SUPPLY_BACKTRACE_FALSE=
13370 if test -z "${with_multisubdir}"; then
13373 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13378 # Which gcj do we use?
13380 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13381 if test -n "${with_cross_host}"; then
13382 # We are being configured with a cross compiler. We can't
13383 # use ac_exeext, because that is for the target platform.
13386 case "${with_cross_host}" in
13387 *mingw* | *cygwin*)
13388 cross_host_exeext=.exe
13391 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13392 if test x"$build_noncanonical" = x"$with_cross_host"; then
13393 # Ordinary cross (host!=target and host=build)
13396 # Canadian cross (host!=target and host!=build)
13403 # We are being configured with a native or crossed-native compiler
13404 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13405 if test x"$build" = x"$host"; then
13406 # True native build (host=target and host=build)
13409 # Crossed-native build (host=target and host!=build)
13416 case "${which_gcj}" in
13418 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13419 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13420 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13423 if test "x${with_newlib}" = "xyes"; then
13424 # FIXME (comment): Why is this needed?
13425 GCC_UNWIND_INCLUDE=
13426 GCJ="${target_noncanonical}-gcj"
13428 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13430 ZIP='$(target_noncanonical)-fastjar'
13431 GCJH='$(target_noncanonical)-gcjh'
13434 GCJ="gcj -B`${PWDCMD-pwd}`/"
13435 ## In this case, gcj is found outside the build tree. However, zip is
13436 ## found in the build tree.
13437 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13445 # Create it, so that compile/link tests don't fail
13446 test -f libgcj.spec || touch libgcj.spec
13448 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13450 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13451 *) CLASSPATH_SEPARATOR=':' ;;
13455 # We must search the source tree for java.lang, since we still don't
13456 # have libgcj.jar nor java/lang/*.class
13457 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13458 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13460 # Since some classes depend on this one, we need its source available
13461 # before we can do any GCJ compilation test :-(
13462 if test ! -f gnu/classpath/Configuration.java; then
13463 test -d gnu || mkdir gnu
13464 test -d gnu/classpath || mkdir gnu/classpath
13465 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13466 -e 's,@TOOLKIT@,$TOOLKIT,' \
13467 < $srcdir/gnu/classpath/Configuration.java.in \
13468 > gnu/classpath/Configuration.java
13469 # We do not want to redirect the output of the grep below to /dev/null,
13470 # but we add /dev/null to the input list so that grep will print the
13471 # filename of Configuration.java in case it finds any matches.
13472 if grep @ gnu/classpath/Configuration.java /dev/null; then
13473 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13474 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13475 { (exit 1); exit 1; }; }
13479 if test -n "$ac_tool_prefix"; then
13480 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13481 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13482 echo "$as_me:$LINENO: checking for $ac_word" >&5
13483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13484 if test "${ac_cv_prog_GCJ+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 if test -n "$GCJ"; then
13488 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 GCJ=$ac_cv_prog_GCJ
13507 if test -n "$GCJ"; then
13508 echo "$as_me:$LINENO: result: $GCJ" >&5
13509 echo "${ECHO_T}$GCJ" >&6
13511 echo "$as_me:$LINENO: result: no" >&5
13512 echo "${ECHO_T}no" >&6
13516 if test -z "$ac_cv_prog_GCJ"; then
13518 # Extract the first word of "gcj", so it can be a program name with args.
13519 set dummy gcj; ac_word=$2
13520 echo "$as_me:$LINENO: checking for $ac_word" >&5
13521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13522 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 if test -n "$ac_ct_GCJ"; then
13526 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535 ac_cv_prog_ac_ct_GCJ="gcj"
13536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13542 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13545 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13546 if test -n "$ac_ct_GCJ"; then
13547 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13548 echo "${ECHO_T}$ac_ct_GCJ" >&6
13550 echo "$as_me:$LINENO: result: no" >&5
13551 echo "${ECHO_T}no" >&6
13556 GCJ="$ac_cv_prog_GCJ"
13559 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13564 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13566 echo "$as_me:$LINENO: checking size of void *" >&5
13567 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13568 if test "${ac_cv_sizeof_void_p+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13572 cat >conftest.$ac_ext <<_ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 #include "confdefs.h"
13579 #include <sys/types.h>
13585 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13590 rm -f conftest.$ac_objext
13591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13592 (eval $ac_compile) 2>conftest.er1
13594 grep -v '^ *+' conftest.er1 >conftest.err
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -z "$ac_c_werror_flag"
13600 || test ! -s conftest.err'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; } &&
13606 { ac_try='test -s conftest.$ac_objext'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; }; then
13612 ac_cv_sizeof_void_p=$ac_size
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13619 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13624 if test x$ac_cv_sizeof_void_p = x ; then
13625 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13626 echo "$as_me: error: cannot determine a size for void *" >&2;}
13627 { (exit 1); exit 1; }; }
13629 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13630 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13632 cat >>confdefs.h <<_ACEOF
13633 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13638 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13639 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13640 if test "${ac_cv_c_bigendian+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 ac_cv_c_bigendian=unknown
13644 # See if sys/param.h defines the BYTE_ORDER macro.
13645 cat >conftest.$ac_ext <<_ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 #include <sys/types.h>
13652 #include <sys/param.h>
13657 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13658 bogus endian macros
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666 (eval $ac_compile) 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_c_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest.$ac_objext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 # It does; now see whether it defined to BIG_ENDIAN or not.
13687 cat >conftest.$ac_ext <<_ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 #include <sys/types.h>
13694 #include <sys/param.h>
13699 #if BYTE_ORDER != BIG_ENDIAN
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708 (eval $ac_compile) 2>conftest.er1
13710 grep -v '^ *+' conftest.er1 >conftest.err
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -z "$ac_c_werror_flag"
13716 || test ! -s conftest.err'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; } &&
13722 { ac_try='test -s conftest.$ac_objext'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728 ac_cv_c_bigendian=yes
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13733 ac_cv_c_bigendian=no
13735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13742 if test $ac_cv_c_bigendian = unknown; then
13743 if test "$cross_compiling" = yes; then
13744 echo $ac_n "cross-compiling... " 2>&6
13746 cat >conftest.$ac_ext <<_ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13753 /* Are we little or big endian? From Harbison&Steele. */
13757 char c[sizeof (long)];
13760 exit (u.c[sizeof (long) - 1] == 1);
13763 rm -f conftest$ac_exeext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765 (eval $ac_link) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_c_bigendian=no
13776 echo "$as_me: program exited with status $ac_status" >&5
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ( exit $ac_status )
13781 ac_cv_c_bigendian=yes
13783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13787 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13788 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13789 if test $ac_cv_c_bigendian = unknown; then
13790 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13791 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13793 cat >conftest.c <<EOF
13794 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13795 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13796 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13797 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13798 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13799 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13800 int main() { _ascii (); _ebcdic (); return 0; }
13802 if test -f conftest.c ; then
13803 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13804 if test `grep -l BIGenDianSyS conftest.o` ; then
13805 echo $ac_n ' big endian probe OK, ' 1>&6
13806 ac_cv_c_bigendian=yes
13808 if test `grep -l LiTTleEnDian conftest.o` ; then
13809 echo $ac_n ' little endian probe OK, ' 1>&6
13810 if test $ac_cv_c_bigendian = yes ; then
13811 ac_cv_c_bigendian=unknown;
13813 ac_cv_c_bigendian=no
13816 echo $ac_n 'guessing bigendian ... ' >&6
13819 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13820 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13822 if test $ac_cv_c_bigendian = yes; then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define WORDS_BIGENDIAN 1
13829 cat >>confdefs.h <<\_ACEOF
13830 #define HOST_WORDS_BIG_ENDIAN 1
13838 cat >>confdefs.h <<_ACEOF
13839 #define BYTEORDER $BYTEORDER
13842 if test $ac_cv_c_bigendian = unknown; then
13843 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13844 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13845 { (exit 1); exit 1; }; }
13853 if test -z "$ZLIBSPEC"; then
13854 # Use zlib from the GCC tree.
13855 ZINCS='-I$(top_srcdir)/../zlib'
13856 ZLIBS=../zlib/libzgcj_convenience.la
13859 SYS_ZLIBS="$ZLIBSPEC"
13871 if test "$NATIVE" = yes; then
13881 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13882 NEEDS_DATA_START_TRUE=
13883 NEEDS_DATA_START_FALSE='#'
13885 NEEDS_DATA_START_TRUE='#'
13886 NEEDS_DATA_START_FALSE=
13891 # Process the option "--enable-version-specific-runtime-libs"
13892 # Calculate toolexeclibdir
13893 case ${version_specific_libs} in
13895 # Need the gcc compiler version to know where to install libraries
13896 # and header files if --enable-version-specific-runtime-libs option
13898 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
13899 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13900 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
13901 toolexeclibdir=$toolexecmainlibdir
13904 if test -n "$with_cross_host" &&
13905 test x"$with_cross_host" != x"no"; then
13906 # Install a library built with a cross compiler in tooldir, not libdir.
13907 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13908 toolexecmainlibdir='$(toolexecdir)/lib'
13910 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13911 toolexecmainlibdir='$(libdir)'
13913 multi_os_directory=`$CC -print-multi-os-directory`
13914 case $multi_os_directory in
13915 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13916 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13924 # Determine gcj version number.
13925 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13926 GCJVERSION=$gcjversion
13929 cat >>confdefs.h <<_ACEOF
13930 #define GCJVERSION "$GCJVERSION"
13935 cat >>confdefs.h <<\_ACEOF
13936 #define JV_VERSION "1.4.2"
13940 cat >>confdefs.h <<\_ACEOF
13941 #define JV_API_VERSION "1.4"
13946 case "${with_gxx_include_dir}" in
13948 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13949 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13950 { (exit 1); exit 1; }; }
13953 case "${enable_version_specific_runtime_libs}" in
13954 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
13956 libstdcxx_incdir='c++/$(gcc_version)'
13957 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
13959 *) gxx_include_dir=${with_gxx_include_dir} ;;
13965 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13966 # On that system, sys/ioctl.h will not include sys/filio.h unless
13967 # BSD_COMP is defined; just including sys/filio.h is simpler.
13968 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13969 # for now. If you change this, you also must update natFile.cc.
13990 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
13991 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
13992 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
13993 pwd.h sys/config.h stdint.h langinfo.h locale.h \
13996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13998 echo "$as_me:$LINENO: checking for $ac_header" >&5
13999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14006 # Is the header compilable?
14007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14009 cat >conftest.$ac_ext <<_ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14016 #include <$ac_header>
14018 rm -f conftest.$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020 (eval $ac_compile) 2>conftest.er1
14022 grep -v '^ *+' conftest.er1 >conftest.err
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest.$ac_objext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_header_compiler=yes
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_header_compiler=no
14047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14049 echo "${ECHO_T}$ac_header_compiler" >&6
14051 # Is the header present?
14052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14054 cat >conftest.$ac_ext <<_ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14060 #include <$ac_header>
14062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14065 grep -v '^ *+' conftest.er1 >conftest.err
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } >/dev/null; then
14070 if test -s conftest.err; then
14071 ac_cpp_err=$ac_c_preproc_warn_flag
14072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14079 if test -z "$ac_cpp_err"; then
14080 ac_header_preproc=yes
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ac_header_preproc=no
14087 rm -f conftest.err conftest.$ac_ext
14088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14089 echo "${ECHO_T}$ac_header_preproc" >&6
14091 # So? What about this header?
14092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14098 ac_header_preproc=yes
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14115 ## ---------------------------------- ##
14116 ## Report this to the libjava lists. ##
14117 ## ---------------------------------- ##
14120 sed "s/^/$as_me: WARNING: /" >&2
14123 echo "$as_me:$LINENO: checking for $ac_header" >&5
14124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 eval "$as_ac_Header=\$ac_header_preproc"
14130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14135 cat >>confdefs.h <<_ACEOF
14136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14144 for ac_header in inttypes.h
14146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14148 echo "$as_me:$LINENO: checking for $ac_header" >&5
14149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14156 # Is the header compilable?
14157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 $ac_includes_default
14166 #include <$ac_header>
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>conftest.er1
14172 grep -v '^ *+' conftest.er1 >conftest.err
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest.$ac_objext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_header_compiler=yes
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 ac_header_compiler=no
14197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14199 echo "${ECHO_T}$ac_header_compiler" >&6
14201 # Is the header present?
14202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14204 cat >conftest.$ac_ext <<_ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 #include <$ac_header>
14212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } >/dev/null; then
14220 if test -s conftest.err; then
14221 ac_cpp_err=$ac_c_preproc_warn_flag
14222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14229 if test -z "$ac_cpp_err"; then
14230 ac_header_preproc=yes
14232 echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14235 ac_header_preproc=no
14237 rm -f conftest.err conftest.$ac_ext
14238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14239 echo "${ECHO_T}$ac_header_preproc" >&6
14241 # So? What about this header?
14242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14248 ac_header_preproc=yes
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14265 ## ---------------------------------- ##
14266 ## Report this to the libjava lists. ##
14267 ## ---------------------------------- ##
14270 sed "s/^/$as_me: WARNING: /" >&2
14273 echo "$as_me:$LINENO: checking for $ac_header" >&5
14274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 eval "$as_ac_Header=\$ac_header_preproc"
14280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14285 cat >>confdefs.h <<_ACEOF
14286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14290 cat >>confdefs.h <<\_ACEOF
14291 #define HAVE_INTTYPES_H 1
14295 cat >>confdefs.h <<\_ACEOF
14296 #define JV_HAVE_INTTYPES_H 1
14304 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14305 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14306 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 cat >conftest.$ac_ext <<_ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14315 #include <sys/types.h>
14316 #include <sys/wait.h>
14317 #ifndef WEXITSTATUS
14318 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14321 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14329 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14334 rm -f conftest.$ac_objext
14335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14336 (eval $ac_compile) 2>conftest.er1
14338 grep -v '^ *+' conftest.er1 >conftest.err
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } &&
14343 { ac_try='test -z "$ac_c_werror_flag"
14344 || test ! -s conftest.err'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; } &&
14350 { ac_try='test -s conftest.$ac_objext'
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; }; then
14356 ac_cv_header_sys_wait_h=yes
14358 echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.$ac_ext >&5
14361 ac_cv_header_sys_wait_h=no
14363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14365 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14366 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14367 if test $ac_cv_header_sys_wait_h = yes; then
14369 cat >>confdefs.h <<\_ACEOF
14370 #define HAVE_SYS_WAIT_H 1
14376 echo "$as_me:$LINENO: checking for ssize_t" >&5
14377 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14378 if test "${ac_cv_type_ssize_t+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 cat >conftest.$ac_ext <<_ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387 $ac_includes_default
14393 if (sizeof (ssize_t))
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>conftest.er1
14403 grep -v '^ *+' conftest.er1 >conftest.err
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_cv_type_ssize_t=yes
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_type_ssize_t=no
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14430 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14431 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14432 if test $ac_cv_type_ssize_t = yes; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define ssize_t int
14443 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14444 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14445 cat >conftest.$ac_ext <<_ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 #include <sys/types.h>
14453 #include <stdlib.h>
14454 #include <stddef.h>
14456 #if HAVE_NETINET_IN_H
14457 #include <netinet/in.h>
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -z "$ac_c_werror_flag"
14477 || test ! -s conftest.err'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } &&
14483 { ac_try='test -s conftest.$ac_objext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14490 cat >>confdefs.h <<\_ACEOF
14491 #define HAVE_IN_ADDR_T 1
14494 echo "$as_me:$LINENO: result: yes" >&5
14495 echo "${ECHO_T}yes" >&6
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 echo "$as_me:$LINENO: result: no" >&5
14501 echo "${ECHO_T}no" >&6
14503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14506 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14507 cat >conftest.$ac_ext <<_ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14513 #include <netinet/in.h>
14517 struct ip_mreq mreq;
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524 (eval $ac_compile) 2>conftest.er1
14526 grep -v '^ *+' conftest.er1 >conftest.err
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_c_werror_flag"
14532 || test ! -s conftest.err'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try='test -s conftest.$ac_objext'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14545 cat >>confdefs.h <<\_ACEOF
14546 #define HAVE_STRUCT_IP_MREQ 1
14549 echo "$as_me:$LINENO: result: yes" >&5
14550 echo "${ECHO_T}yes" >&6
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 echo "$as_me:$LINENO: result: no" >&5
14556 echo "${ECHO_T}no" >&6
14558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14560 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14561 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include <netinet/in.h>
14572 struct ipv6_mreq mreq6;
14577 rm -f conftest.$ac_objext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579 (eval $ac_compile) 2>conftest.er1
14581 grep -v '^ *+' conftest.er1 >conftest.err
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -z "$ac_c_werror_flag"
14587 || test ! -s conftest.err'
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; } &&
14593 { ac_try='test -s conftest.$ac_objext'
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
14600 cat >>confdefs.h <<\_ACEOF
14601 #define HAVE_STRUCT_IPV6_MREQ 1
14604 echo "$as_me:$LINENO: result: yes" >&5
14605 echo "${ECHO_T}yes" >&6
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14610 echo "$as_me:$LINENO: result: no" >&5
14611 echo "${ECHO_T}no" >&6
14613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14615 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14616 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14617 cat >conftest.$ac_ext <<_ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 #include <netinet/in.h>
14627 struct sockaddr_in6 addr6;
14632 rm -f conftest.$ac_objext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634 (eval $ac_compile) 2>conftest.er1
14636 grep -v '^ *+' conftest.er1 >conftest.err
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
14641 { ac_try='test -z "$ac_c_werror_flag"
14642 || test ! -s conftest.err'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; } &&
14648 { ac_try='test -s conftest.$ac_objext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14655 cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_INET6 1
14659 echo "$as_me:$LINENO: result: yes" >&5
14660 echo "${ECHO_T}yes" >&6
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 echo "$as_me:$LINENO: result: no" >&5
14666 echo "${ECHO_T}no" >&6
14668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14670 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14671 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #define _POSIX_PII_SOCKET
14679 #include <sys/types.h>
14680 #include <sys/socket.h>
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691 (eval $ac_compile) 2>conftest.er1
14693 grep -v '^ *+' conftest.er1 >conftest.err
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
14698 { ac_try='test -z "$ac_c_werror_flag"
14699 || test ! -s conftest.err'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest.$ac_objext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14712 cat >>confdefs.h <<\_ACEOF
14713 #define HAVE_SOCKLEN_T 1
14716 echo "$as_me:$LINENO: result: yes" >&5
14717 echo "${ECHO_T}yes" >&6
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 echo "$as_me:$LINENO: result: no" >&5
14723 echo "${ECHO_T}no" >&6
14725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14727 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14728 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14739 struct tm tim; tim.tm_gmtoff = 0;
14744 rm -f conftest.$ac_objext
14745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14746 (eval $ac_compile) 2>conftest.er1
14748 grep -v '^ *+' conftest.er1 >conftest.err
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } &&
14753 { ac_try='test -z "$ac_c_werror_flag"
14754 || test ! -s conftest.err'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest.$ac_objext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14767 cat >>confdefs.h <<\_ACEOF
14768 #define STRUCT_TM_HAS_GMTOFF 1
14771 echo "$as_me:$LINENO: result: yes" >&5
14772 echo "${ECHO_T}yes" >&6
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 echo "$as_me:$LINENO: result: no" >&5
14778 echo "${ECHO_T}no" >&6
14779 echo "$as_me:$LINENO: checking for global timezone variable" >&5
14780 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14781 cat >conftest.$ac_ext <<_ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14791 void i(){long z2 = 2*timezone;}
14796 rm -f conftest.$ac_objext
14797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14798 (eval $ac_compile) 2>conftest.er1
14800 grep -v '^ *+' conftest.er1 >conftest.err
14802 cat conftest.err >&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } &&
14805 { ac_try='test -z "$ac_c_werror_flag"
14806 || test ! -s conftest.err'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; } &&
14812 { ac_try='test -s conftest.$ac_objext'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; }; then
14819 cat >>confdefs.h <<\_ACEOF
14820 #define HAVE_TIMEZONE 1
14823 echo "$as_me:$LINENO: result: yes" >&5
14824 echo "${ECHO_T}yes" >&6
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 echo "$as_me:$LINENO: result: no" >&5
14830 echo "${ECHO_T}no" >&6
14831 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14832 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14833 cat >conftest.$ac_ext <<_ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14843 long z2 = _timezone;
14848 rm -f conftest.$ac_objext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850 (eval $ac_compile) 2>conftest.er1
14852 grep -v '^ *+' conftest.er1 >conftest.err
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -z "$ac_c_werror_flag"
14858 || test ! -s conftest.err'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; } &&
14864 { ac_try='test -s conftest.$ac_objext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14871 cat >>confdefs.h <<\_ACEOF
14872 #define HAVE_UNDERSCORE_TIMEZONE 1
14875 echo "$as_me:$LINENO: result: yes" >&5
14876 echo "${ECHO_T}yes" >&6
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 echo "$as_me:$LINENO: result: no" >&5
14882 echo "${ECHO_T}no" >&6
14884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14890 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14891 # for constant arguments. Useless!
14892 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14893 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14894 if test "${ac_cv_working_alloca_h+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 if test x$gcc_no_link = xyes; then
14898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14900 { (exit 1); exit 1; }; }
14902 cat >conftest.$ac_ext <<_ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 #include <alloca.h>
14912 char *p = (char *) alloca (2 * sizeof (int));
14917 rm -f conftest.$ac_objext conftest$ac_exeext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14919 (eval $ac_link) 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -z "$ac_c_werror_flag"
14927 || test ! -s conftest.err'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest$ac_exeext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_working_alloca_h=yes
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 ac_cv_working_alloca_h=no
14946 rm -f conftest.err conftest.$ac_objext \
14947 conftest$ac_exeext conftest.$ac_ext
14949 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14950 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14951 if test $ac_cv_working_alloca_h = yes; then
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_ALLOCA_H 1
14959 echo "$as_me:$LINENO: checking for alloca" >&5
14960 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14961 if test "${ac_cv_func_alloca_works+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 if test x$gcc_no_link = xyes; then
14965 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14966 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14967 { (exit 1); exit 1; }; }
14969 cat >conftest.$ac_ext <<_ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14976 # define alloca __builtin_alloca
14979 # include <malloc.h>
14980 # define alloca _alloca
14983 # include <alloca.h>
14988 # ifndef alloca /* predefined by HP cc +Olibcalls */
14999 char *p = (char *) alloca (1);
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15006 (eval $ac_link) 2>conftest.er1
15008 grep -v '^ *+' conftest.er1 >conftest.err
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -z "$ac_c_werror_flag"
15014 || test ! -s conftest.err'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; } &&
15020 { ac_try='test -s conftest$ac_exeext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_func_alloca_works=yes
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_cv_func_alloca_works=no
15033 rm -f conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15036 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15037 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15039 if test $ac_cv_func_alloca_works = yes; then
15041 cat >>confdefs.h <<\_ACEOF
15042 #define HAVE_ALLOCA 1
15046 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15047 # that cause trouble. Some versions do not even contain alloca or
15048 # contain a buggy version. If you still want to use their alloca,
15049 # use ar to extract alloca.o from them instead of compiling alloca.c.
15051 ALLOCA=alloca.$ac_objext
15053 cat >>confdefs.h <<\_ACEOF
15058 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15059 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15060 if test "${ac_cv_os_cray+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 cat >conftest.$ac_ext <<_ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h. */
15069 #if defined(CRAY) && ! defined(CRAY2)
15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15077 $EGREP "webecray" >/dev/null 2>&1; then
15085 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15086 echo "${ECHO_T}$ac_cv_os_cray" >&6
15087 if test $ac_cv_os_cray = yes; then
15088 for ac_func in _getb67 GETB67 getb67; do
15089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15090 echo "$as_me:$LINENO: checking for $ac_func" >&5
15091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15092 if eval "test \"\${$as_ac_var+set}\" = set"; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 if test x$gcc_no_link = xyes; then
15096 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15098 { (exit 1); exit 1; }; }
15100 cat >conftest.$ac_ext <<_ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15108 #define $ac_func innocuous_$ac_func
15110 /* System header to define __stub macros and hopefully few prototypes,
15111 which can conflict with char $ac_func (); below.
15112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15113 <limits.h> exists even on freestanding compilers. */
15116 # include <limits.h>
15118 # include <assert.h>
15123 /* Override any gcc2 internal prototype to avoid an error. */
15128 /* We use char because int might match the return type of a gcc2
15129 builtin and then its argument prototype would still apply. */
15131 /* The GNU C library defines this for functions which it implements
15132 to always fail with ENOSYS. Some functions are actually named
15133 something starting with __ and the normal name is an alias. */
15134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15137 char (*f) () = $ac_func;
15146 return f != $ac_func;
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -z "$ac_c_werror_flag"
15161 || test ! -s conftest.err'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 eval "$as_ac_var=yes"
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 eval "$as_ac_var=no"
15180 rm -f conftest.err conftest.$ac_objext \
15181 conftest$ac_exeext conftest.$ac_ext
15183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15185 if test `eval echo '${'$as_ac_var'}'` = yes; then
15187 cat >>confdefs.h <<_ACEOF
15188 #define CRAY_STACKSEG_END $ac_func
15197 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15198 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15199 if test "${ac_cv_c_stack_direction+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 if test "$cross_compiling" = yes; then
15203 ac_cv_c_stack_direction=0
15205 cat >conftest.$ac_ext <<_ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15212 find_stack_direction ()
15214 static char *addr = 0;
15219 return find_stack_direction ();
15222 return (&dummy > addr) ? 1 : -1;
15228 exit (find_stack_direction () < 0);
15231 rm -f conftest$ac_exeext
15232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15233 (eval $ac_link) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_cv_c_stack_direction=1
15244 echo "$as_me: program exited with status $ac_status" >&5
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15248 ( exit $ac_status )
15249 ac_cv_c_stack_direction=-1
15251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15254 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15255 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15257 cat >>confdefs.h <<_ACEOF
15258 #define STACK_DIRECTION $ac_cv_c_stack_direction
15264 if test x$gcc_no_link = xyes; then
15265 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15266 ac_cv_func_mmap_fixed_mapped=no
15269 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15272 for ac_header in stdlib.h unistd.h
15274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15276 echo "$as_me:$LINENO: checking for $ac_header" >&5
15277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15284 # Is the header compilable?
15285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 $ac_includes_default
15294 #include <$ac_header>
15296 rm -f conftest.$ac_objext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15298 (eval $ac_compile) 2>conftest.er1
15300 grep -v '^ *+' conftest.er1 >conftest.err
15302 cat conftest.err >&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -z "$ac_c_werror_flag"
15306 || test ! -s conftest.err'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; } &&
15312 { ac_try='test -s conftest.$ac_objext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 ac_header_compiler=yes
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_header_compiler=no
15325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15327 echo "${ECHO_T}$ac_header_compiler" >&6
15329 # Is the header present?
15330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15332 cat >conftest.$ac_ext <<_ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 #include <$ac_header>
15340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15343 grep -v '^ *+' conftest.er1 >conftest.err
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } >/dev/null; then
15348 if test -s conftest.err; then
15349 ac_cpp_err=$ac_c_preproc_warn_flag
15350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15357 if test -z "$ac_cpp_err"; then
15358 ac_header_preproc=yes
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_header_preproc=no
15365 rm -f conftest.err conftest.$ac_ext
15366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15367 echo "${ECHO_T}$ac_header_preproc" >&6
15369 # So? What about this header?
15370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15376 ac_header_preproc=yes
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15393 ## ---------------------------------- ##
15394 ## Report this to the libjava lists. ##
15395 ## ---------------------------------- ##
15398 sed "s/^/$as_me: WARNING: /" >&2
15401 echo "$as_me:$LINENO: checking for $ac_header" >&5
15402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 eval "$as_ac_Header=\$ac_header_preproc"
15408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15413 cat >>confdefs.h <<_ACEOF
15414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15422 for ac_func in getpagesize
15424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15425 echo "$as_me:$LINENO: checking for $ac_func" >&5
15426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15427 if eval "test \"\${$as_ac_var+set}\" = set"; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 if test x$gcc_no_link = xyes; then
15431 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15433 { (exit 1); exit 1; }; }
15435 cat >conftest.$ac_ext <<_ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15443 #define $ac_func innocuous_$ac_func
15445 /* System header to define __stub macros and hopefully few prototypes,
15446 which can conflict with char $ac_func (); below.
15447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15448 <limits.h> exists even on freestanding compilers. */
15451 # include <limits.h>
15453 # include <assert.h>
15458 /* Override any gcc2 internal prototype to avoid an error. */
15463 /* We use char because int might match the return type of a gcc2
15464 builtin and then its argument prototype would still apply. */
15466 /* The GNU C library defines this for functions which it implements
15467 to always fail with ENOSYS. Some functions are actually named
15468 something starting with __ and the normal name is an alias. */
15469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15472 char (*f) () = $ac_func;
15481 return f != $ac_func;
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488 (eval $ac_link) 2>conftest.er1
15490 grep -v '^ *+' conftest.er1 >conftest.err
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_c_werror_flag"
15496 || test ! -s conftest.err'
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; } &&
15502 { ac_try='test -s conftest$ac_exeext'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 eval "$as_ac_var=yes"
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 eval "$as_ac_var=no"
15515 rm -f conftest.err conftest.$ac_objext \
15516 conftest$ac_exeext conftest.$ac_ext
15518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15520 if test `eval echo '${'$as_ac_var'}'` = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15528 echo "$as_me:$LINENO: checking for working mmap" >&5
15529 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15530 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 if test "$cross_compiling" = yes; then
15534 ac_cv_func_mmap_fixed_mapped=no
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 $ac_includes_default
15543 /* malloc might have been renamed as rpl_malloc. */
15546 /* Thanks to Mike Haertel and Jim Avera for this test.
15547 Here is a matrix of mmap possibilities:
15548 mmap private not fixed
15549 mmap private fixed at somewhere currently unmapped
15550 mmap private fixed at somewhere already mapped
15551 mmap shared not fixed
15552 mmap shared fixed at somewhere currently unmapped
15553 mmap shared fixed at somewhere already mapped
15554 For private mappings, we should verify that changes cannot be read()
15555 back from the file, nor mmap's back from the file at a different
15556 address. (There have been systems where private was not correctly
15557 implemented like the infamous i386 svr4.0, and systems where the
15558 VM page cache was not coherent with the file system buffer cache
15559 like early versions of FreeBSD and possibly contemporary NetBSD.)
15560 For shared mappings, we should conversely verify that changes get
15561 propagated back to all the places they're supposed to be.
15563 Grep wants private fixed already mapped.
15564 The main things grep needs to know about mmap are:
15565 * does it exist and is it safe to write into the mmap'd area
15566 * how to use it (BSD variants) */
15569 #include <sys/mman.h>
15571 #if !STDC_HEADERS && !HAVE_STDLIB_H
15575 /* This mess was copied from the GNU getpagesize.h. */
15576 #if !HAVE_GETPAGESIZE
15577 /* Assume that all systems that can run configure have sys/param.h. */
15578 # if !HAVE_SYS_PARAM_H
15579 # define HAVE_SYS_PARAM_H 1
15582 # ifdef _SC_PAGESIZE
15583 # define getpagesize() sysconf(_SC_PAGESIZE)
15584 # else /* no _SC_PAGESIZE */
15585 # if HAVE_SYS_PARAM_H
15586 # include <sys/param.h>
15587 # ifdef EXEC_PAGESIZE
15588 # define getpagesize() EXEC_PAGESIZE
15589 # else /* no EXEC_PAGESIZE */
15591 # define getpagesize() NBPG * CLSIZE
15594 # endif /* no CLSIZE */
15595 # else /* no NBPG */
15597 # define getpagesize() NBPC
15598 # else /* no NBPC */
15600 # define getpagesize() PAGESIZE
15601 # endif /* PAGESIZE */
15602 # endif /* no NBPC */
15603 # endif /* no NBPG */
15604 # endif /* no EXEC_PAGESIZE */
15605 # else /* no HAVE_SYS_PARAM_H */
15606 # define getpagesize() 8192 /* punt totally */
15607 # endif /* no HAVE_SYS_PARAM_H */
15608 # endif /* no _SC_PAGESIZE */
15610 #endif /* no HAVE_GETPAGESIZE */
15615 char *data, *data2, *data3;
15619 pagesize = getpagesize ();
15621 /* First, make a file with some known garbage in it. */
15622 data = (char *) malloc (pagesize);
15625 for (i = 0; i < pagesize; ++i)
15626 *(data + i) = rand ();
15628 fd = creat ("conftest.mmap", 0600);
15631 if (write (fd, data, pagesize) != pagesize)
15635 /* Next, try to mmap the file at a fixed address which already has
15636 something else allocated at it. If we can, also make sure that
15637 we see the same garbage. */
15638 fd = open ("conftest.mmap", O_RDWR);
15641 data2 = (char *) malloc (2 * pagesize);
15644 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15645 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15646 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15648 for (i = 0; i < pagesize; ++i)
15649 if (*(data + i) != *(data2 + i))
15652 /* Finally, make sure that changes to the mapped area do not
15653 percolate back to the file as seen by read(). (This is a bug on
15654 some variants of i386 svr4.0.) */
15655 for (i = 0; i < pagesize; ++i)
15656 *(data2 + i) = *(data2 + i) + 1;
15657 data3 = (char *) malloc (pagesize);
15660 if (read (fd, data3, pagesize) != pagesize)
15662 for (i = 0; i < pagesize; ++i)
15663 if (*(data + i) != *(data3 + i))
15669 rm -f conftest$ac_exeext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15671 (eval $ac_link) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15680 ac_cv_func_mmap_fixed_mapped=yes
15682 echo "$as_me: program exited with status $ac_status" >&5
15683 echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15686 ( exit $ac_status )
15687 ac_cv_func_mmap_fixed_mapped=no
15689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15692 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15693 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15694 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15696 cat >>confdefs.h <<\_ACEOF
15697 #define HAVE_MMAP 1
15701 rm -f conftest.mmap
15705 for ac_prog in perl
15707 # Extract the first word of "$ac_prog", so it can be a program name with args.
15708 set dummy $ac_prog; ac_word=$2
15709 echo "$as_me:$LINENO: checking for $ac_word" >&5
15710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15711 if test "${ac_cv_prog_PERL+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 if test -n "$PERL"; then
15715 ac_cv_prog_PERL="$PERL" # Let the user override the test.
15717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15718 for as_dir in $PATH
15721 test -z "$as_dir" && as_dir=.
15722 for ac_exec_ext in '' $ac_executable_extensions; do
15723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15724 ac_cv_prog_PERL="$ac_prog"
15725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15733 PERL=$ac_cv_prog_PERL
15734 if test -n "$PERL"; then
15735 echo "$as_me:$LINENO: result: $PERL" >&5
15736 echo "${ECHO_T}$PERL" >&6
15738 echo "$as_me:$LINENO: result: no" >&5
15739 echo "${ECHO_T}no" >&6
15742 test -n "$PERL" && break
15744 test -n "$PERL" || PERL="false"
15748 SIGNAL_HANDLER_AUX=
15752 SIGNAL_HANDLER=include/i386-signal.h
15754 sparc*-sun-solaris*)
15755 SIGNAL_HANDLER=include/sparc-signal.h
15758 # SYSDEP_SOURCES=sysdep/ia64.c
15759 # test -d sysdep || mkdir sysdep
15762 SIGNAL_HANDLER=include/pa-signal.h
15765 SIGNAL_HANDLER=include/dwarf2-signal.h
15768 SIGNAL_HANDLER=include/powerpc-signal.h
15771 SIGNAL_HANDLER=include/dwarf2-signal.h
15774 SIGNAL_HANDLER=include/s390-signal.h
15777 SIGNAL_HANDLER=include/x86_64-signal.h
15778 SIGNAL_HANDLER_AUX=include/i386-signal.h
15781 SIGNAL_HANDLER=include/dwarf2-signal.h
15784 SIGNAL_HANDLER=include/sh-signal.h
15787 SIGNAL_HANDLER=include/win32-signal.h
15790 SIGNAL_HANDLER=include/mips-signal.h
15793 SIGNAL_HANDLER=include/darwin-signal.h
15796 SIGNAL_HANDLER=include/default-signal.h
15800 # If we're using sjlj exceptions, forget what we just learned.
15801 if test "$enable_sjlj_exceptions" = yes; then
15802 SIGNAL_HANDLER=include/default-signal.h
15803 SIGNAL_HANDLER_AUX=
15806 # Define here any compiler flags that you need in order to make backtrace() work.
15809 x86_64*-*-linux*|i?86-*)
15810 BACKTRACESPEC=-fno-omit-frame-pointer
15817 if test -z "$SIGNAL_HANDLER_AUX"; then
15818 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15821 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15824 if test "${multilib}" = "yes"; then
15825 multilib_arg="--enable-multilib"
15832 here=`${PWDCMD-pwd}`
15835 # We get this from the environment.
15838 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"
15841 ac_config_commands="$ac_config_commands default"
15844 cat >confcache <<\_ACEOF
15845 # This file is a shell script that caches the results of configure
15846 # tests run on this system so they can be shared between configure
15847 # scripts and configure runs, see configure's option --config-cache.
15848 # It is not useful on other systems. If it contains results you don't
15849 # want to keep, you may remove or edit it.
15851 # config.status only pays attention to the cache file if you give it
15852 # the --recheck option to rerun configure.
15854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15856 # following values.
15860 # The following way of writing the cache mishandles newlines in values,
15861 # but we know of no workaround that is simple, portable, and efficient.
15862 # So, don't put newlines in cache variables' values.
15863 # Ultrix sh set writes to stderr and can't be redirected directly,
15864 # and sets the high bit in the cache file unless we assign to the vars.
15867 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15869 # `set' does not quote correctly, so add quotes (double-quote
15870 # substitution turns \\\\ into \\, and sed turns \\ into \).
15873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15876 # `set' quotes correctly as required by POSIX, so do not add quotes.
15878 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15887 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15889 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15890 if test -w $cache_file; then
15891 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15892 cat confcache >$cache_file
15894 echo "not updating unwritable cache $cache_file"
15899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15900 # Let make expand exec_prefix.
15901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15905 # trailing colons and then remove the whole line if VPATH becomes empty
15906 # (actually we leave an empty line to preserve line numbers).
15907 if test "x$srcdir" = x.; then
15908 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15909 s/:*\$(srcdir):*/:/;
15910 s/:*\${srcdir}:*/:/;
15912 s/^\([^=]*=[ ]*\):*/\1/;
15918 DEFS=-DHAVE_CONFIG_H
15922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15923 # 1. Remove the extension, and $U if already installed.
15924 ac_i=`echo "$ac_i" |
15925 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15927 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15928 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15930 LIBOBJS=$ac_libobjs
15932 LTLIBOBJS=$ac_ltlibobjs
15935 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15936 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15937 Usually this means the macro was only invoked conditionally." >&5
15938 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15939 Usually this means the macro was only invoked conditionally." >&2;}
15940 { (exit 1); exit 1; }; }
15942 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15943 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15944 Usually this means the macro was only invoked conditionally." >&5
15945 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15946 Usually this means the macro was only invoked conditionally." >&2;}
15947 { (exit 1); exit 1; }; }
15949 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15950 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15951 Usually this means the macro was only invoked conditionally." >&5
15952 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15953 Usually this means the macro was only invoked conditionally." >&2;}
15954 { (exit 1); exit 1; }; }
15956 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15957 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15958 Usually this means the macro was only invoked conditionally." >&5
15959 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15960 Usually this means the macro was only invoked conditionally." >&2;}
15961 { (exit 1); exit 1; }; }
15963 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15964 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15965 Usually this means the macro was only invoked conditionally." >&5
15966 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15967 Usually this means the macro was only invoked conditionally." >&2;}
15968 { (exit 1); exit 1; }; }
15970 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15971 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15972 Usually this means the macro was only invoked conditionally." >&5
15973 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15974 Usually this means the macro was only invoked conditionally." >&2;}
15975 { (exit 1); exit 1; }; }
15977 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15978 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15979 Usually this means the macro was only invoked conditionally." >&5
15980 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15981 Usually this means the macro was only invoked conditionally." >&2;}
15982 { (exit 1); exit 1; }; }
15984 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
15985 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
15986 Usually this means the macro was only invoked conditionally." >&5
15987 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
15988 Usually this means the macro was only invoked conditionally." >&2;}
15989 { (exit 1); exit 1; }; }
15991 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15992 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15993 Usually this means the macro was only invoked conditionally." >&5
15994 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15995 Usually this means the macro was only invoked conditionally." >&2;}
15996 { (exit 1); exit 1; }; }
15998 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15999 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16000 Usually this means the macro was only invoked conditionally." >&5
16001 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16002 Usually this means the macro was only invoked conditionally." >&2;}
16003 { (exit 1); exit 1; }; }
16005 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16006 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16007 Usually this means the macro was only invoked conditionally." >&5
16008 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16009 Usually this means the macro was only invoked conditionally." >&2;}
16010 { (exit 1); exit 1; }; }
16012 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16013 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16014 Usually this means the macro was only invoked conditionally." >&5
16015 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16016 Usually this means the macro was only invoked conditionally." >&2;}
16017 { (exit 1); exit 1; }; }
16019 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16020 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16021 Usually this means the macro was only invoked conditionally." >&5
16022 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16023 Usually this means the macro was only invoked conditionally." >&2;}
16024 { (exit 1); exit 1; }; }
16026 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16027 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16028 Usually this means the macro was only invoked conditionally." >&5
16029 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16030 Usually this means the macro was only invoked conditionally." >&2;}
16031 { (exit 1); exit 1; }; }
16033 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16034 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16035 Usually this means the macro was only invoked conditionally." >&5
16036 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16037 Usually this means the macro was only invoked conditionally." >&2;}
16038 { (exit 1); exit 1; }; }
16040 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16041 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16042 Usually this means the macro was only invoked conditionally." >&5
16043 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16044 Usually this means the macro was only invoked conditionally." >&2;}
16045 { (exit 1); exit 1; }; }
16047 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16048 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16049 Usually this means the macro was only invoked conditionally." >&5
16050 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16051 Usually this means the macro was only invoked conditionally." >&2;}
16052 { (exit 1); exit 1; }; }
16054 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16055 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16056 Usually this means the macro was only invoked conditionally." >&5
16057 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16058 Usually this means the macro was only invoked conditionally." >&2;}
16059 { (exit 1); exit 1; }; }
16061 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16062 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16063 Usually this means the macro was only invoked conditionally." >&5
16064 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16065 Usually this means the macro was only invoked conditionally." >&2;}
16066 { (exit 1); exit 1; }; }
16068 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16069 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16070 Usually this means the macro was only invoked conditionally." >&5
16071 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16072 Usually this means the macro was only invoked conditionally." >&2;}
16073 { (exit 1); exit 1; }; }
16075 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16076 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16077 Usually this means the macro was only invoked conditionally." >&5
16078 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16079 Usually this means the macro was only invoked conditionally." >&2;}
16080 { (exit 1); exit 1; }; }
16082 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16083 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16084 Usually this means the macro was only invoked conditionally." >&5
16085 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16086 Usually this means the macro was only invoked conditionally." >&2;}
16087 { (exit 1); exit 1; }; }
16089 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16090 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16091 Usually this means the macro was only invoked conditionally." >&5
16092 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16093 Usually this means the macro was only invoked conditionally." >&2;}
16094 { (exit 1); exit 1; }; }
16096 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16097 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16098 Usually this means the macro was only invoked conditionally." >&5
16099 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16100 Usually this means the macro was only invoked conditionally." >&2;}
16101 { (exit 1); exit 1; }; }
16104 : ${CONFIG_STATUS=./config.status}
16105 ac_clean_files_save=$ac_clean_files
16106 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16107 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16108 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16109 cat >$CONFIG_STATUS <<_ACEOF
16111 # Generated by $as_me.
16112 # Run this file to recreate the current configuration.
16113 # Compiler output produced by configure, useful for debugging
16114 # configure, is in config.log if it exists.
16117 ac_cs_recheck=false
16119 SHELL=\${CONFIG_SHELL-$SHELL}
16122 cat >>$CONFIG_STATUS <<\_ACEOF
16123 ## --------------------- ##
16124 ## M4sh Initialization. ##
16125 ## --------------------- ##
16127 # Be Bourne compatible
16128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16131 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16132 # is contrary to our usage. Disable this feature.
16133 alias -g '${1+"$@"}'='"$@"'
16134 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16137 DUALCASE=1; export DUALCASE # for MKS sh
16139 # Support unset when possible.
16140 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16147 # Work around bugs in pre-3.0 UWIN ksh.
16148 $as_unset ENV MAIL MAILPATH
16155 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16156 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16157 LC_TELEPHONE LC_TIME
16159 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16160 eval $as_var=C; export $as_var
16166 # Required to use basename.
16167 if expr a : '\(a\)' >/dev/null 2>&1; then
16173 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16174 as_basename=basename
16180 # Name of the executable.
16181 as_me=`$as_basename "$0" ||
16182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16183 X"$0" : 'X\(//\)$' \| \
16184 X"$0" : 'X\(/\)$' \| \
16185 . : '\(.\)' 2>/dev/null ||
16187 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16188 /^X\/\(\/\/\)$/{ s//\1/; q; }
16189 /^X\/\(\/\).*/{ s//\1/; q; }
16193 # PATH needs CR, and LINENO needs CR and PATH.
16194 # Avoid depending upon Character Ranges.
16195 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16196 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16197 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16198 as_cr_digits='0123456789'
16199 as_cr_alnum=$as_cr_Letters$as_cr_digits
16201 # The user is always right.
16202 if test "${PATH_SEPARATOR+set}" != set; then
16203 echo "#! /bin/sh" >conf$$.sh
16204 echo "exit 0" >>conf$$.sh
16206 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16215 as_lineno_1=$LINENO
16216 as_lineno_2=$LINENO
16217 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16218 test "x$as_lineno_1" != "x$as_lineno_2" &&
16219 test "x$as_lineno_3" = "x$as_lineno_2" || {
16220 # Find who we are. Look in the path if we contain no path at all
16223 *[\\/]* ) as_myself=$0 ;;
16224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16225 for as_dir in $PATH
16228 test -z "$as_dir" && as_dir=.
16229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16234 # We did not find ourselves, most probably we were run as `sh COMMAND'
16235 # in which case we are not to be found in the path.
16236 if test "x$as_myself" = x; then
16239 if test ! -f "$as_myself"; then
16240 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16241 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16242 { (exit 1); exit 1; }; }
16244 case $CONFIG_SHELL in
16246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16247 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16250 test -z "$as_dir" && as_dir=.
16251 for as_base in sh bash ksh sh5; do
16254 if ("$as_dir/$as_base" -c '
16255 as_lineno_1=$LINENO
16256 as_lineno_2=$LINENO
16257 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16258 test "x$as_lineno_1" != "x$as_lineno_2" &&
16259 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16260 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16261 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16262 CONFIG_SHELL=$as_dir/$as_base
16263 export CONFIG_SHELL
16264 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16273 # uniformly replaced by the line number. The first 'sed' inserts a
16274 # line-number line before each line; the second 'sed' does the real
16275 # work. The second script uses 'N' to pair each line-number line
16276 # with the numbered line, and appends trailing '-' during
16277 # substitution so that $LINENO is not a special case at line end.
16278 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16279 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16280 sed '=' <$as_myself |
16285 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16288 s,^['$as_cr_digits']*\n,,
16289 ' >$as_me.lineno &&
16290 chmod +x $as_me.lineno ||
16291 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16292 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16293 { (exit 1); exit 1; }; }
16295 # Don't try to exec as it changes $[0], causing all sort of problems
16296 # (the dirname of $[0] is not the place where we might find the
16297 # original and so on. Autoconf is especially sensible to this).
16299 # Exit status is that of the last command.
16304 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16305 *c*,-n*) ECHO_N= ECHO_C='
16307 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16308 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16311 if expr a : '\(a\)' >/dev/null 2>&1; then
16317 rm -f conf$$ conf$$.exe conf$$.file
16319 if ln -s conf$$.file conf$$ 2>/dev/null; then
16320 # We could just check for DJGPP; but this test a) works b) is more generic
16321 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16322 if test -f conf$$.exe; then
16323 # Don't use ln at all; we don't have any links
16328 elif ln conf$$.file conf$$ 2>/dev/null; then
16333 rm -f conf$$ conf$$.exe conf$$.file
16335 if mkdir -p . 2>/dev/null; then
16338 test -d ./-p && rmdir ./-p
16342 as_executable_p="test -f"
16344 # Sed expression to map a string onto a valid CPP name.
16345 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16347 # Sed expression to map a string onto a valid variable name.
16348 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16352 # We need space, tab and new line, in precisely that order.
16362 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16363 # report actual input values of CONFIG_FILES etc. instead of their
16364 # values after options handling. Logging --version etc. is OK.
16368 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16369 ## Running $as_me. ##
16374 This file was extended by libjava $as_me version-unused, which was
16375 generated by GNU Autoconf 2.59. Invocation command line was
16377 CONFIG_FILES = $CONFIG_FILES
16378 CONFIG_HEADERS = $CONFIG_HEADERS
16379 CONFIG_LINKS = $CONFIG_LINKS
16380 CONFIG_COMMANDS = $CONFIG_COMMANDS
16384 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16388 # Files that config.status was made for.
16389 if test -n "$ac_config_files"; then
16390 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16393 if test -n "$ac_config_headers"; then
16394 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16397 if test -n "$ac_config_links"; then
16398 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16401 if test -n "$ac_config_commands"; then
16402 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16405 cat >>$CONFIG_STATUS <<\_ACEOF
16408 \`$as_me' instantiates files from templates according to the
16409 current configuration.
16411 Usage: $0 [OPTIONS] [FILE]...
16413 -h, --help print this help, then exit
16414 -V, --version print version number, then exit
16415 -q, --quiet do not print progress messages
16416 -d, --debug don't remove temporary files
16417 --recheck update $as_me by reconfiguring in the same conditions
16418 --file=FILE[:TEMPLATE]
16419 instantiate the configuration file FILE
16420 --header=FILE[:TEMPLATE]
16421 instantiate the configuration header FILE
16423 Configuration files:
16426 Configuration headers:
16429 Configuration links:
16432 Configuration commands:
16435 Report bugs to <bug-autoconf@gnu.org>."
16438 cat >>$CONFIG_STATUS <<_ACEOF
16440 libjava config.status version-unused
16441 configured by $0, generated by GNU Autoconf 2.59,
16442 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16444 Copyright (C) 2003 Free Software Foundation, Inc.
16445 This config.status script is free software; the Free Software Foundation
16446 gives unlimited permission to copy, distribute and modify it."
16451 cat >>$CONFIG_STATUS <<\_ACEOF
16452 # If no file are specified by the user, then we need to provide default
16453 # value. By we need to know if files were specified by the user.
16459 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16460 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16468 *) # This is not an option, so the user has probably given explicit
16471 ac_need_defaults=false;;
16475 # Handling of the options.
16477 cat >>$CONFIG_STATUS <<\_ACEOF
16478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16480 --version | --vers* | -V )
16481 echo "$ac_cs_version"; exit 0 ;;
16483 # Conflict between --help and --header
16484 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16485 Try \`$0 --help' for more information." >&5
16486 echo "$as_me: error: ambiguous option: $1
16487 Try \`$0 --help' for more information." >&2;}
16488 { (exit 1); exit 1; }; };;
16489 --help | --hel | -h )
16490 echo "$ac_cs_usage"; exit 0 ;;
16491 --debug | --d* | -d )
16493 --file | --fil | --fi | --f )
16495 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16496 ac_need_defaults=false;;
16497 --header | --heade | --head | --hea )
16499 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16500 ac_need_defaults=false;;
16501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16502 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16505 # This is an error.
16506 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16507 Try \`$0 --help' for more information." >&5
16508 echo "$as_me: error: unrecognized option: $1
16509 Try \`$0 --help' for more information." >&2;}
16510 { (exit 1); exit 1; }; } ;;
16512 *) ac_config_targets="$ac_config_targets $1" ;;
16518 ac_configure_extra_args=
16520 if $ac_cs_silent; then
16522 ac_configure_extra_args="$ac_configure_extra_args --silent"
16526 cat >>$CONFIG_STATUS <<_ACEOF
16527 if \$ac_cs_recheck; then
16528 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16529 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16534 cat >>$CONFIG_STATUS <<_ACEOF
16536 # INIT-COMMANDS section.
16539 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16543 with_multisubdir=${with_multisubdir}
16544 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16545 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16546 libgcj_basedir=${libgcj_basedir}
16549 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16556 cat >>$CONFIG_STATUS <<\_ACEOF
16557 for ac_config_target in $ac_config_targets
16559 case "$ac_config_target" in
16560 # Handling of arguments.
16561 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16562 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16563 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16564 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16565 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16566 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16567 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16568 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16569 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16570 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16571 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16572 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16573 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16574 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16575 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16576 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16577 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16578 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16579 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16580 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16581 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16582 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16583 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16584 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16585 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16586 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16587 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16588 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16589 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16590 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16591 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16592 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16593 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16594 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16595 { (exit 1); exit 1; }; };;
16599 # If the user did not use the arguments to specify the items to instantiate,
16600 # then the envvar interface is used. Set only those that are not.
16601 # We use the long form for the default assignment because of an extremely
16602 # bizarre bug on SunOS 4.1.3.
16603 if $ac_need_defaults; then
16604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16605 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16606 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16610 # Have a temporary directory for convenience. Make it in the build tree
16611 # simply because there is no reason to put it here, and in addition,
16612 # creating and moving files from /tmp can sometimes cause problems.
16613 # Create a temporary directory, and hook for its removal unless debugging.
16616 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16617 trap '{ (exit 1); exit 1; }' 1 2 13 15
16620 # Create a (secure) tmp directory for tmp files.
16623 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16624 test -n "$tmp" && test -d "$tmp"
16627 tmp=./confstat$$-$RANDOM
16628 (umask 077 && mkdir $tmp)
16631 echo "$me: cannot create a temporary directory in ." >&2
16632 { (exit 1); exit 1; }
16637 cat >>$CONFIG_STATUS <<_ACEOF
16640 # CONFIG_FILES section.
16643 # No need to generate the scripts if there are no CONFIG_FILES.
16644 # This happens for instance when ./config.status config.h
16645 if test -n "\$CONFIG_FILES"; then
16646 # Protect against being on the right side of a sed subst in config.status.
16647 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16648 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16649 s,@SHELL@,$SHELL,;t t
16650 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16651 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16652 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16653 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16654 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16655 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16656 s,@exec_prefix@,$exec_prefix,;t t
16657 s,@prefix@,$prefix,;t t
16658 s,@program_transform_name@,$program_transform_name,;t t
16659 s,@bindir@,$bindir,;t t
16660 s,@sbindir@,$sbindir,;t t
16661 s,@libexecdir@,$libexecdir,;t t
16662 s,@datadir@,$datadir,;t t
16663 s,@sysconfdir@,$sysconfdir,;t t
16664 s,@sharedstatedir@,$sharedstatedir,;t t
16665 s,@localstatedir@,$localstatedir,;t t
16666 s,@libdir@,$libdir,;t t
16667 s,@includedir@,$includedir,;t t
16668 s,@oldincludedir@,$oldincludedir,;t t
16669 s,@infodir@,$infodir,;t t
16670 s,@mandir@,$mandir,;t t
16671 s,@build_alias@,$build_alias,;t t
16672 s,@host_alias@,$host_alias,;t t
16673 s,@target_alias@,$target_alias,;t t
16674 s,@DEFS@,$DEFS,;t t
16675 s,@ECHO_C@,$ECHO_C,;t t
16676 s,@ECHO_N@,$ECHO_N,;t t
16677 s,@ECHO_T@,$ECHO_T,;t t
16678 s,@LIBS@,$LIBS,;t t
16679 s,@build@,$build,;t t
16680 s,@build_cpu@,$build_cpu,;t t
16681 s,@build_vendor@,$build_vendor,;t t
16682 s,@build_os@,$build_os,;t t
16683 s,@build_subdir@,$build_subdir,;t t
16684 s,@host_subdir@,$host_subdir,;t t
16685 s,@target_subdir@,$target_subdir,;t t
16686 s,@libgcj_basedir@,$libgcj_basedir,;t t
16687 s,@host@,$host,;t t
16688 s,@host_cpu@,$host_cpu,;t t
16689 s,@host_vendor@,$host_vendor,;t t
16690 s,@host_os@,$host_os,;t t
16691 s,@target@,$target,;t t
16692 s,@target_cpu@,$target_cpu,;t t
16693 s,@target_vendor@,$target_vendor,;t t
16694 s,@target_os@,$target_os,;t t
16695 s,@target_noncanonical@,$target_noncanonical,;t t
16696 s,@LN_S@,$LN_S,;t t
16697 s,@mkinstalldirs@,$mkinstalldirs,;t t
16699 s,@ac_ct_CC@,$ac_ct_CC,;t t
16700 s,@EXEEXT@,$EXEEXT,;t t
16701 s,@OBJEXT@,$OBJEXT,;t t
16703 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16704 s,@CFLAGS@,$CFLAGS,;t t
16705 s,@CXXFLAGS@,$CXXFLAGS,;t t
16706 s,@LDFLAGS@,$LDFLAGS,;t t
16707 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16708 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16709 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16710 s,@CYGPATH_W@,$CYGPATH_W,;t t
16711 s,@PACKAGE@,$PACKAGE,;t t
16712 s,@VERSION@,$VERSION,;t t
16713 s,@ACLOCAL@,$ACLOCAL,;t t
16714 s,@AUTOCONF@,$AUTOCONF,;t t
16715 s,@AUTOMAKE@,$AUTOMAKE,;t t
16716 s,@AUTOHEADER@,$AUTOHEADER,;t t
16717 s,@MAKEINFO@,$MAKEINFO,;t t
16718 s,@install_sh@,$install_sh,;t t
16719 s,@STRIP@,$STRIP,;t t
16720 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16721 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16722 s,@mkdir_p@,$mkdir_p,;t t
16724 s,@SET_MAKE@,$SET_MAKE,;t t
16725 s,@am__leading_dot@,$am__leading_dot,;t t
16726 s,@AMTAR@,$AMTAR,;t t
16727 s,@am__tar@,$am__tar,;t t
16728 s,@am__untar@,$am__untar,;t t
16729 s,@DEPDIR@,$DEPDIR,;t t
16730 s,@am__include@,$am__include,;t t
16731 s,@am__quote@,$am__quote,;t t
16732 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16733 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16734 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16735 s,@CCDEPMODE@,$CCDEPMODE,;t t
16736 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16737 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16738 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16739 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16740 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16742 s,@ac_ct_AS@,$ac_ct_AS,;t t
16744 s,@ac_ct_AR@,$ac_ct_AR,;t t
16745 s,@RANLIB@,$RANLIB,;t t
16746 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16747 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16748 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16749 s,@MAINT@,$MAINT,;t t
16750 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16751 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16752 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16753 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16754 s,@INCLTDL@,$INCLTDL,;t t
16755 s,@LIBLTDL@,$LIBLTDL,;t t
16756 s,@DIRLTDL@,$DIRLTDL,;t t
16757 s,@LIBTOOL@,$LIBTOOL,;t t
16758 s,@CXXCPP@,$CXXCPP,;t t
16759 s,@CPPFLAGS@,$CPPFLAGS,;t t
16761 s,@GCJFLAGS@,$GCJFLAGS,;t t
16762 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16763 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16764 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16765 s,@subdirs@,$subdirs,;t t
16766 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16767 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16768 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16769 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16770 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
16771 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
16772 s,@JAVA_HOME@,$JAVA_HOME,;t t
16773 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16774 s,@INTERPRETER@,$INTERPRETER,;t t
16775 s,@LIBFFI@,$LIBFFI,;t t
16776 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16777 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16779 s,@EGREP@,$EGREP,;t t
16780 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16781 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16782 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16783 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16784 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16785 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16786 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16787 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16788 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16789 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16790 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16791 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16792 s,@X_CFLAGS@,$X_CFLAGS,;t t
16793 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16794 s,@X_LIBS@,$X_LIBS,;t t
16795 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16796 s,@TOOLKIT@,$TOOLKIT,;t t
16797 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16798 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16799 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16800 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16801 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16802 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16803 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16804 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16805 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16806 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16807 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16808 s,@GCLIBS@,$GCLIBS,;t t
16809 s,@GCINCS@,$GCINCS,;t t
16810 s,@GCDEPS@,$GCDEPS,;t t
16811 s,@GCSPEC@,$GCSPEC,;t t
16812 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16813 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16814 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16815 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16816 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16817 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16818 s,@THREADLIBS@,$THREADLIBS,;t t
16819 s,@THREADINCS@,$THREADINCS,;t t
16820 s,@THREADDEPS@,$THREADDEPS,;t t
16821 s,@THREADSPEC@,$THREADSPEC,;t t
16822 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16823 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16824 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16825 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16826 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16827 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16828 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16829 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16830 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16831 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16832 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16833 s,@LIBICONV@,$LIBICONV,;t t
16834 s,@LTLIBICONV@,$LTLIBICONV,;t t
16835 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16836 s,@GTK_LIBS@,$GTK_LIBS,;t t
16837 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16838 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16839 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16840 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16841 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16842 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16843 s,@GCJH@,$GCJH,;t t
16845 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16846 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16847 s,@ZLIBS@,$ZLIBS,;t t
16848 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16849 s,@ZINCS@,$ZINCS,;t t
16850 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16851 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16852 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16853 s,@IEEESPEC@,$IEEESPEC,;t t
16854 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16855 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16856 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16857 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16858 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16859 s,@toolexecdir@,$toolexecdir,;t t
16860 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16861 s,@toolexeclibdir@,$toolexeclibdir,;t t
16862 s,@GCJVERSION@,$GCJVERSION,;t t
16863 s,@gxx_include_dir@,$gxx_include_dir,;t t
16864 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16865 s,@ALLOCA@,$ALLOCA,;t t
16866 s,@PERL@,$PERL,;t t
16867 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16868 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16869 s,@here@,$here,;t t
16870 s,@LIBOBJS@,$LIBOBJS,;t t
16871 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16876 cat >>$CONFIG_STATUS <<\_ACEOF
16877 # Split the substitutions into bite-sized pieces for seds with
16878 # small command number limits, like on Digital OSF/1 and HP-UX.
16879 ac_max_sed_lines=48
16880 ac_sed_frag=1 # Number of current file.
16881 ac_beg=1 # First line for current file.
16882 ac_end=$ac_max_sed_lines # Line after last line for current file.
16885 while $ac_more_lines; do
16886 if test $ac_beg -gt 1; then
16887 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16889 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16891 if test ! -s $tmp/subs.frag; then
16892 ac_more_lines=false
16894 # The purpose of the label and of the branching condition is to
16895 # speed up the sed processing (if there are no `@' at all, there
16896 # is no need to browse any of the substitutions).
16897 # These are the two extra sed commands mentioned above.
16899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16900 if test -z "$ac_sed_cmds"; then
16901 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16903 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16905 ac_sed_frag=`expr $ac_sed_frag + 1`
16907 ac_end=`expr $ac_end + $ac_max_sed_lines`
16910 if test -z "$ac_sed_cmds"; then
16913 fi # test -n "$CONFIG_FILES"
16916 cat >>$CONFIG_STATUS <<\_ACEOF
16917 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16920 - | *:- | *:-:* ) # input from stdin
16922 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16923 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16924 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16925 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16926 * ) ac_file_in=$ac_file.in ;;
16929 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16930 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16932 X"$ac_file" : 'X\(//\)[^/]' \| \
16933 X"$ac_file" : 'X\(//\)$' \| \
16934 X"$ac_file" : 'X\(/\)' \| \
16935 . : '\(.\)' 2>/dev/null ||
16937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16939 /^X\(\/\/\)$/{ s//\1/; q; }
16940 /^X\(\/\).*/{ s//\1/; q; }
16942 { if $as_mkdir_p; then
16947 while test ! -d "$as_dir"; do
16948 as_dirs="$as_dir $as_dirs"
16949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16951 X"$as_dir" : 'X\(//\)[^/]' \| \
16952 X"$as_dir" : 'X\(//\)$' \| \
16953 X"$as_dir" : 'X\(/\)' \| \
16954 . : '\(.\)' 2>/dev/null ||
16956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16958 /^X\(\/\/\)$/{ s//\1/; q; }
16959 /^X\(\/\).*/{ s//\1/; q; }
16962 test ! -n "$as_dirs" || mkdir $as_dirs
16963 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16965 { (exit 1); exit 1; }; }; }
16969 if test "$ac_dir" != .; then
16970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16971 # A "../" for each directory in $ac_dir_suffix.
16972 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16974 ac_dir_suffix= ac_top_builddir=
16978 .) # No --srcdir option. We are building in place.
16980 if test -z "$ac_top_builddir"; then
16983 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16985 [\\/]* | ?:[\\/]* ) # Absolute path.
16986 ac_srcdir=$srcdir$ac_dir_suffix;
16987 ac_top_srcdir=$srcdir ;;
16988 *) # Relative path.
16989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16993 # Do not use `cd foo && pwd` to compute absolute paths, because
16994 # the directories may not exist.
16996 .) ac_abs_builddir="$ac_dir";;
16999 .) ac_abs_builddir=`pwd`;;
17000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17004 case $ac_abs_builddir in
17005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17007 case ${ac_top_builddir}. in
17008 .) ac_abs_top_builddir=$ac_abs_builddir;;
17009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17013 case $ac_abs_builddir in
17014 .) ac_abs_srcdir=$ac_srcdir;;
17017 .) ac_abs_srcdir=$ac_abs_builddir;;
17018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17022 case $ac_abs_builddir in
17023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17025 case $ac_top_srcdir in
17026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17034 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17035 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17038 if test x"$ac_file" != x-; then
17039 { echo "$as_me:$LINENO: creating $ac_file" >&5
17040 echo "$as_me: creating $ac_file" >&6;}
17043 # Let's still pretend it is `configure' which instantiates (i.e., don't
17044 # use $as_me), people would be surprised to read:
17045 # /* config.h. Generated by config.status. */
17046 if test x"$ac_file" = x-; then
17049 configure_input="$ac_file. "
17051 configure_input=$configure_input"Generated from `echo $ac_file_in |
17052 sed 's,.*/,,'` by configure."
17054 # First look for the input files in the build tree, otherwise in the
17056 ac_file_inputs=`IFS=:
17057 for f in $ac_file_in; do
17059 -) echo $tmp/stdin ;;
17061 # Absolute (can't be DOS-style, as IFS=:)
17062 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17063 echo "$as_me: error: cannot find input file: $f" >&2;}
17064 { (exit 1); exit 1; }; }
17067 if test -f "$f"; then
17070 elif test -f "$srcdir/$f"; then
17075 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17076 echo "$as_me: error: cannot find input file: $f" >&2;}
17077 { (exit 1); exit 1; }; }
17080 done` || { (exit 1); exit 1; }
17082 cat >>$CONFIG_STATUS <<_ACEOF
17086 cat >>$CONFIG_STATUS <<\_ACEOF
17088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17089 s,@configure_input@,$configure_input,;t t
17090 s,@srcdir@,$ac_srcdir,;t t
17091 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17092 s,@top_srcdir@,$ac_top_srcdir,;t t
17093 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17094 s,@builddir@,$ac_builddir,;t t
17095 s,@abs_builddir@,$ac_abs_builddir,;t t
17096 s,@top_builddir@,$ac_top_builddir,;t t
17097 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17098 s,@INSTALL@,$ac_INSTALL,;t t
17099 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17101 if test x"$ac_file" != x-; then
17102 mv $tmp/out $ac_file
17110 cat >>$CONFIG_STATUS <<\_ACEOF
17113 # CONFIG_HEADER section.
17116 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17117 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17119 # ac_d sets the value in "#define NAME VALUE" lines.
17120 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17121 ac_dB='[ ].*$,\1#\2'
17124 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17125 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17126 ac_uB='$,\1#\2define\3'
17130 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17131 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17133 - | *:- | *:-:* ) # input from stdin
17135 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17137 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17139 * ) ac_file_in=$ac_file.in ;;
17142 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17143 echo "$as_me: creating $ac_file" >&6;}
17145 # First look for the input files in the build tree, otherwise in the
17147 ac_file_inputs=`IFS=:
17148 for f in $ac_file_in; do
17150 -) echo $tmp/stdin ;;
17152 # Absolute (can't be DOS-style, as IFS=:)
17153 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17154 echo "$as_me: error: cannot find input file: $f" >&2;}
17155 { (exit 1); exit 1; }; }
17156 # Do quote $f, to prevent DOS paths from being IFS'd.
17159 if test -f "$f"; then
17162 elif test -f "$srcdir/$f"; then
17167 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17168 echo "$as_me: error: cannot find input file: $f" >&2;}
17169 { (exit 1); exit 1; }; }
17172 done` || { (exit 1); exit 1; }
17173 # Remove the trailing spaces.
17174 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17178 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17179 # `conftest.undefs', that substitutes the proper values into
17180 # config.h.in to produce config.h. The first handles `#define'
17181 # templates, and the second `#undef' templates.
17182 # And first: Protect against being on the right side of a sed subst in
17183 # config.status. Protect against being in an unquoted here document
17184 # in config.status.
17185 rm -f conftest.defines conftest.undefs
17186 # Using a here document instead of a string reduces the quoting nightmare.
17187 # Putting comments in sed scripts is not portable.
17189 # `end' is used to avoid that the second main sed command (meant for
17190 # 0-ary CPP macros) applies to n-ary macro definitions.
17191 # See the Autoconf documentation for `clear'.
17192 cat >confdef2sed.sed <<\_ACEOF
17197 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17199 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17202 # If some macros were called several times there might be several times
17203 # the same #defines, which is useless. Nevertheless, we may not want to
17204 # sort them, since we want the *last* AC-DEFINE to be honored.
17205 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17206 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17207 rm -f confdef2sed.sed
17209 # This sed command replaces #undef with comments. This is necessary, for
17210 # example, in the case of _POSIX_SOURCE, which is predefined and required
17211 # on some systems where configure will not decide to define it.
17212 cat >>conftest.undefs <<\_ACEOF
17213 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17216 # Break up conftest.defines because some shells have a limit on the size
17217 # of here documents, and old seds have small limits too (100 cmds).
17218 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17219 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17220 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17221 echo ' :' >>$CONFIG_STATUS
17222 rm -f conftest.tail
17223 while grep . conftest.defines >/dev/null
17225 # Write a limited-size here document to $tmp/defines.sed.
17226 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17227 # Speed up: don't consider the non `#define' lines.
17228 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17229 # Work around the forget-to-reset-the-flag bug.
17230 echo 't clr' >>$CONFIG_STATUS
17231 echo ': clr' >>$CONFIG_STATUS
17232 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17234 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17236 mv $tmp/out $tmp/in
17238 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17239 rm -f conftest.defines
17240 mv conftest.tail conftest.defines
17242 rm -f conftest.defines
17243 echo ' fi # grep' >>$CONFIG_STATUS
17244 echo >>$CONFIG_STATUS
17246 # Break up conftest.undefs because some shells have a limit on the size
17247 # of here documents, and old seds have small limits too (100 cmds).
17248 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17249 rm -f conftest.tail
17250 while grep . conftest.undefs >/dev/null
17252 # Write a limited-size here document to $tmp/undefs.sed.
17253 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17254 # Speed up: don't consider the non `#undef'
17255 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17256 # Work around the forget-to-reset-the-flag bug.
17257 echo 't clr' >>$CONFIG_STATUS
17258 echo ': clr' >>$CONFIG_STATUS
17259 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17261 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17263 mv $tmp/out $tmp/in
17265 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17266 rm -f conftest.undefs
17267 mv conftest.tail conftest.undefs
17269 rm -f conftest.undefs
17271 cat >>$CONFIG_STATUS <<\_ACEOF
17272 # Let's still pretend it is `configure' which instantiates (i.e., don't
17273 # use $as_me), people would be surprised to read:
17274 # /* config.h. Generated by config.status. */
17275 if test x"$ac_file" = x-; then
17276 echo "/* Generated by configure. */" >$tmp/config.h
17278 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17280 cat $tmp/in >>$tmp/config.h
17282 if test x"$ac_file" != x-; then
17283 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17284 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17285 echo "$as_me: $ac_file is unchanged" >&6;}
17287 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17289 X"$ac_file" : 'X\(//\)[^/]' \| \
17290 X"$ac_file" : 'X\(//\)$' \| \
17291 X"$ac_file" : 'X\(/\)' \| \
17292 . : '\(.\)' 2>/dev/null ||
17294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17296 /^X\(\/\/\)$/{ s//\1/; q; }
17297 /^X\(\/\).*/{ s//\1/; q; }
17299 { if $as_mkdir_p; then
17304 while test ! -d "$as_dir"; do
17305 as_dirs="$as_dir $as_dirs"
17306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17308 X"$as_dir" : 'X\(//\)[^/]' \| \
17309 X"$as_dir" : 'X\(//\)$' \| \
17310 X"$as_dir" : 'X\(/\)' \| \
17311 . : '\(.\)' 2>/dev/null ||
17313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17315 /^X\(\/\/\)$/{ s//\1/; q; }
17316 /^X\(\/\).*/{ s//\1/; q; }
17319 test ! -n "$as_dirs" || mkdir $as_dirs
17320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17322 { (exit 1); exit 1; }; }; }
17325 mv $tmp/config.h $ac_file
17329 rm -f $tmp/config.h
17331 # Compute $ac_file's index in $config_headers.
17333 for _am_header in $config_headers :; do
17334 case $_am_header in
17335 $ac_file | $ac_file:* )
17338 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17341 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17342 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17343 X$ac_file : 'X\(//\)[^/]' \| \
17344 X$ac_file : 'X\(//\)$' \| \
17345 X$ac_file : 'X\(/\)' \| \
17346 . : '\(.\)' 2>/dev/null ||
17348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17350 /^X\(\/\/\)$/{ s//\1/; q; }
17351 /^X\(\/\).*/{ s//\1/; q; }
17352 s/.*/./; q'`/stamp-h$_am_stamp_count
17355 cat >>$CONFIG_STATUS <<\_ACEOF
17358 # CONFIG_LINKS section.
17361 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17362 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17363 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17365 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17366 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17368 if test ! -r $srcdir/$ac_source; then
17369 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17370 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17371 { (exit 1); exit 1; }; }
17375 # Make relative symlinks.
17376 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17377 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17378 X"$ac_dest" : 'X\(//\)[^/]' \| \
17379 X"$ac_dest" : 'X\(//\)$' \| \
17380 X"$ac_dest" : 'X\(/\)' \| \
17381 . : '\(.\)' 2>/dev/null ||
17383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17385 /^X\(\/\/\)$/{ s//\1/; q; }
17386 /^X\(\/\).*/{ s//\1/; q; }
17388 { if $as_mkdir_p; then
17389 mkdir -p "$ac_dest_dir"
17391 as_dir="$ac_dest_dir"
17393 while test ! -d "$as_dir"; do
17394 as_dirs="$as_dir $as_dirs"
17395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17397 X"$as_dir" : 'X\(//\)[^/]' \| \
17398 X"$as_dir" : 'X\(//\)$' \| \
17399 X"$as_dir" : 'X\(/\)' \| \
17400 . : '\(.\)' 2>/dev/null ||
17402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17404 /^X\(\/\/\)$/{ s//\1/; q; }
17405 /^X\(\/\).*/{ s//\1/; q; }
17408 test ! -n "$as_dirs" || mkdir $as_dirs
17409 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17410 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17411 { (exit 1); exit 1; }; }; }
17415 if test "$ac_dest_dir" != .; then
17416 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17417 # A "../" for each directory in $ac_dir_suffix.
17418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17420 ac_dir_suffix= ac_top_builddir=
17424 .) # No --srcdir option. We are building in place.
17426 if test -z "$ac_top_builddir"; then
17429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17431 [\\/]* | ?:[\\/]* ) # Absolute path.
17432 ac_srcdir=$srcdir$ac_dir_suffix;
17433 ac_top_srcdir=$srcdir ;;
17434 *) # Relative path.
17435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17439 # Do not use `cd foo && pwd` to compute absolute paths, because
17440 # the directories may not exist.
17442 .) ac_abs_builddir="$ac_dest_dir";;
17444 case "$ac_dest_dir" in
17445 .) ac_abs_builddir=`pwd`;;
17446 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17447 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17450 case $ac_abs_builddir in
17451 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17453 case ${ac_top_builddir}. in
17454 .) ac_abs_top_builddir=$ac_abs_builddir;;
17455 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17456 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17459 case $ac_abs_builddir in
17460 .) ac_abs_srcdir=$ac_srcdir;;
17463 .) ac_abs_srcdir=$ac_abs_builddir;;
17464 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17465 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17468 case $ac_abs_builddir in
17469 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17471 case $ac_top_srcdir in
17472 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17473 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17474 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17480 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17481 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17484 # Try a symlink, then a hard link, then a copy.
17485 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17486 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17487 cp -p $srcdir/$ac_source $ac_dest ||
17488 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17489 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17490 { (exit 1); exit 1; }; }
17493 cat >>$CONFIG_STATUS <<\_ACEOF
17496 # CONFIG_COMMANDS section.
17498 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17499 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17500 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17501 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17502 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17503 X"$ac_dest" : 'X\(//\)[^/]' \| \
17504 X"$ac_dest" : 'X\(//\)$' \| \
17505 X"$ac_dest" : 'X\(/\)' \| \
17506 . : '\(.\)' 2>/dev/null ||
17508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17510 /^X\(\/\/\)$/{ s//\1/; q; }
17511 /^X\(\/\).*/{ s//\1/; q; }
17513 { if $as_mkdir_p; then
17518 while test ! -d "$as_dir"; do
17519 as_dirs="$as_dir $as_dirs"
17520 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17522 X"$as_dir" : 'X\(//\)[^/]' \| \
17523 X"$as_dir" : 'X\(//\)$' \| \
17524 X"$as_dir" : 'X\(/\)' \| \
17525 . : '\(.\)' 2>/dev/null ||
17527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17529 /^X\(\/\/\)$/{ s//\1/; q; }
17530 /^X\(\/\).*/{ s//\1/; q; }
17533 test ! -n "$as_dirs" || mkdir $as_dirs
17534 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17535 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17536 { (exit 1); exit 1; }; }; }
17540 if test "$ac_dir" != .; then
17541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17542 # A "../" for each directory in $ac_dir_suffix.
17543 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17545 ac_dir_suffix= ac_top_builddir=
17549 .) # No --srcdir option. We are building in place.
17551 if test -z "$ac_top_builddir"; then
17554 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17556 [\\/]* | ?:[\\/]* ) # Absolute path.
17557 ac_srcdir=$srcdir$ac_dir_suffix;
17558 ac_top_srcdir=$srcdir ;;
17559 *) # Relative path.
17560 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17561 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17564 # Do not use `cd foo && pwd` to compute absolute paths, because
17565 # the directories may not exist.
17567 .) ac_abs_builddir="$ac_dir";;
17570 .) ac_abs_builddir=`pwd`;;
17571 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17572 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17575 case $ac_abs_builddir in
17576 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17578 case ${ac_top_builddir}. in
17579 .) ac_abs_top_builddir=$ac_abs_builddir;;
17580 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17581 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17584 case $ac_abs_builddir in
17585 .) ac_abs_srcdir=$ac_srcdir;;
17588 .) ac_abs_srcdir=$ac_abs_builddir;;
17589 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17590 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17593 case $ac_abs_builddir in
17594 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17596 case $ac_top_srcdir in
17597 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17598 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17599 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17604 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17605 echo "$as_me: executing $ac_dest commands" >&6;}
17607 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17608 # Strip MF so we end up with the name of the file.
17609 mf=`echo "$mf" | sed -e 's/:.*$//'`
17610 # Check whether this is an Automake generated Makefile or not.
17611 # We used to match only the files named `Makefile.in', but
17612 # some people rename them; so instead we look at the file content.
17613 # Grep'ing the first line is not enough: some people post-process
17614 # each Makefile.in and add a new line on top of each file to say so.
17615 # So let's grep whole file.
17616 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17617 dirpart=`(dirname "$mf") 2>/dev/null ||
17618 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17619 X"$mf" : 'X\(//\)[^/]' \| \
17620 X"$mf" : 'X\(//\)$' \| \
17621 X"$mf" : 'X\(/\)' \| \
17622 . : '\(.\)' 2>/dev/null ||
17624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17626 /^X\(\/\/\)$/{ s//\1/; q; }
17627 /^X\(\/\).*/{ s//\1/; q; }
17632 # Extract the definition of DEPDIR, am__include, and am__quote
17633 # from the Makefile without running `make'.
17634 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17635 test -z "$DEPDIR" && continue
17636 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17637 test -z "am__include" && continue
17638 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17639 # When using ansi2knr, U may be empty or an underscore; expand it
17640 U=`sed -n 's/^U = //p' < "$mf"`
17641 # Find all dependency output files, they are included files with
17642 # $(DEPDIR) in their names. We invoke sed twice because it is the
17643 # simplest approach to changing $(DEPDIR) to its actual value in the
17645 for file in `sed -n "
17646 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17647 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17648 # Make sure the directory exists.
17649 test -f "$dirpart/$file" && continue
17650 fdir=`(dirname "$file") 2>/dev/null ||
17651 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17652 X"$file" : 'X\(//\)[^/]' \| \
17653 X"$file" : 'X\(//\)$' \| \
17654 X"$file" : 'X\(/\)' \| \
17655 . : '\(.\)' 2>/dev/null ||
17657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17659 /^X\(\/\/\)$/{ s//\1/; q; }
17660 /^X\(\/\).*/{ s//\1/; q; }
17662 { if $as_mkdir_p; then
17663 mkdir -p $dirpart/$fdir
17665 as_dir=$dirpart/$fdir
17667 while test ! -d "$as_dir"; do
17668 as_dirs="$as_dir $as_dirs"
17669 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17671 X"$as_dir" : 'X\(//\)[^/]' \| \
17672 X"$as_dir" : 'X\(//\)$' \| \
17673 X"$as_dir" : 'X\(/\)' \| \
17674 . : '\(.\)' 2>/dev/null ||
17676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17678 /^X\(\/\/\)$/{ s//\1/; q; }
17679 /^X\(\/\).*/{ s//\1/; q; }
17682 test ! -n "$as_dirs" || mkdir $as_dirs
17683 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17684 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17685 { (exit 1); exit 1; }; }; }
17687 # echo "creating $dirpart/$file"
17688 echo '# dummy' > "$dirpart/$file"
17692 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17693 case " $CONFIG_FILES " in
17695 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17696 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17699 for ac_multi_file in $CONFIG_FILES; do
17700 case $ac_multi_file in
17702 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
17710 cat >>$CONFIG_STATUS <<\_ACEOF
17712 { (exit 0); exit 0; }
17714 chmod +x $CONFIG_STATUS
17715 ac_clean_files=$ac_clean_files_save
17718 # configure is writing to config.log, and then calls config.status.
17719 # config.status does its own redirection, appending to config.log.
17720 # Unfortunately, on DOS this fails, as config.log is still kept open
17721 # by configure, so config.status won't be able to write to it; its
17722 # output is simply discarded. So we exec the FD to /dev/null,
17723 # effectively closing config.log, so it can be properly (re)opened and
17724 # appended to by config.status. When coming back to configure, we
17725 # need to make the FD available again.
17726 if test "$no_create" != yes; then
17728 ac_config_status_args=
17729 test "$silent" = yes &&
17730 ac_config_status_args="$ac_config_status_args --quiet"
17732 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17735 # would make configure fail if this is the last instruction.
17736 $ac_cs_success || { (exit 1); exit 1; }
17740 # CONFIG_SUBDIRS section.
17742 if test "$no_recursion" != yes; then
17744 # Remove --cache-file and --srcdir arguments so they do not pile up.
17745 ac_sub_configure_args=
17747 for ac_arg in $ac_configure_args; do
17748 if test -n "$ac_prev"; then
17753 -cache-file | --cache-file | --cache-fil | --cache-fi \
17754 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17755 ac_prev=cache_file ;;
17756 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17757 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17760 --config-cache | -C)
17762 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17764 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17766 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17768 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17770 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17774 # Always prepend --prefix to ensure using the same prefix
17775 # in subdir configurations.
17776 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17779 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17781 # Do not complain, so a configure script can configure whichever
17782 # parts of a large source tree are present.
17783 test -d $srcdir/$ac_dir || continue
17785 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17786 echo "$as_me: configuring in $ac_dir" >&6;}
17787 { if $as_mkdir_p; then
17792 while test ! -d "$as_dir"; do
17793 as_dirs="$as_dir $as_dirs"
17794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17796 X"$as_dir" : 'X\(//\)[^/]' \| \
17797 X"$as_dir" : 'X\(//\)$' \| \
17798 X"$as_dir" : 'X\(/\)' \| \
17799 . : '\(.\)' 2>/dev/null ||
17801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17803 /^X\(\/\/\)$/{ s//\1/; q; }
17804 /^X\(\/\).*/{ s//\1/; q; }
17807 test ! -n "$as_dirs" || mkdir $as_dirs
17808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17810 { (exit 1); exit 1; }; }; }
17814 if test "$ac_dir" != .; then
17815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17816 # A "../" for each directory in $ac_dir_suffix.
17817 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17819 ac_dir_suffix= ac_top_builddir=
17823 .) # No --srcdir option. We are building in place.
17825 if test -z "$ac_top_builddir"; then
17828 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17830 [\\/]* | ?:[\\/]* ) # Absolute path.
17831 ac_srcdir=$srcdir$ac_dir_suffix;
17832 ac_top_srcdir=$srcdir ;;
17833 *) # Relative path.
17834 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17835 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17838 # Do not use `cd foo && pwd` to compute absolute paths, because
17839 # the directories may not exist.
17841 .) ac_abs_builddir="$ac_dir";;
17844 .) ac_abs_builddir=`pwd`;;
17845 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17846 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17849 case $ac_abs_builddir in
17850 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17852 case ${ac_top_builddir}. in
17853 .) ac_abs_top_builddir=$ac_abs_builddir;;
17854 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17855 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17858 case $ac_abs_builddir in
17859 .) ac_abs_srcdir=$ac_srcdir;;
17862 .) ac_abs_srcdir=$ac_abs_builddir;;
17863 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17864 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17867 case $ac_abs_builddir in
17868 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17870 case $ac_top_srcdir in
17871 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17872 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17873 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17880 # Check for guested configure; otherwise get Cygnus style configure.
17881 if test -f $ac_srcdir/configure.gnu; then
17882 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17883 elif test -f $ac_srcdir/configure; then
17884 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17885 elif test -f $ac_srcdir/configure.in; then
17886 ac_sub_configure=$ac_configure
17888 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17889 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17893 # The recursion is here.
17894 if test -n "$ac_sub_configure"; then
17895 # Make the cache file name correct relative to the subdirectory.
17896 case $cache_file in
17897 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17898 *) # Relative path.
17899 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17902 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17903 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17904 # The eval makes quoting arguments work.
17905 eval $ac_sub_configure $ac_sub_configure_args \
17906 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17907 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17908 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17909 { (exit 1); exit 1; }; }