2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE QT_AWT_TRUE QT_AWT_FALSE GCJH ZIP INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC 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 CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --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-libgcj-debug enable runtime debugging code
861 --enable-java-awt list of AWT peer implementations to be built
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --disable-getenv-properties
867 don't set system properties from GCJ_PROPERTIES
868 --enable-hash-synchronization
869 use global hash table for monitor locks
870 --enable-gc-debug include full support for pointer backtracing etc.
871 --enable-interpreter enable interpreter
872 --enable-sjlj-exceptions
873 force use of builtin_setjmp for exceptions
874 --disable-java-net disable java.net
875 --disable-jvmpi disable JVMPI support
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
879 _g_switchUse thread-local storage
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-target-subdir=SUBDIR
886 configure in a subdirectory
887 --with-cross-host=HOST configure with a cross compiler from HOST
888 --with-newlib configure with newlib
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-pic try to use only PIC/non-PIC objects default=use both
891 --with-java-home=DIRECTORY
892 value of java.home system property
893 --with-win32-nlsapi=ansi or unicows or unicode
894 native MinGW libgcj Win32 OS API (default is ansi)
895 --without-libffi don't use libffi
896 --with-ecos enable runtime eCos target support
897 --with-system-zlib use installed libz
898 --with-x use the X Window System
899 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
900 --without-libiconv-prefix don't search for libiconv in includedir and libdir
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CXX C++ compiler command
910 CXXFLAGS C++ compiler flags
911 CXXCPP C++ preprocessor
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 ac_dir_suffix= ac_top_builddir=
936 .) # No --srcdir option. We are building in place.
938 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
954 .) ac_abs_builddir="$ac_dir";;
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1001 $ac_configure --help
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1012 libjava configure version-unused
1013 generated by GNU Autoconf 2.59
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by libjava $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1086 ac_must_keep_next=false
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1115 -* ) ac_must_keep_next=true ;;
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1144 # The following way of writing the cache mishandles newlines in values,
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1174 if test -n "$ac_subst_files"; then
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1189 if test -s confdefs.h; then
1196 sed "/^$/d" confdefs.h | sort
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1279 # Check that the precious variables saved in the cache have kept the same
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367 if test -f $ac_dir/install-sh; then
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1371 elif test -f $ac_dir/install.sh; then
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1375 elif test -f $ac_dir/shtool; then
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403 ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407 { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 case ${build_alias} in
1423 "") build_noncanonical=${build} ;;
1424 *) build_noncanonical=${build_alias} ;;
1427 case ${host_alias} in
1428 "") host_noncanonical=${build_noncanonical} ;;
1429 *) host_noncanonical=${host_alias} ;;
1432 case ${target_alias} in
1433 "") target_noncanonical=${host_noncanonical} ;;
1434 *) target_noncanonical=${target_alias} ;;
1437 # Prefix 'build-' so this never conflicts with target_subdir.
1438 build_subdir="build-${build_noncanonical}"
1439 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440 if ( test $srcdir = . && test -d gcc ) \
1441 || test -d $srcdir/../host-${host_noncanonical}; then
1442 host_subdir="host-${host_noncanonical}"
1447 target_subdir=${target_noncanonical}
1450 # We use these options to decide which functions to include.
1452 # Check whether --with-target-subdir or --without-target-subdir was given.
1453 if test "${with_target_subdir+set}" = set; then
1454 withval="$with_target_subdir"
1458 # We may get other options which we don't document:
1459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461 # When building with srcdir == objdir, links to the source files will
1462 # be created in directories within the target_subdir. We have to
1463 # adjust toplevel_srcdir accordingly, so that configure finds
1464 # install-sh and other auxiliary files that live in the top-level
1466 if test "${srcdir}" = "."; then
1467 if test -z "${with_target_subdir}"; then
1470 if test "${with_target_subdir}" != "."; then
1471 toprel="${with_multisrctop}../.."
1473 toprel="${with_multisrctop}.."
1480 libgcj_basedir=$srcdir/$toprel/./libjava
1483 echo "$as_me:$LINENO: checking host system type" >&5
1484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485 if test "${ac_cv_host+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 ac_cv_host_alias=$host_alias
1489 test -z "$ac_cv_host_alias" &&
1490 ac_cv_host_alias=$ac_cv_build_alias
1491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494 { (exit 1); exit 1; }; }
1497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498 echo "${ECHO_T}$ac_cv_host" >&6
1500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 echo "$as_me:$LINENO: checking target system type" >&5
1506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507 if test "${ac_cv_target+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 ac_cv_target_alias=$target_alias
1511 test "x$ac_cv_target_alias" = "x" &&
1512 ac_cv_target_alias=$ac_cv_host_alias
1513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520 echo "${ECHO_T}$ac_cv_target" >&6
1521 target=$ac_cv_target
1522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 # The aliases save the names the user supplied, while $host etc.
1528 # will get canonicalized.
1529 test -n "$target_alias" &&
1530 test "$program_prefix$program_suffix$program_transform_name" = \
1532 program_prefix=${target_alias}-
1533 case ${build_alias} in
1534 "") build_noncanonical=${build} ;;
1535 *) build_noncanonical=${build_alias} ;;
1538 case ${target_alias} in
1539 "") target_noncanonical=${host_noncanonical} ;;
1540 *) target_noncanonical=${target_alias} ;;
1546 # This works around the fact that libtool configuration may change LD
1547 # for this particular configuration, but some shells, instead of
1548 # keeping the changes in LD private, export them just because LD is
1550 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1555 if test "$LN_S" = "ln -s"; then
1556 echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560 echo "${ECHO_T}no, using $LN_S" >&6
1564 # This works around an automake problem.
1565 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1569 # Check whether --with-cross-host or --without-cross-host was given.
1570 if test "${with_cross_host+set}" = set; then
1571 withval="$with_cross_host"
1576 # Check whether --with-newlib or --without-newlib was given.
1577 if test "${with_newlib+set}" = set; then
1578 withval="$with_newlib"
1582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583 if test "${enable_version_specific_runtime_libs+set}" = set; then
1584 enableval="$enable_version_specific_runtime_libs"
1585 case "$enableval" in
1586 yes) version_specific_libs=yes ;;
1587 no) version_specific_libs=no ;;
1588 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590 { (exit 1); exit 1; }; };;
1593 version_specific_libs=no
1597 # Default to --enable-multilib
1598 # Check whether --enable-multilib or --disable-multilib was given.
1599 if test "${enable_multilib+set}" = set; then
1600 enableval="$enable_multilib"
1601 case "${enableval}" in
1602 yes) multilib=yes ;;
1604 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606 { (exit 1); exit 1; }; } ;;
1611 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1614 # (1) We use an abnormal CXX (without library references), so we
1615 # must cache it under a different name.
1616 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1617 # the non-multilib-adjusted value will be used in multilibs.
1618 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1619 # (4) As another side effect, automake doesn't automatically include them
1621 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1622 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1623 # used in later tests. This may not be necessary in libjava; I don't know.
1627 save_CXXFLAGS="$CXXFLAGS"
1628 CXXFLAGS="$CXXFLAGS -fno-builtin"
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1671 if test -z "$ac_cv_prog_CC"; then
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$ac_ct_CC"; then
1681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_ac_ct_CC="gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1713 if test -z "$CC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1753 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 if test $ac_prog_rejected = yes; then
1825 # We found a bogon in the path, so make sure we never use it.
1826 set dummy $ac_cv_prog_CC
1828 if test $# != 0; then
1829 # We chose a different compiler from the bogus one.
1830 # However, it has the same basename, so the bogon will be chosen
1831 # first if we set CC to just the basename; use the full file name.
1833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$CC" && break
1890 if test -z "$CC"; then
1894 # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$ac_ct_CC" && break
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946 "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949 (eval $ac_compiler --version </dev/null >&5) 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954 (eval $ac_compiler -v </dev/null >&5) 2>&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959 (eval $ac_compiler -V </dev/null >&5) 2>&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1964 cat >conftest.$ac_ext <<_ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1981 (eval $ac_link) 2>&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1990 if test x$gcc_no_link = xyes; then
1991 # Setting cross_compile will disable run tests; it will
1992 # also disable AC_CHECK_FILE but that's generally
1993 # correct if we can't link.
1997 cat >conftest.$ac_ext <<_ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h. */
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2017 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021 (eval $ac_link_default) 2>&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; then
2025 # Find the output, starting from the most likely. This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 test -f "$ac_file" || continue
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2040 # This is the source file.
2043 # We found the default executable, but exeext='' is most
2047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 # FIXME: I believe we export ac_cv_exeext for Libtool,
2049 # but it would be cool to find out if it's true. Does anybody
2050 # maintain Libtool? --akim.
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065 { (exit 77); exit 77; }; }
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079 if { ac_try='./$ac_file'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2087 if test "$cross_compiling" = maybe; then
2090 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run. If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115 (eval $ac_link) 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2123 for ac_file in conftest.exe conftest conftest.*; do
2124 test -f "$ac_file" || continue
2126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2149 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2150 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2151 if test "${ac_cv_objext+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 cat >conftest.$ac_ext <<_ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2169 rm -f conftest.o conftest.obj
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196 echo "${ECHO_T}$ac_cv_objext" >&6
2197 OBJEXT=$ac_cv_objext
2199 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2201 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 cat >conftest.$ac_ext <<_ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2226 grep -v '^ *+' conftest.er1 >conftest.err
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257 GCC=`test $ac_compiler_gnu = yes && echo yes`
2258 ac_test_CFLAGS=${CFLAGS+set}
2259 ac_save_CFLAGS=$CFLAGS
2261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263 if test "${ac_cv_prog_cc_g+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 cat >conftest.$ac_ext <<_ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2285 grep -v '^ *+' conftest.er1 >conftest.err
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_c_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2313 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2314 if test "$ac_test_CFLAGS" = set; then
2315 CFLAGS=$ac_save_CFLAGS
2316 elif test $ac_cv_prog_cc_g = yes; then
2317 if test "$GCC" = yes; then
2323 if test "$GCC" = yes; then
2329 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2330 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 ac_cv_prog_cc_stdc=no
2336 cat >conftest.$ac_ext <<_ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2360 s = g (p, va_arg (v,int));
2365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2366 function prototypes and stuff, but not '\xHH' hex character constants.
2367 These don't provoke an error unfortunately, instead are silently treated
2368 as 'x'. The following induces an error, until -std1 is added to get
2369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2370 array size at least. It's necessary to write '\x00'==0 to get something
2371 that's true only with -std1. */
2372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374 int test (int i, double x);
2375 struct s1 {int (*f) (int a);};
2376 struct s2 {int (*f) (double a);};
2377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2388 # Don't try gcc -ansi; that turns off useful extensions and
2389 # breaks some systems' header files.
2390 # AIX -qlanglvl=ansi
2391 # Ultrix and OSF/1 -std1
2392 # HP-UX 10.20 and later -Ae
2393 # HP-UX older versions -Aa -D_HPUX_SOURCE
2394 # SVR4 -Xc -D__EXTENSIONS__
2395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397 CC="$ac_save_CC $ac_arg"
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2402 grep -v '^ *+' conftest.er1 >conftest.err
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_cv_prog_cc_stdc=$ac_arg
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext
2429 rm -f conftest.$ac_ext conftest.$ac_objext
2434 case "x$ac_cv_prog_cc_stdc" in
2436 echo "$as_me:$LINENO: result: none needed" >&5
2437 echo "${ECHO_T}none needed" >&6 ;;
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2441 CC="$CC $ac_cv_prog_cc_stdc" ;;
2444 # Some people use a C++ compiler to compile C. Since we use `exit',
2445 # in C++ we need to declare it. In case someone uses the same compiler
2446 # for both compiling C and C++ we need to have the C++ compiler decide
2447 # the declaration of exit, since it's the most demanding environment.
2448 cat >conftest.$ac_ext <<_ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2457 grep -v '^ *+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 for ac_declaration in \
2477 'extern "C" void std::exit (int) throw (); using std::exit;' \
2478 'extern "C" void std::exit (int); using std::exit;' \
2479 'extern "C" void exit (int) throw ();' \
2480 'extern "C" void exit (int);' \
2483 cat >conftest.$ac_ext <<_ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2503 grep -v '^ *+' conftest.er1 >conftest.err
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 cat >conftest.$ac_ext <<_ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2548 grep -v '^ *+' conftest.er1 >conftest.err
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2575 if test -n "$ac_declaration"; then
2576 echo '#ifdef __cplusplus' >>confdefs.h
2577 echo $ac_declaration >>confdefs.h
2578 echo '#endif' >>confdefs.h
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594 ac_cpp='$CXXCPP $CPPFLAGS'
2595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2598 if test -n "$ac_tool_prefix"; then
2599 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603 echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 if test -n "$CXX"; then
2609 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 CXX=$glibcxx_cv_prog_CXX
2628 if test -n "$CXX"; then
2629 echo "$as_me:$LINENO: result: $CXX" >&5
2630 echo "${ECHO_T}$CXX" >&6
2632 echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6
2636 test -n "$CXX" && break
2639 if test -z "$CXX"; then
2641 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 if test -n "$ac_ct_CXX"; then
2651 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_ac_ct_CXX="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2670 if test -n "$ac_ct_CXX"; then
2671 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2672 echo "${ECHO_T}$ac_ct_CXX" >&6
2674 echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2678 test -n "$ac_ct_CXX" && break
2680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO:" \
2688 "checking for C++ compiler version" >&5
2689 ac_compiler=`set X $ac_compile; echo $2`
2690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2691 (eval $ac_compiler --version </dev/null >&5) 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2696 (eval $ac_compiler -v </dev/null >&5) 2>&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2701 (eval $ac_compiler -V </dev/null >&5) 2>&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 cat >conftest.$ac_ext <<_ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_cxx_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764 GXX=`test $ac_compiler_gnu = yes && echo yes`
2765 ac_test_CXXFLAGS=${CXXFLAGS+set}
2766 ac_save_CXXFLAGS=$CXXFLAGS
2768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cxx_g+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 cat >conftest.$ac_ext <<_ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2792 grep -v '^ *+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_cxx_werror_flag"
2798 || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 ac_cv_prog_cxx_g=yes
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2821 if test "$ac_test_CXXFLAGS" = set; then
2822 CXXFLAGS=$ac_save_CXXFLAGS
2823 elif test $ac_cv_prog_cxx_g = yes; then
2824 if test "$GXX" = yes; then
2830 if test "$GXX" = yes; then
2836 for ac_declaration in \
2838 'extern "C" void std::exit (int) throw (); using std::exit;' \
2839 'extern "C" void std::exit (int); using std::exit;' \
2840 'extern "C" void exit (int) throw ();' \
2841 'extern "C" void exit (int);' \
2844 cat >conftest.$ac_ext <<_ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_cxx_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890 cat >conftest.$ac_ext <<_ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>conftest.er1
2909 grep -v '^ *+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -z "$ac_cxx_werror_flag"
2915 || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2936 if test -n "$ac_declaration"; then
2937 echo '#ifdef __cplusplus' >>confdefs.h
2938 echo $ac_declaration >>confdefs.h
2939 echo '#endif' >>confdefs.h
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 CXXFLAGS="$save_CXXFLAGS"
2954 am__api_version="1.9"
2955 # Find a good install program. We prefer a C program (faster),
2956 # so one script is as good as another. But avoid the broken or
2957 # incompatible versions:
2958 # SysV /etc/install, /usr/sbin/install
2959 # SunOS /usr/etc/install
2960 # IRIX /sbin/install
2962 # AmigaOS /C/install, which installs bootblocks on floppy discs
2963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2966 # OS/2's system install, which has a completely different semantic
2967 # ./install, which can be erroneously created by make from ./install.sh.
2968 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2970 if test -z "$INSTALL"; then
2971 if test "${ac_cv_path_install+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 # Account for people who put trailing slashes in PATH elements.
2981 ./ | .// | /cC/* | \
2982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2989 for ac_prog in ginstall scoinst install; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992 if test $ac_prog = install &&
2993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # AIX install. It has an incompatible calling convention.
2996 elif test $ac_prog = install &&
2997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # program-specific install script used by HP pwplus--don't use.
3001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL=$ac_cv_path_install
3016 # As a last resort, use the slow shell script. We don't cache a
3017 # path for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the path is relative.
3020 INSTALL=$ac_install_sh
3023 echo "$as_me:$LINENO: result: $INSTALL" >&5
3024 echo "${ECHO_T}$INSTALL" >&6
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3038 echo timestamp > conftest.file
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments. Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3045 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046 if test "$*" = "X"; then
3048 set X `ls -t $srcdir/configure conftest.file`
3051 if test "$*" != "X $srcdir/configure conftest.file" \
3052 && test "$*" != "X conftest.file $srcdir/configure"; then
3054 # If neither matched, then we have a broken ls. This can happen
3055 # if, for instance, CONFIG_SHELL is bash and it inherits a
3056 # broken ls alias from the environment. This has actually
3057 # happened. Such a system could not be considered "sane".
3058 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&5
3060 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3061 alias in your environment" >&2;}
3062 { (exit 1); exit 1; }; }
3065 test "$2" = conftest.file
3071 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3072 Check your system clock" >&5
3073 echo "$as_me: error: newly created file is older than distributed files!
3074 Check your system clock" >&2;}
3075 { (exit 1); exit 1; }; }
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3079 test "$program_prefix" != NONE &&
3080 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3084 # Double any \ or $. echo might interpret backslashes.
3085 # By default was `s,x,x', remove it if useless.
3086 cat <<\_ACEOF >conftest.sed
3087 s/[\\$]/&&/g;s/;s,x,x,$//
3089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3092 # expand $ac_aux_dir to an absolute path
3093 am_aux_dir=`cd $ac_aux_dir && pwd`
3095 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3096 # Use eval to expand $SHELL
3097 if eval "$MISSING --run true"; then
3098 am_missing_run="$MISSING --run "
3101 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3102 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3105 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3106 # We used to keeping the `.' as first argument, in order to
3107 # allow $(mkdir_p) to be used without argument. As in
3108 # $(mkdir_p) $(somedir)
3109 # where $(somedir) is conditionally defined. However this is wrong
3111 # 1. if the package is installed by a user who cannot write `.'
3112 # make install will fail,
3113 # 2. the above comment should most certainly read
3114 # $(mkdir_p) $(DESTDIR)$(somedir)
3115 # so it does not work when $(somedir) is undefined and
3116 # $(DESTDIR) is not.
3117 # To support the latter case, we have to write
3118 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3119 # so the `.' trick is pointless.
3120 mkdir_p='mkdir -p --'
3122 # On NextStep and OpenStep, the `mkdir' command does not
3123 # recognize any option. It will interpret all options as
3124 # directories to create, and then abort because `.' already
3126 for d in ./-p ./--version;
3128 test -d $d && rmdir $d
3130 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3131 if test -f "$ac_aux_dir/mkinstalldirs"; then
3132 mkdir_p='$(mkinstalldirs)'
3134 mkdir_p='$(install_sh) -d'
3138 for ac_prog in gawk mawk nawk awk
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_AWK+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if test -n "$AWK"; then
3148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_AWK="$ac_prog"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test -n "$AWK"; then
3168 echo "$as_me:$LINENO: result: $AWK" >&5
3169 echo "${ECHO_T}$AWK" >&6
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3175 test -n "$AWK" && break
3178 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3181 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 cat >conftest.make <<\_ACEOF
3186 @echo 'ac_maketemp="$(MAKE)"'
3188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3189 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3190 if test -n "$ac_maketemp"; then
3191 eval ac_cv_prog_make_${ac_make}_set=yes
3193 eval ac_cv_prog_make_${ac_make}_set=no
3197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 SET_MAKE="MAKE=${MAKE-make}"
3207 rm -rf .tst 2>/dev/null
3208 mkdir .tst 2>/dev/null
3209 if test -d .tst; then
3214 rmdir .tst 2>/dev/null
3216 DEPDIR="${am__leading_dot}deps"
3218 ac_config_commands="$ac_config_commands depfiles"
3221 am_make=${MAKE-make}
3222 cat > confinc << 'END'
3227 # If we don't find an include directive, just comment out the code.
3228 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3229 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3233 # First try GNU make style include.
3234 echo "include confinc" > confmf
3235 # We grep out `Entering directory' and `Leaving directory'
3236 # messages which can occur if `w' ends up in MAKEFLAGS.
3237 # In particular we don't look at `^make:' because GNU make might
3238 # be invoked under some other name (usually "gmake"), in which
3239 # case it prints its new name instead of `make'.
3240 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3245 # Now try BSD make style include.
3246 if test "$am__include" = "#"; then
3247 echo '.include "confinc"' > confmf
3248 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3249 am__include=.include
3256 echo "$as_me:$LINENO: result: $_am_result" >&5
3257 echo "${ECHO_T}$_am_result" >&6
3258 rm -f confinc confmf
3260 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3261 if test "${enable_dependency_tracking+set}" = set; then
3262 enableval="$enable_dependency_tracking"
3265 if test "x$enable_dependency_tracking" != xno; then
3266 am_depcomp="$ac_aux_dir/depcomp"
3271 if test "x$enable_dependency_tracking" != xno; then
3281 # test to see if srcdir already configured
3282 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3283 test -f $srcdir/config.status; then
3284 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3285 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3286 { (exit 1); exit 1; }; }
3289 # test whether we have cygpath
3290 if test -z "$CYGPATH_W"; then
3291 if (cygpath --version) >/dev/null 2>/dev/null; then
3292 CYGPATH_W='cygpath -w'
3299 # Define the identity of the package.
3301 VERSION='version-unused'
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE "$PACKAGE"
3309 cat >>confdefs.h <<_ACEOF
3310 #define VERSION "$VERSION"
3313 # Some tools Automake needs.
3315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3331 # Installed binaries are usually stripped using `strip' when the user
3332 # run `make install-strip'. However `strip' might not be the right
3333 # tool to use in cross-compilation environments, therefore Automake
3334 # will honor the `STRIP' environment variable to overrule this program.
3335 if test "$cross_compiling" != no; then
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}strip; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_STRIP+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 if test -n "$STRIP"; then
3345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 STRIP=$ac_cv_prog_STRIP
3364 if test -n "$STRIP"; then
3365 echo "$as_me:$LINENO: result: $STRIP" >&5
3366 echo "${ECHO_T}$STRIP" >&6
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3373 if test -z "$ac_cv_prog_STRIP"; then
3375 # Extract the first word of "strip", so it can be a program name with args.
3376 set dummy strip; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test -n "$ac_ct_STRIP"; then
3383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_STRIP="strip"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3403 if test -n "$ac_ct_STRIP"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3405 echo "${ECHO_T}$ac_ct_STRIP" >&6
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3413 STRIP="$ac_cv_prog_STRIP"
3417 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3419 # We need awk for the "check" target. The system "awk" is bad on
3421 # Always define AMTAR for backward compatibility.
3423 AMTAR=${AMTAR-"${am_missing_run}tar"}
3425 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3430 depcc="$CC" am_compiler_list=
3432 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3433 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3434 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3438 # We make a subdir and do the tests there. Otherwise we can end up
3439 # making bogus files that we don't know about and never remove. For
3440 # instance it was reported that on HP-UX the gcc test will end up
3441 # making a dummy file named `D' -- because `-MD' means `put the output
3444 # Copy depcomp to subdir because otherwise we won't find it if we're
3445 # using a relative directory.
3446 cp "$am_depcomp" conftest.dir
3448 # We will build objects and dependencies in a subdirectory because
3449 # it helps to detect inapplicable dependency modes. For instance
3450 # both Tru64's cc and ICC support -MD to output dependencies as a
3451 # side effect of compilation, but ICC will put the dependencies in
3452 # the current directory while Tru64 will put them in the object
3456 am_cv_CC_dependencies_compiler_type=none
3457 if test "$am_compiler_list" = ""; then
3458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3460 for depmode in $am_compiler_list; do
3461 # Setup a source with many dependencies, because some compilers
3462 # like to wrap large dependency lists on column 80 (with \), and
3463 # we should not choose a depcomp mode which is confused by this.
3465 # We need to recreate these files for each test, as the compiler may
3466 # overwrite some of them when testing with obscure command lines.
3467 # This happens at least with the AIX C compiler.
3469 for i in 1 2 3 4 5 6; do
3470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3472 # Solaris 8's {/usr,}/bin/sh.
3473 touch sub/conftst$i.h
3475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3479 # after this tag, mechanisms are not by side-effect, so they'll
3480 # only be used when explicitly requested
3481 if test "x$enable_dependency_tracking" = xyes; then
3489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3490 # mode. It turns out that the SunPro C++ compiler does not properly
3491 # handle `-M -o', and we need to detect this.
3492 if depmode=$depmode \
3493 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3495 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3496 >/dev/null 2>conftest.err &&
3497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500 # icc doesn't choke on unknown options, it will just issue warnings
3501 # or remarks (even with -Werror). So we grep stderr for any message
3502 # that says an option was ignored or not supported.
3503 # When given -MP, icc 7.0 and 7.1 complain thusly:
3504 # icc: Command line warning: ignoring option '-M'; no argument required
3505 # The diagnosis changed in icc 8.0:
3506 # icc: Command line remark: option '-MP' not supported
3507 if (grep 'ignoring option' conftest.err ||
3508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509 am_cv_CC_dependencies_compiler_type=$depmode
3518 am_cv_CC_dependencies_compiler_type=none
3522 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3523 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3524 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529 test "x$enable_dependency_tracking" != xno \
3530 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3532 am__fastdepCC_FALSE='#'
3534 am__fastdepCC_TRUE='#'
3535 am__fastdepCC_FALSE=
3539 depcc="$CXX" am_compiler_list=
3541 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3543 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547 # We make a subdir and do the tests there. Otherwise we can end up
3548 # making bogus files that we don't know about and never remove. For
3549 # instance it was reported that on HP-UX the gcc test will end up
3550 # making a dummy file named `D' -- because `-MD' means `put the output
3553 # Copy depcomp to subdir because otherwise we won't find it if we're
3554 # using a relative directory.
3555 cp "$am_depcomp" conftest.dir
3557 # We will build objects and dependencies in a subdirectory because
3558 # it helps to detect inapplicable dependency modes. For instance
3559 # both Tru64's cc and ICC support -MD to output dependencies as a
3560 # side effect of compilation, but ICC will put the dependencies in
3561 # the current directory while Tru64 will put them in the object
3565 am_cv_CXX_dependencies_compiler_type=none
3566 if test "$am_compiler_list" = ""; then
3567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569 for depmode in $am_compiler_list; do
3570 # Setup a source with many dependencies, because some compilers
3571 # like to wrap large dependency lists on column 80 (with \), and
3572 # we should not choose a depcomp mode which is confused by this.
3574 # We need to recreate these files for each test, as the compiler may
3575 # overwrite some of them when testing with obscure command lines.
3576 # This happens at least with the AIX C compiler.
3578 for i in 1 2 3 4 5 6; do
3579 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581 # Solaris 8's {/usr,}/bin/sh.
3582 touch sub/conftst$i.h
3584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3588 # after this tag, mechanisms are not by side-effect, so they'll
3589 # only be used when explicitly requested
3590 if test "x$enable_dependency_tracking" = xyes; then
3598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599 # mode. It turns out that the SunPro C++ compiler does not properly
3600 # handle `-M -o', and we need to detect this.
3601 if depmode=$depmode \
3602 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605 >/dev/null 2>conftest.err &&
3606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609 # icc doesn't choke on unknown options, it will just issue warnings
3610 # or remarks (even with -Werror). So we grep stderr for any message
3611 # that says an option was ignored or not supported.
3612 # When given -MP, icc 7.0 and 7.1 complain thusly:
3613 # icc: Command line warning: ignoring option '-M'; no argument required
3614 # The diagnosis changed in icc 8.0:
3615 # icc: Command line remark: option '-MP' not supported
3616 if (grep 'ignoring option' conftest.err ||
3617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618 am_cv_CXX_dependencies_compiler_type=$depmode
3627 am_cv_CXX_dependencies_compiler_type=none
3631 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3632 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3633 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3638 test "x$enable_dependency_tracking" != xno \
3639 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3640 am__fastdepCXX_TRUE=
3641 am__fastdepCXX_FALSE='#'
3643 am__fastdepCXX_TRUE='#'
3644 am__fastdepCXX_FALSE=
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}as; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_AS+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if test -n "$AS"; then
3659 ac_cv_prog_AS="$AS" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_AS="${ac_tool_prefix}as"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$AS"; then
3679 echo "$as_me:$LINENO: result: $AS" >&5
3680 echo "${ECHO_T}$AS" >&6
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$ac_cv_prog_AS"; then
3689 # Extract the first word of "as", so it can be a program name with args.
3690 set dummy as; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 if test -n "$ac_ct_AS"; then
3697 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_ac_ct_AS="as"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3716 if test -n "$ac_ct_AS"; then
3717 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3718 echo "${ECHO_T}$ac_ct_AS" >&6
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3729 if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ld; ac_word=$2
3732 echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_LD+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 if test -n "$LD"; then
3738 ac_cv_prog_LD="$LD" # Let the user override the test.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_LD="${ac_tool_prefix}ld"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 if test -n "$LD"; then
3758 echo "$as_me:$LINENO: result: $LD" >&5
3759 echo "${ECHO_T}$LD" >&6
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3766 if test -z "$ac_cv_prog_LD"; then
3768 # Extract the first word of "ld", so it can be a program name with args.
3769 set dummy ld; ac_word=$2
3770 echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if test -n "$ac_ct_LD"; then
3776 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785 ac_cv_prog_ac_ct_LD="ld"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3795 if test -n "$ac_ct_LD"; then
3796 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3797 echo "${ECHO_T}$ac_ct_LD" >&6
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ar; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_AR+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 if test -n "$AR"; then
3817 ac_cv_prog_AR="$AR" # Let the user override the test.
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_AR="${ac_tool_prefix}ar"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 if test -n "$AR"; then
3837 echo "$as_me:$LINENO: result: $AR" >&5
3838 echo "${ECHO_T}$AR" >&6
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3845 if test -z "$ac_cv_prog_AR"; then
3847 # Extract the first word of "ar", so it can be a program name with args.
3848 set dummy ar; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if test -n "$ac_ct_AR"; then
3855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_AR="ar"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3874 if test -n "$ac_ct_AR"; then
3875 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3876 echo "${ECHO_T}$ac_ct_AR" >&6
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3887 if test -n "$ac_tool_prefix"; then
3888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_RANLIB+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 if test -n "$RANLIB"; then
3896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 RANLIB=$ac_cv_prog_RANLIB
3915 if test -n "$RANLIB"; then
3916 echo "$as_me:$LINENO: result: $RANLIB" >&5
3917 echo "${ECHO_T}$RANLIB" >&6
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3924 if test -z "$ac_cv_prog_RANLIB"; then
3925 ac_ct_RANLIB=$RANLIB
3926 # Extract the first word of "ranlib", so it can be a program name with args.
3927 set dummy ranlib; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 if test -n "$ac_ct_RANLIB"; then
3934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_RANLIB="ranlib"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3954 if test -n "$ac_ct_RANLIB"; then
3955 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3956 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3958 echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3962 RANLIB=$ac_ct_RANLIB
3964 RANLIB="$ac_cv_prog_RANLIB"
3968 # Find a good install program. We prefer a C program (faster),
3969 # so one script is as good as another. But avoid the broken or
3970 # incompatible versions:
3971 # SysV /etc/install, /usr/sbin/install
3972 # SunOS /usr/etc/install
3973 # IRIX /sbin/install
3975 # AmigaOS /C/install, which installs bootblocks on floppy discs
3976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3979 # OS/2's system install, which has a completely different semantic
3980 # ./install, which can be erroneously created by make from ./install.sh.
3981 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3982 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3983 if test -z "$INSTALL"; then
3984 if test "${ac_cv_path_install+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 test -z "$as_dir" && as_dir=.
3992 # Account for people who put trailing slashes in PATH elements.
3994 ./ | .// | /cC/* | \
3995 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3996 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3999 # OSF1 and SCO ODT 3.0 have their own names for install.
4000 # Don't use installbsd from OSF since it installs stuff as root
4002 for ac_prog in ginstall scoinst install; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4005 if test $ac_prog = install &&
4006 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4007 # AIX install. It has an incompatible calling convention.
4009 elif test $ac_prog = install &&
4010 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4011 # program-specific install script used by HP pwplus--don't use.
4014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4026 if test "${ac_cv_path_install+set}" = set; then
4027 INSTALL=$ac_cv_path_install
4029 # As a last resort, use the slow shell script. We don't cache a
4030 # path for INSTALL within a source directory, because that will
4031 # break other packages using the cache if that directory is
4032 # removed, or if the path is relative.
4033 INSTALL=$ac_install_sh
4036 echo "$as_me:$LINENO: result: $INSTALL" >&5
4037 echo "${ECHO_T}$INSTALL" >&6
4039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4040 # It thinks the first close brace ends the variable substitution.
4041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4048 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4049 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4050 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4051 if test "${enable_maintainer_mode+set}" = set; then
4052 enableval="$enable_maintainer_mode"
4053 USE_MAINTAINER_MODE=$enableval
4055 USE_MAINTAINER_MODE=no
4057 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4058 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4061 if test $USE_MAINTAINER_MODE = yes; then
4062 MAINTAINER_MODE_TRUE=
4063 MAINTAINER_MODE_FALSE='#'
4065 MAINTAINER_MODE_TRUE='#'
4066 MAINTAINER_MODE_FALSE=
4069 MAINT=$MAINTAINER_MODE_TRUE
4075 # configure.host sets the following important variables
4076 # libgcj_cflags - host specific C compiler flags
4077 # libgcj_cxxflags - host specific C++ compiler flags
4078 # libgcj_javaflags - host specific Java compiler flags
4084 . ${srcdir}/configure.host
4086 LIBGCJ_CFLAGS="${libgcj_cflags}"
4087 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4088 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4089 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4095 # Only use libltdl for non-newlib builds.
4096 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4097 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4098 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4100 libname_spec='lib$name'
4108 shlibpath_overrides_runpath=unknown
4110 dynamic_linker="$host_os ld.so"
4111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4112 if test "$GCC" = yes; then
4113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4114 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4115 # if the path contains ";" then we assume it to be the separator
4116 # otherwise default to the standard path separator (i.e. ":") - it is
4117 # assumed that no part of a normal pathname contains ";" but that should
4118 # okay in the real world where ";" in dirpaths is itself problematic.
4119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4126 need_lib_prefix=unknown
4127 hardcode_into_libs=no
4129 # when you set need_version to no, make sure it does not cause -set_version
4130 # flags to be left without arguments
4131 need_version=unknown
4136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4137 shlibpath_var=LIBPATH
4139 # AIX 3 has no versioning support, so we append a major version to the name.
4140 soname_spec='${libname}${release}${shared_ext}$major'
4147 hardcode_into_libs=yes
4148 if test "$host_cpu" = ia64; then
4149 # AIX 5 supports IA64
4150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4151 shlibpath_var=LD_LIBRARY_PATH
4153 # With GCC up to 2.95.x, collect2 would create an import file
4154 # for dependence libraries. The import file would start with
4155 # the line `#! .'. This would cause the generated library to
4156 # depend on `.', always an invalid library. This was fixed in
4157 # development snapshots of GCC prior to 3.0.
4159 aix4 | aix4.[01] | aix4.[01].*)
4160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4162 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4170 # soname into executable. Probably we can add versioning support to
4171 # collect2, so additional links can be useful in future.
4172 if test "$aix_use_runtimelinking" = yes; then
4173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4174 # instead of lib<name>.a to let people know that these are not
4175 # typical AIX shared libraries.
4176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4178 # We preserve .a as extension for shared libraries through AIX4.2
4179 # and later when we are not doing run time linking.
4180 library_names_spec='${libname}${release}.a $libname.a'
4181 soname_spec='${libname}${release}${shared_ext}$major'
4183 shlibpath_var=LIBPATH
4188 library_names_spec='$libname.ixlibrary $libname.a'
4189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4190 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4194 library_names_spec='${libname}${shared_ext}'
4195 dynamic_linker="$host_os ld.so"
4196 shlibpath_var=LIBRARY_PATH
4202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4203 soname_spec='${libname}${release}${shared_ext}$major'
4204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4205 shlibpath_var=LD_LIBRARY_PATH
4206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4208 # the default ld.so.conf also contains /usr/contrib/lib and
4209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4210 # libtool to hard-code these into programs
4213 cygwin* | mingw* | pw32*)
4214 version_type=windows
4219 case $GCC,$host_os in
4220 yes,cygwin* | yes,mingw* | yes,pw32*)
4221 library_names_spec='$libname.dll.a'
4222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4223 postinstall_cmds='base_file=`basename \${file}`~
4224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4225 dldir=$destdir/`dirname \$dlpath`~
4226 test -d \$dldir || mkdir -p \$dldir~
4227 $install_prog $dir/$dlname \$dldir/$dlname'
4228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4229 dlpath=$dir/\$dldll~
4231 shlibpath_overrides_runpath=yes
4235 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4237 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4240 # MinGW DLLs use traditional 'lib' prefix
4241 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4242 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4243 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4244 # It is most probably a Windows format PATH printed by
4245 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4246 # path with ; separators, and with drive letters. We can handle the
4247 # drive letters (cygwin fileutils understands them), so leave them,
4248 # especially as we might pass files found there to a mingw objdump,
4249 # which wouldn't understand a cygwinified path. Ahh.
4250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4256 # pw32 DLLs use 'pw' prefix rather than 'lib'
4257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4263 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4266 dynamic_linker='Win32 ld.exe'
4267 # FIXME: first we should search . and the directory the executable is in
4271 darwin* | rhapsody*)
4272 dynamic_linker="$host_os dyld"
4276 # FIXME: Relying on posixy $() will cause problems for
4277 # cross-compilation, but unfortunately the echo tests do not
4278 # yet detect zsh echo's removal of \ escapes.
4279 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4280 soname_spec='${libname}${release}${major}$shared_ext'
4281 shlibpath_overrides_runpath=yes
4282 shlibpath_var=DYLD_LIBRARY_PATH
4283 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4284 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4285 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4286 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4296 soname_spec='${libname}${release}${shared_ext}$major'
4297 shlibpath_var=LD_LIBRARY_PATH
4305 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4306 version_type=freebsd-$objformat
4307 case $version_type in
4309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4318 shlibpath_var=LD_LIBRARY_PATH
4321 shlibpath_overrides_runpath=yes
4323 freebsd3.01* | freebsdelf3.01*)
4324 shlibpath_overrides_runpath=yes
4325 hardcode_into_libs=yes
4328 shlibpath_overrides_runpath=no
4329 hardcode_into_libs=yes
4338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4339 soname_spec='${libname}${release}${shared_ext}$major'
4340 shlibpath_var=LD_LIBRARY_PATH
4341 hardcode_into_libs=yes
4344 hpux9* | hpux10* | hpux11*)
4345 # Give a soname corresponding to the major version so that dld.sl refuses to
4346 # link against other versions.
4353 hardcode_into_libs=yes
4354 dynamic_linker="$host_os dld.so"
4355 shlibpath_var=LD_LIBRARY_PATH
4356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4358 soname_spec='${libname}${release}${shared_ext}$major'
4359 if test "X$HPUX_IA64_MODE" = X32; then
4360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4368 hardcode_into_libs=yes
4369 dynamic_linker="$host_os dld.sl"
4370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4373 soname_spec='${libname}${release}${shared_ext}$major'
4374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4379 dynamic_linker="$host_os dld.sl"
4380 shlibpath_var=SHLIB_PATH
4381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4383 soname_spec='${libname}${release}${shared_ext}$major'
4386 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4387 postinstall_cmds='chmod 555 $lib'
4390 irix5* | irix6* | nonstopux*)
4392 nonstopux*) version_type=nonstopux ;;
4394 if test "$lt_cv_prog_gnu_ld" = yes; then
4402 soname_spec='${libname}${release}${shared_ext}$major'
4403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4405 irix5* | nonstopux*)
4409 case $LD in # libtool.m4 will add one of these switches to LD
4410 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4411 libsuff= shlibsuff= libmagic=32-bit;;
4412 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4413 libsuff=32 shlibsuff=N32 libmagic=N32;;
4414 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4415 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4416 *) libsuff= shlibsuff= libmagic=never-match;;
4420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4421 shlibpath_overrides_runpath=no
4422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4424 hardcode_into_libs=yes
4427 # No shared lib support for Linux oldld, aout, or coff.
4428 linux*oldld* | linux*aout* | linux*coff*)
4432 # This must be Linux ELF.
4437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4438 soname_spec='${libname}${release}${shared_ext}$major'
4439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4440 shlibpath_var=LD_LIBRARY_PATH
4441 shlibpath_overrides_runpath=no
4442 # This implies no fast_install, which is unacceptable.
4443 # Some rework will be needed to allow for fast_install
4444 # before this can be enabled.
4445 hardcode_into_libs=yes
4447 # We used to test for /lib/ld.so.1 and disable shared libraries on
4448 # powerpc, because MkLinux only supported shared libraries with the
4449 # GNU dynamic linker. Since this was broken with cross compilers,
4450 # most powerpc-linux boxes support dynamic linking these days and
4451 # people can always --disable-shared, the test was removed, and we
4452 # assume the GNU/Linux dynamic linker is in use.
4453 dynamic_linker='GNU/Linux ld.so'
4460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4463 dynamic_linker='NetBSD (a.out) ld.so'
4465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4466 soname_spec='${libname}${release}${shared_ext}$major'
4467 dynamic_linker='NetBSD ld.elf_so'
4469 shlibpath_var=LD_LIBRARY_PATH
4470 shlibpath_overrides_runpath=yes
4471 hardcode_into_libs=yes
4476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4477 shlibpath_var=LD_LIBRARY_PATH
4478 shlibpath_overrides_runpath=yes
4485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4486 soname_spec='${libname}${release}${shared_ext}$major'
4487 shlibpath_var=LD_LIBRARY_PATH
4488 shlibpath_overrides_runpath=yes
4495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4497 shlibpath_var=LD_LIBRARY_PATH
4498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4500 openbsd2.[89] | openbsd2.[89].*)
4501 shlibpath_overrides_runpath=no
4504 shlibpath_overrides_runpath=yes
4508 shlibpath_overrides_runpath=yes
4513 libname_spec='$name'
4516 library_names_spec='$libname${shared_ext} $libname.a'
4517 dynamic_linker='OS/2 ld.exe'
4518 shlibpath_var=LIBPATH
4521 osf3* | osf4* | osf5*)
4525 soname_spec='${libname}${release}${shared_ext}$major'
4526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4527 shlibpath_var=LD_LIBRARY_PATH
4528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4534 soname_spec='${libname}${release}${shared_ext}$major'
4535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4536 shlibpath_var=LD_LIBRARY_PATH
4543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4544 soname_spec='${libname}${release}${shared_ext}$major'
4545 shlibpath_var=LD_LIBRARY_PATH
4546 shlibpath_overrides_runpath=yes
4547 hardcode_into_libs=yes
4548 # ldd complains unless libraries are executable
4549 postinstall_cmds='chmod +x $lib'
4554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4556 shlibpath_var=LD_LIBRARY_PATH
4557 shlibpath_overrides_runpath=yes
4558 if test "$with_gnu_ld" = yes; then
4564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4567 soname_spec='${libname}${release}${shared_ext}$major'
4568 shlibpath_var=LD_LIBRARY_PATH
4569 case $host_vendor in
4571 shlibpath_overrides_runpath=no
4573 export_dynamic_flag_spec='${wl}-Blargedynsym'
4574 runpath_var=LD_RUN_PATH
4582 shlibpath_overrides_runpath=no
4583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4589 if test -d /usr/nec ;then
4591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4592 soname_spec='$libname${shared_ext}.$major'
4593 shlibpath_var=LD_LIBRARY_PATH
4599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4600 soname_spec='${libname}${release}${shared_ext}$major'
4601 shlibpath_var=LD_LIBRARY_PATH
4608 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4609 echo "${ECHO_T}$dynamic_linker" >&6
4610 test "$dynamic_linker" = no && can_build_shared=no
4613 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4614 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4615 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 libltdl_cv_shlibpath_var="$shlibpath_var"
4620 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4621 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4622 if test -n "$libltdl_cv_shlibpath_var"; then
4624 cat >>confdefs.h <<_ACEOF
4625 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4632 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4635 # See if the user has requested runtime debugging.
4636 LIBGCJDEBUG="disable"
4638 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4639 if test "${enable_libgcj_debug+set}" = set; then
4640 enableval="$enable_libgcj_debug"
4641 if test "$enable_libgcj_debug" = yes; then
4643 cat >>confdefs.h <<\_ACEOF
4647 LIBGCJDEBUG="enable"
4651 # Determine which AWT peer libraries to build
4652 # Check whether --enable-java-awt or --disable-java-awt was given.
4653 if test "${enable_java_awt+set}" = set; then
4654 enableval="$enable_java_awt"
4658 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4662 # The default toolkit to use is the first one specified.
4666 for peer in $peerlibs ; do
4669 if test "$no_x" = yes; then
4670 echo "*** xlib peers requested but no X library available" 1>&2
4674 if test -z "$TOOLKIT"; then
4675 TOOLKIT=gnu.awt.xlib.XToolkit
4680 if test "$no_x" = yes; then
4681 echo "*** gtk peers requested but no X library available" 1>&2
4685 if test -z "$TOOLKIT"; then
4686 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4691 if test "$no_x" = yes; then
4692 # Perhaps we should admit the possibility of embedded Qt.
4693 echo "*** Qt peers requested but no X library available" 1>&2
4697 if test -z "$TOOLKIT"; then
4698 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4709 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4716 if test "$use_xlib_awt" = yes; then
4726 if test "$use_gtk_awt" = yes; then
4736 if test "$use_qt_awt" = yes; then
4745 # Create standard.omit based on decisions we just made.
4746 cp $srcdir/standard.omit.in standard.omit
4747 if test "$use_xlib_awt" != yes; then
4748 echo gnu/awt/xlib >> standard.omit
4749 echo gnu/gcj/xlib >> standard.omit
4751 if test "$use_gtk_awt" != yes; then
4752 echo gnu/java/awt/peer/gtk >> standard.omit
4754 if test "$use_qt_awt" != yes; then
4755 echo gnu/java/awt/peer/qt >> standard.omit
4758 if test -z "${with_multisubdir}"; then
4761 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4766 # Which gcj do we use?
4768 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4769 if test -n "${with_cross_host}"; then
4770 # We are being configured with a cross compiler. We can't
4771 # use ac_exeext, because that is for the target platform.
4774 case "${with_cross_host}" in
4776 cross_host_exeext=.exe
4779 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4780 if test x"$build_noncanonical" = x"$with_cross_host"; then
4781 # Ordinary cross (host!=target and host=build)
4784 # Canadian cross (host!=target and host!=build)
4791 # We are being configured with a native or crossed-native compiler
4792 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4793 if test x"$build" = x"$host"; then
4794 # True native build (host=target and host=build)
4797 # Crossed-native build (host=target and host!=build)
4804 case "${which_gcj}" in
4806 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4807 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4808 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4811 if test "x${with_newlib}" = "xyes"; then
4812 # FIXME (comment): Why is this needed?
4814 GCJ="${target_noncanonical}-gcj"
4816 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4818 ZIP='$(target_noncanonical)-fastjar'
4819 GCJH='$(target_noncanonical)-gcjh'
4822 GCJ="gcj -B`${PWDCMD-pwd}`/"
4823 ## In this case, gcj is found outside the build tree. However, zip is
4824 ## found in the build tree.
4825 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4833 # Create it, so that compile/link tests don't fail
4834 test -f libgcj.spec || touch libgcj.spec
4838 # Set up to configure Classpath.
4839 # FIXME: no supported way to pass args in autoconf.
4840 ac_configure_args="$ac_configure_args --disable-load-library"
4841 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4842 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4843 dir1=`cd $srcdir && pwd`
4845 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4846 ac_configure_args="$ac_configure_args --disable-core-jni"
4847 ac_configure_args="$ac_configure_args --disable-examples"
4848 ac_configure_args="$ac_configure_args --with-glibj=build"
4849 if test "$use_gtk_awt" != yes; then
4850 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4852 if test "$use_qt_awt" != yes; then
4853 ac_configure_args="$ac_configure_args --disable-qt-peer"
4855 # We need this as qt is disabled by default in classpath.
4856 ac_configure_args="$ac_configure_args --enable-qt-peer"
4859 # Only use libltdl for non-newlib builds.
4860 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4861 case $enable_ltdl_convenience in
4862 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4863 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4864 { (exit 1); exit 1; }; } ;;
4865 "") enable_ltdl_convenience=yes
4866 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4868 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4869 INCLTDL='-I${top_srcdir}/''libltdl'
4874 cat >>confdefs.h <<\_ACEOF
4878 # Sigh. Libtool's macro doesn't do the right thing.
4879 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4880 # FIXME: this is a hack.
4881 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4882 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4887 # Check whether --enable-shared or --disable-shared was given.
4888 if test "${enable_shared+set}" = set; then
4889 enableval="$enable_shared"
4890 p=${PACKAGE-default}
4892 yes) enable_shared=yes ;;
4893 no) enable_shared=no ;;
4896 # Look at the argument we got. We use all the common list separators.
4897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4898 for pkg in $enableval; do
4899 if test "X$pkg" = "X$p"; then
4909 # Check whether --enable-static or --disable-static was given.
4910 if test "${enable_static+set}" = set; then
4911 enableval="$enable_static"
4912 p=${PACKAGE-default}
4914 yes) enable_static=yes ;;
4915 no) enable_static=no ;;
4918 # Look at the argument we got. We use all the common list separators.
4919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4920 for pkg in $enableval; do
4921 if test "X$pkg" = "X$p"; then
4931 # Check whether --enable-fast-install or --disable-fast-install was given.
4932 if test "${enable_fast_install+set}" = set; then
4933 enableval="$enable_fast_install"
4934 p=${PACKAGE-default}
4936 yes) enable_fast_install=yes ;;
4937 no) enable_fast_install=no ;;
4939 enable_fast_install=no
4940 # Look at the argument we got. We use all the common list separators.
4941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4942 for pkg in $enableval; do
4943 if test "X$pkg" = "X$p"; then
4944 enable_fast_install=yes
4951 enable_fast_install=yes
4954 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4955 if test "${with_gnu_ld+set}" = set; then
4956 withval="$with_gnu_ld"
4957 test "$withval" = no || with_gnu_ld=yes
4962 if test "$GCC" = yes; then
4963 # Check if gcc -print-prog-name=ld gives a path.
4964 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4965 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4968 # gcc leaves a trailing carriage return which upsets mingw
4969 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4971 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4974 # Accept absolute paths.
4975 [\\/]* | [A-Za-z]:[\\/]*)
4976 re_direlt='/[^/][^/]*/\.\./'
4977 # Canonicalize the path of ld
4978 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4979 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4980 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4982 test -z "$LD" && LD="$ac_prog"
4985 # If it fails, then pretend we aren't using GCC.
4989 # If it is relative, then search for the first ld in PATH.
4993 elif test "$with_gnu_ld" = yes; then
4994 echo "$as_me:$LINENO: checking for GNU ld" >&5
4995 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4997 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4998 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5000 if test "${lt_cv_path_LD+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test -z "$LD"; then
5004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5005 for ac_dir in $PATH; do
5006 test -z "$ac_dir" && ac_dir=.
5007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5008 lt_cv_path_LD="$ac_dir/$ac_prog"
5009 # Check to see if the program is GNU ld. I'd rather use --version,
5010 # but apparently some GNU ld's only accept -v.
5011 # Break only if it was the GNU/non-GNU ld that we prefer.
5012 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5013 test "$with_gnu_ld" != no && break
5015 test "$with_gnu_ld" != yes && break
5021 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5026 if test -n "$LD"; then
5027 echo "$as_me:$LINENO: result: $LD" >&5
5028 echo "${ECHO_T}$LD" >&6
5030 echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6
5033 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5034 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5035 { (exit 1); exit 1; }; }
5036 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5037 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5038 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5042 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5043 lt_cv_prog_gnu_ld=yes
5045 lt_cv_prog_gnu_ld=no
5048 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5050 with_gnu_ld=$lt_cv_prog_gnu_ld
5053 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5054 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5055 if test "${lt_cv_ld_reload_flag+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 lt_cv_ld_reload_flag='-r'
5060 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5061 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5062 reload_flag=$lt_cv_ld_reload_flag
5063 test -n "$reload_flag" && reload_flag=" $reload_flag"
5065 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5066 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5067 if test "${lt_cv_path_NM+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 if test -n "$NM"; then
5071 # Let the user override the test.
5074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5075 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5076 test -z "$ac_dir" && ac_dir=.
5077 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5078 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5079 # Check to see if the nm accepts a BSD-compat flag.
5080 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5081 # nm: unknown option "B" ignored
5082 # Tru64's nm complains that /dev/null is an invalid object file
5083 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5084 lt_cv_path_NM="$tmp_nm -B"
5086 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5087 lt_cv_path_NM="$tmp_nm -p"
5090 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5091 continue # so that we can try to find one that supports BSD flags
5096 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5101 echo "$as_me:$LINENO: result: $NM" >&5
5102 echo "${ECHO_T}$NM" >&6
5104 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5105 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5106 if test "${lt_cv_deplibs_check_method+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 lt_cv_file_magic_cmd='$MAGIC_CMD'
5110 lt_cv_file_magic_test_file=
5111 lt_cv_deplibs_check_method='unknown'
5112 # Need to set the preceding variable on all platforms that support
5113 # interlibrary dependencies.
5114 # 'none' -- dependencies not supported.
5115 # `unknown' -- same as none, but documents that we really don't know.
5116 # 'pass_all' -- all dependencies passed with no checks.
5117 # 'test_compile' -- check by making test program.
5118 # 'file_magic [regex]' -- check by looking for files in library path
5119 # which responds to the $file_magic_cmd with a given egrep regex.
5120 # If you have `file' or equivalent on your system and you're not sure
5121 # whether `pass_all' will *always* work, you probably want this one.
5125 lt_cv_deplibs_check_method=pass_all
5129 lt_cv_deplibs_check_method=pass_all
5133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5134 lt_cv_file_magic_cmd='/usr/bin/file -L'
5135 lt_cv_file_magic_test_file=/shlib/libc.so
5138 cygwin* | mingw* |pw32*)
5139 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5140 lt_cv_file_magic_cmd='$OBJDUMP -f'
5143 darwin* | rhapsody*)
5144 # this will be overwritten by pass_all, but leave it in just in case
5145 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5146 lt_cv_file_magic_cmd='/usr/bin/file -L'
5148 rhapsody* | darwin1.012)
5149 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5152 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5155 lt_cv_deplibs_check_method=pass_all
5158 freebsd* | kfreebsd*-gnu)
5159 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5162 # Not sure whether the presence of OpenBSD here was a mistake.
5163 # Let's accept both of them until this is cleared up.
5164 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5165 lt_cv_file_magic_cmd=/usr/bin/file
5166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5170 lt_cv_deplibs_check_method=pass_all
5175 lt_cv_deplibs_check_method=pass_all
5181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5182 lt_cv_file_magic_cmd=/usr/bin/file
5183 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5186 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5187 lt_cv_file_magic_cmd=/usr/bin/file
5188 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5196 # this will be overridden with pass_all, but let us keep it just in case
5197 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5201 *-32|*"-32 ") libmagic=32-bit;;
5202 *-n32|*"-n32 ") libmagic=N32;;
5203 *-64|*"-64 ") libmagic=64-bit;;
5204 *) libmagic=never-match;;
5206 # this will be overridden with pass_all, but let us keep it just in case
5207 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5210 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5211 lt_cv_deplibs_check_method=pass_all
5214 # This must be Linux ELF.
5216 lt_cv_deplibs_check_method=pass_all
5219 netbsd* | knetbsd*-gnu)
5220 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5221 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5223 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5229 lt_cv_file_magic_cmd=/usr/bin/file
5230 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5233 osf3* | osf4* | osf5*)
5234 # this will be overridden with pass_all, but let us keep it just in case
5235 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5236 lt_cv_file_magic_test_file=/shlib/libc.so
5237 lt_cv_deplibs_check_method=pass_all
5241 lt_cv_deplibs_check_method=pass_all
5245 lt_cv_deplibs_check_method=pass_all
5246 lt_cv_file_magic_test_file=/lib/libc.so
5249 sysv5uw[78]* | sysv4*uw2*)
5250 lt_cv_deplibs_check_method=pass_all
5253 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5254 case $host_vendor in
5256 lt_cv_deplibs_check_method=pass_all
5259 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]'
5260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5267 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5268 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5269 file_magic_cmd=$lt_cv_file_magic_cmd
5270 deplibs_check_method=$lt_cv_deplibs_check_method
5275 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5277 # find the maximum length of command line arguments
5278 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5279 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5280 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 # On DJGPP, this test can blow up pretty badly due to problems in libc
5289 # (any single argument exceeding 2000 bytes causes a buffer overrun
5290 # during glob expansion). Even if it were fixed, the result of this
5291 # check would be larger than it should be.
5292 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5296 # On Win9x/ME, this test blows up -- it succeeds, but takes
5297 # about 5 minutes as the teststring grows exponentially.
5298 # Worse, since 9x/ME are not pre-emptively multitasking,
5299 # you end up with a "frozen" computer, even though with patience
5300 # the test eventually succeeds (with a max line length of 256k).
5301 # Instead, let's just punt: use the minimum linelength reported by
5302 # all of the supported platforms: 8192 (on NT/2K/XP).
5303 lt_cv_sys_max_cmd_len=8192;
5307 # On AmigaOS with pdksh, this test takes hours, literally.
5308 # So we just punt and use a minimum line length of 8192.
5309 lt_cv_sys_max_cmd_len=8192;
5312 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5313 # This has been around since 386BSD, at least. Likely further.
5314 if test -x /sbin/sysctl; then
5315 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5316 elif test -x /usr/sbin/sysctl; then
5317 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5319 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5321 # And add a safety zone
5322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5329 if test -n "$lt_cv_sys_max_cmd_len" ; then
5330 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5331 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5333 echo "$as_me:$LINENO: result: none" >&5
5334 echo "${ECHO_T}none" >&6
5338 # Only perform the check for file, if the check method requires it
5339 case $deplibs_check_method in
5341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5342 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5343 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5355 ac_save_MAGIC_CMD="$MAGIC_CMD"
5356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5357 ac_dummy="/usr/bin:$PATH"
5358 for ac_dir in $ac_dummy; do
5359 test -z "$ac_dir" && ac_dir=.
5360 if test -f $ac_dir/${ac_tool_prefix}file; then
5361 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5362 if test -n "$file_magic_test_file"; then
5363 case $deplibs_check_method in
5365 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5368 egrep "$file_magic_regex" > /dev/null; then
5373 *** Warning: the command libtool uses to detect shared libraries,
5374 *** $file_magic_cmd, produces output that libtool cannot recognize.
5375 *** The result is that libtool may fail to recognize shared libraries
5376 *** as such. This will affect the creation of libtool libraries that
5377 *** depend on shared libraries, but programs linked with such libtool
5378 *** libraries will work regardless of this problem. Nevertheless, you
5379 *** may want to report the problem to your system manager and/or to
5380 *** bug-libtool@gnu.org
5390 MAGIC_CMD="$ac_save_MAGIC_CMD"
5395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5396 if test -n "$MAGIC_CMD"; then
5397 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5398 echo "${ECHO_T}$MAGIC_CMD" >&6
5400 echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6
5404 if test -z "$lt_cv_path_MAGIC_CMD"; then
5405 if test -n "$ac_tool_prefix"; then
5406 echo "$as_me:$LINENO: checking for file" >&5
5407 echo $ECHO_N "checking for file... $ECHO_C" >&6
5408 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5419 ac_save_MAGIC_CMD="$MAGIC_CMD"
5420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5421 ac_dummy="/usr/bin:$PATH"
5422 for ac_dir in $ac_dummy; do
5423 test -z "$ac_dir" && ac_dir=.
5424 if test -f $ac_dir/file; then
5425 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5426 if test -n "$file_magic_test_file"; then
5427 case $deplibs_check_method in
5429 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5432 egrep "$file_magic_regex" > /dev/null; then
5437 *** Warning: the command libtool uses to detect shared libraries,
5438 *** $file_magic_cmd, produces output that libtool cannot recognize.
5439 *** The result is that libtool may fail to recognize shared libraries
5440 *** as such. This will affect the creation of libtool libraries that
5441 *** depend on shared libraries, but programs linked with such libtool
5442 *** libraries will work regardless of this problem. Nevertheless, you
5443 *** may want to report the problem to your system manager and/or to
5444 *** bug-libtool@gnu.org
5454 MAGIC_CMD="$ac_save_MAGIC_CMD"
5459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5460 if test -n "$MAGIC_CMD"; then
5461 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5462 echo "${ECHO_T}$MAGIC_CMD" >&6
5464 echo "$as_me:$LINENO: result: no" >&5
5465 echo "${ECHO_T}no" >&6
5477 if test -n "$ac_tool_prefix"; then
5478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5480 echo "$as_me:$LINENO: checking for $ac_word" >&5
5481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5482 if test "${ac_cv_prog_RANLIB+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 if test -n "$RANLIB"; then
5486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 RANLIB=$ac_cv_prog_RANLIB
5505 if test -n "$RANLIB"; then
5506 echo "$as_me:$LINENO: result: $RANLIB" >&5
5507 echo "${ECHO_T}$RANLIB" >&6
5509 echo "$as_me:$LINENO: result: no" >&5
5510 echo "${ECHO_T}no" >&6
5514 if test -z "$ac_cv_prog_RANLIB"; then
5515 ac_ct_RANLIB=$RANLIB
5516 # Extract the first word of "ranlib", so it can be a program name with args.
5517 set dummy ranlib; ac_word=$2
5518 echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5520 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 if test -n "$ac_ct_RANLIB"; then
5524 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_ac_ct_RANLIB="ranlib"
5534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5543 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5544 if test -n "$ac_ct_RANLIB"; then
5545 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5546 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5548 echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6
5552 RANLIB=$ac_ct_RANLIB
5554 RANLIB="$ac_cv_prog_RANLIB"
5557 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}strip; ac_word=$2
5560 echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5562 if test "${ac_cv_prog_STRIP+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 if test -n "$STRIP"; then
5566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 STRIP=$ac_cv_prog_STRIP
5585 if test -n "$STRIP"; then
5586 echo "$as_me:$LINENO: result: $STRIP" >&5
5587 echo "${ECHO_T}$STRIP" >&6
5589 echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6
5594 if test -z "$ac_cv_prog_STRIP"; then
5596 # Extract the first word of "strip", so it can be a program name with args.
5597 set dummy strip; ac_word=$2
5598 echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5600 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 if test -n "$ac_ct_STRIP"; then
5604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_ac_ct_STRIP="strip"
5614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5624 if test -n "$ac_ct_STRIP"; then
5625 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5626 echo "${ECHO_T}$ac_ct_STRIP" >&6
5628 echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6
5634 STRIP="$ac_cv_prog_STRIP"
5638 # Check for any special flags to pass to ltconfig.
5639 libtool_flags="--cache-file=$cache_file"
5640 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5641 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5642 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5643 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5644 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5647 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5648 if test "${enable_libtool_lock+set}" = set; then
5649 enableval="$enable_libtool_lock"
5652 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5653 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5656 # Check whether --with-pic or --without-pic was given.
5657 if test "${with_pic+set}" = set; then
5663 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5664 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5666 # Some flags need to be propagated to the compiler or linker for good
5670 # Find out which ABI we are using.
5671 echo '#line 5671 "configure"' > conftest.$ac_ext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; then
5677 if test "$lt_cv_prog_gnu_ld" = yes; then
5678 case `/usr/bin/file conftest.$ac_objext` in
5680 LD="${LD-ld} -melf32bsmip"
5683 LD="${LD-ld} -melf32bmipn32"
5686 LD="${LD-ld} -melf64bmip"
5690 case `/usr/bin/file conftest.$ac_objext` in
5707 # Find out which ABI we are using.
5708 echo 'int i;' > conftest.$ac_ext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; then
5714 case "`/usr/bin/file conftest.o`" in
5726 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5727 # Find out which ABI we are using.
5728 echo 'int i;' > conftest.$ac_ext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; then
5734 case "`/usr/bin/file conftest.o`" in
5738 LD="${LD-ld} -m elf_i386"
5740 ppc64-*linux*|powerpc64-*linux*)
5741 LD="${LD-ld} -m elf32ppclinux"
5744 LD="${LD-ld} -m elf_s390"
5747 LD="${LD-ld} -m elf32_sparc"
5754 LD="${LD-ld} -m elf_x86_64"
5756 ppc*-*linux*|powerpc*-*linux*)
5757 LD="${LD-ld} -m elf64ppc"
5760 LD="${LD-ld} -m elf64_s390"
5763 LD="${LD-ld} -m elf64_sparc"
5773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5774 SAVE_CFLAGS="$CFLAGS"
5775 CFLAGS="$CFLAGS -belf"
5776 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5777 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5778 if test "${lt_cv_cc_needs_belf+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 ac_cpp='$CPP $CPPFLAGS'
5785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789 if test x$gcc_no_link = xyes; then
5790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5792 { (exit 1); exit 1; }; }
5794 cat >conftest.$ac_ext <<_ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>conftest.er1
5813 grep -v '^ *+' conftest.er1 >conftest.err
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 lt_cv_cc_needs_belf=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 lt_cv_cc_needs_belf=no
5838 rm -f conftest.err conftest.$ac_objext \
5839 conftest$ac_exeext conftest.$ac_ext
5841 ac_cpp='$CPP $CPPFLAGS'
5842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5847 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5848 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5849 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5850 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5851 CFLAGS="$SAVE_CFLAGS"
5859 # Save cache, so that ltconfig can load it
5860 cat >confcache <<\_ACEOF
5861 # This file is a shell script that caches the results of configure
5862 # tests run on this system so they can be shared between configure
5863 # scripts and configure runs, see configure's option --config-cache.
5864 # It is not useful on other systems. If it contains results you don't
5865 # want to keep, you may remove or edit it.
5867 # config.status only pays attention to the cache file if you give it
5868 # the --recheck option to rerun configure.
5870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5876 # The following way of writing the cache mishandles newlines in values,
5877 # but we know of no workaround that is simple, portable, and efficient.
5878 # So, don't put newlines in cache variables' values.
5879 # Ultrix sh set writes to stderr and can't be redirected directly,
5880 # and sets the high bit in the cache file unless we assign to the vars.
5883 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5885 # `set' does not quote correctly, so add quotes (double-quote
5886 # substitution turns \\\\ into \\, and sed turns \\ into \).
5889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5892 # `set' quotes correctly as required by POSIX, so do not add quotes.
5894 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5903 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5905 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5906 if test -w $cache_file; then
5907 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5908 cat confcache >$cache_file
5910 echo "not updating unwritable cache $cache_file"
5915 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5916 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5917 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5918 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5919 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5920 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5921 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5922 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5923 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5924 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5925 echo "$as_me: error: libtool configure failed" >&2;}
5926 { (exit 1); exit 1; }; }
5928 # Reload cache, that may have been modified by ltconfig
5929 if test -r "$cache_file"; then
5930 # Some versions of bash will fail to source /dev/null (special
5931 # files actually), so we avoid doing that.
5932 if test -f "$cache_file"; then
5933 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5934 echo "$as_me: loading cache $cache_file" >&6;}
5936 [\\/]* | ?:[\\/]* ) . $cache_file;;
5937 *) . ./$cache_file;;
5941 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5942 echo "$as_me: creating cache $cache_file" >&6;}
5947 # This can be used to rebuild libtool when needed
5948 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5950 # Always use our own libtool.
5951 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5953 # Redirect the config.log output again, so that the ltconfig log is not
5954 # clobbered by the next message.
5955 exec 5>>./config.log
5958 ac_cpp='$CXXCPP $CPPFLAGS'
5959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5963 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5964 if test -z "$CXXCPP"; then
5965 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 # Double quotes because CXXCPP needs to be expanded
5969 for CXXCPP in "$CXX -E" "/lib/cpp"
5972 for ac_cxx_preproc_warn_flag in '' yes
5974 # Use a header file that comes with gcc, so configuring glibc
5975 # with a fresh cross-compiler works.
5976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5977 # <limits.h> exists even on freestanding compilers.
5978 # On the NeXT, cc -E runs the code through the compiler's parser,
5979 # not just through cpp. "Syntax error" is here to catch this case.
5980 cat >conftest.$ac_ext <<_ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5987 # include <limits.h>
5989 # include <assert.h>
5993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5996 grep -v '^ *+' conftest.er1 >conftest.err
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } >/dev/null; then
6001 if test -s conftest.err; then
6002 ac_cpp_err=$ac_cxx_preproc_warn_flag
6003 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6010 if test -z "$ac_cpp_err"; then
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 # Broken: fails on valid input.
6019 rm -f conftest.err conftest.$ac_ext
6021 # OK, works on sane cases. Now check whether non-existent headers
6022 # can be detected and how.
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 #include <ac_nonexistent.h>
6031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6034 grep -v '^ *+' conftest.er1 >conftest.err
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } >/dev/null; then
6039 if test -s conftest.err; then
6040 ac_cpp_err=$ac_cxx_preproc_warn_flag
6041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6048 if test -z "$ac_cpp_err"; then
6049 # Broken: success on invalid input.
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 # Passes both tests.
6059 rm -f conftest.err conftest.$ac_ext
6062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6063 rm -f conftest.err conftest.$ac_ext
6064 if $ac_preproc_ok; then
6069 ac_cv_prog_CXXCPP=$CXXCPP
6072 CXXCPP=$ac_cv_prog_CXXCPP
6074 ac_cv_prog_CXXCPP=$CXXCPP
6076 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6077 echo "${ECHO_T}$CXXCPP" >&6
6079 for ac_cxx_preproc_warn_flag in '' yes
6081 # Use a header file that comes with gcc, so configuring glibc
6082 # with a fresh cross-compiler works.
6083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6084 # <limits.h> exists even on freestanding compilers.
6085 # On the NeXT, cc -E runs the code through the compiler's parser,
6086 # not just through cpp. "Syntax error" is here to catch this case.
6087 cat >conftest.$ac_ext <<_ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6094 # include <limits.h>
6096 # include <assert.h>
6100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6103 grep -v '^ *+' conftest.er1 >conftest.err
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } >/dev/null; then
6108 if test -s conftest.err; then
6109 ac_cpp_err=$ac_cxx_preproc_warn_flag
6110 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6117 if test -z "$ac_cpp_err"; then
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 # Broken: fails on valid input.
6126 rm -f conftest.err conftest.$ac_ext
6128 # OK, works on sane cases. Now check whether non-existent headers
6129 # can be detected and how.
6130 cat >conftest.$ac_ext <<_ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #include <ac_nonexistent.h>
6138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } >/dev/null; then
6146 if test -s conftest.err; then
6147 ac_cpp_err=$ac_cxx_preproc_warn_flag
6148 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6155 if test -z "$ac_cpp_err"; then
6156 # Broken: success on invalid input.
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 # Passes both tests.
6166 rm -f conftest.err conftest.$ac_ext
6169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6170 rm -f conftest.err conftest.$ac_ext
6171 if $ac_preproc_ok; then
6174 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6175 See \`config.log' for more details." >&5
6176 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6177 See \`config.log' for more details." >&2;}
6178 { (exit 1); exit 1; }; }
6182 ac_cpp='$CPP $CPPFLAGS'
6183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6191 lt_save_CFLAGS="$CFLAGS"
6192 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6193 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6194 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6195 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6196 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6197 deplibs_check_method="$deplibs_check_method" \
6198 file_magic_cmd="$file_magic_cmd" \
6199 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6200 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6201 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6202 echo "$as_me: error: libtool tag configuration failed" >&2;}
6203 { (exit 1); exit 1; }; }
6205 CFLAGS="$lt_save_CFLAGS"
6207 # Redirect the config.log output again, so that the ltconfig log is not
6208 # clobbered by the next message.
6209 exec 5>>./config.log
6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
6220 set dummy $ac_prog; ac_word=$2
6221 echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6223 if test "${ac_cv_prog_GCJ+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 if test -n "$GCJ"; then
6227 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_GCJ="$ac_prog"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 if test -n "$GCJ"; then
6247 echo "$as_me:$LINENO: result: $GCJ" >&5
6248 echo "${ECHO_T}$GCJ" >&6
6250 echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6
6254 test -n "$GCJ" && break
6256 test -n "$GCJ" || GCJ="gcj"
6258 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6259 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6260 { (exit 1); exit 1; }; }
6261 if test "x${GCJFLAGS-unset}" = xunset; then
6266 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6268 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6269 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6270 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6274 # We make a subdir and do the tests there. Otherwise we can end up
6275 # making bogus files that we don't know about and never remove. For
6276 # instance it was reported that on HP-UX the gcc test will end up
6277 # making a dummy file named `D' -- because `-MD' means `put the output
6280 # Copy depcomp to subdir because otherwise we won't find it if we're
6281 # using a relative directory.
6282 cp "$am_depcomp" conftest.dir
6284 # We will build objects and dependencies in a subdirectory because
6285 # it helps to detect inapplicable dependency modes. For instance
6286 # both Tru64's cc and ICC support -MD to output dependencies as a
6287 # side effect of compilation, but ICC will put the dependencies in
6288 # the current directory while Tru64 will put them in the object
6292 am_cv_GCJ_dependencies_compiler_type=none
6293 if test "$am_compiler_list" = ""; then
6294 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6296 for depmode in $am_compiler_list; do
6297 # Setup a source with many dependencies, because some compilers
6298 # like to wrap large dependency lists on column 80 (with \), and
6299 # we should not choose a depcomp mode which is confused by this.
6301 # We need to recreate these files for each test, as the compiler may
6302 # overwrite some of them when testing with obscure command lines.
6303 # This happens at least with the AIX C compiler.
6305 for i in 1 2 3 4 5 6; do
6306 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6307 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6308 # Solaris 8's {/usr,}/bin/sh.
6309 touch sub/conftst$i.h
6311 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6315 # after this tag, mechanisms are not by side-effect, so they'll
6316 # only be used when explicitly requested
6317 if test "x$enable_dependency_tracking" = xyes; then
6325 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6326 # mode. It turns out that the SunPro C++ compiler does not properly
6327 # handle `-M -o', and we need to detect this.
6328 if depmode=$depmode \
6329 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6331 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6332 >/dev/null 2>conftest.err &&
6333 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6334 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6335 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6336 # icc doesn't choke on unknown options, it will just issue warnings
6337 # or remarks (even with -Werror). So we grep stderr for any message
6338 # that says an option was ignored or not supported.
6339 # When given -MP, icc 7.0 and 7.1 complain thusly:
6340 # icc: Command line warning: ignoring option '-M'; no argument required
6341 # The diagnosis changed in icc 8.0:
6342 # icc: Command line remark: option '-MP' not supported
6343 if (grep 'ignoring option' conftest.err ||
6344 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6345 am_cv_GCJ_dependencies_compiler_type=$depmode
6354 am_cv_GCJ_dependencies_compiler_type=none
6358 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6359 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6360 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6365 test "x$enable_dependency_tracking" != xno \
6366 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6367 am__fastdepGCJ_TRUE=
6368 am__fastdepGCJ_FALSE='#'
6370 am__fastdepGCJ_TRUE='#'
6371 am__fastdepGCJ_FALSE=
6377 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6379 lt_save_CFLAGS="$CFLAGS"
6380 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6381 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6382 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6383 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6384 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6385 deplibs_check_method="$deplibs_check_method" \
6386 file_magic_cmd="$file_magic_cmd" \
6387 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6388 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6389 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6390 echo "$as_me: error: libtool tag configuration failed" >&2;}
6391 { (exit 1); exit 1; }; }
6393 CFLAGS="$lt_save_CFLAGS"
6395 # Redirect the config.log output again, so that the ltconfig log is not
6396 # clobbered by the next message.
6397 exec 5>>./config.log
6401 if test "x$CC" != xcc; then
6402 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6403 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6405 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6406 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6408 set dummy $CC; ac_cc=`echo $2 |
6409 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6410 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6428 # Make sure it works both with $CC and with simple cc.
6429 # We do the test twice because some compilers refuse to overwrite an
6430 # existing .o file with -o, though they will create one.
6431 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6432 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); };
6443 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6444 if test "x$CC" != xcc; then
6445 # Test first that cc exists at all.
6446 if { ac_try='cc -c conftest.$ac_ext >&5'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6453 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); };
6467 # cc exists but doesn't like -o.
6468 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6473 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6478 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6479 echo "$as_me:$LINENO: result: yes" >&5
6480 echo "${ECHO_T}yes" >&6
6482 echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6
6485 cat >>confdefs.h <<\_ACEOF
6486 #define NO_MINUS_C_MINUS_O 1
6491 # FIXME: we rely on the cache variable name because
6492 # there is no other way.
6494 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6495 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6496 # Losing compiler, so override with the script.
6497 # FIXME: It is wrong to rewrite CC.
6498 # But if we don't then we get into trouble of one sort or another.
6499 # A longer-term fix would be to have automake use am__CC in this case,
6500 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6501 CC="$am_aux_dir/compile $CC"
6507 subdirs="$subdirs classpath libltdl"
6510 # The -no-testsuite modules omit the test subdir.
6513 if test -d $srcdir/testsuite; then
6515 TESTSUBDIR_FALSE='#'
6522 # Should the runtime set system properties by examining the
6523 # environment variable GCJ_PROPERTIES?
6524 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6525 if test "${enable_getenv_properties+set}" = set; then
6526 enableval="$enable_getenv_properties"
6530 # Whether GCJ_PROPERTIES is used depends on the target.
6531 if test -z "$enable_getenv_properties"; then
6532 enable_getenv_properties=${enable_getenv_properties_default-yes}
6534 if test "$enable_getenv_properties" = no; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define DISABLE_GETENV_PROPERTIES 1
6542 # Whether we should use arguments to main()
6543 if test -z "$enable_main_args"; then
6544 enable_main_args=${enable_main_args_default-yes}
6546 if test "$enable_main_args" = no; then
6548 cat >>confdefs.h <<\_ACEOF
6549 #define DISABLE_MAIN_ARGS 1
6555 # Should we use hashtable-based synchronization?
6556 # Currently works only for Linux X86/ia64
6557 # Typically faster and more space-efficient
6558 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6559 if test "${enable_hash_synchronization+set}" = set; then
6560 enableval="$enable_hash_synchronization"
6564 if test -z "$enable_hash_synchronization"; then
6565 enable_hash_synchronization=$enable_hash_synchronization_default
6569 # Check whether --with-java-home or --without-java-home was given.
6570 if test "${with_java_home+set}" = set; then
6571 withval="$with_java_home"
6572 JAVA_HOME="${withval}"
6578 if test ! -z "$JAVA_HOME"; then
6580 JAVA_HOME_SET_FALSE='#'
6582 JAVA_HOME_SET_TRUE='#'
6583 JAVA_HOME_SET_FALSE=
6588 # What is the native OS API for MinGW?
6590 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6591 if test "${with_win32_nlsapi+set}" = set; then
6592 withval="$with_win32_nlsapi"
6593 case "${withval}" in
6594 ansi) with_win32_nlsapi=ansi ;;
6595 unicows) with_win32_nlsapi=unicows ;;
6596 unicode) with_win32_nlsapi=unicode ;;
6597 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6598 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6599 { (exit 1); exit 1; }; } ;;
6602 with_win32_nlsapi=ansi
6605 case "${with_win32_nlsapi}" in
6608 cat >>confdefs.h <<\_ACEOF
6609 #define MINGW_LIBGCJ_UNICODE 1
6615 # configure.host sets slow_pthread_self if the synchronization code should
6616 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6617 if test "${slow_pthread_self}" = "yes"; then
6619 cat >>confdefs.h <<\_ACEOF
6620 #define SLOW_PTHREAD_SELF 1
6625 # Check for gc debugging. This option is handled both here and in the GC.
6626 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6627 if test "${enable_gc_debug+set}" = set; then
6628 enableval="$enable_gc_debug"
6629 if test "$enable_gc_debug" = "yes"; then
6631 cat >>confdefs.h <<\_ACEOF
6632 #define LIBGCJ_GC_DEBUG 1
6638 # See if the user has the interpreter included.
6639 # Check whether --enable-interpreter or --disable-interpreter was given.
6640 if test "${enable_interpreter+set}" = set; then
6641 enableval="$enable_interpreter"
6642 if test "$enable_interpreter" = yes; then
6643 # This can also be set in configure.host.
6644 libgcj_interpreter=yes
6645 elif test "$enable_interpreter" = no; then
6646 libgcj_interpreter=no
6650 if test "$libgcj_interpreter" = yes; then
6652 cat >>confdefs.h <<\_ACEOF
6653 #define INTERPRETER 1
6657 INTERPRETER="$libgcj_interpreter"
6660 echo "$as_me:$LINENO: checking for exception model to use" >&5
6661 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6663 ac_cpp='$CXXCPP $CPPFLAGS'
6664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6668 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6669 if test "${enable_sjlj_exceptions+set}" = set; then
6670 enableval="$enable_sjlj_exceptions"
6673 cat > conftest.$ac_ext << EOF
6674 #line 6674 "configure"
6683 old_CXXFLAGS="$CXXFLAGS"
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686 (eval $ac_compile) 2>&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; then
6690 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6691 enable_sjlj_exceptions=yes
6692 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6693 enable_sjlj_exceptions=no
6696 CXXFLAGS="$old_CXXFLAGS"
6699 if test x$enable_sjlj_exceptions = xyes; then
6701 cat >>confdefs.h <<\_ACEOF
6702 #define SJLJ_EXCEPTIONS 1
6705 ac_exception_model_name=sjlj
6706 elif test x$enable_sjlj_exceptions = xno; then
6707 ac_exception_model_name="call frame"
6709 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6710 echo "$as_me: error: unable to detect exception model" >&2;}
6711 { (exit 1); exit 1; }; }
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6719 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6720 echo "${ECHO_T}$ac_exception_model_name" >&6
6722 # If we are non using SJLJ exceptions, and this host does not have support
6723 # for unwinding from a signal handler, enable checked dereferences and divides.
6724 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6725 CHECKREFSPEC=-fcheck-references
6726 DIVIDESPEC=-fuse-divide-subroutine
6730 # See if the user wants to disable java.net. This is the mildly
6731 # ugly way that we admit that target-side configuration sucks.
6732 # Check whether --enable-java-net or --disable-java-net was given.
6733 if test "${enable_java_net+set}" = set; then
6734 enableval="$enable_java_net"
6738 # Whether java.net is built by default can depend on the target.
6739 if test -z "$enable_java_net"; then
6740 enable_java_net=${enable_java_net_default-yes}
6742 if test "$enable_java_net" = no; then
6744 cat >>confdefs.h <<\_ACEOF
6745 #define DISABLE_JAVA_NET 1
6750 # See if the user wants to configure without libffi. Some
6751 # architectures don't support it, and default values are set in
6754 # Check whether --with-libffi or --without-libffi was given.
6755 if test "${with_libffi+set}" = set; then
6756 withval="$with_libffi"
6759 with_libffi=${with_libffi_default-yes}
6764 if test "$with_libffi" != no; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define USE_LIBFFI 1
6770 LIBFFI=../libffi/libffi_convenience.la
6771 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6776 # See if the user wants to disable JVMPI support.
6777 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6778 if test "${enable_jvmpi+set}" = set; then
6779 enableval="$enable_jvmpi"
6783 if test "$enable_jvmpi" != no; then
6785 cat >>confdefs.h <<\_ACEOF
6786 #define ENABLE_JVMPI 1
6791 # If the target is an eCos system, use the appropriate eCos
6793 # FIXME: this should not be a local option but a global target
6794 # system; at present there is no eCos target.
6795 TARGET_ECOS=${PROCESS-"no"}
6797 # Check whether --with-ecos or --without-ecos was given.
6798 if test "${with_ecos+set}" = set; then
6799 withval="$with_ecos"
6800 TARGET_ECOS="$with_ecos"
6804 PLATFORM_INNER_NAT_HDRS=
6805 case "$TARGET_ECOS" in
6812 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6813 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6814 LD_PROG=`$CC --print-prog-name=ld`
6815 LD_VERSION=`$LD_PROG --version`
6816 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6817 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6818 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6821 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6825 if test "x$LD_OK" != x; then
6826 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6827 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6829 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6830 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6831 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6832 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6834 cat >>confdefs.h <<\_ACEOF
6835 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6844 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6852 cat >>confdefs.h <<\_ACEOF
6860 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6864 ac_cpp='$CPP $CPPFLAGS'
6865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6868 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6869 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6870 # On Suns, sometimes $CPP names a directory.
6871 if test -n "$CPP" && test -d "$CPP"; then
6874 if test -z "$CPP"; then
6875 if test "${ac_cv_prog_CPP+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 # Double quotes because CPP needs to be expanded
6879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6882 for ac_c_preproc_warn_flag in '' yes
6884 # Use a header file that comes with gcc, so configuring glibc
6885 # with a fresh cross-compiler works.
6886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6887 # <limits.h> exists even on freestanding compilers.
6888 # On the NeXT, cc -E runs the code through the compiler's parser,
6889 # not just through cpp. "Syntax error" is here to catch this case.
6890 cat >conftest.$ac_ext <<_ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6897 # include <limits.h>
6899 # include <assert.h>
6903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6906 grep -v '^ *+' conftest.er1 >conftest.err
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } >/dev/null; then
6911 if test -s conftest.err; then
6912 ac_cpp_err=$ac_c_preproc_warn_flag
6913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6920 if test -z "$ac_cpp_err"; then
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 # Broken: fails on valid input.
6929 rm -f conftest.err conftest.$ac_ext
6931 # OK, works on sane cases. Now check whether non-existent headers
6932 # can be detected and how.
6933 cat >conftest.$ac_ext <<_ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 #include <ac_nonexistent.h>
6941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6944 grep -v '^ *+' conftest.er1 >conftest.err
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } >/dev/null; then
6949 if test -s conftest.err; then
6950 ac_cpp_err=$ac_c_preproc_warn_flag
6951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6958 if test -z "$ac_cpp_err"; then
6959 # Broken: success on invalid input.
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 # Passes both tests.
6969 rm -f conftest.err conftest.$ac_ext
6972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6973 rm -f conftest.err conftest.$ac_ext
6974 if $ac_preproc_ok; then
6986 echo "$as_me:$LINENO: result: $CPP" >&5
6987 echo "${ECHO_T}$CPP" >&6
6989 for ac_c_preproc_warn_flag in '' yes
6991 # Use a header file that comes with gcc, so configuring glibc
6992 # with a fresh cross-compiler works.
6993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994 # <limits.h> exists even on freestanding compilers.
6995 # On the NeXT, cc -E runs the code through the compiler's parser,
6996 # not just through cpp. "Syntax error" is here to catch this case.
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7004 # include <limits.h>
7006 # include <assert.h>
7010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7013 grep -v '^ *+' conftest.er1 >conftest.err
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } >/dev/null; then
7018 if test -s conftest.err; then
7019 ac_cpp_err=$ac_c_preproc_warn_flag
7020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7027 if test -z "$ac_cpp_err"; then
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 # Broken: fails on valid input.
7036 rm -f conftest.err conftest.$ac_ext
7038 # OK, works on sane cases. Now check whether non-existent headers
7039 # can be detected and how.
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <ac_nonexistent.h>
7048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7051 grep -v '^ *+' conftest.er1 >conftest.err
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } >/dev/null; then
7056 if test -s conftest.err; then
7057 ac_cpp_err=$ac_c_preproc_warn_flag
7058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7065 if test -z "$ac_cpp_err"; then
7066 # Broken: success on invalid input.
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 # Passes both tests.
7076 rm -f conftest.err conftest.$ac_ext
7079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7080 rm -f conftest.err conftest.$ac_ext
7081 if $ac_preproc_ok; then
7084 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7085 See \`config.log' for more details." >&5
7086 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7087 See \`config.log' for more details." >&2;}
7088 { (exit 1); exit 1; }; }
7092 ac_cpp='$CPP $CPPFLAGS'
7093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098 echo "$as_me:$LINENO: checking for egrep" >&5
7099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7100 if test "${ac_cv_prog_egrep+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7104 then ac_cv_prog_egrep='grep -E'
7105 else ac_cv_prog_egrep='egrep'
7108 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7109 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7110 EGREP=$ac_cv_prog_egrep
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7123 $EGREP "uint32_t" >/dev/null 2>&1; then
7125 cat >>confdefs.h <<\_ACEOF
7126 #define HAVE_INT32_DEFINED 1
7132 cat >conftest.$ac_ext <<_ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <inttypes.h>
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 $EGREP "uint32_t" >/dev/null 2>&1; then
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_INT32_DEFINED 1
7151 cat >conftest.$ac_ext <<_ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 #include <sys/types.h>
7160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7161 $EGREP "u_int32_t" >/dev/null 2>&1; then
7163 cat >>confdefs.h <<\_ACEOF
7164 #define HAVE_BSD_INT32_DEFINED 1
7170 cat >conftest.$ac_ext <<_ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 #include <sys/config.h>
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "u_int32_t" >/dev/null 2>&1; then
7182 cat >>confdefs.h <<\_ACEOF
7183 #define HAVE_BSD_INT32_DEFINED 1
7192 if test "$PLATFORM" = Win32; then
7193 USING_WIN32_PLATFORM_TRUE=
7194 USING_WIN32_PLATFORM_FALSE='#'
7196 USING_WIN32_PLATFORM_TRUE='#'
7197 USING_WIN32_PLATFORM_FALSE=
7202 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7203 USING_POSIX_PLATFORM_TRUE=
7204 USING_POSIX_PLATFORM_FALSE='#'
7206 USING_POSIX_PLATFORM_TRUE='#'
7207 USING_POSIX_PLATFORM_FALSE=
7212 *-darwin*) DARWIN_CRT=true ;;
7213 *) DARWIN_CRT=false ;;
7217 if $DARWIN_CRT; then
7218 USING_DARWIN_CRT_TRUE=
7219 USING_DARWIN_CRT_FALSE='#'
7221 USING_DARWIN_CRT_TRUE='#'
7222 USING_DARWIN_CRT_FALSE=
7226 # These may not be defined in a non-ANS conformant embedded system.
7227 # FIXME: Should these case a runtime exception in that case?
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 $EGREP "mktime" >/dev/null 2>&1; then
7240 cat >>confdefs.h <<\_ACEOF
7241 #define HAVE_MKTIME 1
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7257 $EGREP "localtime" >/dev/null 2>&1; then
7259 cat >>confdefs.h <<\_ACEOF
7260 #define HAVE_LOCALTIME 1
7267 # Create the subdirectory for natFile.cc, or the attempt
7268 # to create the link will fail.
7269 test -d java || mkdir java
7270 test -d java/io || mkdir java/io
7271 test -d gnu || mkdir gnu
7272 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7275 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7276 test -d java/lang || mkdir java/lang
7277 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7279 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7282 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7283 test -d java/net || mkdir java/net
7284 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7286 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7289 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7290 test -d gnu/java || mkdir gnu/java
7291 test -d gnu/java/net || mkdir gnu/java/net
7292 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7294 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7297 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7298 test -d gnu/java/nio || mkdir gnu/java/nio
7299 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7301 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7303 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7304 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7309 SYSTEMSPEC="-lgdi32 -lws2_32"
7310 if test "${with_win32_nlsapi}" = "unicows"; then
7311 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7320 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7324 # Check whether --with-system-zlib or --without-system-zlib was given.
7325 if test "${with_system_zlib+set}" = set; then
7326 withval="$with_system_zlib"
7334 echo "$as_me:$LINENO: checking for X" >&5
7335 echo $ECHO_N "checking for X... $ECHO_C" >&6
7338 # Check whether --with-x or --without-x was given.
7339 if test "${with_x+set}" = set; then
7343 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7344 if test "x$with_x" = xno; then
7345 # The user explicitly disabled X.
7348 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7349 # Both variables are already set.
7352 if test "${ac_cv_have_x+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 # One or both of the vars are not set, and there is no cached value.
7356 ac_x_includes=no ac_x_libraries=no
7358 if mkdir conftest.dir; then
7360 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7361 cat >Imakefile <<'_ACEOF'
7363 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7365 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7367 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7368 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7369 for ac_extension in a so sl; do
7370 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7371 test -f $ac_im_libdir/libX11.$ac_extension; then
7372 ac_im_usrlibdir=$ac_im_libdir; break
7375 # Screen out bogus values from the imake configuration. They are
7376 # bogus both because they are the default anyway, and because
7377 # using them would break gcc on systems where it needs fixed includes.
7378 case $ac_im_incroot in
7380 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7382 case $ac_im_usrlibdir in
7384 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7391 # Standard set of common directories for X headers.
7392 # Check X11 before X11Rn because it is often a symlink to the current release.
7404 /usr/local/X11/include
7405 /usr/local/X11R6/include
7406 /usr/local/X11R5/include
7407 /usr/local/X11R4/include
7409 /usr/local/include/X11
7410 /usr/local/include/X11R6
7411 /usr/local/include/X11R5
7412 /usr/local/include/X11R4
7416 /usr/XFree86/include/X11
7420 /usr/unsupported/include
7422 /usr/local/x11r5/include
7423 /usr/lpp/Xamples/include
7425 /usr/openwin/include
7426 /usr/openwin/share/include'
7428 if test "$ac_x_includes" = no; then
7429 # Guess where to find include files, by looking for Intrinsic.h.
7430 # First, try using that file with no special directory specified.
7431 cat >conftest.$ac_ext <<_ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 #include <X11/Intrinsic.h>
7439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7442 grep -v '^ *+' conftest.er1 >conftest.err
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } >/dev/null; then
7447 if test -s conftest.err; then
7448 ac_cpp_err=$ac_c_preproc_warn_flag
7449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7456 if test -z "$ac_cpp_err"; then
7457 # We can compile using X headers with no special include directory.
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 for ac_dir in $ac_x_header_dirs; do
7464 if test -r "$ac_dir/X11/Intrinsic.h"; then
7465 ac_x_includes=$ac_dir
7470 rm -f conftest.err conftest.$ac_ext
7471 fi # $ac_x_includes = no
7473 if test "$ac_x_libraries" = no; then
7474 # Check for the libraries.
7475 # See if we find them without any special options.
7476 # Don't add to $LIBS permanently.
7479 if test x$gcc_no_link = xyes; then
7480 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7481 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7482 { (exit 1); exit 1; }; }
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 #include <X11/Intrinsic.h>
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501 (eval $ac_link) 2>conftest.er1
7503 grep -v '^ *+' conftest.er1 >conftest.err
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -z "$ac_c_werror_flag"
7509 || test ! -s conftest.err'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest$ac_exeext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7522 # We can link X programs with no special library path.
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7529 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7531 # Don't even attempt the hair of trying to link an X program!
7532 for ac_extension in a so sl; do
7533 if test -r $ac_dir/libXt.$ac_extension; then
7534 ac_x_libraries=$ac_dir
7540 rm -f conftest.err conftest.$ac_objext \
7541 conftest$ac_exeext conftest.$ac_ext
7542 fi # $ac_x_libraries = no
7544 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7545 # Didn't find X anywhere. Cache the known absence of X.
7546 ac_cv_have_x="have_x=no"
7548 # Record where we found X for the cache.
7549 ac_cv_have_x="have_x=yes \
7550 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7555 eval "$ac_cv_have_x"
7558 if test "$have_x" != yes; then
7559 echo "$as_me:$LINENO: result: $have_x" >&5
7560 echo "${ECHO_T}$have_x" >&6
7563 # If each of the values was on the command line, it overrides each guess.
7564 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7565 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7566 # Update the cache value to reflect the command line values.
7567 ac_cv_have_x="have_x=yes \
7568 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7569 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7570 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7573 if test "$no_x" = yes; then
7574 # Not all programs may use this symbol, but it does not hurt to define it.
7576 cat >>confdefs.h <<\_ACEOF
7577 #define X_DISPLAY_MISSING 1
7580 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7582 if test -n "$x_includes"; then
7583 X_CFLAGS="$X_CFLAGS -I$x_includes"
7586 # It would also be nice to do this for all -L options, not just this one.
7587 if test -n "$x_libraries"; then
7588 X_LIBS="$X_LIBS -L$x_libraries"
7589 # For Solaris; some versions of Sun CC require a space after -R and
7590 # others require no space. Words are not sufficient . . . .
7591 case `(uname -sr) 2>/dev/null` in
7593 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7594 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7595 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7596 if test x$gcc_no_link = xyes; then
7597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7599 { (exit 1); exit 1; }; }
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -z "$ac_c_werror_flag"
7626 || test ! -s conftest.err'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest$ac_exeext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7645 rm -f conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 if test $ac_R_nospace = yes; then
7648 echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6
7650 X_LIBS="$X_LIBS -R$x_libraries"
7652 LIBS="$ac_xsave_LIBS -R $x_libraries"
7653 if test x$gcc_no_link = xyes; then
7654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7656 { (exit 1); exit 1; }; }
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7673 rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675 (eval $ac_link) 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -z "$ac_c_werror_flag"
7683 || test ! -s conftest.err'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest$ac_exeext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7702 rm -f conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
7704 if test $ac_R_space = yes; then
7705 echo "$as_me:$LINENO: result: yes" >&5
7706 echo "${ECHO_T}yes" >&6
7707 X_LIBS="$X_LIBS -R $x_libraries"
7709 echo "$as_me:$LINENO: result: neither works" >&5
7710 echo "${ECHO_T}neither works" >&6
7717 # Check for system-dependent libraries X programs must link with.
7718 # Do this before checking for the system-independent R6 libraries
7719 # (-lICE), since we may need -lsocket or whatever for X linking.
7721 if test "$ISC" = yes; then
7722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7724 # Martyn Johnson says this is needed for Ultrix, if the X
7725 # libraries were built with DECnet support. And Karl Berry says
7726 # the Alpha needs dnet_stub (dnet does not exist).
7727 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7728 if test x$gcc_no_link = xyes; then
7729 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7731 { (exit 1); exit 1; }; }
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7740 /* Override any gcc2 internal prototype to avoid an error. */
7744 /* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7746 char XOpenDisplay ();
7755 rm -f conftest.$ac_objext conftest$ac_exeext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7783 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7784 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 ac_check_lib_save_LIBS=$LIBS
7789 if test x$gcc_no_link = xyes; then
7790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7792 { (exit 1); exit 1; }; }
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7801 /* Override any gcc2 internal prototype to avoid an error. */
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7816 rm -f conftest.$ac_objext conftest$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>conftest.er1
7820 grep -v '^ *+' conftest.er1 >conftest.err
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_lib_dnet_dnet_ntoa=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_lib_dnet_dnet_ntoa=no
7845 rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 LIBS=$ac_check_lib_save_LIBS
7849 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7850 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7851 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7852 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7855 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7856 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7857 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7858 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 ac_check_lib_save_LIBS=$LIBS
7862 LIBS="-ldnet_stub $LIBS"
7863 if test x$gcc_no_link = xyes; then
7864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7866 { (exit 1); exit 1; }; }
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7875 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7890 rm -f conftest.$ac_objext conftest$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest$ac_exeext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 ac_cv_lib_dnet_stub_dnet_ntoa=no
7919 rm -f conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7923 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7924 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7925 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7926 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7931 rm -f conftest.err conftest.$ac_objext \
7932 conftest$ac_exeext conftest.$ac_ext
7933 LIBS="$ac_xsave_LIBS"
7935 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7936 # to get the SysV transport functions.
7937 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7939 # The nsl library prevents programs from opening the X display
7940 # on Irix 5.2, according to T.E. Dickey.
7941 # The functions gethostbyname, getservbyname, and inet_addr are
7942 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7943 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7944 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7945 if test "${ac_cv_func_gethostbyname+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 if test x$gcc_no_link = xyes; then
7949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7951 { (exit 1); exit 1; }; }
7953 cat >conftest.$ac_ext <<_ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7961 #define gethostbyname innocuous_gethostbyname
7963 /* System header to define __stub macros and hopefully few prototypes,
7964 which can conflict with char gethostbyname (); below.
7965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7966 <limits.h> exists even on freestanding compilers. */
7969 # include <limits.h>
7971 # include <assert.h>
7974 #undef gethostbyname
7976 /* Override any gcc2 internal prototype to avoid an error. */
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char gethostbyname ();
7984 /* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7990 char (*f) () = gethostbyname;
7999 return f != gethostbyname;
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_func_gethostbyname=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_func_gethostbyname=no
8033 rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8036 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8037 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8039 if test $ac_cv_func_gethostbyname = no; then
8040 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8041 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8042 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 ac_check_lib_save_LIBS=$LIBS
8047 if test x$gcc_no_link = xyes; then
8048 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8050 { (exit 1); exit 1; }; }
8052 cat >conftest.$ac_ext <<_ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8059 /* Override any gcc2 internal prototype to avoid an error. */
8063 /* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8065 char gethostbyname ();
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076 (eval $ac_link) 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag"
8084 || test ! -s conftest.err'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest$ac_exeext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 ac_cv_lib_nsl_gethostbyname=yes
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 ac_cv_lib_nsl_gethostbyname=no
8103 rm -f conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
8105 LIBS=$ac_check_lib_save_LIBS
8107 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8108 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8109 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8113 if test $ac_cv_lib_nsl_gethostbyname = no; then
8114 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8115 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8116 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 ac_check_lib_save_LIBS=$LIBS
8121 if test x$gcc_no_link = xyes; then
8122 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8124 { (exit 1); exit 1; }; }
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8133 /* Override any gcc2 internal prototype to avoid an error. */
8137 /* We use char because int might match the return type of a gcc2
8138 builtin and then its argument prototype would still apply. */
8139 char gethostbyname ();
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8150 (eval $ac_link) 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -z "$ac_c_werror_flag"
8158 || test ! -s conftest.err'
8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_lib_bsd_gethostbyname=yes
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_cv_lib_bsd_gethostbyname=no
8177 rm -f conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
8179 LIBS=$ac_check_lib_save_LIBS
8181 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8182 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8183 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8184 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8190 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8191 # socket/setsockopt and other routines are undefined under SCO ODT
8192 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8193 # on later versions), says Simon Leinen: it contains gethostby*
8194 # variants that don't use the name server (or something). -lsocket
8195 # must be given before -lnsl if both are needed. We assume that
8196 # if connect needs -lnsl, so does gethostbyname.
8197 echo "$as_me:$LINENO: checking for connect" >&5
8198 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8199 if test "${ac_cv_func_connect+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 if test x$gcc_no_link = xyes; then
8203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8205 { (exit 1); exit 1; }; }
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8215 #define connect innocuous_connect
8217 /* System header to define __stub macros and hopefully few prototypes,
8218 which can conflict with char connect (); below.
8219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220 <limits.h> exists even on freestanding compilers. */
8223 # include <limits.h>
8225 # include <assert.h>
8230 /* Override any gcc2 internal prototype to avoid an error. */
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8238 /* The GNU C library defines this for functions which it implements
8239 to always fail with ENOSYS. Some functions are actually named
8240 something starting with __ and the normal name is an alias. */
8241 #if defined (__stub_connect) || defined (__stub___connect)
8244 char (*f) () = connect;
8253 return f != connect;
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>conftest.er1
8262 grep -v '^ *+' conftest.er1 >conftest.err
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag"
8268 || test ! -s conftest.err'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest$ac_exeext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 ac_cv_func_connect=yes
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8285 ac_cv_func_connect=no
8287 rm -f conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8291 echo "${ECHO_T}$ac_cv_func_connect" >&6
8293 if test $ac_cv_func_connect = no; then
8294 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8295 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8296 if test "${ac_cv_lib_socket_connect+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 ac_check_lib_save_LIBS=$LIBS
8300 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8301 if test x$gcc_no_link = xyes; then
8302 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8304 { (exit 1); exit 1; }; }
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8313 /* Override any gcc2 internal prototype to avoid an error. */
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330 (eval $ac_link) 2>conftest.er1
8332 grep -v '^ *+' conftest.er1 >conftest.err
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag"
8338 || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest$ac_exeext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_cv_lib_socket_connect=yes
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_cv_lib_socket_connect=no
8357 rm -f conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8359 LIBS=$ac_check_lib_save_LIBS
8361 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8362 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8363 if test $ac_cv_lib_socket_connect = yes; then
8364 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8369 # Guillermo Gomez says -lposix is necessary on A/UX.
8370 echo "$as_me:$LINENO: checking for remove" >&5
8371 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8372 if test "${ac_cv_func_remove+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 if test x$gcc_no_link = xyes; then
8376 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8377 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8378 { (exit 1); exit 1; }; }
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8388 #define remove innocuous_remove
8390 /* System header to define __stub macros and hopefully few prototypes,
8391 which can conflict with char remove (); below.
8392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8393 <limits.h> exists even on freestanding compilers. */
8396 # include <limits.h>
8398 # include <assert.h>
8403 /* Override any gcc2 internal prototype to avoid an error. */
8408 /* We use char because int might match the return type of a gcc2
8409 builtin and then its argument prototype would still apply. */
8411 /* The GNU C library defines this for functions which it implements
8412 to always fail with ENOSYS. Some functions are actually named
8413 something starting with __ and the normal name is an alias. */
8414 #if defined (__stub_remove) || defined (__stub___remove)
8417 char (*f) () = remove;
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>conftest.er1
8435 grep -v '^ *+' conftest.er1 >conftest.err
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag"
8441 || test ! -s conftest.err'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest$ac_exeext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_func_remove=yes
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_cv_func_remove=no
8460 rm -f conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
8463 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8464 echo "${ECHO_T}$ac_cv_func_remove" >&6
8466 if test $ac_cv_func_remove = no; then
8467 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8468 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8469 if test "${ac_cv_lib_posix_remove+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 ac_check_lib_save_LIBS=$LIBS
8473 LIBS="-lposix $LIBS"
8474 if test x$gcc_no_link = xyes; then
8475 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8477 { (exit 1); exit 1; }; }
8479 cat >conftest.$ac_ext <<_ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8486 /* Override any gcc2 internal prototype to avoid an error. */
8490 /* We use char because int might match the return type of a gcc2
8491 builtin and then its argument prototype would still apply. */
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>conftest.er1
8505 grep -v '^ *+' conftest.er1 >conftest.err
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } &&
8510 { ac_try='test -z "$ac_c_werror_flag"
8511 || test ! -s conftest.err'
8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; } &&
8517 { ac_try='test -s conftest$ac_exeext'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523 ac_cv_lib_posix_remove=yes
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 ac_cv_lib_posix_remove=no
8530 rm -f conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 LIBS=$ac_check_lib_save_LIBS
8534 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8535 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8536 if test $ac_cv_lib_posix_remove = yes; then
8537 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8542 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8543 echo "$as_me:$LINENO: checking for shmat" >&5
8544 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8545 if test "${ac_cv_func_shmat+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 if test x$gcc_no_link = xyes; then
8549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8551 { (exit 1); exit 1; }; }
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8561 #define shmat innocuous_shmat
8563 /* System header to define __stub macros and hopefully few prototypes,
8564 which can conflict with char shmat (); below.
8565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8566 <limits.h> exists even on freestanding compilers. */
8569 # include <limits.h>
8571 # include <assert.h>
8576 /* Override any gcc2 internal prototype to avoid an error. */
8581 /* We use char because int might match the return type of a gcc2
8582 builtin and then its argument prototype would still apply. */
8584 /* The GNU C library defines this for functions which it implements
8585 to always fail with ENOSYS. Some functions are actually named
8586 something starting with __ and the normal name is an alias. */
8587 #if defined (__stub_shmat) || defined (__stub___shmat)
8590 char (*f) () = shmat;
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606 (eval $ac_link) 2>conftest.er1
8608 grep -v '^ *+' conftest.er1 >conftest.err
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag"
8614 || test ! -s conftest.err'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest$ac_exeext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_cv_func_shmat=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8633 rm -f conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8637 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8639 if test $ac_cv_func_shmat = no; then
8640 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8641 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8642 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 ac_check_lib_save_LIBS=$LIBS
8647 if test x$gcc_no_link = xyes; then
8648 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8649 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8650 { (exit 1); exit 1; }; }
8652 cat >conftest.$ac_ext <<_ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8659 /* Override any gcc2 internal prototype to avoid an error. */
8663 /* We use char because int might match the return type of a gcc2
8664 builtin and then its argument prototype would still apply. */
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676 (eval $ac_link) 2>conftest.er1
8678 grep -v '^ *+' conftest.er1 >conftest.err
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -z "$ac_c_werror_flag"
8684 || test ! -s conftest.err'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest$ac_exeext'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 ac_cv_lib_ipc_shmat=yes
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 ac_cv_lib_ipc_shmat=no
8703 rm -f conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 LIBS=$ac_check_lib_save_LIBS
8707 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8708 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8709 if test $ac_cv_lib_ipc_shmat = yes; then
8710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8716 # Check for libraries that X11R6 Xt/Xaw programs need.
8717 ac_save_LDFLAGS=$LDFLAGS
8718 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8719 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8720 # check for ICE first), but we must link in the order -lSM -lICE or
8721 # we get undefined symbols. So assume we have SM if we have ICE.
8722 # These have to be linked with before -lX11, unlike the other
8723 # libraries we check for below, so use a different variable.
8724 # John Interrante, Karl Berry
8725 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8726 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8727 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 ac_check_lib_save_LIBS=$LIBS
8731 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8732 if test x$gcc_no_link = xyes; then
8733 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8735 { (exit 1); exit 1; }; }
8737 cat >conftest.$ac_ext <<_ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8744 /* Override any gcc2 internal prototype to avoid an error. */
8748 /* We use char because int might match the return type of a gcc2
8749 builtin and then its argument prototype would still apply. */
8750 char IceConnectionNumber ();
8754 IceConnectionNumber ();
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag"
8769 || test ! -s conftest.err'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; } &&
8775 { ac_try='test -s conftest$ac_exeext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_lib_ICE_IceConnectionNumber=yes
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_cv_lib_ICE_IceConnectionNumber=no
8788 rm -f conftest.err conftest.$ac_objext \
8789 conftest$ac_exeext conftest.$ac_ext
8790 LIBS=$ac_check_lib_save_LIBS
8792 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8793 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8794 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8795 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8798 LDFLAGS=$ac_save_LDFLAGS
8803 # determine whether to enable the cairo GTK Graphics2D backend
8804 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8805 if test "${enable_gtk_cairo+set}" = set; then
8806 enableval="$enable_gtk_cairo"
8811 if test "x${enable_gtk_cairo}" = xyes; then
8819 if test "x${enable_gtk_cairo}" = xyes
8824 if test -z "$PKG_CONFIG"; then
8825 # Extract the first word of "pkg-config", so it can be a program name with args.
8826 set dummy pkg-config; ac_word=$2
8827 echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8829 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8844 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8857 if test -n "$PKG_CONFIG"; then
8858 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8859 echo "${ECHO_T}$PKG_CONFIG" >&6
8861 echo "$as_me:$LINENO: result: no" >&5
8862 echo "${ECHO_T}no" >&6
8867 if test "$PKG_CONFIG" = "no" ; then
8868 echo "*** The pkg-config script could not be found. Make sure it is"
8869 echo "*** in your path, or set the PKG_CONFIG environment variable"
8870 echo "*** to the full path to pkg-config."
8871 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8873 PKG_CONFIG_MIN_VERSION=0.9.0
8874 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8875 echo "$as_me:$LINENO: checking for cairo" >&5
8876 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8878 if $PKG_CONFIG --exists "cairo" ; then
8879 echo "$as_me:$LINENO: result: yes" >&5
8880 echo "${ECHO_T}yes" >&6
8883 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8884 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8885 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8886 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8887 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8889 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8890 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8891 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8892 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8893 echo "${ECHO_T}$CAIRO_LIBS" >&6
8897 ## If we have a custom action on failure, don't print errors, but
8898 ## do set a variable so people can do so.
8899 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8900 echo $CAIRO_PKG_ERRORS
8906 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8907 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8911 if test $succeeded = yes; then
8914 { { 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
8915 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;}
8916 { (exit 1); exit 1; }; }
8922 if test -z "$PKG_CONFIG"; then
8923 # Extract the first word of "pkg-config", so it can be a program name with args.
8924 set dummy pkg-config; ac_word=$2
8925 echo "$as_me:$LINENO: checking for $ac_word" >&5
8926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8953 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8955 if test -n "$PKG_CONFIG"; then
8956 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8957 echo "${ECHO_T}$PKG_CONFIG" >&6
8959 echo "$as_me:$LINENO: result: no" >&5
8960 echo "${ECHO_T}no" >&6
8965 if test "$PKG_CONFIG" = "no" ; then
8966 echo "*** The pkg-config script could not be found. Make sure it is"
8967 echo "*** in your path, or set the PKG_CONFIG environment variable"
8968 echo "*** to the full path to pkg-config."
8969 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8971 PKG_CONFIG_MIN_VERSION=0.9.0
8972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8973 echo "$as_me:$LINENO: checking for pangoft2" >&5
8974 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8976 if $PKG_CONFIG --exists "pangoft2" ; then
8977 echo "$as_me:$LINENO: result: yes" >&5
8978 echo "${ECHO_T}yes" >&6
8981 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8982 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8983 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8984 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8985 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8987 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8988 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8989 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8990 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8991 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8995 ## If we have a custom action on failure, don't print errors, but
8996 ## do set a variable so people can do so.
8997 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8998 echo $PANGOFT2_PKG_ERRORS
9004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9009 if test $succeeded = yes; then
9012 { { 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
9013 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;}
9014 { (exit 1); exit 1; }; }
9023 # FIXME: this should be _libs on some hosts.
9026 # extra LD Flags which are required for targets
9029 # For now we have to disable it on darwin[8-9] because it slows down
9030 # the linking phase. A possible bug in ld?
9031 # on Darwin -single_module speeds up loading of the dynamic libraries.
9032 extra_ldflags_libjava=-Wl,-single_module
9037 # Allow the GC to be disabled. Can be useful when debugging.
9038 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9039 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9040 # Check whether --enable-java-gc or --disable-java-gc was given.
9041 if test "${enable_java_gc+set}" = set; then
9042 enableval="$enable_java_gc"
9055 echo "$as_me:$LINENO: result: boehm" >&5
9056 echo "${ECHO_T}boehm" >&6
9057 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9058 JC1GCSPEC='-fuse-boehm-gc'
9059 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9060 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9063 # The POSIX thread support needs to know this.
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_BOEHM_GC 1
9071 echo "$as_me:$LINENO: result: none" >&5
9072 echo "${ECHO_T}none" >&6
9076 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9077 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9078 { (exit 1); exit 1; }; }
9087 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9091 if test "$GC" = boehm; then
9093 USING_BOEHMGC_FALSE='#'
9095 USING_BOEHMGC_TRUE='#'
9096 USING_BOEHMGC_FALSE=
9101 if test "$GC" = no; then
9103 USING_NOGC_FALSE='#'
9111 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9112 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9113 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9114 echo "$as_me:$LINENO: result: $THREADS" >&5
9115 echo "${ECHO_T}$THREADS" >&6
9121 posix | posix95 | pthreads)
9126 cat >>confdefs.h <<\_ACEOF
9127 #define LINUX_THREADS 1
9135 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9136 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9137 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9138 { (exit 1); exit 1; }; }
9141 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9142 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9143 { (exit 1); exit 1; }; }
9158 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9161 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9162 # merely adds pthread_* functions) but it does have a -pthread switch
9163 # which is required at link-time to select -lc_r *instead* of -lc.
9164 THREADLDFLAGS=-pthread
9165 # Don't set THREADSPEC here as might be expected since -pthread is
9166 # not processed when found within a spec file, it must come from
9167 # the command line. For now, the user must provide the -pthread
9168 # switch to link code compiled with gcj. In future, consider adding
9169 # support for weak references to pthread_* functions ala gthr.h API.
9170 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9173 # FreeBSD 5 implements a model much closer to other modern UNIX
9174 # which support threads. However, it still does not support
9176 THREADLDFLAGS=-pthread
9180 THREADCXXFLAGS=-pthread
9181 # boehm-gc needs some functions from librt, so link that too.
9182 THREADLIBS='-lpthread -lrt'
9183 THREADSPEC='-lpthread -lrt'
9186 THREADLIBS=-lpthread
9187 THREADSPEC=-lpthread
9190 THREADH=posix-threads.h
9191 # MIT pthreads doesn't seem to have the mutexattr functions.
9192 # But for now we don't check for it. We just assume you aren't
9193 # using MIT pthreads.
9195 cat >>confdefs.h <<\_ACEOF
9196 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9200 # If we're using the Boehm GC, then we happen to know that it
9201 # defines _REENTRANT, so we don't bother. Eww.
9202 if test "$GC" != boehm; then
9204 cat >>confdefs.h <<\_ACEOF
9205 #define _REENTRANT 1
9210 cat >>confdefs.h <<\_ACEOF
9211 #define _POSIX_PTHREAD_SEMANTICS 1
9217 THREADH=win32-threads.h
9221 THREADH=no-threads.h
9224 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9234 if test "$THREADS" = posix; then
9235 USING_POSIX_THREADS_TRUE=
9236 USING_POSIX_THREADS_FALSE='#'
9238 USING_POSIX_THREADS_TRUE='#'
9239 USING_POSIX_THREADS_FALSE=
9244 if test "$THREADS" = win32; then
9245 USING_WIN32_THREADS_TRUE=
9246 USING_WIN32_THREADS_FALSE='#'
9248 USING_WIN32_THREADS_TRUE='#'
9249 USING_WIN32_THREADS_FALSE=
9254 if test "$THREADS" = none; then
9255 USING_NO_THREADS_TRUE=
9256 USING_NO_THREADS_FALSE='#'
9258 USING_NO_THREADS_TRUE='#'
9259 USING_NO_THREADS_FALSE=
9263 if test -d sysdep; then true; else mkdir sysdep; fi
9264 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9266 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9268 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9272 # Hash synchronization is only useful with posix threads right now.
9273 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9274 HASH_SYNC_SPEC=-fhash-synchronization
9276 cat >>confdefs.h <<\_ACEOF
9277 #define JV_HASH_SYNCHRONIZATION 1
9285 if test "$GCC" = yes; then
9294 # We're in the tree with gcc, and need to include some of its headers.
9295 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9297 if test "x${with_newlib}" = "xyes"; then
9298 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9299 # may not work correctly, because the compiler may not be able to
9302 # We assume newlib. This lets us hard-code the functions we know
9305 cat >>confdefs.h <<\_ACEOF
9306 #define HAVE_MEMMOVE 1
9310 cat >>confdefs.h <<\_ACEOF
9311 #define HAVE_MEMCPY 1
9315 cat >>confdefs.h <<\_ACEOF
9316 #define HAVE_STRERROR 1
9320 cat >>confdefs.h <<\_ACEOF
9325 cat >>confdefs.h <<\_ACEOF
9326 #define HAVE_GMTIME_R 1
9330 cat >>confdefs.h <<\_ACEOF
9331 #define HAVE_LOCALTIME_R 1
9335 cat >>confdefs.h <<\_ACEOF
9336 #define HAVE_USLEEP_DECL 1
9339 # This is only for POSIX threads.
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9345 # We also assume we are using gcc, which provides alloca.
9346 cat >>confdefs.h <<\_ACEOF
9347 #define HAVE_ALLOCA 1
9351 # Assume we do not have getuid and friends.
9353 cat >>confdefs.h <<\_ACEOF
9391 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9392 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9393 access stat mkdir rename rmdir unlink realpath utime chmod \
9394 nl_langinfo setlocale \
9395 inet_pton uname inet_ntoa \
9396 fork execvp pipe sigaction ftruncate
9398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399 echo "$as_me:$LINENO: checking for $ac_func" >&5
9400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9401 if eval "test \"\${$as_ac_var+set}\" = set"; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 if test x$gcc_no_link = xyes; then
9405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9407 { (exit 1); exit 1; }; }
9409 cat >conftest.$ac_ext <<_ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9417 #define $ac_func innocuous_$ac_func
9419 /* System header to define __stub macros and hopefully few prototypes,
9420 which can conflict with char $ac_func (); below.
9421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9422 <limits.h> exists even on freestanding compilers. */
9425 # include <limits.h>
9427 # include <assert.h>
9432 /* Override any gcc2 internal prototype to avoid an error. */
9437 /* We use char because int might match the return type of a gcc2
9438 builtin and then its argument prototype would still apply. */
9440 /* The GNU C library defines this for functions which it implements
9441 to always fail with ENOSYS. Some functions are actually named
9442 something starting with __ and the normal name is an alias. */
9443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9446 char (*f) () = $ac_func;
9455 return f != $ac_func;
9460 rm -f conftest.$ac_objext conftest$ac_exeext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>conftest.er1
9464 grep -v '^ *+' conftest.er1 >conftest.err
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_c_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest$ac_exeext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 eval "$as_ac_var=yes"
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 eval "$as_ac_var=no"
9489 rm -f conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9494 if test `eval echo '${'$as_ac_var'}'` = yes; then
9495 cat >>confdefs.h <<_ACEOF
9496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9504 for ac_func in inet_aton inet_addr
9506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9507 echo "$as_me:$LINENO: checking for $ac_func" >&5
9508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9509 if eval "test \"\${$as_ac_var+set}\" = set"; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 if test x$gcc_no_link = xyes; then
9513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9515 { (exit 1); exit 1; }; }
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9525 #define $ac_func innocuous_$ac_func
9527 /* System header to define __stub macros and hopefully few prototypes,
9528 which can conflict with char $ac_func (); below.
9529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9530 <limits.h> exists even on freestanding compilers. */
9533 # include <limits.h>
9535 # include <assert.h>
9540 /* Override any gcc2 internal prototype to avoid an error. */
9545 /* We use char because int might match the return type of a gcc2
9546 builtin and then its argument prototype would still apply. */
9548 /* The GNU C library defines this for functions which it implements
9549 to always fail with ENOSYS. Some functions are actually named
9550 something starting with __ and the normal name is an alias. */
9551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9554 char (*f) () = $ac_func;
9563 return f != $ac_func;
9568 rm -f conftest.$ac_objext conftest$ac_exeext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9570 (eval $ac_link) 2>conftest.er1
9572 grep -v '^ *+' conftest.er1 >conftest.err
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } &&
9577 { ac_try='test -z "$ac_c_werror_flag"
9578 || test ! -s conftest.err'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; } &&
9584 { ac_try='test -s conftest$ac_exeext'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 eval "$as_ac_var=yes"
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 eval "$as_ac_var=no"
9597 rm -f conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9602 if test `eval echo '${'$as_ac_var'}'` = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9610 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9611 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9612 if test "${ac_cv_header_stdc+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9634 rm -f conftest.$ac_objext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9636 (eval $ac_compile) 2>conftest.er1
9638 grep -v '^ *+' conftest.er1 >conftest.err
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try='test -z "$ac_c_werror_flag"
9644 || test ! -s conftest.err'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; } &&
9650 { ac_try='test -s conftest.$ac_objext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_header_stdc=yes
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9661 ac_cv_header_stdc=no
9663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9665 if test $ac_cv_header_stdc = yes; then
9666 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9667 cat >conftest.$ac_ext <<_ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9677 $EGREP "memchr" >/dev/null 2>&1; then
9680 ac_cv_header_stdc=no
9686 if test $ac_cv_header_stdc = yes; then
9687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9688 cat >conftest.$ac_ext <<_ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9698 $EGREP "free" >/dev/null 2>&1; then
9701 ac_cv_header_stdc=no
9707 if test $ac_cv_header_stdc = yes; then
9708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9709 if test "$cross_compiling" = yes; then
9712 cat >conftest.$ac_ext <<_ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9719 #if ((' ' & 0x0FF) == 0x020)
9720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9723 # define ISLOWER(c) \
9724 (('a' <= (c) && (c) <= 'i') \
9725 || ('j' <= (c) && (c) <= 'r') \
9726 || ('s' <= (c) && (c) <= 'z'))
9727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9735 for (i = 0; i < 256; i++)
9736 if (XOR (islower (i), ISLOWER (i))
9737 || toupper (i) != TOUPPER (i))
9742 rm -f conftest$ac_exeext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9755 echo "$as_me: program exited with status $ac_status" >&5
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_header_stdc=no
9762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9767 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9768 if test $ac_cv_header_stdc = yes; then
9770 cat >>confdefs.h <<\_ACEOF
9771 #define STDC_HEADERS 1
9776 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9786 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9787 inttypes.h stdint.h unistd.h
9789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 echo "$as_me:$LINENO: checking for $ac_header" >&5
9791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 $ac_includes_default
9803 #include <$ac_header>
9805 rm -f conftest.$ac_objext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9807 (eval $ac_compile) 2>conftest.er1
9809 grep -v '^ *+' conftest.er1 >conftest.err
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -z "$ac_c_werror_flag"
9815 || test ! -s conftest.err'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; } &&
9821 { ac_try='test -s conftest.$ac_objext'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9827 eval "$as_ac_Header=yes"
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 eval "$as_ac_Header=no"
9834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9839 cat >>confdefs.h <<_ACEOF
9840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9851 for ac_header in execinfo.h unistd.h dlfcn.h
9853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9855 echo "$as_me:$LINENO: checking for $ac_header" >&5
9856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9863 # Is the header compilable?
9864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 $ac_includes_default
9873 #include <$ac_header>
9875 rm -f conftest.$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>conftest.er1
9879 grep -v '^ *+' conftest.er1 >conftest.err
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest.$ac_objext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_header_compiler=yes
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_header_compiler=no
9904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9906 echo "${ECHO_T}$ac_header_compiler" >&6
9908 # Is the header present?
9909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 #include <$ac_header>
9919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9922 grep -v '^ *+' conftest.er1 >conftest.err
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } >/dev/null; then
9927 if test -s conftest.err; then
9928 ac_cpp_err=$ac_c_preproc_warn_flag
9929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9936 if test -z "$ac_cpp_err"; then
9937 ac_header_preproc=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_header_preproc=no
9944 rm -f conftest.err conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9946 echo "${ECHO_T}$ac_header_preproc" >&6
9948 # So? What about this header?
9949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9955 ac_header_preproc=yes
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9972 ## ---------------------------------- ##
9973 ## Report this to the libjava lists. ##
9974 ## ---------------------------------- ##
9977 sed "s/^/$as_me: WARNING: /" >&2
9980 echo "$as_me:$LINENO: checking for $ac_header" >&5
9981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 eval "$as_ac_Header=\$ac_header_preproc"
9987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9992 cat >>confdefs.h <<_ACEOF
9993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10000 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10001 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10002 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 ac_check_lib_save_LIBS=$LIBS
10007 if test x$gcc_no_link = xyes; then
10008 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10009 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10010 { (exit 1); exit 1; }; }
10012 cat >conftest.$ac_ext <<_ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10019 /* Override any gcc2 internal prototype to avoid an error. */
10023 /* We use char because int might match the return type of a gcc2
10024 builtin and then its argument prototype would still apply. */
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>conftest.er1
10038 grep -v '^ *+' conftest.er1 >conftest.err
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag"
10044 || test ! -s conftest.err'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest$ac_exeext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 ac_cv_lib_dl_dladdr=yes
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 ac_cv_lib_dl_dladdr=no
10063 rm -f conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10068 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10069 if test $ac_cv_lib_dl_dladdr = yes; then
10072 cat >>confdefs.h <<\_ACEOF
10073 #define HAVE_DLADDR 1
10079 if test x"$build" = x"$host"; then
10080 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10081 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10082 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 test "$cross_compiling" = yes &&
10086 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10087 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10088 { (exit 1); exit 1; }; }
10089 if test -r "/proc/self/exe"; then
10090 ac_cv_file__proc_self_exe=yes
10092 ac_cv_file__proc_self_exe=no
10095 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10096 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10097 if test $ac_cv_file__proc_self_exe = yes; then
10099 cat >>confdefs.h <<_ACEOF
10100 #define HAVE__PROC_SELF_EXE 1
10105 cat >>confdefs.h <<\_ACEOF
10106 #define HAVE_PROC_SELF_EXE 1
10115 cat >>confdefs.h <<\_ACEOF
10116 #define HAVE_PROC_SELF_EXE 1
10124 if test "X$prefix" = "XNONE"; then
10125 acl_final_prefix="$ac_default_prefix"
10127 acl_final_prefix="$prefix"
10129 if test "X$exec_prefix" = "XNONE"; then
10130 acl_final_exec_prefix='${prefix}'
10132 acl_final_exec_prefix="$exec_prefix"
10134 acl_save_prefix="$prefix"
10135 prefix="$acl_final_prefix"
10136 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10137 prefix="$acl_save_prefix"
10140 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10141 if test "${with_gnu_ld+set}" = set; then
10142 withval="$with_gnu_ld"
10143 test "$withval" = no || with_gnu_ld=yes
10147 # Prepare PATH_SEPARATOR.
10148 # The user is always right.
10149 if test "${PATH_SEPARATOR+set}" != set; then
10150 echo "#! /bin/sh" >conf$$.sh
10151 echo "exit 0" >>conf$$.sh
10153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10161 if test "$GCC" = yes; then
10162 # Check if gcc -print-prog-name=ld gives a path.
10163 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10164 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10167 # gcc leaves a trailing carriage return which upsets mingw
10168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10173 # Accept absolute paths.
10174 [\\/]* | [A-Za-z]:[\\/]*)
10175 re_direlt='/[^/][^/]*/\.\./'
10176 # Canonicalize the path of ld
10177 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10178 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10179 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10181 test -z "$LD" && LD="$ac_prog"
10184 # If it fails, then pretend we aren't using GCC.
10188 # If it is relative, then search for the first ld in PATH.
10189 with_gnu_ld=unknown
10192 elif test "$with_gnu_ld" = yes; then
10193 echo "$as_me:$LINENO: checking for GNU ld" >&5
10194 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10196 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10197 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10199 if test "${acl_cv_path_LD+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 if test -z "$LD"; then
10203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10204 for ac_dir in $PATH; do
10205 test -z "$ac_dir" && ac_dir=.
10206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10207 acl_cv_path_LD="$ac_dir/$ac_prog"
10208 # Check to see if the program is GNU ld. I'd rather use --version,
10209 # but apparently some GNU ld's only accept -v.
10210 # Break only if it was the GNU/non-GNU ld that we prefer.
10211 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10212 test "$with_gnu_ld" != no && break
10214 test "$with_gnu_ld" != yes && break
10220 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10224 LD="$acl_cv_path_LD"
10225 if test -n "$LD"; then
10226 echo "$as_me:$LINENO: result: $LD" >&5
10227 echo "${ECHO_T}$LD" >&6
10229 echo "$as_me:$LINENO: result: no" >&5
10230 echo "${ECHO_T}no" >&6
10232 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10233 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10234 { (exit 1); exit 1; }; }
10235 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10236 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10237 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10241 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10242 acl_cv_prog_gnu_ld=yes
10244 acl_cv_prog_gnu_ld=no
10247 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10248 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10249 with_gnu_ld=$acl_cv_prog_gnu_ld
10253 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10254 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10255 if test "${acl_cv_rpath+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10260 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10262 rm -f ./conftest.sh
10266 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10267 echo "${ECHO_T}$acl_cv_rpath" >&6
10269 libext="$acl_cv_libext"
10270 shlibext="$acl_cv_shlibext"
10271 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10272 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10273 hardcode_direct="$acl_cv_hardcode_direct"
10274 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10275 # Check whether --enable-rpath or --disable-rpath was given.
10276 if test "${enable_rpath+set}" = set; then
10277 enableval="$enable_rpath"
10291 acl_save_prefix="$prefix"
10292 prefix="$acl_final_prefix"
10293 acl_save_exec_prefix="$exec_prefix"
10294 exec_prefix="$acl_final_exec_prefix"
10296 eval additional_includedir=\"$includedir\"
10297 eval additional_libdir=\"$libdir\"
10299 exec_prefix="$acl_save_exec_prefix"
10300 prefix="$acl_save_prefix"
10303 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10304 if test "${with_libiconv_prefix+set}" = set; then
10305 withval="$with_libiconv_prefix"
10307 if test "X$withval" = "Xno"; then
10310 if test "X$withval" = "X"; then
10312 acl_save_prefix="$prefix"
10313 prefix="$acl_final_prefix"
10314 acl_save_exec_prefix="$exec_prefix"
10315 exec_prefix="$acl_final_exec_prefix"
10317 eval additional_includedir=\"$includedir\"
10318 eval additional_libdir=\"$libdir\"
10320 exec_prefix="$acl_save_exec_prefix"
10321 prefix="$acl_save_prefix"
10324 additional_includedir="$withval/include"
10325 additional_libdir="$withval/lib"
10335 names_already_handled=
10336 names_next_round='iconv '
10337 while test -n "$names_next_round"; do
10338 names_this_round="$names_next_round"
10340 for name in $names_this_round; do
10342 for n in $names_already_handled; do
10343 if test "$n" = "$name"; then
10344 already_handled=yes
10348 if test -z "$already_handled"; then
10349 names_already_handled="$names_already_handled $name"
10350 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10351 eval value=\"\$HAVE_LIB$uppername\"
10352 if test -n "$value"; then
10353 if test "$value" = yes; then
10354 eval value=\"\$LIB$uppername\"
10355 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10356 eval value=\"\$LTLIB$uppername\"
10357 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10366 if test $use_additional = yes; then
10367 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10368 found_dir="$additional_libdir"
10369 found_so="$additional_libdir/lib$name.$shlibext"
10370 if test -f "$additional_libdir/lib$name.la"; then
10371 found_la="$additional_libdir/lib$name.la"
10374 if test -f "$additional_libdir/lib$name.$libext"; then
10375 found_dir="$additional_libdir"
10376 found_a="$additional_libdir/lib$name.$libext"
10377 if test -f "$additional_libdir/lib$name.la"; then
10378 found_la="$additional_libdir/lib$name.la"
10383 if test "X$found_dir" = "X"; then
10384 for x in $LDFLAGS $LTLIBICONV; do
10386 acl_save_prefix="$prefix"
10387 prefix="$acl_final_prefix"
10388 acl_save_exec_prefix="$exec_prefix"
10389 exec_prefix="$acl_final_exec_prefix"
10391 exec_prefix="$acl_save_exec_prefix"
10392 prefix="$acl_save_prefix"
10396 dir=`echo "X$x" | sed -e 's/^X-L//'`
10397 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10399 found_so="$dir/lib$name.$shlibext"
10400 if test -f "$dir/lib$name.la"; then
10401 found_la="$dir/lib$name.la"
10404 if test -f "$dir/lib$name.$libext"; then
10406 found_a="$dir/lib$name.$libext"
10407 if test -f "$dir/lib$name.la"; then
10408 found_la="$dir/lib$name.la"
10414 if test "X$found_dir" != "X"; then
10419 if test "X$found_dir" != "X"; then
10420 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10421 if test "X$found_so" != "X"; then
10422 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10426 for x in $ltrpathdirs; do
10427 if test "X$x" = "X$found_dir"; then
10432 if test -z "$haveit"; then
10433 ltrpathdirs="$ltrpathdirs $found_dir"
10435 if test "$hardcode_direct" = yes; then
10436 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10438 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10441 for x in $rpathdirs; do
10442 if test "X$x" = "X$found_dir"; then
10447 if test -z "$haveit"; then
10448 rpathdirs="$rpathdirs $found_dir"
10452 for x in $LDFLAGS $LIBICONV; do
10454 acl_save_prefix="$prefix"
10455 prefix="$acl_final_prefix"
10456 acl_save_exec_prefix="$exec_prefix"
10457 exec_prefix="$acl_final_exec_prefix"
10459 exec_prefix="$acl_save_exec_prefix"
10460 prefix="$acl_save_prefix"
10462 if test "X$x" = "X-L$found_dir"; then
10467 if test -z "$haveit"; then
10468 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10470 if test "$hardcode_minus_L" != no; then
10471 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10473 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10479 if test "X$found_a" != "X"; then
10480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10482 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10485 additional_includedir=
10486 case "$found_dir" in
10488 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10489 additional_includedir="$basedir/include"
10492 if test "X$additional_includedir" != "X"; then
10493 if test "X$additional_includedir" != "X/usr/include"; then
10495 if test "X$additional_includedir" = "X/usr/local/include"; then
10496 if test -n "$GCC"; then
10498 linux*) haveit=yes;;
10502 if test -z "$haveit"; then
10503 for x in $CPPFLAGS $INCICONV; do
10505 acl_save_prefix="$prefix"
10506 prefix="$acl_final_prefix"
10507 acl_save_exec_prefix="$exec_prefix"
10508 exec_prefix="$acl_final_exec_prefix"
10510 exec_prefix="$acl_save_exec_prefix"
10511 prefix="$acl_save_prefix"
10513 if test "X$x" = "X-I$additional_includedir"; then
10518 if test -z "$haveit"; then
10519 if test -d "$additional_includedir"; then
10520 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10526 if test -n "$found_la"; then
10527 save_libdir="$libdir"
10528 case "$found_la" in
10529 */* | *\\*) . "$found_la" ;;
10530 *) . "./$found_la" ;;
10532 libdir="$save_libdir"
10533 for dep in $dependency_libs; do
10536 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10537 if test "X$additional_libdir" != "X/usr/lib"; then
10539 if test "X$additional_libdir" = "X/usr/local/lib"; then
10540 if test -n "$GCC"; then
10542 linux*) haveit=yes;;
10546 if test -z "$haveit"; then
10548 for x in $LDFLAGS $LIBICONV; do
10550 acl_save_prefix="$prefix"
10551 prefix="$acl_final_prefix"
10552 acl_save_exec_prefix="$exec_prefix"
10553 exec_prefix="$acl_final_exec_prefix"
10555 exec_prefix="$acl_save_exec_prefix"
10556 prefix="$acl_save_prefix"
10558 if test "X$x" = "X-L$additional_libdir"; then
10563 if test -z "$haveit"; then
10564 if test -d "$additional_libdir"; then
10565 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10569 for x in $LDFLAGS $LTLIBICONV; do
10571 acl_save_prefix="$prefix"
10572 prefix="$acl_final_prefix"
10573 acl_save_exec_prefix="$exec_prefix"
10574 exec_prefix="$acl_final_exec_prefix"
10576 exec_prefix="$acl_save_exec_prefix"
10577 prefix="$acl_save_prefix"
10579 if test "X$x" = "X-L$additional_libdir"; then
10584 if test -z "$haveit"; then
10585 if test -d "$additional_libdir"; then
10586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10593 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10594 if test "$enable_rpath" != no; then
10596 for x in $rpathdirs; do
10597 if test "X$x" = "X$dir"; then
10602 if test -z "$haveit"; then
10603 rpathdirs="$rpathdirs $dir"
10606 for x in $ltrpathdirs; do
10607 if test "X$x" = "X$dir"; then
10612 if test -z "$haveit"; then
10613 ltrpathdirs="$ltrpathdirs $dir"
10618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10624 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10625 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10631 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10638 if test "X$rpathdirs" != "X"; then
10639 if test -n "$hardcode_libdir_separator"; then
10641 for found_dir in $rpathdirs; do
10642 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10644 acl_save_libdir="$libdir"
10646 eval flag=\"$hardcode_libdir_flag_spec\"
10647 libdir="$acl_save_libdir"
10648 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10650 for found_dir in $rpathdirs; do
10651 acl_save_libdir="$libdir"
10652 libdir="$found_dir"
10653 eval flag=\"$hardcode_libdir_flag_spec\"
10654 libdir="$acl_save_libdir"
10655 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10659 if test "X$ltrpathdirs" != "X"; then
10660 for found_dir in $ltrpathdirs; do
10661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10671 am_save_CPPFLAGS="$CPPFLAGS"
10673 for element in $INCICONV; do
10675 for x in $CPPFLAGS; do
10677 acl_save_prefix="$prefix"
10678 prefix="$acl_final_prefix"
10679 acl_save_exec_prefix="$exec_prefix"
10680 exec_prefix="$acl_final_exec_prefix"
10682 exec_prefix="$acl_save_exec_prefix"
10683 prefix="$acl_save_prefix"
10685 if test "X$x" = "X$element"; then
10690 if test -z "$haveit"; then
10691 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10696 echo "$as_me:$LINENO: checking for iconv" >&5
10697 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10698 if test "${am_cv_func_iconv+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 am_cv_func_iconv="no, consider installing GNU libiconv"
10704 if test x$gcc_no_link = xyes; then
10705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10707 { (exit 1); exit 1; }; }
10709 cat >conftest.$ac_ext <<_ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #include <stdlib.h>
10720 iconv_t cd = iconv_open("","");
10721 iconv(cd,NULL,NULL,NULL,NULL);
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10729 (eval $ac_link) 2>conftest.er1
10731 grep -v '^ *+' conftest.er1 >conftest.err
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -z "$ac_c_werror_flag"
10737 || test ! -s conftest.err'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest$ac_exeext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 am_cv_func_iconv=yes
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10755 rm -f conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 if test "$am_cv_func_iconv" != yes; then
10758 am_save_LIBS="$LIBS"
10759 LIBS="$LIBS $LIBICONV"
10760 if test x$gcc_no_link = xyes; then
10761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10763 { (exit 1); exit 1; }; }
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <stdlib.h>
10776 iconv_t cd = iconv_open("","");
10777 iconv(cd,NULL,NULL,NULL,NULL);
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try='test -z "$ac_c_werror_flag"
10793 || test ! -s conftest.err'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest$ac_exeext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 am_cv_lib_iconv=yes
10806 am_cv_func_iconv=yes
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10812 rm -f conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS="$am_save_LIBS"
10818 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10819 echo "${ECHO_T}$am_cv_func_iconv" >&6
10820 if test "$am_cv_func_iconv" = yes; then
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_ICONV 1
10827 if test "$am_cv_lib_iconv" = yes; then
10828 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10829 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10830 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10831 echo "${ECHO_T}$LIBICONV" >&6
10833 CPPFLAGS="$am_save_CPPFLAGS"
10840 if test "$am_cv_func_iconv" = yes; then
10841 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10842 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10843 if test "${am_cv_proto_iconv+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 cat >conftest.$ac_ext <<_ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10854 #include <stdlib.h>
10860 #if defined(__STDC__) || defined(__cplusplus)
10861 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10878 grep -v '^ *+' conftest.er1 >conftest.err
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag"
10884 || test ! -s conftest.err'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 am_cv_proto_iconv_arg1=""
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 am_cv_proto_iconv_arg1="const"
10903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10904 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);"
10907 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10908 echo "$as_me:$LINENO: result: ${ac_t:-
10909 }$am_cv_proto_iconv" >&5
10910 echo "${ECHO_T}${ac_t:-
10911 }$am_cv_proto_iconv" >&6
10913 cat >>confdefs.h <<_ACEOF
10914 #define ICONV_CONST $am_cv_proto_iconv_arg1
10920 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10921 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10922 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 if test x$gcc_no_link = xyes; then
10926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10928 { (exit 1); exit 1; }; }
10930 cat >conftest.$ac_ext <<_ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 #include <locale.h>
10945 rm -f conftest.$ac_objext conftest$ac_exeext
10946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10947 (eval $ac_link) 2>conftest.er1
10949 grep -v '^ *+' conftest.er1 >conftest.err
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -z "$ac_c_werror_flag"
10955 || test ! -s conftest.err'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; } &&
10961 { ac_try='test -s conftest$ac_exeext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 am_cv_val_LC_MESSAGES=yes
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 am_cv_val_LC_MESSAGES=no
10974 rm -f conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10977 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10978 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10979 if test $am_cv_val_LC_MESSAGES = yes; then
10981 cat >>confdefs.h <<\_ACEOF
10982 #define HAVE_LC_MESSAGES 1
10987 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10988 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10989 if test "${ac_cv_struct_tm+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <sys/types.h>
11004 struct tm *tp; tp->tm_sec;
11009 rm -f conftest.$ac_objext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>conftest.er1
11013 grep -v '^ *+' conftest.er1 >conftest.err
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag"
11019 || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_struct_tm=time.h
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_cv_struct_tm=sys/time.h
11038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11040 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11041 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11042 if test $ac_cv_struct_tm = sys/time.h; then
11044 cat >>confdefs.h <<\_ACEOF
11045 #define TM_IN_SYS_TIME 1
11050 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11051 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11052 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 cat >conftest.$ac_ext <<_ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 #include <sys/types.h>
11062 #include <$ac_cv_struct_tm>
11068 static struct tm ac_aggr;
11069 if (ac_aggr.tm_zone)
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest.$ac_objext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_member_struct_tm_tm_zone=yes
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 cat >conftest.$ac_ext <<_ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 #include <sys/types.h>
11109 #include <$ac_cv_struct_tm>
11115 static struct tm ac_aggr;
11116 if (sizeof ac_aggr.tm_zone)
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag"
11132 || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest.$ac_objext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_member_struct_tm_tm_zone=yes
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_cv_member_struct_tm_tm_zone=no
11151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11156 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11157 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11159 cat >>confdefs.h <<_ACEOF
11160 #define HAVE_STRUCT_TM_TM_ZONE 1
11166 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11168 cat >>confdefs.h <<\_ACEOF
11169 #define HAVE_TM_ZONE 1
11173 echo "$as_me:$LINENO: checking for tzname" >&5
11174 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11175 if test "${ac_cv_var_tzname+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 if test x$gcc_no_link = xyes; then
11179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11181 { (exit 1); exit 1; }; }
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11190 #ifndef tzname /* For SGI. */
11191 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11202 rm -f conftest.$ac_objext conftest$ac_exeext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>conftest.er1
11206 grep -v '^ *+' conftest.er1 >conftest.err
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -z "$ac_c_werror_flag"
11212 || test ! -s conftest.err'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; } &&
11218 { ac_try='test -s conftest$ac_exeext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_cv_var_tzname=yes
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11229 ac_cv_var_tzname=no
11231 rm -f conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11234 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11235 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11236 if test $ac_cv_var_tzname = yes; then
11238 cat >>confdefs.h <<\_ACEOF
11239 #define HAVE_TZNAME 1
11248 for ac_func in gethostbyname_r
11250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11251 echo "$as_me:$LINENO: checking for $ac_func" >&5
11252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11253 if eval "test \"\${$as_ac_var+set}\" = set"; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 if test x$gcc_no_link = xyes; then
11257 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11258 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11259 { (exit 1); exit 1; }; }
11261 cat >conftest.$ac_ext <<_ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11269 #define $ac_func innocuous_$ac_func
11271 /* System header to define __stub macros and hopefully few prototypes,
11272 which can conflict with char $ac_func (); below.
11273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11274 <limits.h> exists even on freestanding compilers. */
11277 # include <limits.h>
11279 # include <assert.h>
11284 /* Override any gcc2 internal prototype to avoid an error. */
11289 /* We use char because int might match the return type of a gcc2
11290 builtin and then its argument prototype would still apply. */
11292 /* The GNU C library defines this for functions which it implements
11293 to always fail with ENOSYS. Some functions are actually named
11294 something starting with __ and the normal name is an alias. */
11295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11298 char (*f) () = $ac_func;
11307 return f != $ac_func;
11312 rm -f conftest.$ac_objext conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>conftest.er1
11316 grep -v '^ *+' conftest.er1 >conftest.err
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -z "$ac_c_werror_flag"
11322 || test ! -s conftest.err'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest$ac_exeext'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 eval "$as_ac_var=yes"
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 eval "$as_ac_var=no"
11341 rm -f conftest.err conftest.$ac_objext \
11342 conftest$ac_exeext conftest.$ac_ext
11344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11346 if test `eval echo '${'$as_ac_var'}'` = yes; then
11347 cat >>confdefs.h <<_ACEOF
11348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11352 cat >>confdefs.h <<\_ACEOF
11353 #define HAVE_GETHOSTBYNAME_R 1
11356 # There are two different kinds of gethostbyname_r.
11357 # We look for the one that returns `int'.
11358 # Hopefully this check is robust enough.
11359 cat >conftest.$ac_ext <<_ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11369 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11372 cat >>confdefs.h <<\_ACEOF
11373 #define GETHOSTBYNAME_R_RETURNS_INT 1
11380 case " $GCINCS " in
11381 *" -D_REENTRANT "*) ;;
11383 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11384 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11385 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 ac_cpp='$CXXCPP $CPPFLAGS'
11390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11394 cat >conftest.$ac_ext <<_ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11404 gethostbyname_r("", 0, 0);
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>conftest.er1
11413 grep -v '^ *+' conftest.er1 >conftest.err
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try='test -z "$ac_cxx_werror_flag"
11419 || test ! -s conftest.err'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try='test -s conftest.$ac_objext'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 libjava_cv_gethostbyname_r_needs_reentrant=no
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 CPPFLAGS_SAVE="$CPPFLAGS"
11437 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11438 cat >conftest.$ac_ext <<_ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11448 gethostbyname_r("", 0, 0);
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>conftest.er1
11457 grep -v '^ *+' conftest.er1 >conftest.err
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_cxx_werror_flag"
11463 || test ! -s conftest.err'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest.$ac_objext'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 libjava_cv_gethostbyname_r_needs_reentrant=yes
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 libjava_cv_gethostbyname_r_needs_reentrant=fail
11482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11483 CPPFLAGS="$CPPFLAGS_SAVE"
11486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11488 ac_cpp='$CPP $CPPFLAGS'
11489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11495 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11496 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11497 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11499 cat >>confdefs.h <<\_ACEOF
11500 #define _REENTRANT 1
11507 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11508 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11509 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11519 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11520 # define _REENTRANT 1
11526 struct hostent_data data;
11531 rm -f conftest.$ac_objext
11532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11533 (eval $ac_compile) 2>conftest.er1
11535 grep -v '^ *+' conftest.er1 >conftest.err
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag"
11541 || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 libjava_cv_struct_hostent_data=yes
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 libjava_cv_struct_hostent_data=no
11560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11563 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11564 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11566 cat >>confdefs.h <<\_ACEOF
11567 #define HAVE_STRUCT_HOSTENT_DATA 1
11576 # FIXME: libjava source code expects to find a prototype for
11577 # gethostbyaddr_r in netdb.h. The outer check ensures that
11578 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11579 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11580 # linkage check is enough, yet C++ code requires proper prototypes.)
11581 cat >conftest.$ac_ext <<_ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11591 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11594 for ac_func in gethostbyaddr_r
11596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 echo "$as_me:$LINENO: checking for $ac_func" >&5
11598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11599 if eval "test \"\${$as_ac_var+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 if test x$gcc_no_link = xyes; then
11603 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11605 { (exit 1); exit 1; }; }
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11615 #define $ac_func innocuous_$ac_func
11617 /* System header to define __stub macros and hopefully few prototypes,
11618 which can conflict with char $ac_func (); below.
11619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11620 <limits.h> exists even on freestanding compilers. */
11623 # include <limits.h>
11625 # include <assert.h>
11630 /* Override any gcc2 internal prototype to avoid an error. */
11635 /* We use char because int might match the return type of a gcc2
11636 builtin and then its argument prototype would still apply. */
11638 /* The GNU C library defines this for functions which it implements
11639 to always fail with ENOSYS. Some functions are actually named
11640 something starting with __ and the normal name is an alias. */
11641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11644 char (*f) () = $ac_func;
11653 return f != $ac_func;
11658 rm -f conftest.$ac_objext conftest$ac_exeext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 eval "$as_ac_var=yes"
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 eval "$as_ac_var=no"
11687 rm -f conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11692 if test `eval echo '${'$as_ac_var'}'` = yes; then
11693 cat >>confdefs.h <<_ACEOF
11694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_GETHOSTBYADDR_R 1
11702 # There are two different kinds of gethostbyaddr_r.
11703 # We look for the one that returns `int'.
11704 # Hopefully this check is robust enough.
11705 cat >conftest.$ac_ext <<_ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11715 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11718 cat >>confdefs.h <<\_ACEOF
11719 #define GETHOSTBYADDR_R_RETURNS_INT 1
11733 for ac_func in gethostname
11735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11736 echo "$as_me:$LINENO: checking for $ac_func" >&5
11737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11738 if eval "test \"\${$as_ac_var+set}\" = set"; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 if test x$gcc_no_link = xyes; then
11742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11744 { (exit 1); exit 1; }; }
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define $ac_func innocuous_$ac_func
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11762 # include <limits.h>
11764 # include <assert.h>
11769 /* Override any gcc2 internal prototype to avoid an error. */
11774 /* We use char because int might match the return type of a gcc2
11775 builtin and then its argument prototype would still apply. */
11777 /* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11783 char (*f) () = $ac_func;
11792 return f != $ac_func;
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799 (eval $ac_link) 2>conftest.er1
11801 grep -v '^ *+' conftest.er1 >conftest.err
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag"
11807 || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest$ac_exeext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 eval "$as_ac_var=yes"
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 eval "$as_ac_var=no"
11826 rm -f conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11831 if test `eval echo '${'$as_ac_var'}'` = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11837 cat >>confdefs.h <<\_ACEOF
11838 #define HAVE_GETHOSTNAME 1
11841 cat >conftest.$ac_ext <<_ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 #include <unistd.h>
11850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11851 $EGREP "gethostname" >/dev/null 2>&1; then
11854 cat >>confdefs.h <<\_ACEOF
11855 #define HAVE_GETHOSTNAME_DECL 1
11866 for ac_func in usleep
11868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 echo "$as_me:$LINENO: checking for $ac_func" >&5
11870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11871 if eval "test \"\${$as_ac_var+set}\" = set"; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 if test x$gcc_no_link = xyes; then
11875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11877 { (exit 1); exit 1; }; }
11879 cat >conftest.$ac_ext <<_ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11887 #define $ac_func innocuous_$ac_func
11889 /* System header to define __stub macros and hopefully few prototypes,
11890 which can conflict with char $ac_func (); below.
11891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11892 <limits.h> exists even on freestanding compilers. */
11895 # include <limits.h>
11897 # include <assert.h>
11902 /* Override any gcc2 internal prototype to avoid an error. */
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11910 /* The GNU C library defines this for functions which it implements
11911 to always fail with ENOSYS. Some functions are actually named
11912 something starting with __ and the normal name is an alias. */
11913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11916 char (*f) () = $ac_func;
11925 return f != $ac_func;
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932 (eval $ac_link) 2>conftest.er1
11934 grep -v '^ *+' conftest.er1 >conftest.err
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_c_werror_flag"
11940 || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_var=yes"
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 eval "$as_ac_var=no"
11959 rm -f conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11964 if test `eval echo '${'$as_ac_var'}'` = yes; then
11965 cat >>confdefs.h <<_ACEOF
11966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969 cat >conftest.$ac_ext <<_ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 #include <unistd.h>
11978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11979 $EGREP "usleep" >/dev/null 2>&1; then
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_USLEEP_DECL 1
11993 # Look for these functions in the thread library, but only bother
11994 # if using POSIX threads.
11995 if test "$THREADS" = posix; then
11997 LIBS="$LIBS $THREADLIBS"
11998 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12002 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12005 echo "$as_me:$LINENO: checking for $ac_func" >&5
12006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12007 if eval "test \"\${$as_ac_var+set}\" = set"; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 if test x$gcc_no_link = xyes; then
12011 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12012 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12013 { (exit 1); exit 1; }; }
12015 cat >conftest.$ac_ext <<_ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12023 #define $ac_func innocuous_$ac_func
12025 /* System header to define __stub macros and hopefully few prototypes,
12026 which can conflict with char $ac_func (); below.
12027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12028 <limits.h> exists even on freestanding compilers. */
12031 # include <limits.h>
12033 # include <assert.h>
12038 /* Override any gcc2 internal prototype to avoid an error. */
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12046 /* The GNU C library defines this for functions which it implements
12047 to always fail with ENOSYS. Some functions are actually named
12048 something starting with __ and the normal name is an alias. */
12049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12052 char (*f) () = $ac_func;
12061 return f != $ac_func;
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068 (eval $ac_link) 2>conftest.er1
12070 grep -v '^ *+' conftest.er1 >conftest.err
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -z "$ac_c_werror_flag"
12076 || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest$ac_exeext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 eval "$as_ac_var=yes"
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 eval "$as_ac_var=no"
12095 rm -f conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12100 if test `eval echo '${'$as_ac_var'}'` = yes; then
12101 cat >>confdefs.h <<_ACEOF
12102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12109 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12110 # Solaris 7 the name librt is preferred.
12112 for ac_func in sched_yield
12114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12115 echo "$as_me:$LINENO: checking for $ac_func" >&5
12116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12117 if eval "test \"\${$as_ac_var+set}\" = set"; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 if test x$gcc_no_link = xyes; then
12121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12123 { (exit 1); exit 1; }; }
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12133 #define $ac_func innocuous_$ac_func
12135 /* System header to define __stub macros and hopefully few prototypes,
12136 which can conflict with char $ac_func (); below.
12137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138 <limits.h> exists even on freestanding compilers. */
12141 # include <limits.h>
12143 # include <assert.h>
12148 /* Override any gcc2 internal prototype to avoid an error. */
12153 /* We use char because int might match the return type of a gcc2
12154 builtin and then its argument prototype would still apply. */
12156 /* The GNU C library defines this for functions which it implements
12157 to always fail with ENOSYS. Some functions are actually named
12158 something starting with __ and the normal name is an alias. */
12159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12162 char (*f) () = $ac_func;
12171 return f != $ac_func;
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>conftest.er1
12180 grep -v '^ *+' conftest.er1 >conftest.err
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest$ac_exeext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 eval "$as_ac_var=yes"
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 eval "$as_ac_var=no"
12205 rm -f conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12210 if test `eval echo '${'$as_ac_var'}'` = yes; then
12211 cat >>confdefs.h <<_ACEOF
12212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12217 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12218 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12219 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 ac_check_lib_save_LIBS=$LIBS
12224 if test x$gcc_no_link = xyes; then
12225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12227 { (exit 1); exit 1; }; }
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12236 /* Override any gcc2 internal prototype to avoid an error. */
12240 /* We use char because int might match the return type of a gcc2
12241 builtin and then its argument prototype would still apply. */
12242 char sched_yield ();
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12253 (eval $ac_link) 2>conftest.er1
12255 grep -v '^ *+' conftest.er1 >conftest.err
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_lib_rt_sched_yield=yes
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ac_cv_lib_rt_sched_yield=no
12280 rm -f conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12285 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12286 if test $ac_cv_lib_rt_sched_yield = yes; then
12288 cat >>confdefs.h <<\_ACEOF
12289 #define HAVE_SCHED_YIELD 1
12292 THREADLIBS="$THREADLIBS -lrt"
12293 THREADSPEC="$THREADSPEC -lrt"
12296 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12297 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12298 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 ac_check_lib_save_LIBS=$LIBS
12302 LIBS="-lposix4 $LIBS"
12303 if test x$gcc_no_link = xyes; then
12304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12306 { (exit 1); exit 1; }; }
12308 cat >conftest.$ac_ext <<_ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any gcc2 internal prototype to avoid an error. */
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12321 char sched_yield ();
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>conftest.er1
12334 grep -v '^ *+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_c_werror_flag"
12340 || test ! -s conftest.err'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; } &&
12346 { ac_try='test -s conftest$ac_exeext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_lib_posix4_sched_yield=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_lib_posix4_sched_yield=no
12359 rm -f conftest.err conftest.$ac_objext \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12364 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12365 if test $ac_cv_lib_posix4_sched_yield = yes; then
12367 cat >>confdefs.h <<\_ACEOF
12368 #define HAVE_SCHED_YIELD 1
12371 THREADLIBS="$THREADLIBS -lposix4"
12372 THREADSPEC="$THREADSPEC -lposix4"
12381 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12382 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12383 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12386 ac_check_lib_save_LIBS=$LIBS
12388 if test x$gcc_no_link = xyes; then
12389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12391 { (exit 1); exit 1; }; }
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12400 /* 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. */
12406 char clock_gettime ();
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>conftest.er1
12419 grep -v '^ *+' conftest.er1 >conftest.err
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_c_werror_flag"
12425 || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_lib_rt_clock_gettime=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_cv_lib_rt_clock_gettime=no
12444 rm -f conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12448 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12449 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12450 if test $ac_cv_lib_rt_clock_gettime = yes; then
12453 cat >>confdefs.h <<\_ACEOF
12454 #define HAVE_CLOCK_GETTIME 1
12457 case "$THREADSPEC" in
12459 *) THREADSPEC="$THREADSPEC -lrt" ;;
12466 # We can save a little space at runtime if the mutex has m_count
12467 # or __m_count. This is a nice hack for Linux.
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 #include <pthread.h>
12479 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12485 rm -f conftest.$ac_objext
12486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12487 (eval $ac_compile) 2>conftest.er1
12489 grep -v '^ *+' conftest.er1 >conftest.err
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -z "$ac_c_werror_flag"
12495 || test ! -s conftest.err'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest.$ac_objext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12508 cat >>confdefs.h <<\_ACEOF
12509 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12517 cat >conftest.$ac_ext <<_ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12523 #include <pthread.h>
12528 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12534 rm -f conftest.$ac_objext
12535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12536 (eval $ac_compile) 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag"
12544 || test ! -s conftest.err'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 # We require a way to get the time.
12576 for ac_func in gettimeofday time ftime
12578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12579 echo "$as_me:$LINENO: checking for $ac_func" >&5
12580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12581 if eval "test \"\${$as_ac_var+set}\" = set"; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 if test x$gcc_no_link = xyes; then
12585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12587 { (exit 1); exit 1; }; }
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12597 #define $ac_func innocuous_$ac_func
12599 /* System header to define __stub macros and hopefully few prototypes,
12600 which can conflict with char $ac_func (); below.
12601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12602 <limits.h> exists even on freestanding compilers. */
12605 # include <limits.h>
12607 # include <assert.h>
12612 /* Override any gcc2 internal prototype to avoid an error. */
12617 /* We use char because int might match the return type of a gcc2
12618 builtin and then its argument prototype would still apply. */
12620 /* The GNU C library defines this for functions which it implements
12621 to always fail with ENOSYS. Some functions are actually named
12622 something starting with __ and the normal name is an alias. */
12623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12626 char (*f) () = $ac_func;
12635 return f != $ac_func;
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 eval "$as_ac_var=yes"
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 eval "$as_ac_var=no"
12669 rm -f conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12674 if test `eval echo '${'$as_ac_var'}'` = yes; then
12675 cat >>confdefs.h <<_ACEOF
12676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12682 if test "$time_found" = no; then
12683 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12684 echo "$as_me: error: no function found to get the time" >&2;}
12685 { (exit 1); exit 1; }; }
12689 for ac_func in memmove
12691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12692 echo "$as_me:$LINENO: checking for $ac_func" >&5
12693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12694 if eval "test \"\${$as_ac_var+set}\" = set"; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 if test x$gcc_no_link = xyes; then
12698 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12699 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12700 { (exit 1); exit 1; }; }
12702 cat >conftest.$ac_ext <<_ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12710 #define $ac_func innocuous_$ac_func
12712 /* System header to define __stub macros and hopefully few prototypes,
12713 which can conflict with char $ac_func (); below.
12714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12715 <limits.h> exists even on freestanding compilers. */
12718 # include <limits.h>
12720 # include <assert.h>
12725 /* Override any gcc2 internal prototype to avoid an error. */
12730 /* We use char because int might match the return type of a gcc2
12731 builtin and then its argument prototype would still apply. */
12733 /* The GNU C library defines this for functions which it implements
12734 to always fail with ENOSYS. Some functions are actually named
12735 something starting with __ and the normal name is an alias. */
12736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12739 char (*f) () = $ac_func;
12748 return f != $ac_func;
12753 rm -f conftest.$ac_objext conftest$ac_exeext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12755 (eval $ac_link) 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag"
12763 || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 eval "$as_ac_var=yes"
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 eval "$as_ac_var=no"
12782 rm -f conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12787 if test `eval echo '${'$as_ac_var'}'` = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12796 # We require memcpy.
12799 for ac_func in memcpy
12801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12802 echo "$as_me:$LINENO: checking for $ac_func" >&5
12803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12804 if eval "test \"\${$as_ac_var+set}\" = set"; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 if test x$gcc_no_link = xyes; then
12808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12810 { (exit 1); exit 1; }; }
12812 cat >conftest.$ac_ext <<_ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12820 #define $ac_func innocuous_$ac_func
12822 /* System header to define __stub macros and hopefully few prototypes,
12823 which can conflict with char $ac_func (); below.
12824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12825 <limits.h> exists even on freestanding compilers. */
12828 # include <limits.h>
12830 # include <assert.h>
12835 /* Override any gcc2 internal prototype to avoid an error. */
12840 /* We use char because int might match the return type of a gcc2
12841 builtin and then its argument prototype would still apply. */
12843 /* The GNU C library defines this for functions which it implements
12844 to always fail with ENOSYS. Some functions are actually named
12845 something starting with __ and the normal name is an alias. */
12846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12849 char (*f) () = $ac_func;
12858 return f != $ac_func;
12863 rm -f conftest.$ac_objext conftest$ac_exeext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12865 (eval $ac_link) 2>conftest.er1
12867 grep -v '^ *+' conftest.er1 >conftest.err
12869 cat conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
12872 { ac_try='test -z "$ac_c_werror_flag"
12873 || test ! -s conftest.err'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } &&
12879 { ac_try='test -s conftest$ac_exeext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 eval "$as_ac_var=yes"
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12890 eval "$as_ac_var=no"
12892 rm -f conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12897 if test `eval echo '${'$as_ac_var'}'` = yes; then
12898 cat >>confdefs.h <<_ACEOF
12899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12905 if test "$memcpy_found" = no; then
12906 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12907 echo "$as_me: error: memcpy is required" >&2;}
12908 { (exit 1); exit 1; }; }
12911 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12912 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 ac_check_lib_save_LIBS=$LIBS
12918 if test x$gcc_no_link = xyes; then
12919 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12921 { (exit 1); exit 1; }; }
12923 cat >conftest.$ac_ext <<_ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12930 /* Override any gcc2 internal prototype to avoid an error. */
12934 /* We use char because int might match the return type of a gcc2
12935 builtin and then its argument prototype would still apply. */
12945 rm -f conftest.$ac_objext conftest$ac_exeext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12947 (eval $ac_link) 2>conftest.er1
12949 grep -v '^ *+' conftest.er1 >conftest.err
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } &&
12954 { ac_try='test -z "$ac_c_werror_flag"
12955 || test ! -s conftest.err'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; } &&
12961 { ac_try='test -s conftest$ac_exeext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_cv_lib_dl_dlopen=yes
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12972 ac_cv_lib_dl_dlopen=no
12974 rm -f conftest.err conftest.$ac_objext \
12975 conftest$ac_exeext conftest.$ac_ext
12976 LIBS=$ac_check_lib_save_LIBS
12978 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12979 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12980 if test $ac_cv_lib_dl_dlopen = yes; then
12983 cat >>confdefs.h <<\_ACEOF
12984 #define HAVE_DLOPEN 1
12990 # Some library-finding code we stole from Tcl.
12991 #--------------------------------------------------------------------
12992 # Check for the existence of the -lsocket and -lnsl libraries.
12993 # The order here is important, so that they end up in the right
12994 # order in the command line generated by make. Here are some
12995 # special considerations:
12996 # 1. Use "connect" and "accept" to check for -lsocket, and
12997 # "gethostbyname" to check for -lnsl.
12998 # 2. Use each function name only once: can't redo a check because
12999 # autoconf caches the results of the last check and won't redo it.
13000 # 3. Use -lnsl and -lsocket only if they supply procedures that
13001 # aren't already present in the normal libraries. This is because
13002 # IRIX 5.2 has libraries, but they aren't needed and they're
13003 # bogus: they goof up name resolution if used.
13004 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13005 # To get around this problem, check for both libraries together
13006 # if -lsocket doesn't work by itself.
13007 #--------------------------------------------------------------------
13009 echo "$as_me:$LINENO: checking for socket libraries" >&5
13010 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13011 if test "${gcj_cv_lib_sockets+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 gcj_cv_lib_sockets=
13016 unset ac_cv_func_connect
13017 echo "$as_me:$LINENO: checking for connect" >&5
13018 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13019 if test "${ac_cv_func_connect+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 if test x$gcc_no_link = xyes; then
13023 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13024 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13025 { (exit 1); exit 1; }; }
13027 cat >conftest.$ac_ext <<_ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13035 #define connect innocuous_connect
13037 /* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char connect (); below.
13039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13040 <limits.h> exists even on freestanding compilers. */
13043 # include <limits.h>
13045 # include <assert.h>
13050 /* Override any gcc2 internal prototype to avoid an error. */
13055 /* We use char because int might match the return type of a gcc2
13056 builtin and then its argument prototype would still apply. */
13058 /* The GNU C library defines this for functions which it implements
13059 to always fail with ENOSYS. Some functions are actually named
13060 something starting with __ and the normal name is an alias. */
13061 #if defined (__stub_connect) || defined (__stub___connect)
13064 char (*f) () = connect;
13073 return f != connect;
13078 rm -f conftest.$ac_objext conftest$ac_exeext
13079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13080 (eval $ac_link) 2>conftest.er1
13082 grep -v '^ *+' conftest.er1 >conftest.err
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
13087 { ac_try='test -z "$ac_c_werror_flag"
13088 || test ! -s conftest.err'
13089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090 (eval $ac_try) 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; } &&
13094 { ac_try='test -s conftest$ac_exeext'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }; then
13100 ac_cv_func_connect=yes
13102 echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13105 ac_cv_func_connect=no
13107 rm -f conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext conftest.$ac_ext
13110 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13111 echo "${ECHO_T}$ac_cv_func_connect" >&6
13112 if test $ac_cv_func_connect = yes; then
13118 if test "$gcj_checkSocket" = 1; then
13119 unset ac_cv_func_connect
13120 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13121 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13122 if test "${ac_cv_lib_socket_main+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 ac_check_lib_save_LIBS=$LIBS
13126 LIBS="-lsocket $LIBS"
13127 if test x$gcc_no_link = xyes; then
13128 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13129 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13130 { (exit 1); exit 1; }; }
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13148 rm -f conftest.$ac_objext conftest$ac_exeext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13150 (eval $ac_link) 2>conftest.er1
13152 grep -v '^ *+' conftest.er1 >conftest.err
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
13157 { ac_try='test -z "$ac_c_werror_flag"
13158 || test ! -s conftest.err'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest$ac_exeext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 ac_cv_lib_socket_main=yes
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13175 ac_cv_lib_socket_main=no
13177 rm -f conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
13179 LIBS=$ac_check_lib_save_LIBS
13181 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13182 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13183 if test $ac_cv_lib_socket_main = yes; then
13184 gcj_cv_lib_sockets="-lsocket"
13190 if test "$gcj_checkBoth" = 1; then
13192 LIBS="$LIBS -lsocket -lnsl"
13193 unset ac_cv_func_accept
13194 echo "$as_me:$LINENO: checking for accept" >&5
13195 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13196 if test "${ac_cv_func_accept+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 if test x$gcc_no_link = xyes; then
13200 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13201 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13202 { (exit 1); exit 1; }; }
13204 cat >conftest.$ac_ext <<_ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13210 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13212 #define accept innocuous_accept
13214 /* System header to define __stub macros and hopefully few prototypes,
13215 which can conflict with char accept (); below.
13216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13217 <limits.h> exists even on freestanding compilers. */
13220 # include <limits.h>
13222 # include <assert.h>
13227 /* Override any gcc2 internal prototype to avoid an error. */
13232 /* We use char because int might match the return type of a gcc2
13233 builtin and then its argument prototype would still apply. */
13235 /* The GNU C library defines this for functions which it implements
13236 to always fail with ENOSYS. Some functions are actually named
13237 something starting with __ and the normal name is an alias. */
13238 #if defined (__stub_accept) || defined (__stub___accept)
13241 char (*f) () = accept;
13250 return f != accept;
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13257 (eval $ac_link) 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -z "$ac_c_werror_flag"
13265 || test ! -s conftest.err'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; } &&
13271 { ac_try='test -s conftest$ac_exeext'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277 ac_cv_func_accept=yes
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 ac_cv_func_accept=no
13284 rm -f conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13287 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13288 echo "${ECHO_T}$ac_cv_func_accept" >&6
13289 if test $ac_cv_func_accept = yes; then
13291 gcj_cv_lib_sockets="-lsocket -lnsl"
13294 unset ac_cv_func_accept
13297 unset ac_cv_func_gethostbyname
13299 LIBS="$LIBS $gcj_cv_lib_sockets"
13300 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13301 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13302 if test "${ac_cv_func_gethostbyname+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 if test x$gcc_no_link = xyes; then
13306 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13307 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13308 { (exit 1); exit 1; }; }
13310 cat >conftest.$ac_ext <<_ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13316 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13318 #define gethostbyname innocuous_gethostbyname
13320 /* System header to define __stub macros and hopefully few prototypes,
13321 which can conflict with char gethostbyname (); below.
13322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13323 <limits.h> exists even on freestanding compilers. */
13326 # include <limits.h>
13328 # include <assert.h>
13331 #undef gethostbyname
13333 /* Override any gcc2 internal prototype to avoid an error. */
13338 /* We use char because int might match the return type of a gcc2
13339 builtin and then its argument prototype would still apply. */
13340 char gethostbyname ();
13341 /* The GNU C library defines this for functions which it implements
13342 to always fail with ENOSYS. Some functions are actually named
13343 something starting with __ and the normal name is an alias. */
13344 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13347 char (*f) () = gethostbyname;
13356 return f != gethostbyname;
13361 rm -f conftest.$ac_objext conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363 (eval $ac_link) 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag"
13371 || test ! -s conftest.err'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } &&
13377 { ac_try='test -s conftest$ac_exeext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 ac_cv_func_gethostbyname=yes
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 ac_cv_func_gethostbyname=no
13390 rm -f conftest.err conftest.$ac_objext \
13391 conftest$ac_exeext conftest.$ac_ext
13393 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13394 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13395 if test $ac_cv_func_gethostbyname = yes; then
13398 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13399 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13400 if test "${ac_cv_lib_nsl_main+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 ac_check_lib_save_LIBS=$LIBS
13405 if test x$gcc_no_link = xyes; then
13406 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13407 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13408 { (exit 1); exit 1; }; }
13410 cat >conftest.$ac_ext <<_ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>conftest.er1
13430 grep -v '^ *+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -z "$ac_c_werror_flag"
13436 || test ! -s conftest.err'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } &&
13442 { ac_try='test -s conftest$ac_exeext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_lib_nsl_main=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_lib_nsl_main=no
13455 rm -f conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13459 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13460 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13461 if test $ac_cv_lib_nsl_main = yes; then
13462 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13467 unset ac_cv_func_gethostbyname
13471 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13472 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13473 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13475 if test "$with_system_zlib" = yes; then
13476 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13477 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13478 if test "${ac_cv_lib_z_deflate+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 ac_check_lib_save_LIBS=$LIBS
13483 if test x$gcc_no_link = xyes; then
13484 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13486 { (exit 1); exit 1; }; }
13488 cat >conftest.$ac_ext <<_ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13495 /* Override any gcc2 internal prototype to avoid an error. */
13499 /* We use char because int might match the return type of a gcc2
13500 builtin and then its argument prototype would still apply. */
13510 rm -f conftest.$ac_objext conftest$ac_exeext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512 (eval $ac_link) 2>conftest.er1
13514 grep -v '^ *+' conftest.er1 >conftest.err
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
13519 { ac_try='test -z "$ac_c_werror_flag"
13520 || test ! -s conftest.err'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest$ac_exeext'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_cv_lib_z_deflate=yes
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 ac_cv_lib_z_deflate=no
13539 rm -f conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13543 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13544 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13545 if test $ac_cv_lib_z_deflate = yes; then
13553 # Test for Gtk stuff, if asked for.
13554 if test "$use_gtk_awt" = yes; then
13558 if test -z "$PKG_CONFIG"; then
13559 # Extract the first word of "pkg-config", so it can be a program name with args.
13560 set dummy pkg-config; ac_word=$2
13561 echo "$as_me:$LINENO: checking for $ac_word" >&5
13562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13563 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 case $PKG_CONFIG in
13568 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13585 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13589 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13591 if test -n "$PKG_CONFIG"; then
13592 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13593 echo "${ECHO_T}$PKG_CONFIG" >&6
13595 echo "$as_me:$LINENO: result: no" >&5
13596 echo "${ECHO_T}no" >&6
13601 if test "$PKG_CONFIG" = "no" ; then
13602 echo "*** The pkg-config script could not be found. Make sure it is"
13603 echo "*** in your path, or set the PKG_CONFIG environment variable"
13604 echo "*** to the full path to pkg-config."
13605 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13607 PKG_CONFIG_MIN_VERSION=0.9.0
13608 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13609 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13610 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13612 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13613 echo "$as_me:$LINENO: result: yes" >&5
13614 echo "${ECHO_T}yes" >&6
13617 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13618 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13619 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13620 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13621 echo "${ECHO_T}$GTK_CFLAGS" >&6
13623 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13624 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13625 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13626 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13627 echo "${ECHO_T}$GTK_LIBS" >&6
13631 ## If we have a custom action on failure, don't print errors, but
13632 ## do set a variable so people can do so.
13633 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13634 echo $GTK_PKG_ERRORS
13640 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13641 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13645 if test $succeeded = yes; then
13648 { { 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
13649 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;}
13650 { (exit 1); exit 1; }; }
13659 if test -z "$PKG_CONFIG"; then
13660 # Extract the first word of "pkg-config", so it can be a program name with args.
13661 set dummy pkg-config; ac_word=$2
13662 echo "$as_me:$LINENO: checking for $ac_word" >&5
13663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13664 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 case $PKG_CONFIG in
13669 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673 for as_dir in $PATH
13676 test -z "$as_dir" && as_dir=.
13677 for ac_exec_ext in '' $ac_executable_extensions; do
13678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13679 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13692 if test -n "$PKG_CONFIG"; then
13693 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13694 echo "${ECHO_T}$PKG_CONFIG" >&6
13696 echo "$as_me:$LINENO: result: no" >&5
13697 echo "${ECHO_T}no" >&6
13702 if test "$PKG_CONFIG" = "no" ; then
13703 echo "*** The pkg-config script could not be found. Make sure it is"
13704 echo "*** in your path, or set the PKG_CONFIG environment variable"
13705 echo "*** to the full path to pkg-config."
13706 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13708 PKG_CONFIG_MIN_VERSION=0.9.0
13709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13710 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13711 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13713 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13714 echo "$as_me:$LINENO: result: yes" >&5
13715 echo "${ECHO_T}yes" >&6
13718 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13719 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13720 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13721 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13722 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13724 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13725 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13726 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13727 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13728 echo "${ECHO_T}$GLIB_LIBS" >&6
13732 ## If we have a custom action on failure, don't print errors, but
13733 ## do set a variable so people can do so.
13734 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13735 echo $GLIB_PKG_ERRORS
13741 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13742 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13746 if test $succeeded = yes; then
13749 { { 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
13750 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;}
13751 { (exit 1); exit 1; }; }
13760 if test -z "$PKG_CONFIG"; then
13761 # Extract the first word of "pkg-config", so it can be a program name with args.
13762 set dummy pkg-config; ac_word=$2
13763 echo "$as_me:$LINENO: checking for $ac_word" >&5
13764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13765 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 case $PKG_CONFIG in
13770 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13774 for as_dir in $PATH
13777 test -z "$as_dir" && as_dir=.
13778 for ac_exec_ext in '' $ac_executable_extensions; do
13779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13780 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13793 if test -n "$PKG_CONFIG"; then
13794 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13795 echo "${ECHO_T}$PKG_CONFIG" >&6
13797 echo "$as_me:$LINENO: result: no" >&5
13798 echo "${ECHO_T}no" >&6
13803 if test "$PKG_CONFIG" = "no" ; then
13804 echo "*** The pkg-config script could not be found. Make sure it is"
13805 echo "*** in your path, or set the PKG_CONFIG environment variable"
13806 echo "*** to the full path to pkg-config."
13807 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13809 PKG_CONFIG_MIN_VERSION=0.9.0
13810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13811 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13812 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13814 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13815 echo "$as_me:$LINENO: result: yes" >&5
13816 echo "${ECHO_T}yes" >&6
13819 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13820 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13821 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13822 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13823 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13825 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13826 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13827 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13828 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13829 echo "${ECHO_T}$LIBART_LIBS" >&6
13833 ## If we have a custom action on failure, don't print errors, but
13834 ## do set a variable so people can do so.
13835 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13836 echo $LIBART_PKG_ERRORS
13842 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13843 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13847 if test $succeeded = yes; then
13850 { { 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
13851 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;}
13852 { (exit 1); exit 1; }; }
13858 # We require the XTest Extension to support java.awt.Robot.
13859 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13860 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13861 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 ac_check_lib_save_LIBS=$LIBS
13865 LIBS="-lXtst ${X_LIBS} $LIBS"
13866 if test x$gcc_no_link = xyes; then
13867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13869 { (exit 1); exit 1; }; }
13871 cat >conftest.$ac_ext <<_ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13878 /* Override any gcc2 internal prototype to avoid an error. */
13882 /* We use char because int might match the return type of a gcc2
13883 builtin and then its argument prototype would still apply. */
13884 char XTestQueryExtension ();
13888 XTestQueryExtension ();
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895 (eval $ac_link) 2>conftest.er1
13897 grep -v '^ *+' conftest.er1 >conftest.err
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag"
13903 || test ! -s conftest.err'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest$ac_exeext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_lib_Xtst_XTestQueryExtension=yes
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_lib_Xtst_XTestQueryExtension=no
13922 rm -f conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13924 LIBS=$ac_check_lib_save_LIBS
13926 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13927 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13928 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13931 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13932 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13933 { (exit 1); exit 1; }; }
13938 # On Solaris, and maybe other architectures, the Boehm collector
13940 if test "$GC" = boehm; then
13941 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13942 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13943 if test "${ac_cv_lib_dl_main+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 ac_check_lib_save_LIBS=$LIBS
13948 if test x$gcc_no_link = xyes; then
13949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13951 { (exit 1); exit 1; }; }
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13969 rm -f conftest.$ac_objext conftest$ac_exeext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13971 (eval $ac_link) 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag"
13979 || test ! -s conftest.err'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest$ac_exeext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_lib_dl_main=yes
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_cv_lib_dl_main=no
13998 rm -f conftest.err conftest.$ac_objext \
13999 conftest$ac_exeext conftest.$ac_ext
14000 LIBS=$ac_check_lib_save_LIBS
14002 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14003 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14004 if test $ac_cv_lib_dl_main = yes; then
14005 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14011 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14013 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14014 *) CLASSPATH_SEPARATOR=':' ;;
14018 # We must search the source tree for java.lang, since we still don't
14019 # have libgcj.jar nor java/lang/*.class
14020 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14021 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14023 # Since some classes depend on this one, we need its source available
14024 # before we can do any GCJ compilation test :-(
14025 if test ! -f gnu/classpath/Configuration.java; then
14026 test -d gnu || mkdir gnu
14027 test -d gnu/classpath || mkdir gnu/classpath
14028 # Note that it is not crucial that all the values here be correct.
14029 sed -e "s,@prefix@,$prefix," \
14030 -e "s,@VERSION@,$VERSION," \
14031 -e "s,@LIBDEBUG@,false," \
14032 -e "s,@INIT_LOAD_LIBRARY@,false," \
14033 -e "s,@@,$LIBGCJDEBUG," \
14034 -e "s,@default_toolkit@,$TOOLKIT," \
14035 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14036 -e "s,@GTK_CAIRO_ENABLED@,false," \
14037 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14038 > gnu/classpath/Configuration.java
14039 # We do not want to redirect the output of the grep below to /dev/null,
14040 # but we add /dev/null to the input list so that grep will print the
14041 # filename of Configuration.java in case it finds any matches.
14042 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14043 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14044 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14045 { (exit 1); exit 1; }; }
14049 if test -n "$ac_tool_prefix"; then
14050 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14051 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14052 echo "$as_me:$LINENO: checking for $ac_word" >&5
14053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14054 if test "${ac_cv_prog_GCJ+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 if test -n "$GCJ"; then
14058 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061 for as_dir in $PATH
14064 test -z "$as_dir" && as_dir=.
14065 for ac_exec_ext in '' $ac_executable_extensions; do
14066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14067 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 GCJ=$ac_cv_prog_GCJ
14077 if test -n "$GCJ"; then
14078 echo "$as_me:$LINENO: result: $GCJ" >&5
14079 echo "${ECHO_T}$GCJ" >&6
14081 echo "$as_me:$LINENO: result: no" >&5
14082 echo "${ECHO_T}no" >&6
14086 if test -z "$ac_cv_prog_GCJ"; then
14088 # Extract the first word of "gcj", so it can be a program name with args.
14089 set dummy gcj; ac_word=$2
14090 echo "$as_me:$LINENO: checking for $ac_word" >&5
14091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14092 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 if test -n "$ac_ct_GCJ"; then
14096 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_ac_ct_GCJ="gcj"
14106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14115 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14116 if test -n "$ac_ct_GCJ"; then
14117 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14118 echo "${ECHO_T}$ac_ct_GCJ" >&6
14120 echo "$as_me:$LINENO: result: no" >&5
14121 echo "${ECHO_T}no" >&6
14126 GCJ="$ac_cv_prog_GCJ"
14129 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14135 rm -f gnu/classpath/Configuration.java
14137 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14139 echo "$as_me:$LINENO: checking for void *" >&5
14140 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14141 if test "${ac_cv_type_void_p+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 cat >conftest.$ac_ext <<_ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 $ac_includes_default
14156 if (sizeof (void *))
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164 (eval $ac_compile) 2>conftest.er1
14166 grep -v '^ *+' conftest.er1 >conftest.err
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
14171 { ac_try='test -z "$ac_c_werror_flag"
14172 || test ! -s conftest.err'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14184 ac_cv_type_void_p=yes
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_cv_type_void_p=no
14191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14193 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14194 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14196 echo "$as_me:$LINENO: checking size of void *" >&5
14197 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14198 if test "${ac_cv_sizeof_void_p+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 if test "$ac_cv_type_void_p" = yes; then
14202 # The cast to unsigned long works around a bug in the HP C Compiler
14203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14205 # This bug is HP SR number 8606223364.
14206 if test "$cross_compiling" = yes; then
14207 # Depending upon the size, compute the lo and hi bounds.
14208 cat >conftest.$ac_ext <<_ACEOF
14211 cat confdefs.h >>conftest.$ac_ext
14212 cat >>conftest.$ac_ext <<_ACEOF
14213 /* end confdefs.h. */
14214 $ac_includes_default
14218 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14225 rm -f conftest.$ac_objext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227 (eval $ac_compile) 2>conftest.er1
14229 grep -v '^ *+' conftest.er1 >conftest.err
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -z "$ac_c_werror_flag"
14235 || test ! -s conftest.err'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; } &&
14241 { ac_try='test -s conftest.$ac_objext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14249 cat >conftest.$ac_ext <<_ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14259 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268 (eval $ac_compile) 2>conftest.er1
14270 grep -v '^ *+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -z "$ac_c_werror_flag"
14276 || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest.$ac_objext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 ac_hi=$ac_mid; break
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 ac_lo=`expr $ac_mid + 1`
14294 if test $ac_lo -le $ac_mid; then
14298 ac_mid=`expr 2 '*' $ac_mid + 1`
14300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 $ac_includes_default
14316 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14323 rm -f conftest.$ac_objext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14325 (eval $ac_compile) 2>conftest.er1
14327 grep -v '^ *+' conftest.er1 >conftest.err
14329 cat conftest.err >&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } &&
14332 { ac_try='test -z "$ac_c_werror_flag"
14333 || test ! -s conftest.err'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; } &&
14339 { ac_try='test -s conftest.$ac_objext'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 $ac_includes_default
14357 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14364 rm -f conftest.$ac_objext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366 (eval $ac_compile) 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag"
14374 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_lo=$ac_mid; break
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 ac_hi=`expr '(' $ac_mid ')' - 1`
14392 if test $ac_mid -le $ac_hi; then
14396 ac_mid=`expr 2 '*' $ac_mid`
14398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14409 # Binary search between lo and hi bounds.
14410 while test "x$ac_lo" != "x$ac_hi"; do
14411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14412 cat >conftest.$ac_ext <<_ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 $ac_includes_default
14422 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14429 rm -f conftest.$ac_objext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431 (eval $ac_compile) 2>conftest.er1
14433 grep -v '^ *+' conftest.er1 >conftest.err
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 ac_lo=`expr '(' $ac_mid ')' + 1`
14458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14461 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14462 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14463 See \`config.log' for more details." >&5
14464 echo "$as_me: error: cannot compute sizeof (void *), 77
14465 See \`config.log' for more details." >&2;}
14466 { (exit 1); exit 1; }; } ;;
14469 if test "$cross_compiling" = yes; then
14470 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14471 See \`config.log' for more details." >&5
14472 echo "$as_me: error: cannot run test program while cross compiling
14473 See \`config.log' for more details." >&2;}
14474 { (exit 1); exit 1; }; }
14476 cat >conftest.$ac_ext <<_ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 $ac_includes_default
14483 long longval () { return (long) (sizeof (void *)); }
14484 unsigned long ulongval () { return (long) (sizeof (void *)); }
14486 #include <stdlib.h>
14491 FILE *f = fopen ("conftest.val", "w");
14494 if (((long) (sizeof (void *))) < 0)
14496 long i = longval ();
14497 if (i != ((long) (sizeof (void *))))
14499 fprintf (f, "%ld\n", i);
14503 unsigned long i = ulongval ();
14504 if (i != ((long) (sizeof (void *))))
14506 fprintf (f, "%lu\n", i);
14508 exit (ferror (f) || fclose (f) != 0);
14514 rm -f conftest$ac_exeext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14516 (eval $ac_link) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 ac_cv_sizeof_void_p=`cat conftest.val`
14527 echo "$as_me: program exited with status $ac_status" >&5
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 ( exit $ac_status )
14532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14533 See \`config.log' for more details." >&5
14534 echo "$as_me: error: cannot compute sizeof (void *), 77
14535 See \`config.log' for more details." >&2;}
14536 { (exit 1); exit 1; }; }
14538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14543 ac_cv_sizeof_void_p=0
14546 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14547 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14548 cat >>confdefs.h <<_ACEOF
14549 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14554 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14555 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14556 if test "${ac_cv_c_bigendian+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 # See if sys/param.h defines the BYTE_ORDER macro.
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <sys/types.h>
14567 #include <sys/param.h>
14572 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14573 bogus endian macros
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582 (eval $ac_compile) 2>conftest.er1
14584 grep -v '^ *+' conftest.er1 >conftest.err
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
14589 { ac_try='test -z "$ac_c_werror_flag"
14590 || test ! -s conftest.err'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 # It does; now see whether it defined to BIG_ENDIAN or not.
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 #include <sys/types.h>
14610 #include <sys/param.h>
14615 #if BYTE_ORDER != BIG_ENDIAN
14623 rm -f conftest.$ac_objext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625 (eval $ac_compile) 2>conftest.er1
14627 grep -v '^ *+' conftest.er1 >conftest.err
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -z "$ac_c_werror_flag"
14633 || test ! -s conftest.err'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest.$ac_objext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_cv_c_bigendian=yes
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_cv_c_bigendian=no
14652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 # It does not; compile a test program.
14658 if test "$cross_compiling" = yes; then
14659 # try to guess the endianness by grepping values into an object file
14660 ac_cv_c_bigendian=unknown
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14668 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14669 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14670 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14671 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14672 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14676 _ascii (); _ebcdic ();
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683 (eval $ac_compile) 2>conftest.er1
14685 grep -v '^ *+' conftest.er1 >conftest.err
14687 cat conftest.err >&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -z "$ac_c_werror_flag"
14691 || test ! -s conftest.err'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest.$ac_objext'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }; then
14703 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14704 ac_cv_c_bigendian=yes
14706 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14707 if test "$ac_cv_c_bigendian" = unknown; then
14708 ac_cv_c_bigendian=no
14710 # finding both strings is unlikely to happen, but who knows?
14711 ac_cv_c_bigendian=unknown
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14721 cat >conftest.$ac_ext <<_ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14730 /* Are we little or big endian? From Harbison&Steele. */
14734 char c[sizeof (long)];
14737 exit (u.c[sizeof (long) - 1] == 1);
14740 rm -f conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_c_bigendian=no
14753 echo "$as_me: program exited with status $ac_status" >&5
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ( exit $ac_status )
14758 ac_cv_c_bigendian=yes
14760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14765 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14766 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14767 case $ac_cv_c_bigendian in
14770 cat >>confdefs.h <<\_ACEOF
14771 #define WORDS_BIGENDIAN 1
14777 { { echo "$as_me:$LINENO: error: unknown endianness
14778 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14779 echo "$as_me: error: unknown endianness
14780 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14781 { (exit 1); exit 1; }; } ;;
14789 if test -z "$ZLIBSPEC"; then
14790 # Use zlib from the GCC tree.
14791 ZINCS='-I$(top_srcdir)/../zlib'
14792 ZLIBS=../zlib/libzgcj_convenience.la
14795 SYS_ZLIBS="$ZLIBSPEC"
14808 if test "$NATIVE" = yes; then
14818 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14819 NEEDS_DATA_START_TRUE=
14820 NEEDS_DATA_START_FALSE='#'
14822 NEEDS_DATA_START_TRUE='#'
14823 NEEDS_DATA_START_FALSE=
14828 # Process the option "--enable-version-specific-runtime-libs"
14829 # Calculate toolexeclibdir
14830 case ${version_specific_libs} in
14832 # Need the gcc compiler version to know where to install libraries
14833 # and header files if --enable-version-specific-runtime-libs option
14835 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14836 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14837 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14838 toolexeclibdir=$toolexecmainlibdir
14841 if test -n "$with_cross_host" &&
14842 test x"$with_cross_host" != x"no"; then
14843 # Install a library built with a cross compiler in tooldir, not libdir.
14844 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14845 toolexecmainlibdir='$(toolexecdir)/lib'
14847 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14848 toolexecmainlibdir='$(libdir)'
14850 multi_os_directory=`$CC -print-multi-os-directory`
14851 case $multi_os_directory in
14852 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14853 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14861 # Determine where the standard .db file is found.
14862 multi_os_directory=`$CC -print-multi-os-directory`
14863 case $multi_os_directory in
14864 .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
14865 *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
14869 # Determine gcj version number.
14870 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14871 GCJVERSION=$gcjversion
14874 cat >>confdefs.h <<_ACEOF
14875 #define GCJVERSION "$GCJVERSION"
14880 cat >>confdefs.h <<\_ACEOF
14881 #define JV_VERSION "1.4.2"
14885 cat >>confdefs.h <<\_ACEOF
14886 #define JV_API_VERSION "1.4"
14891 case "${with_gxx_include_dir}" in
14893 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14894 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14895 { (exit 1); exit 1; }; }
14898 case "${enable_version_specific_runtime_libs}" in
14899 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14901 libstdcxx_incdir='c++/$(gcc_version)'
14902 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14904 *) gxx_include_dir=${with_gxx_include_dir} ;;
14910 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14911 # On that system, sys/ioctl.h will not include sys/filio.h unless
14912 # BSD_COMP is defined; just including sys/filio.h is simpler.
14913 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14914 # for now. If you change this, you also must update natFile.cc.
14935 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14936 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14937 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14938 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14943 echo "$as_me:$LINENO: checking for $ac_header" >&5
14944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14951 # Is the header compilable?
14952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 $ac_includes_default
14961 #include <$ac_header>
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>conftest.er1
14967 grep -v '^ *+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag"
14973 || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest.$ac_objext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_header_compiler=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_header_compiler=no
14992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14994 echo "${ECHO_T}$ac_header_compiler" >&6
14996 # Is the header present?
14997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14999 cat >conftest.$ac_ext <<_ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 #include <$ac_header>
15007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15010 grep -v '^ *+' conftest.er1 >conftest.err
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } >/dev/null; then
15015 if test -s conftest.err; then
15016 ac_cpp_err=$ac_c_preproc_warn_flag
15017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15024 if test -z "$ac_cpp_err"; then
15025 ac_header_preproc=yes
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 ac_header_preproc=no
15032 rm -f conftest.err conftest.$ac_ext
15033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15034 echo "${ECHO_T}$ac_header_preproc" >&6
15036 # So? What about this header?
15037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15043 ac_header_preproc=yes
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15060 ## ---------------------------------- ##
15061 ## Report this to the libjava lists. ##
15062 ## ---------------------------------- ##
15065 sed "s/^/$as_me: WARNING: /" >&2
15068 echo "$as_me:$LINENO: checking for $ac_header" >&5
15069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 eval "$as_ac_Header=\$ac_header_preproc"
15075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15080 cat >>confdefs.h <<_ACEOF
15081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15089 for ac_header in inttypes.h
15091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15093 echo "$as_me:$LINENO: checking for $ac_header" >&5
15094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15101 # Is the header compilable?
15102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15104 cat >conftest.$ac_ext <<_ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 $ac_includes_default
15111 #include <$ac_header>
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115 (eval $ac_compile) 2>conftest.er1
15117 grep -v '^ *+' conftest.er1 >conftest.err
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -z "$ac_c_werror_flag"
15123 || test ! -s conftest.err'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest.$ac_objext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 ac_header_compiler=yes
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_header_compiler=no
15142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15144 echo "${ECHO_T}$ac_header_compiler" >&6
15146 # Is the header present?
15147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15149 cat >conftest.$ac_ext <<_ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15155 #include <$ac_header>
15157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15160 grep -v '^ *+' conftest.er1 >conftest.err
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev/null; then
15165 if test -s conftest.err; then
15166 ac_cpp_err=$ac_c_preproc_warn_flag
15167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15174 if test -z "$ac_cpp_err"; then
15175 ac_header_preproc=yes
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 ac_header_preproc=no
15182 rm -f conftest.err conftest.$ac_ext
15183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15184 echo "${ECHO_T}$ac_header_preproc" >&6
15186 # So? What about this header?
15187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15193 ac_header_preproc=yes
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15210 ## ---------------------------------- ##
15211 ## Report this to the libjava lists. ##
15212 ## ---------------------------------- ##
15215 sed "s/^/$as_me: WARNING: /" >&2
15218 echo "$as_me:$LINENO: checking for $ac_header" >&5
15219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 eval "$as_ac_Header=\$ac_header_preproc"
15225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15230 cat >>confdefs.h <<_ACEOF
15231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15235 cat >>confdefs.h <<\_ACEOF
15236 #define HAVE_INTTYPES_H 1
15240 cat >>confdefs.h <<\_ACEOF
15241 #define JV_HAVE_INTTYPES_H 1
15249 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15250 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15251 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 cat >conftest.$ac_ext <<_ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 #include <sys/types.h>
15261 #include <sys/wait.h>
15262 #ifndef WEXITSTATUS
15263 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15266 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15274 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15279 rm -f conftest.$ac_objext
15280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281 (eval $ac_compile) 2>conftest.er1
15283 grep -v '^ *+' conftest.er1 >conftest.err
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag"
15289 || test ! -s conftest.err'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_cv_header_sys_wait_h=yes
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 ac_cv_header_sys_wait_h=no
15308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15310 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15311 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15312 if test $ac_cv_header_sys_wait_h = yes; then
15314 cat >>confdefs.h <<\_ACEOF
15315 #define HAVE_SYS_WAIT_H 1
15321 echo "$as_me:$LINENO: checking for ssize_t" >&5
15322 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15323 if test "${ac_cv_type_ssize_t+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 cat >conftest.$ac_ext <<_ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 $ac_includes_default
15338 if (sizeof (ssize_t))
15344 rm -f conftest.$ac_objext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>conftest.er1
15348 grep -v '^ *+' conftest.er1 >conftest.err
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_c_werror_flag"
15354 || test ! -s conftest.err'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; } &&
15360 { ac_try='test -s conftest.$ac_objext'
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_cv_type_ssize_t=yes
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_cv_type_ssize_t=no
15373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15375 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15376 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15377 if test $ac_cv_type_ssize_t = yes; then
15381 cat >>confdefs.h <<_ACEOF
15382 #define ssize_t int
15388 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15389 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15390 cat >conftest.$ac_ext <<_ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 #include <sys/types.h>
15398 #include <stdlib.h>
15399 #include <stddef.h>
15401 #if HAVE_NETINET_IN_H
15402 #include <netinet/in.h>
15412 rm -f conftest.$ac_objext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15414 (eval $ac_compile) 2>conftest.er1
15416 grep -v '^ *+' conftest.er1 >conftest.err
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try='test -z "$ac_c_werror_flag"
15422 || test ! -s conftest.err'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; } &&
15428 { ac_try='test -s conftest.$ac_objext'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE_IN_ADDR_T 1
15439 echo "$as_me:$LINENO: result: yes" >&5
15440 echo "${ECHO_T}yes" >&6
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 echo "$as_me:$LINENO: result: no" >&5
15446 echo "${ECHO_T}no" >&6
15448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15450 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15451 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15452 cat >conftest.$ac_ext <<_ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15458 #include <netinet/in.h>
15462 struct ip_mreq mreq;
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469 (eval $ac_compile) 2>conftest.er1
15471 grep -v '^ *+' conftest.er1 >conftest.err
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try='test -z "$ac_c_werror_flag"
15477 || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try='test -s conftest.$ac_objext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15490 cat >>confdefs.h <<\_ACEOF
15491 #define HAVE_STRUCT_IP_MREQ 1
15494 echo "$as_me:$LINENO: result: yes" >&5
15495 echo "${ECHO_T}yes" >&6
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 echo "$as_me:$LINENO: result: no" >&5
15501 echo "${ECHO_T}no" >&6
15503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15505 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15506 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 #include <netinet/in.h>
15517 struct ipv6_mreq mreq6;
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524 (eval $ac_compile) 2>conftest.er1
15526 grep -v '^ *+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -z "$ac_c_werror_flag"
15532 || test ! -s conftest.err'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15545 cat >>confdefs.h <<\_ACEOF
15546 #define HAVE_STRUCT_IPV6_MREQ 1
15549 echo "$as_me:$LINENO: result: yes" >&5
15550 echo "${ECHO_T}yes" >&6
15552 echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15555 echo "$as_me:$LINENO: result: no" >&5
15556 echo "${ECHO_T}no" >&6
15558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15560 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15561 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15562 cat >conftest.$ac_ext <<_ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 #include <netinet/in.h>
15572 struct sockaddr_in6 addr6;
15577 rm -f conftest.$ac_objext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579 (eval $ac_compile) 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_INET6 1
15604 echo "$as_me:$LINENO: result: yes" >&5
15605 echo "${ECHO_T}yes" >&6
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 echo "$as_me:$LINENO: result: no" >&5
15611 echo "${ECHO_T}no" >&6
15613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15615 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15616 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15617 cat >conftest.$ac_ext <<_ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 #define _POSIX_PII_SOCKET
15624 #include <sys/types.h>
15625 #include <sys/socket.h>
15634 rm -f conftest.$ac_objext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15636 (eval $ac_compile) 2>conftest.er1
15638 grep -v '^ *+' conftest.er1 >conftest.err
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -z "$ac_c_werror_flag"
15644 || test ! -s conftest.err'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; } &&
15650 { ac_try='test -s conftest.$ac_objext'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then
15657 cat >>confdefs.h <<\_ACEOF
15658 #define HAVE_SOCKLEN_T 1
15661 echo "$as_me:$LINENO: result: yes" >&5
15662 echo "${ECHO_T}yes" >&6
15664 echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15667 echo "$as_me:$LINENO: result: no" >&5
15668 echo "${ECHO_T}no" >&6
15670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15673 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15674 cat >conftest.$ac_ext <<_ACEOF
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h. */
15684 struct tm tim; tim.tm_gmtoff = 0;
15689 rm -f conftest.$ac_objext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15691 (eval $ac_compile) 2>conftest.er1
15693 grep -v '^ *+' conftest.er1 >conftest.err
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
15698 { ac_try='test -z "$ac_c_werror_flag"
15699 || test ! -s conftest.err'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest.$ac_objext'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; }; then
15712 cat >>confdefs.h <<\_ACEOF
15713 #define STRUCT_TM_HAS_GMTOFF 1
15716 echo "$as_me:$LINENO: result: yes" >&5
15717 echo "${ECHO_T}yes" >&6
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 echo "$as_me:$LINENO: result: no" >&5
15723 echo "${ECHO_T}no" >&6
15724 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15725 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15726 cat >conftest.$ac_ext <<_ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15736 void i(){long z2 = 2*timezone;}
15741 rm -f conftest.$ac_objext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15743 (eval $ac_compile) 2>conftest.er1
15745 grep -v '^ *+' conftest.er1 >conftest.err
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -z "$ac_c_werror_flag"
15751 || test ! -s conftest.err'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; } &&
15757 { ac_try='test -s conftest.$ac_objext'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15764 cat >>confdefs.h <<\_ACEOF
15765 #define HAVE_TIMEZONE 1
15768 echo "$as_me:$LINENO: result: yes" >&5
15769 echo "${ECHO_T}yes" >&6
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 echo "$as_me:$LINENO: result: no" >&5
15775 echo "${ECHO_T}no" >&6
15776 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15777 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15778 cat >conftest.$ac_ext <<_ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15788 long z2 = _timezone;
15793 rm -f conftest.$ac_objext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795 (eval $ac_compile) 2>conftest.er1
15797 grep -v '^ *+' conftest.er1 >conftest.err
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } &&
15802 { ac_try='test -z "$ac_c_werror_flag"
15803 || test ! -s conftest.err'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; } &&
15809 { ac_try='test -s conftest.$ac_objext'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_UNDERSCORE_TIMEZONE 1
15820 echo "$as_me:$LINENO: result: yes" >&5
15821 echo "${ECHO_T}yes" >&6
15823 echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15826 echo "$as_me:$LINENO: result: no" >&5
15827 echo "${ECHO_T}no" >&6
15829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15835 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15836 # for constant arguments. Useless!
15837 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15838 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15839 if test "${ac_cv_working_alloca_h+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 if test x$gcc_no_link = xyes; then
15843 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15844 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15845 { (exit 1); exit 1; }; }
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 #include <alloca.h>
15857 char *p = (char *) alloca (2 * sizeof (int));
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864 (eval $ac_link) 2>conftest.er1
15866 grep -v '^ *+' conftest.er1 >conftest.err
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try='test -z "$ac_c_werror_flag"
15872 || test ! -s conftest.err'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest$ac_exeext'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 ac_cv_working_alloca_h=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_cv_working_alloca_h=no
15891 rm -f conftest.err conftest.$ac_objext \
15892 conftest$ac_exeext conftest.$ac_ext
15894 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15895 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15896 if test $ac_cv_working_alloca_h = yes; then
15898 cat >>confdefs.h <<\_ACEOF
15899 #define HAVE_ALLOCA_H 1
15904 echo "$as_me:$LINENO: checking for alloca" >&5
15905 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15906 if test "${ac_cv_func_alloca_works+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 if test x$gcc_no_link = xyes; then
15910 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15911 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15912 { (exit 1); exit 1; }; }
15914 cat >conftest.$ac_ext <<_ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15921 # define alloca __builtin_alloca
15924 # include <malloc.h>
15925 # define alloca _alloca
15928 # include <alloca.h>
15933 # ifndef alloca /* predefined by HP cc +Olibcalls */
15944 char *p = (char *) alloca (1);
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_func_alloca_works=yes
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_cv_func_alloca_works=no
15978 rm -f conftest.err conftest.$ac_objext \
15979 conftest$ac_exeext conftest.$ac_ext
15981 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15982 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15984 if test $ac_cv_func_alloca_works = yes; then
15986 cat >>confdefs.h <<\_ACEOF
15987 #define HAVE_ALLOCA 1
15991 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15992 # that cause trouble. Some versions do not even contain alloca or
15993 # contain a buggy version. If you still want to use their alloca,
15994 # use ar to extract alloca.o from them instead of compiling alloca.c.
15996 ALLOCA=alloca.$ac_objext
15998 cat >>confdefs.h <<\_ACEOF
16003 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16004 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16005 if test "${ac_cv_os_cray+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 cat >conftest.$ac_ext <<_ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #if defined(CRAY) && ! defined(CRAY2)
16021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16022 $EGREP "webecray" >/dev/null 2>&1; then
16030 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16031 echo "${ECHO_T}$ac_cv_os_cray" >&6
16032 if test $ac_cv_os_cray = yes; then
16033 for ac_func in _getb67 GETB67 getb67; do
16034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16035 echo "$as_me:$LINENO: checking for $ac_func" >&5
16036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16037 if eval "test \"\${$as_ac_var+set}\" = set"; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 if test x$gcc_no_link = xyes; then
16041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16043 { (exit 1); exit 1; }; }
16045 cat >conftest.$ac_ext <<_ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16053 #define $ac_func innocuous_$ac_func
16055 /* System header to define __stub macros and hopefully few prototypes,
16056 which can conflict with char $ac_func (); below.
16057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16058 <limits.h> exists even on freestanding compilers. */
16061 # include <limits.h>
16063 # include <assert.h>
16068 /* Override any gcc2 internal prototype to avoid an error. */
16073 /* We use char because int might match the return type of a gcc2
16074 builtin and then its argument prototype would still apply. */
16076 /* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16082 char (*f) () = $ac_func;
16091 return f != $ac_func;
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098 (eval $ac_link) 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest$ac_exeext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 eval "$as_ac_var=yes"
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 eval "$as_ac_var=no"
16125 rm -f conftest.err conftest.$ac_objext \
16126 conftest$ac_exeext conftest.$ac_ext
16128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16130 if test `eval echo '${'$as_ac_var'}'` = yes; then
16132 cat >>confdefs.h <<_ACEOF
16133 #define CRAY_STACKSEG_END $ac_func
16142 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16143 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16144 if test "${ac_cv_c_stack_direction+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 if test "$cross_compiling" = yes; then
16148 ac_cv_c_stack_direction=0
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16157 find_stack_direction ()
16159 static char *addr = 0;
16164 return find_stack_direction ();
16167 return (&dummy > addr) ? 1 : -1;
16173 exit (find_stack_direction () < 0);
16176 rm -f conftest$ac_exeext
16177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16178 (eval $ac_link) 2>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_cv_c_stack_direction=1
16189 echo "$as_me: program exited with status $ac_status" >&5
16190 echo "$as_me: failed program was:" >&5
16191 sed 's/^/| /' conftest.$ac_ext >&5
16193 ( exit $ac_status )
16194 ac_cv_c_stack_direction=-1
16196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16199 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16200 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16202 cat >>confdefs.h <<_ACEOF
16203 #define STACK_DIRECTION $ac_cv_c_stack_direction
16209 if test x$gcc_no_link = xyes; then
16210 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
16211 ac_cv_func_mmap_fixed_mapped=no
16214 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
16217 for ac_header in stdlib.h unistd.h
16219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16221 echo "$as_me:$LINENO: checking for $ac_header" >&5
16222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16229 # Is the header compilable?
16230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16232 cat >conftest.$ac_ext <<_ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16238 $ac_includes_default
16239 #include <$ac_header>
16241 rm -f conftest.$ac_objext
16242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16243 (eval $ac_compile) 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -z "$ac_c_werror_flag"
16251 || test ! -s conftest.err'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest.$ac_objext'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16263 ac_header_compiler=yes
16265 echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16268 ac_header_compiler=no
16270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16272 echo "${ECHO_T}$ac_header_compiler" >&6
16274 # Is the header present?
16275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 #include <$ac_header>
16285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16288 grep -v '^ *+' conftest.er1 >conftest.err
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } >/dev/null; then
16293 if test -s conftest.err; then
16294 ac_cpp_err=$ac_c_preproc_warn_flag
16295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16302 if test -z "$ac_cpp_err"; then
16303 ac_header_preproc=yes
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 ac_header_preproc=no
16310 rm -f conftest.err conftest.$ac_ext
16311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16312 echo "${ECHO_T}$ac_header_preproc" >&6
16314 # So? What about this header?
16315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16321 ac_header_preproc=yes
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16338 ## ---------------------------------- ##
16339 ## Report this to the libjava lists. ##
16340 ## ---------------------------------- ##
16343 sed "s/^/$as_me: WARNING: /" >&2
16346 echo "$as_me:$LINENO: checking for $ac_header" >&5
16347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16351 eval "$as_ac_Header=\$ac_header_preproc"
16353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16358 cat >>confdefs.h <<_ACEOF
16359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16367 for ac_func in getpagesize
16369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16370 echo "$as_me:$LINENO: checking for $ac_func" >&5
16371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16372 if eval "test \"\${$as_ac_var+set}\" = set"; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 if test x$gcc_no_link = xyes; then
16376 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16377 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16378 { (exit 1); exit 1; }; }
16380 cat >conftest.$ac_ext <<_ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16388 #define $ac_func innocuous_$ac_func
16390 /* System header to define __stub macros and hopefully few prototypes,
16391 which can conflict with char $ac_func (); below.
16392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16393 <limits.h> exists even on freestanding compilers. */
16396 # include <limits.h>
16398 # include <assert.h>
16403 /* Override any gcc2 internal prototype to avoid an error. */
16408 /* We use char because int might match the return type of a gcc2
16409 builtin and then its argument prototype would still apply. */
16411 /* The GNU C library defines this for functions which it implements
16412 to always fail with ENOSYS. Some functions are actually named
16413 something starting with __ and the normal name is an alias. */
16414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16417 char (*f) () = $ac_func;
16426 return f != $ac_func;
16431 rm -f conftest.$ac_objext conftest$ac_exeext
16432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16433 (eval $ac_link) 2>conftest.er1
16435 grep -v '^ *+' conftest.er1 >conftest.err
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag"
16441 || test ! -s conftest.err'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest$ac_exeext'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 eval "$as_ac_var=yes"
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 eval "$as_ac_var=no"
16460 rm -f conftest.err conftest.$ac_objext \
16461 conftest$ac_exeext conftest.$ac_ext
16463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16465 if test `eval echo '${'$as_ac_var'}'` = yes; then
16466 cat >>confdefs.h <<_ACEOF
16467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16473 echo "$as_me:$LINENO: checking for working mmap" >&5
16474 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16475 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 if test "$cross_compiling" = yes; then
16479 ac_cv_func_mmap_fixed_mapped=no
16481 cat >conftest.$ac_ext <<_ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16487 $ac_includes_default
16488 /* malloc might have been renamed as rpl_malloc. */
16491 /* Thanks to Mike Haertel and Jim Avera for this test.
16492 Here is a matrix of mmap possibilities:
16493 mmap private not fixed
16494 mmap private fixed at somewhere currently unmapped
16495 mmap private fixed at somewhere already mapped
16496 mmap shared not fixed
16497 mmap shared fixed at somewhere currently unmapped
16498 mmap shared fixed at somewhere already mapped
16499 For private mappings, we should verify that changes cannot be read()
16500 back from the file, nor mmap's back from the file at a different
16501 address. (There have been systems where private was not correctly
16502 implemented like the infamous i386 svr4.0, and systems where the
16503 VM page cache was not coherent with the file system buffer cache
16504 like early versions of FreeBSD and possibly contemporary NetBSD.)
16505 For shared mappings, we should conversely verify that changes get
16506 propagated back to all the places they're supposed to be.
16508 Grep wants private fixed already mapped.
16509 The main things grep needs to know about mmap are:
16510 * does it exist and is it safe to write into the mmap'd area
16511 * how to use it (BSD variants) */
16514 #include <sys/mman.h>
16516 #if !STDC_HEADERS && !HAVE_STDLIB_H
16520 /* This mess was copied from the GNU getpagesize.h. */
16521 #if !HAVE_GETPAGESIZE
16522 /* Assume that all systems that can run configure have sys/param.h. */
16523 # if !HAVE_SYS_PARAM_H
16524 # define HAVE_SYS_PARAM_H 1
16527 # ifdef _SC_PAGESIZE
16528 # define getpagesize() sysconf(_SC_PAGESIZE)
16529 # else /* no _SC_PAGESIZE */
16530 # if HAVE_SYS_PARAM_H
16531 # include <sys/param.h>
16532 # ifdef EXEC_PAGESIZE
16533 # define getpagesize() EXEC_PAGESIZE
16534 # else /* no EXEC_PAGESIZE */
16536 # define getpagesize() NBPG * CLSIZE
16539 # endif /* no CLSIZE */
16540 # else /* no NBPG */
16542 # define getpagesize() NBPC
16543 # else /* no NBPC */
16545 # define getpagesize() PAGESIZE
16546 # endif /* PAGESIZE */
16547 # endif /* no NBPC */
16548 # endif /* no NBPG */
16549 # endif /* no EXEC_PAGESIZE */
16550 # else /* no HAVE_SYS_PARAM_H */
16551 # define getpagesize() 8192 /* punt totally */
16552 # endif /* no HAVE_SYS_PARAM_H */
16553 # endif /* no _SC_PAGESIZE */
16555 #endif /* no HAVE_GETPAGESIZE */
16560 char *data, *data2, *data3;
16564 pagesize = getpagesize ();
16566 /* First, make a file with some known garbage in it. */
16567 data = (char *) malloc (pagesize);
16570 for (i = 0; i < pagesize; ++i)
16571 *(data + i) = rand ();
16573 fd = creat ("conftest.mmap", 0600);
16576 if (write (fd, data, pagesize) != pagesize)
16580 /* Next, try to mmap the file at a fixed address which already has
16581 something else allocated at it. If we can, also make sure that
16582 we see the same garbage. */
16583 fd = open ("conftest.mmap", O_RDWR);
16586 data2 = (char *) malloc (2 * pagesize);
16589 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16590 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16591 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16593 for (i = 0; i < pagesize; ++i)
16594 if (*(data + i) != *(data2 + i))
16597 /* Finally, make sure that changes to the mapped area do not
16598 percolate back to the file as seen by read(). (This is a bug on
16599 some variants of i386 svr4.0.) */
16600 for (i = 0; i < pagesize; ++i)
16601 *(data2 + i) = *(data2 + i) + 1;
16602 data3 = (char *) malloc (pagesize);
16605 if (read (fd, data3, pagesize) != pagesize)
16607 for (i = 0; i < pagesize; ++i)
16608 if (*(data + i) != *(data3 + i))
16614 rm -f conftest$ac_exeext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616 (eval $ac_link) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_func_mmap_fixed_mapped=yes
16627 echo "$as_me: program exited with status $ac_status" >&5
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ( exit $ac_status )
16632 ac_cv_func_mmap_fixed_mapped=no
16634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16637 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16638 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16639 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16641 cat >>confdefs.h <<\_ACEOF
16642 #define HAVE_MMAP 1
16646 rm -f conftest.mmap
16650 for ac_prog in perl
16652 # Extract the first word of "$ac_prog", so it can be a program name with args.
16653 set dummy $ac_prog; ac_word=$2
16654 echo "$as_me:$LINENO: checking for $ac_word" >&5
16655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16656 if test "${ac_cv_prog_PERL+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 if test -n "$PERL"; then
16660 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16663 for as_dir in $PATH
16666 test -z "$as_dir" && as_dir=.
16667 for ac_exec_ext in '' $ac_executable_extensions; do
16668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16669 ac_cv_prog_PERL="$ac_prog"
16670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16678 PERL=$ac_cv_prog_PERL
16679 if test -n "$PERL"; then
16680 echo "$as_me:$LINENO: result: $PERL" >&5
16681 echo "${ECHO_T}$PERL" >&6
16683 echo "$as_me:$LINENO: result: no" >&5
16684 echo "${ECHO_T}no" >&6
16687 test -n "$PERL" && break
16689 test -n "$PERL" || PERL="false"
16693 SIGNAL_HANDLER_AUX=
16697 SIGNAL_HANDLER=include/i386-signal.h
16699 sparc*-sun-solaris*)
16700 SIGNAL_HANDLER=include/sparc-signal.h
16703 # SYSDEP_SOURCES=sysdep/ia64.c
16704 # test -d sysdep || mkdir sysdep
16707 SIGNAL_HANDLER=include/pa-signal.h
16710 SIGNAL_HANDLER=include/dwarf2-signal.h
16713 SIGNAL_HANDLER=include/powerpc-signal.h
16716 SIGNAL_HANDLER=include/dwarf2-signal.h
16719 SIGNAL_HANDLER=include/s390-signal.h
16722 SIGNAL_HANDLER=include/x86_64-signal.h
16723 SIGNAL_HANDLER_AUX=include/i386-signal.h
16726 SIGNAL_HANDLER=include/dwarf2-signal.h
16729 SIGNAL_HANDLER=include/sh-signal.h
16732 SIGNAL_HANDLER=include/win32-signal.h
16735 SIGNAL_HANDLER=include/mips-signal.h
16738 SIGNAL_HANDLER=include/darwin-signal.h
16741 SIGNAL_HANDLER=include/default-signal.h
16745 # If we're using sjlj exceptions, forget what we just learned.
16746 if test "$enable_sjlj_exceptions" = yes; then
16747 SIGNAL_HANDLER=include/default-signal.h
16748 SIGNAL_HANDLER_AUX=
16753 if test -z "$SIGNAL_HANDLER_AUX"; then
16754 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16757 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16760 if test "${multilib}" = "yes"; then
16761 multilib_arg="--enable-multilib"
16766 # See if we support thread-local storage.
16768 # Check whether --enable-tls or --disable-tls was given.
16769 if test "${enable_tls+set}" = set; then
16770 enableval="$enable_tls"
16772 case "$enableval" in
16774 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16775 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16776 { (exit 1); exit 1; }; } ;;
16783 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16784 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16785 if test "${have_tls+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 if test "$cross_compiling" = yes; then
16790 cat >conftest.$ac_ext <<_ACEOF
16793 rm -f conftest.$ac_objext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16795 (eval $ac_compile) 2>conftest.er1
16797 grep -v '^ *+' conftest.er1 >conftest.err
16799 cat conftest.err >&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -z "$ac_c_werror_flag"
16803 || test ! -s conftest.err'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest.$ac_objext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16825 cat >conftest.$ac_ext <<_ACEOF
16826 __thread int a; int b; int main() { return a = b; }
16828 rm -f conftest$ac_exeext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16830 (eval $ac_link) 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 save_LDFLAGS="$LDFLAGS"
16840 LDFLAGS="-static $LDFLAGS"
16841 if test "$cross_compiling" = yes; then
16842 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16843 See \`config.log' for more details." >&5
16844 echo "$as_me: error: cannot run test program while cross compiling
16845 See \`config.log' for more details." >&2;}
16846 { (exit 1); exit 1; }; }
16848 cat >conftest.$ac_ext <<_ACEOF
16849 __thread int a; int b; int main() { return a = b; }
16851 rm -f conftest$ac_exeext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16853 (eval $ac_link) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16864 echo "$as_me: program exited with status $ac_status" >&5
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 ( exit $ac_status )
16871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16873 LDFLAGS="$save_LDFLAGS"
16875 echo "$as_me: program exited with status $ac_status" >&5
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ( exit $ac_status )
16882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16885 echo "$as_me:$LINENO: result: $have_tls" >&5
16886 echo "${ECHO_T}$have_tls" >&6
16887 if test "$enable_tls $have_tls" = "yes yes"; then
16889 cat >>confdefs.h <<\_ACEOF
16895 # Check if linker supports static linking on a per library basis
16896 LD_START_STATIC_SPEC=
16897 LD_FINISH_STATIC_SPEC=
16898 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16899 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16900 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16901 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16907 here=`${PWDCMD-pwd}`
16910 # We get this from the environment.
16913 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16916 ac_config_commands="$ac_config_commands default"
16919 cat >confcache <<\_ACEOF
16920 # This file is a shell script that caches the results of configure
16921 # tests run on this system so they can be shared between configure
16922 # scripts and configure runs, see configure's option --config-cache.
16923 # It is not useful on other systems. If it contains results you don't
16924 # want to keep, you may remove or edit it.
16926 # config.status only pays attention to the cache file if you give it
16927 # the --recheck option to rerun configure.
16929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16931 # following values.
16935 # The following way of writing the cache mishandles newlines in values,
16936 # but we know of no workaround that is simple, portable, and efficient.
16937 # So, don't put newlines in cache variables' values.
16938 # Ultrix sh set writes to stderr and can't be redirected directly,
16939 # and sets the high bit in the cache file unless we assign to the vars.
16942 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16944 # `set' does not quote correctly, so add quotes (double-quote
16945 # substitution turns \\\\ into \\, and sed turns \\ into \).
16948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16951 # `set' quotes correctly as required by POSIX, so do not add quotes.
16953 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16962 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16964 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16965 if test -w $cache_file; then
16966 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16967 cat confcache >$cache_file
16969 echo "not updating unwritable cache $cache_file"
16974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16975 # Let make expand exec_prefix.
16976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16978 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16979 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16980 # trailing colons and then remove the whole line if VPATH becomes empty
16981 # (actually we leave an empty line to preserve line numbers).
16982 if test "x$srcdir" = x.; then
16983 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16984 s/:*\$(srcdir):*/:/;
16985 s/:*\${srcdir}:*/:/;
16987 s/^\([^=]*=[ ]*\):*/\1/;
16993 DEFS=-DHAVE_CONFIG_H
16997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16998 # 1. Remove the extension, and $U if already installed.
16999 ac_i=`echo "$ac_i" |
17000 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17002 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17003 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17005 LIBOBJS=$ac_libobjs
17007 LTLIBOBJS=$ac_ltlibobjs
17010 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17011 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17012 Usually this means the macro was only invoked conditionally." >&5
17013 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17014 Usually this means the macro was only invoked conditionally." >&2;}
17015 { (exit 1); exit 1; }; }
17017 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17018 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17019 Usually this means the macro was only invoked conditionally." >&5
17020 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17021 Usually this means the macro was only invoked conditionally." >&2;}
17022 { (exit 1); exit 1; }; }
17024 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17025 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17026 Usually this means the macro was only invoked conditionally." >&5
17027 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17028 Usually this means the macro was only invoked conditionally." >&2;}
17029 { (exit 1); exit 1; }; }
17031 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17032 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17033 Usually this means the macro was only invoked conditionally." >&5
17034 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17035 Usually this means the macro was only invoked conditionally." >&2;}
17036 { (exit 1); exit 1; }; }
17038 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17039 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17040 Usually this means the macro was only invoked conditionally." >&5
17041 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17042 Usually this means the macro was only invoked conditionally." >&2;}
17043 { (exit 1); exit 1; }; }
17045 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
17046 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
17047 Usually this means the macro was only invoked conditionally." >&5
17048 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
17049 Usually this means the macro was only invoked conditionally." >&2;}
17050 { (exit 1); exit 1; }; }
17052 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
17053 { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
17054 Usually this means the macro was only invoked conditionally." >&5
17055 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
17056 Usually this means the macro was only invoked conditionally." >&2;}
17057 { (exit 1); exit 1; }; }
17059 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17060 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17061 Usually this means the macro was only invoked conditionally." >&5
17062 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17063 Usually this means the macro was only invoked conditionally." >&2;}
17064 { (exit 1); exit 1; }; }
17066 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17067 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17068 Usually this means the macro was only invoked conditionally." >&5
17069 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17070 Usually this means the macro was only invoked conditionally." >&2;}
17071 { (exit 1); exit 1; }; }
17073 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17074 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17075 Usually this means the macro was only invoked conditionally." >&5
17076 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17077 Usually this means the macro was only invoked conditionally." >&2;}
17078 { (exit 1); exit 1; }; }
17080 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17081 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17082 Usually this means the macro was only invoked conditionally." >&5
17083 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17084 Usually this means the macro was only invoked conditionally." >&2;}
17085 { (exit 1); exit 1; }; }
17087 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17088 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17089 Usually this means the macro was only invoked conditionally." >&5
17090 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17091 Usually this means the macro was only invoked conditionally." >&2;}
17092 { (exit 1); exit 1; }; }
17094 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17095 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17096 Usually this means the macro was only invoked conditionally." >&5
17097 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17098 Usually this means the macro was only invoked conditionally." >&2;}
17099 { (exit 1); exit 1; }; }
17101 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17102 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17103 Usually this means the macro was only invoked conditionally." >&5
17104 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17105 Usually this means the macro was only invoked conditionally." >&2;}
17106 { (exit 1); exit 1; }; }
17108 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17109 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17110 Usually this means the macro was only invoked conditionally." >&5
17111 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17112 Usually this means the macro was only invoked conditionally." >&2;}
17113 { (exit 1); exit 1; }; }
17115 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17116 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17117 Usually this means the macro was only invoked conditionally." >&5
17118 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17119 Usually this means the macro was only invoked conditionally." >&2;}
17120 { (exit 1); exit 1; }; }
17122 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17123 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17124 Usually this means the macro was only invoked conditionally." >&5
17125 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17126 Usually this means the macro was only invoked conditionally." >&2;}
17127 { (exit 1); exit 1; }; }
17129 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17130 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17131 Usually this means the macro was only invoked conditionally." >&5
17132 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17133 Usually this means the macro was only invoked conditionally." >&2;}
17134 { (exit 1); exit 1; }; }
17136 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17137 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17138 Usually this means the macro was only invoked conditionally." >&5
17139 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17140 Usually this means the macro was only invoked conditionally." >&2;}
17141 { (exit 1); exit 1; }; }
17143 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17144 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17145 Usually this means the macro was only invoked conditionally." >&5
17146 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17147 Usually this means the macro was only invoked conditionally." >&2;}
17148 { (exit 1); exit 1; }; }
17150 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17151 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17152 Usually this means the macro was only invoked conditionally." >&5
17153 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17154 Usually this means the macro was only invoked conditionally." >&2;}
17155 { (exit 1); exit 1; }; }
17157 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17158 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17159 Usually this means the macro was only invoked conditionally." >&5
17160 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17161 Usually this means the macro was only invoked conditionally." >&2;}
17162 { (exit 1); exit 1; }; }
17165 : ${CONFIG_STATUS=./config.status}
17166 ac_clean_files_save=$ac_clean_files
17167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17168 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17169 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17170 cat >$CONFIG_STATUS <<_ACEOF
17172 # Generated by $as_me.
17173 # Run this file to recreate the current configuration.
17174 # Compiler output produced by configure, useful for debugging
17175 # configure, is in config.log if it exists.
17178 ac_cs_recheck=false
17180 SHELL=\${CONFIG_SHELL-$SHELL}
17183 cat >>$CONFIG_STATUS <<\_ACEOF
17184 ## --------------------- ##
17185 ## M4sh Initialization. ##
17186 ## --------------------- ##
17188 # Be Bourne compatible
17189 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17192 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17193 # is contrary to our usage. Disable this feature.
17194 alias -g '${1+"$@"}'='"$@"'
17195 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17198 DUALCASE=1; export DUALCASE # for MKS sh
17200 # Support unset when possible.
17201 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17208 # Work around bugs in pre-3.0 UWIN ksh.
17209 $as_unset ENV MAIL MAILPATH
17216 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17217 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17218 LC_TELEPHONE LC_TIME
17220 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17221 eval $as_var=C; export $as_var
17227 # Required to use basename.
17228 if expr a : '\(a\)' >/dev/null 2>&1; then
17234 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17235 as_basename=basename
17241 # Name of the executable.
17242 as_me=`$as_basename "$0" ||
17243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17244 X"$0" : 'X\(//\)$' \| \
17245 X"$0" : 'X\(/\)$' \| \
17246 . : '\(.\)' 2>/dev/null ||
17248 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17249 /^X\/\(\/\/\)$/{ s//\1/; q; }
17250 /^X\/\(\/\).*/{ s//\1/; q; }
17254 # PATH needs CR, and LINENO needs CR and PATH.
17255 # Avoid depending upon Character Ranges.
17256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17259 as_cr_digits='0123456789'
17260 as_cr_alnum=$as_cr_Letters$as_cr_digits
17262 # The user is always right.
17263 if test "${PATH_SEPARATOR+set}" != set; then
17264 echo "#! /bin/sh" >conf$$.sh
17265 echo "exit 0" >>conf$$.sh
17267 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17276 as_lineno_1=$LINENO
17277 as_lineno_2=$LINENO
17278 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17279 test "x$as_lineno_1" != "x$as_lineno_2" &&
17280 test "x$as_lineno_3" = "x$as_lineno_2" || {
17281 # Find who we are. Look in the path if we contain no path at all
17284 *[\\/]* ) as_myself=$0 ;;
17285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17286 for as_dir in $PATH
17289 test -z "$as_dir" && as_dir=.
17290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17295 # We did not find ourselves, most probably we were run as `sh COMMAND'
17296 # in which case we are not to be found in the path.
17297 if test "x$as_myself" = x; then
17300 if test ! -f "$as_myself"; then
17301 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17302 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17303 { (exit 1); exit 1; }; }
17305 case $CONFIG_SHELL in
17307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17308 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17311 test -z "$as_dir" && as_dir=.
17312 for as_base in sh bash ksh sh5; do
17315 if ("$as_dir/$as_base" -c '
17316 as_lineno_1=$LINENO
17317 as_lineno_2=$LINENO
17318 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17319 test "x$as_lineno_1" != "x$as_lineno_2" &&
17320 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17321 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17322 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17323 CONFIG_SHELL=$as_dir/$as_base
17324 export CONFIG_SHELL
17325 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17333 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17334 # uniformly replaced by the line number. The first 'sed' inserts a
17335 # line-number line before each line; the second 'sed' does the real
17336 # work. The second script uses 'N' to pair each line-number line
17337 # with the numbered line, and appends trailing '-' during
17338 # substitution so that $LINENO is not a special case at line end.
17339 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17340 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17341 sed '=' <$as_myself |
17346 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17349 s,^['$as_cr_digits']*\n,,
17350 ' >$as_me.lineno &&
17351 chmod +x $as_me.lineno ||
17352 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17353 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17354 { (exit 1); exit 1; }; }
17356 # Don't try to exec as it changes $[0], causing all sort of problems
17357 # (the dirname of $[0] is not the place where we might find the
17358 # original and so on. Autoconf is especially sensible to this).
17360 # Exit status is that of the last command.
17365 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17366 *c*,-n*) ECHO_N= ECHO_C='
17368 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17369 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17372 if expr a : '\(a\)' >/dev/null 2>&1; then
17378 rm -f conf$$ conf$$.exe conf$$.file
17380 if ln -s conf$$.file conf$$ 2>/dev/null; then
17381 # We could just check for DJGPP; but this test a) works b) is more generic
17382 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17383 if test -f conf$$.exe; then
17384 # Don't use ln at all; we don't have any links
17389 elif ln conf$$.file conf$$ 2>/dev/null; then
17394 rm -f conf$$ conf$$.exe conf$$.file
17396 if mkdir -p . 2>/dev/null; then
17399 test -d ./-p && rmdir ./-p
17403 as_executable_p="test -f"
17405 # Sed expression to map a string onto a valid CPP name.
17406 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17408 # Sed expression to map a string onto a valid variable name.
17409 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17413 # We need space, tab and new line, in precisely that order.
17423 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17424 # report actual input values of CONFIG_FILES etc. instead of their
17425 # values after options handling. Logging --version etc. is OK.
17429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17430 ## Running $as_me. ##
17435 This file was extended by libjava $as_me version-unused, which was
17436 generated by GNU Autoconf 2.59. Invocation command line was
17438 CONFIG_FILES = $CONFIG_FILES
17439 CONFIG_HEADERS = $CONFIG_HEADERS
17440 CONFIG_LINKS = $CONFIG_LINKS
17441 CONFIG_COMMANDS = $CONFIG_COMMANDS
17445 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17449 # Files that config.status was made for.
17450 if test -n "$ac_config_files"; then
17451 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17454 if test -n "$ac_config_headers"; then
17455 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17458 if test -n "$ac_config_links"; then
17459 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17462 if test -n "$ac_config_commands"; then
17463 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17466 cat >>$CONFIG_STATUS <<\_ACEOF
17469 \`$as_me' instantiates files from templates according to the
17470 current configuration.
17472 Usage: $0 [OPTIONS] [FILE]...
17474 -h, --help print this help, then exit
17475 -V, --version print version number, then exit
17476 -q, --quiet do not print progress messages
17477 -d, --debug don't remove temporary files
17478 --recheck update $as_me by reconfiguring in the same conditions
17479 --file=FILE[:TEMPLATE]
17480 instantiate the configuration file FILE
17481 --header=FILE[:TEMPLATE]
17482 instantiate the configuration header FILE
17484 Configuration files:
17487 Configuration headers:
17490 Configuration links:
17493 Configuration commands:
17496 Report bugs to <bug-autoconf@gnu.org>."
17499 cat >>$CONFIG_STATUS <<_ACEOF
17501 libjava config.status version-unused
17502 configured by $0, generated by GNU Autoconf 2.59,
17503 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17505 Copyright (C) 2003 Free Software Foundation, Inc.
17506 This config.status script is free software; the Free Software Foundation
17507 gives unlimited permission to copy, distribute and modify it."
17512 cat >>$CONFIG_STATUS <<\_ACEOF
17513 # If no file are specified by the user, then we need to provide default
17514 # value. By we need to know if files were specified by the user.
17520 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17521 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17529 *) # This is not an option, so the user has probably given explicit
17532 ac_need_defaults=false;;
17536 # Handling of the options.
17538 cat >>$CONFIG_STATUS <<\_ACEOF
17539 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17541 --version | --vers* | -V )
17542 echo "$ac_cs_version"; exit 0 ;;
17544 # Conflict between --help and --header
17545 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17546 Try \`$0 --help' for more information." >&5
17547 echo "$as_me: error: ambiguous option: $1
17548 Try \`$0 --help' for more information." >&2;}
17549 { (exit 1); exit 1; }; };;
17550 --help | --hel | -h )
17551 echo "$ac_cs_usage"; exit 0 ;;
17552 --debug | --d* | -d )
17554 --file | --fil | --fi | --f )
17556 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17557 ac_need_defaults=false;;
17558 --header | --heade | --head | --hea )
17560 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17561 ac_need_defaults=false;;
17562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17563 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17566 # This is an error.
17567 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17568 Try \`$0 --help' for more information." >&5
17569 echo "$as_me: error: unrecognized option: $1
17570 Try \`$0 --help' for more information." >&2;}
17571 { (exit 1); exit 1; }; } ;;
17573 *) ac_config_targets="$ac_config_targets $1" ;;
17579 ac_configure_extra_args=
17581 if $ac_cs_silent; then
17583 ac_configure_extra_args="$ac_configure_extra_args --silent"
17587 cat >>$CONFIG_STATUS <<_ACEOF
17588 if \$ac_cs_recheck; then
17589 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17590 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17595 cat >>$CONFIG_STATUS <<_ACEOF
17597 # INIT-COMMANDS section.
17600 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17604 with_multisubdir=${with_multisubdir}
17605 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17606 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17607 libgcj_basedir=${libgcj_basedir}
17610 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17617 cat >>$CONFIG_STATUS <<\_ACEOF
17618 for ac_config_target in $ac_config_targets
17620 case "$ac_config_target" in
17621 # Handling of arguments.
17622 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17623 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17624 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17625 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17626 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17627 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17628 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17629 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17630 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17631 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17632 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17633 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17634 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17635 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17636 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17637 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17638 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17639 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17640 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17641 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17642 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17643 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17644 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17645 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17646 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17647 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17648 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17649 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17650 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17651 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17652 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17653 { (exit 1); exit 1; }; };;
17657 # If the user did not use the arguments to specify the items to instantiate,
17658 # then the envvar interface is used. Set only those that are not.
17659 # We use the long form for the default assignment because of an extremely
17660 # bizarre bug on SunOS 4.1.3.
17661 if $ac_need_defaults; then
17662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17664 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17665 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17668 # Have a temporary directory for convenience. Make it in the build tree
17669 # simply because there is no reason to put it here, and in addition,
17670 # creating and moving files from /tmp can sometimes cause problems.
17671 # Create a temporary directory, and hook for its removal unless debugging.
17674 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17675 trap '{ (exit 1); exit 1; }' 1 2 13 15
17678 # Create a (secure) tmp directory for tmp files.
17681 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17682 test -n "$tmp" && test -d "$tmp"
17685 tmp=./confstat$$-$RANDOM
17686 (umask 077 && mkdir $tmp)
17689 echo "$me: cannot create a temporary directory in ." >&2
17690 { (exit 1); exit 1; }
17695 cat >>$CONFIG_STATUS <<_ACEOF
17698 # CONFIG_FILES section.
17701 # No need to generate the scripts if there are no CONFIG_FILES.
17702 # This happens for instance when ./config.status config.h
17703 if test -n "\$CONFIG_FILES"; then
17704 # Protect against being on the right side of a sed subst in config.status.
17705 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17706 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17707 s,@SHELL@,$SHELL,;t t
17708 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17709 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17710 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17711 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17712 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17713 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17714 s,@exec_prefix@,$exec_prefix,;t t
17715 s,@prefix@,$prefix,;t t
17716 s,@program_transform_name@,$program_transform_name,;t t
17717 s,@bindir@,$bindir,;t t
17718 s,@sbindir@,$sbindir,;t t
17719 s,@libexecdir@,$libexecdir,;t t
17720 s,@datadir@,$datadir,;t t
17721 s,@sysconfdir@,$sysconfdir,;t t
17722 s,@sharedstatedir@,$sharedstatedir,;t t
17723 s,@localstatedir@,$localstatedir,;t t
17724 s,@libdir@,$libdir,;t t
17725 s,@includedir@,$includedir,;t t
17726 s,@oldincludedir@,$oldincludedir,;t t
17727 s,@infodir@,$infodir,;t t
17728 s,@mandir@,$mandir,;t t
17729 s,@build_alias@,$build_alias,;t t
17730 s,@host_alias@,$host_alias,;t t
17731 s,@target_alias@,$target_alias,;t t
17732 s,@DEFS@,$DEFS,;t t
17733 s,@ECHO_C@,$ECHO_C,;t t
17734 s,@ECHO_N@,$ECHO_N,;t t
17735 s,@ECHO_T@,$ECHO_T,;t t
17736 s,@LIBS@,$LIBS,;t t
17737 s,@build@,$build,;t t
17738 s,@build_cpu@,$build_cpu,;t t
17739 s,@build_vendor@,$build_vendor,;t t
17740 s,@build_os@,$build_os,;t t
17741 s,@build_subdir@,$build_subdir,;t t
17742 s,@host_subdir@,$host_subdir,;t t
17743 s,@target_subdir@,$target_subdir,;t t
17744 s,@libgcj_basedir@,$libgcj_basedir,;t t
17745 s,@host@,$host,;t t
17746 s,@host_cpu@,$host_cpu,;t t
17747 s,@host_vendor@,$host_vendor,;t t
17748 s,@host_os@,$host_os,;t t
17749 s,@target@,$target,;t t
17750 s,@target_cpu@,$target_cpu,;t t
17751 s,@target_vendor@,$target_vendor,;t t
17752 s,@target_os@,$target_os,;t t
17753 s,@target_noncanonical@,$target_noncanonical,;t t
17754 s,@LN_S@,$LN_S,;t t
17755 s,@mkinstalldirs@,$mkinstalldirs,;t t
17757 s,@ac_ct_CC@,$ac_ct_CC,;t t
17758 s,@EXEEXT@,$EXEEXT,;t t
17759 s,@OBJEXT@,$OBJEXT,;t t
17761 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17762 s,@CFLAGS@,$CFLAGS,;t t
17763 s,@CXXFLAGS@,$CXXFLAGS,;t t
17764 s,@LDFLAGS@,$LDFLAGS,;t t
17765 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17766 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17767 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17768 s,@CYGPATH_W@,$CYGPATH_W,;t t
17769 s,@PACKAGE@,$PACKAGE,;t t
17770 s,@VERSION@,$VERSION,;t t
17771 s,@ACLOCAL@,$ACLOCAL,;t t
17772 s,@AUTOCONF@,$AUTOCONF,;t t
17773 s,@AUTOMAKE@,$AUTOMAKE,;t t
17774 s,@AUTOHEADER@,$AUTOHEADER,;t t
17775 s,@MAKEINFO@,$MAKEINFO,;t t
17776 s,@install_sh@,$install_sh,;t t
17777 s,@STRIP@,$STRIP,;t t
17778 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17779 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17780 s,@mkdir_p@,$mkdir_p,;t t
17782 s,@SET_MAKE@,$SET_MAKE,;t t
17783 s,@am__leading_dot@,$am__leading_dot,;t t
17784 s,@AMTAR@,$AMTAR,;t t
17785 s,@am__tar@,$am__tar,;t t
17786 s,@am__untar@,$am__untar,;t t
17787 s,@DEPDIR@,$DEPDIR,;t t
17788 s,@am__include@,$am__include,;t t
17789 s,@am__quote@,$am__quote,;t t
17790 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17791 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17792 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17793 s,@CCDEPMODE@,$CCDEPMODE,;t t
17794 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17795 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17796 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17797 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17798 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17800 s,@ac_ct_AS@,$ac_ct_AS,;t t
17802 s,@ac_ct_LD@,$ac_ct_LD,;t t
17804 s,@ac_ct_AR@,$ac_ct_AR,;t t
17805 s,@RANLIB@,$RANLIB,;t t
17806 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17807 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17808 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17809 s,@MAINT@,$MAINT,;t t
17810 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17811 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17812 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17813 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17814 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17815 s,@TOOLKIT@,$TOOLKIT,;t t
17816 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17817 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17818 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17819 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17820 s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17821 s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17822 s,@GCJH@,$GCJH,;t t
17824 s,@INCLTDL@,$INCLTDL,;t t
17825 s,@LIBLTDL@,$LIBLTDL,;t t
17826 s,@DIRLTDL@,$DIRLTDL,;t t
17827 s,@LIBTOOL@,$LIBTOOL,;t t
17828 s,@CXXCPP@,$CXXCPP,;t t
17829 s,@CPPFLAGS@,$CPPFLAGS,;t t
17831 s,@GCJFLAGS@,$GCJFLAGS,;t t
17832 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17833 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17834 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17835 s,@subdirs@,$subdirs,;t t
17836 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17837 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17838 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17839 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17840 s,@JAVA_HOME@,$JAVA_HOME,;t t
17841 s,@INTERPRETER@,$INTERPRETER,;t t
17842 s,@LIBFFI@,$LIBFFI,;t t
17843 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17844 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17846 s,@EGREP@,$EGREP,;t t
17847 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17848 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17849 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17850 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17851 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17852 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17853 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17854 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17855 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17856 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17857 s,@X_CFLAGS@,$X_CFLAGS,;t t
17858 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17859 s,@X_LIBS@,$X_LIBS,;t t
17860 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17861 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17862 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17863 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17864 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17865 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17866 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17867 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17868 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17869 s,@GCLIBS@,$GCLIBS,;t t
17870 s,@GCINCS@,$GCINCS,;t t
17871 s,@GCDEPS@,$GCDEPS,;t t
17872 s,@GCSPEC@,$GCSPEC,;t t
17873 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17874 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17875 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17876 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17877 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17878 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17879 s,@THREADLIBS@,$THREADLIBS,;t t
17880 s,@THREADINCS@,$THREADINCS,;t t
17881 s,@THREADDEPS@,$THREADDEPS,;t t
17882 s,@THREADSPEC@,$THREADSPEC,;t t
17883 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17884 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17885 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17886 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17887 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17888 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17889 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17890 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17891 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17892 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17893 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17894 s,@LIBICONV@,$LIBICONV,;t t
17895 s,@LTLIBICONV@,$LTLIBICONV,;t t
17896 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17897 s,@GTK_LIBS@,$GTK_LIBS,;t t
17898 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17899 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17900 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17901 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17902 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17903 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17904 s,@ZLIBS@,$ZLIBS,;t t
17905 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17906 s,@ZINCS@,$ZINCS,;t t
17907 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17908 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17909 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17910 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17911 s,@IEEESPEC@,$IEEESPEC,;t t
17912 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17913 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17914 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17915 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17916 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17917 s,@toolexecdir@,$toolexecdir,;t t
17918 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17919 s,@toolexeclibdir@,$toolexeclibdir,;t t
17920 s,@dbexecdir@,$dbexecdir,;t t
17921 s,@GCJVERSION@,$GCJVERSION,;t t
17922 s,@gxx_include_dir@,$gxx_include_dir,;t t
17923 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17924 s,@ALLOCA@,$ALLOCA,;t t
17925 s,@PERL@,$PERL,;t t
17926 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17927 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17928 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17929 s,@here@,$here,;t t
17930 s,@LIBOBJS@,$LIBOBJS,;t t
17931 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17936 cat >>$CONFIG_STATUS <<\_ACEOF
17937 # Split the substitutions into bite-sized pieces for seds with
17938 # small command number limits, like on Digital OSF/1 and HP-UX.
17939 ac_max_sed_lines=48
17940 ac_sed_frag=1 # Number of current file.
17941 ac_beg=1 # First line for current file.
17942 ac_end=$ac_max_sed_lines # Line after last line for current file.
17945 while $ac_more_lines; do
17946 if test $ac_beg -gt 1; then
17947 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17949 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17951 if test ! -s $tmp/subs.frag; then
17952 ac_more_lines=false
17954 # The purpose of the label and of the branching condition is to
17955 # speed up the sed processing (if there are no `@' at all, there
17956 # is no need to browse any of the substitutions).
17957 # These are the two extra sed commands mentioned above.
17959 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17960 if test -z "$ac_sed_cmds"; then
17961 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17963 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17965 ac_sed_frag=`expr $ac_sed_frag + 1`
17967 ac_end=`expr $ac_end + $ac_max_sed_lines`
17970 if test -z "$ac_sed_cmds"; then
17973 fi # test -n "$CONFIG_FILES"
17976 cat >>$CONFIG_STATUS <<\_ACEOF
17977 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17980 - | *:- | *:-:* ) # input from stdin
17982 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17984 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17986 * ) ac_file_in=$ac_file.in ;;
17989 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17990 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17991 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17992 X"$ac_file" : 'X\(//\)[^/]' \| \
17993 X"$ac_file" : 'X\(//\)$' \| \
17994 X"$ac_file" : 'X\(/\)' \| \
17995 . : '\(.\)' 2>/dev/null ||
17997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17999 /^X\(\/\/\)$/{ s//\1/; q; }
18000 /^X\(\/\).*/{ s//\1/; q; }
18002 { if $as_mkdir_p; then
18007 while test ! -d "$as_dir"; do
18008 as_dirs="$as_dir $as_dirs"
18009 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18011 X"$as_dir" : 'X\(//\)[^/]' \| \
18012 X"$as_dir" : 'X\(//\)$' \| \
18013 X"$as_dir" : 'X\(/\)' \| \
18014 . : '\(.\)' 2>/dev/null ||
18016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18018 /^X\(\/\/\)$/{ s//\1/; q; }
18019 /^X\(\/\).*/{ s//\1/; q; }
18022 test ! -n "$as_dirs" || mkdir $as_dirs
18023 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18024 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18025 { (exit 1); exit 1; }; }; }
18029 if test "$ac_dir" != .; then
18030 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18031 # A "../" for each directory in $ac_dir_suffix.
18032 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18034 ac_dir_suffix= ac_top_builddir=
18038 .) # No --srcdir option. We are building in place.
18040 if test -z "$ac_top_builddir"; then
18043 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18045 [\\/]* | ?:[\\/]* ) # Absolute path.
18046 ac_srcdir=$srcdir$ac_dir_suffix;
18047 ac_top_srcdir=$srcdir ;;
18048 *) # Relative path.
18049 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18050 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18053 # Do not use `cd foo && pwd` to compute absolute paths, because
18054 # the directories may not exist.
18056 .) ac_abs_builddir="$ac_dir";;
18059 .) ac_abs_builddir=`pwd`;;
18060 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18061 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18064 case $ac_abs_builddir in
18065 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18067 case ${ac_top_builddir}. in
18068 .) ac_abs_top_builddir=$ac_abs_builddir;;
18069 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18070 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18073 case $ac_abs_builddir in
18074 .) ac_abs_srcdir=$ac_srcdir;;
18077 .) ac_abs_srcdir=$ac_abs_builddir;;
18078 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18079 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18082 case $ac_abs_builddir in
18083 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18085 case $ac_top_srcdir in
18086 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18087 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18088 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18094 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18095 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18098 if test x"$ac_file" != x-; then
18099 { echo "$as_me:$LINENO: creating $ac_file" >&5
18100 echo "$as_me: creating $ac_file" >&6;}
18103 # Let's still pretend it is `configure' which instantiates (i.e., don't
18104 # use $as_me), people would be surprised to read:
18105 # /* config.h. Generated by config.status. */
18106 if test x"$ac_file" = x-; then
18109 configure_input="$ac_file. "
18111 configure_input=$configure_input"Generated from `echo $ac_file_in |
18112 sed 's,.*/,,'` by configure."
18114 # First look for the input files in the build tree, otherwise in the
18116 ac_file_inputs=`IFS=:
18117 for f in $ac_file_in; do
18119 -) echo $tmp/stdin ;;
18121 # Absolute (can't be DOS-style, as IFS=:)
18122 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18123 echo "$as_me: error: cannot find input file: $f" >&2;}
18124 { (exit 1); exit 1; }; }
18127 if test -f "$f"; then
18130 elif test -f "$srcdir/$f"; then
18135 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18136 echo "$as_me: error: cannot find input file: $f" >&2;}
18137 { (exit 1); exit 1; }; }
18140 done` || { (exit 1); exit 1; }
18142 cat >>$CONFIG_STATUS <<_ACEOF
18146 cat >>$CONFIG_STATUS <<\_ACEOF
18148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18149 s,@configure_input@,$configure_input,;t t
18150 s,@srcdir@,$ac_srcdir,;t t
18151 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18152 s,@top_srcdir@,$ac_top_srcdir,;t t
18153 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18154 s,@builddir@,$ac_builddir,;t t
18155 s,@abs_builddir@,$ac_abs_builddir,;t t
18156 s,@top_builddir@,$ac_top_builddir,;t t
18157 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18158 s,@INSTALL@,$ac_INSTALL,;t t
18159 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18161 if test x"$ac_file" != x-; then
18162 mv $tmp/out $ac_file
18170 cat >>$CONFIG_STATUS <<\_ACEOF
18173 # CONFIG_HEADER section.
18176 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18177 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18179 # ac_d sets the value in "#define NAME VALUE" lines.
18180 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18181 ac_dB='[ ].*$,\1#\2'
18184 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18185 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18186 ac_uB='$,\1#\2define\3'
18190 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18193 - | *:- | *:-:* ) # input from stdin
18195 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18196 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18197 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18198 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18199 * ) ac_file_in=$ac_file.in ;;
18202 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18203 echo "$as_me: creating $ac_file" >&6;}
18205 # First look for the input files in the build tree, otherwise in the
18207 ac_file_inputs=`IFS=:
18208 for f in $ac_file_in; do
18210 -) echo $tmp/stdin ;;
18212 # Absolute (can't be DOS-style, as IFS=:)
18213 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18214 echo "$as_me: error: cannot find input file: $f" >&2;}
18215 { (exit 1); exit 1; }; }
18216 # Do quote $f, to prevent DOS paths from being IFS'd.
18219 if test -f "$f"; then
18222 elif test -f "$srcdir/$f"; then
18227 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18228 echo "$as_me: error: cannot find input file: $f" >&2;}
18229 { (exit 1); exit 1; }; }
18232 done` || { (exit 1); exit 1; }
18233 # Remove the trailing spaces.
18234 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18238 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18239 # `conftest.undefs', that substitutes the proper values into
18240 # config.h.in to produce config.h. The first handles `#define'
18241 # templates, and the second `#undef' templates.
18242 # And first: Protect against being on the right side of a sed subst in
18243 # config.status. Protect against being in an unquoted here document
18244 # in config.status.
18245 rm -f conftest.defines conftest.undefs
18246 # Using a here document instead of a string reduces the quoting nightmare.
18247 # Putting comments in sed scripts is not portable.
18249 # `end' is used to avoid that the second main sed command (meant for
18250 # 0-ary CPP macros) applies to n-ary macro definitions.
18251 # See the Autoconf documentation for `clear'.
18252 cat >confdef2sed.sed <<\_ACEOF
18257 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18259 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18262 # If some macros were called several times there might be several times
18263 # the same #defines, which is useless. Nevertheless, we may not want to
18264 # sort them, since we want the *last* AC-DEFINE to be honored.
18265 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18266 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18267 rm -f confdef2sed.sed
18269 # This sed command replaces #undef with comments. This is necessary, for
18270 # example, in the case of _POSIX_SOURCE, which is predefined and required
18271 # on some systems where configure will not decide to define it.
18272 cat >>conftest.undefs <<\_ACEOF
18273 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18276 # Break up conftest.defines because some shells have a limit on the size
18277 # of here documents, and old seds have small limits too (100 cmds).
18278 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18279 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18280 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18281 echo ' :' >>$CONFIG_STATUS
18282 rm -f conftest.tail
18283 while grep . conftest.defines >/dev/null
18285 # Write a limited-size here document to $tmp/defines.sed.
18286 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18287 # Speed up: don't consider the non `#define' lines.
18288 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18289 # Work around the forget-to-reset-the-flag bug.
18290 echo 't clr' >>$CONFIG_STATUS
18291 echo ': clr' >>$CONFIG_STATUS
18292 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18294 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18296 mv $tmp/out $tmp/in
18298 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18299 rm -f conftest.defines
18300 mv conftest.tail conftest.defines
18302 rm -f conftest.defines
18303 echo ' fi # grep' >>$CONFIG_STATUS
18304 echo >>$CONFIG_STATUS
18306 # Break up conftest.undefs because some shells have a limit on the size
18307 # of here documents, and old seds have small limits too (100 cmds).
18308 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18309 rm -f conftest.tail
18310 while grep . conftest.undefs >/dev/null
18312 # Write a limited-size here document to $tmp/undefs.sed.
18313 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18314 # Speed up: don't consider the non `#undef'
18315 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18316 # Work around the forget-to-reset-the-flag bug.
18317 echo 't clr' >>$CONFIG_STATUS
18318 echo ': clr' >>$CONFIG_STATUS
18319 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18321 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18323 mv $tmp/out $tmp/in
18325 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18326 rm -f conftest.undefs
18327 mv conftest.tail conftest.undefs
18329 rm -f conftest.undefs
18331 cat >>$CONFIG_STATUS <<\_ACEOF
18332 # Let's still pretend it is `configure' which instantiates (i.e., don't
18333 # use $as_me), people would be surprised to read:
18334 # /* config.h. Generated by config.status. */
18335 if test x"$ac_file" = x-; then
18336 echo "/* Generated by configure. */" >$tmp/config.h
18338 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18340 cat $tmp/in >>$tmp/config.h
18342 if test x"$ac_file" != x-; then
18343 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18344 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18345 echo "$as_me: $ac_file is unchanged" >&6;}
18347 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18348 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18349 X"$ac_file" : 'X\(//\)[^/]' \| \
18350 X"$ac_file" : 'X\(//\)$' \| \
18351 X"$ac_file" : 'X\(/\)' \| \
18352 . : '\(.\)' 2>/dev/null ||
18354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18356 /^X\(\/\/\)$/{ s//\1/; q; }
18357 /^X\(\/\).*/{ s//\1/; q; }
18359 { if $as_mkdir_p; then
18364 while test ! -d "$as_dir"; do
18365 as_dirs="$as_dir $as_dirs"
18366 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18368 X"$as_dir" : 'X\(//\)[^/]' \| \
18369 X"$as_dir" : 'X\(//\)$' \| \
18370 X"$as_dir" : 'X\(/\)' \| \
18371 . : '\(.\)' 2>/dev/null ||
18373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18375 /^X\(\/\/\)$/{ s//\1/; q; }
18376 /^X\(\/\).*/{ s//\1/; q; }
18379 test ! -n "$as_dirs" || mkdir $as_dirs
18380 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18381 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18382 { (exit 1); exit 1; }; }; }
18385 mv $tmp/config.h $ac_file
18389 rm -f $tmp/config.h
18391 # Compute $ac_file's index in $config_headers.
18393 for _am_header in $config_headers :; do
18394 case $_am_header in
18395 $ac_file | $ac_file:* )
18398 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18401 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18402 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18403 X$ac_file : 'X\(//\)[^/]' \| \
18404 X$ac_file : 'X\(//\)$' \| \
18405 X$ac_file : 'X\(/\)' \| \
18406 . : '\(.\)' 2>/dev/null ||
18408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18410 /^X\(\/\/\)$/{ s//\1/; q; }
18411 /^X\(\/\).*/{ s//\1/; q; }
18412 s/.*/./; q'`/stamp-h$_am_stamp_count
18415 cat >>$CONFIG_STATUS <<\_ACEOF
18418 # CONFIG_LINKS section.
18421 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18422 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18423 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18425 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18426 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18428 if test ! -r $srcdir/$ac_source; then
18429 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18430 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18431 { (exit 1); exit 1; }; }
18435 # Make relative symlinks.
18436 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18437 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18438 X"$ac_dest" : 'X\(//\)[^/]' \| \
18439 X"$ac_dest" : 'X\(//\)$' \| \
18440 X"$ac_dest" : 'X\(/\)' \| \
18441 . : '\(.\)' 2>/dev/null ||
18443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18445 /^X\(\/\/\)$/{ s//\1/; q; }
18446 /^X\(\/\).*/{ s//\1/; q; }
18448 { if $as_mkdir_p; then
18449 mkdir -p "$ac_dest_dir"
18451 as_dir="$ac_dest_dir"
18453 while test ! -d "$as_dir"; do
18454 as_dirs="$as_dir $as_dirs"
18455 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18457 X"$as_dir" : 'X\(//\)[^/]' \| \
18458 X"$as_dir" : 'X\(//\)$' \| \
18459 X"$as_dir" : 'X\(/\)' \| \
18460 . : '\(.\)' 2>/dev/null ||
18462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18464 /^X\(\/\/\)$/{ s//\1/; q; }
18465 /^X\(\/\).*/{ s//\1/; q; }
18468 test ! -n "$as_dirs" || mkdir $as_dirs
18469 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18470 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18471 { (exit 1); exit 1; }; }; }
18475 if test "$ac_dest_dir" != .; then
18476 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18477 # A "../" for each directory in $ac_dir_suffix.
18478 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18480 ac_dir_suffix= ac_top_builddir=
18484 .) # No --srcdir option. We are building in place.
18486 if test -z "$ac_top_builddir"; then
18489 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18491 [\\/]* | ?:[\\/]* ) # Absolute path.
18492 ac_srcdir=$srcdir$ac_dir_suffix;
18493 ac_top_srcdir=$srcdir ;;
18494 *) # Relative path.
18495 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18496 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18499 # Do not use `cd foo && pwd` to compute absolute paths, because
18500 # the directories may not exist.
18502 .) ac_abs_builddir="$ac_dest_dir";;
18504 case "$ac_dest_dir" in
18505 .) ac_abs_builddir=`pwd`;;
18506 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18507 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18510 case $ac_abs_builddir in
18511 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18513 case ${ac_top_builddir}. in
18514 .) ac_abs_top_builddir=$ac_abs_builddir;;
18515 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18516 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18519 case $ac_abs_builddir in
18520 .) ac_abs_srcdir=$ac_srcdir;;
18523 .) ac_abs_srcdir=$ac_abs_builddir;;
18524 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18525 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18528 case $ac_abs_builddir in
18529 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18531 case $ac_top_srcdir in
18532 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18533 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18534 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18540 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18541 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18544 # Try a symlink, then a hard link, then a copy.
18545 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18546 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18547 cp -p $srcdir/$ac_source $ac_dest ||
18548 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18549 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18550 { (exit 1); exit 1; }; }
18553 cat >>$CONFIG_STATUS <<\_ACEOF
18556 # CONFIG_COMMANDS section.
18558 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18559 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18560 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18561 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18562 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18563 X"$ac_dest" : 'X\(//\)[^/]' \| \
18564 X"$ac_dest" : 'X\(//\)$' \| \
18565 X"$ac_dest" : 'X\(/\)' \| \
18566 . : '\(.\)' 2>/dev/null ||
18568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18570 /^X\(\/\/\)$/{ s//\1/; q; }
18571 /^X\(\/\).*/{ s//\1/; q; }
18573 { if $as_mkdir_p; then
18578 while test ! -d "$as_dir"; do
18579 as_dirs="$as_dir $as_dirs"
18580 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18582 X"$as_dir" : 'X\(//\)[^/]' \| \
18583 X"$as_dir" : 'X\(//\)$' \| \
18584 X"$as_dir" : 'X\(/\)' \| \
18585 . : '\(.\)' 2>/dev/null ||
18587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18589 /^X\(\/\/\)$/{ s//\1/; q; }
18590 /^X\(\/\).*/{ s//\1/; q; }
18593 test ! -n "$as_dirs" || mkdir $as_dirs
18594 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18595 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18596 { (exit 1); exit 1; }; }; }
18600 if test "$ac_dir" != .; then
18601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18602 # A "../" for each directory in $ac_dir_suffix.
18603 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18605 ac_dir_suffix= ac_top_builddir=
18609 .) # No --srcdir option. We are building in place.
18611 if test -z "$ac_top_builddir"; then
18614 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18616 [\\/]* | ?:[\\/]* ) # Absolute path.
18617 ac_srcdir=$srcdir$ac_dir_suffix;
18618 ac_top_srcdir=$srcdir ;;
18619 *) # Relative path.
18620 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18621 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18624 # Do not use `cd foo && pwd` to compute absolute paths, because
18625 # the directories may not exist.
18627 .) ac_abs_builddir="$ac_dir";;
18630 .) ac_abs_builddir=`pwd`;;
18631 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18632 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18635 case $ac_abs_builddir in
18636 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18638 case ${ac_top_builddir}. in
18639 .) ac_abs_top_builddir=$ac_abs_builddir;;
18640 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18641 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18644 case $ac_abs_builddir in
18645 .) ac_abs_srcdir=$ac_srcdir;;
18648 .) ac_abs_srcdir=$ac_abs_builddir;;
18649 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18650 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18653 case $ac_abs_builddir in
18654 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18656 case $ac_top_srcdir in
18657 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18658 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18659 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18664 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18665 echo "$as_me: executing $ac_dest commands" >&6;}
18667 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18668 # Strip MF so we end up with the name of the file.
18669 mf=`echo "$mf" | sed -e 's/:.*$//'`
18670 # Check whether this is an Automake generated Makefile or not.
18671 # We used to match only the files named `Makefile.in', but
18672 # some people rename them; so instead we look at the file content.
18673 # Grep'ing the first line is not enough: some people post-process
18674 # each Makefile.in and add a new line on top of each file to say so.
18675 # So let's grep whole file.
18676 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18677 dirpart=`(dirname "$mf") 2>/dev/null ||
18678 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18679 X"$mf" : 'X\(//\)[^/]' \| \
18680 X"$mf" : 'X\(//\)$' \| \
18681 X"$mf" : 'X\(/\)' \| \
18682 . : '\(.\)' 2>/dev/null ||
18684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18686 /^X\(\/\/\)$/{ s//\1/; q; }
18687 /^X\(\/\).*/{ s//\1/; q; }
18692 # Extract the definition of DEPDIR, am__include, and am__quote
18693 # from the Makefile without running `make'.
18694 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18695 test -z "$DEPDIR" && continue
18696 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18697 test -z "am__include" && continue
18698 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18699 # When using ansi2knr, U may be empty or an underscore; expand it
18700 U=`sed -n 's/^U = //p' < "$mf"`
18701 # Find all dependency output files, they are included files with
18702 # $(DEPDIR) in their names. We invoke sed twice because it is the
18703 # simplest approach to changing $(DEPDIR) to its actual value in the
18705 for file in `sed -n "
18706 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18707 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18708 # Make sure the directory exists.
18709 test -f "$dirpart/$file" && continue
18710 fdir=`(dirname "$file") 2>/dev/null ||
18711 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18712 X"$file" : 'X\(//\)[^/]' \| \
18713 X"$file" : 'X\(//\)$' \| \
18714 X"$file" : 'X\(/\)' \| \
18715 . : '\(.\)' 2>/dev/null ||
18717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18719 /^X\(\/\/\)$/{ s//\1/; q; }
18720 /^X\(\/\).*/{ s//\1/; q; }
18722 { if $as_mkdir_p; then
18723 mkdir -p $dirpart/$fdir
18725 as_dir=$dirpart/$fdir
18727 while test ! -d "$as_dir"; do
18728 as_dirs="$as_dir $as_dirs"
18729 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18731 X"$as_dir" : 'X\(//\)[^/]' \| \
18732 X"$as_dir" : 'X\(//\)$' \| \
18733 X"$as_dir" : 'X\(/\)' \| \
18734 . : '\(.\)' 2>/dev/null ||
18736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18738 /^X\(\/\/\)$/{ s//\1/; q; }
18739 /^X\(\/\).*/{ s//\1/; q; }
18742 test ! -n "$as_dirs" || mkdir $as_dirs
18743 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18744 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18745 { (exit 1); exit 1; }; }; }
18747 # echo "creating $dirpart/$file"
18748 echo '# dummy' > "$dirpart/$file"
18752 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18753 case " $CONFIG_FILES " in
18755 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18756 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18759 for ac_multi_file in $CONFIG_FILES; do
18760 case $ac_multi_file in
18762 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18770 cat >>$CONFIG_STATUS <<\_ACEOF
18772 { (exit 0); exit 0; }
18774 chmod +x $CONFIG_STATUS
18775 ac_clean_files=$ac_clean_files_save
18778 # configure is writing to config.log, and then calls config.status.
18779 # config.status does its own redirection, appending to config.log.
18780 # Unfortunately, on DOS this fails, as config.log is still kept open
18781 # by configure, so config.status won't be able to write to it; its
18782 # output is simply discarded. So we exec the FD to /dev/null,
18783 # effectively closing config.log, so it can be properly (re)opened and
18784 # appended to by config.status. When coming back to configure, we
18785 # need to make the FD available again.
18786 if test "$no_create" != yes; then
18788 ac_config_status_args=
18789 test "$silent" = yes &&
18790 ac_config_status_args="$ac_config_status_args --quiet"
18792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18795 # would make configure fail if this is the last instruction.
18796 $ac_cs_success || { (exit 1); exit 1; }
18800 # CONFIG_SUBDIRS section.
18802 if test "$no_recursion" != yes; then
18804 # Remove --cache-file and --srcdir arguments so they do not pile up.
18805 ac_sub_configure_args=
18807 for ac_arg in $ac_configure_args; do
18808 if test -n "$ac_prev"; then
18813 -cache-file | --cache-file | --cache-fil | --cache-fi \
18814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18815 ac_prev=cache_file ;;
18816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18820 --config-cache | -C)
18822 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18824 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18826 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18828 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18830 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18834 # Always prepend --prefix to ensure using the same prefix
18835 # in subdir configurations.
18836 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18839 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18841 # Do not complain, so a configure script can configure whichever
18842 # parts of a large source tree are present.
18843 test -d $srcdir/$ac_dir || continue
18845 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18846 echo "$as_me: configuring in $ac_dir" >&6;}
18847 { if $as_mkdir_p; then
18852 while test ! -d "$as_dir"; do
18853 as_dirs="$as_dir $as_dirs"
18854 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18856 X"$as_dir" : 'X\(//\)[^/]' \| \
18857 X"$as_dir" : 'X\(//\)$' \| \
18858 X"$as_dir" : 'X\(/\)' \| \
18859 . : '\(.\)' 2>/dev/null ||
18861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18863 /^X\(\/\/\)$/{ s//\1/; q; }
18864 /^X\(\/\).*/{ s//\1/; q; }
18867 test ! -n "$as_dirs" || mkdir $as_dirs
18868 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18869 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18870 { (exit 1); exit 1; }; }; }
18874 if test "$ac_dir" != .; then
18875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18876 # A "../" for each directory in $ac_dir_suffix.
18877 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18879 ac_dir_suffix= ac_top_builddir=
18883 .) # No --srcdir option. We are building in place.
18885 if test -z "$ac_top_builddir"; then
18888 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18890 [\\/]* | ?:[\\/]* ) # Absolute path.
18891 ac_srcdir=$srcdir$ac_dir_suffix;
18892 ac_top_srcdir=$srcdir ;;
18893 *) # Relative path.
18894 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18895 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18898 # Do not use `cd foo && pwd` to compute absolute paths, because
18899 # the directories may not exist.
18901 .) ac_abs_builddir="$ac_dir";;
18904 .) ac_abs_builddir=`pwd`;;
18905 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18906 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18909 case $ac_abs_builddir in
18910 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18912 case ${ac_top_builddir}. in
18913 .) ac_abs_top_builddir=$ac_abs_builddir;;
18914 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18915 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18918 case $ac_abs_builddir in
18919 .) ac_abs_srcdir=$ac_srcdir;;
18922 .) ac_abs_srcdir=$ac_abs_builddir;;
18923 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18924 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18927 case $ac_abs_builddir in
18928 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18930 case $ac_top_srcdir in
18931 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18932 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18933 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18940 # Check for guested configure; otherwise get Cygnus style configure.
18941 if test -f $ac_srcdir/configure.gnu; then
18942 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18943 elif test -f $ac_srcdir/configure; then
18944 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18945 elif test -f $ac_srcdir/configure.in; then
18946 ac_sub_configure=$ac_configure
18948 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18953 # The recursion is here.
18954 if test -n "$ac_sub_configure"; then
18955 # Make the cache file name correct relative to the subdirectory.
18956 case $cache_file in
18957 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18958 *) # Relative path.
18959 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18962 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18963 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18964 # The eval makes quoting arguments work.
18965 eval $ac_sub_configure $ac_sub_configure_args \
18966 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18967 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18968 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18969 { (exit 1); exit 1; }; }