2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME
='libjava'
269 PACKAGE_TARNAME
='libjava'
270 PACKAGE_VERSION
='version-unused'
271 PACKAGE_STRING
='libjava version-unused'
274 ac_unique_file
="java/lang/System.java"
275 ac_subdirs_all
="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libgcj_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE tool_include_dir gcc_version LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CXXCPP_set
=${CXXCPP+set}
755 ac_env_CXXCPP_value
=$CXXCPP
756 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value
=$CXXCPP
758 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value
=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
762 ac_env_CPP_set
=${CPP+set}
763 ac_env_CPP_value
=$CPP
764 ac_cv_env_CPP_set
=${CPP+set}
765 ac_cv_env_CPP_value
=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
833 --x-includes=DIR X include files are
in DIR
834 --x-libraries=DIR X library files are
in DIR
837 --build=BUILD configure
for building on BUILD
[guessed
]
838 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
839 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive
) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions
(default
)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing
) to the casual installer
860 --enable-shared=PKGS build shared libraries default
=yes
861 --enable-static=PKGS build static libraries default
=yes
862 --enable-fast-install=PKGS optimize
for fast installation default
=yes
863 --disable-libtool-lock avoid locking
(might
break parallel builds
)
864 --disable-getenv-properties
865 don
't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-multifile
869 allow compilation of several files at once
871 --enable-libgcj-debug enable runtime debugging code
872 --enable-gc-debug include full support for pointer backtracing etc.
873 --enable-interpreter enable interpreter
874 --enable-sjlj-exceptions
875 force use of builtin_setjmp for exceptions
876 --disable-java-net disable java.net
877 --disable-jvmpi disable JVMPI support
878 --enable-java-awt list of AWT peer implementations to be built
879 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
881 --disable-rpath do not hardcode runtime library paths
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-target-subdir=SUBDIR
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
892 --with-win32-nlsapi=ansi or unicows or unicode
893 native MinGW libgcj Win32 OS API (default is ansi)
894 --without-libffi don't use libffi
895 --with-ecos enable runtime eCos target support
896 --with-system-zlib use installed libz
897 --with-x use the X Window System
898 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
899 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
901 Some influential environment variables:
902 CC C compiler command
903 CFLAGS C compiler flags
904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
905 nonstandard directory <lib dir>
906 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
907 headers in a nonstandard directory <include dir>
908 CXX C++ compiler command
909 CXXFLAGS C++ compiler flags
910 CXXCPP C++ preprocessor
913 Use these variables to override the choices made by `configure' or to
help
914 it to
find libraries and programs with nonstandard names
/locations.
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
922 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
923 test -d $ac_dir ||
continue
926 if test "$ac_dir" != .
; then
927 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 ac_dir_suffix
= ac_top_builddir
=
935 .
) # No --srcdir option. We are building in place.
937 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
942 [\\/]* | ?
:[\\/]* ) # Absolute path.
943 ac_srcdir
=$srcdir$ac_dir_suffix;
944 ac_top_srcdir
=$srcdir ;;
946 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
953 .
) ac_abs_builddir
="$ac_dir";;
956 .
) ac_abs_builddir
=`pwd`;;
957 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
958 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
961 case $ac_abs_builddir in
962 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
964 case ${ac_top_builddir}.
in
965 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
966 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
967 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
970 case $ac_abs_builddir in
971 .
) ac_abs_srcdir
=$ac_srcdir;;
974 .
) ac_abs_srcdir
=$ac_abs_builddir;;
975 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
976 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
979 case $ac_abs_builddir in
980 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
982 case $ac_top_srcdir in
983 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
984 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu
; then
993 $SHELL $ac_srcdir/configure.gnu
--help=recursive
994 elif test -f $ac_srcdir/configure
; then
996 $SHELL $ac_srcdir/configure
--help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.
in; then
1000 $ac_configure --help
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1011 libjava configure version-unused
1012 generated by GNU Autoconf
2.59
1014 Copyright
(C
) 2003 Free Software Foundation
, Inc.
1015 This configure
script is free software
; the Free Software Foundation
1016 gives unlimited permission to copy
, distribute and modify it.
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1025 It was created by libjava $as_me version-unused, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1060 test -z "$as_dir" && as_dir
=.
1061 echo "PATH: $as_dir"
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_must_keep_next
=false
1091 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1092 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1093 |
-silent |
--silent |
--silen |
--sile |
--sil)
1095 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1101 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true
; then
1103 ac_must_keep_next
=false
# Got value, back to normal.
1106 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1107 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1108 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1109 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114 -* ) ac_must_keep_next
=true
;;
1117 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1124 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1125 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1143 # The following way of writing the cache mishandles newlines in values,
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1166 for ac_var in $ac_subst_vars
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -n "$ac_subst_files"; then
1180 for ac_var in $ac_subst_files
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1188 if test -s confdefs.h; then
1195 sed "/^$/d" confdefs.h | sort
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206 for ac_signal
in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest
* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h
<<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 cat >>confdefs.h
<<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 cat >>confdefs.h
<<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 cat >>confdefs.h
<<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 cat >>confdefs.h
<<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE
; then
1247 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1249 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252 for ac_site_file
in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1268 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1269 *) . .
/$cache_file;;
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1278 # Check that the precious variables saved in the cache have kept the same
1280 ac_cache_corrupted
=false
1281 for ac_var
in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1284 eval ac_new_set
=\
$ac_env_${ac_var}_set
1285 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val
="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted
=: ;;
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted
=: ;;
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1302 echo "$as_me: former value: $ac_old_val" >&2;}
1303 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1304 echo "$as_me: current value: $ac_new_val" >&2;}
1305 ac_cache_corrupted
=:
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1311 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg
=$ac_var=$ac_new_val ;;
1315 case " $ac_configure_args " in
1316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1317 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1321 if $ac_cache_corrupted; then
1322 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326 { (exit 1); exit 1; }; }
1330 ac_cpp
='$CPP $CPPFLAGS'
1331 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1364 # We use these options to decide which functions to include.
1366 # Check whether --with-target-subdir or --without-target-subdir was given.
1367 if test "${with_target_subdir+set}" = set; then
1368 withval
="$with_target_subdir"
1372 # We may get other options which we don't document:
1373 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1375 # When building with srcdir == objdir, links to the source files will
1376 # be created in directories within the target_subdir. We have to
1377 # adjust toplevel_srcdir accordingly, so that configure finds
1378 # install-sh and other auxiliary files that live in the top-level
1380 if test "${srcdir}" = "."; then
1381 if test -z "${with_target_subdir}"; then
1384 if test "${with_target_subdir}" != "."; then
1385 toprel
="${with_multisrctop}../.."
1387 toprel
="${with_multisrctop}.."
1394 libgcj_basedir
=$srcdir/$toprel/.
/libjava
1398 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1399 if test -f $ac_dir/install-sh
; then
1401 ac_install_sh
="$ac_aux_dir/install-sh -c"
1403 elif test -f $ac_dir/install.sh
; then
1405 ac_install_sh
="$ac_aux_dir/install.sh -c"
1407 elif test -f $ac_dir/shtool
; then
1409 ac_install_sh
="$ac_aux_dir/shtool install -c"
1413 if test -z "$ac_aux_dir"; then
1414 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1415 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1416 { (exit 1); exit 1; }; }
1418 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1419 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1420 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1422 # Make sure we can run config.sub.
1423 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1424 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1425 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1426 { (exit 1); exit 1; }; }
1428 echo "$as_me:$LINENO: checking build system type" >&5
1429 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1430 if test "${ac_cv_build+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 ac_cv_build_alias
=$build_alias
1434 test -z "$ac_cv_build_alias" &&
1435 ac_cv_build_alias
=`$ac_config_guess`
1436 test -z "$ac_cv_build_alias" &&
1437 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1438 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1439 { (exit 1); exit 1; }; }
1440 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1447 echo "${ECHO_T}$ac_cv_build" >&6
1449 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 echo "$as_me:$LINENO: checking host system type" >&5
1455 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1456 if test "${ac_cv_host+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 ac_cv_host_alias
=$host_alias
1460 test -z "$ac_cv_host_alias" &&
1461 ac_cv_host_alias
=$ac_cv_build_alias
1462 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1463 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1468 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1469 echo "${ECHO_T}$ac_cv_host" >&6
1471 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1476 echo "$as_me:$LINENO: checking target system type" >&5
1477 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1478 if test "${ac_cv_target+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 ac_cv_target_alias
=$target_alias
1482 test "x$ac_cv_target_alias" = "x" &&
1483 ac_cv_target_alias
=$ac_cv_host_alias
1484 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1485 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1486 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1487 { (exit 1); exit 1; }; }
1490 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1491 echo "${ECHO_T}$ac_cv_target" >&6
1492 target
=$ac_cv_target
1493 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1494 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1495 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1498 # The aliases save the names the user supplied, while $host etc.
1499 # will get canonicalized.
1500 test -n "$target_alias" &&
1501 test "$program_prefix$program_suffix$program_transform_name" = \
1503 program_prefix
=${target_alias}-
1504 case ${build_alias} in
1505 "") build_noncanonical
=${build} ;;
1506 *) build_noncanonical
=${build_alias} ;;
1509 case ${host_alias} in
1510 "") host_noncanonical
=${build_noncanonical} ;;
1511 *) host_noncanonical
=${host_alias} ;;
1514 case ${target_alias} in
1515 "") target_noncanonical
=${host_noncanonical} ;;
1516 *) target_noncanonical
=${target_alias} ;;
1522 # This works around the fact that libtool configuration may change LD
1523 # for this particular configuration, but some shells, instead of
1524 # keeping the changes in LD private, export them just because LD is
1526 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1528 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1529 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1531 if test "$LN_S" = "ln -s"; then
1532 echo "$as_me:$LINENO: result: yes" >&5
1533 echo "${ECHO_T}yes" >&6
1535 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1536 echo "${ECHO_T}no, using $LN_S" >&6
1540 # This works around an automake problem.
1541 mkinstalldirs
="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1545 # Check whether --with-cross-host or --without-cross-host was given.
1546 if test "${with_cross_host+set}" = set; then
1547 withval
="$with_cross_host"
1552 # Check whether --with-newlib or --without-newlib was given.
1553 if test "${with_newlib+set}" = set; then
1554 withval
="$with_newlib"
1558 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1559 if test "${enable_version_specific_runtime_libs+set}" = set; then
1560 enableval
="$enable_version_specific_runtime_libs"
1561 case "$enableval" in
1562 yes) version_specific_libs
=yes ;;
1563 no
) version_specific_libs
=no
;;
1564 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1565 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1566 { (exit 1); exit 1; }; };;
1569 version_specific_libs
=no
1573 # Default to --enable-multilib
1574 # Check whether --enable-multilib or --disable-multilib was given.
1575 if test "${enable_multilib+set}" = set; then
1576 enableval
="$enable_multilib"
1577 case "${enableval}" in
1578 yes) multilib
=yes ;;
1580 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1581 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1582 { (exit 1); exit 1; }; } ;;
1587 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1590 # (1) We use an abnormal CXX (without library references), so we
1591 # must cache it under a different name.
1592 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1593 # the non-multilib-adjusted value will be used in multilibs.
1594 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1595 # (4) As another side effect, automake doesn't automatically include them
1597 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1598 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1599 # used in later tests. This may not be necessary in libjava; I don't know.
1603 save_CXXFLAGS
="$CXXFLAGS"
1604 CXXFLAGS
="$CXXFLAGS -fno-builtin"
1606 ac_cpp
='$CPP $CPPFLAGS'
1607 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1608 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1609 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1610 if test -n "$ac_tool_prefix"; then
1611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1612 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1613 echo "$as_me:$LINENO: checking for $ac_word" >&5
1614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615 if test "${ac_cv_prog_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC
="$CC" # Let the user override the test.
1621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir
=.
1626 for ac_exec_ext
in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1647 if test -z "$ac_cv_prog_CC"; then
1649 # Extract the first word of "gcc", so it can be a program name with args.
1650 set dummy gcc
; ac_word
=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir
=.
1664 for ac_exec_ext
in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_ac_ct_CC
="gcc"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1689 if test -z "$CC"; then
1690 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1692 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC
="$CC" # Let the user override the test.
1701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir
=.
1706 for ac_exec_ext
in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1727 if test -z "$ac_cv_prog_CC"; then
1729 # Extract the first word of "cc", so it can be a program name with args.
1730 set dummy cc
; ac_word
=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir
=.
1744 for ac_exec_ext
in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC
="cc"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1770 if test -z "$CC"; then
1771 # Extract the first word of "cc", so it can be a program name with args.
1772 set dummy cc
; ac_word
=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_CC+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 if test -n "$CC"; then
1779 ac_cv_prog_CC
="$CC" # Let the user override the test.
1782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir
=.
1787 for ac_exec_ext
in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1790 ac_prog_rejected
=yes
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 if test $ac_prog_rejected = yes; then
1801 # We found a bogon in the path, so make sure we never use it.
1802 set dummy
$ac_cv_prog_CC
1804 if test $# != 0; then
1805 # We chose a different compiler from the bogus one.
1806 # However, it has the same basename, so the bogon will be chosen
1807 # first if we set CC to just the basename; use the full file name.
1809 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1815 if test -n "$CC"; then
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1824 if test -z "$CC"; then
1825 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1829 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC
="$CC" # Let the user override the test.
1838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir
=.
1843 for ac_exec_ext
in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 test -n "$CC" && break
1866 if test -z "$CC"; then
1870 # Extract the first word of "$ac_prog", so it can be a program name with args.
1871 set dummy
$ac_prog; ac_word
=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1884 test -z "$as_dir" && as_dir
=.
1885 for ac_exec_ext
in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_ac_ct_CC
="$ac_prog"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1897 if test -n "$ac_ct_CC"; then
1898 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1899 echo "${ECHO_T}$ac_ct_CC" >&6
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1905 test -n "$ac_ct_CC" && break
1914 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: no acceptable C compiler found in \$PATH
1917 See \`config.log' for more details." >&2;}
1918 { (exit 1); exit 1; }; }
1920 # Provide some information about the compiler.
1921 echo "$as_me:$LINENO:" \
1922 "checking for C compiler version" >&5
1923 ac_compiler
=`set X $ac_compile; echo $2`
1924 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1925 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1930 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1935 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1940 cat >conftest.
$ac_ext <<_ACEOF
1943 cat confdefs.h
>>conftest.
$ac_ext
1944 cat >>conftest.
$ac_ext <<_ACEOF
1945 /* end confdefs.h. */
1956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1957 (eval $ac_link) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; then
1966 if test x
$gcc_no_link = xyes
; then
1967 # Setting cross_compile will disable run tests; it will
1968 # also disable AC_CHECK_FILE but that's generally
1969 # correct if we can't link.
1973 cat >conftest.
$ac_ext <<_ACEOF
1976 cat confdefs.h
>>conftest.
$ac_ext
1977 cat >>conftest.
$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1988 ac_clean_files_save
=$ac_clean_files
1989 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1990 # Try to create an executable without -o first, disregard a.out.
1991 # It will help us diagnose broken compilers, and finding out an intuition
1993 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1994 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1995 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1996 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1997 (eval $ac_link_default) 2>&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; then
2001 # Find the output, starting from the most likely. This scheme is
2002 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005 # Be careful to initialize this variable, since it used to be cached.
2006 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008 # b.out is created by i960 compilers.
2009 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2011 test -f "$ac_file" ||
continue
2013 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2016 # This is the source file.
2019 # We found the default executable, but exeext='' is most
2023 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2024 # FIXME: I believe we export ac_cv_exeext for Libtool,
2025 # but it would be cool to find out if it's true. Does anybody
2026 # maintain Libtool? --akim.
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.
$ac_ext >&5
2037 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: C compiler cannot create executables
2040 See \`config.log' for more details." >&2;}
2041 { (exit 77); exit 77; }; }
2044 ac_exeext
=$ac_cv_exeext
2045 echo "$as_me:$LINENO: result: $ac_file" >&5
2046 echo "${ECHO_T}$ac_file" >&6
2048 # Check the compiler produces executables we can run. If not, either
2049 # the compiler is broken, or we cross compile.
2050 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2051 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2052 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2053 # If not cross compiling, check that we can run a simple program.
2054 if test "$cross_compiling" != yes; then
2055 if { ac_try
='./$ac_file'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2063 if test "$cross_compiling" = maybe
; then
2066 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2067 If you meant to cross compile, use \`--host'.
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: cannot run C compiled programs.
2070 If you meant to cross compile, use \`--host'.
2071 See \`config.log' for more details." >&2;}
2072 { (exit 1); exit 1; }; }
2076 echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6
2079 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2080 ac_clean_files
=$ac_clean_files_save
2081 # Check the compiler produces executables we can run. If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086 echo "${ECHO_T}$cross_compiling" >&6
2088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2097 # work properly (i.e., refer to `conftest.exe'), while it won't with
2099 for ac_file
in conftest.exe conftest conftest.
*; do
2100 test -f "$ac_file" ||
continue
2102 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2103 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2117 rm -f conftest
$ac_cv_exeext
2118 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2119 echo "${ECHO_T}$ac_cv_exeext" >&6
2121 rm -f conftest.
$ac_ext
2122 EXEEXT
=$ac_cv_exeext
2125 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2126 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2127 if test "${ac_cv_objext+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 cat >conftest.
$ac_ext <<_ACEOF
2133 cat confdefs.h
>>conftest.
$ac_ext
2134 cat >>conftest.
$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2145 rm -f conftest.o conftest.obj
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2153 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2154 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.
$ac_ext >&5
2162 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2169 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2171 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2172 echo "${ECHO_T}$ac_cv_objext" >&6
2173 OBJEXT
=$ac_cv_objext
2175 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2176 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 cat >conftest.
$ac_ext <<_ACEOF
2183 cat confdefs.h
>>conftest.
$ac_ext
2184 cat >>conftest.
$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2198 rm -f conftest.
$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2202 grep -v '^ *+' conftest.er1
>conftest.err
2204 cat conftest.err
>&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try
='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try
='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.
$ac_ext >&5
2227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2228 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2231 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2232 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2233 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2234 ac_test_CFLAGS
=${CFLAGS+set}
2235 ac_save_CFLAGS
=$CFLAGS
2237 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2238 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2239 if test "${ac_cv_prog_cc_g+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 cat >conftest.
$ac_ext <<_ACEOF
2245 cat confdefs.h
>>conftest.
$ac_ext
2246 cat >>conftest.
$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2257 rm -f conftest.
$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2261 grep -v '^ *+' conftest.er1
>conftest.err
2263 cat conftest.err
>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try
='test -z "$ac_c_werror_flag"
2267 || test ! -s conftest.err'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; } &&
2273 { ac_try
='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.
$ac_ext >&5
2286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2290 if test "$ac_test_CFLAGS" = set; then
2291 CFLAGS
=$ac_save_CFLAGS
2292 elif test $ac_cv_prog_cc_g = yes; then
2293 if test "$GCC" = yes; then
2299 if test "$GCC" = yes; then
2305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 ac_cv_prog_cc_stdc
=no
2312 cat >conftest.
$ac_ext <<_ACEOF
2315 cat confdefs.h
>>conftest.
$ac_ext
2316 cat >>conftest.
$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 #include <sys/types.h>
2321 #include <sys/stat.h>
2322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2323 struct buf { int x; };
2324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2325 static char *e (p, i)
2331 static char *f (char * (*g) (char **, int), char **p, ...)
2336 s = g (p, va_arg (v,int));
2341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2342 function prototypes and stuff, but not '\xHH' hex character constants.
2343 These don't provoke an error unfortunately, instead are silently treated
2344 as 'x'. The following induces an error, until -std1 is added to get
2345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2346 array size at least. It's necessary to write '\x00'==0 to get something
2347 that's true only with -std1. */
2348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2350 int test (int i, double x);
2351 struct s1 {int (*f) (int a);};
2352 struct s2 {int (*f) (double a);};
2353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2364 # Don't try gcc -ansi; that turns off useful extensions and
2365 # breaks some systems' header files.
2366 # AIX -qlanglvl=ansi
2367 # Ultrix and OSF/1 -std1
2368 # HP-UX 10.20 and later -Ae
2369 # HP-UX older versions -Aa -D_HPUX_SOURCE
2370 # SVR4 -Xc -D__EXTENSIONS__
2371 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373 CC
="$ac_save_CC $ac_arg"
2374 rm -f conftest.
$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2378 grep -v '^ *+' conftest.er1
>conftest.err
2380 cat conftest.err
>&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try
='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try
='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_cv_prog_cc_stdc
=$ac_arg
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.
$ac_ext >&5
2403 rm -f conftest.err conftest.
$ac_objext
2405 rm -f conftest.
$ac_ext conftest.
$ac_objext
2410 case "x$ac_cv_prog_cc_stdc" in
2412 echo "$as_me:$LINENO: result: none needed" >&5
2413 echo "${ECHO_T}none needed" >&6 ;;
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2417 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2420 # Some people use a C++ compiler to compile C. Since we use `exit',
2421 # in C++ we need to declare it. In case someone uses the same compiler
2422 # for both compiling C and C++ we need to have the C++ compiler decide
2423 # the declaration of exit, since it's the most demanding environment.
2424 cat >conftest.
$ac_ext <<_ACEOF
2429 rm -f conftest.
$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1
>conftest.err
2435 cat conftest.err
>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try
='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try
='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 for ac_declaration
in \
2453 'extern "C" void std::exit (int) throw (); using std::exit;' \
2454 'extern "C" void std::exit (int); using std::exit;' \
2455 'extern "C" void exit (int) throw ();' \
2456 'extern "C" void exit (int);' \
2459 cat >conftest.
$ac_ext <<_ACEOF
2462 cat confdefs.h
>>conftest.
$ac_ext
2463 cat >>conftest.
$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2475 rm -f conftest.
$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2479 grep -v '^ *+' conftest.er1
>conftest.err
2481 cat conftest.err
>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try
='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try
='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.
$ac_ext >&5
2504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2505 cat >conftest.
$ac_ext <<_ACEOF
2508 cat confdefs.h
>>conftest.
$ac_ext
2509 cat >>conftest.
$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2520 rm -f conftest.
$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2524 grep -v '^ *+' conftest.er1
>conftest.err
2526 cat conftest.err
>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try
='test -z "$ac_c_werror_flag"
2530 || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try
='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.
$ac_ext >&5
2548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2551 if test -n "$ac_declaration"; then
2552 echo '#ifdef __cplusplus' >>confdefs.h
2553 echo $ac_declaration >>confdefs.h
2554 echo '#endif' >>confdefs.h
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.
$ac_ext >&5
2562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2564 ac_cpp
='$CPP $CPPFLAGS'
2565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2570 ac_cpp
='$CXXCPP $CPPFLAGS'
2571 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2574 if test -n "$ac_tool_prefix"; then
2575 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2579 echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$CXX"; then
2585 glibcxx_cv_prog_CXX
="$CXX" # Let the user override the test.
2587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir
=.
2592 for ac_exec_ext
in '' $ac_executable_extensions; do
2593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 glibcxx_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 CXX
=$glibcxx_cv_prog_CXX
2604 if test -n "$CXX"; then
2605 echo "$as_me:$LINENO: result: $CXX" >&5
2606 echo "${ECHO_T}$CXX" >&6
2608 echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2612 test -n "$CXX" && break
2615 if test -z "$CXX"; then
2617 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy
$ac_prog; ac_word
=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$ac_ct_CXX"; then
2627 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir
=.
2634 for ac_exec_ext
in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2646 if test -n "$ac_ct_CXX"; then
2647 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648 echo "${ECHO_T}$ac_ct_CXX" >&6
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2654 test -n "$ac_ct_CXX" && break
2656 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO:" \
2664 "checking for C++ compiler version" >&5
2665 ac_compiler
=`set X $ac_compile; echo $2`
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2682 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 cat >conftest.
$ac_ext <<_ACEOF
2690 cat confdefs.h
>>conftest.
$ac_ext
2691 cat >>conftest.
$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2705 rm -f conftest.
$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1
>conftest.err
2711 cat conftest.err
>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try
='test -z "$ac_cxx_werror_flag"
2715 || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try
='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.
$ac_ext >&5
2734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2735 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2738 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2739 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2740 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2741 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2742 ac_save_CXXFLAGS
=$CXXFLAGS
2744 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2745 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2746 if test "${ac_cv_prog_cxx_g+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 cat >conftest.
$ac_ext <<_ACEOF
2752 cat confdefs.h
>>conftest.
$ac_ext
2753 cat >>conftest.
$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2764 rm -f conftest.
$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2768 grep -v '^ *+' conftest.er1
>conftest.err
2770 cat conftest.err
>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try
='test -z "$ac_cxx_werror_flag"
2774 || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try
='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_cv_prog_cxx_g
=yes
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.
$ac_ext >&5
2793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2795 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2797 if test "$ac_test_CXXFLAGS" = set; then
2798 CXXFLAGS
=$ac_save_CXXFLAGS
2799 elif test $ac_cv_prog_cxx_g = yes; then
2800 if test "$GXX" = yes; then
2806 if test "$GXX" = yes; then
2812 for ac_declaration
in \
2814 'extern "C" void std::exit (int) throw (); using std::exit;' \
2815 'extern "C" void std::exit (int); using std::exit;' \
2816 'extern "C" void exit (int) throw ();' \
2817 'extern "C" void exit (int);' \
2820 cat >conftest.
$ac_ext <<_ACEOF
2823 cat confdefs.h
>>conftest.
$ac_ext
2824 cat >>conftest.
$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2836 rm -f conftest.
$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2840 grep -v '^ *+' conftest.er1
>conftest.err
2842 cat conftest.err
>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try
='test -z "$ac_cxx_werror_flag"
2846 || test ! -s conftest.err'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; } &&
2852 { ac_try
='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.
$ac_ext >&5
2865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2866 cat >conftest.
$ac_ext <<_ACEOF
2869 cat confdefs.h
>>conftest.
$ac_ext
2870 cat >>conftest.
$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2881 rm -f conftest.
$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883 (eval $ac_compile) 2>conftest.er1
2885 grep -v '^ *+' conftest.er1
>conftest.err
2887 cat conftest.err
>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try
='test -z "$ac_cxx_werror_flag"
2891 || test ! -s conftest.err'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; } &&
2897 { ac_try
='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.
$ac_ext >&5
2909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2912 if test -n "$ac_declaration"; then
2913 echo '#ifdef __cplusplus' >>confdefs.h
2914 echo $ac_declaration >>confdefs.h
2915 echo '#endif' >>confdefs.h
2919 ac_cpp
='$CPP $CPPFLAGS'
2920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2924 CXXFLAGS
="$save_CXXFLAGS"
2930 am__api_version
="1.9"
2931 # Find a good install program. We prefer a C program (faster),
2932 # so one script is as good as another. But avoid the broken or
2933 # incompatible versions:
2934 # SysV /etc/install, /usr/sbin/install
2935 # SunOS /usr/etc/install
2936 # IRIX /sbin/install
2938 # AmigaOS /C/install, which installs bootblocks on floppy discs
2939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2942 # OS/2's system install, which has a completely different semantic
2943 # ./install, which can be erroneously created by make from ./install.sh.
2944 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2946 if test -z "$INSTALL"; then
2947 if test "${ac_cv_path_install+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir
=.
2955 # Account for people who put trailing slashes in PATH elements.
2957 .
/ | .
// |
/cC
/* | \
2958 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2959 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2962 # OSF1 and SCO ODT 3.0 have their own names for install.
2963 # Don't use installbsd from OSF since it installs stuff as root
2965 for ac_prog
in ginstall scoinst
install; do
2966 for ac_exec_ext
in '' $ac_executable_extensions; do
2967 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2968 if test $ac_prog = install &&
2969 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2970 # AIX install. It has an incompatible calling convention.
2972 elif test $ac_prog = install &&
2973 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2974 # program-specific install script used by HP pwplus--don't use.
2977 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2989 if test "${ac_cv_path_install+set}" = set; then
2990 INSTALL
=$ac_cv_path_install
2992 # As a last resort, use the slow shell script. We don't cache a
2993 # path for INSTALL within a source directory, because that will
2994 # break other packages using the cache if that directory is
2995 # removed, or if the path is relative.
2996 INSTALL
=$ac_install_sh
2999 echo "$as_me:$LINENO: result: $INSTALL" >&5
3000 echo "${ECHO_T}$INSTALL" >&6
3002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3003 # It thinks the first close brace ends the variable substitution.
3004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3008 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3010 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3011 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3014 echo timestamp
> conftest.
file
3015 # Do `set' in a subshell so we don't clobber the current shell's
3016 # arguments. Must try -L first in case configure is actually a
3017 # symlink; some systems play weird games with the mod time of symlinks
3018 # (eg FreeBSD returns the mod time of the symlink's containing
3021 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3022 if test "$*" = "X"; then
3024 set X
`ls -t $srcdir/configure conftest.file`
3027 if test "$*" != "X $srcdir/configure conftest.file" \
3028 && test "$*" != "X conftest.file $srcdir/configure"; then
3030 # If neither matched, then we have a broken ls. This can happen
3031 # if, for instance, CONFIG_SHELL is bash and it inherits a
3032 # broken ls alias from the environment. This has actually
3033 # happened. Such a system could not be considered "sane".
3034 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3035 alias in your environment" >&5
3036 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3037 alias in your environment" >&2;}
3038 { (exit 1); exit 1; }; }
3041 test "$2" = conftest.
file
3047 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3048 Check your system clock" >&5
3049 echo "$as_me: error: newly created file is older than distributed files!
3050 Check your system clock" >&2;}
3051 { (exit 1); exit 1; }; }
3053 echo "$as_me:$LINENO: result: yes" >&5
3054 echo "${ECHO_T}yes" >&6
3055 test "$program_prefix" != NONE
&&
3056 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3057 # Use a double $ so make ignores it.
3058 test "$program_suffix" != NONE
&&
3059 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3060 # Double any \ or $. echo might interpret backslashes.
3061 # By default was `s,x,x', remove it if useless.
3062 cat <<\_ACEOF
>conftest.
sed
3063 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3065 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3068 # expand $ac_aux_dir to an absolute path
3069 am_aux_dir
=`cd $ac_aux_dir && pwd`
3071 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
3072 # Use eval to expand $SHELL
3073 if eval "$MISSING --run true"; then
3074 am_missing_run
="$MISSING --run "
3077 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3078 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3081 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
3082 # We used to keeping the `.' as first argument, in order to
3083 # allow $(mkdir_p) to be used without argument. As in
3084 # $(mkdir_p) $(somedir)
3085 # where $(somedir) is conditionally defined. However this is wrong
3087 # 1. if the package is installed by a user who cannot write `.'
3088 # make install will fail,
3089 # 2. the above comment should most certainly read
3090 # $(mkdir_p) $(DESTDIR)$(somedir)
3091 # so it does not work when $(somedir) is undefined and
3092 # $(DESTDIR) is not.
3093 # To support the latter case, we have to write
3094 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3095 # so the `.' trick is pointless.
3096 mkdir_p
='mkdir -p --'
3098 # On NextStep and OpenStep, the `mkdir' command does not
3099 # recognize any option. It will interpret all options as
3100 # directories to create, and then abort because `.' already
3102 for d
in .
/-p .
/--version;
3104 test -d $d && rmdir $d
3106 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3107 if test -f "$ac_aux_dir/mkinstalldirs"; then
3108 mkdir_p
='$(mkinstalldirs)'
3110 mkdir_p
='$(install_sh) -d'
3114 for ac_prog
in gawk mawk nawk
awk
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy
$ac_prog; ac_word
=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_AWK+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if test -n "$AWK"; then
3124 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir
=.
3131 for ac_exec_ext
in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_AWK
="$ac_prog"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test -n "$AWK"; then
3144 echo "$as_me:$LINENO: result: $AWK" >&5
3145 echo "${ECHO_T}$AWK" >&6
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3151 test -n "$AWK" && break
3154 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3155 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3156 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3157 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 cat >conftest.
make <<\_ACEOF
3162 @
echo 'ac_maketemp="$(MAKE)"'
3164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3165 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3166 if test -n "$ac_maketemp"; then
3167 eval ac_cv_prog_make_
${ac_make}_set
=yes
3169 eval ac_cv_prog_make_
${ac_make}_set
=no
3173 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3174 echo "$as_me:$LINENO: result: yes" >&5
3175 echo "${ECHO_T}yes" >&6
3178 echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3180 SET_MAKE
="MAKE=${MAKE-make}"
3183 rm -rf .tst
2>/dev
/null
3184 mkdir .tst
2>/dev
/null
3185 if test -d .tst
; then
3190 rmdir .tst
2>/dev
/null
3192 DEPDIR
="${am__leading_dot}deps"
3194 ac_config_commands
="$ac_config_commands depfiles"
3197 am_make
=${MAKE-make}
3198 cat > confinc
<< 'END'
3203 # If we don't find an include directive, just comment out the code.
3204 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3205 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3209 # First try GNU make style include.
3210 echo "include confinc" > confmf
3211 # We grep out `Entering directory' and `Leaving directory'
3212 # messages which can occur if `w' ends up in MAKEFLAGS.
3213 # In particular we don't look at `^make:' because GNU make might
3214 # be invoked under some other name (usually "gmake"), in which
3215 # case it prints its new name instead of `make'.
3216 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3221 # Now try BSD make style include.
3222 if test "$am__include" = "#"; then
3223 echo '.include "confinc"' > confmf
3224 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3225 am__include
=.include
3232 echo "$as_me:$LINENO: result: $_am_result" >&5
3233 echo "${ECHO_T}$_am_result" >&6
3234 rm -f confinc confmf
3236 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3237 if test "${enable_dependency_tracking+set}" = set; then
3238 enableval
="$enable_dependency_tracking"
3241 if test "x$enable_dependency_tracking" != xno
; then
3242 am_depcomp
="$ac_aux_dir/depcomp"
3247 if test "x$enable_dependency_tracking" != xno; then
3257 # test to see if srcdir already configured
3258 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3259 test -f $srcdir/config.status
; then
3260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3261 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3262 { (exit 1); exit 1; }; }
3265 # test whether we have cygpath
3266 if test -z "$CYGPATH_W"; then
3267 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3268 CYGPATH_W
='cygpath -w'
3275 # Define the identity of the package.
3277 VERSION
='version-unused'
3280 cat >>confdefs.h
<<_ACEOF
3281 #define PACKAGE "$PACKAGE"
3285 cat >>confdefs.h
<<_ACEOF
3286 #define VERSION "$VERSION"
3289 # Some tools Automake needs.
3291 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3294 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3297 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3300 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3303 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3305 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
3307 # Installed binaries are usually stripped using `strip' when the user
3308 # run `make install-strip'. However `strip' might not be the right
3309 # tool to use in cross-compilation environments, therefore Automake
3310 # will honor the `STRIP' environment variable to overrule this program.
3311 if test "$cross_compiling" != no
; then
3312 if test -n "$ac_tool_prefix"; then
3313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3314 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_STRIP+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$STRIP"; then
3321 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_exec_ext
in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 STRIP
=$ac_cv_prog_STRIP
3340 if test -n "$STRIP"; then
3341 echo "$as_me:$LINENO: result: $STRIP" >&5
3342 echo "${ECHO_T}$STRIP" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3349 if test -z "$ac_cv_prog_STRIP"; then
3351 # Extract the first word of "strip", so it can be a program name with args.
3352 set dummy strip
; ac_word
=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$ac_ct_STRIP"; then
3359 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir
=.
3366 for ac_exec_ext
in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_STRIP
="strip"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3378 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3379 if test -n "$ac_ct_STRIP"; then
3380 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3381 echo "${ECHO_T}$ac_ct_STRIP" >&6
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3389 STRIP
="$ac_cv_prog_STRIP"
3393 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
3395 # We need awk for the "check" target. The system "awk" is bad on
3397 # Always define AMTAR for backward compatibility.
3399 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3401 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3406 depcc
="$CC" am_compiler_list
=
3408 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414 # We make a subdir and do the tests there. Otherwise we can end up
3415 # making bogus files that we don't know about and never remove. For
3416 # instance it was reported that on HP-UX the gcc test will end up
3417 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # Copy depcomp to subdir because otherwise we won't find it if we're
3421 # using a relative directory.
3422 cp "$am_depcomp" conftest.dir
3424 # We will build objects and dependencies in a subdirectory because
3425 # it helps to detect inapplicable dependency modes. For instance
3426 # both Tru64's cc and ICC support -MD to output dependencies as a
3427 # side effect of compilation, but ICC will put the dependencies in
3428 # the current directory while Tru64 will put them in the object
3432 am_cv_CC_dependencies_compiler_type
=none
3433 if test "$am_compiler_list" = ""; then
3434 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3436 for depmode
in $am_compiler_list; do
3437 # Setup a source with many dependencies, because some compilers
3438 # like to wrap large dependency lists on column 80 (with \), and
3439 # we should not choose a depcomp mode which is confused by this.
3441 # We need to recreate these files for each test, as the compiler may
3442 # overwrite some of them when testing with obscure command lines.
3443 # This happens at least with the AIX C compiler.
3445 for i
in 1 2 3 4 5 6; do
3446 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448 # Solaris 8's {/usr,}/bin/sh.
3449 touch sub
/conftst
$i.h
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3455 # after this tag, mechanisms are not by side-effect, so they'll
3456 # only be used when explicitly requested
3457 if test "x$enable_dependency_tracking" = xyes
; then
3465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466 # mode. It turns out that the SunPro C++ compiler does not properly
3467 # handle `-M -o', and we need to detect this.
3468 if depmode
=$depmode \
3469 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3470 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3471 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3472 >/dev
/null
2>conftest.err
&&
3473 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3474 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3475 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3485 am_cv_CC_dependencies_compiler_type
=$depmode
3494 am_cv_CC_dependencies_compiler_type
=none
3498 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3500 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3505 test "x$enable_dependency_tracking" != xno \
3506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3508 am__fastdepCC_FALSE
='#'
3510 am__fastdepCC_TRUE
='#'
3511 am__fastdepCC_FALSE
=
3515 depcc
="$CXX" am_compiler_list
=
3517 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3518 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3519 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3523 # We make a subdir and do the tests there. Otherwise we can end up
3524 # making bogus files that we don't know about and never remove. For
3525 # instance it was reported that on HP-UX the gcc test will end up
3526 # making a dummy file named `D' -- because `-MD' means `put the output
3529 # Copy depcomp to subdir because otherwise we won't find it if we're
3530 # using a relative directory.
3531 cp "$am_depcomp" conftest.dir
3533 # We will build objects and dependencies in a subdirectory because
3534 # it helps to detect inapplicable dependency modes. For instance
3535 # both Tru64's cc and ICC support -MD to output dependencies as a
3536 # side effect of compilation, but ICC will put the dependencies in
3537 # the current directory while Tru64 will put them in the object
3541 am_cv_CXX_dependencies_compiler_type
=none
3542 if test "$am_compiler_list" = ""; then
3543 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3545 for depmode
in $am_compiler_list; do
3546 # Setup a source with many dependencies, because some compilers
3547 # like to wrap large dependency lists on column 80 (with \), and
3548 # we should not choose a depcomp mode which is confused by this.
3550 # We need to recreate these files for each test, as the compiler may
3551 # overwrite some of them when testing with obscure command lines.
3552 # This happens at least with the AIX C compiler.
3554 for i
in 1 2 3 4 5 6; do
3555 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3557 # Solaris 8's {/usr,}/bin/sh.
3558 touch sub
/conftst
$i.h
3560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3564 # after this tag, mechanisms are not by side-effect, so they'll
3565 # only be used when explicitly requested
3566 if test "x$enable_dependency_tracking" = xyes
; then
3574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3575 # mode. It turns out that the SunPro C++ compiler does not properly
3576 # handle `-M -o', and we need to detect this.
3577 if depmode
=$depmode \
3578 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3579 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3580 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3581 >/dev
/null
2>conftest.err
&&
3582 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3583 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3584 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3585 # icc doesn't choke on unknown options, it will just issue warnings
3586 # or remarks (even with -Werror). So we grep stderr for any message
3587 # that says an option was ignored or not supported.
3588 # When given -MP, icc 7.0 and 7.1 complain thusly:
3589 # icc: Command line warning: ignoring option '-M'; no argument required
3590 # The diagnosis changed in icc 8.0:
3591 # icc: Command line remark: option '-MP' not supported
3592 if (grep 'ignoring option' conftest.err ||
3593 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3594 am_cv_CXX_dependencies_compiler_type
=$depmode
3603 am_cv_CXX_dependencies_compiler_type
=none
3607 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3608 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3609 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3614 test "x$enable_dependency_tracking" != xno \
3615 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3616 am__fastdepCXX_TRUE
=
3617 am__fastdepCXX_FALSE
='#'
3619 am__fastdepCXX_TRUE
='#'
3620 am__fastdepCXX_FALSE
=
3626 if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3628 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3629 echo "$as_me:$LINENO: checking for $ac_word" >&5
3630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631 if test "${ac_cv_prog_AS+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 if test -n "$AS"; then
3635 ac_cv_prog_AS
="$AS" # Let the user override the test.
3637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir
=.
3642 for ac_exec_ext
in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_AS
="${ac_tool_prefix}as"
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 if test -n "$AS"; then
3655 echo "$as_me:$LINENO: result: $AS" >&5
3656 echo "${ECHO_T}$AS" >&6
3658 echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3663 if test -z "$ac_cv_prog_AS"; then
3665 # Extract the first word of "as", so it can be a program name with args.
3666 set dummy as
; ac_word
=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 if test -n "$ac_ct_AS"; then
3673 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
3675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir
=.
3680 for ac_exec_ext
in '' $ac_executable_extensions; do
3681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_ac_ct_AS
="as"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
3692 if test -n "$ac_ct_AS"; then
3693 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3694 echo "${ECHO_T}$ac_ct_AS" >&6
3696 echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3705 if test -n "$ac_tool_prefix"; then
3706 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3707 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3708 echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3710 if test "${ac_cv_prog_AR+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 if test -n "$AR"; then
3714 ac_cv_prog_AR
="$AR" # Let the user override the test.
3716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir
=.
3721 for ac_exec_ext
in '' $ac_executable_extensions; do
3722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 if test -n "$AR"; then
3734 echo "$as_me:$LINENO: result: $AR" >&5
3735 echo "${ECHO_T}$AR" >&6
3737 echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6
3742 if test -z "$ac_cv_prog_AR"; then
3744 # Extract the first word of "ar", so it can be a program name with args.
3745 set dummy
ar; ac_word
=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 if test -n "$ac_ct_AR"; then
3752 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3758 test -z "$as_dir" && as_dir
=.
3759 for ac_exec_ext
in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_ac_ct_AR
="ar"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3771 if test -n "$ac_ct_AR"; then
3772 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3773 echo "${ECHO_T}$ac_ct_AR" >&6
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3786 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir
=.
3800 for ac_exec_ext
in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 RANLIB
=$ac_cv_prog_RANLIB
3812 if test -n "$RANLIB"; then
3813 echo "$as_me:$LINENO: result: $RANLIB" >&5
3814 echo "${ECHO_T}$RANLIB" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3821 if test -z "$ac_cv_prog_RANLIB"; then
3822 ac_ct_RANLIB
=$RANLIB
3823 # Extract the first word of "ranlib", so it can be a program name with args.
3824 set dummy ranlib
; ac_word
=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir
=.
3838 for ac_exec_ext
in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3850 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3851 if test -n "$ac_ct_RANLIB"; then
3852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 RANLIB
=$ac_ct_RANLIB
3861 RANLIB
="$ac_cv_prog_RANLIB"
3865 # Find a good install program. We prefer a C program (faster),
3866 # so one script is as good as another. But avoid the broken or
3867 # incompatible versions:
3868 # SysV /etc/install, /usr/sbin/install
3869 # SunOS /usr/etc/install
3870 # IRIX /sbin/install
3872 # AmigaOS /C/install, which installs bootblocks on floppy discs
3873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3876 # OS/2's system install, which has a completely different semantic
3877 # ./install, which can be erroneously created by make from ./install.sh.
3878 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3880 if test -z "$INSTALL"; then
3881 if test "${ac_cv_path_install+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir
=.
3889 # Account for people who put trailing slashes in PATH elements.
3891 .
/ | .
// |
/cC
/* | \
3892 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3893 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3896 # OSF1 and SCO ODT 3.0 have their own names for install.
3897 # Don't use installbsd from OSF since it installs stuff as root
3899 for ac_prog
in ginstall scoinst
install; do
3900 for ac_exec_ext
in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3902 if test $ac_prog = install &&
3903 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3904 # AIX install. It has an incompatible calling convention.
3906 elif test $ac_prog = install &&
3907 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3908 # program-specific install script used by HP pwplus--don't use.
3911 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3923 if test "${ac_cv_path_install+set}" = set; then
3924 INSTALL
=$ac_cv_path_install
3926 # As a last resort, use the slow shell script. We don't cache a
3927 # path for INSTALL within a source directory, because that will
3928 # break other packages using the cache if that directory is
3929 # removed, or if the path is relative.
3930 INSTALL
=$ac_install_sh
3933 echo "$as_me:$LINENO: result: $INSTALL" >&5
3934 echo "${ECHO_T}$INSTALL" >&6
3936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3937 # It thinks the first close brace ends the variable substitution.
3938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3942 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3945 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3946 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3947 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3948 if test "${enable_maintainer_mode+set}" = set; then
3949 enableval
="$enable_maintainer_mode"
3950 USE_MAINTAINER_MODE
=$enableval
3952 USE_MAINTAINER_MODE
=no
3954 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3955 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3958 if test $USE_MAINTAINER_MODE = yes; then
3959 MAINTAINER_MODE_TRUE
=
3960 MAINTAINER_MODE_FALSE
='#'
3962 MAINTAINER_MODE_TRUE
='#'
3963 MAINTAINER_MODE_FALSE
=
3966 MAINT
=$MAINTAINER_MODE_TRUE
3972 # configure.host sets the following important variables
3973 # libgcj_cflags - host specific C compiler flags
3974 # libgcj_cxxflags - host specific C++ compiler flags
3975 # libgcj_javaflags - host specific Java compiler flags
3981 .
${srcdir}/configure.
host
3983 LIBGCJ_CFLAGS
="${libgcj_cflags}"
3984 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
3985 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
3990 ac_config_headers
="$ac_config_headers include/config.h gcj/libgcj-config.h"
3993 # Only use libltdl for non-newlib builds.
3994 if test "x${with_newlib}" = "x" ||
test "x${with_newlib}" = "xno"; then
3995 case $enable_ltdl_convenience in
3996 no
) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3997 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3998 { (exit 1); exit 1; }; } ;;
3999 "") enable_ltdl_convenience
=yes
4000 ac_configure_args
="$ac_configure_args --enable-ltdl-convenience" ;;
4002 LIBLTDL
='${top_builddir}/''libltdl'/libltdlc.la
4003 INCLTDL
='-I${top_srcdir}/''libltdl'
4008 cat >>confdefs.h
<<\_ACEOF
4012 # Sigh. Libtool's macro doesn't do the right thing.
4013 INCLTDL
="-I\$(top_srcdir)/libltdl $INCLTDL"
4014 # FIXME: this is a hack.
4015 sub_auxdir
="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4016 ac_configure_args
="$ac_configure_args --with-auxdir=$sub_auxdir"
4021 # Check whether --enable-shared or --disable-shared was given.
4022 if test "${enable_shared+set}" = set; then
4023 enableval
="$enable_shared"
4024 p
=${PACKAGE-default}
4026 yes) enable_shared
=yes ;;
4027 no
) enable_shared
=no
;;
4030 # Look at the argument we got. We use all the common list separators.
4031 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4032 for pkg
in $enableval; do
4033 if test "X$pkg" = "X$p"; then
4043 # Check whether --enable-static or --disable-static was given.
4044 if test "${enable_static+set}" = set; then
4045 enableval
="$enable_static"
4046 p
=${PACKAGE-default}
4048 yes) enable_static
=yes ;;
4049 no
) enable_static
=no
;;
4052 # Look at the argument we got. We use all the common list separators.
4053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4054 for pkg
in $enableval; do
4055 if test "X$pkg" = "X$p"; then
4065 # Check whether --enable-fast-install or --disable-fast-install was given.
4066 if test "${enable_fast_install+set}" = set; then
4067 enableval
="$enable_fast_install"
4068 p
=${PACKAGE-default}
4070 yes) enable_fast_install
=yes ;;
4071 no
) enable_fast_install
=no
;;
4073 enable_fast_install
=no
4074 # Look at the argument we got. We use all the common list separators.
4075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4076 for pkg
in $enableval; do
4077 if test "X$pkg" = "X$p"; then
4078 enable_fast_install
=yes
4085 enable_fast_install
=yes
4088 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4089 if test "${with_gnu_ld+set}" = set; then
4090 withval
="$with_gnu_ld"
4091 test "$withval" = no || with_gnu_ld
=yes
4096 if test "$GCC" = yes; then
4097 # Check if gcc -print-prog-name=ld gives a path.
4098 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4099 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4102 # gcc leaves a trailing carriage return which upsets mingw
4103 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4105 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4108 # Accept absolute paths.
4109 [\\/]* |
[A-Za-z
]:[\\/]*)
4110 re_direlt
='/[^/][^/]*/\.\./'
4111 # Canonicalize the path of ld
4112 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
4113 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4114 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
4116 test -z "$LD" && LD
="$ac_prog"
4119 # If it fails, then pretend we aren't using GCC.
4123 # If it is relative, then search for the first ld in PATH.
4127 elif test "$with_gnu_ld" = yes; then
4128 echo "$as_me:$LINENO: checking for GNU ld" >&5
4129 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4131 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4132 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4134 if test "${lt_cv_path_LD+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 if test -z "$LD"; then
4138 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4139 for ac_dir
in $PATH; do
4140 test -z "$ac_dir" && ac_dir
=.
4141 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4142 lt_cv_path_LD
="$ac_dir/$ac_prog"
4143 # Check to see if the program is GNU ld. I'd rather use --version,
4144 # but apparently some GNU ld's only accept -v.
4145 # Break only if it was the GNU/non-GNU ld that we prefer.
4146 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
4147 test "$with_gnu_ld" != no
&& break
4149 test "$with_gnu_ld" != yes && break
4155 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4160 if test -n "$LD"; then
4161 echo "$as_me:$LINENO: result: $LD" >&5
4162 echo "${ECHO_T}$LD" >&6
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4167 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4168 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4169 { (exit 1); exit 1; }; }
4170 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4171 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4172 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4176 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
4177 lt_cv_prog_gnu_ld
=yes
4179 lt_cv_prog_gnu_ld
=no
4182 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4183 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4184 with_gnu_ld
=$lt_cv_prog_gnu_ld
4187 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4188 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4189 if test "${lt_cv_ld_reload_flag+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 lt_cv_ld_reload_flag
='-r'
4194 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4195 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4196 reload_flag
=$lt_cv_ld_reload_flag
4197 test -n "$reload_flag" && reload_flag
=" $reload_flag"
4199 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4200 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4201 if test "${lt_cv_path_NM+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 if test -n "$NM"; then
4205 # Let the user override the test.
4208 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4209 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
4210 test -z "$ac_dir" && ac_dir
=.
4211 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
4212 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
4213 # Check to see if the nm accepts a BSD-compat flag.
4214 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4215 # nm: unknown option "B" ignored
4216 # Tru64's nm complains that /dev/null is an invalid object file
4217 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
4218 lt_cv_path_NM
="$tmp_nm -B"
4220 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
4221 lt_cv_path_NM
="$tmp_nm -p"
4224 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4225 continue # so that we can try to find one that supports BSD flags
4230 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4235 echo "$as_me:$LINENO: result: $NM" >&5
4236 echo "${ECHO_T}$NM" >&6
4238 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4239 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4240 if test "${lt_cv_deplibs_check_method+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4244 lt_cv_file_magic_test_file
=
4245 lt_cv_deplibs_check_method
='unknown'
4246 # Need to set the preceding variable on all platforms that support
4247 # interlibrary dependencies.
4248 # 'none' -- dependencies not supported.
4249 # `unknown' -- same as none, but documents that we really don't know.
4250 # 'pass_all' -- all dependencies passed with no checks.
4251 # 'test_compile' -- check by making test program.
4252 # 'file_magic [regex]' -- check by looking for files in library path
4253 # which responds to the $file_magic_cmd with a given egrep regex.
4254 # If you have `file' or equivalent on your system and you're not sure
4255 # whether `pass_all' will *always* work, you probably want this one.
4259 lt_cv_deplibs_check_method
=pass_all
4263 lt_cv_deplibs_check_method
=pass_all
4267 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4268 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4269 lt_cv_file_magic_test_file
=/shlib
/libc.so
4272 cygwin
* | mingw
* |pw32
*)
4273 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4274 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4277 darwin
* | rhapsody
*)
4278 # this will be overwritten by pass_all, but leave it in just in case
4279 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
4280 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4282 rhapsody
* | darwin1.012
)
4283 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
4286 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
4289 lt_cv_deplibs_check_method
=pass_all
4292 freebsd
* | kfreebsd
*-gnu)
4293 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4296 # Not sure whether the presence of OpenBSD here was a mistake.
4297 # Let's accept both of them until this is cleared up.
4298 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4299 lt_cv_file_magic_cmd
=/usr
/bin
/file
4300 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4304 lt_cv_deplibs_check_method
=pass_all
4309 lt_cv_deplibs_check_method
=pass_all
4315 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4316 lt_cv_file_magic_cmd
=/usr
/bin
/file
4317 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4320 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4321 lt_cv_file_magic_cmd
=/usr
/bin
/file
4322 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4330 # this will be overridden with pass_all, but let us keep it just in case
4331 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4335 *-32|
*"-32 ") libmagic
=32-bit;;
4336 *-n32|
*"-n32 ") libmagic
=N32
;;
4337 *-64|
*"-64 ") libmagic
=64-bit;;
4338 *) libmagic
=never-match
;;
4340 # this will be overridden with pass_all, but let us keep it just in case
4341 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4344 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
4345 lt_cv_deplibs_check_method
=pass_all
4348 # This must be Linux ELF.
4351 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* | sh
* )
4352 lt_cv_deplibs_check_method
=pass_all
;;
4354 # glibc up to 2.1.1 does not perform some relocations on ARM
4355 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4357 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
4360 netbsd
* | knetbsd
*-gnu)
4361 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4362 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4364 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
4369 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4370 lt_cv_file_magic_cmd
=/usr
/bin
/file
4371 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4374 osf3
* | osf4
* | osf5
*)
4375 # this will be overridden with pass_all, but let us keep it just in case
4376 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
4377 lt_cv_file_magic_test_file
=/shlib
/libc.so
4378 lt_cv_deplibs_check_method
=pass_all
4382 lt_cv_deplibs_check_method
=pass_all
4386 lt_cv_deplibs_check_method
=pass_all
4387 lt_cv_file_magic_test_file
=/lib
/libc.so
4390 sysv5uw
[78]* | sysv4
*uw2
*)
4391 lt_cv_deplibs_check_method
=pass_all
4394 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4395 case $host_vendor in
4397 lt_cv_deplibs_check_method
=pass_all
4400 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]'
4401 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4408 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4409 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4410 file_magic_cmd
=$lt_cv_file_magic_cmd
4411 deplibs_check_method
=$lt_cv_deplibs_check_method
4416 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4418 # Only perform the check for file, if the check method requires it
4419 case $deplibs_check_method in
4421 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4422 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4423 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4424 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
4432 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
4435 ac_save_MAGIC_CMD
="$MAGIC_CMD"
4436 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4437 ac_dummy
="/usr/bin:$PATH"
4438 for ac_dir
in $ac_dummy; do
4439 test -z "$ac_dir" && ac_dir
=.
4440 if test -f $ac_dir/${ac_tool_prefix}file; then
4441 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
4442 if test -n "$file_magic_test_file"; then
4443 case $deplibs_check_method in
4445 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4446 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4447 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
4448 egrep "$file_magic_regex" > /dev
/null
; then
4453 *** Warning: the command libtool uses to detect shared libraries,
4454 *** $file_magic_cmd, produces output that libtool cannot recognize.
4455 *** The result is that libtool may fail to recognize shared libraries
4456 *** as such. This will affect the creation of libtool libraries that
4457 *** depend on shared libraries, but programs linked with such libtool
4458 *** libraries will work regardless of this problem. Nevertheless, you
4459 *** may want to report the problem to your system manager and/or to
4460 *** bug-libtool@gnu.org
4470 MAGIC_CMD
="$ac_save_MAGIC_CMD"
4475 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4476 if test -n "$MAGIC_CMD"; then
4477 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4478 echo "${ECHO_T}$MAGIC_CMD" >&6
4480 echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6
4484 if test -z "$lt_cv_path_MAGIC_CMD"; then
4485 if test -n "$ac_tool_prefix"; then
4486 echo "$as_me:$LINENO: checking for file" >&5
4487 echo $ECHO_N "checking for file... $ECHO_C" >&6
4488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
4496 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
4499 ac_save_MAGIC_CMD
="$MAGIC_CMD"
4500 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4501 ac_dummy
="/usr/bin:$PATH"
4502 for ac_dir
in $ac_dummy; do
4503 test -z "$ac_dir" && ac_dir
=.
4504 if test -f $ac_dir/file; then
4505 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
4506 if test -n "$file_magic_test_file"; then
4507 case $deplibs_check_method in
4509 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4510 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4511 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
4512 egrep "$file_magic_regex" > /dev
/null
; then
4517 *** Warning: the command libtool uses to detect shared libraries,
4518 *** $file_magic_cmd, produces output that libtool cannot recognize.
4519 *** The result is that libtool may fail to recognize shared libraries
4520 *** as such. This will affect the creation of libtool libraries that
4521 *** depend on shared libraries, but programs linked with such libtool
4522 *** libraries will work regardless of this problem. Nevertheless, you
4523 *** may want to report the problem to your system manager and/or to
4524 *** bug-libtool@gnu.org
4534 MAGIC_CMD
="$ac_save_MAGIC_CMD"
4539 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4540 if test -n "$MAGIC_CMD"; then
4541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4542 echo "${ECHO_T}$MAGIC_CMD" >&6
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4557 if test -n "$ac_tool_prefix"; then
4558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4559 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_prog_RANLIB+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 if test -n "$RANLIB"; then
4566 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir
=.
4573 for ac_exec_ext
in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 RANLIB
=$ac_cv_prog_RANLIB
4585 if test -n "$RANLIB"; then
4586 echo "$as_me:$LINENO: result: $RANLIB" >&5
4587 echo "${ECHO_T}$RANLIB" >&6
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4594 if test -z "$ac_cv_prog_RANLIB"; then
4595 ac_ct_RANLIB
=$RANLIB
4596 # Extract the first word of "ranlib", so it can be a program name with args.
4597 set dummy ranlib
; ac_word
=$2
4598 echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4600 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 if test -n "$ac_ct_RANLIB"; then
4604 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir
=.
4611 for ac_exec_ext
in '' $ac_executable_extensions; do
4612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4623 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4624 if test -n "$ac_ct_RANLIB"; then
4625 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4626 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4628 echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6
4632 RANLIB
=$ac_ct_RANLIB
4634 RANLIB
="$ac_cv_prog_RANLIB"
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4639 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_prog_STRIP+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 if test -n "$STRIP"; then
4646 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4652 test -z "$as_dir" && as_dir
=.
4653 for ac_exec_ext
in '' $ac_executable_extensions; do
4654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 STRIP
=$ac_cv_prog_STRIP
4665 if test -n "$STRIP"; then
4666 echo "$as_me:$LINENO: result: $STRIP" >&5
4667 echo "${ECHO_T}$STRIP" >&6
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4674 if test -z "$ac_cv_prog_STRIP"; then
4676 # Extract the first word of "strip", so it can be a program name with args.
4677 set dummy strip
; ac_word
=$2
4678 echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test -n "$ac_ct_STRIP"; then
4684 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir
=.
4691 for ac_exec_ext
in '' $ac_executable_extensions; do
4692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_ac_ct_STRIP
="strip"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
4703 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4704 if test -n "$ac_ct_STRIP"; then
4705 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4706 echo "${ECHO_T}$ac_ct_STRIP" >&6
4708 echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4714 STRIP
="$ac_cv_prog_STRIP"
4718 # Check for any special flags to pass to ltconfig.
4719 libtool_flags
="--cache-file=$cache_file"
4720 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
4721 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
4722 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
4723 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
4724 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
4727 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4728 if test "${enable_libtool_lock+set}" = set; then
4729 enableval
="$enable_libtool_lock"
4732 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
4733 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
4736 # Check whether --with-pic or --without-pic was given.
4737 if test "${with_pic+set}" = set; then
4743 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
4744 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
4746 # Some flags need to be propagated to the compiler or linker for good
4750 # Find out which ABI we are using.
4751 echo '#line 4751 "configure"' > conftest.
$ac_ext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; then
4757 if test "$lt_cv_prog_gnu_ld" = yes; then
4758 case `/usr/bin/file conftest.$ac_objext` in
4760 LD
="${LD-ld} -melf32bsmip"
4763 LD
="${LD-ld} -melf32bmipn32"
4766 LD
="${LD-ld} -melf64bmip"
4770 case `/usr/bin/file conftest.$ac_objext` in
4787 # Find out which ABI we are using.
4788 echo 'int i;' > conftest.
$ac_ext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; then
4794 case "`/usr/bin/file conftest.o`" in
4806 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4807 # Find out which ABI we are using.
4808 echo 'int i;' > conftest.
$ac_ext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; then
4814 case "`/usr/bin/file conftest.o`" in
4818 LD
="${LD-ld} -m elf_i386"
4820 ppc64-
*linux
*|powerpc64-
*linux
*)
4821 LD
="${LD-ld} -m elf32ppclinux"
4824 LD
="${LD-ld} -m elf_s390"
4827 LD
="${LD-ld} -m elf32_sparc"
4834 LD
="${LD-ld} -m elf_x86_64"
4836 ppc
*-*linux
*|powerpc
*-*linux
*)
4837 LD
="${LD-ld} -m elf64ppc"
4840 LD
="${LD-ld} -m elf64_s390"
4843 LD
="${LD-ld} -m elf64_sparc"
4853 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4854 SAVE_CFLAGS
="$CFLAGS"
4855 CFLAGS
="$CFLAGS -belf"
4856 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4857 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4858 if test "${lt_cv_cc_needs_belf+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 ac_cpp
='$CPP $CPPFLAGS'
4865 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4869 if test x
$gcc_no_link = xyes
; then
4870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4872 { (exit 1); exit 1; }; }
4874 cat >conftest.
$ac_ext <<_ACEOF
4877 cat confdefs.h
>>conftest.
$ac_ext
4878 cat >>conftest.
$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4889 rm -f conftest.
$ac_objext conftest
$ac_exeext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891 (eval $ac_link) 2>conftest.er1
4893 grep -v '^ *+' conftest.er1
>conftest.err
4895 cat conftest.err
>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try
='test -z "$ac_c_werror_flag"
4899 || test ! -s conftest.err'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; } &&
4905 { ac_try
='test -s conftest$ac_exeext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 lt_cv_cc_needs_belf
=yes
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.
$ac_ext >&5
4916 lt_cv_cc_needs_belf
=no
4918 rm -f conftest.err conftest.
$ac_objext \
4919 conftest
$ac_exeext conftest.
$ac_ext
4921 ac_cpp
='$CPP $CPPFLAGS'
4922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4927 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4928 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4929 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4930 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4931 CFLAGS
="$SAVE_CFLAGS"
4939 # Save cache, so that ltconfig can load it
4940 cat >confcache
<<\_ACEOF
4941 # This file is a shell script that caches the results of configure
4942 # tests run on this system so they can be shared between configure
4943 # scripts and configure runs, see configure's option --config-cache.
4944 # It is not useful on other systems. If it contains results you don't
4945 # want to keep, you may remove or edit it.
4947 # config.status only pays attention to the cache file if you give it
4948 # the --recheck option to rerun configure.
4950 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4951 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4956 # The following way of writing the cache mishandles newlines in values,
4957 # but we know of no workaround that is simple, portable, and efficient.
4958 # So, don't put newlines in cache variables' values.
4959 # Ultrix sh set writes to stderr and can't be redirected directly,
4960 # and sets the high bit in the cache file unless we assign to the vars.
4963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4965 # `set' does not quote correctly, so add quotes (double-quote
4966 # substitution turns \\\\ into \\, and sed turns \\ into \).
4969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4972 # `set' quotes correctly as required by POSIX, so do not add quotes.
4974 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4981 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4983 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4985 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4986 if test -w $cache_file; then
4987 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4988 cat confcache
>$cache_file
4990 echo "not updating unwritable cache $cache_file"
4995 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4996 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
4997 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
4998 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
4999 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
5000 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
5001 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
5002 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
5003 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
5004 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5005 echo "$as_me: error: libtool configure failed" >&2;}
5006 { (exit 1); exit 1; }; }
5008 # Reload cache, that may have been modified by ltconfig
5009 if test -r "$cache_file"; then
5010 # Some versions of bash will fail to source /dev/null (special
5011 # files actually), so we avoid doing that.
5012 if test -f "$cache_file"; then
5013 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5014 echo "$as_me: loading cache $cache_file" >&6;}
5016 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
5017 *) . .
/$cache_file;;
5021 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5022 echo "$as_me: creating cache $cache_file" >&6;}
5027 # This can be used to rebuild libtool when needed
5028 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5030 # Always use our own libtool.
5031 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
5033 # Redirect the config.log output again, so that the ltconfig log is not
5034 # clobbered by the next message.
5035 exec 5>>.
/config.log
5038 ac_cpp
='$CXXCPP $CPPFLAGS'
5039 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5042 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5043 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5044 if test -z "$CXXCPP"; then
5045 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 # Double quotes because CXXCPP needs to be expanded
5049 for CXXCPP
in "$CXX -E" "/lib/cpp"
5052 for ac_cxx_preproc_warn_flag
in '' yes
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat >conftest.
$ac_ext <<_ACEOF
5063 cat confdefs.h
>>conftest.
$ac_ext
5064 cat >>conftest.
$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5067 # include <limits.h>
5069 # include <assert.h>
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5076 grep -v '^ *+' conftest.er1
>conftest.err
5078 cat conftest.err
>&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } >/dev
/null
; then
5081 if test -s conftest.err
; then
5082 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5083 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5090 if test -z "$ac_cpp_err"; then
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.
$ac_ext >&5
5096 # Broken: fails on valid input.
5099 rm -f conftest.err conftest.
$ac_ext
5101 # OK, works on sane cases. Now check whether non-existent headers
5102 # can be detected and how.
5103 cat >conftest.
$ac_ext <<_ACEOF
5106 cat confdefs.h
>>conftest.
$ac_ext
5107 cat >>conftest.
$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #include <ac_nonexistent.h>
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1
>conftest.err
5116 cat conftest.err
>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev
/null
; then
5119 if test -s conftest.err
; then
5120 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5121 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5128 if test -z "$ac_cpp_err"; then
5129 # Broken: success on invalid input.
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.
$ac_ext >&5
5135 # Passes both tests.
5139 rm -f conftest.err conftest.
$ac_ext
5142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5143 rm -f conftest.err conftest.
$ac_ext
5144 if $ac_preproc_ok; then
5149 ac_cv_prog_CXXCPP
=$CXXCPP
5152 CXXCPP
=$ac_cv_prog_CXXCPP
5154 ac_cv_prog_CXXCPP
=$CXXCPP
5156 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5157 echo "${ECHO_T}$CXXCPP" >&6
5159 for ac_cxx_preproc_warn_flag
in '' yes
5161 # Use a header file that comes with gcc, so configuring glibc
5162 # with a fresh cross-compiler works.
5163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5164 # <limits.h> exists even on freestanding compilers.
5165 # On the NeXT, cc -E runs the code through the compiler's parser,
5166 # not just through cpp. "Syntax error" is here to catch this case.
5167 cat >conftest.
$ac_ext <<_ACEOF
5170 cat confdefs.h
>>conftest.
$ac_ext
5171 cat >>conftest.
$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5174 # include <limits.h>
5176 # include <assert.h>
5180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5181 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5183 grep -v '^ *+' conftest.er1
>conftest.err
5185 cat conftest.err
>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } >/dev
/null
; then
5188 if test -s conftest.err
; then
5189 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5190 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5197 if test -z "$ac_cpp_err"; then
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.
$ac_ext >&5
5203 # Broken: fails on valid input.
5206 rm -f conftest.err conftest.
$ac_ext
5208 # OK, works on sane cases. Now check whether non-existent headers
5209 # can be detected and how.
5210 cat >conftest.
$ac_ext <<_ACEOF
5213 cat confdefs.h
>>conftest.
$ac_ext
5214 cat >>conftest.
$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 #include <ac_nonexistent.h>
5218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5221 grep -v '^ *+' conftest.er1
>conftest.err
5223 cat conftest.err
>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } >/dev
/null
; then
5226 if test -s conftest.err
; then
5227 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5228 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5235 if test -z "$ac_cpp_err"; then
5236 # Broken: success on invalid input.
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.
$ac_ext >&5
5242 # Passes both tests.
5246 rm -f conftest.err conftest.
$ac_ext
5249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250 rm -f conftest.err conftest.
$ac_ext
5251 if $ac_preproc_ok; then
5254 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5255 See \`config.log' for more details." >&5
5256 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5257 See \`config.log' for more details." >&2;}
5258 { (exit 1); exit 1; }; }
5262 ac_cpp
='$CPP $CPPFLAGS'
5263 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5269 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5271 lt_save_CFLAGS
="$CFLAGS"
5272 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
5273 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
5274 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
5275 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
5276 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
5277 deplibs_check_method
="$deplibs_check_method" \
5278 file_magic_cmd
="$file_magic_cmd" \
5279 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
5280 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
5281 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5282 echo "$as_me: error: libtool tag configuration failed" >&2;}
5283 { (exit 1); exit 1; }; }
5285 CFLAGS
="$lt_save_CFLAGS"
5287 # Redirect the config.log output again, so that the ltconfig log is not
5288 # clobbered by the next message.
5289 exec 5>>.
/config.log
5299 # Extract the first word of "$ac_prog", so it can be a program name with args.
5300 set dummy
$ac_prog; ac_word
=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_prog_GCJ+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 if test -n "$GCJ"; then
5307 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
5309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir
=.
5314 for ac_exec_ext
in '' $ac_executable_extensions; do
5315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_GCJ
="$ac_prog"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 if test -n "$GCJ"; then
5327 echo "$as_me:$LINENO: result: $GCJ" >&5
5328 echo "${ECHO_T}$GCJ" >&6
5330 echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5334 test -n "$GCJ" && break
5336 test -n "$GCJ" || GCJ
="gcj"
5338 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5339 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5340 { (exit 1); exit 1; }; }
5341 if test "x${GCJFLAGS-unset}" = xunset
; then
5346 depcc
="$GCJ" am_compiler_list
='gcc3 gcc'
5348 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5349 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5350 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5354 # We make a subdir and do the tests there. Otherwise we can end up
5355 # making bogus files that we don't know about and never remove. For
5356 # instance it was reported that on HP-UX the gcc test will end up
5357 # making a dummy file named `D' -- because `-MD' means `put the output
5360 # Copy depcomp to subdir because otherwise we won't find it if we're
5361 # using a relative directory.
5362 cp "$am_depcomp" conftest.dir
5364 # We will build objects and dependencies in a subdirectory because
5365 # it helps to detect inapplicable dependency modes. For instance
5366 # both Tru64's cc and ICC support -MD to output dependencies as a
5367 # side effect of compilation, but ICC will put the dependencies in
5368 # the current directory while Tru64 will put them in the object
5372 am_cv_GCJ_dependencies_compiler_type
=none
5373 if test "$am_compiler_list" = ""; then
5374 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5376 for depmode
in $am_compiler_list; do
5377 # Setup a source with many dependencies, because some compilers
5378 # like to wrap large dependency lists on column 80 (with \), and
5379 # we should not choose a depcomp mode which is confused by this.
5381 # We need to recreate these files for each test, as the compiler may
5382 # overwrite some of them when testing with obscure command lines.
5383 # This happens at least with the AIX C compiler.
5385 for i
in 1 2 3 4 5 6; do
5386 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5387 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5388 # Solaris 8's {/usr,}/bin/sh.
5389 touch sub
/conftst
$i.h
5391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5395 # after this tag, mechanisms are not by side-effect, so they'll
5396 # only be used when explicitly requested
5397 if test "x$enable_dependency_tracking" = xyes
; then
5405 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5406 # mode. It turns out that the SunPro C++ compiler does not properly
5407 # handle `-M -o', and we need to detect this.
5408 if depmode
=$depmode \
5409 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5410 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5411 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5412 >/dev
/null
2>conftest.err
&&
5413 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5414 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5415 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5416 # icc doesn't choke on unknown options, it will just issue warnings
5417 # or remarks (even with -Werror). So we grep stderr for any message
5418 # that says an option was ignored or not supported.
5419 # When given -MP, icc 7.0 and 7.1 complain thusly:
5420 # icc: Command line warning: ignoring option '-M'; no argument required
5421 # The diagnosis changed in icc 8.0:
5422 # icc: Command line remark: option '-MP' not supported
5423 if (grep 'ignoring option' conftest.err ||
5424 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5425 am_cv_GCJ_dependencies_compiler_type
=$depmode
5434 am_cv_GCJ_dependencies_compiler_type
=none
5438 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5439 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5440 GCJDEPMODE
=depmode
=$am_cv_GCJ_dependencies_compiler_type
5445 test "x$enable_dependency_tracking" != xno \
5446 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3
; then
5447 am__fastdepGCJ_TRUE
=
5448 am__fastdepGCJ_FALSE
='#'
5450 am__fastdepGCJ_TRUE
='#'
5451 am__fastdepGCJ_FALSE
=
5457 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5459 lt_save_CFLAGS
="$CFLAGS"
5460 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="$CPPFLAGS" \
5461 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
5462 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
5463 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
5464 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
5465 deplibs_check_method
="$deplibs_check_method" \
5466 file_magic_cmd
="$file_magic_cmd" \
5467 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
5468 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
5469 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5470 echo "$as_me: error: libtool tag configuration failed" >&2;}
5471 { (exit 1); exit 1; }; }
5473 CFLAGS
="$lt_save_CFLAGS"
5475 # Redirect the config.log output again, so that the ltconfig log is not
5476 # clobbered by the next message.
5477 exec 5>>.
/config.log
5481 if test "x$CC" != xcc
; then
5482 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5483 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5485 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5486 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5488 set dummy
$CC; ac_cc
=`echo $2 |
5489 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5490 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 cat >conftest.
$ac_ext <<_ACEOF
5496 cat confdefs.h
>>conftest.
$ac_ext
5497 cat >>conftest.
$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5508 # Make sure it works both with $CC and with simple cc.
5509 # We do the test twice because some compilers refuse to overwrite an
5510 # existing .o file with -o, though they will create one.
5511 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5512 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } &&
5517 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); };
5523 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5524 if test "x$CC" != xcc
; then
5525 # Test first that cc exists at all.
5526 if { ac_try
='cc -c conftest.$ac_ext >&5'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5533 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); };
5547 # cc exists but doesn't like -o.
5548 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
5553 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
5558 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5559 echo "$as_me:$LINENO: result: yes" >&5
5560 echo "${ECHO_T}yes" >&6
5562 echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5565 cat >>confdefs.h
<<\_ACEOF
5566 #define NO_MINUS_C_MINUS_O 1
5571 # FIXME: we rely on the cache variable name because
5572 # there is no other way.
5574 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5575 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5576 # Losing compiler, so override with the script.
5577 # FIXME: It is wrong to rewrite CC.
5578 # But if we don't then we get into trouble of one sort or another.
5579 # A longer-term fix would be to have automake use am__CC in this case,
5580 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5581 CC
="$am_aux_dir/compile $CC"
5586 subdirs
="$subdirs libltdl"
5589 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
5596 # The -no-testsuite modules omit the test subdir.
5599 if test -d $srcdir/testsuite
; then
5601 TESTSUBDIR_FALSE
='#'
5608 # Should the runtime set system properties by examining the
5609 # environment variable GCJ_PROPERTIES?
5610 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5611 if test "${enable_getenv_properties+set}" = set; then
5612 enableval
="$enable_getenv_properties"
5616 # Whether GCJ_PROPERTIES is used depends on the target.
5617 if test -z "$enable_getenv_properties"; then
5618 enable_getenv_properties
=${enable_getenv_properties_default-yes}
5620 if test "$enable_getenv_properties" = no
; then
5622 cat >>confdefs.h
<<\_ACEOF
5623 #define DISABLE_GETENV_PROPERTIES 1
5628 # Whether we should use arguments to main()
5629 if test -z "$enable_main_args"; then
5630 enable_main_args
=${enable_main_args_default-yes}
5632 if test "$enable_main_args" = no
; then
5634 cat >>confdefs.h
<<\_ACEOF
5635 #define DISABLE_MAIN_ARGS 1
5641 # Should we use hashtable-based synchronization?
5642 # Currently works only for Linux X86/ia64
5643 # Typically faster and more space-efficient
5644 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5645 if test "${enable_hash_synchronization+set}" = set; then
5646 enableval
="$enable_hash_synchronization"
5650 if test -z "$enable_hash_synchronization"; then
5651 enable_hash_synchronization
=$enable_hash_synchronization_default
5654 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5655 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5656 if test "${enable_libgcj_multifile+set}" = set; then
5657 enableval
="$enable_libgcj_multifile"
5658 case "${enableval}" in
5659 yes) enable_libgcj_multifile
=yes ;;
5660 no
) enable_libgcj_multifile
=no
;;
5661 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5662 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5663 { (exit 1); exit 1; }; } ;;
5666 enable_libgcj_multifile
=no
5670 if test "$enable_libgcj_multifile" = yes; then
5679 # What is the native OS API for MinGW?
5681 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5682 if test "${with_win32_nlsapi+set}" = set; then
5683 withval
="$with_win32_nlsapi"
5684 case "${withval}" in
5685 ansi
) with_win32_nlsapi
=ansi
;;
5686 unicows
) with_win32_nlsapi
=unicows
;;
5687 unicode
) with_win32_nlsapi
=unicode
;;
5688 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5689 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5690 { (exit 1); exit 1; }; } ;;
5693 with_win32_nlsapi
=ansi
5696 case "${with_win32_nlsapi}" in
5699 cat >>confdefs.h
<<\_ACEOF
5700 #define MINGW_LIBGCJ_UNICODE 1
5706 # configure.host sets slow_pthread_self if the synchronization code should
5707 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5708 if test "${slow_pthread_self}" = "yes"; then
5710 cat >>confdefs.h
<<\_ACEOF
5711 #define SLOW_PTHREAD_SELF 1
5717 # See if the user has requested runtime debugging.
5720 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5721 if test "${enable_libgcj_debug+set}" = set; then
5722 enableval
="$enable_libgcj_debug"
5723 if test "$enable_libgcj_debug" = yes; then
5725 cat >>confdefs.h
<<\_ACEOF
5733 # Check for gc debugging. This option is handled both here and in the GC.
5734 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5735 if test "${enable_gc_debug+set}" = set; then
5736 enableval
="$enable_gc_debug"
5737 if test "$enable_gc_debug" = "yes"; then
5739 cat >>confdefs.h
<<\_ACEOF
5740 #define LIBGCJ_GC_DEBUG 1
5746 # See if the user has the interpreter included.
5747 # Check whether --enable-interpreter or --disable-interpreter was given.
5748 if test "${enable_interpreter+set}" = set; then
5749 enableval
="$enable_interpreter"
5750 if test "$enable_interpreter" = yes; then
5751 # This can also be set in configure.host.
5752 libgcj_interpreter
=yes
5753 elif test "$enable_interpreter" = no
; then
5754 libgcj_interpreter
=no
5758 if test "$libgcj_interpreter" = yes; then
5760 cat >>confdefs.h
<<\_ACEOF
5761 #define INTERPRETER 1
5765 INTERPRETER
="$libgcj_interpreter"
5768 echo "$as_me:$LINENO: checking for exception model to use" >&5
5769 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5771 ac_cpp
='$CXXCPP $CPPFLAGS'
5772 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5776 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5777 if test "${enable_sjlj_exceptions+set}" = set; then
5778 enableval
="$enable_sjlj_exceptions"
5781 cat > conftest.
$ac_ext << EOF
5782 #line 5782 "configure"
5791 old_CXXFLAGS
="$CXXFLAGS"
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; then
5798 if grep _Unwind_SjLj_Resume conftest.s
>/dev
/null
2>&1 ; then
5799 enable_sjlj_exceptions
=yes
5800 elif grep _Unwind_Resume conftest.s
>/dev
/null
2>&1 ; then
5801 enable_sjlj_exceptions
=no
5804 CXXFLAGS
="$old_CXXFLAGS"
5807 if test x
$enable_sjlj_exceptions = xyes
; then
5809 cat >>confdefs.h
<<\_ACEOF
5810 #define SJLJ_EXCEPTIONS 1
5813 ac_exception_model_name
=sjlj
5814 elif test x
$enable_sjlj_exceptions = xno
; then
5815 ac_exception_model_name
="call frame"
5817 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5818 echo "$as_me: error: unable to detect exception model" >&2;}
5819 { (exit 1); exit 1; }; }
5822 ac_cpp
='$CPP $CPPFLAGS'
5823 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5827 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5828 echo "${ECHO_T}$ac_exception_model_name" >&6
5830 # If we are non using SJLJ exceptions, and this host does not have support
5831 # for unwinding from a signal handler, enable checked dereferences and divides.
5832 if test $can_unwind_signal = no
&& test $enable_sjlj_exceptions = no
; then
5833 CHECKREFSPEC
=-fcheck-references
5834 DIVIDESPEC
=-fuse-divide-subroutine
5838 # See if the user wants to disable java.net. This is the mildly
5839 # ugly way that we admit that target-side configuration sucks.
5840 # Check whether --enable-java-net or --disable-java-net was given.
5841 if test "${enable_java_net+set}" = set; then
5842 enableval
="$enable_java_net"
5846 # Whether java.net is built by default can depend on the target.
5847 if test -z "$enable_java_net"; then
5848 enable_java_net
=${enable_java_net_default-yes}
5850 if test "$enable_java_net" = no
; then
5852 cat >>confdefs.h
<<\_ACEOF
5853 #define DISABLE_JAVA_NET 1
5858 # See if the user wants to configure without libffi. Some
5859 # architectures don't support it, and default values are set in
5862 # Check whether --with-libffi or --without-libffi was given.
5863 if test "${with_libffi+set}" = set; then
5864 withval
="$with_libffi"
5867 with_libffi
=${with_libffi_default-yes}
5872 if test "$with_libffi" != no
; then
5874 cat >>confdefs.h
<<\_ACEOF
5875 #define USE_LIBFFI 1
5878 LIBFFI
=..
/libffi
/libffi_convenience.la
5879 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5884 # See if the user wants to disable JVMPI support.
5885 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5886 if test "${enable_jvmpi+set}" = set; then
5887 enableval
="$enable_jvmpi"
5891 if test "$enable_jvmpi" != no
; then
5893 cat >>confdefs.h
<<\_ACEOF
5894 #define ENABLE_JVMPI 1
5899 # If the target is an eCos system, use the appropriate eCos
5901 # FIXME: this should not be a local option but a global target
5902 # system; at present there is no eCos target.
5903 TARGET_ECOS
=${PROCESS-"no"}
5905 # Check whether --with-ecos or --without-ecos was given.
5906 if test "${with_ecos+set}" = set; then
5907 withval
="$with_ecos"
5908 TARGET_ECOS
="$with_ecos"
5914 PLATFORM_INNER_NAT_HDRS
=
5915 case "$TARGET_ECOS" in
5922 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5923 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5924 LD_PROG
=`$CC --print-prog-name=ld`
5925 LD_VERSION
=`$LD_PROG --version`
5926 LD_VERSION_MAJOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5927 LD_VERSION_MINOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5928 if expr "$LD_VERSION_MAJOR" \
> 2 > /dev
/null
; then
5931 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \
>= 13 > /dev
/null
; then
5935 if test "x$LD_OK" != x
; then
5936 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5937 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5939 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5940 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5941 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5942 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5944 cat >>confdefs.h
<<\_ACEOF
5945 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5954 PLATFORM_INNER_NAT_HDRS
='java/lang/ConcreteProcess$$ProcessManager.h'
5962 cat >>confdefs.h
<<\_ACEOF
5970 ac_config_links
="$ac_config_links include/platform.h:include/$PLATFORMH"
5974 ac_cpp
='$CPP $CPPFLAGS'
5975 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5976 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5977 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5978 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5979 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5980 # On Suns, sometimes $CPP names a directory.
5981 if test -n "$CPP" && test -d "$CPP"; then
5984 if test -z "$CPP"; then
5985 if test "${ac_cv_prog_CPP+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 # Double quotes because CPP needs to be expanded
5989 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5992 for ac_c_preproc_warn_flag
in '' yes
5994 # Use a header file that comes with gcc, so configuring glibc
5995 # with a fresh cross-compiler works.
5996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 # <limits.h> exists even on freestanding compilers.
5998 # On the NeXT, cc -E runs the code through the compiler's parser,
5999 # not just through cpp. "Syntax error" is here to catch this case.
6000 cat >conftest.
$ac_ext <<_ACEOF
6003 cat confdefs.h
>>conftest.
$ac_ext
6004 cat >>conftest.
$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6007 # include <limits.h>
6009 # include <assert.h>
6013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6014 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6016 grep -v '^ *+' conftest.er1
>conftest.err
6018 cat conftest.err
>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } >/dev
/null
; then
6021 if test -s conftest.err
; then
6022 ac_cpp_err
=$ac_c_preproc_warn_flag
6023 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6030 if test -z "$ac_cpp_err"; then
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.
$ac_ext >&5
6036 # Broken: fails on valid input.
6039 rm -f conftest.err conftest.
$ac_ext
6041 # OK, works on sane cases. Now check whether non-existent headers
6042 # can be detected and how.
6043 cat >conftest.
$ac_ext <<_ACEOF
6046 cat confdefs.h
>>conftest.
$ac_ext
6047 cat >>conftest.
$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <ac_nonexistent.h>
6051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6054 grep -v '^ *+' conftest.er1
>conftest.err
6056 cat conftest.err
>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } >/dev
/null
; then
6059 if test -s conftest.err
; then
6060 ac_cpp_err
=$ac_c_preproc_warn_flag
6061 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6068 if test -z "$ac_cpp_err"; then
6069 # Broken: success on invalid input.
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.
$ac_ext >&5
6075 # Passes both tests.
6079 rm -f conftest.err conftest.
$ac_ext
6082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6083 rm -f conftest.err conftest.
$ac_ext
6084 if $ac_preproc_ok; then
6096 echo "$as_me:$LINENO: result: $CPP" >&5
6097 echo "${ECHO_T}$CPP" >&6
6099 for ac_c_preproc_warn_flag
in '' yes
6101 # Use a header file that comes with gcc, so configuring glibc
6102 # with a fresh cross-compiler works.
6103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6104 # <limits.h> exists even on freestanding compilers.
6105 # On the NeXT, cc -E runs the code through the compiler's parser,
6106 # not just through cpp. "Syntax error" is here to catch this case.
6107 cat >conftest.
$ac_ext <<_ACEOF
6110 cat confdefs.h
>>conftest.
$ac_ext
6111 cat >>conftest.
$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6114 # include <limits.h>
6116 # include <assert.h>
6120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6121 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1
>conftest.err
6125 cat conftest.err
>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } >/dev
/null
; then
6128 if test -s conftest.err
; then
6129 ac_cpp_err
=$ac_c_preproc_warn_flag
6130 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6137 if test -z "$ac_cpp_err"; then
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.
$ac_ext >&5
6143 # Broken: fails on valid input.
6146 rm -f conftest.err conftest.
$ac_ext
6148 # OK, works on sane cases. Now check whether non-existent headers
6149 # can be detected and how.
6150 cat >conftest.
$ac_ext <<_ACEOF
6153 cat confdefs.h
>>conftest.
$ac_ext
6154 cat >>conftest.
$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <ac_nonexistent.h>
6158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6161 grep -v '^ *+' conftest.er1
>conftest.err
6163 cat conftest.err
>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev
/null
; then
6166 if test -s conftest.err
; then
6167 ac_cpp_err
=$ac_c_preproc_warn_flag
6168 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6175 if test -z "$ac_cpp_err"; then
6176 # Broken: success on invalid input.
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.
$ac_ext >&5
6182 # Passes both tests.
6186 rm -f conftest.err conftest.
$ac_ext
6189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6190 rm -f conftest.err conftest.
$ac_ext
6191 if $ac_preproc_ok; then
6194 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6195 See \`config.log' for more details." >&5
6196 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6197 See \`config.log' for more details." >&2;}
6198 { (exit 1); exit 1; }; }
6202 ac_cpp
='$CPP $CPPFLAGS'
6203 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6208 echo "$as_me:$LINENO: checking for egrep" >&5
6209 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6210 if test "${ac_cv_prog_egrep+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6214 then ac_cv_prog_egrep
='grep -E'
6215 else ac_cv_prog_egrep
='egrep'
6218 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6219 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6220 EGREP
=$ac_cv_prog_egrep
6223 cat >conftest.
$ac_ext <<_ACEOF
6226 cat confdefs.h
>>conftest.
$ac_ext
6227 cat >>conftest.
$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6233 $EGREP "uint32_t" >/dev
/null
2>&1; then
6235 cat >>confdefs.h
<<\_ACEOF
6236 #define HAVE_INT32_DEFINED 1
6242 cat >conftest.
$ac_ext <<_ACEOF
6245 cat confdefs.h
>>conftest.
$ac_ext
6246 cat >>conftest.
$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <inttypes.h>
6251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6252 $EGREP "uint32_t" >/dev
/null
2>&1; then
6254 cat >>confdefs.h
<<\_ACEOF
6255 #define HAVE_INT32_DEFINED 1
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "u_int32_t" >/dev
/null
2>&1; then
6273 cat >>confdefs.h
<<\_ACEOF
6274 #define HAVE_BSD_INT32_DEFINED 1
6280 cat >conftest.
$ac_ext <<_ACEOF
6283 cat confdefs.h
>>conftest.
$ac_ext
6284 cat >>conftest.
$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 #include <sys/config.h>
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "u_int32_t" >/dev
/null
2>&1; then
6292 cat >>confdefs.h
<<\_ACEOF
6293 #define HAVE_BSD_INT32_DEFINED 1
6302 if test "$PLATFORM" = Win32
; then
6303 USING_WIN32_PLATFORM_TRUE
=
6304 USING_WIN32_PLATFORM_FALSE
='#'
6306 USING_WIN32_PLATFORM_TRUE
='#'
6307 USING_WIN32_PLATFORM_FALSE
=
6312 if test "$PLATFORM" = Posix
; then
6313 USING_POSIX_PLATFORM_TRUE
=
6314 USING_POSIX_PLATFORM_FALSE
='#'
6316 USING_POSIX_PLATFORM_TRUE
='#'
6317 USING_POSIX_PLATFORM_FALSE
=
6322 if test "$PLATFORM" = Ecos
; then
6323 USING_ECOS_PLATFORM_TRUE
=
6324 USING_ECOS_PLATFORM_FALSE
='#'
6326 USING_ECOS_PLATFORM_TRUE
='#'
6327 USING_ECOS_PLATFORM_FALSE
=
6331 # These may not be defined in a non-ANS conformant embedded system.
6332 # FIXME: Should these case a runtime exception in that case?
6333 cat >conftest.
$ac_ext <<_ACEOF
6336 cat confdefs.h
>>conftest.
$ac_ext
6337 cat >>conftest.
$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343 $EGREP "mktime" >/dev
/null
2>&1; then
6345 cat >>confdefs.h
<<\_ACEOF
6346 #define HAVE_MKTIME 1
6352 cat >conftest.
$ac_ext <<_ACEOF
6355 cat confdefs.h
>>conftest.
$ac_ext
6356 cat >>conftest.
$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362 $EGREP "localtime" >/dev
/null
2>&1; then
6364 cat >>confdefs.h
<<\_ACEOF
6365 #define HAVE_LOCALTIME 1
6372 # Create the subdirectory for natFile.cc, or the attempt
6373 # to create the link will fail.
6374 test -d java || mkdir java
6375 test -d java
/io || mkdir java
/io
6376 test -d gnu || mkdir gnu
6377 ac_config_links
="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6380 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6381 test -d java
/lang || mkdir java
/lang
6382 ac_config_links
="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6384 ac_config_links
="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6387 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6388 test -d java
/net || mkdir java
/net
6389 ac_config_links
="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6391 ac_config_links
="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6394 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6395 test -d gnu
/java || mkdir gnu
/java
6396 test -d gnu
/java
/net || mkdir gnu
/java
/net
6397 ac_config_links
="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6399 ac_config_links
="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6402 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6403 test -d gnu
/java
/nio || mkdir gnu
/java
/nio
6404 ac_config_links
="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6406 ac_config_links
="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6408 test -d gnu
/java
/nio
/channels || mkdir gnu
/java
/nio
/channels
6409 ac_config_links
="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6414 SYSTEMSPEC
="-lgdi32 -lws2_32"
6415 if test "${with_win32_nlsapi}" = "unicows"; then
6416 SYSTEMSPEC
="-lunicows $SYSTEMSPEC"
6425 LIBGCJTESTSPEC
="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6429 # Check whether --with-system-zlib or --without-system-zlib was given.
6430 if test "${with_system_zlib+set}" = set; then
6431 withval
="$with_system_zlib"
6439 echo "$as_me:$LINENO: checking for X" >&5
6440 echo $ECHO_N "checking for X... $ECHO_C" >&6
6443 # Check whether --with-x or --without-x was given.
6444 if test "${with_x+set}" = set; then
6448 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6449 if test "x$with_x" = xno
; then
6450 # The user explicitly disabled X.
6453 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6454 # Both variables are already set.
6457 if test "${ac_cv_have_x+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 # One or both of the vars are not set, and there is no cached value.
6461 ac_x_includes
=no ac_x_libraries
=no
6463 if mkdir conftest.dir
; then
6465 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6466 cat >Imakefile
<<'_ACEOF'
6468 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6470 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6471 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6472 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6473 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6474 for ac_extension
in a so sl
; do
6475 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6476 test -f $ac_im_libdir/libX11.
$ac_extension; then
6477 ac_im_usrlibdir
=$ac_im_libdir; break
6480 # Screen out bogus values from the imake configuration. They are
6481 # bogus both because they are the default anyway, and because
6482 # using them would break gcc on systems where it needs fixed includes.
6483 case $ac_im_incroot in
6485 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6487 case $ac_im_usrlibdir in
6489 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6496 # Standard set of common directories for X headers.
6497 # Check X11 before X11Rn because it is often a symlink to the current release.
6509 /usr/local/X11/include
6510 /usr/local/X11R6/include
6511 /usr/local/X11R5/include
6512 /usr/local/X11R4/include
6514 /usr/local/include/X11
6515 /usr/local/include/X11R6
6516 /usr/local/include/X11R5
6517 /usr/local/include/X11R4
6521 /usr/XFree86/include/X11
6525 /usr/unsupported/include
6527 /usr/local/x11r5/include
6528 /usr/lpp/Xamples/include
6530 /usr/openwin/include
6531 /usr/openwin/share/include'
6533 if test "$ac_x_includes" = no
; then
6534 # Guess where to find include files, by looking for Intrinsic.h.
6535 # First, try using that file with no special directory specified.
6536 cat >conftest.
$ac_ext <<_ACEOF
6539 cat confdefs.h
>>conftest.
$ac_ext
6540 cat >>conftest.
$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #include <X11/Intrinsic.h>
6544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6545 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6547 grep -v '^ *+' conftest.er1
>conftest.err
6549 cat conftest.err
>&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } >/dev
/null
; then
6552 if test -s conftest.err
; then
6553 ac_cpp_err
=$ac_c_preproc_warn_flag
6554 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6561 if test -z "$ac_cpp_err"; then
6562 # We can compile using X headers with no special include directory.
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.
$ac_ext >&5
6568 for ac_dir
in $ac_x_header_dirs; do
6569 if test -r "$ac_dir/X11/Intrinsic.h"; then
6570 ac_x_includes
=$ac_dir
6575 rm -f conftest.err conftest.
$ac_ext
6576 fi # $ac_x_includes = no
6578 if test "$ac_x_libraries" = no
; then
6579 # Check for the libraries.
6580 # See if we find them without any special options.
6581 # Don't add to $LIBS permanently.
6584 if test x
$gcc_no_link = xyes
; then
6585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6587 { (exit 1); exit 1; }; }
6589 cat >conftest.
$ac_ext <<_ACEOF
6592 cat confdefs.h
>>conftest.
$ac_ext
6593 cat >>conftest.
$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 #include <X11/Intrinsic.h>
6604 rm -f conftest.
$ac_objext conftest
$ac_exeext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6606 (eval $ac_link) 2>conftest.er1
6608 grep -v '^ *+' conftest.er1
>conftest.err
6610 cat conftest.err
>&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try
='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try
='test -s conftest$ac_exeext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6627 # We can link X programs with no special library path.
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.
$ac_ext >&5
6634 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6636 # Don't even attempt the hair of trying to link an X program!
6637 for ac_extension
in a so sl
; do
6638 if test -r $ac_dir/libXt.
$ac_extension; then
6639 ac_x_libraries
=$ac_dir
6645 rm -f conftest.err conftest.
$ac_objext \
6646 conftest
$ac_exeext conftest.
$ac_ext
6647 fi # $ac_x_libraries = no
6649 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6650 # Didn't find X anywhere. Cache the known absence of X.
6651 ac_cv_have_x
="have_x=no"
6653 # Record where we found X for the cache.
6654 ac_cv_have_x
="have_x=yes \
6655 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6660 eval "$ac_cv_have_x"
6663 if test "$have_x" != yes; then
6664 echo "$as_me:$LINENO: result: $have_x" >&5
6665 echo "${ECHO_T}$have_x" >&6
6668 # If each of the values was on the command line, it overrides each guess.
6669 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6670 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6671 # Update the cache value to reflect the command line values.
6672 ac_cv_have_x
="have_x=yes \
6673 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6674 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6675 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6678 if test "$no_x" = yes; then
6679 # Not all programs may use this symbol, but it does not hurt to define it.
6681 cat >>confdefs.h
<<\_ACEOF
6682 #define X_DISPLAY_MISSING 1
6685 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6687 if test -n "$x_includes"; then
6688 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6691 # It would also be nice to do this for all -L options, not just this one.
6692 if test -n "$x_libraries"; then
6693 X_LIBS
="$X_LIBS -L$x_libraries"
6694 # For Solaris; some versions of Sun CC require a space after -R and
6695 # others require no space. Words are not sufficient . . . .
6696 case `(uname -sr) 2>/dev/null` in
6698 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6699 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6700 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6701 if test x
$gcc_no_link = xyes
; then
6702 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6704 { (exit 1); exit 1; }; }
6706 cat >conftest.
$ac_ext <<_ACEOF
6709 cat confdefs.h
>>conftest.
$ac_ext
6710 cat >>conftest.
$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6721 rm -f conftest.
$ac_objext conftest
$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>conftest.er1
6725 grep -v '^ *+' conftest.er1
>conftest.err
6727 cat conftest.err
>&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
6730 { ac_try
='test -z "$ac_c_werror_flag"
6731 || test ! -s conftest.err'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; } &&
6737 { ac_try
='test -s conftest$ac_exeext'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.
$ac_ext >&5
6750 rm -f conftest.err conftest.
$ac_objext \
6751 conftest
$ac_exeext conftest.
$ac_ext
6752 if test $ac_R_nospace = yes; then
6753 echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6
6755 X_LIBS
="$X_LIBS -R$x_libraries"
6757 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6758 if test x
$gcc_no_link = xyes
; then
6759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6761 { (exit 1); exit 1; }; }
6763 cat >conftest.
$ac_ext <<_ACEOF
6766 cat confdefs.h
>>conftest.
$ac_ext
6767 cat >>conftest.
$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6778 rm -f conftest.
$ac_objext conftest
$ac_exeext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6780 (eval $ac_link) 2>conftest.er1
6782 grep -v '^ *+' conftest.er1
>conftest.err
6784 cat conftest.err
>&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try
='test -z "$ac_c_werror_flag"
6788 || test ! -s conftest.err'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; } &&
6794 { ac_try
='test -s conftest$ac_exeext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.
$ac_ext >&5
6807 rm -f conftest.err conftest.
$ac_objext \
6808 conftest
$ac_exeext conftest.
$ac_ext
6809 if test $ac_R_space = yes; then
6810 echo "$as_me:$LINENO: result: yes" >&5
6811 echo "${ECHO_T}yes" >&6
6812 X_LIBS
="$X_LIBS -R $x_libraries"
6814 echo "$as_me:$LINENO: result: neither works" >&5
6815 echo "${ECHO_T}neither works" >&6
6822 # Check for system-dependent libraries X programs must link with.
6823 # Do this before checking for the system-independent R6 libraries
6824 # (-lICE), since we may need -lsocket or whatever for X linking.
6826 if test "$ISC" = yes; then
6827 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6829 # Martyn Johnson says this is needed for Ultrix, if the X
6830 # libraries were built with DECnet support. And Karl Berry says
6831 # the Alpha needs dnet_stub (dnet does not exist).
6832 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6833 if test x
$gcc_no_link = xyes
; then
6834 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6835 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6836 { (exit 1); exit 1; }; }
6838 cat >conftest.
$ac_ext <<_ACEOF
6841 cat confdefs.h
>>conftest.
$ac_ext
6842 cat >>conftest.
$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6845 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851 char XOpenDisplay ();
6860 rm -f conftest.
$ac_objext conftest
$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862 (eval $ac_link) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1
>conftest.err
6866 cat conftest.err
>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try
='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try
='test -s conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.
$ac_ext >&5
6887 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6888 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6889 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 ac_check_lib_save_LIBS
=$LIBS
6894 if test x
$gcc_no_link = xyes
; then
6895 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6896 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6897 { (exit 1); exit 1; }; }
6899 cat >conftest.
$ac_ext <<_ACEOF
6902 cat confdefs.h
>>conftest.
$ac_ext
6903 cat >>conftest.
$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6906 /* Override any gcc2 internal prototype to avoid an error. */
6910 /* We use char because int might match the return type of a gcc2
6911 builtin and then its argument prototype would still apply. */
6921 rm -f conftest.
$ac_objext conftest
$ac_exeext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923 (eval $ac_link) 2>conftest.er1
6925 grep -v '^ *+' conftest.er1
>conftest.err
6927 cat conftest.err
>&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
6930 { ac_try
='test -z "$ac_c_werror_flag"
6931 || test ! -s conftest.err'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; } &&
6937 { ac_try
='test -s conftest$ac_exeext'
6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; }; then
6943 ac_cv_lib_dnet_dnet_ntoa
=yes
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.
$ac_ext >&5
6948 ac_cv_lib_dnet_dnet_ntoa
=no
6950 rm -f conftest.err conftest.
$ac_objext \
6951 conftest
$ac_exeext conftest.
$ac_ext
6952 LIBS
=$ac_check_lib_save_LIBS
6954 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6955 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6956 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6957 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6960 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6961 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6962 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6963 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 ac_check_lib_save_LIBS
=$LIBS
6967 LIBS
="-ldnet_stub $LIBS"
6968 if test x
$gcc_no_link = xyes
; then
6969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6971 { (exit 1); exit 1; }; }
6973 cat >conftest.
$ac_ext <<_ACEOF
6976 cat confdefs.h
>>conftest.
$ac_ext
6977 cat >>conftest.
$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6980 /* Override any gcc2 internal prototype to avoid an error. */
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6995 rm -f conftest.
$ac_objext conftest
$ac_exeext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>conftest.er1
6999 grep -v '^ *+' conftest.er1
>conftest.err
7001 cat conftest.err
>&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try
='test -z "$ac_c_werror_flag"
7005 || test ! -s conftest.err'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
7011 { ac_try
='test -s conftest$ac_exeext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.
$ac_ext >&5
7022 ac_cv_lib_dnet_stub_dnet_ntoa
=no
7024 rm -f conftest.err conftest.
$ac_objext \
7025 conftest
$ac_exeext conftest.
$ac_ext
7026 LIBS
=$ac_check_lib_save_LIBS
7028 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7029 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7030 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7031 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
7036 rm -f conftest.err conftest.
$ac_objext \
7037 conftest
$ac_exeext conftest.
$ac_ext
7038 LIBS
="$ac_xsave_LIBS"
7040 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7041 # to get the SysV transport functions.
7042 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7044 # The nsl library prevents programs from opening the X display
7045 # on Irix 5.2, according to T.E. Dickey.
7046 # The functions gethostbyname, getservbyname, and inet_addr are
7047 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7048 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7049 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7050 if test "${ac_cv_func_gethostbyname+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 if test x
$gcc_no_link = xyes
; then
7054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7056 { (exit 1); exit 1; }; }
7058 cat >conftest.
$ac_ext <<_ACEOF
7061 cat confdefs.h
>>conftest.
$ac_ext
7062 cat >>conftest.
$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7066 #define gethostbyname innocuous_gethostbyname
7068 /* System header to define __stub macros and hopefully few prototypes,
7069 which can conflict with char gethostbyname (); below.
7070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071 <limits.h> exists even on freestanding compilers. */
7074 # include <limits.h>
7076 # include <assert.h>
7079 #undef gethostbyname
7081 /* Override any gcc2 internal prototype to avoid an error. */
7086 /* We use char because int might match the return type of a gcc2
7087 builtin and then its argument prototype would still apply. */
7088 char gethostbyname ();
7089 /* The GNU C library defines this for functions which it implements
7090 to always fail with ENOSYS. Some functions are actually named
7091 something starting with __ and the normal name is an alias. */
7092 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7095 char (*f) () = gethostbyname;
7104 return f != gethostbyname;
7109 rm -f conftest.
$ac_objext conftest
$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>conftest.er1
7113 grep -v '^ *+' conftest.er1
>conftest.err
7115 cat conftest.err
>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try
='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try
='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_func_gethostbyname
=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.
$ac_ext >&5
7136 ac_cv_func_gethostbyname
=no
7138 rm -f conftest.err conftest.
$ac_objext \
7139 conftest
$ac_exeext conftest.
$ac_ext
7141 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7142 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7144 if test $ac_cv_func_gethostbyname = no
; then
7145 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7146 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7147 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_check_lib_save_LIBS
=$LIBS
7152 if test x
$gcc_no_link = xyes
; then
7153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7155 { (exit 1); exit 1; }; }
7157 cat >conftest.
$ac_ext <<_ACEOF
7160 cat confdefs.h
>>conftest.
$ac_ext
7161 cat >>conftest.
$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7164 /* Override any gcc2 internal prototype to avoid an error. */
7168 /* We use char because int might match the return type of a gcc2
7169 builtin and then its argument prototype would still apply. */
7170 char gethostbyname ();
7179 rm -f conftest.
$ac_objext conftest
$ac_exeext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181 (eval $ac_link) 2>conftest.er1
7183 grep -v '^ *+' conftest.er1
>conftest.err
7185 cat conftest.err
>&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try
='test -z "$ac_c_werror_flag"
7189 || test ! -s conftest.err'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; } &&
7195 { ac_try
='test -s conftest$ac_exeext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 ac_cv_lib_nsl_gethostbyname
=yes
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.
$ac_ext >&5
7206 ac_cv_lib_nsl_gethostbyname
=no
7208 rm -f conftest.err conftest.
$ac_objext \
7209 conftest
$ac_exeext conftest.
$ac_ext
7210 LIBS
=$ac_check_lib_save_LIBS
7212 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7213 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7214 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7215 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
7218 if test $ac_cv_lib_nsl_gethostbyname = no
; then
7219 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7220 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7221 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 ac_check_lib_save_LIBS
=$LIBS
7226 if test x
$gcc_no_link = xyes
; then
7227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7229 { (exit 1); exit 1; }; }
7231 cat >conftest.
$ac_ext <<_ACEOF
7234 cat confdefs.h
>>conftest.
$ac_ext
7235 cat >>conftest.
$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7238 /* Override any gcc2 internal prototype to avoid an error. */
7242 /* We use char because int might match the return type of a gcc2
7243 builtin and then its argument prototype would still apply. */
7244 char gethostbyname ();
7253 rm -f conftest.
$ac_objext conftest
$ac_exeext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255 (eval $ac_link) 2>conftest.er1
7257 grep -v '^ *+' conftest.er1
>conftest.err
7259 cat conftest.err
>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
7262 { ac_try
='test -z "$ac_c_werror_flag"
7263 || test ! -s conftest.err'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; } &&
7269 { ac_try
='test -s conftest$ac_exeext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 ac_cv_lib_bsd_gethostbyname
=yes
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.
$ac_ext >&5
7280 ac_cv_lib_bsd_gethostbyname
=no
7282 rm -f conftest.err conftest.
$ac_objext \
7283 conftest
$ac_exeext conftest.
$ac_ext
7284 LIBS
=$ac_check_lib_save_LIBS
7286 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7287 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7288 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7289 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7295 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7296 # socket/setsockopt and other routines are undefined under SCO ODT
7297 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7298 # on later versions), says Simon Leinen: it contains gethostby*
7299 # variants that don't use the name server (or something). -lsocket
7300 # must be given before -lnsl if both are needed. We assume that
7301 # if connect needs -lnsl, so does gethostbyname.
7302 echo "$as_me:$LINENO: checking for connect" >&5
7303 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7304 if test "${ac_cv_func_connect+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 if test x
$gcc_no_link = xyes
; then
7308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7310 { (exit 1); exit 1; }; }
7312 cat >conftest.
$ac_ext <<_ACEOF
7315 cat confdefs.h
>>conftest.
$ac_ext
7316 cat >>conftest.
$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7320 #define connect innocuous_connect
7322 /* System header to define __stub macros and hopefully few prototypes,
7323 which can conflict with char connect (); below.
7324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325 <limits.h> exists even on freestanding compilers. */
7328 # include <limits.h>
7330 # include <assert.h>
7335 /* Override any gcc2 internal prototype to avoid an error. */
7340 /* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7343 /* The GNU C library defines this for functions which it implements
7344 to always fail with ENOSYS. Some functions are actually named
7345 something starting with __ and the normal name is an alias. */
7346 #if defined (__stub_connect) || defined (__stub___connect)
7349 char (*f) () = connect;
7358 return f != connect;
7363 rm -f conftest.
$ac_objext conftest
$ac_exeext
7364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365 (eval $ac_link) 2>conftest.er1
7367 grep -v '^ *+' conftest.er1
>conftest.err
7369 cat conftest.err
>&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try
='test -z "$ac_c_werror_flag"
7373 || test ! -s conftest.err'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; } &&
7379 { ac_try
='test -s conftest$ac_exeext'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 ac_cv_func_connect
=yes
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.
$ac_ext >&5
7390 ac_cv_func_connect
=no
7392 rm -f conftest.err conftest.
$ac_objext \
7393 conftest
$ac_exeext conftest.
$ac_ext
7395 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7396 echo "${ECHO_T}$ac_cv_func_connect" >&6
7398 if test $ac_cv_func_connect = no
; then
7399 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7400 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7401 if test "${ac_cv_lib_socket_connect+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 ac_check_lib_save_LIBS
=$LIBS
7405 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
7406 if test x
$gcc_no_link = xyes
; then
7407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7409 { (exit 1); exit 1; }; }
7411 cat >conftest.
$ac_ext <<_ACEOF
7414 cat confdefs.h
>>conftest.
$ac_ext
7415 cat >>conftest.
$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7418 /* Override any gcc2 internal prototype to avoid an error. */
7422 /* We use char because int might match the return type of a gcc2
7423 builtin and then its argument prototype would still apply. */
7433 rm -f conftest.
$ac_objext conftest
$ac_exeext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 (eval $ac_link) 2>conftest.er1
7437 grep -v '^ *+' conftest.er1
>conftest.err
7439 cat conftest.err
>&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try
='test -z "$ac_c_werror_flag"
7443 || test ! -s conftest.err'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; } &&
7449 { ac_try
='test -s conftest$ac_exeext'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 ac_cv_lib_socket_connect
=yes
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.
$ac_ext >&5
7460 ac_cv_lib_socket_connect
=no
7462 rm -f conftest.err conftest.
$ac_objext \
7463 conftest
$ac_exeext conftest.
$ac_ext
7464 LIBS
=$ac_check_lib_save_LIBS
7466 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7467 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7468 if test $ac_cv_lib_socket_connect = yes; then
7469 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7474 # Guillermo Gomez says -lposix is necessary on A/UX.
7475 echo "$as_me:$LINENO: checking for remove" >&5
7476 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7477 if test "${ac_cv_func_remove+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 if test x
$gcc_no_link = xyes
; then
7481 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7483 { (exit 1); exit 1; }; }
7485 cat >conftest.
$ac_ext <<_ACEOF
7488 cat confdefs.h
>>conftest.
$ac_ext
7489 cat >>conftest.
$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7493 #define remove innocuous_remove
7495 /* System header to define __stub macros and hopefully few prototypes,
7496 which can conflict with char remove (); below.
7497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7498 <limits.h> exists even on freestanding compilers. */
7501 # include <limits.h>
7503 # include <assert.h>
7508 /* Override any gcc2 internal prototype to avoid an error. */
7513 /* We use char because int might match the return type of a gcc2
7514 builtin and then its argument prototype would still apply. */
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined (__stub_remove) || defined (__stub___remove)
7522 char (*f) () = remove;
7536 rm -f conftest.
$ac_objext conftest
$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538 (eval $ac_link) 2>conftest.er1
7540 grep -v '^ *+' conftest.er1
>conftest.err
7542 cat conftest.err
>&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } &&
7545 { ac_try
='test -z "$ac_c_werror_flag"
7546 || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } &&
7552 { ac_try
='test -s conftest$ac_exeext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 ac_cv_func_remove
=yes
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.
$ac_ext >&5
7563 ac_cv_func_remove
=no
7565 rm -f conftest.err conftest.
$ac_objext \
7566 conftest
$ac_exeext conftest.
$ac_ext
7568 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7569 echo "${ECHO_T}$ac_cv_func_remove" >&6
7571 if test $ac_cv_func_remove = no
; then
7572 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7573 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7574 if test "${ac_cv_lib_posix_remove+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 ac_check_lib_save_LIBS
=$LIBS
7578 LIBS
="-lposix $LIBS"
7579 if test x
$gcc_no_link = xyes
; then
7580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7582 { (exit 1); exit 1; }; }
7584 cat >conftest.
$ac_ext <<_ACEOF
7587 cat confdefs.h
>>conftest.
$ac_ext
7588 cat >>conftest.
$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7591 /* Override any gcc2 internal prototype to avoid an error. */
7595 /* We use char because int might match the return type of a gcc2
7596 builtin and then its argument prototype would still apply. */
7606 rm -f conftest.
$ac_objext conftest
$ac_exeext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608 (eval $ac_link) 2>conftest.er1
7610 grep -v '^ *+' conftest.er1
>conftest.err
7612 cat conftest.err
>&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try
='test -z "$ac_c_werror_flag"
7616 || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try
='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_lib_posix_remove
=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.
$ac_ext >&5
7633 ac_cv_lib_posix_remove
=no
7635 rm -f conftest.err conftest.
$ac_objext \
7636 conftest
$ac_exeext conftest.
$ac_ext
7637 LIBS
=$ac_check_lib_save_LIBS
7639 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7640 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7641 if test $ac_cv_lib_posix_remove = yes; then
7642 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7647 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7648 echo "$as_me:$LINENO: checking for shmat" >&5
7649 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7650 if test "${ac_cv_func_shmat+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7664 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7666 #define shmat innocuous_shmat
7668 /* System header to define __stub macros and hopefully few prototypes,
7669 which can conflict with char shmat (); below.
7670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7671 <limits.h> exists even on freestanding compilers. */
7674 # include <limits.h>
7676 # include <assert.h>
7681 /* Override any gcc2 internal prototype to avoid an error. */
7686 /* We use char because int might match the return type of a gcc2
7687 builtin and then its argument prototype would still apply. */
7689 /* The GNU C library defines this for functions which it implements
7690 to always fail with ENOSYS. Some functions are actually named
7691 something starting with __ and the normal name is an alias. */
7692 #if defined (__stub_shmat) || defined (__stub___shmat)
7695 char (*f) () = shmat;
7709 rm -f conftest.
$ac_objext conftest
$ac_exeext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>conftest.er1
7713 grep -v '^ *+' conftest.er1
>conftest.err
7715 cat conftest.err
>&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try
='test -z "$ac_c_werror_flag"
7719 || test ! -s conftest.err'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try
='test -s conftest$ac_exeext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_func_shmat
=yes
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.
$ac_ext >&5
7738 rm -f conftest.err conftest.
$ac_objext \
7739 conftest
$ac_exeext conftest.
$ac_ext
7741 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7742 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7744 if test $ac_cv_func_shmat = no
; then
7745 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7746 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7747 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 ac_check_lib_save_LIBS
=$LIBS
7752 if test x
$gcc_no_link = xyes
; then
7753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7754 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7755 { (exit 1); exit 1; }; }
7757 cat >conftest.
$ac_ext <<_ACEOF
7760 cat confdefs.h
>>conftest.
$ac_ext
7761 cat >>conftest.
$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7764 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7779 rm -f conftest.
$ac_objext conftest
$ac_exeext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7781 (eval $ac_link) 2>conftest.er1
7783 grep -v '^ *+' conftest.er1
>conftest.err
7785 cat conftest.err
>&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try
='test -z "$ac_c_werror_flag"
7789 || test ! -s conftest.err'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; } &&
7795 { ac_try
='test -s conftest$ac_exeext'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7801 ac_cv_lib_ipc_shmat
=yes
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.
$ac_ext >&5
7806 ac_cv_lib_ipc_shmat
=no
7808 rm -f conftest.err conftest.
$ac_objext \
7809 conftest
$ac_exeext conftest.
$ac_ext
7810 LIBS
=$ac_check_lib_save_LIBS
7812 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7813 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7814 if test $ac_cv_lib_ipc_shmat = yes; then
7815 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7821 # Check for libraries that X11R6 Xt/Xaw programs need.
7822 ac_save_LDFLAGS
=$LDFLAGS
7823 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7824 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7825 # check for ICE first), but we must link in the order -lSM -lICE or
7826 # we get undefined symbols. So assume we have SM if we have ICE.
7827 # These have to be linked with before -lX11, unlike the other
7828 # libraries we check for below, so use a different variable.
7829 # John Interrante, Karl Berry
7830 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7831 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7832 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_check_lib_save_LIBS
=$LIBS
7836 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7837 if test x
$gcc_no_link = xyes
; then
7838 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7839 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7840 { (exit 1); exit 1; }; }
7842 cat >conftest.
$ac_ext <<_ACEOF
7845 cat confdefs.h
>>conftest.
$ac_ext
7846 cat >>conftest.
$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7849 /* Override any gcc2 internal prototype to avoid an error. */
7853 /* We use char because int might match the return type of a gcc2
7854 builtin and then its argument prototype would still apply. */
7855 char IceConnectionNumber ();
7859 IceConnectionNumber ();
7864 rm -f conftest.
$ac_objext conftest
$ac_exeext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7866 (eval $ac_link) 2>conftest.er1
7868 grep -v '^ *+' conftest.er1
>conftest.err
7870 cat conftest.err
>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try
='test -z "$ac_c_werror_flag"
7874 || test ! -s conftest.err'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; } &&
7880 { ac_try
='test -s conftest$ac_exeext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_cv_lib_ICE_IceConnectionNumber
=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.
$ac_ext >&5
7891 ac_cv_lib_ICE_IceConnectionNumber
=no
7893 rm -f conftest.err conftest.
$ac_objext \
7894 conftest
$ac_exeext conftest.
$ac_ext
7895 LIBS
=$ac_check_lib_save_LIBS
7897 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7898 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7899 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7900 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
7903 LDFLAGS
=$ac_save_LDFLAGS
7908 # Determine which AWT peer libraries to build
7909 # Check whether --enable-java-awt or --disable-java-awt was given.
7910 if test "${enable_java_awt+set}" = set; then
7911 enableval
="$enable_java_awt"
7915 peerlibs
="`echo ${enable_java_awt} | tr ',' ' '`"
7918 # The default toolkit to use is the first one specified.
7922 for peer
in $peerlibs ; do
7925 if test "$no_x" = yes; then
7926 echo "*** xlib peers requested but no X library available" 1>&2
7930 if test -z "$TOOLKIT"; then
7931 TOOLKIT
=gnu.awt.xlib.XToolkit
7936 if test "$no_x" = yes; then
7937 echo "*** xlib peers requested but no X library available" 1>&2
7941 if test -z "$TOOLKIT"; then
7942 TOOLKIT
=gnu.java.awt.peer.gtk.GtkToolkit
7944 test -d jniinclude || mkdir jniinclude
7953 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7960 if test "$use_xlib_awt" = yes; then
7970 if test "$use_gtk_awt" = yes; then
7979 # determine whether to enable the cairo GTK Graphics2D backend
7980 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7981 if test "${enable_gtk_cairo+set}" = set; then
7982 enableval
="$enable_gtk_cairo"
7987 if test "x${enable_gtk_cairo}" = xyes
; then
7995 if test "x${enable_gtk_cairo}" = xyes
8000 if test -z "$PKG_CONFIG"; then
8001 # Extract the first word of "pkg-config", so it can be a program name with args.
8002 set dummy pkg-config
; ac_word
=$2
8003 echo "$as_me:$LINENO: checking for $ac_word" >&5
8004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8005 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8017 test -z "$as_dir" && as_dir
=.
8018 for ac_exec_ext
in '' $ac_executable_extensions; do
8019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8031 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8033 if test -n "$PKG_CONFIG"; then
8034 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8035 echo "${ECHO_T}$PKG_CONFIG" >&6
8037 echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6
8043 if test "$PKG_CONFIG" = "no" ; then
8044 echo "*** The pkg-config script could not be found. Make sure it is"
8045 echo "*** in your path, or set the PKG_CONFIG environment variable"
8046 echo "*** to the full path to pkg-config."
8047 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8049 PKG_CONFIG_MIN_VERSION
=0.9.0
8050 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8051 echo "$as_me:$LINENO: checking for cairo" >&5
8052 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8054 if $PKG_CONFIG --exists "cairo" ; then
8055 echo "$as_me:$LINENO: result: yes" >&5
8056 echo "${ECHO_T}yes" >&6
8059 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8060 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8061 CAIRO_CFLAGS
=`$PKG_CONFIG --cflags "cairo"`
8062 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8063 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8065 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8066 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8067 CAIRO_LIBS
=`$PKG_CONFIG --libs "cairo"`
8068 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8069 echo "${ECHO_T}$CAIRO_LIBS" >&6
8073 ## If we have a custom action on failure, don't print errors, but
8074 ## do set a variable so people can do so.
8075 CAIRO_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8076 echo $CAIRO_PKG_ERRORS
8082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8087 if test $succeeded = yes; then
8090 { { 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
8091 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;}
8092 { (exit 1); exit 1; }; }
8098 if test -z "$PKG_CONFIG"; then
8099 # Extract the first word of "pkg-config", so it can be a program name with args.
8100 set dummy pkg-config
; ac_word
=$2
8101 echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8103 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8115 test -z "$as_dir" && as_dir
=.
8116 for ac_exec_ext
in '' $ac_executable_extensions; do
8117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8129 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8131 if test -n "$PKG_CONFIG"; then
8132 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8133 echo "${ECHO_T}$PKG_CONFIG" >&6
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8141 if test "$PKG_CONFIG" = "no" ; then
8142 echo "*** The pkg-config script could not be found. Make sure it is"
8143 echo "*** in your path, or set the PKG_CONFIG environment variable"
8144 echo "*** to the full path to pkg-config."
8145 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8147 PKG_CONFIG_MIN_VERSION
=0.9.0
8148 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8149 echo "$as_me:$LINENO: checking for pangoft2" >&5
8150 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8152 if $PKG_CONFIG --exists "pangoft2" ; then
8153 echo "$as_me:$LINENO: result: yes" >&5
8154 echo "${ECHO_T}yes" >&6
8157 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8158 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8159 PANGOFT2_CFLAGS
=`$PKG_CONFIG --cflags "pangoft2"`
8160 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8161 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8163 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8164 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8165 PANGOFT2_LIBS
=`$PKG_CONFIG --libs "pangoft2"`
8166 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8167 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8171 ## If we have a custom action on failure, don't print errors, but
8172 ## do set a variable so people can do so.
8173 PANGOFT2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8174 echo $PANGOFT2_PKG_ERRORS
8180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8185 if test $succeeded = yes; then
8188 { { 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
8189 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;}
8190 { (exit 1); exit 1; }; }
8199 # FIXME: this should be _libs on some hosts.
8202 # Allow the GC to be disabled. Can be useful when debugging.
8203 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8204 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8205 # Check whether --enable-java-gc or --disable-java-gc was given.
8206 if test "${enable_java_gc+set}" = set; then
8207 enableval
="$enable_java_gc"
8220 echo "$as_me:$LINENO: result: boehm" >&5
8221 echo "${ECHO_T}boehm" >&6
8222 GCLIBS
=..
/boehm-gc
/libgcjgc_convenience.la
8223 JC1GCSPEC
='-fuse-boehm-gc'
8224 GCTESTSPEC
="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8225 GCINCS
='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8228 # The POSIX thread support needs to know this.
8230 cat >>confdefs.h
<<\_ACEOF
8231 #define HAVE_BOEHM_GC 1
8236 echo "$as_me:$LINENO: result: none" >&5
8237 echo "${ECHO_T}none" >&6
8241 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8242 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8243 { (exit 1); exit 1; }; }
8252 ac_config_links
="$ac_config_links include/java-gc.h:include/$GCHDR"
8256 if test "$GC" = boehm
; then
8258 USING_BOEHMGC_FALSE
='#'
8260 USING_BOEHMGC_TRUE
='#'
8261 USING_BOEHMGC_FALSE
=
8266 if test "$GC" = no
; then
8268 USING_NOGC_FALSE
='#'
8276 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8277 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8278 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8279 echo "$as_me:$LINENO: result: $THREADS" >&5
8280 echo "${ECHO_T}$THREADS" >&6
8291 cat >>confdefs.h
<<\_ACEOF
8292 #define LINUX_THREADS 1
8300 decosf1 | irix | mach | os2 | solaris | dce | vxworks
)
8301 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8302 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8303 { (exit 1); exit 1; }; }
8306 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8307 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8308 { (exit 1); exit 1; }; }
8323 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8326 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8327 # merely adds pthread_* functions) but it does have a -pthread switch
8328 # which is required at link-time to select -lc_r *instead* of -lc.
8329 THREADLDFLAGS
=-pthread
8330 # Don't set THREADSPEC here as might be expected since -pthread is
8331 # not processed when found within a spec file, it must come from
8332 # the command line. For now, the user must provide the -pthread
8333 # switch to link code compiled with gcj. In future, consider adding
8334 # support for weak references to pthread_* functions ala gthr.h API.
8335 THREADSPEC
='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
8338 # FreeBSD 5 implements a model much closer to other modern UNIX
8339 # which support threads. However, it still does not support
8341 THREADLDFLAGS
=-pthread
8345 THREADCXXFLAGS
=-pthread
8346 # boehm-gc needs some functions from librt, so link that too.
8347 THREADLIBS
='-lpthread -lrt'
8348 THREADSPEC
='-lpthread -lrt'
8351 THREADLIBS
=-lpthread
8352 THREADSPEC
=-lpthread
8355 THREADH
=posix-threads.h
8356 # MIT pthreads doesn't seem to have the mutexattr functions.
8357 # But for now we don't check for it. We just assume you aren't
8358 # using MIT pthreads.
8360 cat >>confdefs.h
<<\_ACEOF
8361 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8365 # If we're using the Boehm GC, then we happen to know that it
8366 # defines _REENTRANT, so we don't bother. Eww.
8367 if test "$GC" != boehm
; then
8369 cat >>confdefs.h
<<\_ACEOF
8370 #define _REENTRANT 1
8375 cat >>confdefs.h
<<\_ACEOF
8376 #define _POSIX_PTHREAD_SEMANTICS 1
8382 THREADH
=win32-threads.h
8386 THREADH
=no-threads.h
8389 ac_config_links
="$ac_config_links include/java-threads.h:include/$THREADH"
8399 if test "$THREADS" = posix
; then
8400 USING_POSIX_THREADS_TRUE
=
8401 USING_POSIX_THREADS_FALSE
='#'
8403 USING_POSIX_THREADS_TRUE
='#'
8404 USING_POSIX_THREADS_FALSE
=
8409 if test "$THREADS" = win32
; then
8410 USING_WIN32_THREADS_TRUE
=
8411 USING_WIN32_THREADS_FALSE
='#'
8413 USING_WIN32_THREADS_TRUE
='#'
8414 USING_WIN32_THREADS_FALSE
=
8419 if test "$THREADS" = none
; then
8420 USING_NO_THREADS_TRUE
=
8421 USING_NO_THREADS_FALSE
='#'
8423 USING_NO_THREADS_TRUE
='#'
8424 USING_NO_THREADS_FALSE
=
8428 if test -d sysdep
; then true
; else mkdir sysdep
; fi
8429 ac_config_links
="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8433 # Hash synchronization is only useful with posix threads right now.
8434 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8435 HASH_SYNC_SPEC
=-fhash-synchronization
8437 cat >>confdefs.h
<<\_ACEOF
8438 #define JV_HASH_SYNCHRONIZATION 1
8447 if test "$GCC" = yes; then
8456 # We're in the tree with gcc, and need to include some of its headers.
8457 GCC_UNWIND_INCLUDE
='-I$(libgcj_basedir)/../gcc'
8459 # Figure out where generated headers like libgcj-config.h get installed.
8460 gcc_version_trigger
=${libgcj_basedir}/..
/gcc
/version.c
8461 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8462 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8463 tool_include_dir
='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8467 if test "x${with_newlib}" = "xyes"; then
8468 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8469 # may not work correctly, because the compiler may not be able to
8472 # We assume newlib. This lets us hard-code the functions we know
8475 cat >>confdefs.h
<<\_ACEOF
8476 #define HAVE_MEMMOVE 1
8480 cat >>confdefs.h
<<\_ACEOF
8481 #define HAVE_MEMCPY 1
8485 cat >>confdefs.h
<<\_ACEOF
8486 #define HAVE_STRERROR 1
8490 cat >>confdefs.h
<<\_ACEOF
8495 cat >>confdefs.h
<<\_ACEOF
8496 #define HAVE_GMTIME_R 1
8500 cat >>confdefs.h
<<\_ACEOF
8501 #define HAVE_LOCALTIME_R 1
8505 cat >>confdefs.h
<<\_ACEOF
8506 #define HAVE_USLEEP_DECL 1
8509 # This is only for POSIX threads.
8511 cat >>confdefs.h
<<\_ACEOF
8512 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8515 # We also assume we are using gcc, which provides alloca.
8516 cat >>confdefs.h
<<\_ACEOF
8517 #define HAVE_ALLOCA 1
8521 # Assume we do not have getuid and friends.
8523 cat >>confdefs.h
<<\_ACEOF
8537 for ac_func
in strerror ioctl
select fstat open fsync
sleep opendir
8539 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8540 echo "$as_me:$LINENO: checking for $ac_func" >&5
8541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8542 if eval "test \"\${$as_ac_var+set}\" = set"; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 if test x
$gcc_no_link = xyes
; then
8546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8548 { (exit 1); exit 1; }; }
8550 cat >conftest.
$ac_ext <<_ACEOF
8553 cat confdefs.h
>>conftest.
$ac_ext
8554 cat >>conftest.
$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8558 #define $ac_func innocuous_$ac_func
8560 /* System header to define __stub macros and hopefully few prototypes,
8561 which can conflict with char $ac_func (); below.
8562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8563 <limits.h> exists even on freestanding compilers. */
8566 # include <limits.h>
8568 # include <assert.h>
8573 /* Override any gcc2 internal prototype to avoid an error. */
8578 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8581 /* The GNU C library defines this for functions which it implements
8582 to always fail with ENOSYS. Some functions are actually named
8583 something starting with __ and the normal name is an alias. */
8584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8587 char (*f) () = $ac_func;
8596 return f != $ac_func;
8601 rm -f conftest.
$ac_objext conftest
$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>conftest.er1
8605 grep -v '^ *+' conftest.er1
>conftest.err
8607 cat conftest.err
>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try
='test -z "$ac_c_werror_flag"
8611 || test ! -s conftest.err'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; } &&
8617 { ac_try
='test -s conftest$ac_exeext'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; }; then
8623 eval "$as_ac_var=yes"
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.
$ac_ext >&5
8628 eval "$as_ac_var=no"
8630 rm -f conftest.err conftest.
$ac_objext \
8631 conftest
$ac_exeext conftest.
$ac_ext
8633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8635 if test `eval echo '${'$as_ac_var'}'` = yes; then
8636 cat >>confdefs.h
<<_ACEOF
8637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8648 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8650 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8651 echo "$as_me:$LINENO: checking for $ac_func" >&5
8652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653 if eval "test \"\${$as_ac_var+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 if test x
$gcc_no_link = xyes
; then
8657 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8658 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8659 { (exit 1); exit 1; }; }
8661 cat >conftest.
$ac_ext <<_ACEOF
8664 cat confdefs.h
>>conftest.
$ac_ext
8665 cat >>conftest.
$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8669 #define $ac_func innocuous_$ac_func
8671 /* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func (); below.
8673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674 <limits.h> exists even on freestanding compilers. */
8677 # include <limits.h>
8679 # include <assert.h>
8684 /* Override any gcc2 internal prototype to avoid an error. */
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8692 /* The GNU C library defines this for functions which it implements
8693 to always fail with ENOSYS. Some functions are actually named
8694 something starting with __ and the normal name is an alias. */
8695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8698 char (*f) () = $ac_func;
8707 return f != $ac_func;
8712 rm -f conftest.
$ac_objext conftest
$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8716 grep -v '^ *+' conftest.er1
>conftest.err
8718 cat conftest.err
>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try
='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try
='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 eval "$as_ac_var=yes"
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.
$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.err conftest.
$ac_objext \
8742 conftest
$ac_exeext conftest.
$ac_ext
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747 cat >>confdefs.h
<<_ACEOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8763 for ac_func
in access stat mkdir rename
rmdir unlink realpath utime
chmod
8765 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8766 echo "$as_me:$LINENO: checking for $ac_func" >&5
8767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8768 if eval "test \"\${$as_ac_var+set}\" = set"; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 if test x
$gcc_no_link = xyes
; then
8772 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8773 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8774 { (exit 1); exit 1; }; }
8776 cat >conftest.
$ac_ext <<_ACEOF
8779 cat confdefs.h
>>conftest.
$ac_ext
8780 cat >>conftest.
$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8784 #define $ac_func innocuous_$ac_func
8786 /* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char $ac_func (); below.
8788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 <limits.h> exists even on freestanding compilers. */
8792 # include <limits.h>
8794 # include <assert.h>
8799 /* Override any gcc2 internal prototype to avoid an error. */
8804 /* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8807 /* The GNU C library defines this for functions which it implements
8808 to always fail with ENOSYS. Some functions are actually named
8809 something starting with __ and the normal name is an alias. */
8810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8813 char (*f) () = $ac_func;
8822 return f != $ac_func;
8827 rm -f conftest.
$ac_objext conftest
$ac_exeext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829 (eval $ac_link) 2>conftest.er1
8831 grep -v '^ *+' conftest.er1
>conftest.err
8833 cat conftest.err
>&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try
='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try
='test -s conftest$ac_exeext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 eval "$as_ac_var=yes"
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.
$ac_ext >&5
8854 eval "$as_ac_var=no"
8856 rm -f conftest.err conftest.
$ac_objext \
8857 conftest
$ac_exeext conftest.
$ac_ext
8859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8861 if test `eval echo '${'$as_ac_var'}'` = yes; then
8862 cat >>confdefs.h
<<_ACEOF
8863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8871 for ac_func
in nl_langinfo setlocale
8873 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8874 echo "$as_me:$LINENO: checking for $ac_func" >&5
8875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8876 if eval "test \"\${$as_ac_var+set}\" = set"; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 if test x
$gcc_no_link = xyes
; then
8880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8882 { (exit 1); exit 1; }; }
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8892 #define $ac_func innocuous_$ac_func
8894 /* System header to define __stub macros and hopefully few prototypes,
8895 which can conflict with char $ac_func (); below.
8896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8897 <limits.h> exists even on freestanding compilers. */
8900 # include <limits.h>
8902 # include <assert.h>
8907 /* Override any gcc2 internal prototype to avoid an error. */
8912 /* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8915 /* The GNU C library defines this for functions which it implements
8916 to always fail with ENOSYS. Some functions are actually named
8917 something starting with __ and the normal name is an alias. */
8918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8921 char (*f) () = $ac_func;
8930 return f != $ac_func;
8935 rm -f conftest.
$ac_objext conftest
$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937 (eval $ac_link) 2>conftest.er1
8939 grep -v '^ *+' conftest.er1
>conftest.err
8941 cat conftest.err
>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try
='test -z "$ac_c_werror_flag"
8945 || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try
='test -s conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 eval "$as_ac_var=yes"
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.
$ac_ext >&5
8962 eval "$as_ac_var=no"
8964 rm -f conftest.err conftest.
$ac_objext \
8965 conftest
$ac_exeext conftest.
$ac_ext
8967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8969 if test `eval echo '${'$as_ac_var'}'` = yes; then
8970 cat >>confdefs.h
<<_ACEOF
8971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8979 for ac_func
in inet_aton inet_addr
8981 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8982 echo "$as_me:$LINENO: checking for $ac_func" >&5
8983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8984 if eval "test \"\${$as_ac_var+set}\" = set"; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 if test x
$gcc_no_link = xyes
; then
8988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8990 { (exit 1); exit 1; }; }
8992 cat >conftest.
$ac_ext <<_ACEOF
8995 cat confdefs.h
>>conftest.
$ac_ext
8996 cat >>conftest.
$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9000 #define $ac_func innocuous_$ac_func
9002 /* System header to define __stub macros and hopefully few prototypes,
9003 which can conflict with char $ac_func (); below.
9004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9005 <limits.h> exists even on freestanding compilers. */
9008 # include <limits.h>
9010 # include <assert.h>
9015 /* Override any gcc2 internal prototype to avoid an error. */
9020 /* We use char because int might match the return type of a gcc2
9021 builtin and then its argument prototype would still apply. */
9023 /* The GNU C library defines this for functions which it implements
9024 to always fail with ENOSYS. Some functions are actually named
9025 something starting with __ and the normal name is an alias. */
9026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9029 char (*f) () = $ac_func;
9038 return f != $ac_func;
9043 rm -f conftest.
$ac_objext conftest
$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9047 grep -v '^ *+' conftest.er1
>conftest.err
9049 cat conftest.err
>&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try
='test -z "$ac_c_werror_flag"
9053 || test ! -s conftest.err'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try
='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 eval "$as_ac_var=yes"
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.
$ac_ext >&5
9070 eval "$as_ac_var=no"
9072 rm -f conftest.err conftest.
$ac_objext \
9073 conftest
$ac_exeext conftest.
$ac_ext
9075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9077 if test `eval echo '${'$as_ac_var'}'` = yes; then
9078 cat >>confdefs.h
<<_ACEOF
9079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9088 for ac_func
in inet_pton uname inet_ntoa
9090 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9091 echo "$as_me:$LINENO: checking for $ac_func" >&5
9092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9093 if eval "test \"\${$as_ac_var+set}\" = set"; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 if test x
$gcc_no_link = xyes
; then
9097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9099 { (exit 1); exit 1; }; }
9101 cat >conftest.
$ac_ext <<_ACEOF
9104 cat confdefs.h
>>conftest.
$ac_ext
9105 cat >>conftest.
$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9109 #define $ac_func innocuous_$ac_func
9111 /* System header to define __stub macros and hopefully few prototypes,
9112 which can conflict with char $ac_func (); below.
9113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9114 <limits.h> exists even on freestanding compilers. */
9117 # include <limits.h>
9119 # include <assert.h>
9124 /* Override any gcc2 internal prototype to avoid an error. */
9129 /* We use char because int might match the return type of a gcc2
9130 builtin and then its argument prototype would still apply. */
9132 /* The GNU C library defines this for functions which it implements
9133 to always fail with ENOSYS. Some functions are actually named
9134 something starting with __ and the normal name is an alias. */
9135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9138 char (*f) () = $ac_func;
9147 return f != $ac_func;
9152 rm -f conftest.
$ac_objext conftest
$ac_exeext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9154 (eval $ac_link) 2>conftest.er1
9156 grep -v '^ *+' conftest.er1
>conftest.err
9158 cat conftest.err
>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try
='test -z "$ac_c_werror_flag"
9162 || test ! -s conftest.err'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; } &&
9168 { ac_try
='test -s conftest$ac_exeext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 eval "$as_ac_var=yes"
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.
$ac_ext >&5
9179 eval "$as_ac_var=no"
9181 rm -f conftest.err conftest.
$ac_objext \
9182 conftest
$ac_exeext conftest.
$ac_ext
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9186 if test `eval echo '${'$as_ac_var'}'` = yes; then
9187 cat >>confdefs.h
<<_ACEOF
9188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9199 for ac_func
in fork execvp pipe sigaction ftruncate
9201 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9202 echo "$as_me:$LINENO: checking for $ac_func" >&5
9203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9204 if eval "test \"\${$as_ac_var+set}\" = set"; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 if test x
$gcc_no_link = xyes
; then
9208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9210 { (exit 1); exit 1; }; }
9212 cat >conftest.
$ac_ext <<_ACEOF
9215 cat confdefs.h
>>conftest.
$ac_ext
9216 cat >>conftest.
$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9220 #define $ac_func innocuous_$ac_func
9222 /* System header to define __stub macros and hopefully few prototypes,
9223 which can conflict with char $ac_func (); below.
9224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9225 <limits.h> exists even on freestanding compilers. */
9228 # include <limits.h>
9230 # include <assert.h>
9235 /* Override any gcc2 internal prototype to avoid an error. */
9240 /* We use char because int might match the return type of a gcc2
9241 builtin and then its argument prototype would still apply. */
9243 /* The GNU C library defines this for functions which it implements
9244 to always fail with ENOSYS. Some functions are actually named
9245 something starting with __ and the normal name is an alias. */
9246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9249 char (*f) () = $ac_func;
9258 return f != $ac_func;
9263 rm -f conftest.
$ac_objext conftest
$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>conftest.er1
9267 grep -v '^ *+' conftest.er1
>conftest.err
9269 cat conftest.err
>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try
='test -z "$ac_c_werror_flag"
9273 || test ! -s conftest.err'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try
='test -s conftest$ac_exeext'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 eval "$as_ac_var=yes"
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.
$ac_ext >&5
9290 eval "$as_ac_var=no"
9292 rm -f conftest.err conftest.
$ac_objext \
9293 conftest
$ac_exeext conftest.
$ac_ext
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9297 if test `eval echo '${'$as_ac_var'}'` = yes; then
9298 cat >>confdefs.h
<<_ACEOF
9299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9305 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9307 if test "${ac_cv_header_stdc+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 cat >conftest.
$ac_ext <<_ACEOF
9313 cat confdefs.h
>>conftest.
$ac_ext
9314 cat >>conftest.
$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9329 rm -f conftest.
$ac_objext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9331 (eval $ac_compile) 2>conftest.er1
9333 grep -v '^ *+' conftest.er1
>conftest.err
9335 cat conftest.err
>&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
9338 { ac_try
='test -z "$ac_c_werror_flag"
9339 || test ! -s conftest.err'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; } &&
9345 { ac_try
='test -s conftest.$ac_objext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_header_stdc
=yes
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.
$ac_ext >&5
9356 ac_cv_header_stdc
=no
9358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9360 if test $ac_cv_header_stdc = yes; then
9361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9362 cat >conftest.
$ac_ext <<_ACEOF
9365 cat confdefs.h
>>conftest.
$ac_ext
9366 cat >>conftest.
$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9372 $EGREP "memchr" >/dev
/null
2>&1; then
9375 ac_cv_header_stdc
=no
9381 if test $ac_cv_header_stdc = yes; then
9382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9383 cat >conftest.
$ac_ext <<_ACEOF
9386 cat confdefs.h
>>conftest.
$ac_ext
9387 cat >>conftest.
$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9393 $EGREP "free" >/dev
/null
2>&1; then
9396 ac_cv_header_stdc
=no
9402 if test $ac_cv_header_stdc = yes; then
9403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9404 if test "$cross_compiling" = yes; then
9407 cat >conftest.
$ac_ext <<_ACEOF
9410 cat confdefs.h
>>conftest.
$ac_ext
9411 cat >>conftest.
$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9414 #if ((' ' & 0x0FF) == 0x020)
9415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9418 # define ISLOWER(c) \
9419 (('a' <= (c) && (c) <= 'i') \
9420 || ('j' <= (c) && (c) <= 'r') \
9421 || ('s' <= (c) && (c) <= 'z'))
9422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9430 for (i = 0; i < 256; i++)
9431 if (XOR (islower (i), ISLOWER (i))
9432 || toupper (i) != TOUPPER (i))
9437 rm -f conftest
$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9450 echo "$as_me: program exited with status $ac_status" >&5
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.
$ac_ext >&5
9455 ac_cv_header_stdc
=no
9457 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9462 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9463 if test $ac_cv_header_stdc = yes; then
9465 cat >>confdefs.h
<<\_ACEOF
9466 #define STDC_HEADERS 1
9471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9481 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
9482 inttypes.h stdint.h unistd.h
9484 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9485 echo "$as_me:$LINENO: checking for $ac_header" >&5
9486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 cat >conftest.
$ac_ext <<_ACEOF
9493 cat confdefs.h
>>conftest.
$ac_ext
9494 cat >>conftest.
$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 $ac_includes_default
9498 #include <$ac_header>
9500 rm -f conftest.
$ac_objext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>conftest.er1
9504 grep -v '^ *+' conftest.er1
>conftest.err
9506 cat conftest.err
>&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try
='test -z "$ac_c_werror_flag"
9510 || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try
='test -s conftest.$ac_objext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 eval "$as_ac_Header=yes"
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.
$ac_ext >&5
9527 eval "$as_ac_Header=no"
9529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9534 cat >>confdefs.h
<<_ACEOF
9535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9546 for ac_header
in execinfo.h unistd.h dlfcn.h
9548 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9550 echo "$as_me:$LINENO: checking for $ac_header" >&5
9551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9558 # Is the header compilable?
9559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9561 cat >conftest.
$ac_ext <<_ACEOF
9564 cat confdefs.h
>>conftest.
$ac_ext
9565 cat >>conftest.
$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 $ac_includes_default
9568 #include <$ac_header>
9570 rm -f conftest.
$ac_objext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9572 (eval $ac_compile) 2>conftest.er1
9574 grep -v '^ *+' conftest.er1
>conftest.err
9576 cat conftest.err
>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try
='test -z "$ac_c_werror_flag"
9580 || test ! -s conftest.err'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try
='test -s conftest.$ac_objext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_header_compiler
=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.
$ac_ext >&5
9597 ac_header_compiler
=no
9599 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9601 echo "${ECHO_T}$ac_header_compiler" >&6
9603 # Is the header present?
9604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9606 cat >conftest.
$ac_ext <<_ACEOF
9609 cat confdefs.h
>>conftest.
$ac_ext
9610 cat >>conftest.
$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 #include <$ac_header>
9614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9615 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9617 grep -v '^ *+' conftest.er1
>conftest.err
9619 cat conftest.err
>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } >/dev
/null
; then
9622 if test -s conftest.err
; then
9623 ac_cpp_err
=$ac_c_preproc_warn_flag
9624 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9631 if test -z "$ac_cpp_err"; then
9632 ac_header_preproc
=yes
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.
$ac_ext >&5
9637 ac_header_preproc
=no
9639 rm -f conftest.err conftest.
$ac_ext
9640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9641 echo "${ECHO_T}$ac_header_preproc" >&6
9643 # So? What about this header?
9644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9650 ac_header_preproc
=yes
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9667 ## ---------------------------------- ##
9668 ## Report this to the libjava lists. ##
9669 ## ---------------------------------- ##
9672 sed "s/^/$as_me: WARNING: /" >&2
9675 echo "$as_me:$LINENO: checking for $ac_header" >&5
9676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 eval "$as_ac_Header=\$ac_header_preproc"
9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9687 cat >>confdefs.h
<<_ACEOF
9688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9695 echo "$as_me:$LINENO: checking for backtrace" >&5
9696 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9697 if test "${ac_cv_func_backtrace+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 if test x
$gcc_no_link = xyes
; then
9701 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9702 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9703 { (exit 1); exit 1; }; }
9705 cat >conftest.
$ac_ext <<_ACEOF
9708 cat confdefs.h
>>conftest.
$ac_ext
9709 cat >>conftest.
$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9713 #define backtrace innocuous_backtrace
9715 /* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char backtrace (); below.
9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718 <limits.h> exists even on freestanding compilers. */
9721 # include <limits.h>
9723 # include <assert.h>
9728 /* Override any gcc2 internal prototype to avoid an error. */
9733 /* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9736 /* The GNU C library defines this for functions which it implements
9737 to always fail with ENOSYS. Some functions are actually named
9738 something starting with __ and the normal name is an alias. */
9739 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9742 char (*f) () = backtrace;
9751 return f != backtrace;
9756 rm -f conftest.
$ac_objext conftest
$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
9760 grep -v '^ *+' conftest.er1
>conftest.err
9762 cat conftest.err
>&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try
='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try
='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_cv_func_backtrace
=yes
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.
$ac_ext >&5
9783 ac_cv_func_backtrace
=no
9785 rm -f conftest.err conftest.
$ac_objext \
9786 conftest
$ac_exeext conftest.
$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9789 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9790 if test $ac_cv_func_backtrace = yes; then
9794 # Has broken backtrace()
9797 # Has broken backtrace(), but we supply our own.
9798 if test -d sysdep
; then true
; else mkdir
-p sysdep
; fi
9799 supply_backtrace
=yes
9801 cat >>confdefs.h
<<\_ACEOF
9802 #define HAVE_BACKTRACE 1
9808 cat >>confdefs.h
<<\_ACEOF
9809 #define HAVE_BACKTRACE 1
9819 # Has backtrace() defined in libgcj itself
9821 cat >>confdefs.h
<<\_ACEOF
9822 #define HAVE_BACKTRACE 1
9831 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9832 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9833 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 ac_check_lib_save_LIBS
=$LIBS
9838 if test x
$gcc_no_link = xyes
; then
9839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9841 { (exit 1); exit 1; }; }
9843 cat >conftest.
$ac_ext <<_ACEOF
9846 cat confdefs.h
>>conftest.
$ac_ext
9847 cat >>conftest.
$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9850 /* Override any gcc2 internal prototype to avoid an error. */
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9865 rm -f conftest.
$ac_objext conftest
$ac_exeext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>conftest.er1
9869 grep -v '^ *+' conftest.er1
>conftest.err
9871 cat conftest.err
>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try
='test -z "$ac_c_werror_flag"
9875 || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try
='test -s conftest$ac_exeext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_lib_dl_dladdr
=yes
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.
$ac_ext >&5
9892 ac_cv_lib_dl_dladdr
=no
9894 rm -f conftest.err conftest.
$ac_objext \
9895 conftest
$ac_exeext conftest.
$ac_ext
9896 LIBS
=$ac_check_lib_save_LIBS
9898 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9899 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9900 if test $ac_cv_lib_dl_dladdr = yes; then
9902 if test "x${disable_dladdr}" = "xyes"; then
9907 cat >>confdefs.h
<<\_ACEOF
9908 #define HAVE_DLADDR 1
9915 if test x
"$build" = x
"$host"; then
9916 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9917 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9918 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 test "$cross_compiling" = yes &&
9922 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9923 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9924 { (exit 1); exit 1; }; }
9925 if test -r "/proc/self/exe"; then
9926 ac_cv_file__proc_self_exe
=yes
9928 ac_cv_file__proc_self_exe
=no
9931 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9932 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9933 if test $ac_cv_file__proc_self_exe = yes; then
9935 cat >>confdefs.h
<<_ACEOF
9936 #define HAVE__PROC_SELF_EXE 1
9941 cat >>confdefs.h
<<\_ACEOF
9942 #define HAVE_PROC_SELF_EXE 1
9951 cat >>confdefs.h
<<\_ACEOF
9952 #define HAVE_PROC_SELF_EXE 1
9960 if test "X$prefix" = "XNONE"; then
9961 acl_final_prefix
="$ac_default_prefix"
9963 acl_final_prefix
="$prefix"
9965 if test "X$exec_prefix" = "XNONE"; then
9966 acl_final_exec_prefix
='${prefix}'
9968 acl_final_exec_prefix
="$exec_prefix"
9970 acl_save_prefix
="$prefix"
9971 prefix
="$acl_final_prefix"
9972 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9973 prefix
="$acl_save_prefix"
9976 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9977 if test "${with_gnu_ld+set}" = set; then
9978 withval
="$with_gnu_ld"
9979 test "$withval" = no || with_gnu_ld
=yes
9983 # Prepare PATH_SEPARATOR.
9984 # The user is always right.
9985 if test "${PATH_SEPARATOR+set}" != set; then
9986 echo "#! /bin/sh" >conf$$.sh
9987 echo "exit 0" >>conf$$.sh
9989 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9997 if test "$GCC" = yes; then
9998 # Check if gcc -print-prog-name=ld gives a path.
9999 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10000 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10003 # gcc leaves a trailing carriage return which upsets mingw
10004 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10006 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10009 # Accept absolute paths.
10010 [\\/]* |
[A-Za-z
]:[\\/]*)
10011 re_direlt
='/[^/][^/]*/\.\./'
10012 # Canonicalize the path of ld
10013 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10014 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10015 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10017 test -z "$LD" && LD
="$ac_prog"
10020 # If it fails, then pretend we aren't using GCC.
10024 # If it is relative, then search for the first ld in PATH.
10025 with_gnu_ld
=unknown
10028 elif test "$with_gnu_ld" = yes; then
10029 echo "$as_me:$LINENO: checking for GNU ld" >&5
10030 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10032 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10033 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10035 if test "${acl_cv_path_LD+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 if test -z "$LD"; then
10039 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10040 for ac_dir
in $PATH; do
10041 test -z "$ac_dir" && ac_dir
=.
10042 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10043 acl_cv_path_LD
="$ac_dir/$ac_prog"
10044 # Check to see if the program is GNU ld. I'd rather use --version,
10045 # but apparently some GNU ld's only accept -v.
10046 # Break only if it was the GNU/non-GNU ld that we prefer.
10047 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10048 test "$with_gnu_ld" != no
&& break
10050 test "$with_gnu_ld" != yes && break
10056 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10060 LD
="$acl_cv_path_LD"
10061 if test -n "$LD"; then
10062 echo "$as_me:$LINENO: result: $LD" >&5
10063 echo "${ECHO_T}$LD" >&6
10065 echo "$as_me:$LINENO: result: no" >&5
10066 echo "${ECHO_T}no" >&6
10068 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10069 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10070 { (exit 1); exit 1; }; }
10071 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10072 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10073 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10077 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10078 acl_cv_prog_gnu_ld
=yes
10080 acl_cv_prog_gnu_ld
=no
10083 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10084 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10085 with_gnu_ld
=$acl_cv_prog_gnu_ld
10089 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10090 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10091 if test "${acl_cv_rpath+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10096 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10098 rm -f .
/conftest.sh
10102 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10103 echo "${ECHO_T}$acl_cv_rpath" >&6
10105 libext
="$acl_cv_libext"
10106 shlibext
="$acl_cv_shlibext"
10107 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10108 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10109 hardcode_direct
="$acl_cv_hardcode_direct"
10110 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10111 # Check whether --enable-rpath or --disable-rpath was given.
10112 if test "${enable_rpath+set}" = set; then
10113 enableval
="$enable_rpath"
10127 acl_save_prefix
="$prefix"
10128 prefix
="$acl_final_prefix"
10129 acl_save_exec_prefix
="$exec_prefix"
10130 exec_prefix
="$acl_final_exec_prefix"
10132 eval additional_includedir
=\"$includedir\"
10133 eval additional_libdir
=\"$libdir\"
10135 exec_prefix
="$acl_save_exec_prefix"
10136 prefix
="$acl_save_prefix"
10139 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10140 if test "${with_libiconv_prefix+set}" = set; then
10141 withval
="$with_libiconv_prefix"
10143 if test "X$withval" = "Xno"; then
10146 if test "X$withval" = "X"; then
10148 acl_save_prefix
="$prefix"
10149 prefix
="$acl_final_prefix"
10150 acl_save_exec_prefix
="$exec_prefix"
10151 exec_prefix
="$acl_final_exec_prefix"
10153 eval additional_includedir
=\"$includedir\"
10154 eval additional_libdir
=\"$libdir\"
10156 exec_prefix
="$acl_save_exec_prefix"
10157 prefix
="$acl_save_prefix"
10160 additional_includedir
="$withval/include"
10161 additional_libdir
="$withval/lib"
10171 names_already_handled
=
10172 names_next_round
='iconv '
10173 while test -n "$names_next_round"; do
10174 names_this_round
="$names_next_round"
10176 for name
in $names_this_round; do
10178 for n
in $names_already_handled; do
10179 if test "$n" = "$name"; then
10180 already_handled
=yes
10184 if test -z "$already_handled"; then
10185 names_already_handled
="$names_already_handled $name"
10186 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10187 eval value
=\"\
$HAVE_LIB$uppername\"
10188 if test -n "$value"; then
10189 if test "$value" = yes; then
10190 eval value
=\"\
$LIB$uppername\"
10191 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10192 eval value
=\"\
$LTLIB$uppername\"
10193 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10202 if test $use_additional = yes; then
10203 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10204 found_dir
="$additional_libdir"
10205 found_so
="$additional_libdir/lib$name.$shlibext"
10206 if test -f "$additional_libdir/lib$name.la"; then
10207 found_la
="$additional_libdir/lib$name.la"
10210 if test -f "$additional_libdir/lib$name.$libext"; then
10211 found_dir
="$additional_libdir"
10212 found_a
="$additional_libdir/lib$name.$libext"
10213 if test -f "$additional_libdir/lib$name.la"; then
10214 found_la
="$additional_libdir/lib$name.la"
10219 if test "X$found_dir" = "X"; then
10220 for x
in $LDFLAGS $LTLIBICONV; do
10222 acl_save_prefix
="$prefix"
10223 prefix
="$acl_final_prefix"
10224 acl_save_exec_prefix
="$exec_prefix"
10225 exec_prefix
="$acl_final_exec_prefix"
10227 exec_prefix
="$acl_save_exec_prefix"
10228 prefix
="$acl_save_prefix"
10232 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10233 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10235 found_so
="$dir/lib$name.$shlibext"
10236 if test -f "$dir/lib$name.la"; then
10237 found_la
="$dir/lib$name.la"
10240 if test -f "$dir/lib$name.$libext"; then
10242 found_a
="$dir/lib$name.$libext"
10243 if test -f "$dir/lib$name.la"; then
10244 found_la
="$dir/lib$name.la"
10250 if test "X$found_dir" != "X"; then
10255 if test "X$found_dir" != "X"; then
10256 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10257 if test "X$found_so" != "X"; then
10258 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10259 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10262 for x
in $ltrpathdirs; do
10263 if test "X$x" = "X$found_dir"; then
10268 if test -z "$haveit"; then
10269 ltrpathdirs
="$ltrpathdirs $found_dir"
10271 if test "$hardcode_direct" = yes; then
10272 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10274 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10275 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10277 for x
in $rpathdirs; do
10278 if test "X$x" = "X$found_dir"; then
10283 if test -z "$haveit"; then
10284 rpathdirs
="$rpathdirs $found_dir"
10288 for x
in $LDFLAGS $LIBICONV; do
10290 acl_save_prefix
="$prefix"
10291 prefix
="$acl_final_prefix"
10292 acl_save_exec_prefix
="$exec_prefix"
10293 exec_prefix
="$acl_final_exec_prefix"
10295 exec_prefix
="$acl_save_exec_prefix"
10296 prefix
="$acl_save_prefix"
10298 if test "X$x" = "X-L$found_dir"; then
10303 if test -z "$haveit"; then
10304 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10306 if test "$hardcode_minus_L" != no
; then
10307 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10309 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10315 if test "X$found_a" != "X"; then
10316 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10318 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10321 additional_includedir
=
10322 case "$found_dir" in
10324 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10325 additional_includedir
="$basedir/include"
10328 if test "X$additional_includedir" != "X"; then
10329 if test "X$additional_includedir" != "X/usr/include"; then
10331 if test "X$additional_includedir" = "X/usr/local/include"; then
10332 if test -n "$GCC"; then
10334 linux
*) haveit
=yes;;
10338 if test -z "$haveit"; then
10339 for x
in $CPPFLAGS $INCICONV; do
10341 acl_save_prefix
="$prefix"
10342 prefix
="$acl_final_prefix"
10343 acl_save_exec_prefix
="$exec_prefix"
10344 exec_prefix
="$acl_final_exec_prefix"
10346 exec_prefix
="$acl_save_exec_prefix"
10347 prefix
="$acl_save_prefix"
10349 if test "X$x" = "X-I$additional_includedir"; then
10354 if test -z "$haveit"; then
10355 if test -d "$additional_includedir"; then
10356 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10362 if test -n "$found_la"; then
10363 save_libdir
="$libdir"
10364 case "$found_la" in
10365 */* |
*\\*) .
"$found_la" ;;
10366 *) .
"./$found_la" ;;
10368 libdir
="$save_libdir"
10369 for dep
in $dependency_libs; do
10372 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10373 if test "X$additional_libdir" != "X/usr/lib"; then
10375 if test "X$additional_libdir" = "X/usr/local/lib"; then
10376 if test -n "$GCC"; then
10378 linux
*) haveit
=yes;;
10382 if test -z "$haveit"; then
10384 for x
in $LDFLAGS $LIBICONV; 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"
10394 if test "X$x" = "X-L$additional_libdir"; then
10399 if test -z "$haveit"; then
10400 if test -d "$additional_libdir"; then
10401 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10405 for x
in $LDFLAGS $LTLIBICONV; do
10407 acl_save_prefix
="$prefix"
10408 prefix
="$acl_final_prefix"
10409 acl_save_exec_prefix
="$exec_prefix"
10410 exec_prefix
="$acl_final_exec_prefix"
10412 exec_prefix
="$acl_save_exec_prefix"
10413 prefix
="$acl_save_prefix"
10415 if test "X$x" = "X-L$additional_libdir"; then
10420 if test -z "$haveit"; then
10421 if test -d "$additional_libdir"; then
10422 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10429 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10430 if test "$enable_rpath" != no
; then
10432 for x
in $rpathdirs; do
10433 if test "X$x" = "X$dir"; then
10438 if test -z "$haveit"; then
10439 rpathdirs
="$rpathdirs $dir"
10442 for x
in $ltrpathdirs; do
10443 if test "X$x" = "X$dir"; then
10448 if test -z "$haveit"; then
10449 ltrpathdirs
="$ltrpathdirs $dir"
10454 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10457 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10460 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10461 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10467 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10468 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10474 if test "X$rpathdirs" != "X"; then
10475 if test -n "$hardcode_libdir_separator"; then
10477 for found_dir
in $rpathdirs; do
10478 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10480 acl_save_libdir
="$libdir"
10482 eval flag
=\"$hardcode_libdir_flag_spec\"
10483 libdir
="$acl_save_libdir"
10484 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10486 for found_dir
in $rpathdirs; do
10487 acl_save_libdir
="$libdir"
10488 libdir
="$found_dir"
10489 eval flag
=\"$hardcode_libdir_flag_spec\"
10490 libdir
="$acl_save_libdir"
10491 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10495 if test "X$ltrpathdirs" != "X"; then
10496 for found_dir
in $ltrpathdirs; do
10497 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10507 am_save_CPPFLAGS
="$CPPFLAGS"
10509 for element
in $INCICONV; do
10511 for x
in $CPPFLAGS; do
10513 acl_save_prefix
="$prefix"
10514 prefix
="$acl_final_prefix"
10515 acl_save_exec_prefix
="$exec_prefix"
10516 exec_prefix
="$acl_final_exec_prefix"
10518 exec_prefix
="$acl_save_exec_prefix"
10519 prefix
="$acl_save_prefix"
10521 if test "X$x" = "X$element"; then
10526 if test -z "$haveit"; then
10527 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10532 echo "$as_me:$LINENO: checking for iconv" >&5
10533 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10534 if test "${am_cv_func_iconv+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 am_cv_func_iconv
="no, consider installing GNU libiconv"
10540 if test x
$gcc_no_link = xyes
; then
10541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10543 { (exit 1); exit 1; }; }
10545 cat >conftest.
$ac_ext <<_ACEOF
10548 cat confdefs.h
>>conftest.
$ac_ext
10549 cat >>conftest.
$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 #include <stdlib.h>
10556 iconv_t cd = iconv_open("","");
10557 iconv(cd,NULL,NULL,NULL,NULL);
10563 rm -f conftest.
$ac_objext conftest
$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10567 grep -v '^ *+' conftest.er1
>conftest.err
10569 cat conftest.err
>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try
='test -z "$ac_c_werror_flag"
10573 || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try
='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 am_cv_func_iconv
=yes
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.
$ac_ext >&5
10591 rm -f conftest.err conftest.
$ac_objext \
10592 conftest
$ac_exeext conftest.
$ac_ext
10593 if test "$am_cv_func_iconv" != yes; then
10594 am_save_LIBS
="$LIBS"
10595 LIBS
="$LIBS $LIBICONV"
10596 if test x
$gcc_no_link = xyes
; then
10597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10599 { (exit 1); exit 1; }; }
10601 cat >conftest.
$ac_ext <<_ACEOF
10604 cat confdefs.h
>>conftest.
$ac_ext
10605 cat >>conftest.
$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 #include <stdlib.h>
10612 iconv_t cd = iconv_open("","");
10613 iconv(cd,NULL,NULL,NULL,NULL);
10619 rm -f conftest.
$ac_objext conftest
$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>conftest.er1
10623 grep -v '^ *+' conftest.er1
>conftest.err
10625 cat conftest.err
>&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try
='test -z "$ac_c_werror_flag"
10629 || test ! -s conftest.err'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; } &&
10635 { ac_try
='test -s conftest$ac_exeext'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 am_cv_lib_iconv
=yes
10642 am_cv_func_iconv
=yes
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.
$ac_ext >&5
10648 rm -f conftest.err conftest.
$ac_objext \
10649 conftest
$ac_exeext conftest.
$ac_ext
10650 LIBS
="$am_save_LIBS"
10654 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10655 echo "${ECHO_T}$am_cv_func_iconv" >&6
10656 if test "$am_cv_func_iconv" = yes; then
10658 cat >>confdefs.h
<<\_ACEOF
10659 #define HAVE_ICONV 1
10663 if test "$am_cv_lib_iconv" = yes; then
10664 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10665 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10666 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10667 echo "${ECHO_T}$LIBICONV" >&6
10669 CPPFLAGS
="$am_save_CPPFLAGS"
10676 if test "$am_cv_func_iconv" = yes; then
10677 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10678 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10679 if test "${am_cv_proto_iconv+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 cat >conftest.
$ac_ext <<_ACEOF
10686 cat confdefs.h
>>conftest.
$ac_ext
10687 cat >>conftest.
$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10690 #include <stdlib.h>
10696 #if defined(__STDC__) || defined(__cplusplus)
10697 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10710 rm -f conftest.
$ac_objext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>conftest.er1
10714 grep -v '^ *+' conftest.er1
>conftest.err
10716 cat conftest.err
>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try
='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try
='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 am_cv_proto_iconv_arg1
=""
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.
$ac_ext >&5
10737 am_cv_proto_iconv_arg1
="const"
10739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10740 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);"
10743 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10744 echo "$as_me:$LINENO: result: ${ac_t:-
10745 }$am_cv_proto_iconv" >&5
10746 echo "${ECHO_T}${ac_t:-
10747 }$am_cv_proto_iconv" >&6
10749 cat >>confdefs.h
<<_ACEOF
10750 #define ICONV_CONST $am_cv_proto_iconv_arg1
10756 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10757 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10758 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 if test x
$gcc_no_link = xyes
; then
10762 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10763 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10764 { (exit 1); exit 1; }; }
10766 cat >conftest.
$ac_ext <<_ACEOF
10769 cat confdefs.h
>>conftest.
$ac_ext
10770 cat >>conftest.
$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 #include <locale.h>
10781 rm -f conftest.
$ac_objext conftest
$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>conftest.er1
10785 grep -v '^ *+' conftest.er1
>conftest.err
10787 cat conftest.err
>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try
='test -z "$ac_c_werror_flag"
10791 || test ! -s conftest.err'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try
='test -s conftest$ac_exeext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 am_cv_val_LC_MESSAGES
=yes
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.
$ac_ext >&5
10808 am_cv_val_LC_MESSAGES
=no
10810 rm -f conftest.err conftest.
$ac_objext \
10811 conftest
$ac_exeext conftest.
$ac_ext
10813 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10814 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10815 if test $am_cv_val_LC_MESSAGES = yes; then
10817 cat >>confdefs.h
<<\_ACEOF
10818 #define HAVE_LC_MESSAGES 1
10823 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10824 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10825 if test "${ac_cv_struct_tm+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 cat >conftest.
$ac_ext <<_ACEOF
10831 cat confdefs.h
>>conftest.
$ac_ext
10832 cat >>conftest.
$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <sys/types.h>
10840 struct tm *tp; tp->tm_sec;
10845 rm -f conftest.
$ac_objext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10847 (eval $ac_compile) 2>conftest.er1
10849 grep -v '^ *+' conftest.er1
>conftest.err
10851 cat conftest.err
>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try
='test -z "$ac_c_werror_flag"
10855 || test ! -s conftest.err'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; } &&
10861 { ac_try
='test -s conftest.$ac_objext'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; }; then
10867 ac_cv_struct_tm
=time.h
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.
$ac_ext >&5
10872 ac_cv_struct_tm
=sys
/time.h
10874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10876 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10877 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10878 if test $ac_cv_struct_tm = sys
/time.h
; then
10880 cat >>confdefs.h
<<\_ACEOF
10881 #define TM_IN_SYS_TIME 1
10886 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10887 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10888 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 cat >conftest.
$ac_ext <<_ACEOF
10894 cat confdefs.h
>>conftest.
$ac_ext
10895 cat >>conftest.
$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 #include <sys/types.h>
10898 #include <$ac_cv_struct_tm>
10904 static struct tm ac_aggr;
10905 if (ac_aggr.tm_zone)
10911 rm -f conftest.
$ac_objext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913 (eval $ac_compile) 2>conftest.er1
10915 grep -v '^ *+' conftest.er1
>conftest.err
10917 cat conftest.err
>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try
='test -z "$ac_c_werror_flag"
10921 || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try
='test -s conftest.$ac_objext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_member_struct_tm_tm_zone
=yes
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.
$ac_ext >&5
10938 cat >conftest.
$ac_ext <<_ACEOF
10941 cat confdefs.h
>>conftest.
$ac_ext
10942 cat >>conftest.
$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 #include <sys/types.h>
10945 #include <$ac_cv_struct_tm>
10951 static struct tm ac_aggr;
10952 if (sizeof ac_aggr.tm_zone)
10958 rm -f conftest.
$ac_objext
10959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960 (eval $ac_compile) 2>conftest.er1
10962 grep -v '^ *+' conftest.er1
>conftest.err
10964 cat conftest.err
>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
10967 { ac_try
='test -z "$ac_c_werror_flag"
10968 || test ! -s conftest.err'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; } &&
10974 { ac_try
='test -s conftest.$ac_objext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_cv_member_struct_tm_tm_zone
=yes
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.
$ac_ext >&5
10985 ac_cv_member_struct_tm_tm_zone
=no
10987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10991 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10992 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10993 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10995 cat >>confdefs.h
<<_ACEOF
10996 #define HAVE_STRUCT_TM_TM_ZONE 1
11002 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11004 cat >>confdefs.h
<<\_ACEOF
11005 #define HAVE_TM_ZONE 1
11009 echo "$as_me:$LINENO: checking for tzname" >&5
11010 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11011 if test "${ac_cv_var_tzname+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 if test x
$gcc_no_link = xyes
; then
11015 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11016 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11017 { (exit 1); exit 1; }; }
11019 cat >conftest.
$ac_ext <<_ACEOF
11022 cat confdefs.h
>>conftest.
$ac_ext
11023 cat >>conftest.
$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11026 #ifndef tzname /* For SGI. */
11027 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11038 rm -f conftest.
$ac_objext conftest
$ac_exeext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040 (eval $ac_link) 2>conftest.er1
11042 grep -v '^ *+' conftest.er1
>conftest.err
11044 cat conftest.err
>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try
='test -z "$ac_c_werror_flag"
11048 || test ! -s conftest.err'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try
='test -s conftest$ac_exeext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 ac_cv_var_tzname
=yes
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.
$ac_ext >&5
11065 ac_cv_var_tzname
=no
11067 rm -f conftest.err conftest.
$ac_objext \
11068 conftest
$ac_exeext conftest.
$ac_ext
11070 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11071 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11072 if test $ac_cv_var_tzname = yes; then
11074 cat >>confdefs.h
<<\_ACEOF
11075 #define HAVE_TZNAME 1
11084 for ac_func
in gethostbyname_r
11086 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11087 echo "$as_me:$LINENO: checking for $ac_func" >&5
11088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11089 if eval "test \"\${$as_ac_var+set}\" = set"; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 if test x
$gcc_no_link = xyes
; then
11093 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11095 { (exit 1); exit 1; }; }
11097 cat >conftest.
$ac_ext <<_ACEOF
11100 cat confdefs.h
>>conftest.
$ac_ext
11101 cat >>conftest.
$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11105 #define $ac_func innocuous_$ac_func
11107 /* System header to define __stub macros and hopefully few prototypes,
11108 which can conflict with char $ac_func (); below.
11109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11110 <limits.h> exists even on freestanding compilers. */
11113 # include <limits.h>
11115 # include <assert.h>
11120 /* Override any gcc2 internal prototype to avoid an error. */
11125 /* We use char because int might match the return type of a gcc2
11126 builtin and then its argument prototype would still apply. */
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11134 char (*f) () = $ac_func;
11143 return f != $ac_func;
11148 rm -f conftest.
$ac_objext conftest
$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>conftest.er1
11152 grep -v '^ *+' conftest.er1
>conftest.err
11154 cat conftest.err
>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try
='test -z "$ac_c_werror_flag"
11158 || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try
='test -s conftest$ac_exeext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 eval "$as_ac_var=yes"
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.
$ac_ext >&5
11175 eval "$as_ac_var=no"
11177 rm -f conftest.err conftest.
$ac_objext \
11178 conftest
$ac_exeext conftest.
$ac_ext
11180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11182 if test `eval echo '${'$as_ac_var'}'` = yes; then
11183 cat >>confdefs.h
<<_ACEOF
11184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11188 cat >>confdefs.h
<<\_ACEOF
11189 #define HAVE_GETHOSTBYNAME_R 1
11192 # There are two different kinds of gethostbyname_r.
11193 # We look for the one that returns `int'.
11194 # Hopefully this check is robust enough.
11195 cat >conftest.
$ac_ext <<_ACEOF
11198 cat confdefs.h
>>conftest.
$ac_ext
11199 cat >>conftest.
$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11205 $EGREP "int.*gethostbyname_r" >/dev
/null
2>&1; then
11208 cat >>confdefs.h
<<\_ACEOF
11209 #define GETHOSTBYNAME_R_RETURNS_INT 1
11216 case " $GCINCS " in
11217 *" -D_REENTRANT "*) ;;
11219 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11220 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11221 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 ac_cpp
='$CXXCPP $CPPFLAGS'
11226 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11227 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11228 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11230 cat >conftest.
$ac_ext <<_ACEOF
11233 cat confdefs.h
>>conftest.
$ac_ext
11234 cat >>conftest.
$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11240 gethostbyname_r("", 0, 0);
11245 rm -f conftest.
$ac_objext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11247 (eval $ac_compile) 2>conftest.er1
11249 grep -v '^ *+' conftest.er1
>conftest.err
11251 cat conftest.err
>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try
='test -z "$ac_cxx_werror_flag"
11255 || test ! -s conftest.err'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; } &&
11261 { ac_try
='test -s conftest.$ac_objext'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
11267 libjava_cv_gethostbyname_r_needs_reentrant
=no
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.
$ac_ext >&5
11272 CPPFLAGS_SAVE
="$CPPFLAGS"
11273 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
11274 cat >conftest.
$ac_ext <<_ACEOF
11277 cat confdefs.h
>>conftest.
$ac_ext
11278 cat >>conftest.
$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11284 gethostbyname_r("", 0, 0);
11289 rm -f conftest.
$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291 (eval $ac_compile) 2>conftest.er1
11293 grep -v '^ *+' conftest.er1
>conftest.err
11295 cat conftest.err
>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try
='test -z "$ac_cxx_werror_flag"
11299 || test ! -s conftest.err'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try
='test -s conftest.$ac_objext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 libjava_cv_gethostbyname_r_needs_reentrant
=yes
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.
$ac_ext >&5
11316 libjava_cv_gethostbyname_r_needs_reentrant
=fail
11318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11319 CPPFLAGS
="$CPPFLAGS_SAVE"
11322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11324 ac_cpp
='$CPP $CPPFLAGS'
11325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11331 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11332 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11333 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
11335 cat >>confdefs.h
<<\_ACEOF
11336 #define _REENTRANT 1
11343 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11344 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11345 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 cat >conftest.
$ac_ext <<_ACEOF
11351 cat confdefs.h
>>conftest.
$ac_ext
11352 cat >>conftest.
$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11355 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11356 # define _REENTRANT 1
11362 struct hostent_data data;
11367 rm -f conftest.
$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369 (eval $ac_compile) 2>conftest.er1
11371 grep -v '^ *+' conftest.er1
>conftest.err
11373 cat conftest.err
>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try
='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try
='test -s conftest.$ac_objext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 libjava_cv_struct_hostent_data
=yes
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.
$ac_ext >&5
11394 libjava_cv_struct_hostent_data
=no
11396 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11398 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11399 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11400 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
11402 cat >>confdefs.h
<<\_ACEOF
11403 #define HAVE_STRUCT_HOSTENT_DATA 1
11412 # FIXME: libjava source code expects to find a prototype for
11413 # gethostbyaddr_r in netdb.h. The outer check ensures that
11414 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11415 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11416 # linkage check is enough, yet C++ code requires proper prototypes.)
11417 cat >conftest.
$ac_ext <<_ACEOF
11420 cat confdefs.h
>>conftest.
$ac_ext
11421 cat >>conftest.
$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 $EGREP "gethostbyaddr_r" >/dev
/null
2>&1; then
11430 for ac_func
in gethostbyaddr_r
11432 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11433 echo "$as_me:$LINENO: checking for $ac_func" >&5
11434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11435 if eval "test \"\${$as_ac_var+set}\" = set"; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 if test x
$gcc_no_link = xyes
; then
11439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11441 { (exit 1); exit 1; }; }
11443 cat >conftest.
$ac_ext <<_ACEOF
11446 cat confdefs.h
>>conftest.
$ac_ext
11447 cat >>conftest.
$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11451 #define $ac_func innocuous_$ac_func
11453 /* System header to define __stub macros and hopefully few prototypes,
11454 which can conflict with char $ac_func (); below.
11455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11456 <limits.h> exists even on freestanding compilers. */
11459 # include <limits.h>
11461 # include <assert.h>
11466 /* Override any gcc2 internal prototype to avoid an error. */
11471 /* We use char because int might match the return type of a gcc2
11472 builtin and then its argument prototype would still apply. */
11474 /* The GNU C library defines this for functions which it implements
11475 to always fail with ENOSYS. Some functions are actually named
11476 something starting with __ and the normal name is an alias. */
11477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11480 char (*f) () = $ac_func;
11489 return f != $ac_func;
11494 rm -f conftest.
$ac_objext conftest
$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11498 grep -v '^ *+' conftest.er1
>conftest.err
11500 cat conftest.err
>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try
='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try
='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 eval "$as_ac_var=yes"
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.
$ac_ext >&5
11521 eval "$as_ac_var=no"
11523 rm -f conftest.err conftest.
$ac_objext \
11524 conftest
$ac_exeext conftest.
$ac_ext
11526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11528 if test `eval echo '${'$as_ac_var'}'` = yes; then
11529 cat >>confdefs.h
<<_ACEOF
11530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11534 cat >>confdefs.h
<<\_ACEOF
11535 #define HAVE_GETHOSTBYADDR_R 1
11538 # There are two different kinds of gethostbyaddr_r.
11539 # We look for the one that returns `int'.
11540 # Hopefully this check is robust enough.
11541 cat >conftest.
$ac_ext <<_ACEOF
11544 cat confdefs.h
>>conftest.
$ac_ext
11545 cat >>conftest.
$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551 $EGREP "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
11554 cat >>confdefs.h
<<\_ACEOF
11555 #define GETHOSTBYADDR_R_RETURNS_INT 1
11569 for ac_func
in gethostname
11571 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11572 echo "$as_me:$LINENO: checking for $ac_func" >&5
11573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11574 if eval "test \"\${$as_ac_var+set}\" = set"; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 if test x
$gcc_no_link = xyes
; then
11578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11580 { (exit 1); exit 1; }; }
11582 cat >conftest.
$ac_ext <<_ACEOF
11585 cat confdefs.h
>>conftest.
$ac_ext
11586 cat >>conftest.
$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11590 #define $ac_func innocuous_$ac_func
11592 /* System header to define __stub macros and hopefully few prototypes,
11593 which can conflict with char $ac_func (); below.
11594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11595 <limits.h> exists even on freestanding compilers. */
11598 # include <limits.h>
11600 # include <assert.h>
11605 /* Override any gcc2 internal prototype to avoid an error. */
11610 /* We use char because int might match the return type of a gcc2
11611 builtin and then its argument prototype would still apply. */
11613 /* The GNU C library defines this for functions which it implements
11614 to always fail with ENOSYS. Some functions are actually named
11615 something starting with __ and the normal name is an alias. */
11616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11619 char (*f) () = $ac_func;
11628 return f != $ac_func;
11633 rm -f conftest.
$ac_objext conftest
$ac_exeext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635 (eval $ac_link) 2>conftest.er1
11637 grep -v '^ *+' conftest.er1
>conftest.err
11639 cat conftest.err
>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try
='test -z "$ac_c_werror_flag"
11643 || test ! -s conftest.err'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; } &&
11649 { ac_try
='test -s conftest$ac_exeext'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 eval "$as_ac_var=yes"
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.
$ac_ext >&5
11660 eval "$as_ac_var=no"
11662 rm -f conftest.err conftest.
$ac_objext \
11663 conftest
$ac_exeext conftest.
$ac_ext
11665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11667 if test `eval echo '${'$as_ac_var'}'` = yes; then
11668 cat >>confdefs.h
<<_ACEOF
11669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11673 cat >>confdefs.h
<<\_ACEOF
11674 #define HAVE_GETHOSTNAME 1
11677 cat >conftest.
$ac_ext <<_ACEOF
11680 cat confdefs.h
>>conftest.
$ac_ext
11681 cat >>conftest.
$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 #include <unistd.h>
11686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11687 $EGREP "gethostname" >/dev
/null
2>&1; then
11690 cat >>confdefs.h
<<\_ACEOF
11691 #define HAVE_GETHOSTNAME_DECL 1
11702 for ac_func
in usleep
11704 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11705 echo "$as_me:$LINENO: checking for $ac_func" >&5
11706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11707 if eval "test \"\${$as_ac_var+set}\" = set"; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 if test x
$gcc_no_link = xyes
; then
11711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11713 { (exit 1); exit 1; }; }
11715 cat >conftest.
$ac_ext <<_ACEOF
11718 cat confdefs.h
>>conftest.
$ac_ext
11719 cat >>conftest.
$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11723 #define $ac_func innocuous_$ac_func
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char $ac_func (); below.
11727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728 <limits.h> exists even on freestanding compilers. */
11731 # include <limits.h>
11733 # include <assert.h>
11738 /* Override any gcc2 internal prototype to avoid an error. */
11743 /* We use char because int might match the return type of a gcc2
11744 builtin and then its argument prototype would still apply. */
11746 /* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
11749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11752 char (*f) () = $ac_func;
11761 return f != $ac_func;
11766 rm -f conftest.
$ac_objext conftest
$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>conftest.er1
11770 grep -v '^ *+' conftest.er1
>conftest.err
11772 cat conftest.err
>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try
='test -z "$ac_c_werror_flag"
11776 || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try
='test -s conftest$ac_exeext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 eval "$as_ac_var=yes"
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.
$ac_ext >&5
11793 eval "$as_ac_var=no"
11795 rm -f conftest.err conftest.
$ac_objext \
11796 conftest
$ac_exeext conftest.
$ac_ext
11798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11800 if test `eval echo '${'$as_ac_var'}'` = yes; then
11801 cat >>confdefs.h
<<_ACEOF
11802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11805 cat >conftest.
$ac_ext <<_ACEOF
11808 cat confdefs.h
>>conftest.
$ac_ext
11809 cat >>conftest.
$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 #include <unistd.h>
11814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11815 $EGREP "usleep" >/dev
/null
2>&1; then
11818 cat >>confdefs.h
<<\_ACEOF
11819 #define HAVE_USLEEP_DECL 1
11829 # Look for these functions in the thread library, but only bother
11830 # if using POSIX threads.
11831 if test "$THREADS" = posix
; then
11833 LIBS
="$LIBS $THREADLIBS"
11834 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11838 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11840 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11841 echo "$as_me:$LINENO: checking for $ac_func" >&5
11842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11843 if eval "test \"\${$as_ac_var+set}\" = set"; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 if test x
$gcc_no_link = xyes
; then
11847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11849 { (exit 1); exit 1; }; }
11851 cat >conftest.
$ac_ext <<_ACEOF
11854 cat confdefs.h
>>conftest.
$ac_ext
11855 cat >>conftest.
$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11859 #define $ac_func innocuous_$ac_func
11861 /* System header to define __stub macros and hopefully few prototypes,
11862 which can conflict with char $ac_func (); below.
11863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11864 <limits.h> exists even on freestanding compilers. */
11867 # include <limits.h>
11869 # include <assert.h>
11874 /* Override any gcc2 internal prototype to avoid an error. */
11879 /* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11882 /* The GNU C library defines this for functions which it implements
11883 to always fail with ENOSYS. Some functions are actually named
11884 something starting with __ and the normal name is an alias. */
11885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11888 char (*f) () = $ac_func;
11897 return f != $ac_func;
11902 rm -f conftest.
$ac_objext conftest
$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>conftest.er1
11906 grep -v '^ *+' conftest.er1
>conftest.err
11908 cat conftest.err
>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try
='test -z "$ac_c_werror_flag"
11912 || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try
='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 eval "$as_ac_var=yes"
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.
$ac_ext >&5
11929 eval "$as_ac_var=no"
11931 rm -f conftest.err conftest.
$ac_objext \
11932 conftest
$ac_exeext conftest.
$ac_ext
11934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11936 if test `eval echo '${'$as_ac_var'}'` = yes; then
11937 cat >>confdefs.h
<<_ACEOF
11938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11945 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11946 # Solaris 7 the name librt is preferred.
11948 for ac_func
in sched_yield
11950 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11951 echo "$as_me:$LINENO: checking for $ac_func" >&5
11952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11953 if eval "test \"\${$as_ac_var+set}\" = set"; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 if test x
$gcc_no_link = xyes
; then
11957 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11959 { (exit 1); exit 1; }; }
11961 cat >conftest.
$ac_ext <<_ACEOF
11964 cat confdefs.h
>>conftest.
$ac_ext
11965 cat >>conftest.
$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11969 #define $ac_func innocuous_$ac_func
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char $ac_func (); below.
11973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11974 <limits.h> exists even on freestanding compilers. */
11977 # include <limits.h>
11979 # include <assert.h>
11984 /* Override any gcc2 internal prototype to avoid an error. */
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11998 char (*f) () = $ac_func;
12007 return f != $ac_func;
12012 rm -f conftest.
$ac_objext conftest
$ac_exeext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12014 (eval $ac_link) 2>conftest.er1
12016 grep -v '^ *+' conftest.er1
>conftest.err
12018 cat conftest.err
>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try
='test -z "$ac_c_werror_flag"
12022 || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try
='test -s conftest$ac_exeext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 eval "$as_ac_var=yes"
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.
$ac_ext >&5
12039 eval "$as_ac_var=no"
12041 rm -f conftest.err conftest.
$ac_objext \
12042 conftest
$ac_exeext conftest.
$ac_ext
12044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12046 if test `eval echo '${'$as_ac_var'}'` = yes; then
12047 cat >>confdefs.h
<<_ACEOF
12048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12053 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12054 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12055 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 ac_check_lib_save_LIBS
=$LIBS
12060 if test x
$gcc_no_link = xyes
; then
12061 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12062 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12063 { (exit 1); exit 1; }; }
12065 cat >conftest.
$ac_ext <<_ACEOF
12068 cat confdefs.h
>>conftest.
$ac_ext
12069 cat >>conftest.
$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12072 /* Override any gcc2 internal prototype to avoid an error. */
12076 /* We use char because int might match the return type of a gcc2
12077 builtin and then its argument prototype would still apply. */
12078 char sched_yield ();
12087 rm -f conftest.
$ac_objext conftest
$ac_exeext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12089 (eval $ac_link) 2>conftest.er1
12091 grep -v '^ *+' conftest.er1
>conftest.err
12093 cat conftest.err
>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } &&
12096 { ac_try
='test -z "$ac_c_werror_flag"
12097 || test ! -s conftest.err'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; } &&
12103 { ac_try
='test -s conftest$ac_exeext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_cv_lib_rt_sched_yield
=yes
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.
$ac_ext >&5
12114 ac_cv_lib_rt_sched_yield
=no
12116 rm -f conftest.err conftest.
$ac_objext \
12117 conftest
$ac_exeext conftest.
$ac_ext
12118 LIBS
=$ac_check_lib_save_LIBS
12120 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12121 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12122 if test $ac_cv_lib_rt_sched_yield = yes; then
12124 cat >>confdefs.h
<<\_ACEOF
12125 #define HAVE_SCHED_YIELD 1
12128 THREADLIBS
="$THREADLIBS -lrt"
12129 THREADSPEC
="$THREADSPEC -lrt"
12132 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12133 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12134 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 ac_check_lib_save_LIBS
=$LIBS
12138 LIBS
="-lposix4 $LIBS"
12139 if test x
$gcc_no_link = xyes
; then
12140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12142 { (exit 1); exit 1; }; }
12144 cat >conftest.
$ac_ext <<_ACEOF
12147 cat confdefs.h
>>conftest.
$ac_ext
12148 cat >>conftest.
$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12151 /* Override any gcc2 internal prototype to avoid an error. */
12155 /* We use char because int might match the return type of a gcc2
12156 builtin and then its argument prototype would still apply. */
12157 char sched_yield ();
12166 rm -f conftest.
$ac_objext conftest
$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168 (eval $ac_link) 2>conftest.er1
12170 grep -v '^ *+' conftest.er1
>conftest.err
12172 cat conftest.err
>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try
='test -z "$ac_c_werror_flag"
12176 || test ! -s conftest.err'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try
='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_lib_posix4_sched_yield
=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.
$ac_ext >&5
12193 ac_cv_lib_posix4_sched_yield
=no
12195 rm -f conftest.err conftest.
$ac_objext \
12196 conftest
$ac_exeext conftest.
$ac_ext
12197 LIBS
=$ac_check_lib_save_LIBS
12199 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12200 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12201 if test $ac_cv_lib_posix4_sched_yield = yes; then
12203 cat >>confdefs.h
<<\_ACEOF
12204 #define HAVE_SCHED_YIELD 1
12207 THREADLIBS
="$THREADLIBS -lposix4"
12208 THREADSPEC
="$THREADSPEC -lposix4"
12218 # We can save a little space at runtime if the mutex has m_count
12219 # or __m_count. This is a nice hack for Linux.
12220 cat >conftest.
$ac_ext <<_ACEOF
12223 cat confdefs.h
>>conftest.
$ac_ext
12224 cat >>conftest.
$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 #include <pthread.h>
12231 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12237 rm -f conftest.
$ac_objext
12238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239 (eval $ac_compile) 2>conftest.er1
12241 grep -v '^ *+' conftest.er1
>conftest.err
12243 cat conftest.err
>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try
='test -z "$ac_c_werror_flag"
12247 || test ! -s conftest.err'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try
='test -s conftest.$ac_objext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12260 cat >>confdefs.h
<<\_ACEOF
12261 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.
$ac_ext >&5
12269 cat >conftest.
$ac_ext <<_ACEOF
12272 cat confdefs.h
>>conftest.
$ac_ext
12273 cat >>conftest.
$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 #include <pthread.h>
12280 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12286 rm -f conftest.
$ac_objext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288 (eval $ac_compile) 2>conftest.er1
12290 grep -v '^ *+' conftest.er1
>conftest.err
12292 cat conftest.err
>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try
='test -z "$ac_c_werror_flag"
12296 || test ! -s conftest.err'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try
='test -s conftest.$ac_objext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12309 cat >>confdefs.h
<<\_ACEOF
12310 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.
$ac_ext >&5
12318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12323 # We require a way to get the time.
12328 for ac_func
in gettimeofday
time ftime
12330 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12331 echo "$as_me:$LINENO: checking for $ac_func" >&5
12332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12333 if eval "test \"\${$as_ac_var+set}\" = set"; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 if test x
$gcc_no_link = xyes
; then
12337 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12339 { (exit 1); exit 1; }; }
12341 cat >conftest.
$ac_ext <<_ACEOF
12344 cat confdefs.h
>>conftest.
$ac_ext
12345 cat >>conftest.
$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12349 #define $ac_func innocuous_$ac_func
12351 /* System header to define __stub macros and hopefully few prototypes,
12352 which can conflict with char $ac_func (); below.
12353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12354 <limits.h> exists even on freestanding compilers. */
12357 # include <limits.h>
12359 # include <assert.h>
12364 /* Override any gcc2 internal prototype to avoid an error. */
12369 /* We use char because int might match the return type of a gcc2
12370 builtin and then its argument prototype would still apply. */
12372 /* The GNU C library defines this for functions which it implements
12373 to always fail with ENOSYS. Some functions are actually named
12374 something starting with __ and the normal name is an alias. */
12375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12378 char (*f) () = $ac_func;
12387 return f != $ac_func;
12392 rm -f conftest.
$ac_objext conftest
$ac_exeext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394 (eval $ac_link) 2>conftest.er1
12396 grep -v '^ *+' conftest.er1
>conftest.err
12398 cat conftest.err
>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try
='test -z "$ac_c_werror_flag"
12402 || test ! -s conftest.err'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try
='test -s conftest$ac_exeext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 eval "$as_ac_var=yes"
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.
$ac_ext >&5
12419 eval "$as_ac_var=no"
12421 rm -f conftest.err conftest.
$ac_objext \
12422 conftest
$ac_exeext conftest.
$ac_ext
12424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12426 if test `eval echo '${'$as_ac_var'}'` = yes; then
12427 cat >>confdefs.h
<<_ACEOF
12428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12434 if test "$time_found" = no
; then
12435 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12436 echo "$as_me: error: no function found to get the time" >&2;}
12437 { (exit 1); exit 1; }; }
12441 for ac_func
in memmove
12443 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12444 echo "$as_me:$LINENO: checking for $ac_func" >&5
12445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12446 if eval "test \"\${$as_ac_var+set}\" = set"; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 if test x
$gcc_no_link = xyes
; then
12450 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12452 { (exit 1); exit 1; }; }
12454 cat >conftest.
$ac_ext <<_ACEOF
12457 cat confdefs.h
>>conftest.
$ac_ext
12458 cat >>conftest.
$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12462 #define $ac_func innocuous_$ac_func
12464 /* System header to define __stub macros and hopefully few prototypes,
12465 which can conflict with char $ac_func (); below.
12466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12467 <limits.h> exists even on freestanding compilers. */
12470 # include <limits.h>
12472 # include <assert.h>
12477 /* Override any gcc2 internal prototype to avoid an error. */
12482 /* We use char because int might match the return type of a gcc2
12483 builtin and then its argument prototype would still apply. */
12485 /* The GNU C library defines this for functions which it implements
12486 to always fail with ENOSYS. Some functions are actually named
12487 something starting with __ and the normal name is an alias. */
12488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12491 char (*f) () = $ac_func;
12500 return f != $ac_func;
12505 rm -f conftest.
$ac_objext conftest
$ac_exeext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12507 (eval $ac_link) 2>conftest.er1
12509 grep -v '^ *+' conftest.er1
>conftest.err
12511 cat conftest.err
>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try
='test -z "$ac_c_werror_flag"
12515 || test ! -s conftest.err'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } &&
12521 { ac_try
='test -s conftest$ac_exeext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 eval "$as_ac_var=yes"
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.
$ac_ext >&5
12532 eval "$as_ac_var=no"
12534 rm -f conftest.err conftest.
$ac_objext \
12535 conftest
$ac_exeext conftest.
$ac_ext
12537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12539 if test `eval echo '${'$as_ac_var'}'` = yes; then
12540 cat >>confdefs.h
<<_ACEOF
12541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12548 # We require memcpy.
12551 for ac_func
in memcpy
12553 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12554 echo "$as_me:$LINENO: checking for $ac_func" >&5
12555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12556 if eval "test \"\${$as_ac_var+set}\" = set"; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 if test x
$gcc_no_link = xyes
; then
12560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12562 { (exit 1); exit 1; }; }
12564 cat >conftest.
$ac_ext <<_ACEOF
12567 cat confdefs.h
>>conftest.
$ac_ext
12568 cat >>conftest.
$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12572 #define $ac_func innocuous_$ac_func
12574 /* System header to define __stub macros and hopefully few prototypes,
12575 which can conflict with char $ac_func (); below.
12576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12577 <limits.h> exists even on freestanding compilers. */
12580 # include <limits.h>
12582 # include <assert.h>
12587 /* Override any gcc2 internal prototype to avoid an error. */
12592 /* We use char because int might match the return type of a gcc2
12593 builtin and then its argument prototype would still apply. */
12595 /* The GNU C library defines this for functions which it implements
12596 to always fail with ENOSYS. Some functions are actually named
12597 something starting with __ and the normal name is an alias. */
12598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12601 char (*f) () = $ac_func;
12610 return f != $ac_func;
12615 rm -f conftest.
$ac_objext conftest
$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>conftest.er1
12619 grep -v '^ *+' conftest.er1
>conftest.err
12621 cat conftest.err
>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try
='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try
='test -s conftest$ac_exeext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 eval "$as_ac_var=yes"
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.
$ac_ext >&5
12642 eval "$as_ac_var=no"
12644 rm -f conftest.err conftest.
$ac_objext \
12645 conftest
$ac_exeext conftest.
$ac_ext
12647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12649 if test `eval echo '${'$as_ac_var'}'` = yes; then
12650 cat >>confdefs.h
<<_ACEOF
12651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657 if test "$memcpy_found" = no
; then
12658 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12659 echo "$as_me: error: memcpy is required" >&2;}
12660 { (exit 1); exit 1; }; }
12663 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 ac_check_lib_save_LIBS
=$LIBS
12670 if test x
$gcc_no_link = xyes
; then
12671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12673 { (exit 1); exit 1; }; }
12675 cat >conftest.
$ac_ext <<_ACEOF
12678 cat confdefs.h
>>conftest.
$ac_ext
12679 cat >>conftest.
$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any gcc2 internal prototype to avoid an error. */
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12697 rm -f conftest.
$ac_objext conftest
$ac_exeext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12699 (eval $ac_link) 2>conftest.er1
12701 grep -v '^ *+' conftest.er1
>conftest.err
12703 cat conftest.err
>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try
='test -z "$ac_c_werror_flag"
12707 || test ! -s conftest.err'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try
='test -s conftest$ac_exeext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_lib_dl_dlopen
=yes
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.
$ac_ext >&5
12724 ac_cv_lib_dl_dlopen
=no
12726 rm -f conftest.err conftest.
$ac_objext \
12727 conftest
$ac_exeext conftest.
$ac_ext
12728 LIBS
=$ac_check_lib_save_LIBS
12730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12732 if test $ac_cv_lib_dl_dlopen = yes; then
12735 cat >>confdefs.h
<<\_ACEOF
12736 #define HAVE_DLOPEN 1
12742 # Some library-finding code we stole from Tcl.
12743 #--------------------------------------------------------------------
12744 # Check for the existence of the -lsocket and -lnsl libraries.
12745 # The order here is important, so that they end up in the right
12746 # order in the command line generated by make. Here are some
12747 # special considerations:
12748 # 1. Use "connect" and "accept" to check for -lsocket, and
12749 # "gethostbyname" to check for -lnsl.
12750 # 2. Use each function name only once: can't redo a check because
12751 # autoconf caches the results of the last check and won't redo it.
12752 # 3. Use -lnsl and -lsocket only if they supply procedures that
12753 # aren't already present in the normal libraries. This is because
12754 # IRIX 5.2 has libraries, but they aren't needed and they're
12755 # bogus: they goof up name resolution if used.
12756 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12757 # To get around this problem, check for both libraries together
12758 # if -lsocket doesn't work by itself.
12759 #--------------------------------------------------------------------
12761 echo "$as_me:$LINENO: checking for socket libraries" >&5
12762 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12763 if test "${gcj_cv_lib_sockets+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 gcj_cv_lib_sockets
=
12768 unset ac_cv_func_connect
12769 echo "$as_me:$LINENO: checking for connect" >&5
12770 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12771 if test "${ac_cv_func_connect+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 if test x
$gcc_no_link = xyes
; then
12775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12777 { (exit 1); exit 1; }; }
12779 cat >conftest.
$ac_ext <<_ACEOF
12782 cat confdefs.h
>>conftest.
$ac_ext
12783 cat >>conftest.
$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12785 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12787 #define connect innocuous_connect
12789 /* System header to define __stub macros and hopefully few prototypes,
12790 which can conflict with char connect (); below.
12791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12792 <limits.h> exists even on freestanding compilers. */
12795 # include <limits.h>
12797 # include <assert.h>
12802 /* Override any gcc2 internal prototype to avoid an error. */
12807 /* We use char because int might match the return type of a gcc2
12808 builtin and then its argument prototype would still apply. */
12810 /* The GNU C library defines this for functions which it implements
12811 to always fail with ENOSYS. Some functions are actually named
12812 something starting with __ and the normal name is an alias. */
12813 #if defined (__stub_connect) || defined (__stub___connect)
12816 char (*f) () = connect;
12825 return f != connect;
12830 rm -f conftest.
$ac_objext conftest
$ac_exeext
12831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12832 (eval $ac_link) 2>conftest.er1
12834 grep -v '^ *+' conftest.er1
>conftest.err
12836 cat conftest.err
>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try
='test -z "$ac_c_werror_flag"
12840 || test ! -s conftest.err'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try
='test -s conftest$ac_exeext'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 ac_cv_func_connect
=yes
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.
$ac_ext >&5
12857 ac_cv_func_connect
=no
12859 rm -f conftest.err conftest.
$ac_objext \
12860 conftest
$ac_exeext conftest.
$ac_ext
12862 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12863 echo "${ECHO_T}$ac_cv_func_connect" >&6
12864 if test $ac_cv_func_connect = yes; then
12870 if test "$gcj_checkSocket" = 1; then
12871 unset ac_cv_func_connect
12872 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12873 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12874 if test "${ac_cv_lib_socket_main+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 ac_check_lib_save_LIBS
=$LIBS
12878 LIBS
="-lsocket $LIBS"
12879 if test x
$gcc_no_link = xyes
; then
12880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12882 { (exit 1); exit 1; }; }
12884 cat >conftest.
$ac_ext <<_ACEOF
12887 cat confdefs.h
>>conftest.
$ac_ext
12888 cat >>conftest.
$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12900 rm -f conftest.
$ac_objext conftest
$ac_exeext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902 (eval $ac_link) 2>conftest.er1
12904 grep -v '^ *+' conftest.er1
>conftest.err
12906 cat conftest.err
>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try
='test -z "$ac_c_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try
='test -s conftest$ac_exeext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_cv_lib_socket_main
=yes
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.
$ac_ext >&5
12927 ac_cv_lib_socket_main
=no
12929 rm -f conftest.err conftest.
$ac_objext \
12930 conftest
$ac_exeext conftest.
$ac_ext
12931 LIBS
=$ac_check_lib_save_LIBS
12933 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12934 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12935 if test $ac_cv_lib_socket_main = yes; then
12936 gcj_cv_lib_sockets
="-lsocket"
12942 if test "$gcj_checkBoth" = 1; then
12944 LIBS
="$LIBS -lsocket -lnsl"
12945 unset ac_cv_func_accept
12946 echo "$as_me:$LINENO: checking for accept" >&5
12947 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12948 if test "${ac_cv_func_accept+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 if test x
$gcc_no_link = xyes
; then
12952 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12954 { (exit 1); exit 1; }; }
12956 cat >conftest.
$ac_ext <<_ACEOF
12959 cat confdefs.h
>>conftest.
$ac_ext
12960 cat >>conftest.
$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12962 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12964 #define accept innocuous_accept
12966 /* System header to define __stub macros and hopefully few prototypes,
12967 which can conflict with char accept (); below.
12968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12969 <limits.h> exists even on freestanding compilers. */
12972 # include <limits.h>
12974 # include <assert.h>
12979 /* Override any gcc2 internal prototype to avoid an error. */
12984 /* We use char because int might match the return type of a gcc2
12985 builtin and then its argument prototype would still apply. */
12987 /* The GNU C library defines this for functions which it implements
12988 to always fail with ENOSYS. Some functions are actually named
12989 something starting with __ and the normal name is an alias. */
12990 #if defined (__stub_accept) || defined (__stub___accept)
12993 char (*f) () = accept;
13002 return f != accept;
13007 rm -f conftest.
$ac_objext conftest
$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>conftest.er1
13011 grep -v '^ *+' conftest.er1
>conftest.err
13013 cat conftest.err
>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try
='test -z "$ac_c_werror_flag"
13017 || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try
='test -s conftest$ac_exeext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_cv_func_accept
=yes
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.
$ac_ext >&5
13034 ac_cv_func_accept
=no
13036 rm -f conftest.err conftest.
$ac_objext \
13037 conftest
$ac_exeext conftest.
$ac_ext
13039 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13040 echo "${ECHO_T}$ac_cv_func_accept" >&6
13041 if test $ac_cv_func_accept = yes; then
13043 gcj_cv_lib_sockets
="-lsocket -lnsl"
13046 unset ac_cv_func_accept
13049 unset ac_cv_func_gethostbyname
13051 LIBS
="$LIBS $gcj_cv_lib_sockets"
13052 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13053 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13054 if test "${ac_cv_func_gethostbyname+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 if test x
$gcc_no_link = xyes
; then
13058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13059 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13060 { (exit 1); exit 1; }; }
13062 cat >conftest.
$ac_ext <<_ACEOF
13065 cat confdefs.h
>>conftest.
$ac_ext
13066 cat >>conftest.
$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13070 #define gethostbyname innocuous_gethostbyname
13072 /* System header to define __stub macros and hopefully few prototypes,
13073 which can conflict with char gethostbyname (); below.
13074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13075 <limits.h> exists even on freestanding compilers. */
13078 # include <limits.h>
13080 # include <assert.h>
13083 #undef gethostbyname
13085 /* Override any gcc2 internal prototype to avoid an error. */
13090 /* We use char because int might match the return type of a gcc2
13091 builtin and then its argument prototype would still apply. */
13092 char gethostbyname ();
13093 /* The GNU C library defines this for functions which it implements
13094 to always fail with ENOSYS. Some functions are actually named
13095 something starting with __ and the normal name is an alias. */
13096 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13099 char (*f) () = gethostbyname;
13108 return f != gethostbyname;
13113 rm -f conftest.
$ac_objext conftest
$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>conftest.er1
13117 grep -v '^ *+' conftest.er1
>conftest.err
13119 cat conftest.err
>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try
='test -z "$ac_c_werror_flag"
13123 || test ! -s conftest.err'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try
='test -s conftest$ac_exeext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_cv_func_gethostbyname
=yes
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.
$ac_ext >&5
13140 ac_cv_func_gethostbyname
=no
13142 rm -f conftest.err conftest.
$ac_objext \
13143 conftest
$ac_exeext conftest.
$ac_ext
13145 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13146 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13147 if test $ac_cv_func_gethostbyname = yes; then
13150 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13151 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13152 if test "${ac_cv_lib_nsl_main+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 ac_check_lib_save_LIBS
=$LIBS
13157 if test x
$gcc_no_link = xyes
; then
13158 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13160 { (exit 1); exit 1; }; }
13162 cat >conftest.
$ac_ext <<_ACEOF
13165 cat confdefs.h
>>conftest.
$ac_ext
13166 cat >>conftest.
$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13178 rm -f conftest.
$ac_objext conftest
$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180 (eval $ac_link) 2>conftest.er1
13182 grep -v '^ *+' conftest.er1
>conftest.err
13184 cat conftest.err
>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try
='test -z "$ac_c_werror_flag"
13188 || test ! -s conftest.err'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try
='test -s conftest$ac_exeext'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 ac_cv_lib_nsl_main
=yes
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.
$ac_ext >&5
13205 ac_cv_lib_nsl_main
=no
13207 rm -f conftest.err conftest.
$ac_objext \
13208 conftest
$ac_exeext conftest.
$ac_ext
13209 LIBS
=$ac_check_lib_save_LIBS
13211 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13212 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13213 if test $ac_cv_lib_nsl_main = yes; then
13214 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
13219 unset ac_cv_func_gethostbyname
13223 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13224 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13225 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
13227 if test "$with_system_zlib" = yes; then
13228 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13229 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13230 if test "${ac_cv_lib_z_deflate+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 ac_check_lib_save_LIBS
=$LIBS
13235 if test x
$gcc_no_link = xyes
; then
13236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13238 { (exit 1); exit 1; }; }
13240 cat >conftest.
$ac_ext <<_ACEOF
13243 cat confdefs.h
>>conftest.
$ac_ext
13244 cat >>conftest.
$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13247 /* Override any gcc2 internal prototype to avoid an error. */
13251 /* We use char because int might match the return type of a gcc2
13252 builtin and then its argument prototype would still apply. */
13262 rm -f conftest.
$ac_objext conftest
$ac_exeext
13263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13264 (eval $ac_link) 2>conftest.er1
13266 grep -v '^ *+' conftest.er1
>conftest.err
13268 cat conftest.err
>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try
='test -z "$ac_c_werror_flag"
13272 || test ! -s conftest.err'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; } &&
13278 { ac_try
='test -s conftest$ac_exeext'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_lib_z_deflate
=yes
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.
$ac_ext >&5
13289 ac_cv_lib_z_deflate
=no
13291 rm -f conftest.err conftest.
$ac_objext \
13292 conftest
$ac_exeext conftest.
$ac_ext
13293 LIBS
=$ac_check_lib_save_LIBS
13295 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13296 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13297 if test $ac_cv_lib_z_deflate = yes; then
13305 # Test for Gtk stuff, if asked for.
13306 if test "$use_gtk_awt" = yes; then
13310 if test -z "$PKG_CONFIG"; then
13311 # Extract the first word of "pkg-config", so it can be a program name with args.
13312 set dummy pkg-config
; ac_word
=$2
13313 echo "$as_me:$LINENO: checking for $ac_word" >&5
13314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13315 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 case $PKG_CONFIG in
13320 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13324 for as_dir
in $PATH
13327 test -z "$as_dir" && as_dir
=.
13328 for ac_exec_ext
in '' $ac_executable_extensions; do
13329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13330 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13341 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13343 if test -n "$PKG_CONFIG"; then
13344 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13345 echo "${ECHO_T}$PKG_CONFIG" >&6
13347 echo "$as_me:$LINENO: result: no" >&5
13348 echo "${ECHO_T}no" >&6
13353 if test "$PKG_CONFIG" = "no" ; then
13354 echo "*** The pkg-config script could not be found. Make sure it is"
13355 echo "*** in your path, or set the PKG_CONFIG environment variable"
13356 echo "*** to the full path to pkg-config."
13357 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13359 PKG_CONFIG_MIN_VERSION
=0.9.0
13360 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13361 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13362 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13364 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13365 echo "$as_me:$LINENO: result: yes" >&5
13366 echo "${ECHO_T}yes" >&6
13369 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13370 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13371 GTK_CFLAGS
=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13372 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13373 echo "${ECHO_T}$GTK_CFLAGS" >&6
13375 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13376 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13377 GTK_LIBS
=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13378 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13379 echo "${ECHO_T}$GTK_LIBS" >&6
13383 ## If we have a custom action on failure, don't print errors, but
13384 ## do set a variable so people can do so.
13385 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13386 echo $GTK_PKG_ERRORS
13392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13397 if test $succeeded = yes; then
13400 { { 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
13401 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;}
13402 { (exit 1); exit 1; }; }
13411 if test -z "$PKG_CONFIG"; then
13412 # Extract the first word of "pkg-config", so it can be a program name with args.
13413 set dummy pkg-config
; ac_word
=$2
13414 echo "$as_me:$LINENO: checking for $ac_word" >&5
13415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13416 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 case $PKG_CONFIG in
13421 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13425 for as_dir
in $PATH
13428 test -z "$as_dir" && as_dir
=.
13429 for ac_exec_ext
in '' $ac_executable_extensions; do
13430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13431 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13438 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13442 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13444 if test -n "$PKG_CONFIG"; then
13445 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13446 echo "${ECHO_T}$PKG_CONFIG" >&6
13448 echo "$as_me:$LINENO: result: no" >&5
13449 echo "${ECHO_T}no" >&6
13454 if test "$PKG_CONFIG" = "no" ; then
13455 echo "*** The pkg-config script could not be found. Make sure it is"
13456 echo "*** in your path, or set the PKG_CONFIG environment variable"
13457 echo "*** to the full path to pkg-config."
13458 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13460 PKG_CONFIG_MIN_VERSION
=0.9.0
13461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13462 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13463 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13465 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13466 echo "$as_me:$LINENO: result: yes" >&5
13467 echo "${ECHO_T}yes" >&6
13470 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13471 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13472 GLIB_CFLAGS
=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13473 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13474 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13476 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13477 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13478 GLIB_LIBS
=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13479 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13480 echo "${ECHO_T}$GLIB_LIBS" >&6
13484 ## If we have a custom action on failure, don't print errors, but
13485 ## do set a variable so people can do so.
13486 GLIB_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13487 echo $GLIB_PKG_ERRORS
13493 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13494 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13498 if test $succeeded = yes; then
13501 { { 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
13502 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;}
13503 { (exit 1); exit 1; }; }
13512 if test -z "$PKG_CONFIG"; then
13513 # Extract the first word of "pkg-config", so it can be a program name with args.
13514 set dummy pkg-config
; ac_word
=$2
13515 echo "$as_me:$LINENO: checking for $ac_word" >&5
13516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13517 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 case $PKG_CONFIG in
13522 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13526 for as_dir
in $PATH
13529 test -z "$as_dir" && as_dir
=.
13530 for ac_exec_ext
in '' $ac_executable_extensions; do
13531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13543 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13545 if test -n "$PKG_CONFIG"; then
13546 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13547 echo "${ECHO_T}$PKG_CONFIG" >&6
13549 echo "$as_me:$LINENO: result: no" >&5
13550 echo "${ECHO_T}no" >&6
13555 if test "$PKG_CONFIG" = "no" ; then
13556 echo "*** The pkg-config script could not be found. Make sure it is"
13557 echo "*** in your path, or set the PKG_CONFIG environment variable"
13558 echo "*** to the full path to pkg-config."
13559 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13561 PKG_CONFIG_MIN_VERSION
=0.9.0
13562 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13563 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13564 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13566 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13567 echo "$as_me:$LINENO: result: yes" >&5
13568 echo "${ECHO_T}yes" >&6
13571 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13572 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13573 LIBART_CFLAGS
=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13574 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13575 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13577 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13578 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13579 LIBART_LIBS
=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13580 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13581 echo "${ECHO_T}$LIBART_LIBS" >&6
13585 ## If we have a custom action on failure, don't print errors, but
13586 ## do set a variable so people can do so.
13587 LIBART_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13588 echo $LIBART_PKG_ERRORS
13594 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13595 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13599 if test $succeeded = yes; then
13602 { { 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
13603 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;}
13604 { (exit 1); exit 1; }; }
13611 # On Solaris, and maybe other architectures, the Boehm collector
13613 if test "$GC" = boehm
; then
13614 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13615 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13616 if test "${ac_cv_lib_dl_main+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 ac_check_lib_save_LIBS
=$LIBS
13621 if test x
$gcc_no_link = xyes
; then
13622 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13623 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13624 { (exit 1); exit 1; }; }
13626 cat >conftest.
$ac_ext <<_ACEOF
13629 cat confdefs.h
>>conftest.
$ac_ext
13630 cat >>conftest.
$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13642 rm -f conftest.
$ac_objext conftest
$ac_exeext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13644 (eval $ac_link) 2>conftest.er1
13646 grep -v '^ *+' conftest.er1
>conftest.err
13648 cat conftest.err
>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try
='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try
='test -s conftest$ac_exeext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_lib_dl_main
=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.
$ac_ext >&5
13669 ac_cv_lib_dl_main
=no
13671 rm -f conftest.err conftest.
$ac_objext \
13672 conftest
$ac_exeext conftest.
$ac_ext
13673 LIBS
=$ac_check_lib_save_LIBS
13675 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13676 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13677 if test $ac_cv_lib_dl_main = yes; then
13678 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
13685 if test "$supply_backtrace" = yes; then
13686 SUPPLY_BACKTRACE_TRUE
=
13687 SUPPLY_BACKTRACE_FALSE
='#'
13689 SUPPLY_BACKTRACE_TRUE
='#'
13690 SUPPLY_BACKTRACE_FALSE
=
13694 if test -z "${with_multisubdir}"; then
13697 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13702 # Which gcj do we use?
13704 built_gcc_dir
="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13705 if test -n "${with_cross_host}"; then
13706 # We are being configured with a cross compiler. We can't
13707 # use ac_exeext, because that is for the target platform.
13710 case "${with_cross_host}" in
13711 *mingw
* |
*cygwin
*)
13712 cross_host_exeext
=.exe
13715 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13716 if test x
"$build_noncanonical" = x
"$with_cross_host"; then
13717 # Ordinary cross (host!=target and host=build)
13720 # Canadian cross (host!=target and host!=build)
13727 # We are being configured with a native or crossed-native compiler
13728 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13729 if test x
"$build" = x
"$host"; then
13730 # True native build (host=target and host=build)
13733 # Crossed-native build (host=target and host!=build)
13740 case "${which_gcj}" in
13742 GCJ
="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13743 GCJH
='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13744 ZIP
='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13747 if test "x${with_newlib}" = "xyes"; then
13748 # FIXME (comment): Why is this needed?
13749 GCC_UNWIND_INCLUDE
=
13750 GCJ
="${target_noncanonical}-gcj"
13752 GCJ
="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13755 GCJH
='$(target_noncanonical)-gcjh'
13758 GCJ
="gcj -B`${PWDCMD-pwd}`/"
13759 ## In this case, gcj is found outside the build tree. However, zip is
13760 ## found in the build tree.
13761 ZIP
='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13769 # Create it, so that compile/link tests don't fail
13770 test -f libgcj.spec ||
touch libgcj.spec
13772 # We must search the source tree for java.lang, since we still don't
13773 # have libgcj.jar nor java/lang/*.class
13774 GCJ_SAVE_CPPFLAGS
=$CPPFLAGS
13775 CPPFLAGS
="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13777 # Since some classes depend on this one, we need its source available
13778 # before we can do any GCJ compilation test :-(
13779 if test ! -f gnu
/classpath
/Configuration.java
; then
13780 test -d gnu || mkdir gnu
13781 test -d gnu
/classpath || mkdir gnu
/classpath
13782 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13783 -e 's,@TOOLKIT@,$TOOLKIT,' \
13784 < $srcdir/gnu
/classpath
/Configuration.java.
in \
13785 > gnu
/classpath
/Configuration.java
13786 # We do not want to redirect the output of the grep below to /dev/null,
13787 # but we add /dev/null to the input list so that grep will print the
13788 # filename of Configuration.java in case it finds any matches.
13789 if grep @ gnu
/classpath
/Configuration.java
/dev
/null
; then
13790 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13791 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13792 { (exit 1); exit 1; }; }
13796 if test -n "$ac_tool_prefix"; then
13797 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13798 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
13799 echo "$as_me:$LINENO: checking for $ac_word" >&5
13800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13801 if test "${ac_cv_prog_GCJ+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 if test -n "$GCJ"; then
13805 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
13807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13808 for as_dir
in $PATH
13811 test -z "$as_dir" && as_dir
=.
13812 for ac_exec_ext
in '' $ac_executable_extensions; do
13813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13814 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
13815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13823 GCJ
=$ac_cv_prog_GCJ
13824 if test -n "$GCJ"; then
13825 echo "$as_me:$LINENO: result: $GCJ" >&5
13826 echo "${ECHO_T}$GCJ" >&6
13828 echo "$as_me:$LINENO: result: no" >&5
13829 echo "${ECHO_T}no" >&6
13833 if test -z "$ac_cv_prog_GCJ"; then
13835 # Extract the first word of "gcj", so it can be a program name with args.
13836 set dummy gcj
; ac_word
=$2
13837 echo "$as_me:$LINENO: checking for $ac_word" >&5
13838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13839 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 if test -n "$ac_ct_GCJ"; then
13843 ac_cv_prog_ac_ct_GCJ
="$ac_ct_GCJ" # Let the user override the test.
13845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13846 for as_dir
in $PATH
13849 test -z "$as_dir" && as_dir
=.
13850 for ac_exec_ext
in '' $ac_executable_extensions; do
13851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13852 ac_cv_prog_ac_ct_GCJ
="gcj"
13853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13859 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ
="no"
13862 ac_ct_GCJ
=$ac_cv_prog_ac_ct_GCJ
13863 if test -n "$ac_ct_GCJ"; then
13864 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13865 echo "${ECHO_T}$ac_ct_GCJ" >&6
13867 echo "$as_me:$LINENO: result: no" >&5
13868 echo "${ECHO_T}no" >&6
13873 GCJ
="$ac_cv_prog_GCJ"
13876 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
13881 CPPFLAGS
=$GCJ_SAVE_CPPFLAGS
13883 echo "$as_me:$LINENO: checking size of void *" >&5
13884 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13885 if test "${ac_cv_sizeof_void_p+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13889 cat >conftest.
$ac_ext <<_ACEOF
13892 cat confdefs.h
>>conftest.
$ac_ext
13893 cat >>conftest.
$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 #include "confdefs.h"
13896 #include <sys/types.h>
13902 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13907 rm -f conftest.
$ac_objext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13909 (eval $ac_compile) 2>conftest.er1
13911 grep -v '^ *+' conftest.er1
>conftest.err
13913 cat conftest.err
>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try
='test -z "$ac_c_werror_flag"
13917 || test ! -s conftest.err'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try
='test -s conftest.$ac_objext'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929 ac_cv_sizeof_void_p
=$ac_size
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.
$ac_ext >&5
13935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13936 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
13941 if test x
$ac_cv_sizeof_void_p = x
; then
13942 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13943 echo "$as_me: error: cannot determine a size for void *" >&2;}
13944 { (exit 1); exit 1; }; }
13946 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13947 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13949 cat >>confdefs.h
<<_ACEOF
13950 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13955 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13956 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13957 if test "${ac_cv_c_bigendian+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 ac_cv_c_bigendian
=unknown
13961 # See if sys/param.h defines the BYTE_ORDER macro.
13962 cat >conftest.
$ac_ext <<_ACEOF
13965 cat confdefs.h
>>conftest.
$ac_ext
13966 cat >>conftest.
$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #include <sys/types.h>
13969 #include <sys/param.h>
13974 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13975 bogus endian macros
13981 rm -f conftest.
$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>conftest.er1
13985 grep -v '^ *+' conftest.er1
>conftest.err
13987 cat conftest.err
>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try
='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try
='test -s conftest.$ac_objext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 # It does; now see whether it defined to BIG_ENDIAN or not.
14004 cat >conftest.
$ac_ext <<_ACEOF
14007 cat confdefs.h
>>conftest.
$ac_ext
14008 cat >>conftest.
$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 #include <sys/types.h>
14011 #include <sys/param.h>
14016 #if BYTE_ORDER != BIG_ENDIAN
14023 rm -f conftest.
$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>conftest.er1
14027 grep -v '^ *+' conftest.er1
>conftest.err
14029 cat conftest.err
>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try
='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try
='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_cv_c_bigendian
=yes
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.
$ac_ext >&5
14050 ac_cv_c_bigendian
=no
14052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.
$ac_ext >&5
14058 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14059 if test $ac_cv_c_bigendian = unknown
; then
14060 if test "$cross_compiling" = yes; then
14061 echo $ac_n "cross-compiling... " 2>&6
14063 cat >conftest.
$ac_ext <<_ACEOF
14066 cat confdefs.h
>>conftest.
$ac_ext
14067 cat >>conftest.
$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14070 /* Are we little or big endian? From Harbison&Steele. */
14074 char c[sizeof (long)];
14077 exit (u.c[sizeof (long) - 1] == 1);
14080 rm -f conftest
$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082 (eval $ac_link) 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 ac_cv_c_bigendian
=no
14093 echo "$as_me: program exited with status $ac_status" >&5
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.
$ac_ext >&5
14097 ( exit $ac_status )
14098 ac_cv_c_bigendian
=yes
14100 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14104 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14105 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14106 if test $ac_cv_c_bigendian = unknown
; then
14107 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
14108 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
14110 cat >conftest.c
<<EOF
14111 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14112 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14113 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
14114 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14115 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14116 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
14117 int main() { _ascii (); _ebcdic (); return 0; }
14119 if test -f conftest.c
; then
14120 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
14121 if test `grep -l BIGenDianSyS conftest.o` ; then
14122 echo $ac_n ' big endian probe OK, ' 1>&6
14123 ac_cv_c_bigendian
=yes
14125 if test `grep -l LiTTleEnDian conftest.o` ; then
14126 echo $ac_n ' little endian probe OK, ' 1>&6
14127 if test $ac_cv_c_bigendian = yes ; then
14128 ac_cv_c_bigendian
=unknown
;
14130 ac_cv_c_bigendian
=no
14133 echo $ac_n 'guessing bigendian ... ' >&6
14136 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14137 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14139 if test $ac_cv_c_bigendian = yes; then
14141 cat >>confdefs.h
<<\_ACEOF
14142 #define WORDS_BIGENDIAN 1
14146 cat >>confdefs.h
<<\_ACEOF
14147 #define HOST_WORDS_BIG_ENDIAN 1
14155 cat >>confdefs.h
<<_ACEOF
14156 #define BYTEORDER $BYTEORDER
14159 if test $ac_cv_c_bigendian = unknown
; then
14160 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
14161 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
14162 { (exit 1); exit 1; }; }
14170 if test -z "$ZLIBSPEC"; then
14171 # Use zlib from the GCC tree.
14172 ZINCS
='-I$(top_srcdir)/../zlib'
14173 ZLIBS
=..
/zlib
/libzgcj_convenience.la
14176 SYS_ZLIBS
="$ZLIBSPEC"
14188 if test "$NATIVE" = yes; then
14198 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14199 NEEDS_DATA_START_TRUE
=
14200 NEEDS_DATA_START_FALSE
='#'
14202 NEEDS_DATA_START_TRUE
='#'
14203 NEEDS_DATA_START_FALSE
=
14208 # Process the option "--enable-version-specific-runtime-libs"
14209 # Calculate toolexeclibdir
14210 case ${version_specific_libs} in
14212 # Need the gcc compiler version to know where to install libraries
14213 # and header files if --enable-version-specific-runtime-libs option
14215 includedir
='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include
/
14216 toolexecdir
='$(libdir)/gcc/$(target_noncanonical)'
14217 toolexecmainlibdir
='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
14218 toolexeclibdir
=$toolexecmainlibdir
14221 if test -n "$with_cross_host" &&
14222 test x
"$with_cross_host" != x
"no"; then
14223 # Install a library built with a cross compiler in tooldir, not libdir.
14224 toolexecdir
='$(exec_prefix)/$(target_noncanonical)'
14225 toolexecmainlibdir
='$(toolexecdir)/lib'
14227 toolexecdir
='$(libdir)/gcc-lib/$(target_noncanonical)'
14228 toolexecmainlibdir
='$(libdir)'
14230 multi_os_directory
=`$CC -print-multi-os-directory`
14231 case $multi_os_directory in
14232 .
) toolexeclibdir
=$toolexecmainlibdir ;; # Avoid trailing /.
14233 *) toolexeclibdir
=$toolexecmainlibdir/$multi_os_directory ;;
14241 # Determine gcj version number.
14242 gcjversion
=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14243 GCJVERSION
=$gcjversion
14246 cat >>confdefs.h
<<_ACEOF
14247 #define GCJVERSION "$GCJVERSION"
14251 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14252 # On that system, sys/ioctl.h will not include sys/filio.h unless
14253 # BSD_COMP is defined; just including sys/filio.h is simpler.
14273 for ac_header
in unistd.h bstring.h sys
/time.h sys
/types.h fcntl.h sys
/ioctl.h sys
/filio.h sys
/stat.h sys
/select.h sys
/socket.h netinet
/in.h arpa
/inet.h netdb.h net
/if.h
pwd.h sys
/config.h stdint.h langinfo.h locale.h
14275 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14277 echo "$as_me:$LINENO: checking for $ac_header" >&5
14278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14285 # Is the header compilable?
14286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14288 cat >conftest.
$ac_ext <<_ACEOF
14291 cat confdefs.h
>>conftest.
$ac_ext
14292 cat >>conftest.
$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14295 #include <$ac_header>
14297 rm -f conftest.
$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>conftest.er1
14301 grep -v '^ *+' conftest.er1
>conftest.err
14303 cat conftest.err
>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try
='test -z "$ac_c_werror_flag"
14307 || test ! -s conftest.err'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try
='test -s conftest.$ac_objext'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_header_compiler
=yes
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.
$ac_ext >&5
14324 ac_header_compiler
=no
14326 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14328 echo "${ECHO_T}$ac_header_compiler" >&6
14330 # Is the header present?
14331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14333 cat >conftest.
$ac_ext <<_ACEOF
14336 cat confdefs.h
>>conftest.
$ac_ext
14337 cat >>conftest.
$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 #include <$ac_header>
14341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14342 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14344 grep -v '^ *+' conftest.er1
>conftest.err
14346 cat conftest.err
>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } >/dev
/null
; then
14349 if test -s conftest.err
; then
14350 ac_cpp_err
=$ac_c_preproc_warn_flag
14351 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14358 if test -z "$ac_cpp_err"; then
14359 ac_header_preproc
=yes
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.
$ac_ext >&5
14364 ac_header_preproc
=no
14366 rm -f conftest.err conftest.
$ac_ext
14367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14368 echo "${ECHO_T}$ac_header_preproc" >&6
14370 # So? What about this header?
14371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14377 ac_header_preproc
=yes
14380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14394 ## ---------------------------------- ##
14395 ## Report this to the libjava lists. ##
14396 ## ---------------------------------- ##
14399 sed "s/^/$as_me: WARNING: /" >&2
14402 echo "$as_me:$LINENO: checking for $ac_header" >&5
14403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 eval "$as_ac_Header=\$ac_header_preproc"
14409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14414 cat >>confdefs.h
<<_ACEOF
14415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14422 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14423 # for now. If you change this, you also must update natFile.cc.
14425 for ac_header
in dirent.h
14427 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14429 echo "$as_me:$LINENO: checking for $ac_header" >&5
14430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14437 # Is the header compilable?
14438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14440 cat >conftest.
$ac_ext <<_ACEOF
14443 cat confdefs.h
>>conftest.
$ac_ext
14444 cat >>conftest.
$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 $ac_includes_default
14447 #include <$ac_header>
14449 rm -f conftest.
$ac_objext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>conftest.er1
14453 grep -v '^ *+' conftest.er1
>conftest.err
14455 cat conftest.err
>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try
='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try
='test -s conftest.$ac_objext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_header_compiler
=yes
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.
$ac_ext >&5
14476 ac_header_compiler
=no
14478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14480 echo "${ECHO_T}$ac_header_compiler" >&6
14482 # Is the header present?
14483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14485 cat >conftest.
$ac_ext <<_ACEOF
14488 cat confdefs.h
>>conftest.
$ac_ext
14489 cat >>conftest.
$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 #include <$ac_header>
14493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14494 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14496 grep -v '^ *+' conftest.er1
>conftest.err
14498 cat conftest.err
>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } >/dev
/null
; then
14501 if test -s conftest.err
; then
14502 ac_cpp_err
=$ac_c_preproc_warn_flag
14503 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14510 if test -z "$ac_cpp_err"; then
14511 ac_header_preproc
=yes
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.
$ac_ext >&5
14516 ac_header_preproc
=no
14518 rm -f conftest.err conftest.
$ac_ext
14519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14520 echo "${ECHO_T}$ac_header_preproc" >&6
14522 # So? What about this header?
14523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14529 ac_header_preproc
=yes
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14546 ## ---------------------------------- ##
14547 ## Report this to the libjava lists. ##
14548 ## ---------------------------------- ##
14551 sed "s/^/$as_me: WARNING: /" >&2
14554 echo "$as_me:$LINENO: checking for $ac_header" >&5
14555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 eval "$as_ac_Header=\$ac_header_preproc"
14561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14566 cat >>confdefs.h
<<_ACEOF
14567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575 for ac_header
in inttypes.h
14577 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14579 echo "$as_me:$LINENO: checking for $ac_header" >&5
14580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14587 # Is the header compilable?
14588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14590 cat >conftest.
$ac_ext <<_ACEOF
14593 cat confdefs.h
>>conftest.
$ac_ext
14594 cat >>conftest.
$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 $ac_includes_default
14597 #include <$ac_header>
14599 rm -f conftest.
$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601 (eval $ac_compile) 2>conftest.er1
14603 grep -v '^ *+' conftest.er1
>conftest.err
14605 cat conftest.err
>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try
='test -z "$ac_c_werror_flag"
14609 || test ! -s conftest.err'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } &&
14615 { ac_try
='test -s conftest.$ac_objext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_header_compiler
=yes
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.
$ac_ext >&5
14626 ac_header_compiler
=no
14628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14630 echo "${ECHO_T}$ac_header_compiler" >&6
14632 # Is the header present?
14633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14635 cat >conftest.
$ac_ext <<_ACEOF
14638 cat confdefs.h
>>conftest.
$ac_ext
14639 cat >>conftest.
$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 #include <$ac_header>
14643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14644 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14646 grep -v '^ *+' conftest.er1
>conftest.err
14648 cat conftest.err
>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } >/dev
/null
; then
14651 if test -s conftest.err
; then
14652 ac_cpp_err
=$ac_c_preproc_warn_flag
14653 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14660 if test -z "$ac_cpp_err"; then
14661 ac_header_preproc
=yes
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.
$ac_ext >&5
14666 ac_header_preproc
=no
14668 rm -f conftest.err conftest.
$ac_ext
14669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14670 echo "${ECHO_T}$ac_header_preproc" >&6
14672 # So? What about this header?
14673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14679 ac_header_preproc
=yes
14682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14696 ## ---------------------------------- ##
14697 ## Report this to the libjava lists. ##
14698 ## ---------------------------------- ##
14701 sed "s/^/$as_me: WARNING: /" >&2
14704 echo "$as_me:$LINENO: checking for $ac_header" >&5
14705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 eval "$as_ac_Header=\$ac_header_preproc"
14711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14716 cat >>confdefs.h
<<_ACEOF
14717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14721 cat >>confdefs.h
<<\_ACEOF
14722 #define HAVE_INTTYPES_H 1
14726 cat >>confdefs.h
<<\_ACEOF
14727 #define JV_HAVE_INTTYPES_H 1
14735 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14736 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14737 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 cat >conftest.
$ac_ext <<_ACEOF
14743 cat confdefs.h
>>conftest.
$ac_ext
14744 cat >>conftest.
$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 #include <sys/types.h>
14747 #include <sys/wait.h>
14748 #ifndef WEXITSTATUS
14749 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14752 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14760 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14765 rm -f conftest.
$ac_objext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14767 (eval $ac_compile) 2>conftest.er1
14769 grep -v '^ *+' conftest.er1
>conftest.err
14771 cat conftest.err
>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try
='test -z "$ac_c_werror_flag"
14775 || test ! -s conftest.err'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; } &&
14781 { ac_try
='test -s conftest.$ac_objext'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
14787 ac_cv_header_sys_wait_h
=yes
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.
$ac_ext >&5
14792 ac_cv_header_sys_wait_h
=no
14794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14796 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14797 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14798 if test $ac_cv_header_sys_wait_h = yes; then
14800 cat >>confdefs.h
<<\_ACEOF
14801 #define HAVE_SYS_WAIT_H 1
14807 echo "$as_me:$LINENO: checking for ssize_t" >&5
14808 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14809 if test "${ac_cv_type_ssize_t+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 cat >conftest.
$ac_ext <<_ACEOF
14815 cat confdefs.h
>>conftest.
$ac_ext
14816 cat >>conftest.
$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 $ac_includes_default
14824 if (sizeof (ssize_t))
14830 rm -f conftest.
$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>conftest.er1
14834 grep -v '^ *+' conftest.er1
>conftest.err
14836 cat conftest.err
>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try
='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try
='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_cv_type_ssize_t
=yes
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.
$ac_ext >&5
14857 ac_cv_type_ssize_t
=no
14859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14861 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14862 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14863 if test $ac_cv_type_ssize_t = yes; then
14867 cat >>confdefs.h
<<_ACEOF
14868 #define ssize_t int
14874 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14875 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14876 cat >conftest.
$ac_ext <<_ACEOF
14879 cat confdefs.h
>>conftest.
$ac_ext
14880 cat >>conftest.
$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #include <sys/types.h>
14884 #include <stdlib.h>
14885 #include <stddef.h>
14887 #if HAVE_NETINET_IN_H
14888 #include <netinet/in.h>
14898 rm -f conftest.
$ac_objext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900 (eval $ac_compile) 2>conftest.er1
14902 grep -v '^ *+' conftest.er1
>conftest.err
14904 cat conftest.err
>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try
='test -z "$ac_c_werror_flag"
14908 || test ! -s conftest.err'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try
='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14921 cat >>confdefs.h
<<\_ACEOF
14922 #define HAVE_IN_ADDR_T 1
14925 echo "$as_me:$LINENO: result: yes" >&5
14926 echo "${ECHO_T}yes" >&6
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.
$ac_ext >&5
14931 echo "$as_me:$LINENO: result: no" >&5
14932 echo "${ECHO_T}no" >&6
14934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14936 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14937 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14938 cat >conftest.
$ac_ext <<_ACEOF
14941 cat confdefs.h
>>conftest.
$ac_ext
14942 cat >>conftest.
$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <netinet/in.h>
14948 struct ip_mreq mreq;
14953 rm -f conftest.
$ac_objext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14955 (eval $ac_compile) 2>conftest.er1
14957 grep -v '^ *+' conftest.er1
>conftest.err
14959 cat conftest.err
>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try
='test -z "$ac_c_werror_flag"
14963 || test ! -s conftest.err'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try
='test -s conftest.$ac_objext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14976 cat >>confdefs.h
<<\_ACEOF
14977 #define HAVE_STRUCT_IP_MREQ 1
14980 echo "$as_me:$LINENO: result: yes" >&5
14981 echo "${ECHO_T}yes" >&6
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.
$ac_ext >&5
14986 echo "$as_me:$LINENO: result: no" >&5
14987 echo "${ECHO_T}no" >&6
14989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14991 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14992 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14993 cat >conftest.
$ac_ext <<_ACEOF
14996 cat confdefs.h
>>conftest.
$ac_ext
14997 cat >>conftest.
$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
14999 #include <netinet/in.h>
15003 struct ipv6_mreq mreq6;
15008 rm -f conftest.
$ac_objext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010 (eval $ac_compile) 2>conftest.er1
15012 grep -v '^ *+' conftest.er1
>conftest.err
15014 cat conftest.err
>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try
='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try
='test -s conftest.$ac_objext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15031 cat >>confdefs.h
<<\_ACEOF
15032 #define HAVE_STRUCT_IPV6_MREQ 1
15035 echo "$as_me:$LINENO: result: yes" >&5
15036 echo "${ECHO_T}yes" >&6
15038 echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.
$ac_ext >&5
15041 echo "$as_me:$LINENO: result: no" >&5
15042 echo "${ECHO_T}no" >&6
15044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15046 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15047 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15048 cat >conftest.
$ac_ext <<_ACEOF
15051 cat confdefs.h
>>conftest.
$ac_ext
15052 cat >>conftest.
$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054 #include <netinet/in.h>
15058 struct sockaddr_in6 addr6;
15063 rm -f conftest.
$ac_objext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15065 (eval $ac_compile) 2>conftest.er1
15067 grep -v '^ *+' conftest.er1
>conftest.err
15069 cat conftest.err
>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try
='test -z "$ac_c_werror_flag"
15073 || test ! -s conftest.err'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try
='test -s conftest.$ac_objext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15086 cat >>confdefs.h
<<\_ACEOF
15087 #define HAVE_INET6 1
15090 echo "$as_me:$LINENO: result: yes" >&5
15091 echo "${ECHO_T}yes" >&6
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.
$ac_ext >&5
15096 echo "$as_me:$LINENO: result: no" >&5
15097 echo "${ECHO_T}no" >&6
15099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15101 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15102 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15103 cat >conftest.
$ac_ext <<_ACEOF
15106 cat confdefs.h
>>conftest.
$ac_ext
15107 cat >>conftest.
$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 #define _POSIX_PII_SOCKET
15110 #include <sys/types.h>
15111 #include <sys/socket.h>
15120 rm -f conftest.
$ac_objext
15121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15122 (eval $ac_compile) 2>conftest.er1
15124 grep -v '^ *+' conftest.er1
>conftest.err
15126 cat conftest.err
>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try
='test -z "$ac_c_werror_flag"
15130 || test ! -s conftest.err'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } &&
15136 { ac_try
='test -s conftest.$ac_objext'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15143 cat >>confdefs.h
<<\_ACEOF
15144 #define HAVE_SOCKLEN_T 1
15147 echo "$as_me:$LINENO: result: yes" >&5
15148 echo "${ECHO_T}yes" >&6
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.
$ac_ext >&5
15153 echo "$as_me:$LINENO: result: no" >&5
15154 echo "${ECHO_T}no" >&6
15156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15158 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15159 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15160 cat >conftest.
$ac_ext <<_ACEOF
15163 cat confdefs.h
>>conftest.
$ac_ext
15164 cat >>conftest.
$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15170 struct tm tim; tim.tm_gmtoff = 0;
15175 rm -f conftest.
$ac_objext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15177 (eval $ac_compile) 2>conftest.er1
15179 grep -v '^ *+' conftest.er1
>conftest.err
15181 cat conftest.err
>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try
='test -z "$ac_c_werror_flag"
15185 || test ! -s conftest.err'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try
='test -s conftest.$ac_objext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15198 cat >>confdefs.h
<<\_ACEOF
15199 #define STRUCT_TM_HAS_GMTOFF 1
15202 echo "$as_me:$LINENO: result: yes" >&5
15203 echo "${ECHO_T}yes" >&6
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.
$ac_ext >&5
15208 echo "$as_me:$LINENO: result: no" >&5
15209 echo "${ECHO_T}no" >&6
15210 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15211 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15212 cat >conftest.
$ac_ext <<_ACEOF
15215 cat confdefs.h
>>conftest.
$ac_ext
15216 cat >>conftest.
$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15222 void i(){long z2 = 2*timezone;}
15227 rm -f conftest.
$ac_objext
15228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15229 (eval $ac_compile) 2>conftest.er1
15231 grep -v '^ *+' conftest.er1
>conftest.err
15233 cat conftest.err
>&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } &&
15236 { ac_try
='test -z "$ac_c_werror_flag"
15237 || test ! -s conftest.err'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; } &&
15243 { ac_try
='test -s conftest.$ac_objext'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15250 cat >>confdefs.h
<<\_ACEOF
15251 #define HAVE_TIMEZONE 1
15254 echo "$as_me:$LINENO: result: yes" >&5
15255 echo "${ECHO_T}yes" >&6
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.
$ac_ext >&5
15260 echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6
15262 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15263 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15264 cat >conftest.
$ac_ext <<_ACEOF
15267 cat confdefs.h
>>conftest.
$ac_ext
15268 cat >>conftest.
$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15274 long z2 = _timezone;
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
15302 cat >>confdefs.h
<<\_ACEOF
15303 #define HAVE_UNDERSCORE_TIMEZONE 1
15306 echo "$as_me:$LINENO: result: yes" >&5
15307 echo "${ECHO_T}yes" >&6
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.
$ac_ext >&5
15312 echo "$as_me:$LINENO: result: no" >&5
15313 echo "${ECHO_T}no" >&6
15315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15321 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15322 # for constant arguments. Useless!
15323 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15324 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15325 if test "${ac_cv_working_alloca_h+set}" = set; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 if test x
$gcc_no_link = xyes
; then
15329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15331 { (exit 1); exit 1; }; }
15333 cat >conftest.
$ac_ext <<_ACEOF
15336 cat confdefs.h
>>conftest.
$ac_ext
15337 cat >>conftest.
$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 #include <alloca.h>
15343 char *p = (char *) alloca (2 * sizeof (int));
15348 rm -f conftest.
$ac_objext conftest
$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350 (eval $ac_link) 2>conftest.er1
15352 grep -v '^ *+' conftest.er1
>conftest.err
15354 cat conftest.err
>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
15357 { ac_try
='test -z "$ac_c_werror_flag"
15358 || test ! -s conftest.err'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try
='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_working_alloca_h
=yes
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.
$ac_ext >&5
15375 ac_cv_working_alloca_h
=no
15377 rm -f conftest.err conftest.
$ac_objext \
15378 conftest
$ac_exeext conftest.
$ac_ext
15380 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15381 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15382 if test $ac_cv_working_alloca_h = yes; then
15384 cat >>confdefs.h
<<\_ACEOF
15385 #define HAVE_ALLOCA_H 1
15390 echo "$as_me:$LINENO: checking for alloca" >&5
15391 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15392 if test "${ac_cv_func_alloca_works+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 if test x
$gcc_no_link = xyes
; then
15396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15398 { (exit 1); exit 1; }; }
15400 cat >conftest.
$ac_ext <<_ACEOF
15403 cat confdefs.h
>>conftest.
$ac_ext
15404 cat >>conftest.
$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15407 # define alloca __builtin_alloca
15410 # include <malloc.h>
15411 # define alloca _alloca
15414 # include <alloca.h>
15419 # ifndef alloca /* predefined by HP cc +Olibcalls */
15430 char *p = (char *) alloca (1);
15435 rm -f conftest.
$ac_objext conftest
$ac_exeext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15437 (eval $ac_link) 2>conftest.er1
15439 grep -v '^ *+' conftest.er1
>conftest.err
15441 cat conftest.err
>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try
='test -z "$ac_c_werror_flag"
15445 || test ! -s conftest.err'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } &&
15451 { ac_try
='test -s conftest$ac_exeext'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457 ac_cv_func_alloca_works
=yes
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.
$ac_ext >&5
15462 ac_cv_func_alloca_works
=no
15464 rm -f conftest.err conftest.
$ac_objext \
15465 conftest
$ac_exeext conftest.
$ac_ext
15467 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15468 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15470 if test $ac_cv_func_alloca_works = yes; then
15472 cat >>confdefs.h
<<\_ACEOF
15473 #define HAVE_ALLOCA 1
15477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15478 # that cause trouble. Some versions do not even contain alloca or
15479 # contain a buggy version. If you still want to use their alloca,
15480 # use ar to extract alloca.o from them instead of compiling alloca.c.
15482 ALLOCA
=alloca.
$ac_objext
15484 cat >>confdefs.h
<<\_ACEOF
15489 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15490 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15491 if test "${ac_cv_os_cray+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 cat >conftest.
$ac_ext <<_ACEOF
15497 cat confdefs.h
>>conftest.
$ac_ext
15498 cat >>conftest.
$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 #if defined(CRAY) && ! defined(CRAY2)
15507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15508 $EGREP "webecray" >/dev
/null
2>&1; then
15516 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15517 echo "${ECHO_T}$ac_cv_os_cray" >&6
15518 if test $ac_cv_os_cray = yes; then
15519 for ac_func
in _getb67 GETB67 getb67
; do
15520 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15521 echo "$as_me:$LINENO: checking for $ac_func" >&5
15522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15523 if eval "test \"\${$as_ac_var+set}\" = set"; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 if test x
$gcc_no_link = xyes
; then
15527 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15529 { (exit 1); exit 1; }; }
15531 cat >conftest.
$ac_ext <<_ACEOF
15534 cat confdefs.h
>>conftest.
$ac_ext
15535 cat >>conftest.
$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define $ac_func innocuous_$ac_func
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char $ac_func (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15547 # include <limits.h>
15549 # include <assert.h>
15554 /* Override any gcc2 internal prototype to avoid an error. */
15559 /* We use char because int might match the return type of a gcc2
15560 builtin and then its argument prototype would still apply. */
15562 /* The GNU C library defines this for functions which it implements
15563 to always fail with ENOSYS. Some functions are actually named
15564 something starting with __ and the normal name is an alias. */
15565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15568 char (*f) () = $ac_func;
15577 return f != $ac_func;
15582 rm -f conftest.
$ac_objext conftest
$ac_exeext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15584 (eval $ac_link) 2>conftest.er1
15586 grep -v '^ *+' conftest.er1
>conftest.err
15588 cat conftest.err
>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try
='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try
='test -s conftest$ac_exeext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 eval "$as_ac_var=yes"
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.
$ac_ext >&5
15609 eval "$as_ac_var=no"
15611 rm -f conftest.err conftest.
$ac_objext \
15612 conftest
$ac_exeext conftest.
$ac_ext
15614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15616 if test `eval echo '${'$as_ac_var'}'` = yes; then
15618 cat >>confdefs.h
<<_ACEOF
15619 #define CRAY_STACKSEG_END $ac_func
15628 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15629 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15630 if test "${ac_cv_c_stack_direction+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 if test "$cross_compiling" = yes; then
15634 ac_cv_c_stack_direction
=0
15636 cat >conftest.
$ac_ext <<_ACEOF
15639 cat confdefs.h
>>conftest.
$ac_ext
15640 cat >>conftest.
$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15643 find_stack_direction ()
15645 static char *addr = 0;
15650 return find_stack_direction ();
15653 return (&dummy > addr) ? 1 : -1;
15659 exit (find_stack_direction () < 0);
15662 rm -f conftest
$ac_exeext
15663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15664 (eval $ac_link) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_cv_c_stack_direction
=1
15675 echo "$as_me: program exited with status $ac_status" >&5
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.
$ac_ext >&5
15679 ( exit $ac_status )
15680 ac_cv_c_stack_direction
=-1
15682 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15685 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15686 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15688 cat >>confdefs.h
<<_ACEOF
15689 #define STACK_DIRECTION $ac_cv_c_stack_direction
15695 if test x
$gcc_no_link = xyes
; then
15696 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
15697 ac_cv_func_mmap_fixed_mapped
=no
15700 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
15703 for ac_header
in stdlib.h unistd.h
15705 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15707 echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15715 # Is the header compilable?
15716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15718 cat >conftest.
$ac_ext <<_ACEOF
15721 cat confdefs.h
>>conftest.
$ac_ext
15722 cat >>conftest.
$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 $ac_includes_default
15725 #include <$ac_header>
15727 rm -f conftest.
$ac_objext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15729 (eval $ac_compile) 2>conftest.er1
15731 grep -v '^ *+' conftest.er1
>conftest.err
15733 cat conftest.err
>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try
='test -z "$ac_c_werror_flag"
15737 || test ! -s conftest.err'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try
='test -s conftest.$ac_objext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_header_compiler
=yes
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.
$ac_ext >&5
15754 ac_header_compiler
=no
15756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758 echo "${ECHO_T}$ac_header_compiler" >&6
15760 # Is the header present?
15761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15763 cat >conftest.
$ac_ext <<_ACEOF
15766 cat confdefs.h
>>conftest.
$ac_ext
15767 cat >>conftest.
$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 #include <$ac_header>
15771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15772 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15774 grep -v '^ *+' conftest.er1
>conftest.err
15776 cat conftest.err
>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } >/dev
/null
; then
15779 if test -s conftest.err
; then
15780 ac_cpp_err
=$ac_c_preproc_warn_flag
15781 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15788 if test -z "$ac_cpp_err"; then
15789 ac_header_preproc
=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.
$ac_ext >&5
15794 ac_header_preproc
=no
15796 rm -f conftest.err conftest.
$ac_ext
15797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15798 echo "${ECHO_T}$ac_header_preproc" >&6
15800 # So? What about this header?
15801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15807 ac_header_preproc
=yes
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15824 ## ---------------------------------- ##
15825 ## Report this to the libjava lists. ##
15826 ## ---------------------------------- ##
15829 sed "s/^/$as_me: WARNING: /" >&2
15832 echo "$as_me:$LINENO: checking for $ac_header" >&5
15833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 eval "$as_ac_Header=\$ac_header_preproc"
15839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15844 cat >>confdefs.h
<<_ACEOF
15845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15853 for ac_func
in getpagesize
15855 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15856 echo "$as_me:$LINENO: checking for $ac_func" >&5
15857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15858 if eval "test \"\${$as_ac_var+set}\" = set"; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 if test x
$gcc_no_link = xyes
; then
15862 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15864 { (exit 1); exit 1; }; }
15866 cat >conftest.
$ac_ext <<_ACEOF
15869 cat confdefs.h
>>conftest.
$ac_ext
15870 cat >>conftest.
$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15874 #define $ac_func innocuous_$ac_func
15876 /* System header to define __stub macros and hopefully few prototypes,
15877 which can conflict with char $ac_func (); below.
15878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15879 <limits.h> exists even on freestanding compilers. */
15882 # include <limits.h>
15884 # include <assert.h>
15889 /* Override any gcc2 internal prototype to avoid an error. */
15894 /* We use char because int might match the return type of a gcc2
15895 builtin and then its argument prototype would still apply. */
15897 /* The GNU C library defines this for functions which it implements
15898 to always fail with ENOSYS. Some functions are actually named
15899 something starting with __ and the normal name is an alias. */
15900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15903 char (*f) () = $ac_func;
15912 return f != $ac_func;
15917 rm -f conftest.
$ac_objext conftest
$ac_exeext
15918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15919 (eval $ac_link) 2>conftest.er1
15921 grep -v '^ *+' conftest.er1
>conftest.err
15923 cat conftest.err
>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try
='test -z "$ac_c_werror_flag"
15927 || test ! -s conftest.err'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try
='test -s conftest$ac_exeext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 eval "$as_ac_var=yes"
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.
$ac_ext >&5
15944 eval "$as_ac_var=no"
15946 rm -f conftest.err conftest.
$ac_objext \
15947 conftest
$ac_exeext conftest.
$ac_ext
15949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15951 if test `eval echo '${'$as_ac_var'}'` = yes; then
15952 cat >>confdefs.h
<<_ACEOF
15953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15959 echo "$as_me:$LINENO: checking for working mmap" >&5
15960 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15961 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 if test "$cross_compiling" = yes; then
15965 ac_cv_func_mmap_fixed_mapped
=no
15967 cat >conftest.
$ac_ext <<_ACEOF
15970 cat confdefs.h
>>conftest.
$ac_ext
15971 cat >>conftest.
$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 $ac_includes_default
15974 /* malloc might have been renamed as rpl_malloc. */
15977 /* Thanks to Mike Haertel and Jim Avera for this test.
15978 Here is a matrix of mmap possibilities:
15979 mmap private not fixed
15980 mmap private fixed at somewhere currently unmapped
15981 mmap private fixed at somewhere already mapped
15982 mmap shared not fixed
15983 mmap shared fixed at somewhere currently unmapped
15984 mmap shared fixed at somewhere already mapped
15985 For private mappings, we should verify that changes cannot be read()
15986 back from the file, nor mmap's back from the file at a different
15987 address. (There have been systems where private was not correctly
15988 implemented like the infamous i386 svr4.0, and systems where the
15989 VM page cache was not coherent with the file system buffer cache
15990 like early versions of FreeBSD and possibly contemporary NetBSD.)
15991 For shared mappings, we should conversely verify that changes get
15992 propagated back to all the places they're supposed to be.
15994 Grep wants private fixed already mapped.
15995 The main things grep needs to know about mmap are:
15996 * does it exist and is it safe to write into the mmap'd area
15997 * how to use it (BSD variants) */
16000 #include <sys/mman.h>
16002 #if !STDC_HEADERS && !HAVE_STDLIB_H
16006 /* This mess was copied from the GNU getpagesize.h. */
16007 #if !HAVE_GETPAGESIZE
16008 /* Assume that all systems that can run configure have sys/param.h. */
16009 # if !HAVE_SYS_PARAM_H
16010 # define HAVE_SYS_PARAM_H 1
16013 # ifdef _SC_PAGESIZE
16014 # define getpagesize() sysconf(_SC_PAGESIZE)
16015 # else /* no _SC_PAGESIZE */
16016 # if HAVE_SYS_PARAM_H
16017 # include <sys/param.h>
16018 # ifdef EXEC_PAGESIZE
16019 # define getpagesize() EXEC_PAGESIZE
16020 # else /* no EXEC_PAGESIZE */
16022 # define getpagesize() NBPG * CLSIZE
16025 # endif /* no CLSIZE */
16026 # else /* no NBPG */
16028 # define getpagesize() NBPC
16029 # else /* no NBPC */
16031 # define getpagesize() PAGESIZE
16032 # endif /* PAGESIZE */
16033 # endif /* no NBPC */
16034 # endif /* no NBPG */
16035 # endif /* no EXEC_PAGESIZE */
16036 # else /* no HAVE_SYS_PARAM_H */
16037 # define getpagesize() 8192 /* punt totally */
16038 # endif /* no HAVE_SYS_PARAM_H */
16039 # endif /* no _SC_PAGESIZE */
16041 #endif /* no HAVE_GETPAGESIZE */
16046 char *data, *data2, *data3;
16050 pagesize = getpagesize ();
16052 /* First, make a file with some known garbage in it. */
16053 data = (char *) malloc (pagesize);
16056 for (i = 0; i < pagesize; ++i)
16057 *(data + i) = rand ();
16059 fd = creat ("conftest.mmap", 0600);
16062 if (write (fd, data, pagesize) != pagesize)
16066 /* Next, try to mmap the file at a fixed address which already has
16067 something else allocated at it. If we can, also make sure that
16068 we see the same garbage. */
16069 fd = open ("conftest.mmap", O_RDWR);
16072 data2 = (char *) malloc (2 * pagesize);
16075 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16076 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16077 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16079 for (i = 0; i < pagesize; ++i)
16080 if (*(data + i) != *(data2 + i))
16083 /* Finally, make sure that changes to the mapped area do not
16084 percolate back to the file as seen by read(). (This is a bug on
16085 some variants of i386 svr4.0.) */
16086 for (i = 0; i < pagesize; ++i)
16087 *(data2 + i) = *(data2 + i) + 1;
16088 data3 = (char *) malloc (pagesize);
16091 if (read (fd, data3, pagesize) != pagesize)
16093 for (i = 0; i < pagesize; ++i)
16094 if (*(data + i) != *(data3 + i))
16100 rm -f conftest
$ac_exeext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102 (eval $ac_link) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_cv_func_mmap_fixed_mapped
=yes
16113 echo "$as_me: program exited with status $ac_status" >&5
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.
$ac_ext >&5
16117 ( exit $ac_status )
16118 ac_cv_func_mmap_fixed_mapped
=no
16120 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16123 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16124 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16125 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16127 cat >>confdefs.h
<<\_ACEOF
16128 #define HAVE_MMAP 1
16132 rm -f conftest.mmap
16136 for ac_prog
in perl
16138 # Extract the first word of "$ac_prog", so it can be a program name with args.
16139 set dummy
$ac_prog; ac_word
=$2
16140 echo "$as_me:$LINENO: checking for $ac_word" >&5
16141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16142 if test "${ac_cv_prog_PERL+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 if test -n "$PERL"; then
16146 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
16148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16149 for as_dir
in $PATH
16152 test -z "$as_dir" && as_dir
=.
16153 for ac_exec_ext
in '' $ac_executable_extensions; do
16154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16155 ac_cv_prog_PERL
="$ac_prog"
16156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16164 PERL
=$ac_cv_prog_PERL
16165 if test -n "$PERL"; then
16166 echo "$as_me:$LINENO: result: $PERL" >&5
16167 echo "${ECHO_T}$PERL" >&6
16169 echo "$as_me:$LINENO: result: no" >&5
16170 echo "${ECHO_T}no" >&6
16173 test -n "$PERL" && break
16175 test -n "$PERL" || PERL
="false"
16179 SIGNAL_HANDLER_AUX
=
16183 SIGNAL_HANDLER
=include
/i386-signal.h
16185 sparc
*-sun-solaris*)
16186 SIGNAL_HANDLER
=include
/sparc-signal.h
16189 # SYSDEP_SOURCES=sysdep/ia64.c
16190 # test -d sysdep || mkdir sysdep
16193 SIGNAL_HANDLER
=include
/pa-signal.h
16196 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16199 SIGNAL_HANDLER
=include
/powerpc-signal.h
16202 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16205 SIGNAL_HANDLER
=include
/s390-signal.h
16208 SIGNAL_HANDLER
=include
/x86_64-signal.h
16209 SIGNAL_HANDLER_AUX
=include
/i386-signal.h
16212 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16214 sh-
*-linux* | sh
[34]*-*-linux*)
16215 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16218 SIGNAL_HANDLER
=include
/win32-signal.h
16221 SIGNAL_HANDLER
=include
/mips-signal.h
16224 SIGNAL_HANDLER
=include
/darwin-signal.h
16227 SIGNAL_HANDLER
=include
/default-signal.h
16231 # If we're using sjlj exceptions, forget what we just learned.
16232 if test "$enable_sjlj_exceptions" = yes; then
16233 SIGNAL_HANDLER
=include
/default-signal.h
16234 SIGNAL_HANDLER_AUX
=
16237 # Define here any compiler flags that you need in order to make backtrace() work.
16240 x86_64
*-*-linux*|i?
86-*)
16241 BACKTRACESPEC
=-fno-omit-frame-pointer
16248 if test -z "$SIGNAL_HANDLER_AUX"; then
16249 SIGNAL_HANDLER_AUX
=$SIGNAL_HANDLER
16252 ac_config_links
="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16255 if test "${multilib}" = "yes"; then
16256 multilib_arg
="--enable-multilib"
16263 here
=`${PWDCMD-pwd}`
16266 # We get this from the environment.
16269 ac_config_files
="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
16272 ac_config_commands
="$ac_config_commands default"
16275 cat >confcache
<<\_ACEOF
16276 # This file is a shell script that caches the results of configure
16277 # tests run on this system so they can be shared between configure
16278 # scripts and configure runs, see configure's option --config-cache.
16279 # It is not useful on other systems. If it contains results you don't
16280 # want to keep, you may remove or edit it.
16282 # config.status only pays attention to the cache file if you give it
16283 # the --recheck option to rerun configure.
16285 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16286 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16287 # following values.
16291 # The following way of writing the cache mishandles newlines in values,
16292 # but we know of no workaround that is simple, portable, and efficient.
16293 # So, don't put newlines in cache variables' values.
16294 # Ultrix sh set writes to stderr and can't be redirected directly,
16295 # and sets the high bit in the cache file unless we assign to the vars.
16298 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16300 # `set' does not quote correctly, so add quotes (double-quote
16301 # substitution turns \\\\ into \\, and sed turns \\ into \).
16304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16307 # `set' quotes correctly as required by POSIX, so do not add quotes.
16309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16318 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16320 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16321 if test -w $cache_file; then
16322 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16323 cat confcache
>$cache_file
16325 echo "not updating unwritable cache $cache_file"
16330 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16331 # Let make expand exec_prefix.
16332 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16336 # trailing colons and then remove the whole line if VPATH becomes empty
16337 # (actually we leave an empty line to preserve line numbers).
16338 if test "x$srcdir" = x.
; then
16339 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16340 s/:*\$(srcdir):*/:/;
16341 s/:*\${srcdir}:*/:/;
16343 s/^\([^=]*=[ ]*\):*/\1/;
16349 DEFS
=-DHAVE_CONFIG_H
16353 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16354 # 1. Remove the extension, and $U if already installed.
16355 ac_i
=`echo "$ac_i" |
16356 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16358 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16359 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16361 LIBOBJS
=$ac_libobjs
16363 LTLIBOBJS
=$ac_ltlibobjs
16366 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16367 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16368 Usually this means the macro was only invoked conditionally." >&5
16369 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16370 Usually this means the macro was only invoked conditionally." >&2;}
16371 { (exit 1); exit 1; }; }
16373 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16374 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16375 Usually this means the macro was only invoked conditionally." >&5
16376 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16377 Usually this means the macro was only invoked conditionally." >&2;}
16378 { (exit 1); exit 1; }; }
16380 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16381 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16382 Usually this means the macro was only invoked conditionally." >&5
16383 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16384 Usually this means the macro was only invoked conditionally." >&2;}
16385 { (exit 1); exit 1; }; }
16387 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16388 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16389 Usually this means the macro was only invoked conditionally." >&5
16390 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16391 Usually this means the macro was only invoked conditionally." >&2;}
16392 { (exit 1); exit 1; }; }
16394 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16395 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16396 Usually this means the macro was only invoked conditionally." >&5
16397 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16398 Usually this means the macro was only invoked conditionally." >&2;}
16399 { (exit 1); exit 1; }; }
16401 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16402 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16403 Usually this means the macro was only invoked conditionally." >&5
16404 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16405 Usually this means the macro was only invoked conditionally." >&2;}
16406 { (exit 1); exit 1; }; }
16408 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
16409 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
16410 Usually this means the macro was only invoked conditionally." >&5
16411 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
16412 Usually this means the macro was only invoked conditionally." >&2;}
16413 { (exit 1); exit 1; }; }
16415 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16416 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16417 Usually this means the macro was only invoked conditionally." >&5
16418 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16419 Usually this means the macro was only invoked conditionally." >&2;}
16420 { (exit 1); exit 1; }; }
16422 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16423 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16424 Usually this means the macro was only invoked conditionally." >&5
16425 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16426 Usually this means the macro was only invoked conditionally." >&2;}
16427 { (exit 1); exit 1; }; }
16429 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16430 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16431 Usually this means the macro was only invoked conditionally." >&5
16432 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16433 Usually this means the macro was only invoked conditionally." >&2;}
16434 { (exit 1); exit 1; }; }
16436 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16437 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16438 Usually this means the macro was only invoked conditionally." >&5
16439 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16440 Usually this means the macro was only invoked conditionally." >&2;}
16441 { (exit 1); exit 1; }; }
16443 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16444 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16445 Usually this means the macro was only invoked conditionally." >&5
16446 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16447 Usually this means the macro was only invoked conditionally." >&2;}
16448 { (exit 1); exit 1; }; }
16450 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16451 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16452 Usually this means the macro was only invoked conditionally." >&5
16453 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16454 Usually this means the macro was only invoked conditionally." >&2;}
16455 { (exit 1); exit 1; }; }
16457 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16458 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16459 Usually this means the macro was only invoked conditionally." >&5
16460 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16461 Usually this means the macro was only invoked conditionally." >&2;}
16462 { (exit 1); exit 1; }; }
16464 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16465 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16466 Usually this means the macro was only invoked conditionally." >&5
16467 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16468 Usually this means the macro was only invoked conditionally." >&2;}
16469 { (exit 1); exit 1; }; }
16471 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16472 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16473 Usually this means the macro was only invoked conditionally." >&5
16474 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16475 Usually this means the macro was only invoked conditionally." >&2;}
16476 { (exit 1); exit 1; }; }
16478 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16479 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16480 Usually this means the macro was only invoked conditionally." >&5
16481 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16482 Usually this means the macro was only invoked conditionally." >&2;}
16483 { (exit 1); exit 1; }; }
16485 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16486 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16487 Usually this means the macro was only invoked conditionally." >&5
16488 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16489 Usually this means the macro was only invoked conditionally." >&2;}
16490 { (exit 1); exit 1; }; }
16492 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16493 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16494 Usually this means the macro was only invoked conditionally." >&5
16495 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16496 Usually this means the macro was only invoked conditionally." >&2;}
16497 { (exit 1); exit 1; }; }
16499 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16500 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16501 Usually this means the macro was only invoked conditionally." >&5
16502 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16503 Usually this means the macro was only invoked conditionally." >&2;}
16504 { (exit 1); exit 1; }; }
16506 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16507 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16508 Usually this means the macro was only invoked conditionally." >&5
16509 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16510 Usually this means the macro was only invoked conditionally." >&2;}
16511 { (exit 1); exit 1; }; }
16513 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16514 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16515 Usually this means the macro was only invoked conditionally." >&5
16516 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16517 Usually this means the macro was only invoked conditionally." >&2;}
16518 { (exit 1); exit 1; }; }
16521 : ${CONFIG_STATUS=./config.status}
16522 ac_clean_files_save
=$ac_clean_files
16523 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16526 cat >$CONFIG_STATUS <<_ACEOF
16528 # Generated by $as_me.
16529 # Run this file to recreate the current configuration.
16530 # Compiler output produced by configure, useful for debugging
16531 # configure, is in config.log if it exists.
16534 ac_cs_recheck=false
16536 SHELL=\${CONFIG_SHELL-$SHELL}
16539 cat >>$CONFIG_STATUS <<\_ACEOF
16540 ## --------------------- ##
16541 ## M4sh Initialization. ##
16542 ## --------------------- ##
16544 # Be Bourne compatible
16545 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16548 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16549 # is contrary to our usage. Disable this feature.
16550 alias -g '${1+"$@"}'='"$@"'
16551 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16554 DUALCASE
=1; export DUALCASE
# for MKS sh
16556 # Support unset when possible.
16557 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16564 # Work around bugs in pre-3.0 UWIN ksh.
16565 $as_unset ENV MAIL MAILPATH
16572 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16573 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16574 LC_TELEPHONE LC_TIME
16576 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16577 eval $as_var=C
; export $as_var
16583 # Required to use basename.
16584 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16590 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16591 as_basename
=basename
16597 # Name of the executable.
16598 as_me
=`$as_basename "$0" ||
16599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16600 X"$0" : 'X\(//\)$' \| \
16601 X"$0" : 'X\(/\)$' \| \
16602 . : '\(.\)' 2>/dev/null ||
16604 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16605 /^X\/\(\/\/\)$/{ s//\1/; q; }
16606 /^X\/\(\/\).*/{ s//\1/; q; }
16610 # PATH needs CR, and LINENO needs CR and PATH.
16611 # Avoid depending upon Character Ranges.
16612 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16613 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16614 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16615 as_cr_digits
='0123456789'
16616 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16618 # The user is always right.
16619 if test "${PATH_SEPARATOR+set}" != set; then
16620 echo "#! /bin/sh" >conf$$.sh
16621 echo "exit 0" >>conf$$.sh
16623 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16632 as_lineno_1
=$LINENO
16633 as_lineno_2
=$LINENO
16634 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16635 test "x$as_lineno_1" != "x$as_lineno_2" &&
16636 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16637 # Find who we are. Look in the path if we contain no path at all
16640 *[\\/]* ) as_myself
=$0 ;;
16641 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16642 for as_dir
in $PATH
16645 test -z "$as_dir" && as_dir
=.
16646 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16651 # We did not find ourselves, most probably we were run as `sh COMMAND'
16652 # in which case we are not to be found in the path.
16653 if test "x$as_myself" = x
; then
16656 if test ! -f "$as_myself"; then
16657 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16658 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16659 { (exit 1); exit 1; }; }
16661 case $CONFIG_SHELL in
16663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16664 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16667 test -z "$as_dir" && as_dir
=.
16668 for as_base
in sh bash ksh sh5
; do
16671 if ("$as_dir/$as_base" -c '
16672 as_lineno_1=$LINENO
16673 as_lineno_2=$LINENO
16674 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16675 test "x$as_lineno_1" != "x$as_lineno_2" &&
16676 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16677 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16678 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16679 CONFIG_SHELL
=$as_dir/$as_base
16680 export CONFIG_SHELL
16681 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16689 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16690 # uniformly replaced by the line number. The first 'sed' inserts a
16691 # line-number line before each line; the second 'sed' does the real
16692 # work. The second script uses 'N' to pair each line-number line
16693 # with the numbered line, and appends trailing '-' during
16694 # substitution so that $LINENO is not a special case at line end.
16695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16696 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16697 sed '=' <$as_myself |
16702 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16705 s,^['$as_cr_digits']*\n,,
16706 ' >$as_me.lineno
&&
16707 chmod +x
$as_me.lineno ||
16708 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16709 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16710 { (exit 1); exit 1; }; }
16712 # Don't try to exec as it changes $[0], causing all sort of problems
16713 # (the dirname of $[0] is not the place where we might find the
16714 # original and so on. Autoconf is especially sensible to this).
16716 # Exit status is that of the last command.
16721 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16722 *c
*,-n*) ECHO_N
= ECHO_C
='
16724 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16725 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16728 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16734 rm -f conf$$ conf$$.exe conf$$.
file
16736 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16737 # We could just check for DJGPP; but this test a) works b) is more generic
16738 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16739 if test -f conf$$.exe
; then
16740 # Don't use ln at all; we don't have any links
16745 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16750 rm -f conf$$ conf$$.exe conf$$.
file
16752 if mkdir
-p .
2>/dev
/null
; then
16755 test -d .
/-p && rmdir .
/-p
16759 as_executable_p
="test -f"
16761 # Sed expression to map a string onto a valid CPP name.
16762 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16764 # Sed expression to map a string onto a valid variable name.
16765 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16769 # We need space, tab and new line, in precisely that order.
16779 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16780 # report actual input values of CONFIG_FILES etc. instead of their
16781 # values after options handling. Logging --version etc. is OK.
16785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16786 ## Running $as_me. ##
16791 This file was extended by libjava $as_me version-unused, which was
16792 generated by GNU Autoconf 2.59. Invocation command line was
16794 CONFIG_FILES = $CONFIG_FILES
16795 CONFIG_HEADERS = $CONFIG_HEADERS
16796 CONFIG_LINKS = $CONFIG_LINKS
16797 CONFIG_COMMANDS = $CONFIG_COMMANDS
16801 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16805 # Files that config.status was made for.
16806 if test -n "$ac_config_files"; then
16807 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16810 if test -n "$ac_config_headers"; then
16811 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16814 if test -n "$ac_config_links"; then
16815 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16818 if test -n "$ac_config_commands"; then
16819 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16822 cat >>$CONFIG_STATUS <<\_ACEOF
16825 \`$as_me' instantiates files from templates according to the
16826 current configuration.
16828 Usage: $0 [OPTIONS] [FILE]...
16830 -h, --help print this help, then exit
16831 -V, --version print version number, then exit
16832 -q, --quiet do not print progress messages
16833 -d, --debug don't remove temporary files
16834 --recheck update $as_me by reconfiguring in the same conditions
16835 --file=FILE[:TEMPLATE]
16836 instantiate the configuration file FILE
16837 --header=FILE[:TEMPLATE]
16838 instantiate the configuration header FILE
16840 Configuration files:
16843 Configuration headers:
16846 Configuration links:
16849 Configuration commands:
16852 Report bugs to <bug-autoconf@gnu.org>."
16855 cat >>$CONFIG_STATUS <<_ACEOF
16857 libjava config.status version-unused
16858 configured by $0, generated by GNU Autoconf 2.59,
16859 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16861 Copyright (C) 2003 Free Software Foundation, Inc.
16862 This config.status script is free software; the Free Software Foundation
16863 gives unlimited permission to copy, distribute and modify it."
16868 cat >>$CONFIG_STATUS <<\_ACEOF
16869 # If no file are specified by the user, then we need to provide default
16870 # value. By we need to know if files were specified by the user.
16876 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16877 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16885 *) # This is not an option, so the user has probably given explicit
16888 ac_need_defaults
=false
;;
16892 # Handling of the options.
16894 cat >>$CONFIG_STATUS <<\_ACEOF
16895 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16897 --version |
--vers* |
-V )
16898 echo "$ac_cs_version"; exit 0 ;;
16900 # Conflict between --help and --header
16901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16902 Try \`$0 --help' for more information." >&5
16903 echo "$as_me: error: ambiguous option: $1
16904 Try \`$0 --help' for more information." >&2;}
16905 { (exit 1); exit 1; }; };;
16906 --help |
--hel |
-h )
16907 echo "$ac_cs_usage"; exit 0 ;;
16908 --debug |
--d* |
-d )
16910 --file |
--fil |
--fi |
--f )
16912 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16913 ac_need_defaults
=false
;;
16914 --header |
--heade |
--head |
--hea )
16916 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16917 ac_need_defaults
=false
;;
16918 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16919 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16922 # This is an error.
16923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16924 Try \`$0 --help' for more information." >&5
16925 echo "$as_me: error: unrecognized option: $1
16926 Try \`$0 --help' for more information." >&2;}
16927 { (exit 1); exit 1; }; } ;;
16929 *) ac_config_targets
="$ac_config_targets $1" ;;
16935 ac_configure_extra_args
=
16937 if $ac_cs_silent; then
16939 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16943 cat >>$CONFIG_STATUS <<_ACEOF
16944 if \$ac_cs_recheck; then
16945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16951 cat >>$CONFIG_STATUS <<_ACEOF
16953 # INIT-COMMANDS section.
16956 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16960 with_multisubdir=${with_multisubdir}
16961 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16962 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16963 libgcj_basedir=${libgcj_basedir}
16966 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16973 cat >>$CONFIG_STATUS <<\_ACEOF
16974 for ac_config_target
in $ac_config_targets
16976 case "$ac_config_target" in
16977 # Handling of arguments.
16978 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16979 "libgcj.pc" ) CONFIG_FILES
="$CONFIG_FILES libgcj.pc" ;;
16980 "libgcj.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj.spec" ;;
16981 "libgcj-test.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj-test.spec" ;;
16982 "gnu/classpath/Configuration.java" ) CONFIG_FILES
="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16983 "gcj/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gcj/Makefile" ;;
16984 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
16985 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16986 "include/platform.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16987 "java/io/natFile.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16988 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16989 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16990 "java/net/natInetAddress.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16991 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16992 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16993 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16994 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16995 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16996 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16997 "include/java-gc.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16998 "include/java-threads.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16999 "sysdep/locks.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17000 "include/java-signal.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17001 "include/java-signal-aux.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17002 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17003 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17004 "include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/config.h" ;;
17005 "gcj/libgcj-config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17006 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17007 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17008 { (exit 1); exit 1; }; };;
17012 # If the user did not use the arguments to specify the items to instantiate,
17013 # then the envvar interface is used. Set only those that are not.
17014 # We use the long form for the default assignment because of an extremely
17015 # bizarre bug on SunOS 4.1.3.
17016 if $ac_need_defaults; then
17017 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17018 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17019 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17020 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17023 # Have a temporary directory for convenience. Make it in the build tree
17024 # simply because there is no reason to put it here, and in addition,
17025 # creating and moving files from /tmp can sometimes cause problems.
17026 # Create a temporary directory, and hook for its removal unless debugging.
17029 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17030 trap '{ (exit 1); exit 1; }' 1 2 13 15
17033 # Create a (secure) tmp directory for tmp files.
17036 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17037 test -n "$tmp" && test -d "$tmp"
17040 tmp
=.
/confstat$$
-$RANDOM
17041 (umask 077 && mkdir
$tmp)
17044 echo "$me: cannot create a temporary directory in ." >&2
17045 { (exit 1); exit 1; }
17050 cat >>$CONFIG_STATUS <<_ACEOF
17053 # CONFIG_FILES section.
17056 # No need to generate the scripts if there are no CONFIG_FILES.
17057 # This happens for instance when ./config.status config.h
17058 if test -n "\$CONFIG_FILES"; then
17059 # Protect against being on the right side of a sed subst in config.status.
17060 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17061 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17062 s,@SHELL@,$SHELL,;t t
17063 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17064 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17065 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17066 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17067 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17068 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17069 s,@exec_prefix@,$exec_prefix,;t t
17070 s,@prefix@,$prefix,;t t
17071 s,@program_transform_name@,$program_transform_name,;t t
17072 s,@bindir@,$bindir,;t t
17073 s,@sbindir@,$sbindir,;t t
17074 s,@libexecdir@,$libexecdir,;t t
17075 s,@datadir@,$datadir,;t t
17076 s,@sysconfdir@,$sysconfdir,;t t
17077 s,@sharedstatedir@,$sharedstatedir,;t t
17078 s,@localstatedir@,$localstatedir,;t t
17079 s,@libdir@,$libdir,;t t
17080 s,@includedir@,$includedir,;t t
17081 s,@oldincludedir@,$oldincludedir,;t t
17082 s,@infodir@,$infodir,;t t
17083 s,@mandir@,$mandir,;t t
17084 s,@build_alias@,$build_alias,;t t
17085 s,@host_alias@,$host_alias,;t t
17086 s,@target_alias@,$target_alias,;t t
17087 s,@DEFS@,$DEFS,;t t
17088 s,@ECHO_C@,$ECHO_C,;t t
17089 s,@ECHO_N@,$ECHO_N,;t t
17090 s,@ECHO_T@,$ECHO_T,;t t
17091 s,@LIBS@,$LIBS,;t t
17092 s,@libgcj_basedir@,$libgcj_basedir,;t t
17093 s,@build@,$build,;t t
17094 s,@build_cpu@,$build_cpu,;t t
17095 s,@build_vendor@,$build_vendor,;t t
17096 s,@build_os@,$build_os,;t t
17097 s,@host@,$host,;t t
17098 s,@host_cpu@,$host_cpu,;t t
17099 s,@host_vendor@,$host_vendor,;t t
17100 s,@host_os@,$host_os,;t t
17101 s,@target@,$target,;t t
17102 s,@target_cpu@,$target_cpu,;t t
17103 s,@target_vendor@,$target_vendor,;t t
17104 s,@target_os@,$target_os,;t t
17105 s,@target_noncanonical@,$target_noncanonical,;t t
17106 s,@LN_S@,$LN_S,;t t
17107 s,@mkinstalldirs@,$mkinstalldirs,;t t
17109 s,@ac_ct_CC@,$ac_ct_CC,;t t
17110 s,@EXEEXT@,$EXEEXT,;t t
17111 s,@OBJEXT@,$OBJEXT,;t t
17113 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17114 s,@CFLAGS@,$CFLAGS,;t t
17115 s,@CXXFLAGS@,$CXXFLAGS,;t t
17116 s,@LDFLAGS@,$LDFLAGS,;t t
17117 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17118 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17119 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17120 s,@CYGPATH_W@,$CYGPATH_W,;t t
17121 s,@PACKAGE@,$PACKAGE,;t t
17122 s,@VERSION@,$VERSION,;t t
17123 s,@ACLOCAL@,$ACLOCAL,;t t
17124 s,@AUTOCONF@,$AUTOCONF,;t t
17125 s,@AUTOMAKE@,$AUTOMAKE,;t t
17126 s,@AUTOHEADER@,$AUTOHEADER,;t t
17127 s,@MAKEINFO@,$MAKEINFO,;t t
17128 s,@install_sh@,$install_sh,;t t
17129 s,@STRIP@,$STRIP,;t t
17130 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17131 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17132 s,@mkdir_p@,$mkdir_p,;t t
17134 s,@SET_MAKE@,$SET_MAKE,;t t
17135 s,@am__leading_dot@,$am__leading_dot,;t t
17136 s,@AMTAR@,$AMTAR,;t t
17137 s,@am__tar@,$am__tar,;t t
17138 s,@am__untar@,$am__untar,;t t
17139 s,@DEPDIR@,$DEPDIR,;t t
17140 s,@am__include@,$am__include,;t t
17141 s,@am__quote@,$am__quote,;t t
17142 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17143 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17144 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17145 s,@CCDEPMODE@,$CCDEPMODE,;t t
17146 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17147 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17148 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17149 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17150 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17152 s,@ac_ct_AS@,$ac_ct_AS,;t t
17154 s,@ac_ct_AR@,$ac_ct_AR,;t t
17155 s,@RANLIB@,$RANLIB,;t t
17156 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17157 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17158 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17159 s,@MAINT@,$MAINT,;t t
17160 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17161 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17162 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17163 s,@INCLTDL@,$INCLTDL,;t t
17164 s,@LIBLTDL@,$LIBLTDL,;t t
17165 s,@DIRLTDL@,$DIRLTDL,;t t
17166 s,@LIBTOOL@,$LIBTOOL,;t t
17167 s,@CXXCPP@,$CXXCPP,;t t
17168 s,@CPPFLAGS@,$CPPFLAGS,;t t
17170 s,@GCJFLAGS@,$GCJFLAGS,;t t
17171 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17172 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17173 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17174 s,@subdirs@,$subdirs,;t t
17175 s,@COMPPATH@,$COMPPATH,;t t
17176 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17177 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17178 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
17179 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
17180 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17181 s,@INTERPRETER@,$INTERPRETER,;t t
17182 s,@LIBFFI@,$LIBFFI,;t t
17183 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17184 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17186 s,@EGREP@,$EGREP,;t t
17187 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17188 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17189 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17190 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17191 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
17192 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
17193 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17194 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17195 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17196 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17197 s,@X_CFLAGS@,$X_CFLAGS,;t t
17198 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17199 s,@X_LIBS@,$X_LIBS,;t t
17200 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17201 s,@TOOLKIT@,$TOOLKIT,;t t
17202 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17203 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17204 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17205 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17206 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17207 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17208 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17209 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17210 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17211 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17212 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17213 s,@GCLIBS@,$GCLIBS,;t t
17214 s,@GCINCS@,$GCINCS,;t t
17215 s,@GCDEPS@,$GCDEPS,;t t
17216 s,@GCSPEC@,$GCSPEC,;t t
17217 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17218 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17219 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17220 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17221 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17222 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17223 s,@THREADLIBS@,$THREADLIBS,;t t
17224 s,@THREADINCS@,$THREADINCS,;t t
17225 s,@THREADDEPS@,$THREADDEPS,;t t
17226 s,@THREADSPEC@,$THREADSPEC,;t t
17227 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17228 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17229 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17230 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17231 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17232 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17233 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17234 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17235 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17236 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17237 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17238 s,@tool_include_dir@,$tool_include_dir,;t t
17239 s,@gcc_version@,$gcc_version,;t t
17240 s,@LIBICONV@,$LIBICONV,;t t
17241 s,@LTLIBICONV@,$LTLIBICONV,;t t
17242 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17243 s,@GTK_LIBS@,$GTK_LIBS,;t t
17244 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17245 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17246 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17247 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17248 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17249 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17250 s,@GCJH@,$GCJH,;t t
17252 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17253 s,@ZLIBS@,$ZLIBS,;t t
17254 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17255 s,@ZINCS@,$ZINCS,;t t
17256 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17257 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17258 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17259 s,@IEEESPEC@,$IEEESPEC,;t t
17260 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17261 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17262 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17263 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17264 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17265 s,@toolexecdir@,$toolexecdir,;t t
17266 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17267 s,@toolexeclibdir@,$toolexeclibdir,;t t
17268 s,@GCJVERSION@,$GCJVERSION,;t t
17269 s,@ALLOCA@,$ALLOCA,;t t
17270 s,@PERL@,$PERL,;t t
17271 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17272 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17273 s,@here@,$here,;t t
17274 s,@LIBOBJS@,$LIBOBJS,;t t
17275 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17280 cat >>$CONFIG_STATUS <<\_ACEOF
17281 # Split the substitutions into bite-sized pieces for seds with
17282 # small command number limits, like on Digital OSF/1 and HP-UX.
17283 ac_max_sed_lines
=48
17284 ac_sed_frag
=1 # Number of current file.
17285 ac_beg
=1 # First line for current file.
17286 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17289 while $ac_more_lines; do
17290 if test $ac_beg -gt 1; then
17291 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17293 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17295 if test ! -s $tmp/subs.frag
; then
17296 ac_more_lines
=false
17298 # The purpose of the label and of the branching condition is to
17299 # speed up the sed processing (if there are no `@' at all, there
17300 # is no need to browse any of the substitutions).
17301 # These are the two extra sed commands mentioned above.
17303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17304 if test -z "$ac_sed_cmds"; then
17305 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17307 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17309 ac_sed_frag
=`expr $ac_sed_frag + 1`
17311 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17314 if test -z "$ac_sed_cmds"; then
17317 fi # test -n "$CONFIG_FILES"
17320 cat >>$CONFIG_STATUS <<\_ACEOF
17321 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17322 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17324 - |
*:- |
*:-:* ) # input from stdin
17326 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17327 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17328 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17329 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17330 * ) ac_file_in
=$ac_file.
in ;;
17333 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17334 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17336 X"$ac_file" : 'X\(//\)[^/]' \| \
17337 X"$ac_file" : 'X\(//\)$' \| \
17338 X"$ac_file" : 'X\(/\)' \| \
17339 . : '\(.\)' 2>/dev/null ||
17341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17343 /^X\(\/\/\)$/{ s//\1/; q; }
17344 /^X\(\/\).*/{ s//\1/; q; }
17346 { if $as_mkdir_p; then
17351 while test ! -d "$as_dir"; do
17352 as_dirs
="$as_dir $as_dirs"
17353 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17355 X"$as_dir" : 'X\(//\)[^/]' \| \
17356 X"$as_dir" : 'X\(//\)$' \| \
17357 X"$as_dir" : 'X\(/\)' \| \
17358 . : '\(.\)' 2>/dev/null ||
17360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17362 /^X\(\/\/\)$/{ s//\1/; q; }
17363 /^X\(\/\).*/{ s//\1/; q; }
17366 test ! -n "$as_dirs" || mkdir
$as_dirs
17367 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17368 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17369 { (exit 1); exit 1; }; }; }
17373 if test "$ac_dir" != .
; then
17374 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17375 # A "../" for each directory in $ac_dir_suffix.
17376 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17378 ac_dir_suffix
= ac_top_builddir
=
17382 .
) # No --srcdir option. We are building in place.
17384 if test -z "$ac_top_builddir"; then
17387 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17389 [\\/]* | ?
:[\\/]* ) # Absolute path.
17390 ac_srcdir
=$srcdir$ac_dir_suffix;
17391 ac_top_srcdir
=$srcdir ;;
17392 *) # Relative path.
17393 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17394 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17397 # Do not use `cd foo && pwd` to compute absolute paths, because
17398 # the directories may not exist.
17400 .
) ac_abs_builddir
="$ac_dir";;
17403 .
) ac_abs_builddir
=`pwd`;;
17404 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17405 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17408 case $ac_abs_builddir in
17409 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17411 case ${ac_top_builddir}.
in
17412 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17413 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17414 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17417 case $ac_abs_builddir in
17418 .
) ac_abs_srcdir
=$ac_srcdir;;
17421 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17422 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17423 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17426 case $ac_abs_builddir in
17427 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17429 case $ac_top_srcdir in
17430 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17431 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17432 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17438 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17439 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
17442 if test x
"$ac_file" != x-
; then
17443 { echo "$as_me:$LINENO: creating $ac_file" >&5
17444 echo "$as_me: creating $ac_file" >&6;}
17447 # Let's still pretend it is `configure' which instantiates (i.e., don't
17448 # use $as_me), people would be surprised to read:
17449 # /* config.h. Generated by config.status. */
17450 if test x
"$ac_file" = x-
; then
17453 configure_input
="$ac_file. "
17455 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17456 sed 's,.*/,,'` by configure."
17458 # First look for the input files in the build tree, otherwise in the
17460 ac_file_inputs
=`IFS=:
17461 for f in $ac_file_in; do
17463 -) echo $tmp/stdin ;;
17465 # Absolute (can't be DOS-style, as IFS=:)
17466 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17467 echo "$as_me: error: cannot find input file: $f" >&2;}
17468 { (exit 1); exit 1; }; }
17471 if test -f "$f"; then
17474 elif test -f "$srcdir/$f"; then
17479 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17480 echo "$as_me: error: cannot find input file: $f" >&2;}
17481 { (exit 1); exit 1; }; }
17484 done` ||
{ (exit 1); exit 1; }
17486 cat >>$CONFIG_STATUS <<_ACEOF
17490 cat >>$CONFIG_STATUS <<\_ACEOF
17492 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17493 s
,@configure_input@
,$configure_input,;t t
17494 s
,@srcdir@
,$ac_srcdir,;t t
17495 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17496 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17497 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17498 s
,@builddir@
,$ac_builddir,;t t
17499 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17500 s
,@top_builddir@
,$ac_top_builddir,;t t
17501 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17502 s
,@INSTALL@
,$ac_INSTALL,;t t
17503 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17505 if test x"$ac_file" != x-; then
17506 mv $tmp/out $ac_file
17514 cat >>$CONFIG_STATUS <<\_ACEOF
17517 # CONFIG_HEADER section.
17520 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17521 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17523 # ac_d sets the value in "#define NAME VALUE" lines.
17524 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17525 ac_dB
='[ ].*$,\1#\2'
17528 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17529 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17530 ac_uB
='$,\1#\2define\3'
17534 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17535 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17537 - |
*:- |
*:-:* ) # input from stdin
17539 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17540 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17541 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17542 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17543 * ) ac_file_in
=$ac_file.
in ;;
17546 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17547 echo "$as_me: creating $ac_file" >&6;}
17549 # First look for the input files in the build tree, otherwise in the
17551 ac_file_inputs
=`IFS=:
17552 for f in $ac_file_in; do
17554 -) echo $tmp/stdin ;;
17556 # Absolute (can't be DOS-style, as IFS=:)
17557 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17558 echo "$as_me: error: cannot find input file: $f" >&2;}
17559 { (exit 1); exit 1; }; }
17560 # Do quote $f, to prevent DOS paths from being IFS'd.
17563 if test -f "$f"; then
17566 elif test -f "$srcdir/$f"; then
17571 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17572 echo "$as_me: error: cannot find input file: $f" >&2;}
17573 { (exit 1); exit 1; }; }
17576 done` ||
{ (exit 1); exit 1; }
17577 # Remove the trailing spaces.
17578 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17582 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17583 # `conftest.undefs', that substitutes the proper values into
17584 # config.h.in to produce config.h. The first handles `#define'
17585 # templates, and the second `#undef' templates.
17586 # And first: Protect against being on the right side of a sed subst in
17587 # config.status. Protect against being in an unquoted here document
17588 # in config.status.
17589 rm -f conftest.defines conftest.undefs
17590 # Using a here document instead of a string reduces the quoting nightmare.
17591 # Putting comments in sed scripts is not portable.
17593 # `end' is used to avoid that the second main sed command (meant for
17594 # 0-ary CPP macros) applies to n-ary macro definitions.
17595 # See the Autoconf documentation for `clear'.
17596 cat >confdef2sed.
sed <<\_ACEOF
17601 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17603 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17606 # If some macros were called several times there might be several times
17607 # the same #defines, which is useless. Nevertheless, we may not want to
17608 # sort them, since we want the *last* AC-DEFINE to be honored.
17609 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17610 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17611 rm -f confdef2sed.sed
17613 # This sed command replaces #undef with comments. This is necessary, for
17614 # example, in the case of _POSIX_SOURCE, which is predefined and required
17615 # on some systems where configure will not decide to define it.
17616 cat >>conftest.undefs <<\_ACEOF
17617 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17620 # Break up conftest.defines because some shells have a limit on the size
17621 # of here documents, and old seds have small limits too (100 cmds).
17622 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17623 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17624 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17625 echo ' :' >>$CONFIG_STATUS
17626 rm -f conftest.tail
17627 while grep . conftest.defines >/dev/null
17629 # Write a limited-size here document to $tmp/defines.sed.
17630 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17631 # Speed up: don't consider the non `#define' lines.
17632 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17633 # Work around the forget-to-reset-the-flag bug.
17634 echo 't clr' >>$CONFIG_STATUS
17635 echo ': clr' >>$CONFIG_STATUS
17636 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17638 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17640 mv $tmp/out $tmp/in
17642 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17643 rm -f conftest.defines
17644 mv conftest.
tail conftest.defines
17646 rm -f conftest.defines
17647 echo ' fi # grep' >>$CONFIG_STATUS
17648 echo >>$CONFIG_STATUS
17650 # Break up conftest.undefs because some shells have a limit on the size
17651 # of here documents, and old seds have small limits too (100 cmds).
17652 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17653 rm -f conftest.
tail
17654 while grep . conftest.undefs
>/dev
/null
17656 # Write a limited-size here document to $tmp/undefs.sed.
17657 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17658 # Speed up: don't consider the non
`#undef'
17659 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17660 # Work around the forget-to-reset-the-flag bug.
17661 echo 't clr' >>$CONFIG_STATUS
17662 echo ': clr' >>$CONFIG_STATUS
17663 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17665 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17667 mv $tmp/out $tmp/in
17669 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17670 rm -f conftest.undefs
17671 mv conftest.tail conftest.undefs
17673 rm -f conftest.undefs
17675 cat >>$CONFIG_STATUS <<\_ACEOF
17676 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17677 # use $as_me), people would be surprised to read:
17678 # /* config.h. Generated by config.status. */
17679 if test x
"$ac_file" = x-
; then
17680 echo "/* Generated by configure. */" >$tmp/config.h
17682 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17684 cat $tmp/in >>$tmp/config.h
17686 if test x
"$ac_file" != x-
; then
17687 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17688 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17689 echo "$as_me: $ac_file is unchanged" >&6;}
17691 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17693 X"$ac_file" : 'X\(//\)[^/]' \| \
17694 X"$ac_file" : 'X\(//\)$' \| \
17695 X"$ac_file" : 'X\(/\)' \| \
17696 . : '\(.\)' 2>/dev/null ||
17698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17700 /^X\(\/\/\)$/{ s//\1/; q; }
17701 /^X\(\/\).*/{ s//\1/; q; }
17703 { if $as_mkdir_p; then
17708 while test ! -d "$as_dir"; do
17709 as_dirs
="$as_dir $as_dirs"
17710 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17712 X"$as_dir" : 'X\(//\)[^/]' \| \
17713 X"$as_dir" : 'X\(//\)$' \| \
17714 X"$as_dir" : 'X\(/\)' \| \
17715 . : '\(.\)' 2>/dev/null ||
17717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17719 /^X\(\/\/\)$/{ s//\1/; q; }
17720 /^X\(\/\).*/{ s//\1/; q; }
17723 test ! -n "$as_dirs" || mkdir
$as_dirs
17724 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17725 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17726 { (exit 1); exit 1; }; }; }
17729 mv $tmp/config.h
$ac_file
17733 rm -f $tmp/config.h
17735 # Compute $ac_file's index in $config_headers.
17737 for _am_header
in $config_headers :; do
17738 case $_am_header in
17739 $ac_file |
$ac_file:* )
17742 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17745 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17746 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17747 X$ac_file : 'X\(//\)[^/]' \| \
17748 X$ac_file : 'X\(//\)$' \| \
17749 X$ac_file : 'X\(/\)' \| \
17750 . : '\(.\)' 2>/dev/null ||
17752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17754 /^X\(\/\/\)$/{ s//\1/; q; }
17755 /^X\(\/\).*/{ s//\1/; q; }
17756 s/.*/./; q'`/stamp-h
$_am_stamp_count
17759 cat >>$CONFIG_STATUS <<\_ACEOF
17762 # CONFIG_LINKS section.
17765 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
17766 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17767 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17769 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17770 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17772 if test ! -r $srcdir/$ac_source; then
17773 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17774 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17775 { (exit 1); exit 1; }; }
17779 # Make relative symlinks.
17780 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17781 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17782 X"$ac_dest" : 'X\(//\)[^/]' \| \
17783 X"$ac_dest" : 'X\(//\)$' \| \
17784 X"$ac_dest" : 'X\(/\)' \| \
17785 . : '\(.\)' 2>/dev/null ||
17787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17789 /^X\(\/\/\)$/{ s//\1/; q; }
17790 /^X\(\/\).*/{ s//\1/; q; }
17792 { if $as_mkdir_p; then
17793 mkdir
-p "$ac_dest_dir"
17795 as_dir
="$ac_dest_dir"
17797 while test ! -d "$as_dir"; do
17798 as_dirs
="$as_dir $as_dirs"
17799 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17801 X"$as_dir" : 'X\(//\)[^/]' \| \
17802 X"$as_dir" : 'X\(//\)$' \| \
17803 X"$as_dir" : 'X\(/\)' \| \
17804 . : '\(.\)' 2>/dev/null ||
17806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17808 /^X\(\/\/\)$/{ s//\1/; q; }
17809 /^X\(\/\).*/{ s//\1/; q; }
17812 test ! -n "$as_dirs" || mkdir
$as_dirs
17813 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17814 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17815 { (exit 1); exit 1; }; }; }
17819 if test "$ac_dest_dir" != .
; then
17820 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17821 # A "../" for each directory in $ac_dir_suffix.
17822 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17824 ac_dir_suffix
= ac_top_builddir
=
17828 .
) # No --srcdir option. We are building in place.
17830 if test -z "$ac_top_builddir"; then
17833 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17835 [\\/]* | ?
:[\\/]* ) # Absolute path.
17836 ac_srcdir
=$srcdir$ac_dir_suffix;
17837 ac_top_srcdir
=$srcdir ;;
17838 *) # Relative path.
17839 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17840 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17843 # Do not use `cd foo && pwd` to compute absolute paths, because
17844 # the directories may not exist.
17846 .
) ac_abs_builddir
="$ac_dest_dir";;
17848 case "$ac_dest_dir" in
17849 .
) ac_abs_builddir
=`pwd`;;
17850 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
17851 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
17854 case $ac_abs_builddir in
17855 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17857 case ${ac_top_builddir}.
in
17858 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17859 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17860 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17863 case $ac_abs_builddir in
17864 .
) ac_abs_srcdir
=$ac_srcdir;;
17867 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17868 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17869 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17872 case $ac_abs_builddir in
17873 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17875 case $ac_top_srcdir in
17876 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17877 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17878 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17884 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
17885 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
17888 # Try a symlink, then a hard link, then a copy.
17889 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
17890 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
17891 cp -p $srcdir/$ac_source $ac_dest ||
17892 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17893 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17894 { (exit 1); exit 1; }; }
17897 cat >>$CONFIG_STATUS <<\_ACEOF
17900 # CONFIG_COMMANDS section.
17902 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17903 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17904 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17905 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17906 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17907 X"$ac_dest" : 'X\(//\)[^/]' \| \
17908 X"$ac_dest" : 'X\(//\)$' \| \
17909 X"$ac_dest" : 'X\(/\)' \| \
17910 . : '\(.\)' 2>/dev/null ||
17912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17914 /^X\(\/\/\)$/{ s//\1/; q; }
17915 /^X\(\/\).*/{ s//\1/; q; }
17917 { if $as_mkdir_p; then
17922 while test ! -d "$as_dir"; do
17923 as_dirs
="$as_dir $as_dirs"
17924 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17926 X"$as_dir" : 'X\(//\)[^/]' \| \
17927 X"$as_dir" : 'X\(//\)$' \| \
17928 X"$as_dir" : 'X\(/\)' \| \
17929 . : '\(.\)' 2>/dev/null ||
17931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17933 /^X\(\/\/\)$/{ s//\1/; q; }
17934 /^X\(\/\).*/{ s//\1/; q; }
17937 test ! -n "$as_dirs" || mkdir
$as_dirs
17938 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17939 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17940 { (exit 1); exit 1; }; }; }
17944 if test "$ac_dir" != .
; then
17945 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17946 # A "../" for each directory in $ac_dir_suffix.
17947 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17949 ac_dir_suffix
= ac_top_builddir
=
17953 .
) # No --srcdir option. We are building in place.
17955 if test -z "$ac_top_builddir"; then
17958 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17960 [\\/]* | ?
:[\\/]* ) # Absolute path.
17961 ac_srcdir
=$srcdir$ac_dir_suffix;
17962 ac_top_srcdir
=$srcdir ;;
17963 *) # Relative path.
17964 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17965 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17968 # Do not use `cd foo && pwd` to compute absolute paths, because
17969 # the directories may not exist.
17971 .
) ac_abs_builddir
="$ac_dir";;
17974 .
) ac_abs_builddir
=`pwd`;;
17975 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17976 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17979 case $ac_abs_builddir in
17980 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17982 case ${ac_top_builddir}.
in
17983 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17984 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17985 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17988 case $ac_abs_builddir in
17989 .
) ac_abs_srcdir
=$ac_srcdir;;
17992 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17993 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17994 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17997 case $ac_abs_builddir in
17998 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18000 case $ac_top_srcdir in
18001 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18002 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18003 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18008 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18009 echo "$as_me: executing $ac_dest commands" >&6;}
18011 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
18012 # Strip MF so we end up with the name of the file.
18013 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18014 # Check whether this is an Automake generated Makefile or not.
18015 # We used to match only the files named `Makefile.in', but
18016 # some people rename them; so instead we look at the file content.
18017 # Grep'ing the first line is not enough: some people post-process
18018 # each Makefile.in and add a new line on top of each file to say so.
18019 # So let's grep whole file.
18020 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
18021 dirpart
=`(dirname "$mf") 2>/dev/null ||
18022 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18023 X"$mf" : 'X\(//\)[^/]' \| \
18024 X"$mf" : 'X\(//\)$' \| \
18025 X"$mf" : 'X\(/\)' \| \
18026 . : '\(.\)' 2>/dev/null ||
18028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18030 /^X\(\/\/\)$/{ s//\1/; q; }
18031 /^X\(\/\).*/{ s//\1/; q; }
18036 # Extract the definition of DEPDIR, am__include, and am__quote
18037 # from the Makefile without running `make'.
18038 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18039 test -z "$DEPDIR" && continue
18040 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18041 test -z "am__include" && continue
18042 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18043 # When using ansi2knr, U may be empty or an underscore; expand it
18044 U
=`sed -n 's/^U = //p' < "$mf"`
18045 # Find all dependency output files, they are included files with
18046 # $(DEPDIR) in their names. We invoke sed twice because it is the
18047 # simplest approach to changing $(DEPDIR) to its actual value in the
18049 for file in `sed -n "
18050 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18051 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18052 # Make sure the directory exists.
18053 test -f "$dirpart/$file" && continue
18054 fdir
=`(dirname "$file") 2>/dev/null ||
18055 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18056 X"$file" : 'X\(//\)[^/]' \| \
18057 X"$file" : 'X\(//\)$' \| \
18058 X"$file" : 'X\(/\)' \| \
18059 . : '\(.\)' 2>/dev/null ||
18061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18063 /^X\(\/\/\)$/{ s//\1/; q; }
18064 /^X\(\/\).*/{ s//\1/; q; }
18066 { if $as_mkdir_p; then
18067 mkdir
-p $dirpart/$fdir
18069 as_dir
=$dirpart/$fdir
18071 while test ! -d "$as_dir"; do
18072 as_dirs
="$as_dir $as_dirs"
18073 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18075 X"$as_dir" : 'X\(//\)[^/]' \| \
18076 X"$as_dir" : 'X\(//\)$' \| \
18077 X"$as_dir" : 'X\(/\)' \| \
18078 . : '\(.\)' 2>/dev/null ||
18080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18082 /^X\(\/\/\)$/{ s//\1/; q; }
18083 /^X\(\/\).*/{ s//\1/; q; }
18086 test ! -n "$as_dirs" || mkdir
$as_dirs
18087 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18088 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18089 { (exit 1); exit 1; }; }; }
18091 # echo "creating $dirpart/$file"
18092 echo '# dummy' > "$dirpart/$file"
18096 default
) # Only add multilib support code if we just rebuilt top-level Makefile.
18097 case " $CONFIG_FILES " in
18099 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
18100 ac_file
=Makefile .
${libgcj_basedir}/..
/config-ml.
in
18108 cat >>$CONFIG_STATUS <<\_ACEOF
18110 { (exit 0); exit 0; }
18112 chmod +x
$CONFIG_STATUS
18113 ac_clean_files
=$ac_clean_files_save
18116 # configure is writing to config.log, and then calls config.status.
18117 # config.status does its own redirection, appending to config.log.
18118 # Unfortunately, on DOS this fails, as config.log is still kept open
18119 # by configure, so config.status won't be able to write to it; its
18120 # output is simply discarded. So we exec the FD to /dev/null,
18121 # effectively closing config.log, so it can be properly (re)opened and
18122 # appended to by config.status. When coming back to configure, we
18123 # need to make the FD available again.
18124 if test "$no_create" != yes; then
18126 ac_config_status_args
=
18127 test "$silent" = yes &&
18128 ac_config_status_args
="$ac_config_status_args --quiet"
18130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18133 # would make configure fail if this is the last instruction.
18134 $ac_cs_success ||
{ (exit 1); exit 1; }
18138 # CONFIG_SUBDIRS section.
18140 if test "$no_recursion" != yes; then
18142 # Remove --cache-file and --srcdir arguments so they do not pile up.
18143 ac_sub_configure_args
=
18145 for ac_arg
in $ac_configure_args; do
18146 if test -n "$ac_prev"; then
18151 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
18152 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
18153 ac_prev
=cache_file
;;
18154 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
18155 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
18158 --config-cache |
-C)
18160 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
18162 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
18164 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
18166 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
18168 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
18172 # Always prepend --prefix to ensure using the same prefix
18173 # in subdir configurations.
18174 ac_sub_configure_args
="--prefix=$prefix $ac_sub_configure_args"
18177 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
18179 # Do not complain, so a configure script can configure whichever
18180 # parts of a large source tree are present.
18181 test -d $srcdir/$ac_dir ||
continue
18183 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18184 echo "$as_me: configuring in $ac_dir" >&6;}
18185 { if $as_mkdir_p; then
18190 while test ! -d "$as_dir"; do
18191 as_dirs
="$as_dir $as_dirs"
18192 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18194 X"$as_dir" : 'X\(//\)[^/]' \| \
18195 X"$as_dir" : 'X\(//\)$' \| \
18196 X"$as_dir" : 'X\(/\)' \| \
18197 . : '\(.\)' 2>/dev/null ||
18199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18201 /^X\(\/\/\)$/{ s//\1/; q; }
18202 /^X\(\/\).*/{ s//\1/; q; }
18205 test ! -n "$as_dirs" || mkdir
$as_dirs
18206 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18208 { (exit 1); exit 1; }; }; }
18212 if test "$ac_dir" != .
; then
18213 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18214 # A "../" for each directory in $ac_dir_suffix.
18215 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18217 ac_dir_suffix
= ac_top_builddir
=
18221 .
) # No --srcdir option. We are building in place.
18223 if test -z "$ac_top_builddir"; then
18226 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18228 [\\/]* | ?
:[\\/]* ) # Absolute path.
18229 ac_srcdir
=$srcdir$ac_dir_suffix;
18230 ac_top_srcdir
=$srcdir ;;
18231 *) # Relative path.
18232 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18233 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18236 # Do not use `cd foo && pwd` to compute absolute paths, because
18237 # the directories may not exist.
18239 .
) ac_abs_builddir
="$ac_dir";;
18242 .
) ac_abs_builddir
=`pwd`;;
18243 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18244 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18247 case $ac_abs_builddir in
18248 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18250 case ${ac_top_builddir}.
in
18251 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18252 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18253 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18256 case $ac_abs_builddir in
18257 .
) ac_abs_srcdir
=$ac_srcdir;;
18260 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18261 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18262 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18265 case $ac_abs_builddir in
18266 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18268 case $ac_top_srcdir in
18269 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18270 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18271 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18278 # Check for guested configure; otherwise get Cygnus style configure.
18279 if test -f $ac_srcdir/configure.gnu
; then
18280 ac_sub_configure
="$SHELL '$ac_srcdir/configure.gnu'"
18281 elif test -f $ac_srcdir/configure
; then
18282 ac_sub_configure
="$SHELL '$ac_srcdir/configure'"
18283 elif test -f $ac_srcdir/configure.
in; then
18284 ac_sub_configure
=$ac_configure
18286 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18287 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18291 # The recursion is here.
18292 if test -n "$ac_sub_configure"; then
18293 # Make the cache file name correct relative to the subdirectory.
18294 case $cache_file in
18295 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
18296 *) # Relative path.
18297 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
18300 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18301 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18302 # The eval makes quoting arguments work.
18303 eval $ac_sub_configure $ac_sub_configure_args \
18304 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18305 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18306 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18307 { (exit 1); exit 1; }; }