2004-11-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
[official-gcc.git] / libjava / configure
blobe44e0787ac1193d11ab4c7c501c292a124fbc42c
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
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
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
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`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
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'
272 PACKAGE_BUGREPORT=''
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="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
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 USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE 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 CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
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'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
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 ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
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'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
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.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
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)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
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)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
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)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
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)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
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)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
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'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
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" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
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; }; }
632 *=*)
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'"
640 export $ac_envvar ;;
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}
650 esac
651 done
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`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
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`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
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.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
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
696 cross_compiling=yes
700 ac_tool_prefix=
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 ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
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; }; }
733 else
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.
773 cat <<_ACEOF
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.
783 Configuration:
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 \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
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]
823 _ACEOF
825 cat <<\_ACEOF
827 Program names:
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
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System types:
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]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
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
883 Optional Packages:
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
911 CPP 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.
916 _ACEOF
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
921 ac_popdir=`pwd`
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
924 ac_builddir=.
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'`
930 else
931 ac_dir_suffix= ac_top_builddir=
934 case $srcdir in
935 .) # No --srcdir option. We are building in place.
936 ac_srcdir=.
937 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=.
939 else
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 fi ;;
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
945 *) # Relative path.
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 esac
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
952 case `pwd` in
953 .) ac_abs_builddir="$ac_dir";;
955 case "$ac_dir" in
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 esac;;
960 esac
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}.;;
968 esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
973 case $ac_srcdir in
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 esac;;
978 esac
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;;
986 esac;;
987 esac
989 cd $ac_dir
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
992 echo
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
995 echo
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
999 echo
1000 $ac_configure --help
1001 else
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1004 cd $ac_popdir
1005 done
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1010 cat <<\_ACEOF
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.
1017 _ACEOF
1018 exit 0
1020 exec 5>config.log
1021 cat >&5 <<_ACEOF
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
1028 $ $0 $@
1030 _ACEOF
1032 cat <<_ASUNAME
1033 ## --------- ##
1034 ## Platform. ##
1035 ## --------- ##
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`
1054 _ASUNAME
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 for as_dir in $PATH
1059 IFS=$as_save_IFS
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1062 done
1064 } >&5
1066 cat >&5 <<_ACEOF
1069 ## ----------- ##
1070 ## Core tests. ##
1071 ## ----------- ##
1073 _ACEOF
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.
1081 ac_configure_args=
1082 ac_configure_args0=
1083 ac_configure_args1=
1084 ac_sep=
1085 ac_must_keep_next=false
1086 for ac_pass in 1 2
1088 for ac_arg
1090 case $ac_arg in
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)
1094 continue ;;
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097 esac
1098 case $ac_pass in
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.
1104 else
1105 case $ac_arg in
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 ;;
1112 esac
1114 -* ) ac_must_keep_next=true ;;
1115 esac
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1119 ac_sep=" "
1121 esac
1122 done
1123 done
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.
1135 echo
1137 cat <<\_ASBOX
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1141 _ASBOX
1142 echo
1143 # The following way of writing the cache mishandles newlines in values,
1145 (set) 2>&1 |
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147 *ac_space=\ *)
1148 sed -n \
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153 sed -n \
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1156 esac;
1158 echo
1160 cat <<\_ASBOX
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1164 _ASBOX
1165 echo
1166 for ac_var in $ac_subst_vars
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1173 if test -n "$ac_subst_files"; then
1174 cat <<\_ASBOX
1175 ## ------------- ##
1176 ## Output files. ##
1177 ## ------------- ##
1178 _ASBOX
1179 echo
1180 for ac_var in $ac_subst_files
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1184 done | sort
1185 echo
1188 if test -s confdefs.h; then
1189 cat <<\_ASBOX
1190 ## ----------- ##
1191 ## confdefs.h. ##
1192 ## ----------- ##
1193 _ASBOX
1194 echo
1195 sed "/^$/d" confdefs.h | sort
1196 echo
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1201 } >&5
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204 exit $exit_status
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 done
1209 ac_signal=0
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.
1214 echo >confdefs.h
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 _ACEOF
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 _ACEOF
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 _ACEOF
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 _ACEOF
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"
1248 else
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
1257 . "$ac_site_file"
1259 done
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;}
1267 case $cache_file in
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1270 esac
1272 else
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1275 >$cache_file
1278 # Check that the precious variables saved in the cache have kept the same
1279 # value.
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
1288 set,)
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=: ;;
1292 ,set)
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=: ;;
1296 ,);;
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=:
1306 fi;;
1307 esac
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1310 case $ac_new_val in
1311 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg=$ac_var=$ac_new_val ;;
1314 esac
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'" ;;
1318 esac
1320 done
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; }; }
1329 ac_ext=c
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
1379 # source directory.
1380 if test "${srcdir}" = "."; then
1381 if test -z "${with_target_subdir}"; then
1382 toprel=".."
1383 else
1384 if test "${with_target_subdir}" != "."; then
1385 toprel="${with_multisrctop}../.."
1386 else
1387 toprel="${with_multisrctop}.."
1390 else
1391 toprel=".."
1394 libgcj_basedir=$srcdir/$toprel/./libjava
1397 ac_aux_dir=
1398 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1399 if test -f $ac_dir/install-sh; then
1400 ac_aux_dir=$ac_dir
1401 ac_install_sh="$ac_aux_dir/install-sh -c"
1402 break
1403 elif test -f $ac_dir/install.sh; then
1404 ac_aux_dir=$ac_dir
1405 ac_install_sh="$ac_aux_dir/install.sh -c"
1406 break
1407 elif test -f $ac_dir/shtool; then
1408 ac_aux_dir=$ac_dir
1409 ac_install_sh="$ac_aux_dir/shtool install -c"
1410 break
1412 done
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
1432 else
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
1448 build=$ac_cv_build
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
1458 else
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
1470 host=$ac_cv_host
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
1480 else
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" = \
1502 NONENONEs,x,x, &&
1503 program_prefix=${target_alias}-
1504 case ${build_alias} in
1505 "") build_noncanonical=${build} ;;
1506 *) build_noncanonical=${build_alias} ;;
1507 esac
1509 case ${host_alias} in
1510 "") host_noncanonical=${build_noncanonical} ;;
1511 *) host_noncanonical=${host_alias} ;;
1512 esac
1514 case ${target_alias} in
1515 "") target_noncanonical=${host_noncanonical} ;;
1516 *) target_noncanonical=${target_alias} ;;
1517 esac
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
1525 # exported.
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
1530 LN_S=$as_ln_s
1531 if test "$LN_S" = "ln -s"; then
1532 echo "$as_me:$LINENO: result: yes" >&5
1533 echo "${ECHO_T}yes" >&6
1534 else
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; }; };;
1567 esac
1568 else
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 ;;
1579 no) multilib=no ;;
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; }; } ;;
1583 esac
1584 else
1585 multilib=yes
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
1596 # in Makefile.in.
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"
1605 ac_ext=c
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
1617 else
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC="$CC" # Let the user override the test.
1620 else
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
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
1630 break 2
1632 done
1633 done
1637 CC=$ac_cv_prog_CC
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1641 else
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1647 if test -z "$ac_cv_prog_CC"; then
1648 ac_ct_CC=$CC
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
1655 else
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658 else
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1662 IFS=$as_save_IFS
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
1668 break 2
1670 done
1671 done
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
1679 else
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 CC=$ac_ct_CC
1685 else
1686 CC="$ac_cv_prog_CC"
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
1697 else
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1704 IFS=$as_save_IFS
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
1710 break 2
1712 done
1713 done
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1727 if test -z "$ac_cv_prog_CC"; then
1728 ac_ct_CC=$CC
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
1735 else
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1742 IFS=$as_save_IFS
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
1748 break 2
1750 done
1751 done
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
1759 else
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 CC=$ac_ct_CC
1765 else
1766 CC="$ac_cv_prog_CC"
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
1777 else
1778 if test -n "$CC"; then
1779 ac_cv_prog_CC="$CC" # Let the user override the test.
1780 else
1781 ac_prog_rejected=no
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1785 IFS=$as_save_IFS
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
1791 continue
1793 ac_cv_prog_CC="cc"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 break 2
1797 done
1798 done
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
1803 shift
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.
1808 shift
1809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814 CC=$ac_cv_prog_CC
1815 if test -n "$CC"; then
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1818 else
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
1826 for ac_prog in cl
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
1834 else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
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
1847 break 2
1849 done
1850 done
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 test -n "$CC" && break
1864 done
1866 if test -z "$CC"; then
1867 ac_ct_CC=$CC
1868 for ac_prog in cl
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
1876 else
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1883 IFS=$as_save_IFS
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
1889 break 2
1891 done
1892 done
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
1900 else
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1905 test -n "$ac_ct_CC" && break
1906 done
1908 CC=$ac_ct_CC
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
1926 ac_status=$?
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
1931 ac_status=$?
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
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1940 cat >conftest.$ac_ext <<_ACEOF
1941 /* confdefs.h. */
1942 _ACEOF
1943 cat confdefs.h >>conftest.$ac_ext
1944 cat >>conftest.$ac_ext <<_ACEOF
1945 /* end confdefs.h. */
1948 main ()
1952 return 0;
1954 _ACEOF
1955 # FIXME: Cleanup?
1956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1957 (eval $ac_link) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; then
1961 gcc_no_link=no
1962 else
1963 gcc_no_link=yes
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.
1970 cross_compiling=yes
1971 EXEEXT=
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h. */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1981 main ()
1985 return 0;
1987 _ACEOF
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
1992 # of exeext.
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
1998 ac_status=$?
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
2003 # resort.
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.
2007 ac_cv_exeext=
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
2012 case $ac_file in
2013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2015 conftest.$ac_ext )
2016 # This is the source file.
2018 [ab].out )
2019 # We found the default executable, but exeext='' is most
2020 # certainly right.
2021 break;;
2022 *.* )
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.
2027 export ac_cv_exeext
2028 break;;
2030 break;;
2031 esac
2032 done
2033 else
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
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2061 cross_compiling=no
2062 else
2063 if test "$cross_compiling" = maybe; then
2064 cross_compiling=yes
2065 else
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
2092 ac_status=$?
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
2098 # `rm'.
2099 for ac_file in conftest.exe conftest conftest.*; do
2100 test -f "$ac_file" || continue
2101 case $ac_file in
2102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2104 export ac_cv_exeext
2105 break;;
2106 * ) break;;
2107 esac
2108 done
2109 else
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
2123 ac_exeext=$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
2129 else
2130 cat >conftest.$ac_ext <<_ACEOF
2131 /* confdefs.h. */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2138 main ()
2142 return 0;
2144 _ACEOF
2145 rm -f conftest.o conftest.obj
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>&5
2148 ac_status=$?
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
2152 case $ac_file in
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2155 break;;
2156 esac
2157 done
2158 else
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
2174 ac_objext=$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
2179 else
2180 cat >conftest.$ac_ext <<_ACEOF
2181 /* confdefs.h. */
2182 _ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2188 main ()
2190 #ifndef __GNUC__
2191 choke me
2192 #endif
2195 return 0;
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
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
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
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
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_compiler_gnu=yes
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 ac_compiler_gnu=no
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
2236 CFLAGS="-g"
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
2241 else
2242 cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h. */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2250 main ()
2254 return 0;
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2260 ac_status=$?
2261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
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
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
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
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 ac_cv_prog_cc_g=yes
2280 else
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2284 ac_cv_prog_cc_g=no
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
2294 CFLAGS="-g -O2"
2295 else
2296 CFLAGS="-g"
2298 else
2299 if test "$GCC" = yes; then
2300 CFLAGS="-O2"
2301 else
2302 CFLAGS=
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
2309 else
2310 ac_cv_prog_cc_stdc=no
2311 ac_save_CC=$CC
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2318 #include <stdarg.h>
2319 #include <stdio.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)
2326 char **p;
2327 int i;
2329 return p[i];
2331 static char *f (char * (*g) (char **, int), char **p, ...)
2333 char *s;
2334 va_list v;
2335 va_start (v,p);
2336 s = g (p, va_arg (v,int));
2337 va_end (v);
2338 return s;
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);
2354 int argc;
2355 char **argv;
2357 main ()
2359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2361 return 0;
2363 _ACEOF
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
2377 ac_status=$?
2378 grep -v '^ *+' conftest.er1 >conftest.err
2379 rm -f conftest.er1
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
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
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
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_cv_prog_cc_stdc=$ac_arg
2397 break
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f conftest.err conftest.$ac_objext
2404 done
2405 rm -f conftest.$ac_ext conftest.$ac_objext
2406 CC=$ac_save_CC
2410 case "x$ac_cv_prog_cc_stdc" in
2411 x|xno)
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" ;;
2418 esac
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
2425 #ifndef __cplusplus
2426 choke me
2427 #endif
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2432 ac_status=$?
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
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
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
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
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 for ac_declaration in \
2452 '' \
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);' \
2457 'void exit (int);'
2459 cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h. */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2465 $ac_declaration
2466 #include <stdlib.h>
2468 main ()
2470 exit (42);
2472 return 0;
2474 _ACEOF
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2478 ac_status=$?
2479 grep -v '^ *+' conftest.er1 >conftest.err
2480 rm -f conftest.er1
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
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
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
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2498 else
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2502 continue
2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h. */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2511 $ac_declaration
2513 main ()
2515 exit (42);
2517 return 0;
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
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
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
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
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 break
2543 else
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
2549 done
2550 rm -f conftest*
2551 if test -n "$ac_declaration"; then
2552 echo '#ifdef __cplusplus' >>confdefs.h
2553 echo $ac_declaration >>confdefs.h
2554 echo '#endif' >>confdefs.h
2557 else
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
2563 ac_ext=c
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
2569 ac_ext=cc
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
2583 else
2584 if test -n "$CXX"; then
2585 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2590 IFS=$as_save_IFS
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
2596 break 2
2598 done
2599 done
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
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2612 test -n "$CXX" && break
2613 done
2615 if test -z "$CXX"; then
2616 ac_ct_CXX=$CXX
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
2625 else
2626 if test -n "$ac_ct_CXX"; then
2627 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2632 IFS=$as_save_IFS
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
2638 break 2
2640 done
2641 done
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
2649 else
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2654 test -n "$ac_ct_CXX" && break
2655 done
2656 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2658 CXX=$ac_ct_CXX
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
2668 ac_status=$?
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
2673 ac_status=$?
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
2678 ac_status=$?
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
2686 else
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2695 main ()
2697 #ifndef __GNUC__
2698 choke me
2699 #endif
2702 return 0;
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
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
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
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
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_compiler_gnu=yes
2728 else
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2732 ac_compiler_gnu=no
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
2743 CXXFLAGS="-g"
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
2748 else
2749 cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h. */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2757 main ()
2761 return 0;
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
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
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
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
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_cv_prog_cxx_g=yes
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 ac_cv_prog_cxx_g=no
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
2801 CXXFLAGS="-g -O2"
2802 else
2803 CXXFLAGS="-g"
2805 else
2806 if test "$GXX" = yes; then
2807 CXXFLAGS="-O2"
2808 else
2809 CXXFLAGS=
2812 for ac_declaration in \
2813 '' \
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);' \
2818 'void exit (int);'
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826 $ac_declaration
2827 #include <stdlib.h>
2829 main ()
2831 exit (42);
2833 return 0;
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
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
2848 (eval $ac_try) 2>&5
2849 ac_status=$?
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
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 continue
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 $ac_declaration
2874 main ()
2876 exit (42);
2878 return 0;
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883 (eval $ac_compile) 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
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
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
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
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2903 break
2904 else
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
2910 done
2911 rm -f conftest*
2912 if test -n "$ac_declaration"; then
2913 echo '#ifdef __cplusplus' >>confdefs.h
2914 echo $ac_declaration >>confdefs.h
2915 echo '#endif' >>confdefs.h
2918 ac_ext=c
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
2937 # AIX /bin/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
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 # Account for people who put trailing slashes in PATH elements.
2956 case $as_dir/ in
2957 ./ | .// | /cC/* | \
2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2960 /usr/ucb/* ) ;;
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
2964 # by default.
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.
2976 else
2977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2978 break 3
2981 done
2982 done
2984 esac
2985 done
2989 if test "${ac_cv_path_install+set}" = set; then
2990 INSTALL=$ac_cv_path_install
2991 else
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
3012 # Just in case
3013 sleep 1
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
3019 # directory).
3020 if (
3021 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3022 if test "$*" = "X"; then
3023 # -L didn't work.
3024 set X `ls -t $srcdir/configure conftest.file`
3026 rm -f 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
3043 then
3044 # Ok.
3046 else
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,$//
3064 _ACEOF
3065 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3066 rm 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 "
3075 else
3076 am_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
3086 # for two reasons:
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 --'
3097 else
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
3101 # exists.
3102 for d in ./-p ./--version;
3104 test -d $d && rmdir $d
3105 done
3106 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3107 if test -f "$ac_aux_dir/mkinstalldirs"; then
3108 mkdir_p='$(mkinstalldirs)'
3109 else
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
3122 else
3123 if test -n "$AWK"; then
3124 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3129 IFS=$as_save_IFS
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
3135 break 2
3137 done
3138 done
3142 AWK=$ac_cv_prog_AWK
3143 if test -n "$AWK"; then
3144 echo "$as_me:$LINENO: result: $AWK" >&5
3145 echo "${ECHO_T}$AWK" >&6
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3151 test -n "$AWK" && break
3152 done
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
3159 else
3160 cat >conftest.make <<\_ACEOF
3161 all:
3162 @echo 'ac_maketemp="$(MAKE)"'
3163 _ACEOF
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
3168 else
3169 eval ac_cv_prog_make_${ac_make}_set=no
3171 rm -f conftest.make
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
3176 SET_MAKE=
3177 else
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
3186 am__leading_dot=.
3187 else
3188 am__leading_dot=_
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'
3199 am__doit:
3200 @echo done
3201 .PHONY: am__doit
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
3206 am__include="#"
3207 am__quote=
3208 _am_result=none
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
3217 am__include=include
3218 am__quote=
3219 _am_result=GNU
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
3226 am__quote="\""
3227 _am_result=BSD
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"
3243 AMDEPBACKSLASH='\'
3247 if test "x$enable_dependency_tracking" != xno; then
3248 AMDEP_TRUE=
3249 AMDEP_FALSE='#'
3250 else
3251 AMDEP_TRUE='#'
3252 AMDEP_FALSE=
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'
3269 else
3270 CYGPATH_W=echo
3275 # Define the identity of the package.
3276 PACKAGE='libjava'
3277 VERSION='version-unused'
3280 cat >>confdefs.h <<_ACEOF
3281 #define PACKAGE "$PACKAGE"
3282 _ACEOF
3285 cat >>confdefs.h <<_ACEOF
3286 #define VERSION "$VERSION"
3287 _ACEOF
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
3319 else
3320 if test -n "$STRIP"; then
3321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3326 IFS=$as_save_IFS
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
3332 break 2
3334 done
3335 done
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
3343 else
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3349 if test -z "$ac_cv_prog_STRIP"; then
3350 ac_ct_STRIP=$STRIP
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
3357 else
3358 if test -n "$ac_ct_STRIP"; then
3359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3364 IFS=$as_save_IFS
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
3370 break 2
3372 done
3373 done
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
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3387 STRIP=$ac_ct_STRIP
3388 else
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
3396 # some platforms.
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
3412 else
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
3418 # in D'.
3419 mkdir conftest.dir
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
3423 cd 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
3429 # directory.
3430 mkdir sub
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.
3444 : > sub/conftest.c
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
3450 done
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3453 case $depmode in
3454 nosideeffect)
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
3458 continue
3459 else
3460 break
3463 none) break ;;
3464 esac
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
3486 break
3489 done
3491 cd ..
3492 rm -rf conftest.dir
3493 else
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
3507 am__fastdepCC_TRUE=
3508 am__fastdepCC_FALSE='#'
3509 else
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
3521 else
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
3527 # in D'.
3528 mkdir conftest.dir
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
3532 cd 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
3538 # directory.
3539 mkdir sub
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.
3553 : > sub/conftest.c
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
3559 done
3560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3562 case $depmode in
3563 nosideeffect)
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
3567 continue
3568 else
3569 break
3572 none) break ;;
3573 esac
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
3595 break
3598 done
3600 cd ..
3601 rm -rf conftest.dir
3602 else
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='#'
3618 else
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
3633 else
3634 if test -n "$AS"; then
3635 ac_cv_prog_AS="$AS" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3640 IFS=$as_save_IFS
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
3646 break 2
3648 done
3649 done
3653 AS=$ac_cv_prog_AS
3654 if test -n "$AS"; then
3655 echo "$as_me:$LINENO: result: $AS" >&5
3656 echo "${ECHO_T}$AS" >&6
3657 else
3658 echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3663 if test -z "$ac_cv_prog_AS"; then
3664 ac_ct_AS=$AS
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
3671 else
3672 if test -n "$ac_ct_AS"; then
3673 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3678 IFS=$as_save_IFS
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
3684 break 2
3686 done
3687 done
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
3695 else
3696 echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3700 AS=$ac_ct_AS
3701 else
3702 AS="$ac_cv_prog_AS"
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
3712 else
3713 if test -n "$AR"; then
3714 ac_cv_prog_AR="$AR" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3719 IFS=$as_save_IFS
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
3725 break 2
3727 done
3728 done
3732 AR=$ac_cv_prog_AR
3733 if test -n "$AR"; then
3734 echo "$as_me:$LINENO: result: $AR" >&5
3735 echo "${ECHO_T}$AR" >&6
3736 else
3737 echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6
3742 if test -z "$ac_cv_prog_AR"; then
3743 ac_ct_AR=$AR
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
3750 else
3751 if test -n "$ac_ct_AR"; then
3752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3757 IFS=$as_save_IFS
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
3763 break 2
3765 done
3766 done
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
3774 else
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3779 AR=$ac_ct_AR
3780 else
3781 AR="$ac_cv_prog_AR"
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
3791 else
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3798 IFS=$as_save_IFS
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
3804 break 2
3806 done
3807 done
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
3815 else
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
3829 else
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3836 IFS=$as_save_IFS
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
3842 break 2
3844 done
3845 done
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
3854 else
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 RANLIB=$ac_ct_RANLIB
3860 else
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
3871 # AIX /bin/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
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 # Account for people who put trailing slashes in PATH elements.
3890 case $as_dir/ in
3891 ./ | .// | /cC/* | \
3892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3894 /usr/ucb/* ) ;;
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
3898 # by default.
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.
3910 else
3911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3912 break 3
3915 done
3916 done
3918 esac
3919 done
3923 if test "${ac_cv_path_install+set}" = set; then
3924 INSTALL=$ac_cv_path_install
3925 else
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
3951 else
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='#'
3961 else
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
3977 libgcj_cflags=
3978 libgcj_cxxflags=
3979 libgcj_javaflags=
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" ;;
4001 esac
4002 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4003 INCLTDL='-I${top_srcdir}/''libltdl'
4006 DIRLTDL=libltdl
4008 cat >>confdefs.h <<\_ACEOF
4009 #define USE_LTDL 1
4010 _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}
4025 case $enableval in
4026 yes) enable_shared=yes ;;
4027 no) enable_shared=no ;;
4029 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
4034 enable_shared=yes
4036 done
4037 IFS="$ac_save_ifs"
4039 esac
4040 else
4041 enable_shared=yes
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}
4047 case $enableval in
4048 yes) enable_static=yes ;;
4049 no) enable_static=no ;;
4051 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
4056 enable_static=yes
4058 done
4059 IFS="$ac_save_ifs"
4061 esac
4062 else
4063 enable_static=yes
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}
4069 case $enableval in
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
4080 done
4081 IFS="$ac_save_ifs"
4083 esac
4084 else
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
4092 else
4093 with_gnu_ld=no
4095 ac_prog=ld
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
4100 case $host in
4101 *-*-mingw*)
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` ;;
4106 esac
4107 case $ac_prog in
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%/%"`
4115 done
4116 test -z "$LD" && LD="$ac_prog"
4119 # If it fails, then pretend we aren't using GCC.
4120 ac_prog=ld
4123 # If it is relative, then search for the first ld in PATH.
4124 with_gnu_ld=unknown
4126 esac
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
4130 else
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
4136 else
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
4148 else
4149 test "$with_gnu_ld" != yes && break
4152 done
4153 IFS="$ac_save_ifs"
4154 else
4155 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4159 LD="$lt_cv_path_LD"
4160 if test -n "$LD"; then
4161 echo "$as_me:$LINENO: result: $LD" >&5
4162 echo "${ECHO_T}$LD" >&6
4163 else
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
4174 else
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
4178 else
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
4191 else
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
4203 else
4204 if test -n "$NM"; then
4205 # Let the user override the test.
4206 lt_cv_path_NM="$NM"
4207 else
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"
4219 break
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"
4222 break
4223 else
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
4228 done
4229 IFS="$ac_save_ifs"
4230 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4234 NM="$lt_cv_path_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
4242 else
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.
4257 case $host_os in
4258 aix*)
4259 lt_cv_deplibs_check_method=pass_all
4262 beos*)
4263 lt_cv_deplibs_check_method=pass_all
4266 bsdi4*)
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'
4281 case "$host_os" in
4282 rhapsody* | darwin1.012)
4283 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4285 *) # Darwin 1.3 on
4286 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4288 esac
4289 lt_cv_deplibs_check_method=pass_all
4292 freebsd* | kfreebsd*-gnu)
4293 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4294 case $host_cpu in
4295 i*86 )
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.*`
4302 esac
4303 else
4304 lt_cv_deplibs_check_method=pass_all
4308 gnu*)
4309 lt_cv_deplibs_check_method=pass_all
4312 hpux10.20*|hpux11*)
4313 case $host_cpu in
4314 hppa*)
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
4319 ia64*)
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
4324 esac
4327 irix5* | irix6*)
4328 case $host_os in
4329 irix5*)
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"
4334 case $LD in
4335 *-32|*"-32 ") libmagic=32-bit;;
4336 *-n32|*"-n32 ") libmagic=N32;;
4337 *-64|*"-64 ") libmagic=64-bit;;
4338 *) libmagic=never-match;;
4339 esac
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"
4343 esac
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.
4349 linux-gnu*)
4350 case $host_cpu in
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 )' ;;
4356 esac
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]+$'
4363 else
4364 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4368 newsos6)
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
4381 sco3.2v5*)
4382 lt_cv_deplibs_check_method=pass_all
4385 solaris*)
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
4396 ncr)
4397 lt_cv_deplibs_check_method=pass_all
4399 motorola)
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*`
4403 esac
4405 esac
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
4420 file_magic*)
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
4426 else
4427 case $MAGIC_CMD in
4429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4431 ?:/*)
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
4444 "file_magic "*)
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
4450 else
4451 cat <<EOF 1>&2
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
4463 fi ;;
4464 esac
4466 break
4468 done
4469 IFS="$ac_save_ifs"
4470 MAGIC_CMD="$ac_save_MAGIC_CMD"
4472 esac
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
4479 else
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
4490 else
4491 case $MAGIC_CMD in
4493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4495 ?:/*)
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
4508 "file_magic "*)
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
4514 else
4515 cat <<EOF 1>&2
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
4527 fi ;;
4528 esac
4530 break
4532 done
4533 IFS="$ac_save_ifs"
4534 MAGIC_CMD="$ac_save_MAGIC_CMD"
4536 esac
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
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 else
4549 MAGIC_CMD=:
4555 esac
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
4564 else
4565 if test -n "$RANLIB"; then
4566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4571 IFS=$as_save_IFS
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
4577 break 2
4579 done
4580 done
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
4588 else
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
4602 else
4603 if test -n "$ac_ct_RANLIB"; then
4604 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
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
4615 break 2
4617 done
4618 done
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
4627 else
4628 echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6
4632 RANLIB=$ac_ct_RANLIB
4633 else
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
4644 else
4645 if test -n "$STRIP"; then
4646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
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
4657 break 2
4659 done
4660 done
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
4668 else
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4674 if test -z "$ac_cv_prog_STRIP"; then
4675 ac_ct_STRIP=$STRIP
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
4682 else
4683 if test -n "$ac_ct_STRIP"; then
4684 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
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
4695 break 2
4697 done
4698 done
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
4707 else
4708 echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4712 STRIP=$ac_ct_STRIP
4713 else
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
4738 withval="$with_pic"
4739 pic_mode="$withval"
4740 else
4741 pic_mode=default
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
4747 # libtool support.
4748 case $host in
4749 *-*-irix6*)
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
4754 ac_status=$?
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
4759 *32-bit*)
4760 LD="${LD-ld} -melf32bsmip"
4762 *N32*)
4763 LD="${LD-ld} -melf32bmipn32"
4765 *64-bit*)
4766 LD="${LD-ld} -melf64bmip"
4768 esac
4769 else
4770 case `/usr/bin/file conftest.$ac_objext` in
4771 *32-bit*)
4772 LD="${LD-ld} -32"
4774 *N32*)
4775 LD="${LD-ld} -n32"
4777 *64-bit*)
4778 LD="${LD-ld} -64"
4780 esac
4783 rm -rf conftest*
4786 ia64-*-hpux*)
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
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; then
4794 case "`/usr/bin/file conftest.o`" in
4795 *ELF-32*)
4796 HPUX_IA64_MODE="32"
4798 *ELF-64*)
4799 HPUX_IA64_MODE="64"
4801 esac
4803 rm -rf conftest*
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
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; then
4814 case "`/usr/bin/file conftest.o`" in
4815 *32-bit*)
4816 case $host in
4817 x86_64-*linux*)
4818 LD="${LD-ld} -m elf_i386"
4820 ppc64-*linux*|powerpc64-*linux*)
4821 LD="${LD-ld} -m elf32ppclinux"
4823 s390x-*linux*)
4824 LD="${LD-ld} -m elf_s390"
4826 sparc64-*linux*)
4827 LD="${LD-ld} -m elf32_sparc"
4829 esac
4831 *64-bit*)
4832 case $host in
4833 x86_64-*linux*)
4834 LD="${LD-ld} -m elf_x86_64"
4836 ppc*-*linux*|powerpc*-*linux*)
4837 LD="${LD-ld} -m elf64ppc"
4839 s390*-*linux*)
4840 LD="${LD-ld} -m elf64_s390"
4842 sparc*-*linux*)
4843 LD="${LD-ld} -m elf64_sparc"
4845 esac
4847 esac
4849 rm -rf conftest*
4852 *-*-sco3.2v5*)
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
4860 else
4863 ac_ext=c
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
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4882 main ()
4886 return 0;
4888 _ACEOF
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
4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
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
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
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
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 lt_cv_cc_needs_belf=yes
4912 else
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
4920 ac_ext=c
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"
4936 esac
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
4952 # following values.
4954 _ACEOF
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.
4962 (set) 2>&1 |
4963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4964 *ac_space=\ *)
4965 # `set' does not quote correctly, so add quotes (double-quote
4966 # substitution turns \\\\ into \\, and sed turns \\ into \).
4967 sed -n \
4968 "s/'/'\\\\''/g;
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.
4973 sed -n \
4974 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4976 esac;
4978 sed '
4979 t clear
4980 : clear
4981 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4982 t end
4983 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4984 : end' >>confcache
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
4989 else
4990 echo "not updating unwritable cache $cache_file"
4993 rm -f confcache
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;}
5015 case $cache_file in
5016 [\\/]* | ?:[\\/]* ) . $cache_file;;
5017 *) . ./$cache_file;;
5018 esac
5020 else
5021 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5022 echo "$as_me: creating cache $cache_file" >&6;}
5023 >$cache_file
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
5037 ac_ext=cc
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
5047 else
5048 # Double quotes because CXXCPP needs to be expanded
5049 for CXXCPP in "$CXX -E" "/lib/cpp"
5051 ac_preproc_ok=false
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
5061 /* confdefs.h. */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 #ifdef __STDC__
5067 # include <limits.h>
5068 #else
5069 # include <assert.h>
5070 #endif
5071 Syntax error
5072 _ACEOF
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
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
5084 else
5085 ac_cpp_err=
5087 else
5088 ac_cpp_err=yes
5090 if test -z "$ac_cpp_err"; then
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 # Broken: fails on valid input.
5097 continue
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
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #include <ac_nonexistent.h>
5110 _ACEOF
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
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
5122 else
5123 ac_cpp_err=
5125 else
5126 ac_cpp_err=yes
5128 if test -z "$ac_cpp_err"; then
5129 # Broken: success on invalid input.
5130 continue
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 # Passes both tests.
5136 ac_preproc_ok=:
5137 break
5139 rm -f conftest.err conftest.$ac_ext
5141 done
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
5145 break
5148 done
5149 ac_cv_prog_CXXCPP=$CXXCPP
5152 CXXCPP=$ac_cv_prog_CXXCPP
5153 else
5154 ac_cv_prog_CXXCPP=$CXXCPP
5156 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5157 echo "${ECHO_T}$CXXCPP" >&6
5158 ac_preproc_ok=false
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
5168 /* confdefs.h. */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 #ifdef __STDC__
5174 # include <limits.h>
5175 #else
5176 # include <assert.h>
5177 #endif
5178 Syntax error
5179 _ACEOF
5180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
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
5191 else
5192 ac_cpp_err=
5194 else
5195 ac_cpp_err=yes
5197 if test -z "$ac_cpp_err"; then
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 # Broken: fails on valid input.
5204 continue
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
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 #include <ac_nonexistent.h>
5217 _ACEOF
5218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
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
5229 else
5230 ac_cpp_err=
5232 else
5233 ac_cpp_err=yes
5235 if test -z "$ac_cpp_err"; then
5236 # Broken: success on invalid input.
5237 continue
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5242 # Passes both tests.
5243 ac_preproc_ok=:
5244 break
5246 rm -f conftest.err conftest.$ac_ext
5248 done
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
5253 else
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; }; }
5261 ac_ext=c
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"
5270 lt_save_CC="$CC"
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; }; }
5284 CC="$lt_save_CC"
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
5297 for ac_prog in gcj
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
5305 else
5306 if test -n "$GCJ"; then
5307 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
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
5318 break 2
5320 done
5321 done
5325 GCJ=$ac_cv_prog_GCJ
5326 if test -n "$GCJ"; then
5327 echo "$as_me:$LINENO: result: $GCJ" >&5
5328 echo "${ECHO_T}$GCJ" >&6
5329 else
5330 echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5334 test -n "$GCJ" && break
5335 done
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
5342 GCJFLAGS="-g -O2"
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
5352 else
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
5358 # in D'.
5359 mkdir conftest.dir
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
5363 cd 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
5369 # directory.
5370 mkdir sub
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.
5384 : > sub/conftest.c
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
5390 done
5391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5393 case $depmode in
5394 nosideeffect)
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
5398 continue
5399 else
5400 break
5403 none) break ;;
5404 esac
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
5426 break
5429 done
5431 cd ..
5432 rm -rf conftest.dir
5433 else
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='#'
5449 else
5450 am__fastdepGCJ_TRUE='#'
5451 am__fastdepGCJ_FALSE=
5457 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5458 lt_save_CC="$CC"
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; }; }
5472 CC="$lt_save_CC"
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
5484 else
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
5492 else
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5501 main ()
5505 return 0;
5507 _ACEOF
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
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
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
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); };
5522 then
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
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
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
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
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
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); };
5543 then
5544 # cc works too.
5546 else
5547 # cc exists but doesn't like -o.
5548 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5552 else
5553 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5555 rm -f conftest*
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
5561 else
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
5567 _ACEOF
5571 # FIXME: we rely on the cache variable name because
5572 # there is no other way.
5573 set dummy $CC
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
5590 COMPPATH=.
5591 else
5592 COMPPATH=..
5596 # The -no-testsuite modules omit the test subdir.
5599 if test -d $srcdir/testsuite; then
5600 TESTSUBDIR_TRUE=
5601 TESTSUBDIR_FALSE='#'
5602 else
5603 TESTSUBDIR_TRUE='#'
5604 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
5624 _ACEOF
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
5636 _ACEOF
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; }; } ;;
5664 esac
5665 else
5666 enable_libgcj_multifile=no
5670 if test "$enable_libgcj_multifile" = yes; then
5671 ONESTEP_TRUE=
5672 ONESTEP_FALSE='#'
5673 else
5674 ONESTEP_TRUE='#'
5675 ONESTEP_FALSE=
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; }; } ;;
5691 esac
5692 else
5693 with_win32_nlsapi=ansi
5696 case "${with_win32_nlsapi}" in
5697 unicows | unicode)
5699 cat >>confdefs.h <<\_ACEOF
5700 #define MINGW_LIBGCJ_UNICODE 1
5701 _ACEOF
5704 esac
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
5712 _ACEOF
5717 # See if the user has requested runtime debugging.
5718 LIBGCJDEBUG="false"
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
5726 #define DEBUG 1
5727 _ACEOF
5729 LIBGCJDEBUG="true"
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
5741 _ACEOF
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
5762 _ACEOF
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
5770 ac_ext=cc
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"
5780 else
5781 cat > conftest.$ac_ext << EOF
5782 #line 5782 "configure"
5783 struct S { ~S(); };
5784 void bar();
5785 void foo()
5787 S s;
5788 bar();
5791 old_CXXFLAGS="$CXXFLAGS"
5792 CXXFLAGS=-S
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>&5
5795 ac_status=$?
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"
5805 rm -f conftest*
5807 if test x$enable_sjlj_exceptions = xyes; then
5809 cat >>confdefs.h <<\_ACEOF
5810 #define SJLJ_EXCEPTIONS 1
5811 _ACEOF
5813 ac_exception_model_name=sjlj
5814 elif test x$enable_sjlj_exceptions = xno; then
5815 ac_exception_model_name="call frame"
5816 else
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; }; }
5821 ac_ext=c
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
5835 EXCEPTIONSPEC=
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
5854 _ACEOF
5858 # See if the user wants to configure without libffi. Some
5859 # architectures don't support it, and default values are set in
5860 # configure.host.
5862 # Check whether --with-libffi or --without-libffi was given.
5863 if test "${with_libffi+set}" = set; then
5864 withval="$with_libffi"
5866 else
5867 with_libffi=${with_libffi_default-yes}
5870 LIBFFI=
5871 LIBFFIINCS=
5872 if test "$with_libffi" != no; then
5874 cat >>confdefs.h <<\_ACEOF
5875 #define USE_LIBFFI 1
5876 _ACEOF
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
5895 _ACEOF
5899 # If the target is an eCos system, use the appropriate eCos
5900 # I/O routines.
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"
5912 supply_backtrace=no
5914 PLATFORM_INNER_NAT_HDRS=
5915 case "$TARGET_ECOS" in
5916 no) case "$host" in
5917 *mingw*)
5918 PLATFORM=Win32
5919 PLATFORMNET=Win32
5920 PLATFORMH=win32.h
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
5929 LD_OK="ok"
5930 else
5931 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5932 LD_OK="ok"
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
5938 else
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
5946 _ACEOF
5951 PLATFORM=Posix
5952 PLATFORMNET=Posix
5953 PLATFORMH=posix.h
5954 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5956 esac
5959 PLATFORM=Ecos
5960 PLATFORMNET=NoNet
5962 cat >>confdefs.h <<\_ACEOF
5963 #define ECOS 1
5964 _ACEOF
5966 PLATFORMH=posix.h
5968 esac
5970 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5973 ac_ext=c
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
5982 CPP=
5984 if test -z "$CPP"; then
5985 if test "${ac_cv_prog_CPP+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 # Double quotes because CPP needs to be expanded
5989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5991 ac_preproc_ok=false
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
6001 /* confdefs.h. */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #ifdef __STDC__
6007 # include <limits.h>
6008 #else
6009 # include <assert.h>
6010 #endif
6011 Syntax error
6012 _ACEOF
6013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
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
6024 else
6025 ac_cpp_err=
6027 else
6028 ac_cpp_err=yes
6030 if test -z "$ac_cpp_err"; then
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 # Broken: fails on valid input.
6037 continue
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
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <ac_nonexistent.h>
6050 _ACEOF
6051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
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
6062 else
6063 ac_cpp_err=
6065 else
6066 ac_cpp_err=yes
6068 if test -z "$ac_cpp_err"; then
6069 # Broken: success on invalid input.
6070 continue
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6075 # Passes both tests.
6076 ac_preproc_ok=:
6077 break
6079 rm -f conftest.err conftest.$ac_ext
6081 done
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
6085 break
6088 done
6089 ac_cv_prog_CPP=$CPP
6092 CPP=$ac_cv_prog_CPP
6093 else
6094 ac_cv_prog_CPP=$CPP
6096 echo "$as_me:$LINENO: result: $CPP" >&5
6097 echo "${ECHO_T}$CPP" >&6
6098 ac_preproc_ok=false
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
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #ifdef __STDC__
6114 # include <limits.h>
6115 #else
6116 # include <assert.h>
6117 #endif
6118 Syntax error
6119 _ACEOF
6120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
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
6131 else
6132 ac_cpp_err=
6134 else
6135 ac_cpp_err=yes
6137 if test -z "$ac_cpp_err"; then
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 # Broken: fails on valid input.
6144 continue
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
6151 /* confdefs.h. */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <ac_nonexistent.h>
6157 _ACEOF
6158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
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
6169 else
6170 ac_cpp_err=
6172 else
6173 ac_cpp_err=yes
6175 if test -z "$ac_cpp_err"; then
6176 # Broken: success on invalid input.
6177 continue
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 # Passes both tests.
6183 ac_preproc_ok=:
6184 break
6186 rm -f conftest.err conftest.$ac_ext
6188 done
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
6193 else
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; }; }
6201 ac_ext=c
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
6212 else
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
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <stdint.h>
6231 _ACEOF
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
6237 _ACEOF
6240 rm -f conftest*
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <inttypes.h>
6250 _ACEOF
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
6256 _ACEOF
6259 rm -f conftest*
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6269 _ACEOF
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
6275 _ACEOF
6278 rm -f conftest*
6280 cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h. */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 #include <sys/config.h>
6288 _ACEOF
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
6294 _ACEOF
6297 rm -f conftest*
6302 if test "$PLATFORM" = Win32; then
6303 USING_WIN32_PLATFORM_TRUE=
6304 USING_WIN32_PLATFORM_FALSE='#'
6305 else
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='#'
6315 else
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='#'
6325 else
6326 USING_ECOS_PLATFORM_TRUE='#'
6327 USING_ECOS_PLATFORM_FALSE=
6331 case "$host" in
6332 *-darwin*) DARWIN_CRT=true ;;
6333 *) DARWIN_CRT=false ;;
6334 esac
6337 if $DARWIN_CRT; then
6338 USING_DARWIN_CRT_TRUE=
6339 USING_DARWIN_CRT_FALSE='#'
6340 else
6341 USING_DARWIN_CRT_TRUE='#'
6342 USING_DARWIN_CRT_FALSE=
6346 # These may not be defined in a non-ANS conformant embedded system.
6347 # FIXME: Should these case a runtime exception in that case?
6348 cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h. */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #include <time.h>
6356 _ACEOF
6357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358 $EGREP "mktime" >/dev/null 2>&1; then
6360 cat >>confdefs.h <<\_ACEOF
6361 #define HAVE_MKTIME 1
6362 _ACEOF
6365 rm -f conftest*
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <time.h>
6375 _ACEOF
6376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6377 $EGREP "localtime" >/dev/null 2>&1; then
6379 cat >>confdefs.h <<\_ACEOF
6380 #define HAVE_LOCALTIME 1
6381 _ACEOF
6384 rm -f conftest*
6387 # Create the subdirectory for natFile.cc, or the attempt
6388 # to create the link will fail.
6389 test -d java || mkdir java
6390 test -d java/io || mkdir java/io
6391 test -d gnu || mkdir gnu
6392 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6395 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6396 test -d java/lang || mkdir java/lang
6397 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6399 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6402 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6403 test -d java/net || mkdir java/net
6404 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6406 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6409 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6410 test -d gnu/java || mkdir gnu/java
6411 test -d gnu/java/net || mkdir gnu/java/net
6412 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6414 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6417 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6418 test -d gnu/java/nio || mkdir gnu/java/nio
6419 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6421 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6423 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6424 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6427 case "${host}" in
6428 *mingw*)
6429 SYSTEMSPEC="-lgdi32 -lws2_32"
6430 if test "${with_win32_nlsapi}" = "unicows"; then
6431 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6435 SYSTEMSPEC=
6437 esac
6440 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6444 # Check whether --with-system-zlib or --without-system-zlib was given.
6445 if test "${with_system_zlib+set}" = set; then
6446 withval="$with_system_zlib"
6449 ZLIBSPEC=
6451 ZLIBTESTSPEC=
6454 echo "$as_me:$LINENO: checking for X" >&5
6455 echo $ECHO_N "checking for X... $ECHO_C" >&6
6458 # Check whether --with-x or --without-x was given.
6459 if test "${with_x+set}" = set; then
6460 withval="$with_x"
6463 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6464 if test "x$with_x" = xno; then
6465 # The user explicitly disabled X.
6466 have_x=disabled
6467 else
6468 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6469 # Both variables are already set.
6470 have_x=yes
6471 else
6472 if test "${ac_cv_have_x+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 # One or both of the vars are not set, and there is no cached value.
6476 ac_x_includes=no ac_x_libraries=no
6477 rm -fr conftest.dir
6478 if mkdir conftest.dir; then
6479 cd conftest.dir
6480 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6481 cat >Imakefile <<'_ACEOF'
6482 acfindx:
6483 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6484 _ACEOF
6485 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6486 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6487 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6488 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6489 for ac_extension in a so sl; do
6490 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6491 test -f $ac_im_libdir/libX11.$ac_extension; then
6492 ac_im_usrlibdir=$ac_im_libdir; break
6494 done
6495 # Screen out bogus values from the imake configuration. They are
6496 # bogus both because they are the default anyway, and because
6497 # using them would break gcc on systems where it needs fixed includes.
6498 case $ac_im_incroot in
6499 /usr/include) ;;
6500 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6501 esac
6502 case $ac_im_usrlibdir in
6503 /usr/lib | /lib) ;;
6504 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6505 esac
6507 cd ..
6508 rm -fr conftest.dir
6511 # Standard set of common directories for X headers.
6512 # Check X11 before X11Rn because it is often a symlink to the current release.
6513 ac_x_header_dirs='
6514 /usr/X11/include
6515 /usr/X11R6/include
6516 /usr/X11R5/include
6517 /usr/X11R4/include
6519 /usr/include/X11
6520 /usr/include/X11R6
6521 /usr/include/X11R5
6522 /usr/include/X11R4
6524 /usr/local/X11/include
6525 /usr/local/X11R6/include
6526 /usr/local/X11R5/include
6527 /usr/local/X11R4/include
6529 /usr/local/include/X11
6530 /usr/local/include/X11R6
6531 /usr/local/include/X11R5
6532 /usr/local/include/X11R4
6534 /usr/X386/include
6535 /usr/x386/include
6536 /usr/XFree86/include/X11
6538 /usr/include
6539 /usr/local/include
6540 /usr/unsupported/include
6541 /usr/athena/include
6542 /usr/local/x11r5/include
6543 /usr/lpp/Xamples/include
6545 /usr/openwin/include
6546 /usr/openwin/share/include'
6548 if test "$ac_x_includes" = no; then
6549 # Guess where to find include files, by looking for Intrinsic.h.
6550 # First, try using that file with no special directory specified.
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <X11/Intrinsic.h>
6558 _ACEOF
6559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } >/dev/null; then
6567 if test -s conftest.err; then
6568 ac_cpp_err=$ac_c_preproc_warn_flag
6569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6570 else
6571 ac_cpp_err=
6573 else
6574 ac_cpp_err=yes
6576 if test -z "$ac_cpp_err"; then
6577 # We can compile using X headers with no special include directory.
6578 ac_x_includes=
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 for ac_dir in $ac_x_header_dirs; do
6584 if test -r "$ac_dir/X11/Intrinsic.h"; then
6585 ac_x_includes=$ac_dir
6586 break
6588 done
6590 rm -f conftest.err conftest.$ac_ext
6591 fi # $ac_x_includes = no
6593 if test "$ac_x_libraries" = no; then
6594 # Check for the libraries.
6595 # See if we find them without any special options.
6596 # Don't add to $LIBS permanently.
6597 ac_save_LIBS=$LIBS
6598 LIBS="-lXt $LIBS"
6599 if test x$gcc_no_link = xyes; then
6600 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6601 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6602 { (exit 1); exit 1; }; }
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 #include <X11/Intrinsic.h>
6612 main ()
6614 XtMalloc (0)
6616 return 0;
6618 _ACEOF
6619 rm -f conftest.$ac_objext conftest$ac_exeext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621 (eval $ac_link) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 LIBS=$ac_save_LIBS
6642 # We can link X programs with no special library path.
6643 ac_x_libraries=
6644 else
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 LIBS=$ac_save_LIBS
6649 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6651 # Don't even attempt the hair of trying to link an X program!
6652 for ac_extension in a so sl; do
6653 if test -r $ac_dir/libXt.$ac_extension; then
6654 ac_x_libraries=$ac_dir
6655 break 2
6657 done
6658 done
6660 rm -f conftest.err conftest.$ac_objext \
6661 conftest$ac_exeext conftest.$ac_ext
6662 fi # $ac_x_libraries = no
6664 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6665 # Didn't find X anywhere. Cache the known absence of X.
6666 ac_cv_have_x="have_x=no"
6667 else
6668 # Record where we found X for the cache.
6669 ac_cv_have_x="have_x=yes \
6670 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6675 eval "$ac_cv_have_x"
6676 fi # $with_x != no
6678 if test "$have_x" != yes; then
6679 echo "$as_me:$LINENO: result: $have_x" >&5
6680 echo "${ECHO_T}$have_x" >&6
6681 no_x=yes
6682 else
6683 # If each of the values was on the command line, it overrides each guess.
6684 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6685 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6686 # Update the cache value to reflect the command line values.
6687 ac_cv_have_x="have_x=yes \
6688 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6689 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6690 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6693 if test "$no_x" = yes; then
6694 # Not all programs may use this symbol, but it does not hurt to define it.
6696 cat >>confdefs.h <<\_ACEOF
6697 #define X_DISPLAY_MISSING 1
6698 _ACEOF
6700 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6701 else
6702 if test -n "$x_includes"; then
6703 X_CFLAGS="$X_CFLAGS -I$x_includes"
6706 # It would also be nice to do this for all -L options, not just this one.
6707 if test -n "$x_libraries"; then
6708 X_LIBS="$X_LIBS -L$x_libraries"
6709 # For Solaris; some versions of Sun CC require a space after -R and
6710 # others require no space. Words are not sufficient . . . .
6711 case `(uname -sr) 2>/dev/null` in
6712 "SunOS 5"*)
6713 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6714 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6715 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6716 if test x$gcc_no_link = xyes; then
6717 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6719 { (exit 1); exit 1; }; }
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6729 main ()
6733 return 0;
6735 _ACEOF
6736 rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_c_werror_flag"
6746 || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try='test -s conftest$ac_exeext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 ac_R_nospace=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_R_nospace=no
6765 rm -f conftest.err conftest.$ac_objext \
6766 conftest$ac_exeext conftest.$ac_ext
6767 if test $ac_R_nospace = yes; then
6768 echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6
6770 X_LIBS="$X_LIBS -R$x_libraries"
6771 else
6772 LIBS="$ac_xsave_LIBS -R $x_libraries"
6773 if test x$gcc_no_link = xyes; then
6774 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6775 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6776 { (exit 1); exit 1; }; }
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6786 main ()
6790 return 0;
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest$ac_exeext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_R_space=yes
6816 else
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 ac_R_space=no
6822 rm -f conftest.err conftest.$ac_objext \
6823 conftest$ac_exeext conftest.$ac_ext
6824 if test $ac_R_space = yes; then
6825 echo "$as_me:$LINENO: result: yes" >&5
6826 echo "${ECHO_T}yes" >&6
6827 X_LIBS="$X_LIBS -R $x_libraries"
6828 else
6829 echo "$as_me:$LINENO: result: neither works" >&5
6830 echo "${ECHO_T}neither works" >&6
6833 LIBS=$ac_xsave_LIBS
6834 esac
6837 # Check for system-dependent libraries X programs must link with.
6838 # Do this before checking for the system-independent R6 libraries
6839 # (-lICE), since we may need -lsocket or whatever for X linking.
6841 if test "$ISC" = yes; then
6842 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6843 else
6844 # Martyn Johnson says this is needed for Ultrix, if the X
6845 # libraries were built with DECnet support. And Karl Berry says
6846 # the Alpha needs dnet_stub (dnet does not exist).
6847 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6848 if test x$gcc_no_link = xyes; then
6849 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6850 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6851 { (exit 1); exit 1; }; }
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6860 /* Override any gcc2 internal prototype to avoid an error. */
6861 #ifdef __cplusplus
6862 extern "C"
6863 #endif
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6866 char XOpenDisplay ();
6868 main ()
6870 XOpenDisplay ();
6872 return 0;
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest$ac_exeext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6903 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6904 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 ac_check_lib_save_LIBS=$LIBS
6908 LIBS="-ldnet $LIBS"
6909 if test x$gcc_no_link = xyes; then
6910 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6911 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6912 { (exit 1); exit 1; }; }
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6921 /* Override any gcc2 internal prototype to avoid an error. */
6922 #ifdef __cplusplus
6923 extern "C"
6924 #endif
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6927 char dnet_ntoa ();
6929 main ()
6931 dnet_ntoa ();
6933 return 0;
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_c_werror_flag"
6946 || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_cv_lib_dnet_dnet_ntoa=yes
6959 else
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 ac_cv_lib_dnet_dnet_ntoa=no
6965 rm -f conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967 LIBS=$ac_check_lib_save_LIBS
6969 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6970 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6971 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6972 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6975 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6976 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6977 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6978 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 ac_check_lib_save_LIBS=$LIBS
6982 LIBS="-ldnet_stub $LIBS"
6983 if test x$gcc_no_link = xyes; then
6984 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6985 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6986 { (exit 1); exit 1; }; }
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6995 /* Override any gcc2 internal prototype to avoid an error. */
6996 #ifdef __cplusplus
6997 extern "C"
6998 #endif
6999 /* We use char because int might match the return type of a gcc2
7000 builtin and then its argument prototype would still apply. */
7001 char dnet_ntoa ();
7003 main ()
7005 dnet_ntoa ();
7007 return 0;
7009 _ACEOF
7010 rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>conftest.er1
7013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7033 else
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 ac_cv_lib_dnet_stub_dnet_ntoa=no
7039 rm -f conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7041 LIBS=$ac_check_lib_save_LIBS
7043 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7044 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7045 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7046 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7051 rm -f conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053 LIBS="$ac_xsave_LIBS"
7055 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7056 # to get the SysV transport functions.
7057 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7058 # needs -lnsl.
7059 # The nsl library prevents programs from opening the X display
7060 # on Irix 5.2, according to T.E. Dickey.
7061 # The functions gethostbyname, getservbyname, and inet_addr are
7062 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7063 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7064 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7065 if test "${ac_cv_func_gethostbyname+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068 if test x$gcc_no_link = xyes; then
7069 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7070 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7071 { (exit 1); exit 1; }; }
7073 cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h. */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7081 #define gethostbyname innocuous_gethostbyname
7083 /* System header to define __stub macros and hopefully few prototypes,
7084 which can conflict with char gethostbyname (); below.
7085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7086 <limits.h> exists even on freestanding compilers. */
7088 #ifdef __STDC__
7089 # include <limits.h>
7090 #else
7091 # include <assert.h>
7092 #endif
7094 #undef gethostbyname
7096 /* Override any gcc2 internal prototype to avoid an error. */
7097 #ifdef __cplusplus
7098 extern "C"
7100 #endif
7101 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */
7103 char gethostbyname ();
7104 /* The GNU C library defines this for functions which it implements
7105 to always fail with ENOSYS. Some functions are actually named
7106 something starting with __ and the normal name is an alias. */
7107 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7108 choke me
7109 #else
7110 char (*f) () = gethostbyname;
7111 #endif
7112 #ifdef __cplusplus
7114 #endif
7117 main ()
7119 return f != gethostbyname;
7121 return 0;
7123 _ACEOF
7124 rm -f conftest.$ac_objext conftest$ac_exeext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>conftest.er1
7127 ac_status=$?
7128 grep -v '^ *+' conftest.er1 >conftest.err
7129 rm -f conftest.er1
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -z "$ac_c_werror_flag"
7134 || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try='test -s conftest$ac_exeext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_cv_func_gethostbyname=yes
7147 else
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 ac_cv_func_gethostbyname=no
7153 rm -f conftest.err conftest.$ac_objext \
7154 conftest$ac_exeext conftest.$ac_ext
7156 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7157 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7159 if test $ac_cv_func_gethostbyname = no; then
7160 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7161 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7162 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 ac_check_lib_save_LIBS=$LIBS
7166 LIBS="-lnsl $LIBS"
7167 if test x$gcc_no_link = xyes; then
7168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7170 { (exit 1); exit 1; }; }
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7179 /* Override any gcc2 internal prototype to avoid an error. */
7180 #ifdef __cplusplus
7181 extern "C"
7182 #endif
7183 /* We use char because int might match the return type of a gcc2
7184 builtin and then its argument prototype would still apply. */
7185 char gethostbyname ();
7187 main ()
7189 gethostbyname ();
7191 return 0;
7193 _ACEOF
7194 rm -f conftest.$ac_objext conftest$ac_exeext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7196 (eval $ac_link) 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try='test -s conftest$ac_exeext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 ac_cv_lib_nsl_gethostbyname=yes
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 ac_cv_lib_nsl_gethostbyname=no
7223 rm -f conftest.err conftest.$ac_objext \
7224 conftest$ac_exeext conftest.$ac_ext
7225 LIBS=$ac_check_lib_save_LIBS
7227 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7228 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7229 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7233 if test $ac_cv_lib_nsl_gethostbyname = no; then
7234 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7235 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7236 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 ac_check_lib_save_LIBS=$LIBS
7240 LIBS="-lbsd $LIBS"
7241 if test x$gcc_no_link = xyes; then
7242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7244 { (exit 1); exit 1; }; }
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7253 /* Override any gcc2 internal prototype to avoid an error. */
7254 #ifdef __cplusplus
7255 extern "C"
7256 #endif
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7259 char gethostbyname ();
7261 main ()
7263 gethostbyname ();
7265 return 0;
7267 _ACEOF
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7270 (eval $ac_link) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_c_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest$ac_exeext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 ac_cv_lib_bsd_gethostbyname=yes
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 ac_cv_lib_bsd_gethostbyname=no
7297 rm -f conftest.err conftest.$ac_objext \
7298 conftest$ac_exeext conftest.$ac_ext
7299 LIBS=$ac_check_lib_save_LIBS
7301 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7302 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7303 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7304 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7310 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7311 # socket/setsockopt and other routines are undefined under SCO ODT
7312 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7313 # on later versions), says Simon Leinen: it contains gethostby*
7314 # variants that don't use the name server (or something). -lsocket
7315 # must be given before -lnsl if both are needed. We assume that
7316 # if connect needs -lnsl, so does gethostbyname.
7317 echo "$as_me:$LINENO: checking for connect" >&5
7318 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7319 if test "${ac_cv_func_connect+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322 if test x$gcc_no_link = xyes; then
7323 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7324 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7325 { (exit 1); exit 1; }; }
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7335 #define connect innocuous_connect
7337 /* System header to define __stub macros and hopefully few prototypes,
7338 which can conflict with char connect (); below.
7339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7340 <limits.h> exists even on freestanding compilers. */
7342 #ifdef __STDC__
7343 # include <limits.h>
7344 #else
7345 # include <assert.h>
7346 #endif
7348 #undef connect
7350 /* Override any gcc2 internal prototype to avoid an error. */
7351 #ifdef __cplusplus
7352 extern "C"
7354 #endif
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7357 char connect ();
7358 /* The GNU C library defines this for functions which it implements
7359 to always fail with ENOSYS. Some functions are actually named
7360 something starting with __ and the normal name is an alias. */
7361 #if defined (__stub_connect) || defined (__stub___connect)
7362 choke me
7363 #else
7364 char (*f) () = connect;
7365 #endif
7366 #ifdef __cplusplus
7368 #endif
7371 main ()
7373 return f != connect;
7375 return 0;
7377 _ACEOF
7378 rm -f conftest.$ac_objext conftest$ac_exeext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7380 (eval $ac_link) 2>conftest.er1
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try='test -s conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_func_connect=yes
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_cv_func_connect=no
7407 rm -f conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
7410 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7411 echo "${ECHO_T}$ac_cv_func_connect" >&6
7413 if test $ac_cv_func_connect = no; then
7414 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7415 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7416 if test "${ac_cv_lib_socket_connect+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 ac_check_lib_save_LIBS=$LIBS
7420 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7421 if test x$gcc_no_link = xyes; then
7422 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7423 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7424 { (exit 1); exit 1; }; }
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7433 /* Override any gcc2 internal prototype to avoid an error. */
7434 #ifdef __cplusplus
7435 extern "C"
7436 #endif
7437 /* We use char because int might match the return type of a gcc2
7438 builtin and then its argument prototype would still apply. */
7439 char connect ();
7441 main ()
7443 connect ();
7445 return 0;
7447 _ACEOF
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7450 (eval $ac_link) 2>conftest.er1
7451 ac_status=$?
7452 grep -v '^ *+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } &&
7457 { ac_try='test -z "$ac_c_werror_flag"
7458 || test ! -s conftest.err'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; } &&
7464 { ac_try='test -s conftest$ac_exeext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 ac_cv_lib_socket_connect=yes
7471 else
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 ac_cv_lib_socket_connect=no
7477 rm -f conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
7479 LIBS=$ac_check_lib_save_LIBS
7481 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7482 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7483 if test $ac_cv_lib_socket_connect = yes; then
7484 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7489 # Guillermo Gomez says -lposix is necessary on A/UX.
7490 echo "$as_me:$LINENO: checking for remove" >&5
7491 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7492 if test "${ac_cv_func_remove+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 if test x$gcc_no_link = xyes; then
7496 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7497 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7498 { (exit 1); exit 1; }; }
7500 cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h. */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7508 #define remove innocuous_remove
7510 /* System header to define __stub macros and hopefully few prototypes,
7511 which can conflict with char remove (); below.
7512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513 <limits.h> exists even on freestanding compilers. */
7515 #ifdef __STDC__
7516 # include <limits.h>
7517 #else
7518 # include <assert.h>
7519 #endif
7521 #undef remove
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 #ifdef __cplusplus
7525 extern "C"
7527 #endif
7528 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */
7530 char remove ();
7531 /* The GNU C library defines this for functions which it implements
7532 to always fail with ENOSYS. Some functions are actually named
7533 something starting with __ and the normal name is an alias. */
7534 #if defined (__stub_remove) || defined (__stub___remove)
7535 choke me
7536 #else
7537 char (*f) () = remove;
7538 #endif
7539 #ifdef __cplusplus
7541 #endif
7544 main ()
7546 return f != remove;
7548 return 0;
7550 _ACEOF
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>conftest.er1
7554 ac_status=$?
7555 grep -v '^ *+' conftest.er1 >conftest.err
7556 rm -f conftest.er1
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -z "$ac_c_werror_flag"
7561 || test ! -s conftest.err'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 (eval $ac_try) 2>&5
7564 ac_status=$?
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; } &&
7567 { ac_try='test -s conftest$ac_exeext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573 ac_cv_func_remove=yes
7574 else
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7578 ac_cv_func_remove=no
7580 rm -f conftest.err conftest.$ac_objext \
7581 conftest$ac_exeext conftest.$ac_ext
7583 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7584 echo "${ECHO_T}$ac_cv_func_remove" >&6
7586 if test $ac_cv_func_remove = no; then
7587 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7588 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7589 if test "${ac_cv_lib_posix_remove+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 ac_check_lib_save_LIBS=$LIBS
7593 LIBS="-lposix $LIBS"
7594 if test x$gcc_no_link = xyes; then
7595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7597 { (exit 1); exit 1; }; }
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h. */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7606 /* Override any gcc2 internal prototype to avoid an error. */
7607 #ifdef __cplusplus
7608 extern "C"
7609 #endif
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7612 char remove ();
7614 main ()
7616 remove ();
7618 return 0;
7620 _ACEOF
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest$ac_exeext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_lib_posix_remove=yes
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_cv_lib_posix_remove=no
7650 rm -f conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7652 LIBS=$ac_check_lib_save_LIBS
7654 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7655 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7656 if test $ac_cv_lib_posix_remove = yes; then
7657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7662 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7663 echo "$as_me:$LINENO: checking for shmat" >&5
7664 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7665 if test "${ac_cv_func_shmat+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 if test x$gcc_no_link = xyes; then
7669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7671 { (exit 1); exit 1; }; }
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7681 #define shmat innocuous_shmat
7683 /* System header to define __stub macros and hopefully few prototypes,
7684 which can conflict with char shmat (); below.
7685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7686 <limits.h> exists even on freestanding compilers. */
7688 #ifdef __STDC__
7689 # include <limits.h>
7690 #else
7691 # include <assert.h>
7692 #endif
7694 #undef shmat
7696 /* Override any gcc2 internal prototype to avoid an error. */
7697 #ifdef __cplusplus
7698 extern "C"
7700 #endif
7701 /* We use char because int might match the return type of a gcc2
7702 builtin and then its argument prototype would still apply. */
7703 char shmat ();
7704 /* The GNU C library defines this for functions which it implements
7705 to always fail with ENOSYS. Some functions are actually named
7706 something starting with __ and the normal name is an alias. */
7707 #if defined (__stub_shmat) || defined (__stub___shmat)
7708 choke me
7709 #else
7710 char (*f) () = shmat;
7711 #endif
7712 #ifdef __cplusplus
7714 #endif
7717 main ()
7719 return f != shmat;
7721 return 0;
7723 _ACEOF
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726 (eval $ac_link) 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
7733 { ac_try='test -z "$ac_c_werror_flag"
7734 || test ! -s conftest.err'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 (eval $ac_try) 2>&5
7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 ac_cv_func_shmat=yes
7747 else
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_func_shmat=no
7753 rm -f conftest.err conftest.$ac_objext \
7754 conftest$ac_exeext conftest.$ac_ext
7756 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7757 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7759 if test $ac_cv_func_shmat = no; then
7760 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7761 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7762 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765 ac_check_lib_save_LIBS=$LIBS
7766 LIBS="-lipc $LIBS"
7767 if test x$gcc_no_link = xyes; then
7768 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7769 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7770 { (exit 1); exit 1; }; }
7772 cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h. */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7779 /* Override any gcc2 internal prototype to avoid an error. */
7780 #ifdef __cplusplus
7781 extern "C"
7782 #endif
7783 /* We use char because int might match the return type of a gcc2
7784 builtin and then its argument prototype would still apply. */
7785 char shmat ();
7787 main ()
7789 shmat ();
7791 return 0;
7793 _ACEOF
7794 rm -f conftest.$ac_objext conftest$ac_exeext
7795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7796 (eval $ac_link) 2>conftest.er1
7797 ac_status=$?
7798 grep -v '^ *+' conftest.er1 >conftest.err
7799 rm -f conftest.er1
7800 cat conftest.err >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); } &&
7803 { ac_try='test -z "$ac_c_werror_flag"
7804 || test ! -s conftest.err'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 (eval $ac_try) 2>&5
7807 ac_status=$?
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; } &&
7810 { ac_try='test -s conftest$ac_exeext'
7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 (eval $ac_try) 2>&5
7813 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; }; then
7816 ac_cv_lib_ipc_shmat=yes
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_cv_lib_ipc_shmat=no
7823 rm -f conftest.err conftest.$ac_objext \
7824 conftest$ac_exeext conftest.$ac_ext
7825 LIBS=$ac_check_lib_save_LIBS
7827 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7828 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7829 if test $ac_cv_lib_ipc_shmat = yes; then
7830 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7836 # Check for libraries that X11R6 Xt/Xaw programs need.
7837 ac_save_LDFLAGS=$LDFLAGS
7838 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7839 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7840 # check for ICE first), but we must link in the order -lSM -lICE or
7841 # we get undefined symbols. So assume we have SM if we have ICE.
7842 # These have to be linked with before -lX11, unlike the other
7843 # libraries we check for below, so use a different variable.
7844 # John Interrante, Karl Berry
7845 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7846 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7847 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850 ac_check_lib_save_LIBS=$LIBS
7851 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7852 if test x$gcc_no_link = xyes; then
7853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7855 { (exit 1); exit 1; }; }
7857 cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h. */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7864 /* Override any gcc2 internal prototype to avoid an error. */
7865 #ifdef __cplusplus
7866 extern "C"
7867 #endif
7868 /* We use char because int might match the return type of a gcc2
7869 builtin and then its argument prototype would still apply. */
7870 char IceConnectionNumber ();
7872 main ()
7874 IceConnectionNumber ();
7876 return 0;
7878 _ACEOF
7879 rm -f conftest.$ac_objext conftest$ac_exeext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7881 (eval $ac_link) 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -z "$ac_c_werror_flag"
7889 || test ! -s conftest.err'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest$ac_exeext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_cv_lib_ICE_IceConnectionNumber=yes
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 ac_cv_lib_ICE_IceConnectionNumber=no
7908 rm -f conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7910 LIBS=$ac_check_lib_save_LIBS
7912 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7913 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7914 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7915 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7918 LDFLAGS=$ac_save_LDFLAGS
7923 # Determine which AWT peer libraries to build
7924 # Check whether --enable-java-awt or --disable-java-awt was given.
7925 if test "${enable_java_awt+set}" = set; then
7926 enableval="$enable_java_awt"
7930 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7931 use_xlib_awt=""
7932 use_gtk_awt=""
7933 # The default toolkit to use is the first one specified.
7934 TOOLKIT=
7937 for peer in $peerlibs ; do
7938 case $peer in
7939 xlib)
7940 if test "$no_x" = yes; then
7941 echo "*** xlib peers requested but no X library available" 1>&2
7942 exit 1
7943 else
7944 use_xlib_awt="yes"
7945 if test -z "$TOOLKIT"; then
7946 TOOLKIT=gnu.awt.xlib.XToolkit
7950 gtk)
7951 if test "$no_x" = yes; then
7952 echo "*** xlib peers requested but no X library available" 1>&2
7953 exit 1
7954 else
7955 use_gtk_awt=yes
7956 if test -z "$TOOLKIT"; then
7957 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7959 test -d jniinclude || mkdir jniinclude
7963 use_xlib_awt=
7964 use_gtk_awt=
7965 break
7968 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7969 exit 1
7970 esac
7971 done
7975 if test "$use_xlib_awt" = yes; then
7976 XLIB_AWT_TRUE=
7977 XLIB_AWT_FALSE='#'
7978 else
7979 XLIB_AWT_TRUE='#'
7980 XLIB_AWT_FALSE=
7985 if test "$use_gtk_awt" = yes; then
7986 GTK_AWT_TRUE=
7987 GTK_AWT_FALSE='#'
7988 else
7989 GTK_AWT_TRUE='#'
7990 GTK_AWT_FALSE=
7994 # determine whether to enable the cairo GTK Graphics2D backend
7995 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7996 if test "${enable_gtk_cairo+set}" = set; then
7997 enableval="$enable_gtk_cairo"
8002 if test "x${enable_gtk_cairo}" = xyes; then
8003 GTK_CAIRO_TRUE=
8004 GTK_CAIRO_FALSE='#'
8005 else
8006 GTK_CAIRO_TRUE='#'
8007 GTK_CAIRO_FALSE=
8010 if test "x${enable_gtk_cairo}" = xyes
8011 then
8013 succeeded=no
8015 if test -z "$PKG_CONFIG"; then
8016 # Extract the first word of "pkg-config", so it can be a program name with args.
8017 set dummy pkg-config; ac_word=$2
8018 echo "$as_me:$LINENO: checking for $ac_word" >&5
8019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8020 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023 case $PKG_CONFIG in
8024 [\\/]* | ?:[\\/]*)
8025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8039 done
8040 done
8042 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8044 esac
8046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8048 if test -n "$PKG_CONFIG"; then
8049 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8050 echo "${ECHO_T}$PKG_CONFIG" >&6
8051 else
8052 echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6
8058 if test "$PKG_CONFIG" = "no" ; then
8059 echo "*** The pkg-config script could not be found. Make sure it is"
8060 echo "*** in your path, or set the PKG_CONFIG environment variable"
8061 echo "*** to the full path to pkg-config."
8062 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8063 else
8064 PKG_CONFIG_MIN_VERSION=0.9.0
8065 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8066 echo "$as_me:$LINENO: checking for cairo" >&5
8067 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8069 if $PKG_CONFIG --exists "cairo" ; then
8070 echo "$as_me:$LINENO: result: yes" >&5
8071 echo "${ECHO_T}yes" >&6
8072 succeeded=yes
8074 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8075 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8076 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8077 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8078 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8080 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8081 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8082 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8083 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8084 echo "${ECHO_T}$CAIRO_LIBS" >&6
8085 else
8086 CAIRO_CFLAGS=""
8087 CAIRO_LIBS=""
8088 ## If we have a custom action on failure, don't print errors, but
8089 ## do set a variable so people can do so.
8090 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8091 echo $CAIRO_PKG_ERRORS
8096 else
8097 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8098 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8102 if test $succeeded = yes; then
8104 else
8105 { { 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
8106 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;}
8107 { (exit 1); exit 1; }; }
8111 succeeded=no
8113 if test -z "$PKG_CONFIG"; then
8114 # Extract the first word of "pkg-config", so it can be a program name with args.
8115 set dummy pkg-config; ac_word=$2
8116 echo "$as_me:$LINENO: checking for $ac_word" >&5
8117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121 case $PKG_CONFIG in
8122 [\\/]* | ?:[\\/]*)
8123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8137 done
8138 done
8140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8142 esac
8144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8146 if test -n "$PKG_CONFIG"; then
8147 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8148 echo "${ECHO_T}$PKG_CONFIG" >&6
8149 else
8150 echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6
8156 if test "$PKG_CONFIG" = "no" ; then
8157 echo "*** The pkg-config script could not be found. Make sure it is"
8158 echo "*** in your path, or set the PKG_CONFIG environment variable"
8159 echo "*** to the full path to pkg-config."
8160 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8161 else
8162 PKG_CONFIG_MIN_VERSION=0.9.0
8163 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8164 echo "$as_me:$LINENO: checking for pangoft2" >&5
8165 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8167 if $PKG_CONFIG --exists "pangoft2" ; then
8168 echo "$as_me:$LINENO: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8170 succeeded=yes
8172 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8173 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8174 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8175 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8176 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8178 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8179 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8180 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8181 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8182 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8183 else
8184 PANGOFT2_CFLAGS=""
8185 PANGOFT2_LIBS=""
8186 ## If we have a custom action on failure, don't print errors, but
8187 ## do set a variable so people can do so.
8188 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8189 echo $PANGOFT2_PKG_ERRORS
8194 else
8195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8200 if test $succeeded = yes; then
8202 else
8203 { { 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
8204 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;}
8205 { (exit 1); exit 1; }; }
8214 # FIXME: this should be _libs on some hosts.
8215 libsubdir=.libs
8217 # Allow the GC to be disabled. Can be useful when debugging.
8218 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8219 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8220 # Check whether --enable-java-gc or --disable-java-gc was given.
8221 if test "${enable_java_gc+set}" = set; then
8222 enableval="$enable_java_gc"
8223 GC=$enableval
8224 else
8225 GC=boehm
8227 GCLIBS=
8228 GCINCS=
8229 GCDEPS=
8230 GCSPEC=
8231 JC1GCSPEC=
8232 GCTESTSPEC=
8233 case "$GC" in
8234 boehm)
8235 echo "$as_me:$LINENO: result: boehm" >&5
8236 echo "${ECHO_T}boehm" >&6
8237 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8238 JC1GCSPEC='-fuse-boehm-gc'
8239 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8240 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8241 GCOBJS=boehm.lo
8242 GCHDR=boehm-gc.h
8243 # The POSIX thread support needs to know this.
8245 cat >>confdefs.h <<\_ACEOF
8246 #define HAVE_BOEHM_GC 1
8247 _ACEOF
8251 echo "$as_me:$LINENO: result: none" >&5
8252 echo "${ECHO_T}none" >&6
8253 GCHDR=no-gc.h
8256 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8257 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8258 { (exit 1); exit 1; }; }
8260 esac
8267 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8271 if test "$GC" = boehm; then
8272 USING_BOEHMGC_TRUE=
8273 USING_BOEHMGC_FALSE='#'
8274 else
8275 USING_BOEHMGC_TRUE='#'
8276 USING_BOEHMGC_FALSE=
8281 if test "$GC" = no; then
8282 USING_NOGC_TRUE=
8283 USING_NOGC_FALSE='#'
8284 else
8285 USING_NOGC_TRUE='#'
8286 USING_NOGC_FALSE=
8291 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8292 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8293 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8294 echo "$as_me:$LINENO: result: $THREADS" >&5
8295 echo "${ECHO_T}$THREADS" >&6
8297 case "$THREADS" in
8298 no | none | single)
8299 THREADS=none
8301 posix | pthreads)
8302 THREADS=posix
8303 case "$host" in
8304 *-*-linux*)
8306 cat >>confdefs.h <<\_ACEOF
8307 #define LINUX_THREADS 1
8308 _ACEOF
8311 esac
8313 win32)
8315 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8316 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8317 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8318 { (exit 1); exit 1; }; }
8321 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8322 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8323 { (exit 1); exit 1; }; }
8325 esac
8327 THREADCXXFLAGS=
8328 THREADLDFLAGS=
8329 THREADLIBS=
8330 THREADINCS=
8331 THREADDEPS=
8332 THREADH=
8333 THREADSPEC=
8334 case "$THREADS" in
8335 posix)
8336 case "$host" in
8337 *-*-cygwin*)
8338 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8340 *-*-freebsd[1234]*)
8341 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8342 # merely adds pthread_* functions) but it does have a -pthread switch
8343 # which is required at link-time to select -lc_r *instead* of -lc.
8344 THREADLDFLAGS=-pthread
8345 # Don't set THREADSPEC here as might be expected since -pthread is
8346 # not processed when found within a spec file, it must come from
8347 # the command line. For now, the user must provide the -pthread
8348 # switch to link code compiled with gcj. In future, consider adding
8349 # support for weak references to pthread_* functions ala gthr.h API.
8350 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8352 *-*-freebsd*)
8353 # FreeBSD 5 implements a model much closer to other modern UNIX
8354 # which support threads. However, it still does not support
8355 # -lpthread.
8356 THREADLDFLAGS=-pthread
8357 THREADSPEC=-lc_r
8359 alpha*-dec-osf*)
8360 THREADCXXFLAGS=-pthread
8361 # boehm-gc needs some functions from librt, so link that too.
8362 THREADLIBS='-lpthread -lrt'
8363 THREADSPEC='-lpthread -lrt'
8366 THREADLIBS=-lpthread
8367 THREADSPEC=-lpthread
8369 esac
8370 THREADH=posix-threads.h
8371 # MIT pthreads doesn't seem to have the mutexattr functions.
8372 # But for now we don't check for it. We just assume you aren't
8373 # using MIT pthreads.
8375 cat >>confdefs.h <<\_ACEOF
8376 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8377 _ACEOF
8380 # If we're using the Boehm GC, then we happen to know that it
8381 # defines _REENTRANT, so we don't bother. Eww.
8382 if test "$GC" != boehm; then
8384 cat >>confdefs.h <<\_ACEOF
8385 #define _REENTRANT 1
8386 _ACEOF
8390 cat >>confdefs.h <<\_ACEOF
8391 #define _POSIX_PTHREAD_SEMANTICS 1
8392 _ACEOF
8396 win32)
8397 THREADH=win32-threads.h
8400 none)
8401 THREADH=no-threads.h
8403 esac
8404 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8414 if test "$THREADS" = posix; then
8415 USING_POSIX_THREADS_TRUE=
8416 USING_POSIX_THREADS_FALSE='#'
8417 else
8418 USING_POSIX_THREADS_TRUE='#'
8419 USING_POSIX_THREADS_FALSE=
8424 if test "$THREADS" = win32; then
8425 USING_WIN32_THREADS_TRUE=
8426 USING_WIN32_THREADS_FALSE='#'
8427 else
8428 USING_WIN32_THREADS_TRUE='#'
8429 USING_WIN32_THREADS_FALSE=
8434 if test "$THREADS" = none; then
8435 USING_NO_THREADS_TRUE=
8436 USING_NO_THREADS_FALSE='#'
8437 else
8438 USING_NO_THREADS_TRUE='#'
8439 USING_NO_THREADS_FALSE=
8443 if test -d sysdep; then true; else mkdir sysdep; fi
8444 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8447 HASH_SYNC_SPEC=
8448 # Hash synchronization is only useful with posix threads right now.
8449 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8450 HASH_SYNC_SPEC=-fhash-synchronization
8452 cat >>confdefs.h <<\_ACEOF
8453 #define JV_HASH_SYNCHRONIZATION 1
8454 _ACEOF
8462 if test "$GCC" = yes; then
8463 USING_GCC_TRUE=
8464 USING_GCC_FALSE='#'
8465 else
8466 USING_GCC_TRUE='#'
8467 USING_GCC_FALSE=
8471 # We're in the tree with gcc, and need to include some of its headers.
8472 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8474 # Figure out where generated headers like libgcj-config.h get installed.
8475 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8476 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8477 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8478 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8482 if test "x${with_newlib}" = "xyes"; then
8483 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8484 # may not work correctly, because the compiler may not be able to
8485 # link executables.
8487 # We assume newlib. This lets us hard-code the functions we know
8488 # we'll have.
8490 cat >>confdefs.h <<\_ACEOF
8491 #define HAVE_MEMMOVE 1
8492 _ACEOF
8495 cat >>confdefs.h <<\_ACEOF
8496 #define HAVE_MEMCPY 1
8497 _ACEOF
8500 cat >>confdefs.h <<\_ACEOF
8501 #define HAVE_STRERROR 1
8502 _ACEOF
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_TIME 1
8507 _ACEOF
8510 cat >>confdefs.h <<\_ACEOF
8511 #define HAVE_GMTIME_R 1
8512 _ACEOF
8515 cat >>confdefs.h <<\_ACEOF
8516 #define HAVE_LOCALTIME_R 1
8517 _ACEOF
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_USLEEP_DECL 1
8522 _ACEOF
8524 # This is only for POSIX threads.
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8528 _ACEOF
8530 # We also assume we are using gcc, which provides alloca.
8531 cat >>confdefs.h <<\_ACEOF
8532 #define HAVE_ALLOCA 1
8533 _ACEOF
8536 # Assume we do not have getuid and friends.
8538 cat >>confdefs.h <<\_ACEOF
8539 #define NO_GETUID 1
8540 _ACEOF
8542 PLATFORMNET=NoNet
8543 else
8552 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8555 echo "$as_me:$LINENO: checking for $ac_func" >&5
8556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8557 if eval "test \"\${$as_ac_var+set}\" = set"; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 if test x$gcc_no_link = xyes; then
8561 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8563 { (exit 1); exit 1; }; }
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8573 #define $ac_func innocuous_$ac_func
8575 /* System header to define __stub macros and hopefully few prototypes,
8576 which can conflict with char $ac_func (); below.
8577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8578 <limits.h> exists even on freestanding compilers. */
8580 #ifdef __STDC__
8581 # include <limits.h>
8582 #else
8583 # include <assert.h>
8584 #endif
8586 #undef $ac_func
8588 /* Override any gcc2 internal prototype to avoid an error. */
8589 #ifdef __cplusplus
8590 extern "C"
8592 #endif
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8595 char $ac_func ();
8596 /* The GNU C library defines this for functions which it implements
8597 to always fail with ENOSYS. Some functions are actually named
8598 something starting with __ and the normal name is an alias. */
8599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8600 choke me
8601 #else
8602 char (*f) () = $ac_func;
8603 #endif
8604 #ifdef __cplusplus
8606 #endif
8609 main ()
8611 return f != $ac_func;
8613 return 0;
8615 _ACEOF
8616 rm -f conftest.$ac_objext conftest$ac_exeext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8618 (eval $ac_link) 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag"
8626 || test ! -s conftest.err'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 (eval $ac_try) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try='test -s conftest$ac_exeext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 (eval $ac_try) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 eval "$as_ac_var=yes"
8639 else
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 eval "$as_ac_var=no"
8645 rm -f conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8650 if test `eval echo '${'$as_ac_var'}'` = yes; then
8651 cat >>confdefs.h <<_ACEOF
8652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8653 _ACEOF
8656 done
8663 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8666 echo "$as_me:$LINENO: checking for $ac_func" >&5
8667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8668 if eval "test \"\${$as_ac_var+set}\" = set"; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671 if test x$gcc_no_link = xyes; then
8672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8674 { (exit 1); exit 1; }; }
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h. */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8684 #define $ac_func innocuous_$ac_func
8686 /* System header to define __stub macros and hopefully few prototypes,
8687 which can conflict with char $ac_func (); below.
8688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8689 <limits.h> exists even on freestanding compilers. */
8691 #ifdef __STDC__
8692 # include <limits.h>
8693 #else
8694 # include <assert.h>
8695 #endif
8697 #undef $ac_func
8699 /* Override any gcc2 internal prototype to avoid an error. */
8700 #ifdef __cplusplus
8701 extern "C"
8703 #endif
8704 /* We use char because int might match the return type of a gcc2
8705 builtin and then its argument prototype would still apply. */
8706 char $ac_func ();
8707 /* The GNU C library defines this for functions which it implements
8708 to always fail with ENOSYS. Some functions are actually named
8709 something starting with __ and the normal name is an alias. */
8710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8711 choke me
8712 #else
8713 char (*f) () = $ac_func;
8714 #endif
8715 #ifdef __cplusplus
8717 #endif
8720 main ()
8722 return f != $ac_func;
8724 return 0;
8726 _ACEOF
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729 (eval $ac_link) 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag"
8737 || test ! -s conftest.err'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 (eval $ac_try) 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest$ac_exeext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 (eval $ac_try) 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 eval "$as_ac_var=yes"
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 eval "$as_ac_var=no"
8756 rm -f conftest.err conftest.$ac_objext \
8757 conftest$ac_exeext conftest.$ac_ext
8759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8761 if test `eval echo '${'$as_ac_var'}'` = yes; then
8762 cat >>confdefs.h <<_ACEOF
8763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8764 _ACEOF
8767 done
8778 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8781 echo "$as_me:$LINENO: checking for $ac_func" >&5
8782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8783 if eval "test \"\${$as_ac_var+set}\" = set"; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 if test x$gcc_no_link = xyes; then
8787 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8789 { (exit 1); exit 1; }; }
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8799 #define $ac_func innocuous_$ac_func
8801 /* System header to define __stub macros and hopefully few prototypes,
8802 which can conflict with char $ac_func (); below.
8803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8804 <limits.h> exists even on freestanding compilers. */
8806 #ifdef __STDC__
8807 # include <limits.h>
8808 #else
8809 # include <assert.h>
8810 #endif
8812 #undef $ac_func
8814 /* Override any gcc2 internal prototype to avoid an error. */
8815 #ifdef __cplusplus
8816 extern "C"
8818 #endif
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821 char $ac_func ();
8822 /* The GNU C library defines this for functions which it implements
8823 to always fail with ENOSYS. Some functions are actually named
8824 something starting with __ and the normal name is an alias. */
8825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8826 choke me
8827 #else
8828 char (*f) () = $ac_func;
8829 #endif
8830 #ifdef __cplusplus
8832 #endif
8835 main ()
8837 return f != $ac_func;
8839 return 0;
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag"
8852 || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 eval "$as_ac_var=yes"
8865 else
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 eval "$as_ac_var=no"
8871 rm -f conftest.err conftest.$ac_objext \
8872 conftest$ac_exeext conftest.$ac_ext
8874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8876 if test `eval echo '${'$as_ac_var'}'` = yes; then
8877 cat >>confdefs.h <<_ACEOF
8878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8879 _ACEOF
8882 done
8886 for ac_func in nl_langinfo setlocale
8888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8889 echo "$as_me:$LINENO: checking for $ac_func" >&5
8890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8891 if eval "test \"\${$as_ac_var+set}\" = set"; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894 if test x$gcc_no_link = xyes; then
8895 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8896 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8897 { (exit 1); exit 1; }; }
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8907 #define $ac_func innocuous_$ac_func
8909 /* System header to define __stub macros and hopefully few prototypes,
8910 which can conflict with char $ac_func (); below.
8911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912 <limits.h> exists even on freestanding compilers. */
8914 #ifdef __STDC__
8915 # include <limits.h>
8916 #else
8917 # include <assert.h>
8918 #endif
8920 #undef $ac_func
8922 /* Override any gcc2 internal prototype to avoid an error. */
8923 #ifdef __cplusplus
8924 extern "C"
8926 #endif
8927 /* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8929 char $ac_func ();
8930 /* The GNU C library defines this for functions which it implements
8931 to always fail with ENOSYS. Some functions are actually named
8932 something starting with __ and the normal name is an alias. */
8933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8934 choke me
8935 #else
8936 char (*f) () = $ac_func;
8937 #endif
8938 #ifdef __cplusplus
8940 #endif
8943 main ()
8945 return f != $ac_func;
8947 return 0;
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 eval "$as_ac_var=yes"
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 eval "$as_ac_var=no"
8979 rm -f conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8984 if test `eval echo '${'$as_ac_var'}'` = yes; then
8985 cat >>confdefs.h <<_ACEOF
8986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8987 _ACEOF
8990 done
8994 for ac_func in inet_aton inet_addr
8996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8997 echo "$as_me:$LINENO: checking for $ac_func" >&5
8998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8999 if eval "test \"\${$as_ac_var+set}\" = set"; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002 if test x$gcc_no_link = xyes; then
9003 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9004 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9005 { (exit 1); exit 1; }; }
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9015 #define $ac_func innocuous_$ac_func
9017 /* System header to define __stub macros and hopefully few prototypes,
9018 which can conflict with char $ac_func (); below.
9019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9020 <limits.h> exists even on freestanding compilers. */
9022 #ifdef __STDC__
9023 # include <limits.h>
9024 #else
9025 # include <assert.h>
9026 #endif
9028 #undef $ac_func
9030 /* Override any gcc2 internal prototype to avoid an error. */
9031 #ifdef __cplusplus
9032 extern "C"
9034 #endif
9035 /* We use char because int might match the return type of a gcc2
9036 builtin and then its argument prototype would still apply. */
9037 char $ac_func ();
9038 /* The GNU C library defines this for functions which it implements
9039 to always fail with ENOSYS. Some functions are actually named
9040 something starting with __ and the normal name is an alias. */
9041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9042 choke me
9043 #else
9044 char (*f) () = $ac_func;
9045 #endif
9046 #ifdef __cplusplus
9048 #endif
9051 main ()
9053 return f != $ac_func;
9055 return 0;
9057 _ACEOF
9058 rm -f conftest.$ac_objext conftest$ac_exeext
9059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9060 (eval $ac_link) 2>conftest.er1
9061 ac_status=$?
9062 grep -v '^ *+' conftest.er1 >conftest.err
9063 rm -f conftest.er1
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } &&
9067 { ac_try='test -z "$ac_c_werror_flag"
9068 || test ! -s conftest.err'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 (eval $ac_try) 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; } &&
9074 { ac_try='test -s conftest$ac_exeext'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 eval "$as_ac_var=yes"
9081 else
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 eval "$as_ac_var=no"
9087 rm -f conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9092 if test `eval echo '${'$as_ac_var'}'` = yes; then
9093 cat >>confdefs.h <<_ACEOF
9094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9095 _ACEOF
9096 break
9098 done
9103 for ac_func in inet_pton uname inet_ntoa
9105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9106 echo "$as_me:$LINENO: checking for $ac_func" >&5
9107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9108 if eval "test \"\${$as_ac_var+set}\" = set"; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111 if test x$gcc_no_link = xyes; then
9112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9114 { (exit 1); exit 1; }; }
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h. */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9124 #define $ac_func innocuous_$ac_func
9126 /* System header to define __stub macros and hopefully few prototypes,
9127 which can conflict with char $ac_func (); below.
9128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9129 <limits.h> exists even on freestanding compilers. */
9131 #ifdef __STDC__
9132 # include <limits.h>
9133 #else
9134 # include <assert.h>
9135 #endif
9137 #undef $ac_func
9139 /* Override any gcc2 internal prototype to avoid an error. */
9140 #ifdef __cplusplus
9141 extern "C"
9143 #endif
9144 /* We use char because int might match the return type of a gcc2
9145 builtin and then its argument prototype would still apply. */
9146 char $ac_func ();
9147 /* The GNU C library defines this for functions which it implements
9148 to always fail with ENOSYS. Some functions are actually named
9149 something starting with __ and the normal name is an alias. */
9150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9151 choke me
9152 #else
9153 char (*f) () = $ac_func;
9154 #endif
9155 #ifdef __cplusplus
9157 #endif
9160 main ()
9162 return f != $ac_func;
9164 return 0;
9166 _ACEOF
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9169 (eval $ac_link) 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -z "$ac_c_werror_flag"
9177 || test ! -s conftest.err'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 (eval $ac_try) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try='test -s conftest$ac_exeext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 (eval $ac_try) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 eval "$as_ac_var=yes"
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 eval "$as_ac_var=no"
9196 rm -f conftest.err conftest.$ac_objext \
9197 conftest$ac_exeext conftest.$ac_ext
9199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9201 if test `eval echo '${'$as_ac_var'}'` = yes; then
9202 cat >>confdefs.h <<_ACEOF
9203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9204 _ACEOF
9207 done
9214 for ac_func in fork execvp pipe sigaction ftruncate
9216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9217 echo "$as_me:$LINENO: checking for $ac_func" >&5
9218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9219 if eval "test \"\${$as_ac_var+set}\" = set"; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222 if test x$gcc_no_link = xyes; then
9223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9225 { (exit 1); exit 1; }; }
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9235 #define $ac_func innocuous_$ac_func
9237 /* System header to define __stub macros and hopefully few prototypes,
9238 which can conflict with char $ac_func (); below.
9239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9240 <limits.h> exists even on freestanding compilers. */
9242 #ifdef __STDC__
9243 # include <limits.h>
9244 #else
9245 # include <assert.h>
9246 #endif
9248 #undef $ac_func
9250 /* Override any gcc2 internal prototype to avoid an error. */
9251 #ifdef __cplusplus
9252 extern "C"
9254 #endif
9255 /* We use char because int might match the return type of a gcc2
9256 builtin and then its argument prototype would still apply. */
9257 char $ac_func ();
9258 /* The GNU C library defines this for functions which it implements
9259 to always fail with ENOSYS. Some functions are actually named
9260 something starting with __ and the normal name is an alias. */
9261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9262 choke me
9263 #else
9264 char (*f) () = $ac_func;
9265 #endif
9266 #ifdef __cplusplus
9268 #endif
9271 main ()
9273 return f != $ac_func;
9275 return 0;
9277 _ACEOF
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280 (eval $ac_link) 2>conftest.er1
9281 ac_status=$?
9282 grep -v '^ *+' conftest.er1 >conftest.err
9283 rm -f conftest.er1
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -z "$ac_c_werror_flag"
9288 || test ! -s conftest.err'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 eval "$as_ac_var=yes"
9301 else
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 eval "$as_ac_var=no"
9307 rm -f conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9312 if test `eval echo '${'$as_ac_var'}'` = yes; then
9313 cat >>confdefs.h <<_ACEOF
9314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9315 _ACEOF
9318 done
9320 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9322 if test "${ac_cv_header_stdc+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 #include <stdlib.h>
9332 #include <stdarg.h>
9333 #include <string.h>
9334 #include <float.h>
9337 main ()
9341 return 0;
9343 _ACEOF
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>conftest.er1
9347 ac_status=$?
9348 grep -v '^ *+' conftest.er1 >conftest.err
9349 rm -f conftest.er1
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag"
9354 || test ! -s conftest.err'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; } &&
9360 { ac_try='test -s conftest.$ac_objext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_header_stdc=yes
9367 else
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_cv_header_stdc=no
9373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9375 if test $ac_cv_header_stdc = yes; then
9376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 #include <string.h>
9385 _ACEOF
9386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9387 $EGREP "memchr" >/dev/null 2>&1; then
9389 else
9390 ac_cv_header_stdc=no
9392 rm -f conftest*
9396 if test $ac_cv_header_stdc = yes; then
9397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9398 cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h. */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 #include <stdlib.h>
9406 _ACEOF
9407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9408 $EGREP "free" >/dev/null 2>&1; then
9410 else
9411 ac_cv_header_stdc=no
9413 rm -f conftest*
9417 if test $ac_cv_header_stdc = yes; then
9418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9419 if test "$cross_compiling" = yes; then
9421 else
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 #include <ctype.h>
9429 #if ((' ' & 0x0FF) == 0x020)
9430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9432 #else
9433 # define ISLOWER(c) \
9434 (('a' <= (c) && (c) <= 'i') \
9435 || ('j' <= (c) && (c) <= 'r') \
9436 || ('s' <= (c) && (c) <= 'z'))
9437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9438 #endif
9440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9442 main ()
9444 int i;
9445 for (i = 0; i < 256; i++)
9446 if (XOR (islower (i), ISLOWER (i))
9447 || toupper (i) != TOUPPER (i))
9448 exit(2);
9449 exit (0);
9451 _ACEOF
9452 rm -f conftest$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 (eval $ac_try) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9464 else
9465 echo "$as_me: program exited with status $ac_status" >&5
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ( exit $ac_status )
9470 ac_cv_header_stdc=no
9472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9476 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9477 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9478 if test $ac_cv_header_stdc = yes; then
9480 cat >>confdefs.h <<\_ACEOF
9481 #define STDC_HEADERS 1
9482 _ACEOF
9486 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9496 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9497 inttypes.h stdint.h unistd.h
9499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9500 echo "$as_me:$LINENO: checking for $ac_header" >&5
9501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h. */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 $ac_includes_default
9513 #include <$ac_header>
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest.$ac_objext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 eval "$as_ac_Header=yes"
9538 else
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 eval "$as_ac_Header=no"
9544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9549 cat >>confdefs.h <<_ACEOF
9550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9551 _ACEOF
9555 done
9561 for ac_header in execinfo.h unistd.h dlfcn.h
9563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9565 echo "$as_me:$LINENO: checking for $ac_header" >&5
9566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9572 else
9573 # Is the header compilable?
9574 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9576 cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h. */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 $ac_includes_default
9583 #include <$ac_header>
9584 _ACEOF
9585 rm -f conftest.$ac_objext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9587 (eval $ac_compile) 2>conftest.er1
9588 ac_status=$?
9589 grep -v '^ *+' conftest.er1 >conftest.err
9590 rm -f conftest.er1
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -z "$ac_c_werror_flag"
9595 || test ! -s conftest.err'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest.$ac_objext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_header_compiler=yes
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_header_compiler=no
9614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9616 echo "${ECHO_T}$ac_header_compiler" >&6
9618 # Is the header present?
9619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 #include <$ac_header>
9628 _ACEOF
9629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } >/dev/null; then
9637 if test -s conftest.err; then
9638 ac_cpp_err=$ac_c_preproc_warn_flag
9639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9640 else
9641 ac_cpp_err=
9643 else
9644 ac_cpp_err=yes
9646 if test -z "$ac_cpp_err"; then
9647 ac_header_preproc=yes
9648 else
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9652 ac_header_preproc=no
9654 rm -f conftest.err conftest.$ac_ext
9655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9656 echo "${ECHO_T}$ac_header_preproc" >&6
9658 # So? What about this header?
9659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9660 yes:no: )
9661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9665 ac_header_preproc=yes
9667 no:yes:* )
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9681 cat <<\_ASBOX
9682 ## ---------------------------------- ##
9683 ## Report this to the libjava lists. ##
9684 ## ---------------------------------- ##
9685 _ASBOX
9687 sed "s/^/$as_me: WARNING: /" >&2
9689 esac
9690 echo "$as_me:$LINENO: checking for $ac_header" >&5
9691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695 eval "$as_ac_Header=\$ac_header_preproc"
9697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9702 cat >>confdefs.h <<_ACEOF
9703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9704 _ACEOF
9708 done
9710 echo "$as_me:$LINENO: checking for backtrace" >&5
9711 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9712 if test "${ac_cv_func_backtrace+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715 if test x$gcc_no_link = xyes; then
9716 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9718 { (exit 1); exit 1; }; }
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h. */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9728 #define backtrace innocuous_backtrace
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char backtrace (); below.
9732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9733 <limits.h> exists even on freestanding compilers. */
9735 #ifdef __STDC__
9736 # include <limits.h>
9737 #else
9738 # include <assert.h>
9739 #endif
9741 #undef backtrace
9743 /* Override any gcc2 internal prototype to avoid an error. */
9744 #ifdef __cplusplus
9745 extern "C"
9747 #endif
9748 /* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */
9750 char backtrace ();
9751 /* The GNU C library defines this for functions which it implements
9752 to always fail with ENOSYS. Some functions are actually named
9753 something starting with __ and the normal name is an alias. */
9754 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9755 choke me
9756 #else
9757 char (*f) () = backtrace;
9758 #endif
9759 #ifdef __cplusplus
9761 #endif
9764 main ()
9766 return f != backtrace;
9768 return 0;
9770 _ACEOF
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773 (eval $ac_link) 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -z "$ac_c_werror_flag"
9781 || test ! -s conftest.err'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; } &&
9787 { ac_try='test -s conftest$ac_exeext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_func_backtrace=yes
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 ac_cv_func_backtrace=no
9800 rm -f conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9803 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9804 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9805 if test $ac_cv_func_backtrace = yes; then
9807 case "$host" in
9808 ia64-*-linux*)
9809 # Has broken backtrace()
9811 mips*-*-linux*)
9812 # Has broken backtrace(), but we supply our own.
9813 if test -d sysdep; then true; else mkdir -p sysdep; fi
9814 supply_backtrace=yes
9816 cat >>confdefs.h <<\_ACEOF
9817 #define HAVE_BACKTRACE 1
9818 _ACEOF
9823 cat >>confdefs.h <<\_ACEOF
9824 #define HAVE_BACKTRACE 1
9825 _ACEOF
9828 esac
9830 else
9832 case "$host" in
9833 *mingw*)
9834 # Has backtrace() defined in libgcj itself
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_BACKTRACE 1
9838 _ACEOF
9841 esac
9846 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9847 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9848 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851 ac_check_lib_save_LIBS=$LIBS
9852 LIBS="-ldl $LIBS"
9853 if test x$gcc_no_link = xyes; then
9854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9856 { (exit 1); exit 1; }; }
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9865 /* Override any gcc2 internal prototype to avoid an error. */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 /* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9871 char dladdr ();
9873 main ()
9875 dladdr ();
9877 return 0;
9879 _ACEOF
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag"
9890 || test ! -s conftest.err'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 (eval $ac_try) 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 (eval $ac_try) 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_lib_dl_dladdr=yes
9903 else
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_lib_dl_dladdr=no
9909 rm -f conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9913 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9914 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9915 if test $ac_cv_lib_dl_dladdr = yes; then
9917 if test "x${disable_dladdr}" = "xyes"; then
9918 #Broken dladdr().
9919 true
9920 else
9922 cat >>confdefs.h <<\_ACEOF
9923 #define HAVE_DLADDR 1
9924 _ACEOF
9930 if test x"$build" = x"$host"; then
9931 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9932 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9933 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 test "$cross_compiling" = yes &&
9937 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9938 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9939 { (exit 1); exit 1; }; }
9940 if test -r "/proc/self/exe"; then
9941 ac_cv_file__proc_self_exe=yes
9942 else
9943 ac_cv_file__proc_self_exe=no
9946 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9947 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9948 if test $ac_cv_file__proc_self_exe = yes; then
9950 cat >>confdefs.h <<_ACEOF
9951 #define HAVE__PROC_SELF_EXE 1
9952 _ACEOF
9956 cat >>confdefs.h <<\_ACEOF
9957 #define HAVE_PROC_SELF_EXE 1
9958 _ACEOF
9962 else
9963 case $host in
9964 *-linux*)
9966 cat >>confdefs.h <<\_ACEOF
9967 #define HAVE_PROC_SELF_EXE 1
9968 _ACEOF
9971 esac
9975 if test "X$prefix" = "XNONE"; then
9976 acl_final_prefix="$ac_default_prefix"
9977 else
9978 acl_final_prefix="$prefix"
9980 if test "X$exec_prefix" = "XNONE"; then
9981 acl_final_exec_prefix='${prefix}'
9982 else
9983 acl_final_exec_prefix="$exec_prefix"
9985 acl_save_prefix="$prefix"
9986 prefix="$acl_final_prefix"
9987 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9988 prefix="$acl_save_prefix"
9991 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9992 if test "${with_gnu_ld+set}" = set; then
9993 withval="$with_gnu_ld"
9994 test "$withval" = no || with_gnu_ld=yes
9995 else
9996 with_gnu_ld=no
9998 # Prepare PATH_SEPARATOR.
9999 # The user is always right.
10000 if test "${PATH_SEPARATOR+set}" != set; then
10001 echo "#! /bin/sh" >conf$$.sh
10002 echo "exit 0" >>conf$$.sh
10003 chmod +x conf$$.sh
10004 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10005 PATH_SEPARATOR=';'
10006 else
10007 PATH_SEPARATOR=:
10009 rm -f conf$$.sh
10011 ac_prog=ld
10012 if test "$GCC" = yes; then
10013 # Check if gcc -print-prog-name=ld gives a path.
10014 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10015 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10016 case $host in
10017 *-*-mingw*)
10018 # gcc leaves a trailing carriage return which upsets mingw
10019 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10021 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10022 esac
10023 case $ac_prog in
10024 # Accept absolute paths.
10025 [\\/]* | [A-Za-z]:[\\/]*)
10026 re_direlt='/[^/][^/]*/\.\./'
10027 # Canonicalize the path of ld
10028 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10029 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10030 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10031 done
10032 test -z "$LD" && LD="$ac_prog"
10035 # If it fails, then pretend we aren't using GCC.
10036 ac_prog=ld
10039 # If it is relative, then search for the first ld in PATH.
10040 with_gnu_ld=unknown
10042 esac
10043 elif test "$with_gnu_ld" = yes; then
10044 echo "$as_me:$LINENO: checking for GNU ld" >&5
10045 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10046 else
10047 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10048 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10050 if test "${acl_cv_path_LD+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053 if test -z "$LD"; then
10054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10055 for ac_dir in $PATH; do
10056 test -z "$ac_dir" && ac_dir=.
10057 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10058 acl_cv_path_LD="$ac_dir/$ac_prog"
10059 # Check to see if the program is GNU ld. I'd rather use --version,
10060 # but apparently some GNU ld's only accept -v.
10061 # Break only if it was the GNU/non-GNU ld that we prefer.
10062 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10063 test "$with_gnu_ld" != no && break
10064 else
10065 test "$with_gnu_ld" != yes && break
10068 done
10069 IFS="$ac_save_ifs"
10070 else
10071 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10075 LD="$acl_cv_path_LD"
10076 if test -n "$LD"; then
10077 echo "$as_me:$LINENO: result: $LD" >&5
10078 echo "${ECHO_T}$LD" >&6
10079 else
10080 echo "$as_me:$LINENO: result: no" >&5
10081 echo "${ECHO_T}no" >&6
10083 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10084 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10085 { (exit 1); exit 1; }; }
10086 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10087 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10088 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10092 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10093 acl_cv_prog_gnu_ld=yes
10094 else
10095 acl_cv_prog_gnu_ld=no
10098 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10099 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10100 with_gnu_ld=$acl_cv_prog_gnu_ld
10104 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10105 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10106 if test "${acl_cv_rpath+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10110 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10111 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10112 . ./conftest.sh
10113 rm -f ./conftest.sh
10114 acl_cv_rpath=done
10117 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10118 echo "${ECHO_T}$acl_cv_rpath" >&6
10119 wl="$acl_cv_wl"
10120 libext="$acl_cv_libext"
10121 shlibext="$acl_cv_shlibext"
10122 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10123 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10124 hardcode_direct="$acl_cv_hardcode_direct"
10125 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10126 # Check whether --enable-rpath or --disable-rpath was given.
10127 if test "${enable_rpath+set}" = set; then
10128 enableval="$enable_rpath"
10130 else
10131 enable_rpath=yes
10140 use_additional=yes
10142 acl_save_prefix="$prefix"
10143 prefix="$acl_final_prefix"
10144 acl_save_exec_prefix="$exec_prefix"
10145 exec_prefix="$acl_final_exec_prefix"
10147 eval additional_includedir=\"$includedir\"
10148 eval additional_libdir=\"$libdir\"
10150 exec_prefix="$acl_save_exec_prefix"
10151 prefix="$acl_save_prefix"
10154 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10155 if test "${with_libiconv_prefix+set}" = set; then
10156 withval="$with_libiconv_prefix"
10158 if test "X$withval" = "Xno"; then
10159 use_additional=no
10160 else
10161 if test "X$withval" = "X"; then
10163 acl_save_prefix="$prefix"
10164 prefix="$acl_final_prefix"
10165 acl_save_exec_prefix="$exec_prefix"
10166 exec_prefix="$acl_final_exec_prefix"
10168 eval additional_includedir=\"$includedir\"
10169 eval additional_libdir=\"$libdir\"
10171 exec_prefix="$acl_save_exec_prefix"
10172 prefix="$acl_save_prefix"
10174 else
10175 additional_includedir="$withval/include"
10176 additional_libdir="$withval/lib"
10181 LIBICONV=
10182 LTLIBICONV=
10183 INCICONV=
10184 rpathdirs=
10185 ltrpathdirs=
10186 names_already_handled=
10187 names_next_round='iconv '
10188 while test -n "$names_next_round"; do
10189 names_this_round="$names_next_round"
10190 names_next_round=
10191 for name in $names_this_round; do
10192 already_handled=
10193 for n in $names_already_handled; do
10194 if test "$n" = "$name"; then
10195 already_handled=yes
10196 break
10198 done
10199 if test -z "$already_handled"; then
10200 names_already_handled="$names_already_handled $name"
10201 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10202 eval value=\"\$HAVE_LIB$uppername\"
10203 if test -n "$value"; then
10204 if test "$value" = yes; then
10205 eval value=\"\$LIB$uppername\"
10206 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10207 eval value=\"\$LTLIB$uppername\"
10208 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10209 else
10212 else
10213 found_dir=
10214 found_la=
10215 found_so=
10216 found_a=
10217 if test $use_additional = yes; then
10218 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10219 found_dir="$additional_libdir"
10220 found_so="$additional_libdir/lib$name.$shlibext"
10221 if test -f "$additional_libdir/lib$name.la"; then
10222 found_la="$additional_libdir/lib$name.la"
10224 else
10225 if test -f "$additional_libdir/lib$name.$libext"; then
10226 found_dir="$additional_libdir"
10227 found_a="$additional_libdir/lib$name.$libext"
10228 if test -f "$additional_libdir/lib$name.la"; then
10229 found_la="$additional_libdir/lib$name.la"
10234 if test "X$found_dir" = "X"; then
10235 for x in $LDFLAGS $LTLIBICONV; do
10237 acl_save_prefix="$prefix"
10238 prefix="$acl_final_prefix"
10239 acl_save_exec_prefix="$exec_prefix"
10240 exec_prefix="$acl_final_exec_prefix"
10241 eval x=\"$x\"
10242 exec_prefix="$acl_save_exec_prefix"
10243 prefix="$acl_save_prefix"
10245 case "$x" in
10246 -L*)
10247 dir=`echo "X$x" | sed -e 's/^X-L//'`
10248 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10249 found_dir="$dir"
10250 found_so="$dir/lib$name.$shlibext"
10251 if test -f "$dir/lib$name.la"; then
10252 found_la="$dir/lib$name.la"
10254 else
10255 if test -f "$dir/lib$name.$libext"; then
10256 found_dir="$dir"
10257 found_a="$dir/lib$name.$libext"
10258 if test -f "$dir/lib$name.la"; then
10259 found_la="$dir/lib$name.la"
10264 esac
10265 if test "X$found_dir" != "X"; then
10266 break
10268 done
10270 if test "X$found_dir" != "X"; then
10271 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10272 if test "X$found_so" != "X"; then
10273 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10274 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10275 else
10276 haveit=
10277 for x in $ltrpathdirs; do
10278 if test "X$x" = "X$found_dir"; then
10279 haveit=yes
10280 break
10282 done
10283 if test -z "$haveit"; then
10284 ltrpathdirs="$ltrpathdirs $found_dir"
10286 if test "$hardcode_direct" = yes; then
10287 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10288 else
10289 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10290 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10291 haveit=
10292 for x in $rpathdirs; do
10293 if test "X$x" = "X$found_dir"; then
10294 haveit=yes
10295 break
10297 done
10298 if test -z "$haveit"; then
10299 rpathdirs="$rpathdirs $found_dir"
10301 else
10302 haveit=
10303 for x in $LDFLAGS $LIBICONV; do
10305 acl_save_prefix="$prefix"
10306 prefix="$acl_final_prefix"
10307 acl_save_exec_prefix="$exec_prefix"
10308 exec_prefix="$acl_final_exec_prefix"
10309 eval x=\"$x\"
10310 exec_prefix="$acl_save_exec_prefix"
10311 prefix="$acl_save_prefix"
10313 if test "X$x" = "X-L$found_dir"; then
10314 haveit=yes
10315 break
10317 done
10318 if test -z "$haveit"; then
10319 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10321 if test "$hardcode_minus_L" != no; then
10322 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10323 else
10324 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10329 else
10330 if test "X$found_a" != "X"; then
10331 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10332 else
10333 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10336 additional_includedir=
10337 case "$found_dir" in
10338 */lib | */lib/)
10339 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10340 additional_includedir="$basedir/include"
10342 esac
10343 if test "X$additional_includedir" != "X"; then
10344 if test "X$additional_includedir" != "X/usr/include"; then
10345 haveit=
10346 if test "X$additional_includedir" = "X/usr/local/include"; then
10347 if test -n "$GCC"; then
10348 case $host_os in
10349 linux*) haveit=yes;;
10350 esac
10353 if test -z "$haveit"; then
10354 for x in $CPPFLAGS $INCICONV; do
10356 acl_save_prefix="$prefix"
10357 prefix="$acl_final_prefix"
10358 acl_save_exec_prefix="$exec_prefix"
10359 exec_prefix="$acl_final_exec_prefix"
10360 eval x=\"$x\"
10361 exec_prefix="$acl_save_exec_prefix"
10362 prefix="$acl_save_prefix"
10364 if test "X$x" = "X-I$additional_includedir"; then
10365 haveit=yes
10366 break
10368 done
10369 if test -z "$haveit"; then
10370 if test -d "$additional_includedir"; then
10371 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10377 if test -n "$found_la"; then
10378 save_libdir="$libdir"
10379 case "$found_la" in
10380 */* | *\\*) . "$found_la" ;;
10381 *) . "./$found_la" ;;
10382 esac
10383 libdir="$save_libdir"
10384 for dep in $dependency_libs; do
10385 case "$dep" in
10386 -L*)
10387 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10388 if test "X$additional_libdir" != "X/usr/lib"; then
10389 haveit=
10390 if test "X$additional_libdir" = "X/usr/local/lib"; then
10391 if test -n "$GCC"; then
10392 case $host_os in
10393 linux*) haveit=yes;;
10394 esac
10397 if test -z "$haveit"; then
10398 haveit=
10399 for x in $LDFLAGS $LIBICONV; do
10401 acl_save_prefix="$prefix"
10402 prefix="$acl_final_prefix"
10403 acl_save_exec_prefix="$exec_prefix"
10404 exec_prefix="$acl_final_exec_prefix"
10405 eval x=\"$x\"
10406 exec_prefix="$acl_save_exec_prefix"
10407 prefix="$acl_save_prefix"
10409 if test "X$x" = "X-L$additional_libdir"; then
10410 haveit=yes
10411 break
10413 done
10414 if test -z "$haveit"; then
10415 if test -d "$additional_libdir"; then
10416 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10419 haveit=
10420 for x in $LDFLAGS $LTLIBICONV; do
10422 acl_save_prefix="$prefix"
10423 prefix="$acl_final_prefix"
10424 acl_save_exec_prefix="$exec_prefix"
10425 exec_prefix="$acl_final_exec_prefix"
10426 eval x=\"$x\"
10427 exec_prefix="$acl_save_exec_prefix"
10428 prefix="$acl_save_prefix"
10430 if test "X$x" = "X-L$additional_libdir"; then
10431 haveit=yes
10432 break
10434 done
10435 if test -z "$haveit"; then
10436 if test -d "$additional_libdir"; then
10437 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10443 -R*)
10444 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10445 if test "$enable_rpath" != no; then
10446 haveit=
10447 for x in $rpathdirs; do
10448 if test "X$x" = "X$dir"; then
10449 haveit=yes
10450 break
10452 done
10453 if test -z "$haveit"; then
10454 rpathdirs="$rpathdirs $dir"
10456 haveit=
10457 for x in $ltrpathdirs; do
10458 if test "X$x" = "X$dir"; then
10459 haveit=yes
10460 break
10462 done
10463 if test -z "$haveit"; then
10464 ltrpathdirs="$ltrpathdirs $dir"
10468 -l*)
10469 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10471 *.la)
10472 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10475 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10476 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10478 esac
10479 done
10481 else
10482 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10483 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10487 done
10488 done
10489 if test "X$rpathdirs" != "X"; then
10490 if test -n "$hardcode_libdir_separator"; then
10491 alldirs=
10492 for found_dir in $rpathdirs; do
10493 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10494 done
10495 acl_save_libdir="$libdir"
10496 libdir="$alldirs"
10497 eval flag=\"$hardcode_libdir_flag_spec\"
10498 libdir="$acl_save_libdir"
10499 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10500 else
10501 for found_dir in $rpathdirs; do
10502 acl_save_libdir="$libdir"
10503 libdir="$found_dir"
10504 eval flag=\"$hardcode_libdir_flag_spec\"
10505 libdir="$acl_save_libdir"
10506 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10507 done
10510 if test "X$ltrpathdirs" != "X"; then
10511 for found_dir in $ltrpathdirs; do
10512 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10513 done
10522 am_save_CPPFLAGS="$CPPFLAGS"
10524 for element in $INCICONV; do
10525 haveit=
10526 for x in $CPPFLAGS; do
10528 acl_save_prefix="$prefix"
10529 prefix="$acl_final_prefix"
10530 acl_save_exec_prefix="$exec_prefix"
10531 exec_prefix="$acl_final_exec_prefix"
10532 eval x=\"$x\"
10533 exec_prefix="$acl_save_exec_prefix"
10534 prefix="$acl_save_prefix"
10536 if test "X$x" = "X$element"; then
10537 haveit=yes
10538 break
10540 done
10541 if test -z "$haveit"; then
10542 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10544 done
10547 echo "$as_me:$LINENO: checking for iconv" >&5
10548 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10549 if test "${am_cv_func_iconv+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10553 am_cv_func_iconv="no, consider installing GNU libiconv"
10554 am_cv_lib_iconv=no
10555 if test x$gcc_no_link = xyes; then
10556 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10558 { (exit 1); exit 1; }; }
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <stdlib.h>
10567 #include <iconv.h>
10569 main ()
10571 iconv_t cd = iconv_open("","");
10572 iconv(cd,NULL,NULL,NULL,NULL);
10573 iconv_close(cd);
10575 return 0;
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10580 (eval $ac_link) 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try='test -z "$ac_c_werror_flag"
10588 || test ! -s conftest.err'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; } &&
10594 { ac_try='test -s conftest$ac_exeext'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 am_cv_func_iconv=yes
10601 else
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10606 rm -f conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10608 if test "$am_cv_func_iconv" != yes; then
10609 am_save_LIBS="$LIBS"
10610 LIBS="$LIBS $LIBICONV"
10611 if test x$gcc_no_link = xyes; then
10612 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10613 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10614 { (exit 1); exit 1; }; }
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <stdlib.h>
10623 #include <iconv.h>
10625 main ()
10627 iconv_t cd = iconv_open("","");
10628 iconv(cd,NULL,NULL,NULL,NULL);
10629 iconv_close(cd);
10631 return 0;
10633 _ACEOF
10634 rm -f conftest.$ac_objext conftest$ac_exeext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10636 (eval $ac_link) 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag"
10644 || test ! -s conftest.err'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest$ac_exeext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 am_cv_lib_iconv=yes
10657 am_cv_func_iconv=yes
10658 else
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10663 rm -f conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 LIBS="$am_save_LIBS"
10669 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10670 echo "${ECHO_T}$am_cv_func_iconv" >&6
10671 if test "$am_cv_func_iconv" = yes; then
10673 cat >>confdefs.h <<\_ACEOF
10674 #define HAVE_ICONV 1
10675 _ACEOF
10678 if test "$am_cv_lib_iconv" = yes; then
10679 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10680 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10681 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10682 echo "${ECHO_T}$LIBICONV" >&6
10683 else
10684 CPPFLAGS="$am_save_CPPFLAGS"
10685 LIBICONV=
10686 LTLIBICONV=
10691 if test "$am_cv_func_iconv" = yes; then
10692 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10693 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10694 if test "${am_cv_proto_iconv+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h. */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10705 #include <stdlib.h>
10706 #include <iconv.h>
10707 extern
10708 #ifdef __cplusplus
10710 #endif
10711 #if defined(__STDC__) || defined(__cplusplus)
10712 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10713 #else
10714 size_t iconv();
10715 #endif
10718 main ()
10722 return 0;
10724 _ACEOF
10725 rm -f conftest.$ac_objext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10727 (eval $ac_compile) 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } &&
10734 { ac_try='test -z "$ac_c_werror_flag"
10735 || test ! -s conftest.err'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest.$ac_objext'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 am_cv_proto_iconv_arg1=""
10748 else
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10752 am_cv_proto_iconv_arg1="const"
10754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10755 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);"
10758 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10759 echo "$as_me:$LINENO: result: ${ac_t:-
10760 }$am_cv_proto_iconv" >&5
10761 echo "${ECHO_T}${ac_t:-
10762 }$am_cv_proto_iconv" >&6
10764 cat >>confdefs.h <<_ACEOF
10765 #define ICONV_CONST $am_cv_proto_iconv_arg1
10766 _ACEOF
10771 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10772 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10773 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 if test x$gcc_no_link = xyes; then
10777 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10778 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10779 { (exit 1); exit 1; }; }
10781 cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h. */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 #include <locale.h>
10789 main ()
10791 return LC_MESSAGES
10793 return 0;
10795 _ACEOF
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10798 (eval $ac_link) 2>conftest.er1
10799 ac_status=$?
10800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -z "$ac_c_werror_flag"
10806 || test ! -s conftest.err'
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; } &&
10812 { ac_try='test -s conftest$ac_exeext'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 am_cv_val_LC_MESSAGES=yes
10819 else
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 am_cv_val_LC_MESSAGES=no
10825 rm -f conftest.err conftest.$ac_objext \
10826 conftest$ac_exeext conftest.$ac_ext
10828 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10829 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10830 if test $am_cv_val_LC_MESSAGES = yes; then
10832 cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_LC_MESSAGES 1
10834 _ACEOF
10838 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10839 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10840 if test "${ac_cv_struct_tm+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 #include <sys/types.h>
10850 #include <time.h>
10853 main ()
10855 struct tm *tp; tp->tm_sec;
10857 return 0;
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862 (eval $ac_compile) 2>conftest.er1
10863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag"
10870 || test ! -s conftest.err'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try='test -s conftest.$ac_objext'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 ac_cv_struct_tm=time.h
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 ac_cv_struct_tm=sys/time.h
10889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10891 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10892 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10893 if test $ac_cv_struct_tm = sys/time.h; then
10895 cat >>confdefs.h <<\_ACEOF
10896 #define TM_IN_SYS_TIME 1
10897 _ACEOF
10901 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10902 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10903 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 #include <sys/types.h>
10913 #include <$ac_cv_struct_tm>
10917 main ()
10919 static struct tm ac_aggr;
10920 if (ac_aggr.tm_zone)
10921 return 0;
10923 return 0;
10925 _ACEOF
10926 rm -f conftest.$ac_objext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10928 (eval $ac_compile) 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try='test -z "$ac_c_werror_flag"
10936 || test ! -s conftest.err'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 ac_cv_member_struct_tm_tm_zone=yes
10949 else
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 #include <sys/types.h>
10960 #include <$ac_cv_struct_tm>
10964 main ()
10966 static struct tm ac_aggr;
10967 if (sizeof ac_aggr.tm_zone)
10968 return 0;
10970 return 0;
10972 _ACEOF
10973 rm -f conftest.$ac_objext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10975 (eval $ac_compile) 2>conftest.er1
10976 ac_status=$?
10977 grep -v '^ *+' conftest.er1 >conftest.err
10978 rm -f conftest.er1
10979 cat conftest.err >&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } &&
10982 { ac_try='test -z "$ac_c_werror_flag"
10983 || test ! -s conftest.err'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } &&
10989 { ac_try='test -s conftest.$ac_objext'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; }; then
10995 ac_cv_member_struct_tm_tm_zone=yes
10996 else
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 ac_cv_member_struct_tm_tm_zone=no
11002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11006 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11007 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11008 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11010 cat >>confdefs.h <<_ACEOF
11011 #define HAVE_STRUCT_TM_TM_ZONE 1
11012 _ACEOF
11017 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11019 cat >>confdefs.h <<\_ACEOF
11020 #define HAVE_TM_ZONE 1
11021 _ACEOF
11023 else
11024 echo "$as_me:$LINENO: checking for tzname" >&5
11025 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11026 if test "${ac_cv_var_tzname+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029 if test x$gcc_no_link = xyes; then
11030 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11032 { (exit 1); exit 1; }; }
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h. */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 #include <time.h>
11041 #ifndef tzname /* For SGI. */
11042 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11043 #endif
11046 main ()
11048 atoi(*tzname);
11050 return 0;
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_var_tzname=yes
11076 else
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_cv_var_tzname=no
11082 rm -f conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11085 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11086 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11087 if test $ac_cv_var_tzname = yes; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_TZNAME 1
11091 _ACEOF
11099 for ac_func in gethostbyname_r
11101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11102 echo "$as_me:$LINENO: checking for $ac_func" >&5
11103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11104 if eval "test \"\${$as_ac_var+set}\" = set"; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107 if test x$gcc_no_link = xyes; then
11108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11110 { (exit 1); exit 1; }; }
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h. */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11120 #define $ac_func innocuous_$ac_func
11122 /* System header to define __stub macros and hopefully few prototypes,
11123 which can conflict with char $ac_func (); below.
11124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11125 <limits.h> exists even on freestanding compilers. */
11127 #ifdef __STDC__
11128 # include <limits.h>
11129 #else
11130 # include <assert.h>
11131 #endif
11133 #undef $ac_func
11135 /* Override any gcc2 internal prototype to avoid an error. */
11136 #ifdef __cplusplus
11137 extern "C"
11139 #endif
11140 /* We use char because int might match the return type of a gcc2
11141 builtin and then its argument prototype would still apply. */
11142 char $ac_func ();
11143 /* The GNU C library defines this for functions which it implements
11144 to always fail with ENOSYS. Some functions are actually named
11145 something starting with __ and the normal name is an alias. */
11146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11147 choke me
11148 #else
11149 char (*f) () = $ac_func;
11150 #endif
11151 #ifdef __cplusplus
11153 #endif
11156 main ()
11158 return f != $ac_func;
11160 return 0;
11162 _ACEOF
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11165 (eval $ac_link) 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag"
11173 || test ! -s conftest.err'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest$ac_exeext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 eval "$as_ac_var=yes"
11186 else
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 eval "$as_ac_var=no"
11192 rm -f conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
11195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11197 if test `eval echo '${'$as_ac_var'}'` = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11200 _ACEOF
11203 cat >>confdefs.h <<\_ACEOF
11204 #define HAVE_GETHOSTBYNAME_R 1
11205 _ACEOF
11207 # There are two different kinds of gethostbyname_r.
11208 # We look for the one that returns `int'.
11209 # Hopefully this check is robust enough.
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 #include <netdb.h>
11218 _ACEOF
11219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11220 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11223 cat >>confdefs.h <<\_ACEOF
11224 #define GETHOSTBYNAME_R_RETURNS_INT 1
11225 _ACEOF
11228 rm -f conftest*
11231 case " $GCINCS " in
11232 *" -D_REENTRANT "*) ;;
11234 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11235 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11236 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239 ac_ext=cc
11240 ac_cpp='$CXXCPP $CPPFLAGS'
11241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h. */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 #include <netdb.h>
11253 main ()
11255 gethostbyname_r("", 0, 0);
11257 return 0;
11259 _ACEOF
11260 rm -f conftest.$ac_objext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11262 (eval $ac_compile) 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_cxx_werror_flag"
11270 || test ! -s conftest.err'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 libjava_cv_gethostbyname_r_needs_reentrant=no
11283 else
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 CPPFLAGS_SAVE="$CPPFLAGS"
11288 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 #include <netdb.h>
11297 main ()
11299 gethostbyname_r("", 0, 0);
11301 return 0;
11303 _ACEOF
11304 rm -f conftest.$ac_objext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11306 (eval $ac_compile) 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -z "$ac_cxx_werror_flag"
11314 || test ! -s conftest.err'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest.$ac_objext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 libjava_cv_gethostbyname_r_needs_reentrant=yes
11327 else
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 libjava_cv_gethostbyname_r_needs_reentrant=fail
11333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11334 CPPFLAGS="$CPPFLAGS_SAVE"
11337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11338 ac_ext=c
11339 ac_cpp='$CPP $CPPFLAGS'
11340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11346 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11347 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11348 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define _REENTRANT 1
11352 _ACEOF
11356 esac
11358 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11359 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11360 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11370 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11371 # define _REENTRANT 1
11372 #endif
11373 #include <netdb.h>
11375 main ()
11377 struct hostent_data data;
11379 return 0;
11381 _ACEOF
11382 rm -f conftest.$ac_objext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384 (eval $ac_compile) 2>conftest.er1
11385 ac_status=$?
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
11391 { ac_try='test -z "$ac_c_werror_flag"
11392 || test ! -s conftest.err'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; } &&
11398 { ac_try='test -s conftest.$ac_objext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 libjava_cv_struct_hostent_data=yes
11405 else
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 libjava_cv_struct_hostent_data=no
11411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11413 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11414 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11415 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11417 cat >>confdefs.h <<\_ACEOF
11418 #define HAVE_STRUCT_HOSTENT_DATA 1
11419 _ACEOF
11424 done
11427 # FIXME: libjava source code expects to find a prototype for
11428 # gethostbyaddr_r in netdb.h. The outer check ensures that
11429 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11430 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11431 # linkage check is enough, yet C++ code requires proper prototypes.)
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h. */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <netdb.h>
11440 _ACEOF
11441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11442 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11445 for ac_func in gethostbyaddr_r
11447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11448 echo "$as_me:$LINENO: checking for $ac_func" >&5
11449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11450 if eval "test \"\${$as_ac_var+set}\" = set"; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453 if test x$gcc_no_link = xyes; then
11454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11456 { (exit 1); exit 1; }; }
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11466 #define $ac_func innocuous_$ac_func
11468 /* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char $ac_func (); below.
11470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471 <limits.h> exists even on freestanding compilers. */
11473 #ifdef __STDC__
11474 # include <limits.h>
11475 #else
11476 # include <assert.h>
11477 #endif
11479 #undef $ac_func
11481 /* Override any gcc2 internal prototype to avoid an error. */
11482 #ifdef __cplusplus
11483 extern "C"
11485 #endif
11486 /* We use char because int might match the return type of a gcc2
11487 builtin and then its argument prototype would still apply. */
11488 char $ac_func ();
11489 /* The GNU C library defines this for functions which it implements
11490 to always fail with ENOSYS. Some functions are actually named
11491 something starting with __ and the normal name is an alias. */
11492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11493 choke me
11494 #else
11495 char (*f) () = $ac_func;
11496 #endif
11497 #ifdef __cplusplus
11499 #endif
11502 main ()
11504 return f != $ac_func;
11506 return 0;
11508 _ACEOF
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511 (eval $ac_link) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag"
11519 || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest$ac_exeext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 eval "$as_ac_var=yes"
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 eval "$as_ac_var=no"
11538 rm -f conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11543 if test `eval echo '${'$as_ac_var'}'` = yes; then
11544 cat >>confdefs.h <<_ACEOF
11545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11546 _ACEOF
11549 cat >>confdefs.h <<\_ACEOF
11550 #define HAVE_GETHOSTBYADDR_R 1
11551 _ACEOF
11553 # There are two different kinds of gethostbyaddr_r.
11554 # We look for the one that returns `int'.
11555 # Hopefully this check is robust enough.
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h. */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 #include <netdb.h>
11564 _ACEOF
11565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11566 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11569 cat >>confdefs.h <<\_ACEOF
11570 #define GETHOSTBYADDR_R_RETURNS_INT 1
11571 _ACEOF
11574 rm -f conftest*
11577 done
11580 rm -f conftest*
11584 for ac_func in gethostname
11586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11589 if eval "test \"\${$as_ac_var+set}\" = set"; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592 if test x$gcc_no_link = xyes; then
11593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11595 { (exit 1); exit 1; }; }
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11605 #define $ac_func innocuous_$ac_func
11607 /* System header to define __stub macros and hopefully few prototypes,
11608 which can conflict with char $ac_func (); below.
11609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11610 <limits.h> exists even on freestanding compilers. */
11612 #ifdef __STDC__
11613 # include <limits.h>
11614 #else
11615 # include <assert.h>
11616 #endif
11618 #undef $ac_func
11620 /* Override any gcc2 internal prototype to avoid an error. */
11621 #ifdef __cplusplus
11622 extern "C"
11624 #endif
11625 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11627 char $ac_func ();
11628 /* The GNU C library defines this for functions which it implements
11629 to always fail with ENOSYS. Some functions are actually named
11630 something starting with __ and the normal name is an alias. */
11631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11632 choke me
11633 #else
11634 char (*f) () = $ac_func;
11635 #endif
11636 #ifdef __cplusplus
11638 #endif
11641 main ()
11643 return f != $ac_func;
11645 return 0;
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_c_werror_flag"
11658 || test ! -s conftest.err'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest$ac_exeext'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 eval "$as_ac_var=yes"
11671 else
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 eval "$as_ac_var=no"
11677 rm -f conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11682 if test `eval echo '${'$as_ac_var'}'` = yes; then
11683 cat >>confdefs.h <<_ACEOF
11684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11685 _ACEOF
11688 cat >>confdefs.h <<\_ACEOF
11689 #define HAVE_GETHOSTNAME 1
11690 _ACEOF
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 #include <unistd.h>
11700 _ACEOF
11701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11702 $EGREP "gethostname" >/dev/null 2>&1; then
11705 cat >>confdefs.h <<\_ACEOF
11706 #define HAVE_GETHOSTNAME_DECL 1
11707 _ACEOF
11710 rm -f conftest*
11713 done
11717 for ac_func in usleep
11719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11720 echo "$as_me:$LINENO: checking for $ac_func" >&5
11721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11722 if eval "test \"\${$as_ac_var+set}\" = set"; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725 if test x$gcc_no_link = xyes; then
11726 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11727 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11728 { (exit 1); exit 1; }; }
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h. */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11738 #define $ac_func innocuous_$ac_func
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11745 #ifdef __STDC__
11746 # include <limits.h>
11747 #else
11748 # include <assert.h>
11749 #endif
11751 #undef $ac_func
11753 /* Override any gcc2 internal prototype to avoid an error. */
11754 #ifdef __cplusplus
11755 extern "C"
11757 #endif
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11760 char $ac_func ();
11761 /* The GNU C library defines this for functions which it implements
11762 to always fail with ENOSYS. Some functions are actually named
11763 something starting with __ and the normal name is an alias. */
11764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11765 choke me
11766 #else
11767 char (*f) () = $ac_func;
11768 #endif
11769 #ifdef __cplusplus
11771 #endif
11774 main ()
11776 return f != $ac_func;
11778 return 0;
11780 _ACEOF
11781 rm -f conftest.$ac_objext conftest$ac_exeext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783 (eval $ac_link) 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
11790 { ac_try='test -z "$ac_c_werror_flag"
11791 || test ! -s conftest.err'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest$ac_exeext'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 eval "$as_ac_var=yes"
11804 else
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 eval "$as_ac_var=no"
11810 rm -f conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11815 if test `eval echo '${'$as_ac_var'}'` = yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11818 _ACEOF
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 #include <unistd.h>
11828 _ACEOF
11829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11830 $EGREP "usleep" >/dev/null 2>&1; then
11833 cat >>confdefs.h <<\_ACEOF
11834 #define HAVE_USLEEP_DECL 1
11835 _ACEOF
11838 rm -f conftest*
11841 done
11844 # Look for these functions in the thread library, but only bother
11845 # if using POSIX threads.
11846 if test "$THREADS" = posix; then
11847 save_LIBS="$LIBS"
11848 LIBS="$LIBS $THREADLIBS"
11849 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11850 # E.g., Solaris.
11853 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11856 echo "$as_me:$LINENO: checking for $ac_func" >&5
11857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11858 if eval "test \"\${$as_ac_var+set}\" = set"; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861 if test x$gcc_no_link = xyes; then
11862 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11864 { (exit 1); exit 1; }; }
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h. */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11874 #define $ac_func innocuous_$ac_func
11876 /* System header to define __stub macros and hopefully few prototypes,
11877 which can conflict with char $ac_func (); below.
11878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11879 <limits.h> exists even on freestanding compilers. */
11881 #ifdef __STDC__
11882 # include <limits.h>
11883 #else
11884 # include <assert.h>
11885 #endif
11887 #undef $ac_func
11889 /* Override any gcc2 internal prototype to avoid an error. */
11890 #ifdef __cplusplus
11891 extern "C"
11893 #endif
11894 /* We use char because int might match the return type of a gcc2
11895 builtin and then its argument prototype would still apply. */
11896 char $ac_func ();
11897 /* The GNU C library defines this for functions which it implements
11898 to always fail with ENOSYS. Some functions are actually named
11899 something starting with __ and the normal name is an alias. */
11900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11901 choke me
11902 #else
11903 char (*f) () = $ac_func;
11904 #endif
11905 #ifdef __cplusplus
11907 #endif
11910 main ()
11912 return f != $ac_func;
11914 return 0;
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919 (eval $ac_link) 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -z "$ac_c_werror_flag"
11927 || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest$ac_exeext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 eval "$as_ac_var=yes"
11940 else
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 eval "$as_ac_var=no"
11946 rm -f conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11951 if test `eval echo '${'$as_ac_var'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954 _ACEOF
11957 done
11960 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11961 # Solaris 7 the name librt is preferred.
11963 for ac_func in sched_yield
11965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 echo "$as_me:$LINENO: checking for $ac_func" >&5
11967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_var+set}\" = set"; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971 if test x$gcc_no_link = xyes; then
11972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11974 { (exit 1); exit 1; }; }
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11984 #define $ac_func innocuous_$ac_func
11986 /* System header to define __stub macros and hopefully few prototypes,
11987 which can conflict with char $ac_func (); below.
11988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11989 <limits.h> exists even on freestanding compilers. */
11991 #ifdef __STDC__
11992 # include <limits.h>
11993 #else
11994 # include <assert.h>
11995 #endif
11997 #undef $ac_func
11999 /* Override any gcc2 internal prototype to avoid an error. */
12000 #ifdef __cplusplus
12001 extern "C"
12003 #endif
12004 /* We use char because int might match the return type of a gcc2
12005 builtin and then its argument prototype would still apply. */
12006 char $ac_func ();
12007 /* The GNU C library defines this for functions which it implements
12008 to always fail with ENOSYS. Some functions are actually named
12009 something starting with __ and the normal name is an alias. */
12010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12011 choke me
12012 #else
12013 char (*f) () = $ac_func;
12014 #endif
12015 #ifdef __cplusplus
12017 #endif
12020 main ()
12022 return f != $ac_func;
12024 return 0;
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag"
12037 || test ! -s conftest.err'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest$ac_exeext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 eval "$as_ac_var=yes"
12050 else
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 eval "$as_ac_var=no"
12056 rm -f conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12061 if test `eval echo '${'$as_ac_var'}'` = yes; then
12062 cat >>confdefs.h <<_ACEOF
12063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12064 _ACEOF
12066 else
12068 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12069 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12070 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073 ac_check_lib_save_LIBS=$LIBS
12074 LIBS="-lrt $LIBS"
12075 if test x$gcc_no_link = xyes; then
12076 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12078 { (exit 1); exit 1; }; }
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h. */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12087 /* Override any gcc2 internal prototype to avoid an error. */
12088 #ifdef __cplusplus
12089 extern "C"
12090 #endif
12091 /* We use char because int might match the return type of a gcc2
12092 builtin and then its argument prototype would still apply. */
12093 char sched_yield ();
12095 main ()
12097 sched_yield ();
12099 return 0;
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_cv_lib_rt_sched_yield=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_cv_lib_rt_sched_yield=no
12131 rm -f conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133 LIBS=$ac_check_lib_save_LIBS
12135 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12136 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12137 if test $ac_cv_lib_rt_sched_yield = yes; then
12139 cat >>confdefs.h <<\_ACEOF
12140 #define HAVE_SCHED_YIELD 1
12141 _ACEOF
12143 THREADLIBS="$THREADLIBS -lrt"
12144 THREADSPEC="$THREADSPEC -lrt"
12145 else
12147 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12148 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12149 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-lposix4 $LIBS"
12154 if test x$gcc_no_link = xyes; then
12155 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12156 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12157 { (exit 1); exit 1; }; }
12159 cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h. */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12166 /* Override any gcc2 internal prototype to avoid an error. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 /* We use char because int might match the return type of a gcc2
12171 builtin and then its argument prototype would still apply. */
12172 char sched_yield ();
12174 main ()
12176 sched_yield ();
12178 return 0;
12180 _ACEOF
12181 rm -f conftest.$ac_objext conftest$ac_exeext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12183 (eval $ac_link) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try='test -z "$ac_c_werror_flag"
12191 || test ! -s conftest.err'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest$ac_exeext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_cv_lib_posix4_sched_yield=yes
12204 else
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_cv_lib_posix4_sched_yield=no
12210 rm -f conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext conftest.$ac_ext
12212 LIBS=$ac_check_lib_save_LIBS
12214 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12215 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12216 if test $ac_cv_lib_posix4_sched_yield = yes; then
12218 cat >>confdefs.h <<\_ACEOF
12219 #define HAVE_SCHED_YIELD 1
12220 _ACEOF
12222 THREADLIBS="$THREADLIBS -lposix4"
12223 THREADSPEC="$THREADSPEC -lposix4"
12229 done
12231 LIBS="$save_LIBS"
12233 # We can save a little space at runtime if the mutex has m_count
12234 # or __m_count. This is a nice hack for Linux.
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 #include <pthread.h>
12243 main ()
12246 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12249 return 0;
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag"
12262 || test ! -s conftest.err'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest.$ac_objext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12275 cat >>confdefs.h <<\_ACEOF
12276 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12277 _ACEOF
12279 else
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <pthread.h>
12292 main ()
12295 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12298 return 0;
12300 _ACEOF
12301 rm -f conftest.$ac_objext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag"
12311 || test ! -s conftest.err'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest.$ac_objext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12324 cat >>confdefs.h <<\_ACEOF
12325 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12326 _ACEOF
12328 else
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12338 # We require a way to get the time.
12339 time_found=no
12343 for ac_func in gettimeofday time ftime
12345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12346 echo "$as_me:$LINENO: checking for $ac_func" >&5
12347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12348 if eval "test \"\${$as_ac_var+set}\" = set"; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351 if test x$gcc_no_link = xyes; then
12352 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12353 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12354 { (exit 1); exit 1; }; }
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h. */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12364 #define $ac_func innocuous_$ac_func
12366 /* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char $ac_func (); below.
12368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 <limits.h> exists even on freestanding compilers. */
12371 #ifdef __STDC__
12372 # include <limits.h>
12373 #else
12374 # include <assert.h>
12375 #endif
12377 #undef $ac_func
12379 /* Override any gcc2 internal prototype to avoid an error. */
12380 #ifdef __cplusplus
12381 extern "C"
12383 #endif
12384 /* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12386 char $ac_func ();
12387 /* The GNU C library defines this for functions which it implements
12388 to always fail with ENOSYS. Some functions are actually named
12389 something starting with __ and the normal name is an alias. */
12390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12391 choke me
12392 #else
12393 char (*f) () = $ac_func;
12394 #endif
12395 #ifdef __cplusplus
12397 #endif
12400 main ()
12402 return f != $ac_func;
12404 return 0;
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -z "$ac_c_werror_flag"
12417 || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 eval "$as_ac_var=yes"
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 eval "$as_ac_var=no"
12436 rm -f conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12441 if test `eval echo '${'$as_ac_var'}'` = yes; then
12442 cat >>confdefs.h <<_ACEOF
12443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12444 _ACEOF
12445 time_found=yes
12447 done
12449 if test "$time_found" = no; then
12450 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12451 echo "$as_me: error: no function found to get the time" >&2;}
12452 { (exit 1); exit 1; }; }
12456 for ac_func in memmove
12458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459 echo "$as_me:$LINENO: checking for $ac_func" >&5
12460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12461 if eval "test \"\${$as_ac_var+set}\" = set"; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 if test x$gcc_no_link = xyes; then
12465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12467 { (exit 1); exit 1; }; }
12469 cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h. */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12477 #define $ac_func innocuous_$ac_func
12479 /* System header to define __stub macros and hopefully few prototypes,
12480 which can conflict with char $ac_func (); below.
12481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12482 <limits.h> exists even on freestanding compilers. */
12484 #ifdef __STDC__
12485 # include <limits.h>
12486 #else
12487 # include <assert.h>
12488 #endif
12490 #undef $ac_func
12492 /* Override any gcc2 internal prototype to avoid an error. */
12493 #ifdef __cplusplus
12494 extern "C"
12496 #endif
12497 /* We use char because int might match the return type of a gcc2
12498 builtin and then its argument prototype would still apply. */
12499 char $ac_func ();
12500 /* The GNU C library defines this for functions which it implements
12501 to always fail with ENOSYS. Some functions are actually named
12502 something starting with __ and the normal name is an alias. */
12503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12504 choke me
12505 #else
12506 char (*f) () = $ac_func;
12507 #endif
12508 #ifdef __cplusplus
12510 #endif
12513 main ()
12515 return f != $ac_func;
12517 return 0;
12519 _ACEOF
12520 rm -f conftest.$ac_objext conftest$ac_exeext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522 (eval $ac_link) 2>conftest.er1
12523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -z "$ac_c_werror_flag"
12530 || test ! -s conftest.err'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest$ac_exeext'
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; }; then
12542 eval "$as_ac_var=yes"
12543 else
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 eval "$as_ac_var=no"
12549 rm -f conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12554 if test `eval echo '${'$as_ac_var'}'` = yes; then
12555 cat >>confdefs.h <<_ACEOF
12556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12557 _ACEOF
12560 done
12563 # We require memcpy.
12564 memcpy_found=no
12566 for ac_func in memcpy
12568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12569 echo "$as_me:$LINENO: checking for $ac_func" >&5
12570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12571 if eval "test \"\${$as_ac_var+set}\" = set"; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574 if test x$gcc_no_link = xyes; then
12575 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12576 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12577 { (exit 1); exit 1; }; }
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h. */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12587 #define $ac_func innocuous_$ac_func
12589 /* System header to define __stub macros and hopefully few prototypes,
12590 which can conflict with char $ac_func (); below.
12591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12592 <limits.h> exists even on freestanding compilers. */
12594 #ifdef __STDC__
12595 # include <limits.h>
12596 #else
12597 # include <assert.h>
12598 #endif
12600 #undef $ac_func
12602 /* Override any gcc2 internal prototype to avoid an error. */
12603 #ifdef __cplusplus
12604 extern "C"
12606 #endif
12607 /* We use char because int might match the return type of a gcc2
12608 builtin and then its argument prototype would still apply. */
12609 char $ac_func ();
12610 /* The GNU C library defines this for functions which it implements
12611 to always fail with ENOSYS. Some functions are actually named
12612 something starting with __ and the normal name is an alias. */
12613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12614 choke me
12615 #else
12616 char (*f) () = $ac_func;
12617 #endif
12618 #ifdef __cplusplus
12620 #endif
12623 main ()
12625 return f != $ac_func;
12627 return 0;
12629 _ACEOF
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12632 (eval $ac_link) 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest$ac_exeext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 eval "$as_ac_var=yes"
12653 else
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 eval "$as_ac_var=no"
12659 rm -f conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then
12665 cat >>confdefs.h <<_ACEOF
12666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12667 _ACEOF
12668 memcpy_found=yes
12670 done
12672 if test "$memcpy_found" = no; then
12673 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12674 echo "$as_me: error: memcpy is required" >&2;}
12675 { (exit 1); exit 1; }; }
12678 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683 ac_check_lib_save_LIBS=$LIBS
12684 LIBS="-ldl $LIBS"
12685 if test x$gcc_no_link = xyes; then
12686 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12688 { (exit 1); exit 1; }; }
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h. */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12697 /* Override any gcc2 internal prototype to avoid an error. */
12698 #ifdef __cplusplus
12699 extern "C"
12700 #endif
12701 /* We use char because int might match the return type of a gcc2
12702 builtin and then its argument prototype would still apply. */
12703 char dlopen ();
12705 main ()
12707 dlopen ();
12709 return 0;
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714 (eval $ac_link) 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -z "$ac_c_werror_flag"
12722 || test ! -s conftest.err'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest$ac_exeext'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_cv_lib_dl_dlopen=yes
12735 else
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ac_cv_lib_dl_dlopen=no
12741 rm -f conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12745 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12746 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12747 if test $ac_cv_lib_dl_dlopen = yes; then
12750 cat >>confdefs.h <<\_ACEOF
12751 #define HAVE_DLOPEN 1
12752 _ACEOF
12757 # Some library-finding code we stole from Tcl.
12758 #--------------------------------------------------------------------
12759 # Check for the existence of the -lsocket and -lnsl libraries.
12760 # The order here is important, so that they end up in the right
12761 # order in the command line generated by make. Here are some
12762 # special considerations:
12763 # 1. Use "connect" and "accept" to check for -lsocket, and
12764 # "gethostbyname" to check for -lnsl.
12765 # 2. Use each function name only once: can't redo a check because
12766 # autoconf caches the results of the last check and won't redo it.
12767 # 3. Use -lnsl and -lsocket only if they supply procedures that
12768 # aren't already present in the normal libraries. This is because
12769 # IRIX 5.2 has libraries, but they aren't needed and they're
12770 # bogus: they goof up name resolution if used.
12771 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12772 # To get around this problem, check for both libraries together
12773 # if -lsocket doesn't work by itself.
12774 #--------------------------------------------------------------------
12776 echo "$as_me:$LINENO: checking for socket libraries" >&5
12777 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12778 if test "${gcj_cv_lib_sockets+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 gcj_cv_lib_sockets=
12782 gcj_checkBoth=0
12783 unset ac_cv_func_connect
12784 echo "$as_me:$LINENO: checking for connect" >&5
12785 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12786 if test "${ac_cv_func_connect+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789 if test x$gcc_no_link = xyes; then
12790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12792 { (exit 1); exit 1; }; }
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12802 #define connect innocuous_connect
12804 /* System header to define __stub macros and hopefully few prototypes,
12805 which can conflict with char connect (); below.
12806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12807 <limits.h> exists even on freestanding compilers. */
12809 #ifdef __STDC__
12810 # include <limits.h>
12811 #else
12812 # include <assert.h>
12813 #endif
12815 #undef connect
12817 /* Override any gcc2 internal prototype to avoid an error. */
12818 #ifdef __cplusplus
12819 extern "C"
12821 #endif
12822 /* We use char because int might match the return type of a gcc2
12823 builtin and then its argument prototype would still apply. */
12824 char connect ();
12825 /* The GNU C library defines this for functions which it implements
12826 to always fail with ENOSYS. Some functions are actually named
12827 something starting with __ and the normal name is an alias. */
12828 #if defined (__stub_connect) || defined (__stub___connect)
12829 choke me
12830 #else
12831 char (*f) () = connect;
12832 #endif
12833 #ifdef __cplusplus
12835 #endif
12838 main ()
12840 return f != connect;
12842 return 0;
12844 _ACEOF
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_c_werror_flag"
12855 || test ! -s conftest.err'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try='test -s conftest$ac_exeext'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 ac_cv_func_connect=yes
12868 else
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 ac_cv_func_connect=no
12874 rm -f conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12877 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12878 echo "${ECHO_T}$ac_cv_func_connect" >&6
12879 if test $ac_cv_func_connect = yes; then
12880 gcj_checkSocket=0
12881 else
12882 gcj_checkSocket=1
12885 if test "$gcj_checkSocket" = 1; then
12886 unset ac_cv_func_connect
12887 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12888 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12889 if test "${ac_cv_lib_socket_main+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 else
12892 ac_check_lib_save_LIBS=$LIBS
12893 LIBS="-lsocket $LIBS"
12894 if test x$gcc_no_link = xyes; then
12895 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12896 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12897 { (exit 1); exit 1; }; }
12899 cat >conftest.$ac_ext <<_ACEOF
12900 /* confdefs.h. */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12908 main ()
12910 main ();
12912 return 0;
12914 _ACEOF
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag"
12925 || test ! -s conftest.err'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest$ac_exeext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12937 ac_cv_lib_socket_main=yes
12938 else
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 ac_cv_lib_socket_main=no
12944 rm -f conftest.err conftest.$ac_objext \
12945 conftest$ac_exeext conftest.$ac_ext
12946 LIBS=$ac_check_lib_save_LIBS
12948 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12949 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12950 if test $ac_cv_lib_socket_main = yes; then
12951 gcj_cv_lib_sockets="-lsocket"
12952 else
12953 gcj_checkBoth=1
12957 if test "$gcj_checkBoth" = 1; then
12958 gcj_oldLibs=$LIBS
12959 LIBS="$LIBS -lsocket -lnsl"
12960 unset ac_cv_func_accept
12961 echo "$as_me:$LINENO: checking for accept" >&5
12962 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12963 if test "${ac_cv_func_accept+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966 if test x$gcc_no_link = xyes; then
12967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12969 { (exit 1); exit 1; }; }
12971 cat >conftest.$ac_ext <<_ACEOF
12972 /* confdefs.h. */
12973 _ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12977 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12979 #define accept innocuous_accept
12981 /* System header to define __stub macros and hopefully few prototypes,
12982 which can conflict with char accept (); below.
12983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12984 <limits.h> exists even on freestanding compilers. */
12986 #ifdef __STDC__
12987 # include <limits.h>
12988 #else
12989 # include <assert.h>
12990 #endif
12992 #undef accept
12994 /* Override any gcc2 internal prototype to avoid an error. */
12995 #ifdef __cplusplus
12996 extern "C"
12998 #endif
12999 /* We use char because int might match the return type of a gcc2
13000 builtin and then its argument prototype would still apply. */
13001 char accept ();
13002 /* The GNU C library defines this for functions which it implements
13003 to always fail with ENOSYS. Some functions are actually named
13004 something starting with __ and the normal name is an alias. */
13005 #if defined (__stub_accept) || defined (__stub___accept)
13006 choke me
13007 #else
13008 char (*f) () = accept;
13009 #endif
13010 #ifdef __cplusplus
13012 #endif
13015 main ()
13017 return f != accept;
13019 return 0;
13021 _ACEOF
13022 rm -f conftest.$ac_objext conftest$ac_exeext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13024 (eval $ac_link) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag"
13032 || test ! -s conftest.err'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest$ac_exeext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_cv_func_accept=yes
13045 else
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ac_cv_func_accept=no
13051 rm -f conftest.err conftest.$ac_objext \
13052 conftest$ac_exeext conftest.$ac_ext
13054 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13055 echo "${ECHO_T}$ac_cv_func_accept" >&6
13056 if test $ac_cv_func_accept = yes; then
13057 gcj_checkNsl=0
13058 gcj_cv_lib_sockets="-lsocket -lnsl"
13061 unset ac_cv_func_accept
13062 LIBS=$gcj_oldLibs
13064 unset ac_cv_func_gethostbyname
13065 gcj_oldLibs=$LIBS
13066 LIBS="$LIBS $gcj_cv_lib_sockets"
13067 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13068 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13069 if test "${ac_cv_func_gethostbyname+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072 if test x$gcc_no_link = xyes; then
13073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13075 { (exit 1); exit 1; }; }
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13085 #define gethostbyname innocuous_gethostbyname
13087 /* System header to define __stub macros and hopefully few prototypes,
13088 which can conflict with char gethostbyname (); below.
13089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13090 <limits.h> exists even on freestanding compilers. */
13092 #ifdef __STDC__
13093 # include <limits.h>
13094 #else
13095 # include <assert.h>
13096 #endif
13098 #undef gethostbyname
13100 /* Override any gcc2 internal prototype to avoid an error. */
13101 #ifdef __cplusplus
13102 extern "C"
13104 #endif
13105 /* We use char because int might match the return type of a gcc2
13106 builtin and then its argument prototype would still apply. */
13107 char gethostbyname ();
13108 /* The GNU C library defines this for functions which it implements
13109 to always fail with ENOSYS. Some functions are actually named
13110 something starting with __ and the normal name is an alias. */
13111 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13112 choke me
13113 #else
13114 char (*f) () = gethostbyname;
13115 #endif
13116 #ifdef __cplusplus
13118 #endif
13121 main ()
13123 return f != gethostbyname;
13125 return 0;
13127 _ACEOF
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13130 (eval $ac_link) 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag"
13138 || test ! -s conftest.err'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_cv_func_gethostbyname=yes
13151 else
13152 echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13155 ac_cv_func_gethostbyname=no
13157 rm -f conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13160 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13161 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13162 if test $ac_cv_func_gethostbyname = yes; then
13164 else
13165 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13166 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13167 if test "${ac_cv_lib_nsl_main+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 else
13170 ac_check_lib_save_LIBS=$LIBS
13171 LIBS="-lnsl $LIBS"
13172 if test x$gcc_no_link = xyes; then
13173 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13174 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13175 { (exit 1); exit 1; }; }
13177 cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h. */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13186 main ()
13188 main ();
13190 return 0;
13192 _ACEOF
13193 rm -f conftest.$ac_objext conftest$ac_exeext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13195 (eval $ac_link) 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag"
13203 || test ! -s conftest.err'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest$ac_exeext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_cv_lib_nsl_main=yes
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ac_cv_lib_nsl_main=no
13222 rm -f conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13224 LIBS=$ac_check_lib_save_LIBS
13226 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13227 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13228 if test $ac_cv_lib_nsl_main = yes; then
13229 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13234 unset ac_cv_func_gethostbyname
13235 LIBS=$gcj_oldLIBS
13238 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13239 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13240 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13242 if test "$with_system_zlib" = yes; then
13243 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13244 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13245 if test "${ac_cv_lib_z_deflate+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248 ac_check_lib_save_LIBS=$LIBS
13249 LIBS="-lz $LIBS"
13250 if test x$gcc_no_link = xyes; then
13251 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13253 { (exit 1); exit 1; }; }
13255 cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h. */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13262 /* Override any gcc2 internal prototype to avoid an error. */
13263 #ifdef __cplusplus
13264 extern "C"
13265 #endif
13266 /* We use char because int might match the return type of a gcc2
13267 builtin and then its argument prototype would still apply. */
13268 char deflate ();
13270 main ()
13272 deflate ();
13274 return 0;
13276 _ACEOF
13277 rm -f conftest.$ac_objext conftest$ac_exeext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13279 (eval $ac_link) 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
13286 { ac_try='test -z "$ac_c_werror_flag"
13287 || test ! -s conftest.err'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; } &&
13293 { ac_try='test -s conftest$ac_exeext'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_cv_lib_z_deflate=yes
13300 else
13301 echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13304 ac_cv_lib_z_deflate=no
13306 rm -f conftest.err conftest.$ac_objext \
13307 conftest$ac_exeext conftest.$ac_ext
13308 LIBS=$ac_check_lib_save_LIBS
13310 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13311 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13312 if test $ac_cv_lib_z_deflate = yes; then
13313 ZLIBSPEC=-lz
13314 else
13315 ZLIBSPEC=
13320 # Test for Gtk stuff, if asked for.
13321 if test "$use_gtk_awt" = yes; then
13323 succeeded=no
13325 if test -z "$PKG_CONFIG"; then
13326 # Extract the first word of "pkg-config", so it can be a program name with args.
13327 set dummy pkg-config; ac_word=$2
13328 echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13330 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 case $PKG_CONFIG in
13334 [\\/]* | ?:[\\/]*)
13335 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13341 IFS=$as_save_IFS
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 break 2
13349 done
13350 done
13352 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13354 esac
13356 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13358 if test -n "$PKG_CONFIG"; then
13359 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13360 echo "${ECHO_T}$PKG_CONFIG" >&6
13361 else
13362 echo "$as_me:$LINENO: result: no" >&5
13363 echo "${ECHO_T}no" >&6
13368 if test "$PKG_CONFIG" = "no" ; then
13369 echo "*** The pkg-config script could not be found. Make sure it is"
13370 echo "*** in your path, or set the PKG_CONFIG environment variable"
13371 echo "*** to the full path to pkg-config."
13372 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13373 else
13374 PKG_CONFIG_MIN_VERSION=0.9.0
13375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13376 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13377 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13379 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13380 echo "$as_me:$LINENO: result: yes" >&5
13381 echo "${ECHO_T}yes" >&6
13382 succeeded=yes
13384 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13385 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13386 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13387 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13388 echo "${ECHO_T}$GTK_CFLAGS" >&6
13390 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13391 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13392 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13393 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13394 echo "${ECHO_T}$GTK_LIBS" >&6
13395 else
13396 GTK_CFLAGS=""
13397 GTK_LIBS=""
13398 ## If we have a custom action on failure, don't print errors, but
13399 ## do set a variable so people can do so.
13400 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13401 echo $GTK_PKG_ERRORS
13406 else
13407 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13408 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13412 if test $succeeded = yes; then
13414 else
13415 { { 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
13416 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;}
13417 { (exit 1); exit 1; }; }
13424 succeeded=no
13426 if test -z "$PKG_CONFIG"; then
13427 # Extract the first word of "pkg-config", so it can be a program name with args.
13428 set dummy pkg-config; ac_word=$2
13429 echo "$as_me:$LINENO: checking for $ac_word" >&5
13430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13431 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 case $PKG_CONFIG in
13435 [\\/]* | ?:[\\/]*)
13436 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440 for as_dir in $PATH
13442 IFS=$as_save_IFS
13443 test -z "$as_dir" && as_dir=.
13444 for ac_exec_ext in '' $ac_executable_extensions; do
13445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13446 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13448 break 2
13450 done
13451 done
13453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13455 esac
13457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13459 if test -n "$PKG_CONFIG"; then
13460 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13461 echo "${ECHO_T}$PKG_CONFIG" >&6
13462 else
13463 echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6
13469 if test "$PKG_CONFIG" = "no" ; then
13470 echo "*** The pkg-config script could not be found. Make sure it is"
13471 echo "*** in your path, or set the PKG_CONFIG environment variable"
13472 echo "*** to the full path to pkg-config."
13473 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13474 else
13475 PKG_CONFIG_MIN_VERSION=0.9.0
13476 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13477 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13478 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13480 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13481 echo "$as_me:$LINENO: result: yes" >&5
13482 echo "${ECHO_T}yes" >&6
13483 succeeded=yes
13485 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13486 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13487 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13488 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13489 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13491 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13492 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13493 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13494 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13495 echo "${ECHO_T}$GLIB_LIBS" >&6
13496 else
13497 GLIB_CFLAGS=""
13498 GLIB_LIBS=""
13499 ## If we have a custom action on failure, don't print errors, but
13500 ## do set a variable so people can do so.
13501 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13502 echo $GLIB_PKG_ERRORS
13507 else
13508 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13509 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13513 if test $succeeded = yes; then
13515 else
13516 { { 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
13517 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;}
13518 { (exit 1); exit 1; }; }
13525 succeeded=no
13527 if test -z "$PKG_CONFIG"; then
13528 # Extract the first word of "pkg-config", so it can be a program name with args.
13529 set dummy pkg-config; ac_word=$2
13530 echo "$as_me:$LINENO: checking for $ac_word" >&5
13531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13532 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535 case $PKG_CONFIG in
13536 [\\/]* | ?:[\\/]*)
13537 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541 for as_dir in $PATH
13543 IFS=$as_save_IFS
13544 test -z "$as_dir" && as_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13547 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13549 break 2
13551 done
13552 done
13554 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13556 esac
13558 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13560 if test -n "$PKG_CONFIG"; then
13561 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13562 echo "${ECHO_T}$PKG_CONFIG" >&6
13563 else
13564 echo "$as_me:$LINENO: result: no" >&5
13565 echo "${ECHO_T}no" >&6
13570 if test "$PKG_CONFIG" = "no" ; then
13571 echo "*** The pkg-config script could not be found. Make sure it is"
13572 echo "*** in your path, or set the PKG_CONFIG environment variable"
13573 echo "*** to the full path to pkg-config."
13574 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13575 else
13576 PKG_CONFIG_MIN_VERSION=0.9.0
13577 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13578 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13579 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13581 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13582 echo "$as_me:$LINENO: result: yes" >&5
13583 echo "${ECHO_T}yes" >&6
13584 succeeded=yes
13586 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13587 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13588 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13589 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13590 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13592 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13593 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13594 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13595 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13596 echo "${ECHO_T}$LIBART_LIBS" >&6
13597 else
13598 LIBART_CFLAGS=""
13599 LIBART_LIBS=""
13600 ## If we have a custom action on failure, don't print errors, but
13601 ## do set a variable so people can do so.
13602 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13603 echo $LIBART_PKG_ERRORS
13608 else
13609 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13610 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13614 if test $succeeded = yes; then
13616 else
13617 { { 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
13618 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;}
13619 { (exit 1); exit 1; }; }
13626 # On Solaris, and maybe other architectures, the Boehm collector
13627 # requires -ldl.
13628 if test "$GC" = boehm; then
13629 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13630 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13631 if test "${ac_cv_lib_dl_main+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 ac_check_lib_save_LIBS=$LIBS
13635 LIBS="-ldl $LIBS"
13636 if test x$gcc_no_link = xyes; then
13637 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13639 { (exit 1); exit 1; }; }
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h. */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13650 main ()
13652 main ();
13654 return 0;
13656 _ACEOF
13657 rm -f conftest.$ac_objext conftest$ac_exeext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13659 (eval $ac_link) 2>conftest.er1
13660 ac_status=$?
13661 grep -v '^ *+' conftest.er1 >conftest.err
13662 rm -f conftest.er1
13663 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -z "$ac_c_werror_flag"
13667 || test ! -s conftest.err'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try='test -s conftest$ac_exeext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 ac_cv_lib_dl_main=yes
13680 else
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 ac_cv_lib_dl_main=no
13686 rm -f conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 LIBS=$ac_check_lib_save_LIBS
13690 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13691 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13692 if test $ac_cv_lib_dl_main = yes; then
13693 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13700 if test "$supply_backtrace" = yes; then
13701 SUPPLY_BACKTRACE_TRUE=
13702 SUPPLY_BACKTRACE_FALSE='#'
13703 else
13704 SUPPLY_BACKTRACE_TRUE='#'
13705 SUPPLY_BACKTRACE_FALSE=
13709 if test -z "${with_multisubdir}"; then
13710 builddotdot=.
13711 else
13712 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13715 NATIVE=yes
13717 # Which gcj do we use?
13718 which_gcj=default
13719 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13720 if test -n "${with_cross_host}"; then
13721 # We are being configured with a cross compiler. We can't
13722 # use ac_exeext, because that is for the target platform.
13723 NATIVE=no
13724 cross_host_exeext=
13725 case "${with_cross_host}" in
13726 *mingw* | *cygwin*)
13727 cross_host_exeext=.exe
13729 esac
13730 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13731 if test x"$build_noncanonical" = x"$with_cross_host"; then
13732 # Ordinary cross (host!=target and host=build)
13733 which_gcj=built
13734 else
13735 # Canadian cross (host!=target and host!=build)
13736 which_gcj=cross
13738 else
13739 which_gcj=cross
13741 else
13742 # We are being configured with a native or crossed-native compiler
13743 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13744 if test x"$build" = x"$host"; then
13745 # True native build (host=target and host=build)
13746 which_gcj=built
13747 else
13748 # Crossed-native build (host=target and host!=build)
13749 which_gcj=cross
13751 else
13752 which_gcj=path
13755 case "${which_gcj}" in
13756 built)
13757 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13758 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13759 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13761 cross)
13762 if test "x${with_newlib}" = "xyes"; then
13763 # FIXME (comment): Why is this needed?
13764 GCC_UNWIND_INCLUDE=
13765 GCJ="${target_noncanonical}-gcj"
13766 else
13767 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13769 ZIP=jar
13770 GCJH='$(target_noncanonical)-gcjh'
13772 path)
13773 GCJ="gcj -B`${PWDCMD-pwd}`/"
13774 ## In this case, gcj is found outside the build tree. However, zip is
13775 ## found in the build tree.
13776 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13777 GCJH=gcjh
13779 esac
13784 # Create it, so that compile/link tests don't fail
13785 test -f libgcj.spec || touch libgcj.spec
13787 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13788 case $build in
13789 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13790 *) CLASSPATH_SEPARATOR=':' ;;
13791 esac
13794 # We must search the source tree for java.lang, since we still don't
13795 # have libgcj.jar nor java/lang/*.class
13796 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13797 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13799 # Since some classes depend on this one, we need its source available
13800 # before we can do any GCJ compilation test :-(
13801 if test ! -f gnu/classpath/Configuration.java; then
13802 test -d gnu || mkdir gnu
13803 test -d gnu/classpath || mkdir gnu/classpath
13804 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13805 -e 's,@TOOLKIT@,$TOOLKIT,' \
13806 < $srcdir/gnu/classpath/Configuration.java.in \
13807 > gnu/classpath/Configuration.java
13808 # We do not want to redirect the output of the grep below to /dev/null,
13809 # but we add /dev/null to the input list so that grep will print the
13810 # filename of Configuration.java in case it finds any matches.
13811 if grep @ gnu/classpath/Configuration.java /dev/null; then
13812 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13813 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13814 { (exit 1); exit 1; }; }
13818 if test -n "$ac_tool_prefix"; then
13819 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13820 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13821 echo "$as_me:$LINENO: checking for $ac_word" >&5
13822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13823 if test "${ac_cv_prog_GCJ+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826 if test -n "$GCJ"; then
13827 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13828 else
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13832 IFS=$as_save_IFS
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13836 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13838 break 2
13840 done
13841 done
13845 GCJ=$ac_cv_prog_GCJ
13846 if test -n "$GCJ"; then
13847 echo "$as_me:$LINENO: result: $GCJ" >&5
13848 echo "${ECHO_T}$GCJ" >&6
13849 else
13850 echo "$as_me:$LINENO: result: no" >&5
13851 echo "${ECHO_T}no" >&6
13855 if test -z "$ac_cv_prog_GCJ"; then
13856 ac_ct_GCJ=$GCJ
13857 # Extract the first word of "gcj", so it can be a program name with args.
13858 set dummy gcj; ac_word=$2
13859 echo "$as_me:$LINENO: checking for $ac_word" >&5
13860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13861 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864 if test -n "$ac_ct_GCJ"; then
13865 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13866 else
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13870 IFS=$as_save_IFS
13871 test -z "$as_dir" && as_dir=.
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13874 ac_cv_prog_ac_ct_GCJ="gcj"
13875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13876 break 2
13878 done
13879 done
13881 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13884 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13885 if test -n "$ac_ct_GCJ"; then
13886 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13887 echo "${ECHO_T}$ac_ct_GCJ" >&6
13888 else
13889 echo "$as_me:$LINENO: result: no" >&5
13890 echo "${ECHO_T}no" >&6
13893 GCJ=$ac_ct_GCJ
13894 else
13895 GCJ="$ac_cv_prog_GCJ"
13898 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13903 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13905 echo "$as_me:$LINENO: checking size of void *" >&5
13906 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13907 if test "${ac_cv_sizeof_void_p+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13911 cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h. */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 #include "confdefs.h"
13918 #include <sys/types.h>
13922 main ()
13924 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13926 return 0;
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931 (eval $ac_compile) 2>conftest.er1
13932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -z "$ac_c_werror_flag"
13939 || test ! -s conftest.err'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_cv_sizeof_void_p=$ac_size
13952 else
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13958 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13959 done
13963 if test x$ac_cv_sizeof_void_p = x ; then
13964 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13965 echo "$as_me: error: cannot determine a size for void *" >&2;}
13966 { (exit 1); exit 1; }; }
13968 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13969 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13971 cat >>confdefs.h <<_ACEOF
13972 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13973 _ACEOF
13977 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13978 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13979 if test "${ac_cv_c_bigendian+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982 ac_cv_c_bigendian=unknown
13983 # See if sys/param.h defines the BYTE_ORDER macro.
13984 cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h. */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 #include <sys/types.h>
13991 #include <sys/param.h>
13993 main ()
13996 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13997 bogus endian macros
13998 #endif
14000 return 0;
14002 _ACEOF
14003 rm -f conftest.$ac_objext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14005 (eval $ac_compile) 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag"
14013 || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 # It does; now see whether it defined to BIG_ENDIAN or not.
14026 cat >conftest.$ac_ext <<_ACEOF
14027 /* confdefs.h. */
14028 _ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14032 #include <sys/types.h>
14033 #include <sys/param.h>
14035 main ()
14038 #if BYTE_ORDER != BIG_ENDIAN
14039 not big endian
14040 #endif
14042 return 0;
14044 _ACEOF
14045 rm -f conftest.$ac_objext
14046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047 (eval $ac_compile) 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -z "$ac_c_werror_flag"
14055 || test ! -s conftest.err'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; } &&
14061 { ac_try='test -s conftest.$ac_objext'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_c_bigendian=yes
14068 else
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ac_cv_c_bigendian=no
14074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14075 else
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14081 if test $ac_cv_c_bigendian = unknown; then
14082 if test "$cross_compiling" = yes; then
14083 echo $ac_n "cross-compiling... " 2>&6
14084 else
14085 cat >conftest.$ac_ext <<_ACEOF
14086 /* confdefs.h. */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 main () {
14092 /* Are we little or big endian? From Harbison&Steele. */
14093 union
14095 long l;
14096 char c[sizeof (long)];
14097 } u;
14098 u.l = 1;
14099 exit (u.c[sizeof (long) - 1] == 1);
14101 _ACEOF
14102 rm -f conftest$ac_exeext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 ac_cv_c_bigendian=no
14114 else
14115 echo "$as_me: program exited with status $ac_status" >&5
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 ( exit $ac_status )
14120 ac_cv_c_bigendian=yes
14122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14126 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14127 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14128 if test $ac_cv_c_bigendian = unknown; then
14129 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
14130 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
14132 cat >conftest.c <<EOF
14133 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14134 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14135 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
14136 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14137 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14138 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
14139 int main() { _ascii (); _ebcdic (); return 0; }
14141 if test -f conftest.c ; then
14142 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
14143 if test `grep -l BIGenDianSyS conftest.o` ; then
14144 echo $ac_n ' big endian probe OK, ' 1>&6
14145 ac_cv_c_bigendian=yes
14147 if test `grep -l LiTTleEnDian conftest.o` ; then
14148 echo $ac_n ' little endian probe OK, ' 1>&6
14149 if test $ac_cv_c_bigendian = yes ; then
14150 ac_cv_c_bigendian=unknown;
14151 else
14152 ac_cv_c_bigendian=no
14155 echo $ac_n 'guessing bigendian ... ' >&6
14158 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14159 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14161 if test $ac_cv_c_bigendian = yes; then
14163 cat >>confdefs.h <<\_ACEOF
14164 #define WORDS_BIGENDIAN 1
14165 _ACEOF
14168 cat >>confdefs.h <<\_ACEOF
14169 #define HOST_WORDS_BIG_ENDIAN 1
14170 _ACEOF
14172 BYTEORDER=4321
14173 else
14174 BYTEORDER=1234
14177 cat >>confdefs.h <<_ACEOF
14178 #define BYTEORDER $BYTEORDER
14179 _ACEOF
14181 if test $ac_cv_c_bigendian = unknown; then
14182 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
14183 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
14184 { (exit 1); exit 1; }; }
14188 ZLIBS=
14189 SYS_ZLIBS=
14190 ZINCS=
14192 if test -z "$ZLIBSPEC"; then
14193 # Use zlib from the GCC tree.
14194 ZINCS='-I$(top_srcdir)/../zlib'
14195 ZLIBS=../zlib/libzgcj_convenience.la
14196 else
14197 # System's zlib.
14198 SYS_ZLIBS="$ZLIBSPEC"
14210 if test "$NATIVE" = yes; then
14211 NATIVE_TRUE=
14212 NATIVE_FALSE='#'
14213 else
14214 NATIVE_TRUE='#'
14215 NATIVE_FALSE=
14220 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14221 NEEDS_DATA_START_TRUE=
14222 NEEDS_DATA_START_FALSE='#'
14223 else
14224 NEEDS_DATA_START_TRUE='#'
14225 NEEDS_DATA_START_FALSE=
14230 # Process the option "--enable-version-specific-runtime-libs"
14231 # Calculate toolexeclibdir
14232 case ${version_specific_libs} in
14233 yes)
14234 # Need the gcc compiler version to know where to install libraries
14235 # and header files if --enable-version-specific-runtime-libs option
14236 # is selected.
14237 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
14238 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14239 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
14240 toolexeclibdir=$toolexecmainlibdir
14243 if test -n "$with_cross_host" &&
14244 test x"$with_cross_host" != x"no"; then
14245 # Install a library built with a cross compiler in tooldir, not libdir.
14246 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14247 toolexecmainlibdir='$(toolexecdir)/lib'
14248 else
14249 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14250 toolexecmainlibdir='$(libdir)'
14252 multi_os_directory=`$CC -print-multi-os-directory`
14253 case $multi_os_directory in
14254 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14255 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14256 esac
14258 esac
14263 # Determine gcj version number.
14264 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14265 GCJVERSION=$gcjversion
14268 cat >>confdefs.h <<_ACEOF
14269 #define GCJVERSION "$GCJVERSION"
14270 _ACEOF
14273 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14274 # On that system, sys/ioctl.h will not include sys/filio.h unless
14275 # BSD_COMP is defined; just including sys/filio.h is simpler.
14295 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
14297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14299 echo "$as_me:$LINENO: checking for $ac_header" >&5
14300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306 else
14307 # Is the header compilable?
14308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14310 cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h. */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 $ac_includes_default
14317 #include <$ac_header>
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_header_compiler=yes
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_header_compiler=no
14348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14350 echo "${ECHO_T}$ac_header_compiler" >&6
14352 # Is the header present?
14353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14355 cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h. */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 #include <$ac_header>
14362 _ACEOF
14363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } >/dev/null; then
14371 if test -s conftest.err; then
14372 ac_cpp_err=$ac_c_preproc_warn_flag
14373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14374 else
14375 ac_cpp_err=
14377 else
14378 ac_cpp_err=yes
14380 if test -z "$ac_cpp_err"; then
14381 ac_header_preproc=yes
14382 else
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_header_preproc=no
14388 rm -f conftest.err conftest.$ac_ext
14389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14390 echo "${ECHO_T}$ac_header_preproc" >&6
14392 # So? What about this header?
14393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14394 yes:no: )
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14399 ac_header_preproc=yes
14401 no:yes:* )
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14415 cat <<\_ASBOX
14416 ## ---------------------------------- ##
14417 ## Report this to the libjava lists. ##
14418 ## ---------------------------------- ##
14419 _ASBOX
14421 sed "s/^/$as_me: WARNING: /" >&2
14423 esac
14424 echo "$as_me:$LINENO: checking for $ac_header" >&5
14425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429 eval "$as_ac_Header=\$ac_header_preproc"
14431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14438 _ACEOF
14442 done
14444 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14445 # for now. If you change this, you also must update natFile.cc.
14447 for ac_header in dirent.h
14449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14451 echo "$as_me:$LINENO: checking for $ac_header" >&5
14452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14458 else
14459 # Is the header compilable?
14460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14462 cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h. */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 $ac_includes_default
14469 #include <$ac_header>
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>conftest.er1
14474 ac_status=$?
14475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag"
14481 || test ! -s conftest.err'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest.$ac_objext'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14493 ac_header_compiler=yes
14494 else
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14498 ac_header_compiler=no
14500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14502 echo "${ECHO_T}$ac_header_compiler" >&6
14504 # Is the header present?
14505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14507 cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h. */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14513 #include <$ac_header>
14514 _ACEOF
14515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } >/dev/null; then
14523 if test -s conftest.err; then
14524 ac_cpp_err=$ac_c_preproc_warn_flag
14525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14526 else
14527 ac_cpp_err=
14529 else
14530 ac_cpp_err=yes
14532 if test -z "$ac_cpp_err"; then
14533 ac_header_preproc=yes
14534 else
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 ac_header_preproc=no
14540 rm -f conftest.err conftest.$ac_ext
14541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14542 echo "${ECHO_T}$ac_header_preproc" >&6
14544 # So? What about this header?
14545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14546 yes:no: )
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14551 ac_header_preproc=yes
14553 no:yes:* )
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14567 cat <<\_ASBOX
14568 ## ---------------------------------- ##
14569 ## Report this to the libjava lists. ##
14570 ## ---------------------------------- ##
14571 _ASBOX
14573 sed "s/^/$as_me: WARNING: /" >&2
14575 esac
14576 echo "$as_me:$LINENO: checking for $ac_header" >&5
14577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 eval "$as_ac_Header=\$ac_header_preproc"
14583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14588 cat >>confdefs.h <<_ACEOF
14589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14590 _ACEOF
14594 done
14597 for ac_header in inttypes.h
14599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14601 echo "$as_me:$LINENO: checking for $ac_header" >&5
14602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14608 else
14609 # Is the header compilable?
14610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14612 cat >conftest.$ac_ext <<_ACEOF
14613 /* confdefs.h. */
14614 _ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 #include <$ac_header>
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623 (eval $ac_compile) 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag"
14631 || test ! -s conftest.err'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_header_compiler=yes
14644 else
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_header_compiler=no
14650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14652 echo "${ECHO_T}$ac_header_compiler" >&6
14654 # Is the header present?
14655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14657 cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h. */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 #include <$ac_header>
14664 _ACEOF
14665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } >/dev/null; then
14673 if test -s conftest.err; then
14674 ac_cpp_err=$ac_c_preproc_warn_flag
14675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14676 else
14677 ac_cpp_err=
14679 else
14680 ac_cpp_err=yes
14682 if test -z "$ac_cpp_err"; then
14683 ac_header_preproc=yes
14684 else
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ac_header_preproc=no
14690 rm -f conftest.err conftest.$ac_ext
14691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14692 echo "${ECHO_T}$ac_header_preproc" >&6
14694 # So? What about this header?
14695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14696 yes:no: )
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14701 ac_header_preproc=yes
14703 no:yes:* )
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14717 cat <<\_ASBOX
14718 ## ---------------------------------- ##
14719 ## Report this to the libjava lists. ##
14720 ## ---------------------------------- ##
14721 _ASBOX
14723 sed "s/^/$as_me: WARNING: /" >&2
14725 esac
14726 echo "$as_me:$LINENO: checking for $ac_header" >&5
14727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731 eval "$as_ac_Header=\$ac_header_preproc"
14733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14738 cat >>confdefs.h <<_ACEOF
14739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14740 _ACEOF
14743 cat >>confdefs.h <<\_ACEOF
14744 #define HAVE_INTTYPES_H 1
14745 _ACEOF
14748 cat >>confdefs.h <<\_ACEOF
14749 #define JV_HAVE_INTTYPES_H 1
14750 _ACEOF
14755 done
14757 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14758 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14759 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762 cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h. */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include <sys/types.h>
14769 #include <sys/wait.h>
14770 #ifndef WEXITSTATUS
14771 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14772 #endif
14773 #ifndef WIFEXITED
14774 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14775 #endif
14778 main ()
14780 int s;
14781 wait (&s);
14782 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14784 return 0;
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789 (eval $ac_compile) 2>conftest.er1
14790 ac_status=$?
14791 grep -v '^ *+' conftest.er1 >conftest.err
14792 rm -f conftest.er1
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } &&
14796 { ac_try='test -z "$ac_c_werror_flag"
14797 || test ! -s conftest.err'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; } &&
14803 { ac_try='test -s conftest.$ac_objext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_cv_header_sys_wait_h=yes
14810 else
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14814 ac_cv_header_sys_wait_h=no
14816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14818 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14819 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14820 if test $ac_cv_header_sys_wait_h = yes; then
14822 cat >>confdefs.h <<\_ACEOF
14823 #define HAVE_SYS_WAIT_H 1
14824 _ACEOF
14829 echo "$as_me:$LINENO: checking for ssize_t" >&5
14830 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14831 if test "${ac_cv_type_ssize_t+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h. */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 $ac_includes_default
14842 main ()
14844 if ((ssize_t *) 0)
14845 return 0;
14846 if (sizeof (ssize_t))
14847 return 0;
14849 return 0;
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 ac_cv_type_ssize_t=yes
14875 else
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 ac_cv_type_ssize_t=no
14881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14883 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14884 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14885 if test $ac_cv_type_ssize_t = yes; then
14887 else
14889 cat >>confdefs.h <<_ACEOF
14890 #define ssize_t int
14891 _ACEOF
14896 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14897 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <sys/types.h>
14905 #if STDC_HEADERS
14906 #include <stdlib.h>
14907 #include <stddef.h>
14908 #endif
14909 #if HAVE_NETINET_IN_H
14910 #include <netinet/in.h>
14911 #endif
14913 main ()
14915 in_addr_t foo;
14917 return 0;
14919 _ACEOF
14920 rm -f conftest.$ac_objext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14922 (eval $ac_compile) 2>conftest.er1
14923 ac_status=$?
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -z "$ac_c_werror_flag"
14930 || test ! -s conftest.err'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try='test -s conftest.$ac_objext'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14943 cat >>confdefs.h <<\_ACEOF
14944 #define HAVE_IN_ADDR_T 1
14945 _ACEOF
14947 echo "$as_me:$LINENO: result: yes" >&5
14948 echo "${ECHO_T}yes" >&6
14949 else
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14953 echo "$as_me:$LINENO: result: no" >&5
14954 echo "${ECHO_T}no" >&6
14956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14958 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14959 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h. */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <netinet/in.h>
14968 main ()
14970 struct ip_mreq mreq;
14972 return 0;
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_STRUCT_IP_MREQ 1
15000 _ACEOF
15002 echo "$as_me:$LINENO: result: yes" >&5
15003 echo "${ECHO_T}yes" >&6
15004 else
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6
15011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15013 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15014 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15015 cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h. */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15021 #include <netinet/in.h>
15023 main ()
15025 struct ipv6_mreq mreq6;
15027 return 0;
15029 _ACEOF
15030 rm -f conftest.$ac_objext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15032 (eval $ac_compile) 2>conftest.er1
15033 ac_status=$?
15034 grep -v '^ *+' conftest.er1 >conftest.err
15035 rm -f conftest.er1
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } &&
15039 { ac_try='test -z "$ac_c_werror_flag"
15040 || test ! -s conftest.err'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; } &&
15046 { ac_try='test -s conftest.$ac_objext'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15053 cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_STRUCT_IPV6_MREQ 1
15055 _ACEOF
15057 echo "$as_me:$LINENO: result: yes" >&5
15058 echo "${ECHO_T}yes" >&6
15059 else
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 echo "$as_me:$LINENO: result: no" >&5
15064 echo "${ECHO_T}no" >&6
15066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15068 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15069 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15070 cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h. */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <netinet/in.h>
15078 main ()
15080 struct sockaddr_in6 addr6;
15082 return 0;
15084 _ACEOF
15085 rm -f conftest.$ac_objext
15086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -z "$ac_c_werror_flag"
15095 || test ! -s conftest.err'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest.$ac_objext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15108 cat >>confdefs.h <<\_ACEOF
15109 #define HAVE_INET6 1
15110 _ACEOF
15112 echo "$as_me:$LINENO: result: yes" >&5
15113 echo "${ECHO_T}yes" >&6
15114 else
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 echo "$as_me:$LINENO: result: no" >&5
15119 echo "${ECHO_T}no" >&6
15121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15123 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15124 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h. */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131 #define _POSIX_PII_SOCKET
15132 #include <sys/types.h>
15133 #include <sys/socket.h>
15135 main ()
15137 socklen_t x = 5;
15139 return 0;
15141 _ACEOF
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15165 cat >>confdefs.h <<\_ACEOF
15166 #define HAVE_SOCKLEN_T 1
15167 _ACEOF
15169 echo "$as_me:$LINENO: result: yes" >&5
15170 echo "${ECHO_T}yes" >&6
15171 else
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 echo "$as_me:$LINENO: result: no" >&5
15176 echo "${ECHO_T}no" >&6
15178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15180 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15181 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h. */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188 #include <time.h>
15190 main ()
15192 struct tm tim; tim.tm_gmtoff = 0;
15194 return 0;
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15220 cat >>confdefs.h <<\_ACEOF
15221 #define STRUCT_TM_HAS_GMTOFF 1
15222 _ACEOF
15224 echo "$as_me:$LINENO: result: yes" >&5
15225 echo "${ECHO_T}yes" >&6
15226 else
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 echo "$as_me:$LINENO: result: no" >&5
15231 echo "${ECHO_T}no" >&6
15232 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15233 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15234 cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h. */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15240 #include <time.h>
15242 main ()
15244 void i(){long z2 = 2*timezone;}
15246 return 0;
15248 _ACEOF
15249 rm -f conftest.$ac_objext
15250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15251 (eval $ac_compile) 2>conftest.er1
15252 ac_status=$?
15253 grep -v '^ *+' conftest.er1 >conftest.err
15254 rm -f conftest.er1
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } &&
15258 { ac_try='test -z "$ac_c_werror_flag"
15259 || test ! -s conftest.err'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; } &&
15265 { ac_try='test -s conftest.$ac_objext'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15272 cat >>confdefs.h <<\_ACEOF
15273 #define HAVE_TIMEZONE 1
15274 _ACEOF
15276 echo "$as_me:$LINENO: result: yes" >&5
15277 echo "${ECHO_T}yes" >&6
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 echo "$as_me:$LINENO: result: no" >&5
15283 echo "${ECHO_T}no" >&6
15284 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15285 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 #include <time.h>
15294 main ()
15296 long z2 = _timezone;
15298 return 0;
15300 _ACEOF
15301 rm -f conftest.$ac_objext
15302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15303 (eval $ac_compile) 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -z "$ac_c_werror_flag"
15311 || test ! -s conftest.err'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; } &&
15317 { ac_try='test -s conftest.$ac_objext'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
15324 cat >>confdefs.h <<\_ACEOF
15325 #define HAVE_UNDERSCORE_TIMEZONE 1
15326 _ACEOF
15328 echo "$as_me:$LINENO: result: yes" >&5
15329 echo "${ECHO_T}yes" >&6
15330 else
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 echo "$as_me:$LINENO: result: no" >&5
15335 echo "${ECHO_T}no" >&6
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15343 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15344 # for constant arguments. Useless!
15345 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15346 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15347 if test "${ac_cv_working_alloca_h+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 else
15350 if test x$gcc_no_link = xyes; then
15351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15353 { (exit 1); exit 1; }; }
15355 cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h. */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 #include <alloca.h>
15363 main ()
15365 char *p = (char *) alloca (2 * sizeof (int));
15367 return 0;
15369 _ACEOF
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15372 (eval $ac_link) 2>conftest.er1
15373 ac_status=$?
15374 grep -v '^ *+' conftest.er1 >conftest.err
15375 rm -f conftest.er1
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -z "$ac_c_werror_flag"
15380 || test ! -s conftest.err'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest$ac_exeext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 ac_cv_working_alloca_h=yes
15393 else
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15397 ac_cv_working_alloca_h=no
15399 rm -f conftest.err conftest.$ac_objext \
15400 conftest$ac_exeext conftest.$ac_ext
15402 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15403 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15404 if test $ac_cv_working_alloca_h = yes; then
15406 cat >>confdefs.h <<\_ACEOF
15407 #define HAVE_ALLOCA_H 1
15408 _ACEOF
15412 echo "$as_me:$LINENO: checking for alloca" >&5
15413 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15414 if test "${ac_cv_func_alloca_works+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417 if test x$gcc_no_link = xyes; then
15418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15420 { (exit 1); exit 1; }; }
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h. */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 #ifdef __GNUC__
15429 # define alloca __builtin_alloca
15430 #else
15431 # ifdef _MSC_VER
15432 # include <malloc.h>
15433 # define alloca _alloca
15434 # else
15435 # if HAVE_ALLOCA_H
15436 # include <alloca.h>
15437 # else
15438 # ifdef _AIX
15439 #pragma alloca
15440 # else
15441 # ifndef alloca /* predefined by HP cc +Olibcalls */
15442 char *alloca ();
15443 # endif
15444 # endif
15445 # endif
15446 # endif
15447 #endif
15450 main ()
15452 char *p = (char *) alloca (1);
15454 return 0;
15456 _ACEOF
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15459 (eval $ac_link) 2>conftest.er1
15460 ac_status=$?
15461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try='test -z "$ac_c_werror_flag"
15467 || test ! -s conftest.err'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest$ac_exeext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 ac_cv_func_alloca_works=yes
15480 else
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 ac_cv_func_alloca_works=no
15486 rm -f conftest.err conftest.$ac_objext \
15487 conftest$ac_exeext conftest.$ac_ext
15489 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15490 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15492 if test $ac_cv_func_alloca_works = yes; then
15494 cat >>confdefs.h <<\_ACEOF
15495 #define HAVE_ALLOCA 1
15496 _ACEOF
15498 else
15499 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15500 # that cause trouble. Some versions do not even contain alloca or
15501 # contain a buggy version. If you still want to use their alloca,
15502 # use ar to extract alloca.o from them instead of compiling alloca.c.
15504 ALLOCA=alloca.$ac_objext
15506 cat >>confdefs.h <<\_ACEOF
15507 #define C_ALLOCA 1
15508 _ACEOF
15511 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15512 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15513 if test "${ac_cv_os_cray+set}" = set; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 else
15516 cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h. */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15522 #if defined(CRAY) && ! defined(CRAY2)
15523 webecray
15524 #else
15525 wenotbecray
15526 #endif
15528 _ACEOF
15529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15530 $EGREP "webecray" >/dev/null 2>&1; then
15531 ac_cv_os_cray=yes
15532 else
15533 ac_cv_os_cray=no
15535 rm -f conftest*
15538 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15539 echo "${ECHO_T}$ac_cv_os_cray" >&6
15540 if test $ac_cv_os_cray = yes; then
15541 for ac_func in _getb67 GETB67 getb67; do
15542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15543 echo "$as_me:$LINENO: checking for $ac_func" >&5
15544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15545 if eval "test \"\${$as_ac_var+set}\" = set"; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 else
15548 if test x$gcc_no_link = xyes; then
15549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15551 { (exit 1); exit 1; }; }
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15561 #define $ac_func innocuous_$ac_func
15563 /* System header to define __stub macros and hopefully few prototypes,
15564 which can conflict with char $ac_func (); below.
15565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15566 <limits.h> exists even on freestanding compilers. */
15568 #ifdef __STDC__
15569 # include <limits.h>
15570 #else
15571 # include <assert.h>
15572 #endif
15574 #undef $ac_func
15576 /* Override any gcc2 internal prototype to avoid an error. */
15577 #ifdef __cplusplus
15578 extern "C"
15580 #endif
15581 /* We use char because int might match the return type of a gcc2
15582 builtin and then its argument prototype would still apply. */
15583 char $ac_func ();
15584 /* The GNU C library defines this for functions which it implements
15585 to always fail with ENOSYS. Some functions are actually named
15586 something starting with __ and the normal name is an alias. */
15587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15588 choke me
15589 #else
15590 char (*f) () = $ac_func;
15591 #endif
15592 #ifdef __cplusplus
15594 #endif
15597 main ()
15599 return f != $ac_func;
15601 return 0;
15603 _ACEOF
15604 rm -f conftest.$ac_objext conftest$ac_exeext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15606 (eval $ac_link) 2>conftest.er1
15607 ac_status=$?
15608 grep -v '^ *+' conftest.er1 >conftest.err
15609 rm -f conftest.er1
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -z "$ac_c_werror_flag"
15614 || test ! -s conftest.err'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest$ac_exeext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15626 eval "$as_ac_var=yes"
15627 else
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 eval "$as_ac_var=no"
15633 rm -f conftest.err conftest.$ac_objext \
15634 conftest$ac_exeext conftest.$ac_ext
15636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15638 if test `eval echo '${'$as_ac_var'}'` = yes; then
15640 cat >>confdefs.h <<_ACEOF
15641 #define CRAY_STACKSEG_END $ac_func
15642 _ACEOF
15644 break
15647 done
15650 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15651 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15652 if test "${ac_cv_c_stack_direction+set}" = set; then
15653 echo $ECHO_N "(cached) $ECHO_C" >&6
15654 else
15655 if test "$cross_compiling" = yes; then
15656 ac_cv_c_stack_direction=0
15657 else
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15665 find_stack_direction ()
15667 static char *addr = 0;
15668 auto char dummy;
15669 if (addr == 0)
15671 addr = &dummy;
15672 return find_stack_direction ();
15674 else
15675 return (&dummy > addr) ? 1 : -1;
15679 main ()
15681 exit (find_stack_direction () < 0);
15683 _ACEOF
15684 rm -f conftest$ac_exeext
15685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15686 (eval $ac_link) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_cv_c_stack_direction=1
15696 else
15697 echo "$as_me: program exited with status $ac_status" >&5
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 ( exit $ac_status )
15702 ac_cv_c_stack_direction=-1
15704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15707 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15708 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15710 cat >>confdefs.h <<_ACEOF
15711 #define STACK_DIRECTION $ac_cv_c_stack_direction
15712 _ACEOF
15717 if test x$gcc_no_link = xyes; then
15718 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15719 ac_cv_func_mmap_fixed_mapped=no
15722 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15725 for ac_header in stdlib.h unistd.h
15727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15729 echo "$as_me:$LINENO: checking for $ac_header" >&5
15730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15736 else
15737 # Is the header compilable?
15738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15740 cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h. */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 $ac_includes_default
15747 #include <$ac_header>
15748 _ACEOF
15749 rm -f conftest.$ac_objext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15751 (eval $ac_compile) 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_header_compiler=yes
15772 else
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 ac_header_compiler=no
15778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15780 echo "${ECHO_T}$ac_header_compiler" >&6
15782 # Is the header present?
15783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15785 cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h. */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 #include <$ac_header>
15792 _ACEOF
15793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } >/dev/null; then
15801 if test -s conftest.err; then
15802 ac_cpp_err=$ac_c_preproc_warn_flag
15803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15804 else
15805 ac_cpp_err=
15807 else
15808 ac_cpp_err=yes
15810 if test -z "$ac_cpp_err"; then
15811 ac_header_preproc=yes
15812 else
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_header_preproc=no
15818 rm -f conftest.err conftest.$ac_ext
15819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15820 echo "${ECHO_T}$ac_header_preproc" >&6
15822 # So? What about this header?
15823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15824 yes:no: )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15829 ac_header_preproc=yes
15831 no:yes:* )
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15845 cat <<\_ASBOX
15846 ## ---------------------------------- ##
15847 ## Report this to the libjava lists. ##
15848 ## ---------------------------------- ##
15849 _ASBOX
15851 sed "s/^/$as_me: WARNING: /" >&2
15853 esac
15854 echo "$as_me:$LINENO: checking for $ac_header" >&5
15855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859 eval "$as_ac_Header=\$ac_header_preproc"
15861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15866 cat >>confdefs.h <<_ACEOF
15867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15868 _ACEOF
15872 done
15875 for ac_func in getpagesize
15877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15878 echo "$as_me:$LINENO: checking for $ac_func" >&5
15879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15880 if eval "test \"\${$as_ac_var+set}\" = set"; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883 if test x$gcc_no_link = xyes; then
15884 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15886 { (exit 1); exit 1; }; }
15888 cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h. */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15896 #define $ac_func innocuous_$ac_func
15898 /* System header to define __stub macros and hopefully few prototypes,
15899 which can conflict with char $ac_func (); below.
15900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15901 <limits.h> exists even on freestanding compilers. */
15903 #ifdef __STDC__
15904 # include <limits.h>
15905 #else
15906 # include <assert.h>
15907 #endif
15909 #undef $ac_func
15911 /* Override any gcc2 internal prototype to avoid an error. */
15912 #ifdef __cplusplus
15913 extern "C"
15915 #endif
15916 /* We use char because int might match the return type of a gcc2
15917 builtin and then its argument prototype would still apply. */
15918 char $ac_func ();
15919 /* The GNU C library defines this for functions which it implements
15920 to always fail with ENOSYS. Some functions are actually named
15921 something starting with __ and the normal name is an alias. */
15922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15923 choke me
15924 #else
15925 char (*f) () = $ac_func;
15926 #endif
15927 #ifdef __cplusplus
15929 #endif
15932 main ()
15934 return f != $ac_func;
15936 return 0;
15938 _ACEOF
15939 rm -f conftest.$ac_objext conftest$ac_exeext
15940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15941 (eval $ac_link) 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag"
15949 || test ! -s conftest.err'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; } &&
15955 { ac_try='test -s conftest$ac_exeext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 eval "$as_ac_var=yes"
15962 else
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 eval "$as_ac_var=no"
15968 rm -f conftest.err conftest.$ac_objext \
15969 conftest$ac_exeext conftest.$ac_ext
15971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15973 if test `eval echo '${'$as_ac_var'}'` = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15976 _ACEOF
15979 done
15981 echo "$as_me:$LINENO: checking for working mmap" >&5
15982 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15983 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986 if test "$cross_compiling" = yes; then
15987 ac_cv_func_mmap_fixed_mapped=no
15988 else
15989 cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h. */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 $ac_includes_default
15996 /* malloc might have been renamed as rpl_malloc. */
15997 #undef malloc
15999 /* Thanks to Mike Haertel and Jim Avera for this test.
16000 Here is a matrix of mmap possibilities:
16001 mmap private not fixed
16002 mmap private fixed at somewhere currently unmapped
16003 mmap private fixed at somewhere already mapped
16004 mmap shared not fixed
16005 mmap shared fixed at somewhere currently unmapped
16006 mmap shared fixed at somewhere already mapped
16007 For private mappings, we should verify that changes cannot be read()
16008 back from the file, nor mmap's back from the file at a different
16009 address. (There have been systems where private was not correctly
16010 implemented like the infamous i386 svr4.0, and systems where the
16011 VM page cache was not coherent with the file system buffer cache
16012 like early versions of FreeBSD and possibly contemporary NetBSD.)
16013 For shared mappings, we should conversely verify that changes get
16014 propagated back to all the places they're supposed to be.
16016 Grep wants private fixed already mapped.
16017 The main things grep needs to know about mmap are:
16018 * does it exist and is it safe to write into the mmap'd area
16019 * how to use it (BSD variants) */
16021 #include <fcntl.h>
16022 #include <sys/mman.h>
16024 #if !STDC_HEADERS && !HAVE_STDLIB_H
16025 char *malloc ();
16026 #endif
16028 /* This mess was copied from the GNU getpagesize.h. */
16029 #if !HAVE_GETPAGESIZE
16030 /* Assume that all systems that can run configure have sys/param.h. */
16031 # if !HAVE_SYS_PARAM_H
16032 # define HAVE_SYS_PARAM_H 1
16033 # endif
16035 # ifdef _SC_PAGESIZE
16036 # define getpagesize() sysconf(_SC_PAGESIZE)
16037 # else /* no _SC_PAGESIZE */
16038 # if HAVE_SYS_PARAM_H
16039 # include <sys/param.h>
16040 # ifdef EXEC_PAGESIZE
16041 # define getpagesize() EXEC_PAGESIZE
16042 # else /* no EXEC_PAGESIZE */
16043 # ifdef NBPG
16044 # define getpagesize() NBPG * CLSIZE
16045 # ifndef CLSIZE
16046 # define CLSIZE 1
16047 # endif /* no CLSIZE */
16048 # else /* no NBPG */
16049 # ifdef NBPC
16050 # define getpagesize() NBPC
16051 # else /* no NBPC */
16052 # ifdef PAGESIZE
16053 # define getpagesize() PAGESIZE
16054 # endif /* PAGESIZE */
16055 # endif /* no NBPC */
16056 # endif /* no NBPG */
16057 # endif /* no EXEC_PAGESIZE */
16058 # else /* no HAVE_SYS_PARAM_H */
16059 # define getpagesize() 8192 /* punt totally */
16060 # endif /* no HAVE_SYS_PARAM_H */
16061 # endif /* no _SC_PAGESIZE */
16063 #endif /* no HAVE_GETPAGESIZE */
16066 main ()
16068 char *data, *data2, *data3;
16069 int i, pagesize;
16070 int fd;
16072 pagesize = getpagesize ();
16074 /* First, make a file with some known garbage in it. */
16075 data = (char *) malloc (pagesize);
16076 if (!data)
16077 exit (1);
16078 for (i = 0; i < pagesize; ++i)
16079 *(data + i) = rand ();
16080 umask (0);
16081 fd = creat ("conftest.mmap", 0600);
16082 if (fd < 0)
16083 exit (1);
16084 if (write (fd, data, pagesize) != pagesize)
16085 exit (1);
16086 close (fd);
16088 /* Next, try to mmap the file at a fixed address which already has
16089 something else allocated at it. If we can, also make sure that
16090 we see the same garbage. */
16091 fd = open ("conftest.mmap", O_RDWR);
16092 if (fd < 0)
16093 exit (1);
16094 data2 = (char *) malloc (2 * pagesize);
16095 if (!data2)
16096 exit (1);
16097 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16098 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16099 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16100 exit (1);
16101 for (i = 0; i < pagesize; ++i)
16102 if (*(data + i) != *(data2 + i))
16103 exit (1);
16105 /* Finally, make sure that changes to the mapped area do not
16106 percolate back to the file as seen by read(). (This is a bug on
16107 some variants of i386 svr4.0.) */
16108 for (i = 0; i < pagesize; ++i)
16109 *(data2 + i) = *(data2 + i) + 1;
16110 data3 = (char *) malloc (pagesize);
16111 if (!data3)
16112 exit (1);
16113 if (read (fd, data3, pagesize) != pagesize)
16114 exit (1);
16115 for (i = 0; i < pagesize; ++i)
16116 if (*(data + i) != *(data3 + i))
16117 exit (1);
16118 close (fd);
16119 exit (0);
16121 _ACEOF
16122 rm -f conftest$ac_exeext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16124 (eval $ac_link) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129 (eval $ac_try) 2>&5
16130 ac_status=$?
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 ac_cv_func_mmap_fixed_mapped=yes
16134 else
16135 echo "$as_me: program exited with status $ac_status" >&5
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 ( exit $ac_status )
16140 ac_cv_func_mmap_fixed_mapped=no
16142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16145 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16146 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16147 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16149 cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_MMAP 1
16151 _ACEOF
16154 rm -f conftest.mmap
16158 for ac_prog in perl
16160 # Extract the first word of "$ac_prog", so it can be a program name with args.
16161 set dummy $ac_prog; ac_word=$2
16162 echo "$as_me:$LINENO: checking for $ac_word" >&5
16163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16164 if test "${ac_cv_prog_PERL+set}" = set; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167 if test -n "$PERL"; then
16168 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16169 else
16170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16171 for as_dir in $PATH
16173 IFS=$as_save_IFS
16174 test -z "$as_dir" && as_dir=.
16175 for ac_exec_ext in '' $ac_executable_extensions; do
16176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16177 ac_cv_prog_PERL="$ac_prog"
16178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16179 break 2
16181 done
16182 done
16186 PERL=$ac_cv_prog_PERL
16187 if test -n "$PERL"; then
16188 echo "$as_me:$LINENO: result: $PERL" >&5
16189 echo "${ECHO_T}$PERL" >&6
16190 else
16191 echo "$as_me:$LINENO: result: no" >&5
16192 echo "${ECHO_T}no" >&6
16195 test -n "$PERL" && break
16196 done
16197 test -n "$PERL" || PERL="false"
16200 SYSDEP_SOURCES=
16201 SIGNAL_HANDLER_AUX=
16203 case "${host}" in
16204 i?86-*-linux*)
16205 SIGNAL_HANDLER=include/i386-signal.h
16207 sparc*-sun-solaris*)
16208 SIGNAL_HANDLER=include/sparc-signal.h
16210 # ia64-*)
16211 # SYSDEP_SOURCES=sysdep/ia64.c
16212 # test -d sysdep || mkdir sysdep
16213 # ;;
16214 hppa*-*-linux*)
16215 SIGNAL_HANDLER=include/pa-signal.h
16217 ia64-*-linux*)
16218 SIGNAL_HANDLER=include/dwarf2-signal.h
16220 powerpc*-*-linux*)
16221 SIGNAL_HANDLER=include/powerpc-signal.h
16223 alpha*-*-linux*)
16224 SIGNAL_HANDLER=include/dwarf2-signal.h
16226 s390*-*-linux*)
16227 SIGNAL_HANDLER=include/s390-signal.h
16229 x86_64*-*-linux*)
16230 SIGNAL_HANDLER=include/x86_64-signal.h
16231 SIGNAL_HANDLER_AUX=include/i386-signal.h
16233 sparc*-*-linux*)
16234 SIGNAL_HANDLER=include/dwarf2-signal.h
16236 sh*-*-linux*)
16237 SIGNAL_HANDLER=include/sh-signal.h
16239 *mingw*)
16240 SIGNAL_HANDLER=include/win32-signal.h
16242 mips*-*-linux*)
16243 SIGNAL_HANDLER=include/mips-signal.h
16245 *-*-darwin*)
16246 SIGNAL_HANDLER=include/darwin-signal.h
16249 SIGNAL_HANDLER=include/default-signal.h
16251 esac
16253 # If we're using sjlj exceptions, forget what we just learned.
16254 if test "$enable_sjlj_exceptions" = yes; then
16255 SIGNAL_HANDLER=include/default-signal.h
16256 SIGNAL_HANDLER_AUX=
16259 # Define here any compiler flags that you need in order to make backtrace() work.
16260 BACKTRACESPEC=
16261 case "${host}" in
16262 x86_64*-*-linux*|i?86-*)
16263 BACKTRACESPEC=-fno-omit-frame-pointer
16265 esac
16270 if test -z "$SIGNAL_HANDLER_AUX"; then
16271 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16274 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16277 if test "${multilib}" = "yes"; then
16278 multilib_arg="--enable-multilib"
16279 else
16280 multilib_arg=
16285 here=`${PWDCMD-pwd}`
16288 # We get this from the environment.
16291 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
16294 ac_config_commands="$ac_config_commands default"
16297 cat >confcache <<\_ACEOF
16298 # This file is a shell script that caches the results of configure
16299 # tests run on this system so they can be shared between configure
16300 # scripts and configure runs, see configure's option --config-cache.
16301 # It is not useful on other systems. If it contains results you don't
16302 # want to keep, you may remove or edit it.
16304 # config.status only pays attention to the cache file if you give it
16305 # the --recheck option to rerun configure.
16307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16309 # following values.
16311 _ACEOF
16313 # The following way of writing the cache mishandles newlines in values,
16314 # but we know of no workaround that is simple, portable, and efficient.
16315 # So, don't put newlines in cache variables' values.
16316 # Ultrix sh set writes to stderr and can't be redirected directly,
16317 # and sets the high bit in the cache file unless we assign to the vars.
16319 (set) 2>&1 |
16320 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16321 *ac_space=\ *)
16322 # `set' does not quote correctly, so add quotes (double-quote
16323 # substitution turns \\\\ into \\, and sed turns \\ into \).
16324 sed -n \
16325 "s/'/'\\\\''/g;
16326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16329 # `set' quotes correctly as required by POSIX, so do not add quotes.
16330 sed -n \
16331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16333 esac;
16335 sed '
16336 t clear
16337 : clear
16338 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16339 t end
16340 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16341 : end' >>confcache
16342 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16343 if test -w $cache_file; then
16344 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16345 cat confcache >$cache_file
16346 else
16347 echo "not updating unwritable cache $cache_file"
16350 rm -f confcache
16352 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16353 # Let make expand exec_prefix.
16354 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16356 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16357 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16358 # trailing colons and then remove the whole line if VPATH becomes empty
16359 # (actually we leave an empty line to preserve line numbers).
16360 if test "x$srcdir" = x.; then
16361 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16362 s/:*\$(srcdir):*/:/;
16363 s/:*\${srcdir}:*/:/;
16364 s/:*@srcdir@:*/:/;
16365 s/^\([^=]*=[ ]*\):*/\1/;
16366 s/:*$//;
16367 s/^[^=]*=[ ]*$//;
16371 DEFS=-DHAVE_CONFIG_H
16373 ac_libobjs=
16374 ac_ltlibobjs=
16375 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16376 # 1. Remove the extension, and $U if already installed.
16377 ac_i=`echo "$ac_i" |
16378 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16379 # 2. Add them.
16380 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16381 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16382 done
16383 LIBOBJS=$ac_libobjs
16385 LTLIBOBJS=$ac_ltlibobjs
16388 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16389 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16390 Usually this means the macro was only invoked conditionally." >&5
16391 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16392 Usually this means the macro was only invoked conditionally." >&2;}
16393 { (exit 1); exit 1; }; }
16395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16396 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16397 Usually this means the macro was only invoked conditionally." >&5
16398 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16399 Usually this means the macro was only invoked conditionally." >&2;}
16400 { (exit 1); exit 1; }; }
16402 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16403 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16404 Usually this means the macro was only invoked conditionally." >&5
16405 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16406 Usually this means the macro was only invoked conditionally." >&2;}
16407 { (exit 1); exit 1; }; }
16409 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16410 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16411 Usually this means the macro was only invoked conditionally." >&5
16412 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16413 Usually this means the macro was only invoked conditionally." >&2;}
16414 { (exit 1); exit 1; }; }
16416 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16417 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16418 Usually this means the macro was only invoked conditionally." >&5
16419 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16420 Usually this means the macro was only invoked conditionally." >&2;}
16421 { (exit 1); exit 1; }; }
16423 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16424 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16425 Usually this means the macro was only invoked conditionally." >&5
16426 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16427 Usually this means the macro was only invoked conditionally." >&2;}
16428 { (exit 1); exit 1; }; }
16430 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
16431 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
16432 Usually this means the macro was only invoked conditionally." >&5
16433 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
16434 Usually this means the macro was only invoked conditionally." >&2;}
16435 { (exit 1); exit 1; }; }
16437 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16438 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16439 Usually this means the macro was only invoked conditionally." >&5
16440 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16441 Usually this means the macro was only invoked conditionally." >&2;}
16442 { (exit 1); exit 1; }; }
16444 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16445 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16446 Usually this means the macro was only invoked conditionally." >&5
16447 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16448 Usually this means the macro was only invoked conditionally." >&2;}
16449 { (exit 1); exit 1; }; }
16451 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16452 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16453 Usually this means the macro was only invoked conditionally." >&5
16454 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16455 Usually this means the macro was only invoked conditionally." >&2;}
16456 { (exit 1); exit 1; }; }
16458 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16459 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16460 Usually this means the macro was only invoked conditionally." >&5
16461 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16462 Usually this means the macro was only invoked conditionally." >&2;}
16463 { (exit 1); exit 1; }; }
16465 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16466 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16467 Usually this means the macro was only invoked conditionally." >&5
16468 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16469 Usually this means the macro was only invoked conditionally." >&2;}
16470 { (exit 1); exit 1; }; }
16472 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16473 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16474 Usually this means the macro was only invoked conditionally." >&5
16475 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16476 Usually this means the macro was only invoked conditionally." >&2;}
16477 { (exit 1); exit 1; }; }
16479 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16480 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16481 Usually this means the macro was only invoked conditionally." >&5
16482 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16483 Usually this means the macro was only invoked conditionally." >&2;}
16484 { (exit 1); exit 1; }; }
16486 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16487 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16488 Usually this means the macro was only invoked conditionally." >&5
16489 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16490 Usually this means the macro was only invoked conditionally." >&2;}
16491 { (exit 1); exit 1; }; }
16493 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16494 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16495 Usually this means the macro was only invoked conditionally." >&5
16496 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16497 Usually this means the macro was only invoked conditionally." >&2;}
16498 { (exit 1); exit 1; }; }
16500 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16501 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16502 Usually this means the macro was only invoked conditionally." >&5
16503 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16504 Usually this means the macro was only invoked conditionally." >&2;}
16505 { (exit 1); exit 1; }; }
16507 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16508 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16509 Usually this means the macro was only invoked conditionally." >&5
16510 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16511 Usually this means the macro was only invoked conditionally." >&2;}
16512 { (exit 1); exit 1; }; }
16514 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16515 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16516 Usually this means the macro was only invoked conditionally." >&5
16517 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16518 Usually this means the macro was only invoked conditionally." >&2;}
16519 { (exit 1); exit 1; }; }
16521 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16522 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16523 Usually this means the macro was only invoked conditionally." >&5
16524 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16525 Usually this means the macro was only invoked conditionally." >&2;}
16526 { (exit 1); exit 1; }; }
16528 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16529 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16530 Usually this means the macro was only invoked conditionally." >&5
16531 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16532 Usually this means the macro was only invoked conditionally." >&2;}
16533 { (exit 1); exit 1; }; }
16535 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16536 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16537 Usually this means the macro was only invoked conditionally." >&5
16538 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16539 Usually this means the macro was only invoked conditionally." >&2;}
16540 { (exit 1); exit 1; }; }
16542 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16543 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16544 Usually this means the macro was only invoked conditionally." >&5
16545 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16546 Usually this means the macro was only invoked conditionally." >&2;}
16547 { (exit 1); exit 1; }; }
16550 : ${CONFIG_STATUS=./config.status}
16551 ac_clean_files_save=$ac_clean_files
16552 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16553 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16554 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16555 cat >$CONFIG_STATUS <<_ACEOF
16556 #! $SHELL
16557 # Generated by $as_me.
16558 # Run this file to recreate the current configuration.
16559 # Compiler output produced by configure, useful for debugging
16560 # configure, is in config.log if it exists.
16562 debug=false
16563 ac_cs_recheck=false
16564 ac_cs_silent=false
16565 SHELL=\${CONFIG_SHELL-$SHELL}
16566 _ACEOF
16568 cat >>$CONFIG_STATUS <<\_ACEOF
16569 ## --------------------- ##
16570 ## M4sh Initialization. ##
16571 ## --------------------- ##
16573 # Be Bourne compatible
16574 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16575 emulate sh
16576 NULLCMD=:
16577 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16578 # is contrary to our usage. Disable this feature.
16579 alias -g '${1+"$@"}'='"$@"'
16580 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16581 set -o posix
16583 DUALCASE=1; export DUALCASE # for MKS sh
16585 # Support unset when possible.
16586 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16587 as_unset=unset
16588 else
16589 as_unset=false
16593 # Work around bugs in pre-3.0 UWIN ksh.
16594 $as_unset ENV MAIL MAILPATH
16595 PS1='$ '
16596 PS2='> '
16597 PS4='+ '
16599 # NLS nuisances.
16600 for as_var in \
16601 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16602 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16603 LC_TELEPHONE LC_TIME
16605 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16606 eval $as_var=C; export $as_var
16607 else
16608 $as_unset $as_var
16610 done
16612 # Required to use basename.
16613 if expr a : '\(a\)' >/dev/null 2>&1; then
16614 as_expr=expr
16615 else
16616 as_expr=false
16619 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16620 as_basename=basename
16621 else
16622 as_basename=false
16626 # Name of the executable.
16627 as_me=`$as_basename "$0" ||
16628 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16629 X"$0" : 'X\(//\)$' \| \
16630 X"$0" : 'X\(/\)$' \| \
16631 . : '\(.\)' 2>/dev/null ||
16632 echo X/"$0" |
16633 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16634 /^X\/\(\/\/\)$/{ s//\1/; q; }
16635 /^X\/\(\/\).*/{ s//\1/; q; }
16636 s/.*/./; q'`
16639 # PATH needs CR, and LINENO needs CR and PATH.
16640 # Avoid depending upon Character Ranges.
16641 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16642 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16643 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16644 as_cr_digits='0123456789'
16645 as_cr_alnum=$as_cr_Letters$as_cr_digits
16647 # The user is always right.
16648 if test "${PATH_SEPARATOR+set}" != set; then
16649 echo "#! /bin/sh" >conf$$.sh
16650 echo "exit 0" >>conf$$.sh
16651 chmod +x conf$$.sh
16652 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16653 PATH_SEPARATOR=';'
16654 else
16655 PATH_SEPARATOR=:
16657 rm -f conf$$.sh
16661 as_lineno_1=$LINENO
16662 as_lineno_2=$LINENO
16663 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16664 test "x$as_lineno_1" != "x$as_lineno_2" &&
16665 test "x$as_lineno_3" = "x$as_lineno_2" || {
16666 # Find who we are. Look in the path if we contain no path at all
16667 # relative or not.
16668 case $0 in
16669 *[\\/]* ) as_myself=$0 ;;
16670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16671 for as_dir in $PATH
16673 IFS=$as_save_IFS
16674 test -z "$as_dir" && as_dir=.
16675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16676 done
16679 esac
16680 # We did not find ourselves, most probably we were run as `sh COMMAND'
16681 # in which case we are not to be found in the path.
16682 if test "x$as_myself" = x; then
16683 as_myself=$0
16685 if test ! -f "$as_myself"; then
16686 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16687 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16688 { (exit 1); exit 1; }; }
16690 case $CONFIG_SHELL in
16692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16695 IFS=$as_save_IFS
16696 test -z "$as_dir" && as_dir=.
16697 for as_base in sh bash ksh sh5; do
16698 case $as_dir in
16700 if ("$as_dir/$as_base" -c '
16701 as_lineno_1=$LINENO
16702 as_lineno_2=$LINENO
16703 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16704 test "x$as_lineno_1" != "x$as_lineno_2" &&
16705 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16706 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16707 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16708 CONFIG_SHELL=$as_dir/$as_base
16709 export CONFIG_SHELL
16710 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16711 fi;;
16712 esac
16713 done
16714 done
16716 esac
16718 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16719 # uniformly replaced by the line number. The first 'sed' inserts a
16720 # line-number line before each line; the second 'sed' does the real
16721 # work. The second script uses 'N' to pair each line-number line
16722 # with the numbered line, and appends trailing '-' during
16723 # substitution so that $LINENO is not a special case at line end.
16724 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16725 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16726 sed '=' <$as_myself |
16727 sed '
16729 s,$,-,
16730 : loop
16731 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16732 t loop
16733 s,-$,,
16734 s,^['$as_cr_digits']*\n,,
16735 ' >$as_me.lineno &&
16736 chmod +x $as_me.lineno ||
16737 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16738 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16739 { (exit 1); exit 1; }; }
16741 # Don't try to exec as it changes $[0], causing all sort of problems
16742 # (the dirname of $[0] is not the place where we might find the
16743 # original and so on. Autoconf is especially sensible to this).
16744 . ./$as_me.lineno
16745 # Exit status is that of the last command.
16746 exit
16750 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16751 *c*,-n*) ECHO_N= ECHO_C='
16752 ' ECHO_T=' ' ;;
16753 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16754 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16755 esac
16757 if expr a : '\(a\)' >/dev/null 2>&1; then
16758 as_expr=expr
16759 else
16760 as_expr=false
16763 rm -f conf$$ conf$$.exe conf$$.file
16764 echo >conf$$.file
16765 if ln -s conf$$.file conf$$ 2>/dev/null; then
16766 # We could just check for DJGPP; but this test a) works b) is more generic
16767 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16768 if test -f conf$$.exe; then
16769 # Don't use ln at all; we don't have any links
16770 as_ln_s='cp -p'
16771 else
16772 as_ln_s='ln -s'
16774 elif ln conf$$.file conf$$ 2>/dev/null; then
16775 as_ln_s=ln
16776 else
16777 as_ln_s='cp -p'
16779 rm -f conf$$ conf$$.exe conf$$.file
16781 if mkdir -p . 2>/dev/null; then
16782 as_mkdir_p=:
16783 else
16784 test -d ./-p && rmdir ./-p
16785 as_mkdir_p=false
16788 as_executable_p="test -f"
16790 # Sed expression to map a string onto a valid CPP name.
16791 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16793 # Sed expression to map a string onto a valid variable name.
16794 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16797 # IFS
16798 # We need space, tab and new line, in precisely that order.
16799 as_nl='
16801 IFS=" $as_nl"
16803 # CDPATH.
16804 $as_unset CDPATH
16806 exec 6>&1
16808 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16809 # report actual input values of CONFIG_FILES etc. instead of their
16810 # values after options handling. Logging --version etc. is OK.
16811 exec 5>>config.log
16813 echo
16814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16815 ## Running $as_me. ##
16816 _ASBOX
16817 } >&5
16818 cat >&5 <<_CSEOF
16820 This file was extended by libjava $as_me version-unused, which was
16821 generated by GNU Autoconf 2.59. Invocation command line was
16823 CONFIG_FILES = $CONFIG_FILES
16824 CONFIG_HEADERS = $CONFIG_HEADERS
16825 CONFIG_LINKS = $CONFIG_LINKS
16826 CONFIG_COMMANDS = $CONFIG_COMMANDS
16827 $ $0 $@
16829 _CSEOF
16830 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16831 echo >&5
16832 _ACEOF
16834 # Files that config.status was made for.
16835 if test -n "$ac_config_files"; then
16836 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16839 if test -n "$ac_config_headers"; then
16840 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16843 if test -n "$ac_config_links"; then
16844 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16847 if test -n "$ac_config_commands"; then
16848 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16851 cat >>$CONFIG_STATUS <<\_ACEOF
16853 ac_cs_usage="\
16854 \`$as_me' instantiates files from templates according to the
16855 current configuration.
16857 Usage: $0 [OPTIONS] [FILE]...
16859 -h, --help print this help, then exit
16860 -V, --version print version number, then exit
16861 -q, --quiet do not print progress messages
16862 -d, --debug don't remove temporary files
16863 --recheck update $as_me by reconfiguring in the same conditions
16864 --file=FILE[:TEMPLATE]
16865 instantiate the configuration file FILE
16866 --header=FILE[:TEMPLATE]
16867 instantiate the configuration header FILE
16869 Configuration files:
16870 $config_files
16872 Configuration headers:
16873 $config_headers
16875 Configuration links:
16876 $config_links
16878 Configuration commands:
16879 $config_commands
16881 Report bugs to <bug-autoconf@gnu.org>."
16882 _ACEOF
16884 cat >>$CONFIG_STATUS <<_ACEOF
16885 ac_cs_version="\\
16886 libjava config.status version-unused
16887 configured by $0, generated by GNU Autoconf 2.59,
16888 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16890 Copyright (C) 2003 Free Software Foundation, Inc.
16891 This config.status script is free software; the Free Software Foundation
16892 gives unlimited permission to copy, distribute and modify it."
16893 srcdir=$srcdir
16894 INSTALL="$INSTALL"
16895 _ACEOF
16897 cat >>$CONFIG_STATUS <<\_ACEOF
16898 # If no file are specified by the user, then we need to provide default
16899 # value. By we need to know if files were specified by the user.
16900 ac_need_defaults=:
16901 while test $# != 0
16903 case $1 in
16904 --*=*)
16905 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16906 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16907 ac_shift=:
16910 ac_option=$1
16911 ac_optarg=$2
16912 ac_shift=shift
16914 *) # This is not an option, so the user has probably given explicit
16915 # arguments.
16916 ac_option=$1
16917 ac_need_defaults=false;;
16918 esac
16920 case $ac_option in
16921 # Handling of the options.
16922 _ACEOF
16923 cat >>$CONFIG_STATUS <<\_ACEOF
16924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16925 ac_cs_recheck=: ;;
16926 --version | --vers* | -V )
16927 echo "$ac_cs_version"; exit 0 ;;
16928 --he | --h)
16929 # Conflict between --help and --header
16930 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16931 Try \`$0 --help' for more information." >&5
16932 echo "$as_me: error: ambiguous option: $1
16933 Try \`$0 --help' for more information." >&2;}
16934 { (exit 1); exit 1; }; };;
16935 --help | --hel | -h )
16936 echo "$ac_cs_usage"; exit 0 ;;
16937 --debug | --d* | -d )
16938 debug=: ;;
16939 --file | --fil | --fi | --f )
16940 $ac_shift
16941 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16942 ac_need_defaults=false;;
16943 --header | --heade | --head | --hea )
16944 $ac_shift
16945 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16946 ac_need_defaults=false;;
16947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16948 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16949 ac_cs_silent=: ;;
16951 # This is an error.
16952 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16953 Try \`$0 --help' for more information." >&5
16954 echo "$as_me: error: unrecognized option: $1
16955 Try \`$0 --help' for more information." >&2;}
16956 { (exit 1); exit 1; }; } ;;
16958 *) ac_config_targets="$ac_config_targets $1" ;;
16960 esac
16961 shift
16962 done
16964 ac_configure_extra_args=
16966 if $ac_cs_silent; then
16967 exec 6>/dev/null
16968 ac_configure_extra_args="$ac_configure_extra_args --silent"
16971 _ACEOF
16972 cat >>$CONFIG_STATUS <<_ACEOF
16973 if \$ac_cs_recheck; then
16974 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16975 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16978 _ACEOF
16980 cat >>$CONFIG_STATUS <<_ACEOF
16982 # INIT-COMMANDS section.
16985 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16986 srcdir=${srcdir}
16987 host=${host}
16988 target=${target}
16989 with_multisubdir=${with_multisubdir}
16990 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16991 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16992 libgcj_basedir=${libgcj_basedir}
16993 CC="${CC}"
16994 CXX="${CXX}"
16995 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16998 _ACEOF
17002 cat >>$CONFIG_STATUS <<\_ACEOF
17003 for ac_config_target in $ac_config_targets
17005 case "$ac_config_target" in
17006 # Handling of arguments.
17007 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17008 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17009 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17010 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17011 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
17012 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17013 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17014 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17015 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17016 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17017 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17018 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17019 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17020 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
17021 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17022 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17023 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17024 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17025 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17026 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17027 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17028 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17029 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17030 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17031 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17032 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17033 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17034 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17037 { (exit 1); exit 1; }; };;
17038 esac
17039 done
17041 # If the user did not use the arguments to specify the items to instantiate,
17042 # then the envvar interface is used. Set only those that are not.
17043 # We use the long form for the default assignment because of an extremely
17044 # bizarre bug on SunOS 4.1.3.
17045 if $ac_need_defaults; then
17046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17048 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17052 # Have a temporary directory for convenience. Make it in the build tree
17053 # simply because there is no reason to put it here, and in addition,
17054 # creating and moving files from /tmp can sometimes cause problems.
17055 # Create a temporary directory, and hook for its removal unless debugging.
17056 $debug ||
17058 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17059 trap '{ (exit 1); exit 1; }' 1 2 13 15
17062 # Create a (secure) tmp directory for tmp files.
17065 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17066 test -n "$tmp" && test -d "$tmp"
17067 } ||
17069 tmp=./confstat$$-$RANDOM
17070 (umask 077 && mkdir $tmp)
17071 } ||
17073 echo "$me: cannot create a temporary directory in ." >&2
17074 { (exit 1); exit 1; }
17077 _ACEOF
17079 cat >>$CONFIG_STATUS <<_ACEOF
17082 # CONFIG_FILES section.
17085 # No need to generate the scripts if there are no CONFIG_FILES.
17086 # This happens for instance when ./config.status config.h
17087 if test -n "\$CONFIG_FILES"; then
17088 # Protect against being on the right side of a sed subst in config.status.
17089 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17090 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17091 s,@SHELL@,$SHELL,;t t
17092 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17093 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17094 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17095 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17096 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17097 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17098 s,@exec_prefix@,$exec_prefix,;t t
17099 s,@prefix@,$prefix,;t t
17100 s,@program_transform_name@,$program_transform_name,;t t
17101 s,@bindir@,$bindir,;t t
17102 s,@sbindir@,$sbindir,;t t
17103 s,@libexecdir@,$libexecdir,;t t
17104 s,@datadir@,$datadir,;t t
17105 s,@sysconfdir@,$sysconfdir,;t t
17106 s,@sharedstatedir@,$sharedstatedir,;t t
17107 s,@localstatedir@,$localstatedir,;t t
17108 s,@libdir@,$libdir,;t t
17109 s,@includedir@,$includedir,;t t
17110 s,@oldincludedir@,$oldincludedir,;t t
17111 s,@infodir@,$infodir,;t t
17112 s,@mandir@,$mandir,;t t
17113 s,@build_alias@,$build_alias,;t t
17114 s,@host_alias@,$host_alias,;t t
17115 s,@target_alias@,$target_alias,;t t
17116 s,@DEFS@,$DEFS,;t t
17117 s,@ECHO_C@,$ECHO_C,;t t
17118 s,@ECHO_N@,$ECHO_N,;t t
17119 s,@ECHO_T@,$ECHO_T,;t t
17120 s,@LIBS@,$LIBS,;t t
17121 s,@libgcj_basedir@,$libgcj_basedir,;t t
17122 s,@build@,$build,;t t
17123 s,@build_cpu@,$build_cpu,;t t
17124 s,@build_vendor@,$build_vendor,;t t
17125 s,@build_os@,$build_os,;t t
17126 s,@host@,$host,;t t
17127 s,@host_cpu@,$host_cpu,;t t
17128 s,@host_vendor@,$host_vendor,;t t
17129 s,@host_os@,$host_os,;t t
17130 s,@target@,$target,;t t
17131 s,@target_cpu@,$target_cpu,;t t
17132 s,@target_vendor@,$target_vendor,;t t
17133 s,@target_os@,$target_os,;t t
17134 s,@target_noncanonical@,$target_noncanonical,;t t
17135 s,@LN_S@,$LN_S,;t t
17136 s,@mkinstalldirs@,$mkinstalldirs,;t t
17137 s,@CC@,$CC,;t t
17138 s,@ac_ct_CC@,$ac_ct_CC,;t t
17139 s,@EXEEXT@,$EXEEXT,;t t
17140 s,@OBJEXT@,$OBJEXT,;t t
17141 s,@CXX@,$CXX,;t t
17142 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17143 s,@CFLAGS@,$CFLAGS,;t t
17144 s,@CXXFLAGS@,$CXXFLAGS,;t t
17145 s,@LDFLAGS@,$LDFLAGS,;t t
17146 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17147 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17148 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17149 s,@CYGPATH_W@,$CYGPATH_W,;t t
17150 s,@PACKAGE@,$PACKAGE,;t t
17151 s,@VERSION@,$VERSION,;t t
17152 s,@ACLOCAL@,$ACLOCAL,;t t
17153 s,@AUTOCONF@,$AUTOCONF,;t t
17154 s,@AUTOMAKE@,$AUTOMAKE,;t t
17155 s,@AUTOHEADER@,$AUTOHEADER,;t t
17156 s,@MAKEINFO@,$MAKEINFO,;t t
17157 s,@install_sh@,$install_sh,;t t
17158 s,@STRIP@,$STRIP,;t t
17159 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17160 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17161 s,@mkdir_p@,$mkdir_p,;t t
17162 s,@AWK@,$AWK,;t t
17163 s,@SET_MAKE@,$SET_MAKE,;t t
17164 s,@am__leading_dot@,$am__leading_dot,;t t
17165 s,@AMTAR@,$AMTAR,;t t
17166 s,@am__tar@,$am__tar,;t t
17167 s,@am__untar@,$am__untar,;t t
17168 s,@DEPDIR@,$DEPDIR,;t t
17169 s,@am__include@,$am__include,;t t
17170 s,@am__quote@,$am__quote,;t t
17171 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17172 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17173 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17174 s,@CCDEPMODE@,$CCDEPMODE,;t t
17175 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17176 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17177 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17178 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17179 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17180 s,@AS@,$AS,;t t
17181 s,@ac_ct_AS@,$ac_ct_AS,;t t
17182 s,@AR@,$AR,;t t
17183 s,@ac_ct_AR@,$ac_ct_AR,;t t
17184 s,@RANLIB@,$RANLIB,;t t
17185 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17186 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17187 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17188 s,@MAINT@,$MAINT,;t t
17189 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17190 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17191 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17192 s,@INCLTDL@,$INCLTDL,;t t
17193 s,@LIBLTDL@,$LIBLTDL,;t t
17194 s,@DIRLTDL@,$DIRLTDL,;t t
17195 s,@LIBTOOL@,$LIBTOOL,;t t
17196 s,@CXXCPP@,$CXXCPP,;t t
17197 s,@CPPFLAGS@,$CPPFLAGS,;t t
17198 s,@GCJ@,$GCJ,;t t
17199 s,@GCJFLAGS@,$GCJFLAGS,;t t
17200 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17201 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17202 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17203 s,@subdirs@,$subdirs,;t t
17204 s,@COMPPATH@,$COMPPATH,;t t
17205 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17206 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17207 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
17208 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
17209 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17210 s,@INTERPRETER@,$INTERPRETER,;t t
17211 s,@LIBFFI@,$LIBFFI,;t t
17212 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17213 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17214 s,@CPP@,$CPP,;t t
17215 s,@EGREP@,$EGREP,;t t
17216 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17217 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17218 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17219 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17220 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
17221 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
17222 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17223 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17224 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17225 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17226 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17227 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17228 s,@X_CFLAGS@,$X_CFLAGS,;t t
17229 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17230 s,@X_LIBS@,$X_LIBS,;t t
17231 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17232 s,@TOOLKIT@,$TOOLKIT,;t t
17233 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17234 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17235 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17236 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17237 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17238 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17239 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17240 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17241 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17242 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17243 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17244 s,@GCLIBS@,$GCLIBS,;t t
17245 s,@GCINCS@,$GCINCS,;t t
17246 s,@GCDEPS@,$GCDEPS,;t t
17247 s,@GCSPEC@,$GCSPEC,;t t
17248 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17249 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17250 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17251 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17252 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17253 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17254 s,@THREADLIBS@,$THREADLIBS,;t t
17255 s,@THREADINCS@,$THREADINCS,;t t
17256 s,@THREADDEPS@,$THREADDEPS,;t t
17257 s,@THREADSPEC@,$THREADSPEC,;t t
17258 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17259 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17260 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17261 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17262 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17263 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17264 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17265 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17266 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17267 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17268 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17269 s,@tool_include_dir@,$tool_include_dir,;t t
17270 s,@gcc_version@,$gcc_version,;t t
17271 s,@LIBICONV@,$LIBICONV,;t t
17272 s,@LTLIBICONV@,$LTLIBICONV,;t t
17273 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17274 s,@GTK_LIBS@,$GTK_LIBS,;t t
17275 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17276 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17277 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17278 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17279 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17280 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17281 s,@GCJH@,$GCJH,;t t
17282 s,@ZIP@,$ZIP,;t t
17283 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17284 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17285 s,@ZLIBS@,$ZLIBS,;t t
17286 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17287 s,@ZINCS@,$ZINCS,;t t
17288 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17289 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17290 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17291 s,@IEEESPEC@,$IEEESPEC,;t t
17292 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17293 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17294 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17295 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17296 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17297 s,@toolexecdir@,$toolexecdir,;t t
17298 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17299 s,@toolexeclibdir@,$toolexeclibdir,;t t
17300 s,@GCJVERSION@,$GCJVERSION,;t t
17301 s,@ALLOCA@,$ALLOCA,;t t
17302 s,@PERL@,$PERL,;t t
17303 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17304 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17305 s,@here@,$here,;t t
17306 s,@LIBOBJS@,$LIBOBJS,;t t
17307 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17308 CEOF
17310 _ACEOF
17312 cat >>$CONFIG_STATUS <<\_ACEOF
17313 # Split the substitutions into bite-sized pieces for seds with
17314 # small command number limits, like on Digital OSF/1 and HP-UX.
17315 ac_max_sed_lines=48
17316 ac_sed_frag=1 # Number of current file.
17317 ac_beg=1 # First line for current file.
17318 ac_end=$ac_max_sed_lines # Line after last line for current file.
17319 ac_more_lines=:
17320 ac_sed_cmds=
17321 while $ac_more_lines; do
17322 if test $ac_beg -gt 1; then
17323 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17324 else
17325 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17327 if test ! -s $tmp/subs.frag; then
17328 ac_more_lines=false
17329 else
17330 # The purpose of the label and of the branching condition is to
17331 # speed up the sed processing (if there are no `@' at all, there
17332 # is no need to browse any of the substitutions).
17333 # These are the two extra sed commands mentioned above.
17334 (echo ':t
17335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17336 if test -z "$ac_sed_cmds"; then
17337 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17338 else
17339 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17341 ac_sed_frag=`expr $ac_sed_frag + 1`
17342 ac_beg=$ac_end
17343 ac_end=`expr $ac_end + $ac_max_sed_lines`
17345 done
17346 if test -z "$ac_sed_cmds"; then
17347 ac_sed_cmds=cat
17349 fi # test -n "$CONFIG_FILES"
17351 _ACEOF
17352 cat >>$CONFIG_STATUS <<\_ACEOF
17353 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17355 case $ac_file in
17356 - | *:- | *:-:* ) # input from stdin
17357 cat >$tmp/stdin
17358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17362 * ) ac_file_in=$ac_file.in ;;
17363 esac
17365 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17366 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17367 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17368 X"$ac_file" : 'X\(//\)[^/]' \| \
17369 X"$ac_file" : 'X\(//\)$' \| \
17370 X"$ac_file" : 'X\(/\)' \| \
17371 . : '\(.\)' 2>/dev/null ||
17372 echo X"$ac_file" |
17373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17375 /^X\(\/\/\)$/{ s//\1/; q; }
17376 /^X\(\/\).*/{ s//\1/; q; }
17377 s/.*/./; q'`
17378 { if $as_mkdir_p; then
17379 mkdir -p "$ac_dir"
17380 else
17381 as_dir="$ac_dir"
17382 as_dirs=
17383 while test ! -d "$as_dir"; do
17384 as_dirs="$as_dir $as_dirs"
17385 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17387 X"$as_dir" : 'X\(//\)[^/]' \| \
17388 X"$as_dir" : 'X\(//\)$' \| \
17389 X"$as_dir" : 'X\(/\)' \| \
17390 . : '\(.\)' 2>/dev/null ||
17391 echo X"$as_dir" |
17392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17394 /^X\(\/\/\)$/{ s//\1/; q; }
17395 /^X\(\/\).*/{ s//\1/; q; }
17396 s/.*/./; q'`
17397 done
17398 test ! -n "$as_dirs" || mkdir $as_dirs
17399 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17400 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17401 { (exit 1); exit 1; }; }; }
17403 ac_builddir=.
17405 if test "$ac_dir" != .; then
17406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17407 # A "../" for each directory in $ac_dir_suffix.
17408 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17409 else
17410 ac_dir_suffix= ac_top_builddir=
17413 case $srcdir in
17414 .) # No --srcdir option. We are building in place.
17415 ac_srcdir=.
17416 if test -z "$ac_top_builddir"; then
17417 ac_top_srcdir=.
17418 else
17419 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17420 fi ;;
17421 [\\/]* | ?:[\\/]* ) # Absolute path.
17422 ac_srcdir=$srcdir$ac_dir_suffix;
17423 ac_top_srcdir=$srcdir ;;
17424 *) # Relative path.
17425 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17426 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17427 esac
17429 # Do not use `cd foo && pwd` to compute absolute paths, because
17430 # the directories may not exist.
17431 case `pwd` in
17432 .) ac_abs_builddir="$ac_dir";;
17434 case "$ac_dir" in
17435 .) ac_abs_builddir=`pwd`;;
17436 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17437 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17438 esac;;
17439 esac
17440 case $ac_abs_builddir in
17441 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17443 case ${ac_top_builddir}. in
17444 .) ac_abs_top_builddir=$ac_abs_builddir;;
17445 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17446 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17447 esac;;
17448 esac
17449 case $ac_abs_builddir in
17450 .) ac_abs_srcdir=$ac_srcdir;;
17452 case $ac_srcdir in
17453 .) ac_abs_srcdir=$ac_abs_builddir;;
17454 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17455 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17456 esac;;
17457 esac
17458 case $ac_abs_builddir in
17459 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17461 case $ac_top_srcdir in
17462 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17463 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17464 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17465 esac;;
17466 esac
17469 case $INSTALL in
17470 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17471 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17472 esac
17474 if test x"$ac_file" != x-; then
17475 { echo "$as_me:$LINENO: creating $ac_file" >&5
17476 echo "$as_me: creating $ac_file" >&6;}
17477 rm -f "$ac_file"
17479 # Let's still pretend it is `configure' which instantiates (i.e., don't
17480 # use $as_me), people would be surprised to read:
17481 # /* config.h. Generated by config.status. */
17482 if test x"$ac_file" = x-; then
17483 configure_input=
17484 else
17485 configure_input="$ac_file. "
17487 configure_input=$configure_input"Generated from `echo $ac_file_in |
17488 sed 's,.*/,,'` by configure."
17490 # First look for the input files in the build tree, otherwise in the
17491 # src tree.
17492 ac_file_inputs=`IFS=:
17493 for f in $ac_file_in; do
17494 case $f in
17495 -) echo $tmp/stdin ;;
17496 [\\/$]*)
17497 # Absolute (can't be DOS-style, as IFS=:)
17498 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17499 echo "$as_me: error: cannot find input file: $f" >&2;}
17500 { (exit 1); exit 1; }; }
17501 echo "$f";;
17502 *) # Relative
17503 if test -f "$f"; then
17504 # Build tree
17505 echo "$f"
17506 elif test -f "$srcdir/$f"; then
17507 # Source tree
17508 echo "$srcdir/$f"
17509 else
17510 # /dev/null tree
17511 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17512 echo "$as_me: error: cannot find input file: $f" >&2;}
17513 { (exit 1); exit 1; }; }
17514 fi;;
17515 esac
17516 done` || { (exit 1); exit 1; }
17517 _ACEOF
17518 cat >>$CONFIG_STATUS <<_ACEOF
17519 sed "$ac_vpsub
17520 $extrasub
17521 _ACEOF
17522 cat >>$CONFIG_STATUS <<\_ACEOF
17524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17525 s,@configure_input@,$configure_input,;t t
17526 s,@srcdir@,$ac_srcdir,;t t
17527 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17528 s,@top_srcdir@,$ac_top_srcdir,;t t
17529 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17530 s,@builddir@,$ac_builddir,;t t
17531 s,@abs_builddir@,$ac_abs_builddir,;t t
17532 s,@top_builddir@,$ac_top_builddir,;t t
17533 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17534 s,@INSTALL@,$ac_INSTALL,;t t
17535 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17536 rm -f $tmp/stdin
17537 if test x"$ac_file" != x-; then
17538 mv $tmp/out $ac_file
17539 else
17540 cat $tmp/out
17541 rm -f $tmp/out
17544 done
17545 _ACEOF
17546 cat >>$CONFIG_STATUS <<\_ACEOF
17549 # CONFIG_HEADER section.
17552 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17553 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17555 # ac_d sets the value in "#define NAME VALUE" lines.
17556 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17557 ac_dB='[ ].*$,\1#\2'
17558 ac_dC=' '
17559 ac_dD=',;t'
17560 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17561 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17562 ac_uB='$,\1#\2define\3'
17563 ac_uC=' '
17564 ac_uD=',;t'
17566 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17567 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17568 case $ac_file in
17569 - | *:- | *:-:* ) # input from stdin
17570 cat >$tmp/stdin
17571 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17572 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17573 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17574 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17575 * ) ac_file_in=$ac_file.in ;;
17576 esac
17578 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17579 echo "$as_me: creating $ac_file" >&6;}
17581 # First look for the input files in the build tree, otherwise in the
17582 # src tree.
17583 ac_file_inputs=`IFS=:
17584 for f in $ac_file_in; do
17585 case $f in
17586 -) echo $tmp/stdin ;;
17587 [\\/$]*)
17588 # Absolute (can't be DOS-style, as IFS=:)
17589 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17590 echo "$as_me: error: cannot find input file: $f" >&2;}
17591 { (exit 1); exit 1; }; }
17592 # Do quote $f, to prevent DOS paths from being IFS'd.
17593 echo "$f";;
17594 *) # Relative
17595 if test -f "$f"; then
17596 # Build tree
17597 echo "$f"
17598 elif test -f "$srcdir/$f"; then
17599 # Source tree
17600 echo "$srcdir/$f"
17601 else
17602 # /dev/null tree
17603 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17604 echo "$as_me: error: cannot find input file: $f" >&2;}
17605 { (exit 1); exit 1; }; }
17606 fi;;
17607 esac
17608 done` || { (exit 1); exit 1; }
17609 # Remove the trailing spaces.
17610 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17612 _ACEOF
17614 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17615 # `conftest.undefs', that substitutes the proper values into
17616 # config.h.in to produce config.h. The first handles `#define'
17617 # templates, and the second `#undef' templates.
17618 # And first: Protect against being on the right side of a sed subst in
17619 # config.status. Protect against being in an unquoted here document
17620 # in config.status.
17621 rm -f conftest.defines conftest.undefs
17622 # Using a here document instead of a string reduces the quoting nightmare.
17623 # Putting comments in sed scripts is not portable.
17625 # `end' is used to avoid that the second main sed command (meant for
17626 # 0-ary CPP macros) applies to n-ary macro definitions.
17627 # See the Autoconf documentation for `clear'.
17628 cat >confdef2sed.sed <<\_ACEOF
17629 s/[\\&,]/\\&/g
17630 s,[\\$`],\\&,g
17631 t clear
17632 : clear
17633 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17634 t end
17635 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17636 : end
17637 _ACEOF
17638 # If some macros were called several times there might be several times
17639 # the same #defines, which is useless. Nevertheless, we may not want to
17640 # sort them, since we want the *last* AC-DEFINE to be honored.
17641 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17642 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17643 rm -f confdef2sed.sed
17645 # This sed command replaces #undef with comments. This is necessary, for
17646 # example, in the case of _POSIX_SOURCE, which is predefined and required
17647 # on some systems where configure will not decide to define it.
17648 cat >>conftest.undefs <<\_ACEOF
17649 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17650 _ACEOF
17652 # Break up conftest.defines because some shells have a limit on the size
17653 # of here documents, and old seds have small limits too (100 cmds).
17654 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17655 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17656 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17657 echo ' :' >>$CONFIG_STATUS
17658 rm -f conftest.tail
17659 while grep . conftest.defines >/dev/null
17661 # Write a limited-size here document to $tmp/defines.sed.
17662 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17663 # Speed up: don't consider the non `#define' lines.
17664 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17665 # Work around the forget-to-reset-the-flag bug.
17666 echo 't clr' >>$CONFIG_STATUS
17667 echo ': clr' >>$CONFIG_STATUS
17668 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17669 echo 'CEOF
17670 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17671 rm -f $tmp/in
17672 mv $tmp/out $tmp/in
17673 ' >>$CONFIG_STATUS
17674 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17675 rm -f conftest.defines
17676 mv conftest.tail conftest.defines
17677 done
17678 rm -f conftest.defines
17679 echo ' fi # grep' >>$CONFIG_STATUS
17680 echo >>$CONFIG_STATUS
17682 # Break up conftest.undefs because some shells have a limit on the size
17683 # of here documents, and old seds have small limits too (100 cmds).
17684 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17685 rm -f conftest.tail
17686 while grep . conftest.undefs >/dev/null
17688 # Write a limited-size here document to $tmp/undefs.sed.
17689 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17690 # Speed up: don't consider the non `#undef'
17691 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17692 # Work around the forget-to-reset-the-flag bug.
17693 echo 't clr' >>$CONFIG_STATUS
17694 echo ': clr' >>$CONFIG_STATUS
17695 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17696 echo 'CEOF
17697 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17698 rm -f $tmp/in
17699 mv $tmp/out $tmp/in
17700 ' >>$CONFIG_STATUS
17701 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17702 rm -f conftest.undefs
17703 mv conftest.tail conftest.undefs
17704 done
17705 rm -f conftest.undefs
17707 cat >>$CONFIG_STATUS <<\_ACEOF
17708 # Let's still pretend it is `configure' which instantiates (i.e., don't
17709 # use $as_me), people would be surprised to read:
17710 # /* config.h. Generated by config.status. */
17711 if test x"$ac_file" = x-; then
17712 echo "/* Generated by configure. */" >$tmp/config.h
17713 else
17714 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17716 cat $tmp/in >>$tmp/config.h
17717 rm -f $tmp/in
17718 if test x"$ac_file" != x-; then
17719 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17720 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17721 echo "$as_me: $ac_file is unchanged" >&6;}
17722 else
17723 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17724 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17725 X"$ac_file" : 'X\(//\)[^/]' \| \
17726 X"$ac_file" : 'X\(//\)$' \| \
17727 X"$ac_file" : 'X\(/\)' \| \
17728 . : '\(.\)' 2>/dev/null ||
17729 echo X"$ac_file" |
17730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17732 /^X\(\/\/\)$/{ s//\1/; q; }
17733 /^X\(\/\).*/{ s//\1/; q; }
17734 s/.*/./; q'`
17735 { if $as_mkdir_p; then
17736 mkdir -p "$ac_dir"
17737 else
17738 as_dir="$ac_dir"
17739 as_dirs=
17740 while test ! -d "$as_dir"; do
17741 as_dirs="$as_dir $as_dirs"
17742 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17743 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17744 X"$as_dir" : 'X\(//\)[^/]' \| \
17745 X"$as_dir" : 'X\(//\)$' \| \
17746 X"$as_dir" : 'X\(/\)' \| \
17747 . : '\(.\)' 2>/dev/null ||
17748 echo X"$as_dir" |
17749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17751 /^X\(\/\/\)$/{ s//\1/; q; }
17752 /^X\(\/\).*/{ s//\1/; q; }
17753 s/.*/./; q'`
17754 done
17755 test ! -n "$as_dirs" || mkdir $as_dirs
17756 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17757 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17758 { (exit 1); exit 1; }; }; }
17760 rm -f $ac_file
17761 mv $tmp/config.h $ac_file
17763 else
17764 cat $tmp/config.h
17765 rm -f $tmp/config.h
17767 # Compute $ac_file's index in $config_headers.
17768 _am_stamp_count=1
17769 for _am_header in $config_headers :; do
17770 case $_am_header in
17771 $ac_file | $ac_file:* )
17772 break ;;
17774 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17775 esac
17776 done
17777 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17778 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17779 X$ac_file : 'X\(//\)[^/]' \| \
17780 X$ac_file : 'X\(//\)$' \| \
17781 X$ac_file : 'X\(/\)' \| \
17782 . : '\(.\)' 2>/dev/null ||
17783 echo X$ac_file |
17784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17786 /^X\(\/\/\)$/{ s//\1/; q; }
17787 /^X\(\/\).*/{ s//\1/; q; }
17788 s/.*/./; q'`/stamp-h$_am_stamp_count
17789 done
17790 _ACEOF
17791 cat >>$CONFIG_STATUS <<\_ACEOF
17794 # CONFIG_LINKS section.
17797 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17798 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17799 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17801 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17802 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17804 if test ! -r $srcdir/$ac_source; then
17805 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17806 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17807 { (exit 1); exit 1; }; }
17809 rm -f $ac_dest
17811 # Make relative symlinks.
17812 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17813 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17814 X"$ac_dest" : 'X\(//\)[^/]' \| \
17815 X"$ac_dest" : 'X\(//\)$' \| \
17816 X"$ac_dest" : 'X\(/\)' \| \
17817 . : '\(.\)' 2>/dev/null ||
17818 echo X"$ac_dest" |
17819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17821 /^X\(\/\/\)$/{ s//\1/; q; }
17822 /^X\(\/\).*/{ s//\1/; q; }
17823 s/.*/./; q'`
17824 { if $as_mkdir_p; then
17825 mkdir -p "$ac_dest_dir"
17826 else
17827 as_dir="$ac_dest_dir"
17828 as_dirs=
17829 while test ! -d "$as_dir"; do
17830 as_dirs="$as_dir $as_dirs"
17831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17833 X"$as_dir" : 'X\(//\)[^/]' \| \
17834 X"$as_dir" : 'X\(//\)$' \| \
17835 X"$as_dir" : 'X\(/\)' \| \
17836 . : '\(.\)' 2>/dev/null ||
17837 echo X"$as_dir" |
17838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17840 /^X\(\/\/\)$/{ s//\1/; q; }
17841 /^X\(\/\).*/{ s//\1/; q; }
17842 s/.*/./; q'`
17843 done
17844 test ! -n "$as_dirs" || mkdir $as_dirs
17845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17846 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17847 { (exit 1); exit 1; }; }; }
17849 ac_builddir=.
17851 if test "$ac_dest_dir" != .; then
17852 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17853 # A "../" for each directory in $ac_dir_suffix.
17854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17855 else
17856 ac_dir_suffix= ac_top_builddir=
17859 case $srcdir in
17860 .) # No --srcdir option. We are building in place.
17861 ac_srcdir=.
17862 if test -z "$ac_top_builddir"; then
17863 ac_top_srcdir=.
17864 else
17865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17866 fi ;;
17867 [\\/]* | ?:[\\/]* ) # Absolute path.
17868 ac_srcdir=$srcdir$ac_dir_suffix;
17869 ac_top_srcdir=$srcdir ;;
17870 *) # Relative path.
17871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17873 esac
17875 # Do not use `cd foo && pwd` to compute absolute paths, because
17876 # the directories may not exist.
17877 case `pwd` in
17878 .) ac_abs_builddir="$ac_dest_dir";;
17880 case "$ac_dest_dir" in
17881 .) ac_abs_builddir=`pwd`;;
17882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17883 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17884 esac;;
17885 esac
17886 case $ac_abs_builddir in
17887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17889 case ${ac_top_builddir}. in
17890 .) ac_abs_top_builddir=$ac_abs_builddir;;
17891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17893 esac;;
17894 esac
17895 case $ac_abs_builddir in
17896 .) ac_abs_srcdir=$ac_srcdir;;
17898 case $ac_srcdir in
17899 .) ac_abs_srcdir=$ac_abs_builddir;;
17900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17902 esac;;
17903 esac
17904 case $ac_abs_builddir in
17905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17907 case $ac_top_srcdir in
17908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17911 esac;;
17912 esac
17915 case $srcdir in
17916 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17917 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17918 esac
17920 # Try a symlink, then a hard link, then a copy.
17921 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17922 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17923 cp -p $srcdir/$ac_source $ac_dest ||
17924 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17925 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17926 { (exit 1); exit 1; }; }
17927 done
17928 _ACEOF
17929 cat >>$CONFIG_STATUS <<\_ACEOF
17932 # CONFIG_COMMANDS section.
17934 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17935 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17936 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17937 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17938 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17939 X"$ac_dest" : 'X\(//\)[^/]' \| \
17940 X"$ac_dest" : 'X\(//\)$' \| \
17941 X"$ac_dest" : 'X\(/\)' \| \
17942 . : '\(.\)' 2>/dev/null ||
17943 echo X"$ac_dest" |
17944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17946 /^X\(\/\/\)$/{ s//\1/; q; }
17947 /^X\(\/\).*/{ s//\1/; q; }
17948 s/.*/./; q'`
17949 { if $as_mkdir_p; then
17950 mkdir -p "$ac_dir"
17951 else
17952 as_dir="$ac_dir"
17953 as_dirs=
17954 while test ! -d "$as_dir"; do
17955 as_dirs="$as_dir $as_dirs"
17956 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17958 X"$as_dir" : 'X\(//\)[^/]' \| \
17959 X"$as_dir" : 'X\(//\)$' \| \
17960 X"$as_dir" : 'X\(/\)' \| \
17961 . : '\(.\)' 2>/dev/null ||
17962 echo X"$as_dir" |
17963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17965 /^X\(\/\/\)$/{ s//\1/; q; }
17966 /^X\(\/\).*/{ s//\1/; q; }
17967 s/.*/./; q'`
17968 done
17969 test ! -n "$as_dirs" || mkdir $as_dirs
17970 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17971 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17972 { (exit 1); exit 1; }; }; }
17974 ac_builddir=.
17976 if test "$ac_dir" != .; then
17977 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17978 # A "../" for each directory in $ac_dir_suffix.
17979 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17980 else
17981 ac_dir_suffix= ac_top_builddir=
17984 case $srcdir in
17985 .) # No --srcdir option. We are building in place.
17986 ac_srcdir=.
17987 if test -z "$ac_top_builddir"; then
17988 ac_top_srcdir=.
17989 else
17990 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17991 fi ;;
17992 [\\/]* | ?:[\\/]* ) # Absolute path.
17993 ac_srcdir=$srcdir$ac_dir_suffix;
17994 ac_top_srcdir=$srcdir ;;
17995 *) # Relative path.
17996 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17997 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17998 esac
18000 # Do not use `cd foo && pwd` to compute absolute paths, because
18001 # the directories may not exist.
18002 case `pwd` in
18003 .) ac_abs_builddir="$ac_dir";;
18005 case "$ac_dir" in
18006 .) ac_abs_builddir=`pwd`;;
18007 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18008 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18009 esac;;
18010 esac
18011 case $ac_abs_builddir in
18012 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18014 case ${ac_top_builddir}. in
18015 .) ac_abs_top_builddir=$ac_abs_builddir;;
18016 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18017 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18018 esac;;
18019 esac
18020 case $ac_abs_builddir in
18021 .) ac_abs_srcdir=$ac_srcdir;;
18023 case $ac_srcdir in
18024 .) ac_abs_srcdir=$ac_abs_builddir;;
18025 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18026 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18027 esac;;
18028 esac
18029 case $ac_abs_builddir in
18030 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18032 case $ac_top_srcdir in
18033 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18034 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18035 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18036 esac;;
18037 esac
18040 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18041 echo "$as_me: executing $ac_dest commands" >&6;}
18042 case $ac_dest in
18043 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18044 # Strip MF so we end up with the name of the file.
18045 mf=`echo "$mf" | sed -e 's/:.*$//'`
18046 # Check whether this is an Automake generated Makefile or not.
18047 # We used to match only the files named `Makefile.in', but
18048 # some people rename them; so instead we look at the file content.
18049 # Grep'ing the first line is not enough: some people post-process
18050 # each Makefile.in and add a new line on top of each file to say so.
18051 # So let's grep whole file.
18052 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18053 dirpart=`(dirname "$mf") 2>/dev/null ||
18054 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18055 X"$mf" : 'X\(//\)[^/]' \| \
18056 X"$mf" : 'X\(//\)$' \| \
18057 X"$mf" : 'X\(/\)' \| \
18058 . : '\(.\)' 2>/dev/null ||
18059 echo X"$mf" |
18060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18062 /^X\(\/\/\)$/{ s//\1/; q; }
18063 /^X\(\/\).*/{ s//\1/; q; }
18064 s/.*/./; q'`
18065 else
18066 continue
18068 # Extract the definition of DEPDIR, am__include, and am__quote
18069 # from the Makefile without running `make'.
18070 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18071 test -z "$DEPDIR" && continue
18072 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18073 test -z "am__include" && continue
18074 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18075 # When using ansi2knr, U may be empty or an underscore; expand it
18076 U=`sed -n 's/^U = //p' < "$mf"`
18077 # Find all dependency output files, they are included files with
18078 # $(DEPDIR) in their names. We invoke sed twice because it is the
18079 # simplest approach to changing $(DEPDIR) to its actual value in the
18080 # expansion.
18081 for file in `sed -n "
18082 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18083 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18084 # Make sure the directory exists.
18085 test -f "$dirpart/$file" && continue
18086 fdir=`(dirname "$file") 2>/dev/null ||
18087 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18088 X"$file" : 'X\(//\)[^/]' \| \
18089 X"$file" : 'X\(//\)$' \| \
18090 X"$file" : 'X\(/\)' \| \
18091 . : '\(.\)' 2>/dev/null ||
18092 echo X"$file" |
18093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18095 /^X\(\/\/\)$/{ s//\1/; q; }
18096 /^X\(\/\).*/{ s//\1/; q; }
18097 s/.*/./; q'`
18098 { if $as_mkdir_p; then
18099 mkdir -p $dirpart/$fdir
18100 else
18101 as_dir=$dirpart/$fdir
18102 as_dirs=
18103 while test ! -d "$as_dir"; do
18104 as_dirs="$as_dir $as_dirs"
18105 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18107 X"$as_dir" : 'X\(//\)[^/]' \| \
18108 X"$as_dir" : 'X\(//\)$' \| \
18109 X"$as_dir" : 'X\(/\)' \| \
18110 . : '\(.\)' 2>/dev/null ||
18111 echo X"$as_dir" |
18112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18114 /^X\(\/\/\)$/{ s//\1/; q; }
18115 /^X\(\/\).*/{ s//\1/; q; }
18116 s/.*/./; q'`
18117 done
18118 test ! -n "$as_dirs" || mkdir $as_dirs
18119 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18120 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18121 { (exit 1); exit 1; }; }; }
18123 # echo "creating $dirpart/$file"
18124 echo '# dummy' > "$dirpart/$file"
18125 done
18126 done
18128 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18129 case " $CONFIG_FILES " in
18130 *" Makefile "*)
18131 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18132 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18134 esac
18136 esac
18137 done
18138 _ACEOF
18140 cat >>$CONFIG_STATUS <<\_ACEOF
18142 { (exit 0); exit 0; }
18143 _ACEOF
18144 chmod +x $CONFIG_STATUS
18145 ac_clean_files=$ac_clean_files_save
18148 # configure is writing to config.log, and then calls config.status.
18149 # config.status does its own redirection, appending to config.log.
18150 # Unfortunately, on DOS this fails, as config.log is still kept open
18151 # by configure, so config.status won't be able to write to it; its
18152 # output is simply discarded. So we exec the FD to /dev/null,
18153 # effectively closing config.log, so it can be properly (re)opened and
18154 # appended to by config.status. When coming back to configure, we
18155 # need to make the FD available again.
18156 if test "$no_create" != yes; then
18157 ac_cs_success=:
18158 ac_config_status_args=
18159 test "$silent" = yes &&
18160 ac_config_status_args="$ac_config_status_args --quiet"
18161 exec 5>/dev/null
18162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18163 exec 5>>config.log
18164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18165 # would make configure fail if this is the last instruction.
18166 $ac_cs_success || { (exit 1); exit 1; }
18170 # CONFIG_SUBDIRS section.
18172 if test "$no_recursion" != yes; then
18174 # Remove --cache-file and --srcdir arguments so they do not pile up.
18175 ac_sub_configure_args=
18176 ac_prev=
18177 for ac_arg in $ac_configure_args; do
18178 if test -n "$ac_prev"; then
18179 ac_prev=
18180 continue
18182 case $ac_arg in
18183 -cache-file | --cache-file | --cache-fil | --cache-fi \
18184 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18185 ac_prev=cache_file ;;
18186 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18187 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18188 | --c=*)
18190 --config-cache | -C)
18192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18193 ac_prev=srcdir ;;
18194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18197 ac_prev=prefix ;;
18198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18200 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18201 esac
18202 done
18204 # Always prepend --prefix to ensure using the same prefix
18205 # in subdir configurations.
18206 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18208 ac_popdir=`pwd`
18209 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18211 # Do not complain, so a configure script can configure whichever
18212 # parts of a large source tree are present.
18213 test -d $srcdir/$ac_dir || continue
18215 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18216 echo "$as_me: configuring in $ac_dir" >&6;}
18217 { if $as_mkdir_p; then
18218 mkdir -p "$ac_dir"
18219 else
18220 as_dir="$ac_dir"
18221 as_dirs=
18222 while test ! -d "$as_dir"; do
18223 as_dirs="$as_dir $as_dirs"
18224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18226 X"$as_dir" : 'X\(//\)[^/]' \| \
18227 X"$as_dir" : 'X\(//\)$' \| \
18228 X"$as_dir" : 'X\(/\)' \| \
18229 . : '\(.\)' 2>/dev/null ||
18230 echo X"$as_dir" |
18231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18233 /^X\(\/\/\)$/{ s//\1/; q; }
18234 /^X\(\/\).*/{ s//\1/; q; }
18235 s/.*/./; q'`
18236 done
18237 test ! -n "$as_dirs" || mkdir $as_dirs
18238 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18239 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18240 { (exit 1); exit 1; }; }; }
18242 ac_builddir=.
18244 if test "$ac_dir" != .; then
18245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18246 # A "../" for each directory in $ac_dir_suffix.
18247 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18248 else
18249 ac_dir_suffix= ac_top_builddir=
18252 case $srcdir in
18253 .) # No --srcdir option. We are building in place.
18254 ac_srcdir=.
18255 if test -z "$ac_top_builddir"; then
18256 ac_top_srcdir=.
18257 else
18258 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18259 fi ;;
18260 [\\/]* | ?:[\\/]* ) # Absolute path.
18261 ac_srcdir=$srcdir$ac_dir_suffix;
18262 ac_top_srcdir=$srcdir ;;
18263 *) # Relative path.
18264 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18265 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18266 esac
18268 # Do not use `cd foo && pwd` to compute absolute paths, because
18269 # the directories may not exist.
18270 case `pwd` in
18271 .) ac_abs_builddir="$ac_dir";;
18273 case "$ac_dir" in
18274 .) ac_abs_builddir=`pwd`;;
18275 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18276 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18277 esac;;
18278 esac
18279 case $ac_abs_builddir in
18280 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18282 case ${ac_top_builddir}. in
18283 .) ac_abs_top_builddir=$ac_abs_builddir;;
18284 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18285 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18286 esac;;
18287 esac
18288 case $ac_abs_builddir in
18289 .) ac_abs_srcdir=$ac_srcdir;;
18291 case $ac_srcdir in
18292 .) ac_abs_srcdir=$ac_abs_builddir;;
18293 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18294 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18295 esac;;
18296 esac
18297 case $ac_abs_builddir in
18298 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18300 case $ac_top_srcdir in
18301 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18302 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18303 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18304 esac;;
18305 esac
18308 cd $ac_dir
18310 # Check for guested configure; otherwise get Cygnus style configure.
18311 if test -f $ac_srcdir/configure.gnu; then
18312 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18313 elif test -f $ac_srcdir/configure; then
18314 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18315 elif test -f $ac_srcdir/configure.in; then
18316 ac_sub_configure=$ac_configure
18317 else
18318 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18319 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18320 ac_sub_configure=
18323 # The recursion is here.
18324 if test -n "$ac_sub_configure"; then
18325 # Make the cache file name correct relative to the subdirectory.
18326 case $cache_file in
18327 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18328 *) # Relative path.
18329 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18330 esac
18332 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18333 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18334 # The eval makes quoting arguments work.
18335 eval $ac_sub_configure $ac_sub_configure_args \
18336 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18337 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18338 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18339 { (exit 1); exit 1; }; }
18342 cd $ac_popdir
18343 done