2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
[official-gcc.git] / libjava / configure
blob5929c250c5276f22bf24c80fe9ae9cf3b737b5c9
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 lt_cv_deplibs_check_method=pass_all
4353 netbsd* | knetbsd*-gnu)
4354 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4355 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4356 else
4357 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4361 newsos6)
4362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4363 lt_cv_file_magic_cmd=/usr/bin/file
4364 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4367 osf3* | osf4* | osf5*)
4368 # this will be overridden with pass_all, but let us keep it just in case
4369 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4370 lt_cv_file_magic_test_file=/shlib/libc.so
4371 lt_cv_deplibs_check_method=pass_all
4374 sco3.2v5*)
4375 lt_cv_deplibs_check_method=pass_all
4378 solaris*)
4379 lt_cv_deplibs_check_method=pass_all
4380 lt_cv_file_magic_test_file=/lib/libc.so
4383 sysv5uw[78]* | sysv4*uw2*)
4384 lt_cv_deplibs_check_method=pass_all
4387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4388 case $host_vendor in
4389 ncr)
4390 lt_cv_deplibs_check_method=pass_all
4392 motorola)
4393 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]'
4394 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4396 esac
4398 esac
4401 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4402 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4403 file_magic_cmd=$lt_cv_file_magic_cmd
4404 deplibs_check_method=$lt_cv_deplibs_check_method
4409 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4411 # Only perform the check for file, if the check method requires it
4412 case $deplibs_check_method in
4413 file_magic*)
4414 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4415 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4416 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4417 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 case $MAGIC_CMD in
4422 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4424 ?:/*)
4425 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4428 ac_save_MAGIC_CMD="$MAGIC_CMD"
4429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4430 ac_dummy="/usr/bin:$PATH"
4431 for ac_dir in $ac_dummy; do
4432 test -z "$ac_dir" && ac_dir=.
4433 if test -f $ac_dir/${ac_tool_prefix}file; then
4434 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4435 if test -n "$file_magic_test_file"; then
4436 case $deplibs_check_method in
4437 "file_magic "*)
4438 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4441 egrep "$file_magic_regex" > /dev/null; then
4443 else
4444 cat <<EOF 1>&2
4446 *** Warning: the command libtool uses to detect shared libraries,
4447 *** $file_magic_cmd, produces output that libtool cannot recognize.
4448 *** The result is that libtool may fail to recognize shared libraries
4449 *** as such. This will affect the creation of libtool libraries that
4450 *** depend on shared libraries, but programs linked with such libtool
4451 *** libraries will work regardless of this problem. Nevertheless, you
4452 *** may want to report the problem to your system manager and/or to
4453 *** bug-libtool@gnu.org
4456 fi ;;
4457 esac
4459 break
4461 done
4462 IFS="$ac_save_ifs"
4463 MAGIC_CMD="$ac_save_MAGIC_CMD"
4465 esac
4468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4469 if test -n "$MAGIC_CMD"; then
4470 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4471 echo "${ECHO_T}$MAGIC_CMD" >&6
4472 else
4473 echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6
4477 if test -z "$lt_cv_path_MAGIC_CMD"; then
4478 if test -n "$ac_tool_prefix"; then
4479 echo "$as_me:$LINENO: checking for file" >&5
4480 echo $ECHO_N "checking for file... $ECHO_C" >&6
4481 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 case $MAGIC_CMD in
4486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4488 ?:/*)
4489 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4492 ac_save_MAGIC_CMD="$MAGIC_CMD"
4493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4494 ac_dummy="/usr/bin:$PATH"
4495 for ac_dir in $ac_dummy; do
4496 test -z "$ac_dir" && ac_dir=.
4497 if test -f $ac_dir/file; then
4498 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4499 if test -n "$file_magic_test_file"; then
4500 case $deplibs_check_method in
4501 "file_magic "*)
4502 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4503 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4504 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4505 egrep "$file_magic_regex" > /dev/null; then
4507 else
4508 cat <<EOF 1>&2
4510 *** Warning: the command libtool uses to detect shared libraries,
4511 *** $file_magic_cmd, produces output that libtool cannot recognize.
4512 *** The result is that libtool may fail to recognize shared libraries
4513 *** as such. This will affect the creation of libtool libraries that
4514 *** depend on shared libraries, but programs linked with such libtool
4515 *** libraries will work regardless of this problem. Nevertheless, you
4516 *** may want to report the problem to your system manager and/or to
4517 *** bug-libtool@gnu.org
4520 fi ;;
4521 esac
4523 break
4525 done
4526 IFS="$ac_save_ifs"
4527 MAGIC_CMD="$ac_save_MAGIC_CMD"
4529 esac
4532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4533 if test -n "$MAGIC_CMD"; then
4534 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4535 echo "${ECHO_T}$MAGIC_CMD" >&6
4536 else
4537 echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4541 else
4542 MAGIC_CMD=:
4548 esac
4550 if test -n "$ac_tool_prefix"; then
4551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4552 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_prog_RANLIB+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558 if test -n "$RANLIB"; then
4559 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4577 RANLIB=$ac_cv_prog_RANLIB
4578 if test -n "$RANLIB"; then
4579 echo "$as_me:$LINENO: result: $RANLIB" >&5
4580 echo "${ECHO_T}$RANLIB" >&6
4581 else
4582 echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4587 if test -z "$ac_cv_prog_RANLIB"; then
4588 ac_ct_RANLIB=$RANLIB
4589 # Extract the first word of "ranlib", so it can be a program name with args.
4590 set dummy ranlib; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 if test -n "$ac_ct_RANLIB"; then
4597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_ac_ct_RANLIB="ranlib"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4613 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4617 if test -n "$ac_ct_RANLIB"; then
4618 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4619 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4620 else
4621 echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4625 RANLIB=$ac_ct_RANLIB
4626 else
4627 RANLIB="$ac_cv_prog_RANLIB"
4630 if test -n "$ac_tool_prefix"; then
4631 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4632 set dummy ${ac_tool_prefix}strip; ac_word=$2
4633 echo "$as_me:$LINENO: checking for $ac_word" >&5
4634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4635 if test "${ac_cv_prog_STRIP+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 if test -n "$STRIP"; then
4639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4652 done
4653 done
4657 STRIP=$ac_cv_prog_STRIP
4658 if test -n "$STRIP"; then
4659 echo "$as_me:$LINENO: result: $STRIP" >&5
4660 echo "${ECHO_T}$STRIP" >&6
4661 else
4662 echo "$as_me:$LINENO: result: no" >&5
4663 echo "${ECHO_T}no" >&6
4667 if test -z "$ac_cv_prog_STRIP"; then
4668 ac_ct_STRIP=$STRIP
4669 # Extract the first word of "strip", so it can be a program name with args.
4670 set dummy strip; ac_word=$2
4671 echo "$as_me:$LINENO: checking for $ac_word" >&5
4672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4673 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676 if test -n "$ac_ct_STRIP"; then
4677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 ac_cv_prog_ac_ct_STRIP="strip"
4687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4690 done
4691 done
4693 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4696 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4697 if test -n "$ac_ct_STRIP"; then
4698 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4699 echo "${ECHO_T}$ac_ct_STRIP" >&6
4700 else
4701 echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6
4705 STRIP=$ac_ct_STRIP
4706 else
4707 STRIP="$ac_cv_prog_STRIP"
4711 # Check for any special flags to pass to ltconfig.
4712 libtool_flags="--cache-file=$cache_file"
4713 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4714 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4715 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4716 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4717 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4720 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4721 if test "${enable_libtool_lock+set}" = set; then
4722 enableval="$enable_libtool_lock"
4725 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4726 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4729 # Check whether --with-pic or --without-pic was given.
4730 if test "${with_pic+set}" = set; then
4731 withval="$with_pic"
4732 pic_mode="$withval"
4733 else
4734 pic_mode=default
4736 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4737 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4739 # Some flags need to be propagated to the compiler or linker for good
4740 # libtool support.
4741 case $host in
4742 *-*-irix6*)
4743 # Find out which ABI we are using.
4744 echo '#line 4744 "configure"' > conftest.$ac_ext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; then
4750 if test "$lt_cv_prog_gnu_ld" = yes; then
4751 case `/usr/bin/file conftest.$ac_objext` in
4752 *32-bit*)
4753 LD="${LD-ld} -melf32bsmip"
4755 *N32*)
4756 LD="${LD-ld} -melf32bmipn32"
4758 *64-bit*)
4759 LD="${LD-ld} -melf64bmip"
4761 esac
4762 else
4763 case `/usr/bin/file conftest.$ac_objext` in
4764 *32-bit*)
4765 LD="${LD-ld} -32"
4767 *N32*)
4768 LD="${LD-ld} -n32"
4770 *64-bit*)
4771 LD="${LD-ld} -64"
4773 esac
4776 rm -rf conftest*
4779 ia64-*-hpux*)
4780 # Find out which ABI we are using.
4781 echo 'int i;' > conftest.$ac_ext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; then
4787 case "`/usr/bin/file conftest.o`" in
4788 *ELF-32*)
4789 HPUX_IA64_MODE="32"
4791 *ELF-64*)
4792 HPUX_IA64_MODE="64"
4794 esac
4796 rm -rf conftest*
4799 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4800 # Find out which ABI we are using.
4801 echo 'int i;' > conftest.$ac_ext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803 (eval $ac_compile) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
4807 case "`/usr/bin/file conftest.o`" in
4808 *32-bit*)
4809 case $host in
4810 x86_64-*linux*)
4811 LD="${LD-ld} -m elf_i386"
4813 ppc64-*linux*|powerpc64-*linux*)
4814 LD="${LD-ld} -m elf32ppclinux"
4816 s390x-*linux*)
4817 LD="${LD-ld} -m elf_s390"
4819 sparc64-*linux*)
4820 LD="${LD-ld} -m elf32_sparc"
4822 esac
4824 *64-bit*)
4825 case $host in
4826 x86_64-*linux*)
4827 LD="${LD-ld} -m elf_x86_64"
4829 ppc*-*linux*|powerpc*-*linux*)
4830 LD="${LD-ld} -m elf64ppc"
4832 s390*-*linux*)
4833 LD="${LD-ld} -m elf64_s390"
4835 sparc*-*linux*)
4836 LD="${LD-ld} -m elf64_sparc"
4838 esac
4840 esac
4842 rm -rf conftest*
4845 *-*-sco3.2v5*)
4846 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4847 SAVE_CFLAGS="$CFLAGS"
4848 CFLAGS="$CFLAGS -belf"
4849 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4850 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4851 if test "${lt_cv_cc_needs_belf+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 if test x$gcc_no_link = xyes; then
4863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4865 { (exit 1); exit 1; }; }
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4875 main ()
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext conftest$ac_exeext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4884 (eval $ac_link) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest$ac_exeext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 lt_cv_cc_needs_belf=yes
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 lt_cv_cc_needs_belf=no
4911 rm -f conftest.err conftest.$ac_objext \
4912 conftest$ac_exeext conftest.$ac_ext
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4921 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4922 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4923 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4924 CFLAGS="$SAVE_CFLAGS"
4929 esac
4932 # Save cache, so that ltconfig can load it
4933 cat >confcache <<\_ACEOF
4934 # This file is a shell script that caches the results of configure
4935 # tests run on this system so they can be shared between configure
4936 # scripts and configure runs, see configure's option --config-cache.
4937 # It is not useful on other systems. If it contains results you don't
4938 # want to keep, you may remove or edit it.
4940 # config.status only pays attention to the cache file if you give it
4941 # the --recheck option to rerun configure.
4943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4945 # following values.
4947 _ACEOF
4949 # The following way of writing the cache mishandles newlines in values,
4950 # but we know of no workaround that is simple, portable, and efficient.
4951 # So, don't put newlines in cache variables' values.
4952 # Ultrix sh set writes to stderr and can't be redirected directly,
4953 # and sets the high bit in the cache file unless we assign to the vars.
4955 (set) 2>&1 |
4956 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4957 *ac_space=\ *)
4958 # `set' does not quote correctly, so add quotes (double-quote
4959 # substitution turns \\\\ into \\, and sed turns \\ into \).
4960 sed -n \
4961 "s/'/'\\\\''/g;
4962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4965 # `set' quotes correctly as required by POSIX, so do not add quotes.
4966 sed -n \
4967 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4969 esac;
4971 sed '
4972 t clear
4973 : clear
4974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4975 t end
4976 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4977 : end' >>confcache
4978 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4979 if test -w $cache_file; then
4980 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4981 cat confcache >$cache_file
4982 else
4983 echo "not updating unwritable cache $cache_file"
4986 rm -f confcache
4988 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4989 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4990 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4991 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4992 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4993 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4994 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4995 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4996 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4997 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4998 echo "$as_me: error: libtool configure failed" >&2;}
4999 { (exit 1); exit 1; }; }
5001 # Reload cache, that may have been modified by ltconfig
5002 if test -r "$cache_file"; then
5003 # Some versions of bash will fail to source /dev/null (special
5004 # files actually), so we avoid doing that.
5005 if test -f "$cache_file"; then
5006 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5007 echo "$as_me: loading cache $cache_file" >&6;}
5008 case $cache_file in
5009 [\\/]* | ?:[\\/]* ) . $cache_file;;
5010 *) . ./$cache_file;;
5011 esac
5013 else
5014 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5015 echo "$as_me: creating cache $cache_file" >&6;}
5016 >$cache_file
5020 # This can be used to rebuild libtool when needed
5021 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5023 # Always use our own libtool.
5024 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5026 # Redirect the config.log output again, so that the ltconfig log is not
5027 # clobbered by the next message.
5028 exec 5>>./config.log
5030 ac_ext=cc
5031 ac_cpp='$CXXCPP $CPPFLAGS'
5032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5035 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5036 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5037 if test -z "$CXXCPP"; then
5038 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 # Double quotes because CXXCPP needs to be expanded
5042 for CXXCPP in "$CXX -E" "/lib/cpp"
5044 ac_preproc_ok=false
5045 for ac_cxx_preproc_warn_flag in '' yes
5047 # Use a header file that comes with gcc, so configuring glibc
5048 # with a fresh cross-compiler works.
5049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5050 # <limits.h> exists even on freestanding compilers.
5051 # On the NeXT, cc -E runs the code through the compiler's parser,
5052 # not just through cpp. "Syntax error" is here to catch this case.
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5064 Syntax error
5065 _ACEOF
5066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev/null; then
5074 if test -s conftest.err; then
5075 ac_cpp_err=$ac_cxx_preproc_warn_flag
5076 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5077 else
5078 ac_cpp_err=
5080 else
5081 ac_cpp_err=yes
5083 if test -z "$ac_cpp_err"; then
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 # Broken: fails on valid input.
5090 continue
5092 rm -f conftest.err conftest.$ac_ext
5094 # OK, works on sane cases. Now check whether non-existent headers
5095 # can be detected and how.
5096 cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h. */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5103 _ACEOF
5104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } >/dev/null; then
5112 if test -s conftest.err; then
5113 ac_cpp_err=$ac_cxx_preproc_warn_flag
5114 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5115 else
5116 ac_cpp_err=
5118 else
5119 ac_cpp_err=yes
5121 if test -z "$ac_cpp_err"; then
5122 # Broken: success on invalid input.
5123 continue
5124 else
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 # Passes both tests.
5129 ac_preproc_ok=:
5130 break
5132 rm -f conftest.err conftest.$ac_ext
5134 done
5135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136 rm -f conftest.err conftest.$ac_ext
5137 if $ac_preproc_ok; then
5138 break
5141 done
5142 ac_cv_prog_CXXCPP=$CXXCPP
5145 CXXCPP=$ac_cv_prog_CXXCPP
5146 else
5147 ac_cv_prog_CXXCPP=$CXXCPP
5149 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5150 echo "${ECHO_T}$CXXCPP" >&6
5151 ac_preproc_ok=false
5152 for ac_cxx_preproc_warn_flag in '' yes
5154 # Use a header file that comes with gcc, so configuring glibc
5155 # with a fresh cross-compiler works.
5156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5157 # <limits.h> exists even on freestanding compilers.
5158 # On the NeXT, cc -E runs the code through the compiler's parser,
5159 # not just through cpp. "Syntax error" is here to catch this case.
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 #ifdef __STDC__
5167 # include <limits.h>
5168 #else
5169 # include <assert.h>
5170 #endif
5171 Syntax error
5172 _ACEOF
5173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } >/dev/null; then
5181 if test -s conftest.err; then
5182 ac_cpp_err=$ac_cxx_preproc_warn_flag
5183 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5184 else
5185 ac_cpp_err=
5187 else
5188 ac_cpp_err=yes
5190 if test -z "$ac_cpp_err"; then
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 # Broken: fails on valid input.
5197 continue
5199 rm -f conftest.err conftest.$ac_ext
5201 # OK, works on sane cases. Now check whether non-existent headers
5202 # can be detected and how.
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <ac_nonexistent.h>
5210 _ACEOF
5211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev/null; then
5219 if test -s conftest.err; then
5220 ac_cpp_err=$ac_cxx_preproc_warn_flag
5221 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5222 else
5223 ac_cpp_err=
5225 else
5226 ac_cpp_err=yes
5228 if test -z "$ac_cpp_err"; then
5229 # Broken: success on invalid input.
5230 continue
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 # Passes both tests.
5236 ac_preproc_ok=:
5237 break
5239 rm -f conftest.err conftest.$ac_ext
5241 done
5242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5243 rm -f conftest.err conftest.$ac_ext
5244 if $ac_preproc_ok; then
5246 else
5247 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5248 See \`config.log' for more details." >&5
5249 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5250 See \`config.log' for more details." >&2;}
5251 { (exit 1); exit 1; }; }
5254 ac_ext=c
5255 ac_cpp='$CPP $CPPFLAGS'
5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5263 lt_save_CC="$CC"
5264 lt_save_CFLAGS="$CFLAGS"
5265 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5266 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5267 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5268 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5269 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5270 deplibs_check_method="$deplibs_check_method" \
5271 file_magic_cmd="$file_magic_cmd" \
5272 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5273 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5274 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5275 echo "$as_me: error: libtool tag configuration failed" >&2;}
5276 { (exit 1); exit 1; }; }
5277 CC="$lt_save_CC"
5278 CFLAGS="$lt_save_CFLAGS"
5280 # Redirect the config.log output again, so that the ltconfig log is not
5281 # clobbered by the next message.
5282 exec 5>>./config.log
5290 for ac_prog in gcj
5292 # Extract the first word of "$ac_prog", so it can be a program name with args.
5293 set dummy $ac_prog; ac_word=$2
5294 echo "$as_me:$LINENO: checking for $ac_word" >&5
5295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5296 if test "${ac_cv_prog_GCJ+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 if test -n "$GCJ"; then
5300 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_GCJ="$ac_prog"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5318 GCJ=$ac_cv_prog_GCJ
5319 if test -n "$GCJ"; then
5320 echo "$as_me:$LINENO: result: $GCJ" >&5
5321 echo "${ECHO_T}$GCJ" >&6
5322 else
5323 echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6
5327 test -n "$GCJ" && break
5328 done
5329 test -n "$GCJ" || GCJ="gcj"
5331 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5332 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5333 { (exit 1); exit 1; }; }
5334 if test "x${GCJFLAGS-unset}" = xunset; then
5335 GCJFLAGS="-g -O2"
5339 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5341 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5342 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5343 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5347 # We make a subdir and do the tests there. Otherwise we can end up
5348 # making bogus files that we don't know about and never remove. For
5349 # instance it was reported that on HP-UX the gcc test will end up
5350 # making a dummy file named `D' -- because `-MD' means `put the output
5351 # in D'.
5352 mkdir conftest.dir
5353 # Copy depcomp to subdir because otherwise we won't find it if we're
5354 # using a relative directory.
5355 cp "$am_depcomp" conftest.dir
5356 cd conftest.dir
5357 # We will build objects and dependencies in a subdirectory because
5358 # it helps to detect inapplicable dependency modes. For instance
5359 # both Tru64's cc and ICC support -MD to output dependencies as a
5360 # side effect of compilation, but ICC will put the dependencies in
5361 # the current directory while Tru64 will put them in the object
5362 # directory.
5363 mkdir sub
5365 am_cv_GCJ_dependencies_compiler_type=none
5366 if test "$am_compiler_list" = ""; then
5367 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5369 for depmode in $am_compiler_list; do
5370 # Setup a source with many dependencies, because some compilers
5371 # like to wrap large dependency lists on column 80 (with \), and
5372 # we should not choose a depcomp mode which is confused by this.
5374 # We need to recreate these files for each test, as the compiler may
5375 # overwrite some of them when testing with obscure command lines.
5376 # This happens at least with the AIX C compiler.
5377 : > sub/conftest.c
5378 for i in 1 2 3 4 5 6; do
5379 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5380 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5381 # Solaris 8's {/usr,}/bin/sh.
5382 touch sub/conftst$i.h
5383 done
5384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5386 case $depmode in
5387 nosideeffect)
5388 # after this tag, mechanisms are not by side-effect, so they'll
5389 # only be used when explicitly requested
5390 if test "x$enable_dependency_tracking" = xyes; then
5391 continue
5392 else
5393 break
5396 none) break ;;
5397 esac
5398 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5399 # mode. It turns out that the SunPro C++ compiler does not properly
5400 # handle `-M -o', and we need to detect this.
5401 if depmode=$depmode \
5402 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5404 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5405 >/dev/null 2>conftest.err &&
5406 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5407 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5408 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5409 # icc doesn't choke on unknown options, it will just issue warnings
5410 # or remarks (even with -Werror). So we grep stderr for any message
5411 # that says an option was ignored or not supported.
5412 # When given -MP, icc 7.0 and 7.1 complain thusly:
5413 # icc: Command line warning: ignoring option '-M'; no argument required
5414 # The diagnosis changed in icc 8.0:
5415 # icc: Command line remark: option '-MP' not supported
5416 if (grep 'ignoring option' conftest.err ||
5417 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5418 am_cv_GCJ_dependencies_compiler_type=$depmode
5419 break
5422 done
5424 cd ..
5425 rm -rf conftest.dir
5426 else
5427 am_cv_GCJ_dependencies_compiler_type=none
5431 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5432 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5433 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5438 test "x$enable_dependency_tracking" != xno \
5439 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5440 am__fastdepGCJ_TRUE=
5441 am__fastdepGCJ_FALSE='#'
5442 else
5443 am__fastdepGCJ_TRUE='#'
5444 am__fastdepGCJ_FALSE=
5450 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5451 lt_save_CC="$CC"
5452 lt_save_CFLAGS="$CFLAGS"
5453 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5454 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5455 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5456 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5457 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5458 deplibs_check_method="$deplibs_check_method" \
5459 file_magic_cmd="$file_magic_cmd" \
5460 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5461 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5462 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5463 echo "$as_me: error: libtool tag configuration failed" >&2;}
5464 { (exit 1); exit 1; }; }
5465 CC="$lt_save_CC"
5466 CFLAGS="$lt_save_CFLAGS"
5468 # Redirect the config.log output again, so that the ltconfig log is not
5469 # clobbered by the next message.
5470 exec 5>>./config.log
5474 if test "x$CC" != xcc; then
5475 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5476 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5477 else
5478 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5479 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5481 set dummy $CC; ac_cc=`echo $2 |
5482 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5483 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5494 main ()
5498 return 0;
5500 _ACEOF
5501 # Make sure it works both with $CC and with simple cc.
5502 # We do the test twice because some compilers refuse to overwrite an
5503 # existing .o file with -o, though they will create one.
5504 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5505 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); };
5515 then
5516 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5517 if test "x$CC" != xcc; then
5518 # Test first that cc exists at all.
5519 if { ac_try='cc -c conftest.$ac_ext >&5'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5526 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); };
5536 then
5537 # cc works too.
5539 else
5540 # cc exists but doesn't like -o.
5541 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5545 else
5546 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5548 rm -f conftest*
5551 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5552 echo "$as_me:$LINENO: result: yes" >&5
5553 echo "${ECHO_T}yes" >&6
5554 else
5555 echo "$as_me:$LINENO: result: no" >&5
5556 echo "${ECHO_T}no" >&6
5558 cat >>confdefs.h <<\_ACEOF
5559 #define NO_MINUS_C_MINUS_O 1
5560 _ACEOF
5564 # FIXME: we rely on the cache variable name because
5565 # there is no other way.
5566 set dummy $CC
5567 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5568 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5569 # Losing compiler, so override with the script.
5570 # FIXME: It is wrong to rewrite CC.
5571 # But if we don't then we get into trouble of one sort or another.
5572 # A longer-term fix would be to have automake use am__CC in this case,
5573 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5574 CC="$am_aux_dir/compile $CC"
5579 subdirs="$subdirs libltdl"
5582 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5583 COMPPATH=.
5584 else
5585 COMPPATH=..
5589 # The -no-testsuite modules omit the test subdir.
5592 if test -d $srcdir/testsuite; then
5593 TESTSUBDIR_TRUE=
5594 TESTSUBDIR_FALSE='#'
5595 else
5596 TESTSUBDIR_TRUE='#'
5597 TESTSUBDIR_FALSE=
5601 # Should the runtime set system properties by examining the
5602 # environment variable GCJ_PROPERTIES?
5603 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5604 if test "${enable_getenv_properties+set}" = set; then
5605 enableval="$enable_getenv_properties"
5609 # Whether GCJ_PROPERTIES is used depends on the target.
5610 if test -z "$enable_getenv_properties"; then
5611 enable_getenv_properties=${enable_getenv_properties_default-yes}
5613 if test "$enable_getenv_properties" = no; then
5615 cat >>confdefs.h <<\_ACEOF
5616 #define DISABLE_GETENV_PROPERTIES 1
5617 _ACEOF
5621 # Whether we should use arguments to main()
5622 if test -z "$enable_main_args"; then
5623 enable_main_args=${enable_main_args_default-yes}
5625 if test "$enable_main_args" = no; then
5627 cat >>confdefs.h <<\_ACEOF
5628 #define DISABLE_MAIN_ARGS 1
5629 _ACEOF
5634 # Should we use hashtable-based synchronization?
5635 # Currently works only for Linux X86/ia64
5636 # Typically faster and more space-efficient
5637 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5638 if test "${enable_hash_synchronization+set}" = set; then
5639 enableval="$enable_hash_synchronization"
5643 if test -z "$enable_hash_synchronization"; then
5644 enable_hash_synchronization=$enable_hash_synchronization_default
5647 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5648 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5649 if test "${enable_libgcj_multifile+set}" = set; then
5650 enableval="$enable_libgcj_multifile"
5651 case "${enableval}" in
5652 yes) enable_libgcj_multifile=yes ;;
5653 no) enable_libgcj_multifile=no ;;
5654 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5655 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5656 { (exit 1); exit 1; }; } ;;
5657 esac
5658 else
5659 enable_libgcj_multifile=no
5663 if test "$enable_libgcj_multifile" = yes; then
5664 ONESTEP_TRUE=
5665 ONESTEP_FALSE='#'
5666 else
5667 ONESTEP_TRUE='#'
5668 ONESTEP_FALSE=
5672 # What is the native OS API for MinGW?
5674 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5675 if test "${with_win32_nlsapi+set}" = set; then
5676 withval="$with_win32_nlsapi"
5677 case "${withval}" in
5678 ansi) with_win32_nlsapi=ansi ;;
5679 unicows) with_win32_nlsapi=unicows ;;
5680 unicode) with_win32_nlsapi=unicode ;;
5681 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5682 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5683 { (exit 1); exit 1; }; } ;;
5684 esac
5685 else
5686 with_win32_nlsapi=ansi
5689 case "${with_win32_nlsapi}" in
5690 unicows | unicode)
5692 cat >>confdefs.h <<\_ACEOF
5693 #define MINGW_LIBGCJ_UNICODE 1
5694 _ACEOF
5697 esac
5699 # configure.host sets slow_pthread_self if the synchronization code should
5700 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5701 if test "${slow_pthread_self}" = "yes"; then
5703 cat >>confdefs.h <<\_ACEOF
5704 #define SLOW_PTHREAD_SELF 1
5705 _ACEOF
5710 # See if the user has requested runtime debugging.
5711 LIBGCJDEBUG="false"
5713 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5714 if test "${enable_libgcj_debug+set}" = set; then
5715 enableval="$enable_libgcj_debug"
5716 if test "$enable_libgcj_debug" = yes; then
5718 cat >>confdefs.h <<\_ACEOF
5719 #define DEBUG 1
5720 _ACEOF
5722 LIBGCJDEBUG="true"
5726 # Check for gc debugging. This option is handled both here and in the GC.
5727 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5728 if test "${enable_gc_debug+set}" = set; then
5729 enableval="$enable_gc_debug"
5730 if test "$enable_gc_debug" = "yes"; then
5732 cat >>confdefs.h <<\_ACEOF
5733 #define LIBGCJ_GC_DEBUG 1
5734 _ACEOF
5739 # See if the user has the interpreter included.
5740 # Check whether --enable-interpreter or --disable-interpreter was given.
5741 if test "${enable_interpreter+set}" = set; then
5742 enableval="$enable_interpreter"
5743 if test "$enable_interpreter" = yes; then
5744 # This can also be set in configure.host.
5745 libgcj_interpreter=yes
5746 elif test "$enable_interpreter" = no; then
5747 libgcj_interpreter=no
5751 if test "$libgcj_interpreter" = yes; then
5753 cat >>confdefs.h <<\_ACEOF
5754 #define INTERPRETER 1
5755 _ACEOF
5758 INTERPRETER="$libgcj_interpreter"
5761 echo "$as_me:$LINENO: checking for exception model to use" >&5
5762 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5763 ac_ext=cc
5764 ac_cpp='$CXXCPP $CPPFLAGS'
5765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5769 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5770 if test "${enable_sjlj_exceptions+set}" = set; then
5771 enableval="$enable_sjlj_exceptions"
5773 else
5774 cat > conftest.$ac_ext << EOF
5775 #line 5775 "configure"
5776 struct S { ~S(); };
5777 void bar();
5778 void foo()
5780 S s;
5781 bar();
5784 old_CXXFLAGS="$CXXFLAGS"
5785 CXXFLAGS=-S
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; then
5791 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5792 enable_sjlj_exceptions=yes
5793 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5794 enable_sjlj_exceptions=no
5797 CXXFLAGS="$old_CXXFLAGS"
5798 rm -f conftest*
5800 if test x$enable_sjlj_exceptions = xyes; then
5802 cat >>confdefs.h <<\_ACEOF
5803 #define SJLJ_EXCEPTIONS 1
5804 _ACEOF
5806 ac_exception_model_name=sjlj
5807 elif test x$enable_sjlj_exceptions = xno; then
5808 ac_exception_model_name="call frame"
5809 else
5810 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5811 echo "$as_me: error: unable to detect exception model" >&2;}
5812 { (exit 1); exit 1; }; }
5814 ac_ext=c
5815 ac_cpp='$CPP $CPPFLAGS'
5816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5821 echo "${ECHO_T}$ac_exception_model_name" >&6
5823 # If we are non using SJLJ exceptions, and this host does not have support
5824 # for unwinding from a signal handler, enable checked dereferences and divides.
5825 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5826 CHECKREFSPEC=-fcheck-references
5827 DIVIDESPEC=-fuse-divide-subroutine
5828 EXCEPTIONSPEC=
5831 # See if the user wants to disable java.net. This is the mildly
5832 # ugly way that we admit that target-side configuration sucks.
5833 # Check whether --enable-java-net or --disable-java-net was given.
5834 if test "${enable_java_net+set}" = set; then
5835 enableval="$enable_java_net"
5839 # Whether java.net is built by default can depend on the target.
5840 if test -z "$enable_java_net"; then
5841 enable_java_net=${enable_java_net_default-yes}
5843 if test "$enable_java_net" = no; then
5845 cat >>confdefs.h <<\_ACEOF
5846 #define DISABLE_JAVA_NET 1
5847 _ACEOF
5851 # See if the user wants to configure without libffi. Some
5852 # architectures don't support it, and default values are set in
5853 # configure.host.
5855 # Check whether --with-libffi or --without-libffi was given.
5856 if test "${with_libffi+set}" = set; then
5857 withval="$with_libffi"
5859 else
5860 with_libffi=${with_libffi_default-yes}
5863 LIBFFI=
5864 LIBFFIINCS=
5865 if test "$with_libffi" != no; then
5867 cat >>confdefs.h <<\_ACEOF
5868 #define USE_LIBFFI 1
5869 _ACEOF
5871 LIBFFI=../libffi/libffi_convenience.la
5872 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5877 # See if the user wants to disable JVMPI support.
5878 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5879 if test "${enable_jvmpi+set}" = set; then
5880 enableval="$enable_jvmpi"
5884 if test "$enable_jvmpi" != no; then
5886 cat >>confdefs.h <<\_ACEOF
5887 #define ENABLE_JVMPI 1
5888 _ACEOF
5892 # If the target is an eCos system, use the appropriate eCos
5893 # I/O routines.
5894 # FIXME: this should not be a local option but a global target
5895 # system; at present there is no eCos target.
5896 TARGET_ECOS=${PROCESS-"no"}
5898 # Check whether --with-ecos or --without-ecos was given.
5899 if test "${with_ecos+set}" = set; then
5900 withval="$with_ecos"
5901 TARGET_ECOS="$with_ecos"
5905 supply_backtrace=no
5907 PLATFORM_INNER_NAT_HDRS=
5908 case "$TARGET_ECOS" in
5909 no) case "$host" in
5910 *mingw*)
5911 PLATFORM=Win32
5912 PLATFORMNET=Win32
5913 PLATFORMH=win32.h
5915 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5916 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5917 LD_PROG=`$CC --print-prog-name=ld`
5918 LD_VERSION=`$LD_PROG --version`
5919 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5920 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5921 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5922 LD_OK="ok"
5923 else
5924 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5925 LD_OK="ok"
5928 if test "x$LD_OK" != x; then
5929 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5930 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5933 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5934 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5935 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5937 cat >>confdefs.h <<\_ACEOF
5938 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5939 _ACEOF
5944 PLATFORM=Posix
5945 PLATFORMNET=Posix
5946 PLATFORMH=posix.h
5947 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5949 esac
5952 PLATFORM=Ecos
5953 PLATFORMNET=NoNet
5955 cat >>confdefs.h <<\_ACEOF
5956 #define ECOS 1
5957 _ACEOF
5959 PLATFORMH=posix.h
5961 esac
5963 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5966 ac_ext=c
5967 ac_cpp='$CPP $CPPFLAGS'
5968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5971 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5972 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5973 # On Suns, sometimes $CPP names a directory.
5974 if test -n "$CPP" && test -d "$CPP"; then
5975 CPP=
5977 if test -z "$CPP"; then
5978 if test "${ac_cv_prog_CPP+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 # Double quotes because CPP needs to be expanded
5982 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5984 ac_preproc_ok=false
5985 for ac_c_preproc_warn_flag in '' yes
5987 # Use a header file that comes with gcc, so configuring glibc
5988 # with a fresh cross-compiler works.
5989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990 # <limits.h> exists even on freestanding compilers.
5991 # On the NeXT, cc -E runs the code through the compiler's parser,
5992 # not just through cpp. "Syntax error" is here to catch this case.
5993 cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #ifdef __STDC__
6000 # include <limits.h>
6001 #else
6002 # include <assert.h>
6003 #endif
6004 Syntax error
6005 _ACEOF
6006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } >/dev/null; then
6014 if test -s conftest.err; then
6015 ac_cpp_err=$ac_c_preproc_warn_flag
6016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6017 else
6018 ac_cpp_err=
6020 else
6021 ac_cpp_err=yes
6023 if test -z "$ac_cpp_err"; then
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 # Broken: fails on valid input.
6030 continue
6032 rm -f conftest.err conftest.$ac_ext
6034 # OK, works on sane cases. Now check whether non-existent headers
6035 # can be detected and how.
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <ac_nonexistent.h>
6043 _ACEOF
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null; then
6052 if test -s conftest.err; then
6053 ac_cpp_err=$ac_c_preproc_warn_flag
6054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6055 else
6056 ac_cpp_err=
6058 else
6059 ac_cpp_err=yes
6061 if test -z "$ac_cpp_err"; then
6062 # Broken: success on invalid input.
6063 continue
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 # Passes both tests.
6069 ac_preproc_ok=:
6070 break
6072 rm -f conftest.err conftest.$ac_ext
6074 done
6075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6076 rm -f conftest.err conftest.$ac_ext
6077 if $ac_preproc_ok; then
6078 break
6081 done
6082 ac_cv_prog_CPP=$CPP
6085 CPP=$ac_cv_prog_CPP
6086 else
6087 ac_cv_prog_CPP=$CPP
6089 echo "$as_me:$LINENO: result: $CPP" >&5
6090 echo "${ECHO_T}$CPP" >&6
6091 ac_preproc_ok=false
6092 for ac_c_preproc_warn_flag in '' yes
6094 # Use a header file that comes with gcc, so configuring glibc
6095 # with a fresh cross-compiler works.
6096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6097 # <limits.h> exists even on freestanding compilers.
6098 # On the NeXT, cc -E runs the code through the compiler's parser,
6099 # not just through cpp. "Syntax error" is here to catch this case.
6100 cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h. */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 #ifdef __STDC__
6107 # include <limits.h>
6108 #else
6109 # include <assert.h>
6110 #endif
6111 Syntax error
6112 _ACEOF
6113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } >/dev/null; then
6121 if test -s conftest.err; then
6122 ac_cpp_err=$ac_c_preproc_warn_flag
6123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6124 else
6125 ac_cpp_err=
6127 else
6128 ac_cpp_err=yes
6130 if test -z "$ac_cpp_err"; then
6132 else
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 # Broken: fails on valid input.
6137 continue
6139 rm -f conftest.err conftest.$ac_ext
6141 # OK, works on sane cases. Now check whether non-existent headers
6142 # can be detected and how.
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <ac_nonexistent.h>
6150 _ACEOF
6151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null; then
6159 if test -s conftest.err; then
6160 ac_cpp_err=$ac_c_preproc_warn_flag
6161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6162 else
6163 ac_cpp_err=
6165 else
6166 ac_cpp_err=yes
6168 if test -z "$ac_cpp_err"; then
6169 # Broken: success on invalid input.
6170 continue
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 # Passes both tests.
6176 ac_preproc_ok=:
6177 break
6179 rm -f conftest.err conftest.$ac_ext
6181 done
6182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6183 rm -f conftest.err conftest.$ac_ext
6184 if $ac_preproc_ok; then
6186 else
6187 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6188 See \`config.log' for more details." >&5
6189 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6190 See \`config.log' for more details." >&2;}
6191 { (exit 1); exit 1; }; }
6194 ac_ext=c
6195 ac_cpp='$CPP $CPPFLAGS'
6196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201 echo "$as_me:$LINENO: checking for egrep" >&5
6202 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6203 if test "${ac_cv_prog_egrep+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6207 then ac_cv_prog_egrep='grep -E'
6208 else ac_cv_prog_egrep='egrep'
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6212 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6213 EGREP=$ac_cv_prog_egrep
6216 cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h. */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 #include <stdint.h>
6224 _ACEOF
6225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6226 $EGREP "uint32_t" >/dev/null 2>&1; then
6228 cat >>confdefs.h <<\_ACEOF
6229 #define HAVE_INT32_DEFINED 1
6230 _ACEOF
6233 rm -f conftest*
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #include <inttypes.h>
6243 _ACEOF
6244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6245 $EGREP "uint32_t" >/dev/null 2>&1; then
6247 cat >>confdefs.h <<\_ACEOF
6248 #define HAVE_INT32_DEFINED 1
6249 _ACEOF
6252 rm -f conftest*
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 #include <sys/types.h>
6262 _ACEOF
6263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 $EGREP "u_int32_t" >/dev/null 2>&1; then
6266 cat >>confdefs.h <<\_ACEOF
6267 #define HAVE_BSD_INT32_DEFINED 1
6268 _ACEOF
6271 rm -f conftest*
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h. */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 #include <sys/config.h>
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "u_int32_t" >/dev/null 2>&1; then
6285 cat >>confdefs.h <<\_ACEOF
6286 #define HAVE_BSD_INT32_DEFINED 1
6287 _ACEOF
6290 rm -f conftest*
6295 if test "$PLATFORM" = Win32; then
6296 USING_WIN32_PLATFORM_TRUE=
6297 USING_WIN32_PLATFORM_FALSE='#'
6298 else
6299 USING_WIN32_PLATFORM_TRUE='#'
6300 USING_WIN32_PLATFORM_FALSE=
6305 if test "$PLATFORM" = Posix; then
6306 USING_POSIX_PLATFORM_TRUE=
6307 USING_POSIX_PLATFORM_FALSE='#'
6308 else
6309 USING_POSIX_PLATFORM_TRUE='#'
6310 USING_POSIX_PLATFORM_FALSE=
6315 if test "$PLATFORM" = Ecos; then
6316 USING_ECOS_PLATFORM_TRUE=
6317 USING_ECOS_PLATFORM_FALSE='#'
6318 else
6319 USING_ECOS_PLATFORM_TRUE='#'
6320 USING_ECOS_PLATFORM_FALSE=
6324 case "$host" in
6325 *-darwin*) DARWIN_CRT=true ;;
6326 *) DARWIN_CRT=false ;;
6327 esac
6330 if $DARWIN_CRT; then
6331 USING_DARWIN_CRT_TRUE=
6332 USING_DARWIN_CRT_FALSE='#'
6333 else
6334 USING_DARWIN_CRT_TRUE='#'
6335 USING_DARWIN_CRT_FALSE=
6339 # These may not be defined in a non-ANS conformant embedded system.
6340 # FIXME: Should these case a runtime exception in that case?
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <time.h>
6349 _ACEOF
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 $EGREP "mktime" >/dev/null 2>&1; then
6353 cat >>confdefs.h <<\_ACEOF
6354 #define HAVE_MKTIME 1
6355 _ACEOF
6358 rm -f conftest*
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <time.h>
6368 _ACEOF
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 $EGREP "localtime" >/dev/null 2>&1; then
6372 cat >>confdefs.h <<\_ACEOF
6373 #define HAVE_LOCALTIME 1
6374 _ACEOF
6377 rm -f conftest*
6380 # Create the subdirectory for natFile.cc, or the attempt
6381 # to create the link will fail.
6382 test -d java || mkdir java
6383 test -d java/io || mkdir java/io
6384 test -d gnu || mkdir gnu
6385 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6388 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6389 test -d java/lang || mkdir java/lang
6390 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6392 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6395 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6396 test -d java/net || mkdir java/net
6397 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6399 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6402 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6403 test -d gnu/java || mkdir gnu/java
6404 test -d gnu/java/net || mkdir gnu/java/net
6405 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6407 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6410 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6411 test -d gnu/java/nio || mkdir gnu/java/nio
6412 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6414 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6416 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6417 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6420 case "${host}" in
6421 *mingw*)
6422 SYSTEMSPEC="-lgdi32 -lws2_32"
6423 if test "${with_win32_nlsapi}" = "unicows"; then
6424 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6428 SYSTEMSPEC=
6430 esac
6433 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6437 # Check whether --with-system-zlib or --without-system-zlib was given.
6438 if test "${with_system_zlib+set}" = set; then
6439 withval="$with_system_zlib"
6442 ZLIBSPEC=
6444 ZLIBTESTSPEC=
6447 echo "$as_me:$LINENO: checking for X" >&5
6448 echo $ECHO_N "checking for X... $ECHO_C" >&6
6451 # Check whether --with-x or --without-x was given.
6452 if test "${with_x+set}" = set; then
6453 withval="$with_x"
6456 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6457 if test "x$with_x" = xno; then
6458 # The user explicitly disabled X.
6459 have_x=disabled
6460 else
6461 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6462 # Both variables are already set.
6463 have_x=yes
6464 else
6465 if test "${ac_cv_have_x+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 # One or both of the vars are not set, and there is no cached value.
6469 ac_x_includes=no ac_x_libraries=no
6470 rm -fr conftest.dir
6471 if mkdir conftest.dir; then
6472 cd conftest.dir
6473 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6474 cat >Imakefile <<'_ACEOF'
6475 acfindx:
6476 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6477 _ACEOF
6478 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6480 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6481 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6482 for ac_extension in a so sl; do
6483 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6484 test -f $ac_im_libdir/libX11.$ac_extension; then
6485 ac_im_usrlibdir=$ac_im_libdir; break
6487 done
6488 # Screen out bogus values from the imake configuration. They are
6489 # bogus both because they are the default anyway, and because
6490 # using them would break gcc on systems where it needs fixed includes.
6491 case $ac_im_incroot in
6492 /usr/include) ;;
6493 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6494 esac
6495 case $ac_im_usrlibdir in
6496 /usr/lib | /lib) ;;
6497 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6498 esac
6500 cd ..
6501 rm -fr conftest.dir
6504 # Standard set of common directories for X headers.
6505 # Check X11 before X11Rn because it is often a symlink to the current release.
6506 ac_x_header_dirs='
6507 /usr/X11/include
6508 /usr/X11R6/include
6509 /usr/X11R5/include
6510 /usr/X11R4/include
6512 /usr/include/X11
6513 /usr/include/X11R6
6514 /usr/include/X11R5
6515 /usr/include/X11R4
6517 /usr/local/X11/include
6518 /usr/local/X11R6/include
6519 /usr/local/X11R5/include
6520 /usr/local/X11R4/include
6522 /usr/local/include/X11
6523 /usr/local/include/X11R6
6524 /usr/local/include/X11R5
6525 /usr/local/include/X11R4
6527 /usr/X386/include
6528 /usr/x386/include
6529 /usr/XFree86/include/X11
6531 /usr/include
6532 /usr/local/include
6533 /usr/unsupported/include
6534 /usr/athena/include
6535 /usr/local/x11r5/include
6536 /usr/lpp/Xamples/include
6538 /usr/openwin/include
6539 /usr/openwin/share/include'
6541 if test "$ac_x_includes" = no; then
6542 # Guess where to find include files, by looking for Intrinsic.h.
6543 # First, try using that file with no special directory specified.
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h. */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #include <X11/Intrinsic.h>
6551 _ACEOF
6552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } >/dev/null; then
6560 if test -s conftest.err; then
6561 ac_cpp_err=$ac_c_preproc_warn_flag
6562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6563 else
6564 ac_cpp_err=
6566 else
6567 ac_cpp_err=yes
6569 if test -z "$ac_cpp_err"; then
6570 # We can compile using X headers with no special include directory.
6571 ac_x_includes=
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 for ac_dir in $ac_x_header_dirs; do
6577 if test -r "$ac_dir/X11/Intrinsic.h"; then
6578 ac_x_includes=$ac_dir
6579 break
6581 done
6583 rm -f conftest.err conftest.$ac_ext
6584 fi # $ac_x_includes = no
6586 if test "$ac_x_libraries" = no; then
6587 # Check for the libraries.
6588 # See if we find them without any special options.
6589 # Don't add to $LIBS permanently.
6590 ac_save_LIBS=$LIBS
6591 LIBS="-lXt $LIBS"
6592 if test x$gcc_no_link = xyes; then
6593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6595 { (exit 1); exit 1; }; }
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 #include <X11/Intrinsic.h>
6605 main ()
6607 XtMalloc (0)
6609 return 0;
6611 _ACEOF
6612 rm -f conftest.$ac_objext conftest$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 LIBS=$ac_save_LIBS
6635 # We can link X programs with no special library path.
6636 ac_x_libraries=
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 LIBS=$ac_save_LIBS
6642 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6644 # Don't even attempt the hair of trying to link an X program!
6645 for ac_extension in a so sl; do
6646 if test -r $ac_dir/libXt.$ac_extension; then
6647 ac_x_libraries=$ac_dir
6648 break 2
6650 done
6651 done
6653 rm -f conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6655 fi # $ac_x_libraries = no
6657 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6658 # Didn't find X anywhere. Cache the known absence of X.
6659 ac_cv_have_x="have_x=no"
6660 else
6661 # Record where we found X for the cache.
6662 ac_cv_have_x="have_x=yes \
6663 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6668 eval "$ac_cv_have_x"
6669 fi # $with_x != no
6671 if test "$have_x" != yes; then
6672 echo "$as_me:$LINENO: result: $have_x" >&5
6673 echo "${ECHO_T}$have_x" >&6
6674 no_x=yes
6675 else
6676 # If each of the values was on the command line, it overrides each guess.
6677 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6678 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6679 # Update the cache value to reflect the command line values.
6680 ac_cv_have_x="have_x=yes \
6681 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6682 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6683 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6686 if test "$no_x" = yes; then
6687 # Not all programs may use this symbol, but it does not hurt to define it.
6689 cat >>confdefs.h <<\_ACEOF
6690 #define X_DISPLAY_MISSING 1
6691 _ACEOF
6693 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6694 else
6695 if test -n "$x_includes"; then
6696 X_CFLAGS="$X_CFLAGS -I$x_includes"
6699 # It would also be nice to do this for all -L options, not just this one.
6700 if test -n "$x_libraries"; then
6701 X_LIBS="$X_LIBS -L$x_libraries"
6702 # For Solaris; some versions of Sun CC require a space after -R and
6703 # others require no space. Words are not sufficient . . . .
6704 case `(uname -sr) 2>/dev/null` in
6705 "SunOS 5"*)
6706 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6707 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6708 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6709 if test x$gcc_no_link = xyes; then
6710 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6711 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6712 { (exit 1); exit 1; }; }
6714 cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h. */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6722 main ()
6726 return 0;
6728 _ACEOF
6729 rm -f conftest.$ac_objext conftest$ac_exeext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731 (eval $ac_link) 2>conftest.er1
6732 ac_status=$?
6733 grep -v '^ *+' conftest.er1 >conftest.err
6734 rm -f conftest.er1
6735 cat conftest.err >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -z "$ac_c_werror_flag"
6739 || test ! -s conftest.err'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest$ac_exeext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 ac_R_nospace=yes
6752 else
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 ac_R_nospace=no
6758 rm -f conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6760 if test $ac_R_nospace = yes; then
6761 echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6
6763 X_LIBS="$X_LIBS -R$x_libraries"
6764 else
6765 LIBS="$ac_xsave_LIBS -R $x_libraries"
6766 if test x$gcc_no_link = xyes; then
6767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6769 { (exit 1); exit 1; }; }
6771 cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h. */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6779 main ()
6783 return 0;
6785 _ACEOF
6786 rm -f conftest.$ac_objext conftest$ac_exeext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6788 (eval $ac_link) 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -z "$ac_c_werror_flag"
6796 || test ! -s conftest.err'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 (eval $ac_try) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; } &&
6802 { ac_try='test -s conftest$ac_exeext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_R_space=yes
6809 else
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6813 ac_R_space=no
6815 rm -f conftest.err conftest.$ac_objext \
6816 conftest$ac_exeext conftest.$ac_ext
6817 if test $ac_R_space = yes; then
6818 echo "$as_me:$LINENO: result: yes" >&5
6819 echo "${ECHO_T}yes" >&6
6820 X_LIBS="$X_LIBS -R $x_libraries"
6821 else
6822 echo "$as_me:$LINENO: result: neither works" >&5
6823 echo "${ECHO_T}neither works" >&6
6826 LIBS=$ac_xsave_LIBS
6827 esac
6830 # Check for system-dependent libraries X programs must link with.
6831 # Do this before checking for the system-independent R6 libraries
6832 # (-lICE), since we may need -lsocket or whatever for X linking.
6834 if test "$ISC" = yes; then
6835 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6836 else
6837 # Martyn Johnson says this is needed for Ultrix, if the X
6838 # libraries were built with DECnet support. And Karl Berry says
6839 # the Alpha needs dnet_stub (dnet does not exist).
6840 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6841 if test x$gcc_no_link = xyes; then
6842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6844 { (exit 1); exit 1; }; }
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6853 /* Override any gcc2 internal prototype to avoid an error. */
6854 #ifdef __cplusplus
6855 extern "C"
6856 #endif
6857 /* We use char because int might match the return type of a gcc2
6858 builtin and then its argument prototype would still apply. */
6859 char XOpenDisplay ();
6861 main ()
6863 XOpenDisplay ();
6865 return 0;
6867 _ACEOF
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870 (eval $ac_link) 2>conftest.er1
6871 ac_status=$?
6872 grep -v '^ *+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
6877 { ac_try='test -z "$ac_c_werror_flag"
6878 || test ! -s conftest.err'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; } &&
6884 { ac_try='test -s conftest$ac_exeext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6891 else
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6895 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6896 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6897 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 ac_check_lib_save_LIBS=$LIBS
6901 LIBS="-ldnet $LIBS"
6902 if test x$gcc_no_link = xyes; then
6903 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6904 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6905 { (exit 1); exit 1; }; }
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6914 /* Override any gcc2 internal prototype to avoid an error. */
6915 #ifdef __cplusplus
6916 extern "C"
6917 #endif
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6920 char dnet_ntoa ();
6922 main ()
6924 dnet_ntoa ();
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931 (eval $ac_link) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try='test -s conftest$ac_exeext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_cv_lib_dnet_dnet_ntoa=yes
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_lib_dnet_dnet_ntoa=no
6958 rm -f conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 LIBS=$ac_check_lib_save_LIBS
6962 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6963 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6964 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6965 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6968 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6969 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6970 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6971 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 ac_check_lib_save_LIBS=$LIBS
6975 LIBS="-ldnet_stub $LIBS"
6976 if test x$gcc_no_link = xyes; then
6977 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6978 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6979 { (exit 1); exit 1; }; }
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6988 /* Override any gcc2 internal prototype to avoid an error. */
6989 #ifdef __cplusplus
6990 extern "C"
6991 #endif
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
6994 char dnet_ntoa ();
6996 main ()
6998 dnet_ntoa ();
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest$ac_exeext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_lib_dnet_stub_dnet_ntoa=no
7032 rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 LIBS=$ac_check_lib_save_LIBS
7036 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7037 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7038 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7039 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7044 rm -f conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
7046 LIBS="$ac_xsave_LIBS"
7048 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7049 # to get the SysV transport functions.
7050 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7051 # needs -lnsl.
7052 # The nsl library prevents programs from opening the X display
7053 # on Irix 5.2, according to T.E. Dickey.
7054 # The functions gethostbyname, getservbyname, and inet_addr are
7055 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7056 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7057 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7058 if test "${ac_cv_func_gethostbyname+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061 if test x$gcc_no_link = xyes; then
7062 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7063 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7064 { (exit 1); exit 1; }; }
7066 cat >conftest.$ac_ext <<_ACEOF
7067 /* confdefs.h. */
7068 _ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7072 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7074 #define gethostbyname innocuous_gethostbyname
7076 /* System header to define __stub macros and hopefully few prototypes,
7077 which can conflict with char gethostbyname (); below.
7078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7079 <limits.h> exists even on freestanding compilers. */
7081 #ifdef __STDC__
7082 # include <limits.h>
7083 #else
7084 # include <assert.h>
7085 #endif
7087 #undef gethostbyname
7089 /* Override any gcc2 internal prototype to avoid an error. */
7090 #ifdef __cplusplus
7091 extern "C"
7093 #endif
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7096 char gethostbyname ();
7097 /* The GNU C library defines this for functions which it implements
7098 to always fail with ENOSYS. Some functions are actually named
7099 something starting with __ and the normal name is an alias. */
7100 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7101 choke me
7102 #else
7103 char (*f) () = gethostbyname;
7104 #endif
7105 #ifdef __cplusplus
7107 #endif
7110 main ()
7112 return f != gethostbyname;
7114 return 0;
7116 _ACEOF
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119 (eval $ac_link) 2>conftest.er1
7120 ac_status=$?
7121 grep -v '^ *+' conftest.er1 >conftest.err
7122 rm -f conftest.er1
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -z "$ac_c_werror_flag"
7127 || test ! -s conftest.err'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; } &&
7133 { ac_try='test -s conftest$ac_exeext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 ac_cv_func_gethostbyname=yes
7140 else
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 ac_cv_func_gethostbyname=no
7146 rm -f conftest.err conftest.$ac_objext \
7147 conftest$ac_exeext conftest.$ac_ext
7149 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7150 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7152 if test $ac_cv_func_gethostbyname = no; then
7153 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7154 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7155 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158 ac_check_lib_save_LIBS=$LIBS
7159 LIBS="-lnsl $LIBS"
7160 if test x$gcc_no_link = xyes; then
7161 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7163 { (exit 1); exit 1; }; }
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7172 /* Override any gcc2 internal prototype to avoid an error. */
7173 #ifdef __cplusplus
7174 extern "C"
7175 #endif
7176 /* We use char because int might match the return type of a gcc2
7177 builtin and then its argument prototype would still apply. */
7178 char gethostbyname ();
7180 main ()
7182 gethostbyname ();
7184 return 0;
7186 _ACEOF
7187 rm -f conftest.$ac_objext conftest$ac_exeext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189 (eval $ac_link) 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } &&
7196 { ac_try='test -z "$ac_c_werror_flag"
7197 || test ! -s conftest.err'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; } &&
7203 { ac_try='test -s conftest$ac_exeext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_lib_nsl_gethostbyname=yes
7210 else
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7214 ac_cv_lib_nsl_gethostbyname=no
7216 rm -f conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 LIBS=$ac_check_lib_save_LIBS
7220 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7221 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7222 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7226 if test $ac_cv_lib_nsl_gethostbyname = no; then
7227 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7228 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7229 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 ac_check_lib_save_LIBS=$LIBS
7233 LIBS="-lbsd $LIBS"
7234 if test x$gcc_no_link = xyes; then
7235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7237 { (exit 1); exit 1; }; }
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 #ifdef __cplusplus
7248 extern "C"
7249 #endif
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7252 char gethostbyname ();
7254 main ()
7256 gethostbyname ();
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -z "$ac_c_werror_flag"
7271 || test ! -s conftest.err'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try='test -s conftest$ac_exeext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 ac_cv_lib_bsd_gethostbyname=yes
7284 else
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7288 ac_cv_lib_bsd_gethostbyname=no
7290 rm -f conftest.err conftest.$ac_objext \
7291 conftest$ac_exeext conftest.$ac_ext
7292 LIBS=$ac_check_lib_save_LIBS
7294 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7295 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7296 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7303 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7304 # socket/setsockopt and other routines are undefined under SCO ODT
7305 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7306 # on later versions), says Simon Leinen: it contains gethostby*
7307 # variants that don't use the name server (or something). -lsocket
7308 # must be given before -lnsl if both are needed. We assume that
7309 # if connect needs -lnsl, so does gethostbyname.
7310 echo "$as_me:$LINENO: checking for connect" >&5
7311 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7312 if test "${ac_cv_func_connect+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 if test x$gcc_no_link = xyes; then
7316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7318 { (exit 1); exit 1; }; }
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h. */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7328 #define connect innocuous_connect
7330 /* System header to define __stub macros and hopefully few prototypes,
7331 which can conflict with char connect (); below.
7332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7333 <limits.h> exists even on freestanding compilers. */
7335 #ifdef __STDC__
7336 # include <limits.h>
7337 #else
7338 # include <assert.h>
7339 #endif
7341 #undef connect
7343 /* Override any gcc2 internal prototype to avoid an error. */
7344 #ifdef __cplusplus
7345 extern "C"
7347 #endif
7348 /* We use char because int might match the return type of a gcc2
7349 builtin and then its argument prototype would still apply. */
7350 char connect ();
7351 /* The GNU C library defines this for functions which it implements
7352 to always fail with ENOSYS. Some functions are actually named
7353 something starting with __ and the normal name is an alias. */
7354 #if defined (__stub_connect) || defined (__stub___connect)
7355 choke me
7356 #else
7357 char (*f) () = connect;
7358 #endif
7359 #ifdef __cplusplus
7361 #endif
7364 main ()
7366 return f != connect;
7368 return 0;
7370 _ACEOF
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373 (eval $ac_link) 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -z "$ac_c_werror_flag"
7381 || test ! -s conftest.err'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try='test -s conftest$ac_exeext'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 (eval $ac_try) 2>&5
7390 ac_status=$?
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 ac_cv_func_connect=yes
7394 else
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 ac_cv_func_connect=no
7400 rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7403 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7404 echo "${ECHO_T}$ac_cv_func_connect" >&6
7406 if test $ac_cv_func_connect = no; then
7407 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7408 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7409 if test "${ac_cv_lib_socket_connect+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412 ac_check_lib_save_LIBS=$LIBS
7413 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7414 if test x$gcc_no_link = xyes; then
7415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7417 { (exit 1); exit 1; }; }
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7426 /* Override any gcc2 internal prototype to avoid an error. */
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 /* We use char because int might match the return type of a gcc2
7431 builtin and then its argument prototype would still apply. */
7432 char connect ();
7434 main ()
7436 connect ();
7438 return 0;
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>conftest.er1
7444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag"
7451 || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest$ac_exeext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_lib_socket_connect=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_cv_lib_socket_connect=no
7470 rm -f conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7472 LIBS=$ac_check_lib_save_LIBS
7474 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7475 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7476 if test $ac_cv_lib_socket_connect = yes; then
7477 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7482 # Guillermo Gomez says -lposix is necessary on A/UX.
7483 echo "$as_me:$LINENO: checking for remove" >&5
7484 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7485 if test "${ac_cv_func_remove+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 if test x$gcc_no_link = xyes; then
7489 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7490 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7491 { (exit 1); exit 1; }; }
7493 cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h. */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7501 #define remove innocuous_remove
7503 /* System header to define __stub macros and hopefully few prototypes,
7504 which can conflict with char remove (); below.
7505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7506 <limits.h> exists even on freestanding compilers. */
7508 #ifdef __STDC__
7509 # include <limits.h>
7510 #else
7511 # include <assert.h>
7512 #endif
7514 #undef remove
7516 /* Override any gcc2 internal prototype to avoid an error. */
7517 #ifdef __cplusplus
7518 extern "C"
7520 #endif
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7523 char remove ();
7524 /* The GNU C library defines this for functions which it implements
7525 to always fail with ENOSYS. Some functions are actually named
7526 something starting with __ and the normal name is an alias. */
7527 #if defined (__stub_remove) || defined (__stub___remove)
7528 choke me
7529 #else
7530 char (*f) () = remove;
7531 #endif
7532 #ifdef __cplusplus
7534 #endif
7537 main ()
7539 return f != remove;
7541 return 0;
7543 _ACEOF
7544 rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7546 (eval $ac_link) 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -z "$ac_c_werror_flag"
7554 || test ! -s conftest.err'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; } &&
7560 { ac_try='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_cv_func_remove=yes
7567 else
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_func_remove=no
7573 rm -f conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7576 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7577 echo "${ECHO_T}$ac_cv_func_remove" >&6
7579 if test $ac_cv_func_remove = no; then
7580 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7581 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7582 if test "${ac_cv_lib_posix_remove+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 ac_check_lib_save_LIBS=$LIBS
7586 LIBS="-lposix $LIBS"
7587 if test x$gcc_no_link = xyes; then
7588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7590 { (exit 1); exit 1; }; }
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7599 /* Override any gcc2 internal prototype to avoid an error. */
7600 #ifdef __cplusplus
7601 extern "C"
7602 #endif
7603 /* We use char because int might match the return type of a gcc2
7604 builtin and then its argument prototype would still apply. */
7605 char remove ();
7607 main ()
7609 remove ();
7611 return 0;
7613 _ACEOF
7614 rm -f conftest.$ac_objext conftest$ac_exeext
7615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7616 (eval $ac_link) 2>conftest.er1
7617 ac_status=$?
7618 grep -v '^ *+' conftest.er1 >conftest.err
7619 rm -f conftest.er1
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } &&
7623 { ac_try='test -z "$ac_c_werror_flag"
7624 || test ! -s conftest.err'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 (eval $ac_try) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; } &&
7630 { ac_try='test -s conftest$ac_exeext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 ac_cv_lib_posix_remove=yes
7637 else
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7641 ac_cv_lib_posix_remove=no
7643 rm -f conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 LIBS=$ac_check_lib_save_LIBS
7647 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7648 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7649 if test $ac_cv_lib_posix_remove = yes; then
7650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7655 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7656 echo "$as_me:$LINENO: checking for shmat" >&5
7657 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7658 if test "${ac_cv_func_shmat+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661 if test x$gcc_no_link = xyes; then
7662 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7663 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7664 { (exit 1); exit 1; }; }
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h. */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7674 #define shmat innocuous_shmat
7676 /* System header to define __stub macros and hopefully few prototypes,
7677 which can conflict with char shmat (); below.
7678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7679 <limits.h> exists even on freestanding compilers. */
7681 #ifdef __STDC__
7682 # include <limits.h>
7683 #else
7684 # include <assert.h>
7685 #endif
7687 #undef shmat
7689 /* Override any gcc2 internal prototype to avoid an error. */
7690 #ifdef __cplusplus
7691 extern "C"
7693 #endif
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7696 char shmat ();
7697 /* The GNU C library defines this for functions which it implements
7698 to always fail with ENOSYS. Some functions are actually named
7699 something starting with __ and the normal name is an alias. */
7700 #if defined (__stub_shmat) || defined (__stub___shmat)
7701 choke me
7702 #else
7703 char (*f) () = shmat;
7704 #endif
7705 #ifdef __cplusplus
7707 #endif
7710 main ()
7712 return f != shmat;
7714 return 0;
7716 _ACEOF
7717 rm -f conftest.$ac_objext conftest$ac_exeext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719 (eval $ac_link) 2>conftest.er1
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_c_werror_flag"
7727 || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 ac_cv_func_shmat=yes
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 ac_cv_func_shmat=no
7746 rm -f conftest.err conftest.$ac_objext \
7747 conftest$ac_exeext conftest.$ac_ext
7749 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7750 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7752 if test $ac_cv_func_shmat = no; then
7753 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7754 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7755 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758 ac_check_lib_save_LIBS=$LIBS
7759 LIBS="-lipc $LIBS"
7760 if test x$gcc_no_link = xyes; then
7761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7763 { (exit 1); exit 1; }; }
7765 cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h. */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7772 /* Override any gcc2 internal prototype to avoid an error. */
7773 #ifdef __cplusplus
7774 extern "C"
7775 #endif
7776 /* We use char because int might match the return type of a gcc2
7777 builtin and then its argument prototype would still apply. */
7778 char shmat ();
7780 main ()
7782 shmat ();
7784 return 0;
7786 _ACEOF
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7789 (eval $ac_link) 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_c_werror_flag"
7797 || test ! -s conftest.err'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; } &&
7803 { ac_try='test -s conftest$ac_exeext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 ac_cv_lib_ipc_shmat=yes
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7814 ac_cv_lib_ipc_shmat=no
7816 rm -f conftest.err conftest.$ac_objext \
7817 conftest$ac_exeext conftest.$ac_ext
7818 LIBS=$ac_check_lib_save_LIBS
7820 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7821 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7822 if test $ac_cv_lib_ipc_shmat = yes; then
7823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7829 # Check for libraries that X11R6 Xt/Xaw programs need.
7830 ac_save_LDFLAGS=$LDFLAGS
7831 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7832 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7833 # check for ICE first), but we must link in the order -lSM -lICE or
7834 # we get undefined symbols. So assume we have SM if we have ICE.
7835 # These have to be linked with before -lX11, unlike the other
7836 # libraries we check for below, so use a different variable.
7837 # John Interrante, Karl Berry
7838 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7839 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7840 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843 ac_check_lib_save_LIBS=$LIBS
7844 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7845 if test x$gcc_no_link = xyes; then
7846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7848 { (exit 1); exit 1; }; }
7850 cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h. */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 #ifdef __cplusplus
7859 extern "C"
7860 #endif
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863 char IceConnectionNumber ();
7865 main ()
7867 IceConnectionNumber ();
7869 return 0;
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag"
7882 || test ! -s conftest.err'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 (eval $ac_try) 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; } &&
7888 { ac_try='test -s conftest$ac_exeext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 (eval $ac_try) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 ac_cv_lib_ICE_IceConnectionNumber=yes
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_cv_lib_ICE_IceConnectionNumber=no
7901 rm -f conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903 LIBS=$ac_check_lib_save_LIBS
7905 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7906 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7907 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7908 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7911 LDFLAGS=$ac_save_LDFLAGS
7916 # Determine which AWT peer libraries to build
7917 # Check whether --enable-java-awt or --disable-java-awt was given.
7918 if test "${enable_java_awt+set}" = set; then
7919 enableval="$enable_java_awt"
7923 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7924 use_xlib_awt=""
7925 use_gtk_awt=""
7926 # The default toolkit to use is the first one specified.
7927 TOOLKIT=
7930 for peer in $peerlibs ; do
7931 case $peer in
7932 xlib)
7933 if test "$no_x" = yes; then
7934 echo "*** xlib peers requested but no X library available" 1>&2
7935 exit 1
7936 else
7937 use_xlib_awt="yes"
7938 if test -z "$TOOLKIT"; then
7939 TOOLKIT=gnu.awt.xlib.XToolkit
7943 gtk)
7944 if test "$no_x" = yes; then
7945 echo "*** xlib peers requested but no X library available" 1>&2
7946 exit 1
7947 else
7948 use_gtk_awt=yes
7949 if test -z "$TOOLKIT"; then
7950 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7952 test -d jniinclude || mkdir jniinclude
7956 use_xlib_awt=
7957 use_gtk_awt=
7958 break
7961 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7962 exit 1
7963 esac
7964 done
7968 if test "$use_xlib_awt" = yes; then
7969 XLIB_AWT_TRUE=
7970 XLIB_AWT_FALSE='#'
7971 else
7972 XLIB_AWT_TRUE='#'
7973 XLIB_AWT_FALSE=
7978 if test "$use_gtk_awt" = yes; then
7979 GTK_AWT_TRUE=
7980 GTK_AWT_FALSE='#'
7981 else
7982 GTK_AWT_TRUE='#'
7983 GTK_AWT_FALSE=
7987 # determine whether to enable the cairo GTK Graphics2D backend
7988 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7989 if test "${enable_gtk_cairo+set}" = set; then
7990 enableval="$enable_gtk_cairo"
7995 if test "x${enable_gtk_cairo}" = xyes; then
7996 GTK_CAIRO_TRUE=
7997 GTK_CAIRO_FALSE='#'
7998 else
7999 GTK_CAIRO_TRUE='#'
8000 GTK_CAIRO_FALSE=
8003 if test "x${enable_gtk_cairo}" = xyes
8004 then
8006 succeeded=no
8008 if test -z "$PKG_CONFIG"; then
8009 # Extract the first word of "pkg-config", so it can be a program name with args.
8010 set dummy pkg-config; ac_word=$2
8011 echo "$as_me:$LINENO: checking for $ac_word" >&5
8012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8013 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016 case $PKG_CONFIG in
8017 [\\/]* | ?:[\\/]*)
8018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8032 done
8033 done
8035 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8037 esac
8039 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8041 if test -n "$PKG_CONFIG"; then
8042 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8043 echo "${ECHO_T}$PKG_CONFIG" >&6
8044 else
8045 echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6
8051 if test "$PKG_CONFIG" = "no" ; then
8052 echo "*** The pkg-config script could not be found. Make sure it is"
8053 echo "*** in your path, or set the PKG_CONFIG environment variable"
8054 echo "*** to the full path to pkg-config."
8055 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8056 else
8057 PKG_CONFIG_MIN_VERSION=0.9.0
8058 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8059 echo "$as_me:$LINENO: checking for cairo" >&5
8060 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8062 if $PKG_CONFIG --exists "cairo" ; then
8063 echo "$as_me:$LINENO: result: yes" >&5
8064 echo "${ECHO_T}yes" >&6
8065 succeeded=yes
8067 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8068 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8069 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8070 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8071 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8073 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8074 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8075 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8076 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8077 echo "${ECHO_T}$CAIRO_LIBS" >&6
8078 else
8079 CAIRO_CFLAGS=""
8080 CAIRO_LIBS=""
8081 ## If we have a custom action on failure, don't print errors, but
8082 ## do set a variable so people can do so.
8083 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8084 echo $CAIRO_PKG_ERRORS
8089 else
8090 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8091 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8095 if test $succeeded = yes; then
8097 else
8098 { { 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
8099 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;}
8100 { (exit 1); exit 1; }; }
8104 succeeded=no
8106 if test -z "$PKG_CONFIG"; then
8107 # Extract the first word of "pkg-config", so it can be a program name with args.
8108 set dummy pkg-config; ac_word=$2
8109 echo "$as_me:$LINENO: checking for $ac_word" >&5
8110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8111 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 else
8114 case $PKG_CONFIG in
8115 [\\/]* | ?:[\\/]*)
8116 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8130 done
8131 done
8133 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8135 esac
8137 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8139 if test -n "$PKG_CONFIG"; then
8140 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8141 echo "${ECHO_T}$PKG_CONFIG" >&6
8142 else
8143 echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6
8149 if test "$PKG_CONFIG" = "no" ; then
8150 echo "*** The pkg-config script could not be found. Make sure it is"
8151 echo "*** in your path, or set the PKG_CONFIG environment variable"
8152 echo "*** to the full path to pkg-config."
8153 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8154 else
8155 PKG_CONFIG_MIN_VERSION=0.9.0
8156 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8157 echo "$as_me:$LINENO: checking for pangoft2" >&5
8158 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8160 if $PKG_CONFIG --exists "pangoft2" ; then
8161 echo "$as_me:$LINENO: result: yes" >&5
8162 echo "${ECHO_T}yes" >&6
8163 succeeded=yes
8165 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8166 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8167 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8168 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8169 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8171 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8172 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8173 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8174 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8175 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8176 else
8177 PANGOFT2_CFLAGS=""
8178 PANGOFT2_LIBS=""
8179 ## If we have a custom action on failure, don't print errors, but
8180 ## do set a variable so people can do so.
8181 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8182 echo $PANGOFT2_PKG_ERRORS
8187 else
8188 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8189 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8193 if test $succeeded = yes; then
8195 else
8196 { { 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
8197 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;}
8198 { (exit 1); exit 1; }; }
8207 # FIXME: this should be _libs on some hosts.
8208 libsubdir=.libs
8210 # Allow the GC to be disabled. Can be useful when debugging.
8211 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8212 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8213 # Check whether --enable-java-gc or --disable-java-gc was given.
8214 if test "${enable_java_gc+set}" = set; then
8215 enableval="$enable_java_gc"
8216 GC=$enableval
8217 else
8218 GC=boehm
8220 GCLIBS=
8221 GCINCS=
8222 GCDEPS=
8223 GCSPEC=
8224 JC1GCSPEC=
8225 GCTESTSPEC=
8226 case "$GC" in
8227 boehm)
8228 echo "$as_me:$LINENO: result: boehm" >&5
8229 echo "${ECHO_T}boehm" >&6
8230 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8231 JC1GCSPEC='-fuse-boehm-gc'
8232 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8233 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8234 GCOBJS=boehm.lo
8235 GCHDR=boehm-gc.h
8236 # The POSIX thread support needs to know this.
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_BOEHM_GC 1
8240 _ACEOF
8244 echo "$as_me:$LINENO: result: none" >&5
8245 echo "${ECHO_T}none" >&6
8246 GCHDR=no-gc.h
8249 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8250 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8251 { (exit 1); exit 1; }; }
8253 esac
8260 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8264 if test "$GC" = boehm; then
8265 USING_BOEHMGC_TRUE=
8266 USING_BOEHMGC_FALSE='#'
8267 else
8268 USING_BOEHMGC_TRUE='#'
8269 USING_BOEHMGC_FALSE=
8274 if test "$GC" = no; then
8275 USING_NOGC_TRUE=
8276 USING_NOGC_FALSE='#'
8277 else
8278 USING_NOGC_TRUE='#'
8279 USING_NOGC_FALSE=
8284 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8285 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8286 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8287 echo "$as_me:$LINENO: result: $THREADS" >&5
8288 echo "${ECHO_T}$THREADS" >&6
8290 case "$THREADS" in
8291 no | none | single)
8292 THREADS=none
8294 posix | posix95 | pthreads)
8295 THREADS=posix
8296 case "$host" in
8297 *-*-linux*)
8299 cat >>confdefs.h <<\_ACEOF
8300 #define LINUX_THREADS 1
8301 _ACEOF
8304 esac
8306 win32)
8308 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8309 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8310 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8311 { (exit 1); exit 1; }; }
8314 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8315 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8316 { (exit 1); exit 1; }; }
8318 esac
8320 THREADCXXFLAGS=
8321 THREADLDFLAGS=
8322 THREADLIBS=
8323 THREADINCS=
8324 THREADDEPS=
8325 THREADH=
8326 THREADSPEC=
8327 case "$THREADS" in
8328 posix)
8329 case "$host" in
8330 *-*-cygwin*)
8331 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8333 *-*-freebsd[1234]*)
8334 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8335 # merely adds pthread_* functions) but it does have a -pthread switch
8336 # which is required at link-time to select -lc_r *instead* of -lc.
8337 THREADLDFLAGS=-pthread
8338 # Don't set THREADSPEC here as might be expected since -pthread is
8339 # not processed when found within a spec file, it must come from
8340 # the command line. For now, the user must provide the -pthread
8341 # switch to link code compiled with gcj. In future, consider adding
8342 # support for weak references to pthread_* functions ala gthr.h API.
8343 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8345 *-*-freebsd*)
8346 # FreeBSD 5 implements a model much closer to other modern UNIX
8347 # which support threads. However, it still does not support
8348 # -lpthread.
8349 THREADLDFLAGS=-pthread
8350 THREADSPEC=-lc_r
8352 alpha*-dec-osf*)
8353 THREADCXXFLAGS=-pthread
8354 # boehm-gc needs some functions from librt, so link that too.
8355 THREADLIBS='-lpthread -lrt'
8356 THREADSPEC='-lpthread -lrt'
8359 THREADLIBS=-lpthread
8360 THREADSPEC=-lpthread
8362 esac
8363 THREADH=posix-threads.h
8364 # MIT pthreads doesn't seem to have the mutexattr functions.
8365 # But for now we don't check for it. We just assume you aren't
8366 # using MIT pthreads.
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8370 _ACEOF
8373 # If we're using the Boehm GC, then we happen to know that it
8374 # defines _REENTRANT, so we don't bother. Eww.
8375 if test "$GC" != boehm; then
8377 cat >>confdefs.h <<\_ACEOF
8378 #define _REENTRANT 1
8379 _ACEOF
8383 cat >>confdefs.h <<\_ACEOF
8384 #define _POSIX_PTHREAD_SEMANTICS 1
8385 _ACEOF
8389 win32)
8390 THREADH=win32-threads.h
8393 none)
8394 THREADH=no-threads.h
8396 esac
8397 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8407 if test "$THREADS" = posix; then
8408 USING_POSIX_THREADS_TRUE=
8409 USING_POSIX_THREADS_FALSE='#'
8410 else
8411 USING_POSIX_THREADS_TRUE='#'
8412 USING_POSIX_THREADS_FALSE=
8417 if test "$THREADS" = win32; then
8418 USING_WIN32_THREADS_TRUE=
8419 USING_WIN32_THREADS_FALSE='#'
8420 else
8421 USING_WIN32_THREADS_TRUE='#'
8422 USING_WIN32_THREADS_FALSE=
8427 if test "$THREADS" = none; then
8428 USING_NO_THREADS_TRUE=
8429 USING_NO_THREADS_FALSE='#'
8430 else
8431 USING_NO_THREADS_TRUE='#'
8432 USING_NO_THREADS_FALSE=
8436 if test -d sysdep; then true; else mkdir sysdep; fi
8437 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8440 HASH_SYNC_SPEC=
8441 # Hash synchronization is only useful with posix threads right now.
8442 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8443 HASH_SYNC_SPEC=-fhash-synchronization
8445 cat >>confdefs.h <<\_ACEOF
8446 #define JV_HASH_SYNCHRONIZATION 1
8447 _ACEOF
8455 if test "$GCC" = yes; then
8456 USING_GCC_TRUE=
8457 USING_GCC_FALSE='#'
8458 else
8459 USING_GCC_TRUE='#'
8460 USING_GCC_FALSE=
8464 # We're in the tree with gcc, and need to include some of its headers.
8465 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8467 # Figure out where generated headers like libgcj-config.h get installed.
8468 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8469 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8470 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8471 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8475 if test "x${with_newlib}" = "xyes"; then
8476 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8477 # may not work correctly, because the compiler may not be able to
8478 # link executables.
8480 # We assume newlib. This lets us hard-code the functions we know
8481 # we'll have.
8483 cat >>confdefs.h <<\_ACEOF
8484 #define HAVE_MEMMOVE 1
8485 _ACEOF
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_MEMCPY 1
8490 _ACEOF
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_STRERROR 1
8495 _ACEOF
8498 cat >>confdefs.h <<\_ACEOF
8499 #define HAVE_TIME 1
8500 _ACEOF
8503 cat >>confdefs.h <<\_ACEOF
8504 #define HAVE_GMTIME_R 1
8505 _ACEOF
8508 cat >>confdefs.h <<\_ACEOF
8509 #define HAVE_LOCALTIME_R 1
8510 _ACEOF
8513 cat >>confdefs.h <<\_ACEOF
8514 #define HAVE_USLEEP_DECL 1
8515 _ACEOF
8517 # This is only for POSIX threads.
8519 cat >>confdefs.h <<\_ACEOF
8520 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8521 _ACEOF
8523 # We also assume we are using gcc, which provides alloca.
8524 cat >>confdefs.h <<\_ACEOF
8525 #define HAVE_ALLOCA 1
8526 _ACEOF
8529 # Assume we do not have getuid and friends.
8531 cat >>confdefs.h <<\_ACEOF
8532 #define NO_GETUID 1
8533 _ACEOF
8535 PLATFORMNET=NoNet
8536 else
8545 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8548 echo "$as_me:$LINENO: checking for $ac_func" >&5
8549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8550 if eval "test \"\${$as_ac_var+set}\" = set"; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553 if test x$gcc_no_link = xyes; then
8554 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8556 { (exit 1); exit 1; }; }
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8566 #define $ac_func innocuous_$ac_func
8568 /* System header to define __stub macros and hopefully few prototypes,
8569 which can conflict with char $ac_func (); below.
8570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8571 <limits.h> exists even on freestanding compilers. */
8573 #ifdef __STDC__
8574 # include <limits.h>
8575 #else
8576 # include <assert.h>
8577 #endif
8579 #undef $ac_func
8581 /* Override any gcc2 internal prototype to avoid an error. */
8582 #ifdef __cplusplus
8583 extern "C"
8585 #endif
8586 /* We use char because int might match the return type of a gcc2
8587 builtin and then its argument prototype would still apply. */
8588 char $ac_func ();
8589 /* The GNU C library defines this for functions which it implements
8590 to always fail with ENOSYS. Some functions are actually named
8591 something starting with __ and the normal name is an alias. */
8592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8593 choke me
8594 #else
8595 char (*f) () = $ac_func;
8596 #endif
8597 #ifdef __cplusplus
8599 #endif
8602 main ()
8604 return f != $ac_func;
8606 return 0;
8608 _ACEOF
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8611 (eval $ac_link) 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag"
8619 || test ! -s conftest.err'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest$ac_exeext'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 eval "$as_ac_var=yes"
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 eval "$as_ac_var=no"
8638 rm -f conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8643 if test `eval echo '${'$as_ac_var'}'` = yes; then
8644 cat >>confdefs.h <<_ACEOF
8645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8646 _ACEOF
8649 done
8656 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8659 echo "$as_me:$LINENO: checking for $ac_func" >&5
8660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8661 if eval "test \"\${$as_ac_var+set}\" = set"; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 if test x$gcc_no_link = xyes; then
8665 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8666 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8667 { (exit 1); exit 1; }; }
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8677 #define $ac_func innocuous_$ac_func
8679 /* System header to define __stub macros and hopefully few prototypes,
8680 which can conflict with char $ac_func (); below.
8681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8682 <limits.h> exists even on freestanding compilers. */
8684 #ifdef __STDC__
8685 # include <limits.h>
8686 #else
8687 # include <assert.h>
8688 #endif
8690 #undef $ac_func
8692 /* Override any gcc2 internal prototype to avoid an error. */
8693 #ifdef __cplusplus
8694 extern "C"
8696 #endif
8697 /* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8699 char $ac_func ();
8700 /* The GNU C library defines this for functions which it implements
8701 to always fail with ENOSYS. Some functions are actually named
8702 something starting with __ and the normal name is an alias. */
8703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8704 choke me
8705 #else
8706 char (*f) () = $ac_func;
8707 #endif
8708 #ifdef __cplusplus
8710 #endif
8713 main ()
8715 return f != $ac_func;
8717 return 0;
8719 _ACEOF
8720 rm -f conftest.$ac_objext conftest$ac_exeext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag"
8730 || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 (eval $ac_try) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 eval "$as_ac_var=yes"
8743 else
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 eval "$as_ac_var=no"
8749 rm -f conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8754 if test `eval echo '${'$as_ac_var'}'` = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8757 _ACEOF
8760 done
8771 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8774 echo "$as_me:$LINENO: checking for $ac_func" >&5
8775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8776 if eval "test \"\${$as_ac_var+set}\" = set"; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 if test x$gcc_no_link = xyes; then
8780 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8781 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8782 { (exit 1); exit 1; }; }
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h. */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8792 #define $ac_func innocuous_$ac_func
8794 /* System header to define __stub macros and hopefully few prototypes,
8795 which can conflict with char $ac_func (); below.
8796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8797 <limits.h> exists even on freestanding compilers. */
8799 #ifdef __STDC__
8800 # include <limits.h>
8801 #else
8802 # include <assert.h>
8803 #endif
8805 #undef $ac_func
8807 /* Override any gcc2 internal prototype to avoid an error. */
8808 #ifdef __cplusplus
8809 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8814 char $ac_func ();
8815 /* The GNU C library defines this for functions which it implements
8816 to always fail with ENOSYS. Some functions are actually named
8817 something starting with __ and the normal name is an alias. */
8818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8819 choke me
8820 #else
8821 char (*f) () = $ac_func;
8822 #endif
8823 #ifdef __cplusplus
8825 #endif
8828 main ()
8830 return f != $ac_func;
8832 return 0;
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837 (eval $ac_link) 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try='test -z "$ac_c_werror_flag"
8845 || test ! -s conftest.err'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 (eval $ac_try) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; } &&
8851 { ac_try='test -s conftest$ac_exeext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 eval "$as_ac_var=yes"
8858 else
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 eval "$as_ac_var=no"
8864 rm -f conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
8867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8869 if test `eval echo '${'$as_ac_var'}'` = yes; then
8870 cat >>confdefs.h <<_ACEOF
8871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8872 _ACEOF
8875 done
8879 for ac_func in nl_langinfo setlocale
8881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8882 echo "$as_me:$LINENO: checking for $ac_func" >&5
8883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_var+set}\" = set"; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887 if test x$gcc_no_link = xyes; then
8888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8890 { (exit 1); exit 1; }; }
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h. */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8900 #define $ac_func innocuous_$ac_func
8902 /* System header to define __stub macros and hopefully few prototypes,
8903 which can conflict with char $ac_func (); below.
8904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905 <limits.h> exists even on freestanding compilers. */
8907 #ifdef __STDC__
8908 # include <limits.h>
8909 #else
8910 # include <assert.h>
8911 #endif
8913 #undef $ac_func
8915 /* Override any gcc2 internal prototype to avoid an error. */
8916 #ifdef __cplusplus
8917 extern "C"
8919 #endif
8920 /* We use char because int might match the return type of a gcc2
8921 builtin and then its argument prototype would still apply. */
8922 char $ac_func ();
8923 /* The GNU C library defines this for functions which it implements
8924 to always fail with ENOSYS. Some functions are actually named
8925 something starting with __ and the normal name is an alias. */
8926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8927 choke me
8928 #else
8929 char (*f) () = $ac_func;
8930 #endif
8931 #ifdef __cplusplus
8933 #endif
8936 main ()
8938 return f != $ac_func;
8940 return 0;
8942 _ACEOF
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945 (eval $ac_link) 2>conftest.er1
8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
8952 { ac_try='test -z "$ac_c_werror_flag"
8953 || test ! -s conftest.err'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; } &&
8959 { ac_try='test -s conftest$ac_exeext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 (eval $ac_try) 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 eval "$as_ac_var=yes"
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 eval "$as_ac_var=no"
8972 rm -f conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8977 if test `eval echo '${'$as_ac_var'}'` = yes; then
8978 cat >>confdefs.h <<_ACEOF
8979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8980 _ACEOF
8983 done
8987 for ac_func in inet_aton inet_addr
8989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8990 echo "$as_me:$LINENO: checking for $ac_func" >&5
8991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8992 if eval "test \"\${$as_ac_var+set}\" = set"; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 if test x$gcc_no_link = xyes; then
8996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8998 { (exit 1); exit 1; }; }
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h. */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9008 #define $ac_func innocuous_$ac_func
9010 /* System header to define __stub macros and hopefully few prototypes,
9011 which can conflict with char $ac_func (); below.
9012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9013 <limits.h> exists even on freestanding compilers. */
9015 #ifdef __STDC__
9016 # include <limits.h>
9017 #else
9018 # include <assert.h>
9019 #endif
9021 #undef $ac_func
9023 /* Override any gcc2 internal prototype to avoid an error. */
9024 #ifdef __cplusplus
9025 extern "C"
9027 #endif
9028 /* We use char because int might match the return type of a gcc2
9029 builtin and then its argument prototype would still apply. */
9030 char $ac_func ();
9031 /* The GNU C library defines this for functions which it implements
9032 to always fail with ENOSYS. Some functions are actually named
9033 something starting with __ and the normal name is an alias. */
9034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9035 choke me
9036 #else
9037 char (*f) () = $ac_func;
9038 #endif
9039 #ifdef __cplusplus
9041 #endif
9044 main ()
9046 return f != $ac_func;
9048 return 0;
9050 _ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag"
9061 || test ! -s conftest.err'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try='test -s conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 eval "$as_ac_var=yes"
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 eval "$as_ac_var=no"
9080 rm -f conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9085 if test `eval echo '${'$as_ac_var'}'` = yes; then
9086 cat >>confdefs.h <<_ACEOF
9087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9088 _ACEOF
9089 break
9091 done
9096 for ac_func in inet_pton uname inet_ntoa
9098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9099 echo "$as_me:$LINENO: checking for $ac_func" >&5
9100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_var+set}\" = set"; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104 if test x$gcc_no_link = xyes; then
9105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9107 { (exit 1); exit 1; }; }
9109 cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h. */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9117 #define $ac_func innocuous_$ac_func
9119 /* System header to define __stub macros and hopefully few prototypes,
9120 which can conflict with char $ac_func (); below.
9121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 <limits.h> exists even on freestanding compilers. */
9124 #ifdef __STDC__
9125 # include <limits.h>
9126 #else
9127 # include <assert.h>
9128 #endif
9130 #undef $ac_func
9132 /* Override any gcc2 internal prototype to avoid an error. */
9133 #ifdef __cplusplus
9134 extern "C"
9136 #endif
9137 /* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9139 char $ac_func ();
9140 /* The GNU C library defines this for functions which it implements
9141 to always fail with ENOSYS. Some functions are actually named
9142 something starting with __ and the normal name is an alias. */
9143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9144 choke me
9145 #else
9146 char (*f) () = $ac_func;
9147 #endif
9148 #ifdef __cplusplus
9150 #endif
9153 main ()
9155 return f != $ac_func;
9157 return 0;
9159 _ACEOF
9160 rm -f conftest.$ac_objext conftest$ac_exeext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162 (eval $ac_link) 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -z "$ac_c_werror_flag"
9170 || test ! -s conftest.err'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest$ac_exeext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 eval "$as_ac_var=yes"
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9187 eval "$as_ac_var=no"
9189 rm -f conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9194 if test `eval echo '${'$as_ac_var'}'` = yes; then
9195 cat >>confdefs.h <<_ACEOF
9196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9197 _ACEOF
9200 done
9207 for ac_func in fork execvp pipe sigaction ftruncate
9209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9210 echo "$as_me:$LINENO: checking for $ac_func" >&5
9211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9212 if eval "test \"\${$as_ac_var+set}\" = set"; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 if test x$gcc_no_link = xyes; then
9216 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9218 { (exit 1); exit 1; }; }
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h. */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9228 #define $ac_func innocuous_$ac_func
9230 /* System header to define __stub macros and hopefully few prototypes,
9231 which can conflict with char $ac_func (); below.
9232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9233 <limits.h> exists even on freestanding compilers. */
9235 #ifdef __STDC__
9236 # include <limits.h>
9237 #else
9238 # include <assert.h>
9239 #endif
9241 #undef $ac_func
9243 /* Override any gcc2 internal prototype to avoid an error. */
9244 #ifdef __cplusplus
9245 extern "C"
9247 #endif
9248 /* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9250 char $ac_func ();
9251 /* The GNU C library defines this for functions which it implements
9252 to always fail with ENOSYS. Some functions are actually named
9253 something starting with __ and the normal name is an alias. */
9254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9255 choke me
9256 #else
9257 char (*f) () = $ac_func;
9258 #endif
9259 #ifdef __cplusplus
9261 #endif
9264 main ()
9266 return f != $ac_func;
9268 return 0;
9270 _ACEOF
9271 rm -f conftest.$ac_objext conftest$ac_exeext
9272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9273 (eval $ac_link) 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
9280 { ac_try='test -z "$ac_c_werror_flag"
9281 || test ! -s conftest.err'
9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 (eval $ac_try) 2>&5
9284 ac_status=$?
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; } &&
9287 { ac_try='test -s conftest$ac_exeext'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 (eval $ac_try) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; }; then
9293 eval "$as_ac_var=yes"
9294 else
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 eval "$as_ac_var=no"
9300 rm -f conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext conftest.$ac_ext
9303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9305 if test `eval echo '${'$as_ac_var'}'` = yes; then
9306 cat >>confdefs.h <<_ACEOF
9307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9308 _ACEOF
9311 done
9313 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9314 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9315 if test "${ac_cv_header_stdc+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318 cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h. */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 #include <stdlib.h>
9325 #include <stdarg.h>
9326 #include <string.h>
9327 #include <float.h>
9330 main ()
9334 return 0;
9336 _ACEOF
9337 rm -f conftest.$ac_objext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9339 (eval $ac_compile) 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -z "$ac_c_werror_flag"
9347 || test ! -s conftest.err'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 (eval $ac_try) 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; } &&
9353 { ac_try='test -s conftest.$ac_objext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 ac_cv_header_stdc=yes
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_cv_header_stdc=no
9366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9368 if test $ac_cv_header_stdc = yes; then
9369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 #include <string.h>
9378 _ACEOF
9379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9380 $EGREP "memchr" >/dev/null 2>&1; then
9382 else
9383 ac_cv_header_stdc=no
9385 rm -f conftest*
9389 if test $ac_cv_header_stdc = yes; then
9390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9397 #include <stdlib.h>
9399 _ACEOF
9400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9401 $EGREP "free" >/dev/null 2>&1; then
9403 else
9404 ac_cv_header_stdc=no
9406 rm -f conftest*
9410 if test $ac_cv_header_stdc = yes; then
9411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9412 if test "$cross_compiling" = yes; then
9414 else
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h. */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9421 #include <ctype.h>
9422 #if ((' ' & 0x0FF) == 0x020)
9423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9425 #else
9426 # define ISLOWER(c) \
9427 (('a' <= (c) && (c) <= 'i') \
9428 || ('j' <= (c) && (c) <= 'r') \
9429 || ('s' <= (c) && (c) <= 'z'))
9430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9431 #endif
9433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9435 main ()
9437 int i;
9438 for (i = 0; i < 256; i++)
9439 if (XOR (islower (i), ISLOWER (i))
9440 || toupper (i) != TOUPPER (i))
9441 exit(2);
9442 exit (0);
9444 _ACEOF
9445 rm -f conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>&5
9448 ac_status=$?
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9457 else
9458 echo "$as_me: program exited with status $ac_status" >&5
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ( exit $ac_status )
9463 ac_cv_header_stdc=no
9465 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9469 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9470 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9471 if test $ac_cv_header_stdc = yes; then
9473 cat >>confdefs.h <<\_ACEOF
9474 #define STDC_HEADERS 1
9475 _ACEOF
9479 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9490 inttypes.h stdint.h unistd.h
9492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493 echo "$as_me:$LINENO: checking for $ac_header" >&5
9494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 $ac_includes_default
9506 #include <$ac_header>
9507 _ACEOF
9508 rm -f conftest.$ac_objext
9509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9510 (eval $ac_compile) 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -z "$ac_c_werror_flag"
9518 || test ! -s conftest.err'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; } &&
9524 { ac_try='test -s conftest.$ac_objext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 eval "$as_ac_Header=yes"
9531 else
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 eval "$as_ac_Header=no"
9537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9542 cat >>confdefs.h <<_ACEOF
9543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9544 _ACEOF
9548 done
9554 for ac_header in execinfo.h unistd.h dlfcn.h
9556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9558 echo "$as_me:$LINENO: checking for $ac_header" >&5
9559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9565 else
9566 # Is the header compilable?
9567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h. */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 $ac_includes_default
9576 #include <$ac_header>
9577 _ACEOF
9578 rm -f conftest.$ac_objext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9580 (eval $ac_compile) 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag"
9588 || test ! -s conftest.err'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 (eval $ac_try) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try='test -s conftest.$ac_objext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_header_compiler=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_header_compiler=no
9607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9609 echo "${ECHO_T}$ac_header_compiler" >&6
9611 # Is the header present?
9612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 #include <$ac_header>
9621 _ACEOF
9622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } >/dev/null; then
9630 if test -s conftest.err; then
9631 ac_cpp_err=$ac_c_preproc_warn_flag
9632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9633 else
9634 ac_cpp_err=
9636 else
9637 ac_cpp_err=yes
9639 if test -z "$ac_cpp_err"; then
9640 ac_header_preproc=yes
9641 else
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ac_header_preproc=no
9647 rm -f conftest.err conftest.$ac_ext
9648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9649 echo "${ECHO_T}$ac_header_preproc" >&6
9651 # So? What about this header?
9652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9653 yes:no: )
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9658 ac_header_preproc=yes
9660 no:yes:* )
9661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9674 cat <<\_ASBOX
9675 ## ---------------------------------- ##
9676 ## Report this to the libjava lists. ##
9677 ## ---------------------------------- ##
9678 _ASBOX
9680 sed "s/^/$as_me: WARNING: /" >&2
9682 esac
9683 echo "$as_me:$LINENO: checking for $ac_header" >&5
9684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 eval "$as_ac_Header=\$ac_header_preproc"
9690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9695 cat >>confdefs.h <<_ACEOF
9696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9697 _ACEOF
9701 done
9703 echo "$as_me:$LINENO: checking for backtrace" >&5
9704 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9705 if test "${ac_cv_func_backtrace+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708 if test x$gcc_no_link = xyes; then
9709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9711 { (exit 1); exit 1; }; }
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h. */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9719 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9721 #define backtrace innocuous_backtrace
9723 /* System header to define __stub macros and hopefully few prototypes,
9724 which can conflict with char backtrace (); below.
9725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9726 <limits.h> exists even on freestanding compilers. */
9728 #ifdef __STDC__
9729 # include <limits.h>
9730 #else
9731 # include <assert.h>
9732 #endif
9734 #undef backtrace
9736 /* Override any gcc2 internal prototype to avoid an error. */
9737 #ifdef __cplusplus
9738 extern "C"
9740 #endif
9741 /* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9743 char backtrace ();
9744 /* The GNU C library defines this for functions which it implements
9745 to always fail with ENOSYS. Some functions are actually named
9746 something starting with __ and the normal name is an alias. */
9747 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9748 choke me
9749 #else
9750 char (*f) () = backtrace;
9751 #endif
9752 #ifdef __cplusplus
9754 #endif
9757 main ()
9759 return f != backtrace;
9761 return 0;
9763 _ACEOF
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_cv_func_backtrace=yes
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_cv_func_backtrace=no
9793 rm -f conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9796 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9797 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9798 if test $ac_cv_func_backtrace = yes; then
9800 case "$host" in
9801 ia64-*-linux*)
9802 # Has broken backtrace()
9804 mips*-*-linux*)
9805 # Has broken backtrace(), but we supply our own.
9806 if test -d sysdep; then true; else mkdir -p sysdep; fi
9807 supply_backtrace=yes
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE_BACKTRACE 1
9811 _ACEOF
9816 cat >>confdefs.h <<\_ACEOF
9817 #define HAVE_BACKTRACE 1
9818 _ACEOF
9821 esac
9823 else
9825 case "$host" in
9826 *mingw*)
9827 # Has backtrace() defined in libgcj itself
9829 cat >>confdefs.h <<\_ACEOF
9830 #define HAVE_BACKTRACE 1
9831 _ACEOF
9834 esac
9839 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9840 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9841 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844 ac_check_lib_save_LIBS=$LIBS
9845 LIBS="-ldl $LIBS"
9846 if test x$gcc_no_link = xyes; then
9847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9849 { (exit 1); exit 1; }; }
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 /* Override any gcc2 internal prototype to avoid an error. */
9859 #ifdef __cplusplus
9860 extern "C"
9861 #endif
9862 /* We use char because int might match the return type of a gcc2
9863 builtin and then its argument prototype would still apply. */
9864 char dladdr ();
9866 main ()
9868 dladdr ();
9870 return 0;
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875 (eval $ac_link) 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag"
9883 || test ! -s conftest.err'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
9889 { ac_try='test -s conftest$ac_exeext'
9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 (eval $ac_try) 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
9895 ac_cv_lib_dl_dladdr=yes
9896 else
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 ac_cv_lib_dl_dladdr=no
9902 rm -f conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_check_lib_save_LIBS
9906 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9907 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9908 if test $ac_cv_lib_dl_dladdr = yes; then
9910 if test "x${disable_dladdr}" = "xyes"; then
9911 #Broken dladdr().
9912 true
9913 else
9915 cat >>confdefs.h <<\_ACEOF
9916 #define HAVE_DLADDR 1
9917 _ACEOF
9923 if test x"$build" = x"$host"; then
9924 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9925 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9926 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929 test "$cross_compiling" = yes &&
9930 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9931 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9932 { (exit 1); exit 1; }; }
9933 if test -r "/proc/self/exe"; then
9934 ac_cv_file__proc_self_exe=yes
9935 else
9936 ac_cv_file__proc_self_exe=no
9939 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9940 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9941 if test $ac_cv_file__proc_self_exe = yes; then
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE__PROC_SELF_EXE 1
9945 _ACEOF
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_PROC_SELF_EXE 1
9951 _ACEOF
9955 else
9956 case $host in
9957 *-linux*)
9959 cat >>confdefs.h <<\_ACEOF
9960 #define HAVE_PROC_SELF_EXE 1
9961 _ACEOF
9964 esac
9968 if test "X$prefix" = "XNONE"; then
9969 acl_final_prefix="$ac_default_prefix"
9970 else
9971 acl_final_prefix="$prefix"
9973 if test "X$exec_prefix" = "XNONE"; then
9974 acl_final_exec_prefix='${prefix}'
9975 else
9976 acl_final_exec_prefix="$exec_prefix"
9978 acl_save_prefix="$prefix"
9979 prefix="$acl_final_prefix"
9980 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9981 prefix="$acl_save_prefix"
9984 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9985 if test "${with_gnu_ld+set}" = set; then
9986 withval="$with_gnu_ld"
9987 test "$withval" = no || with_gnu_ld=yes
9988 else
9989 with_gnu_ld=no
9991 # Prepare PATH_SEPARATOR.
9992 # The user is always right.
9993 if test "${PATH_SEPARATOR+set}" != set; then
9994 echo "#! /bin/sh" >conf$$.sh
9995 echo "exit 0" >>conf$$.sh
9996 chmod +x conf$$.sh
9997 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9998 PATH_SEPARATOR=';'
9999 else
10000 PATH_SEPARATOR=:
10002 rm -f conf$$.sh
10004 ac_prog=ld
10005 if test "$GCC" = yes; then
10006 # Check if gcc -print-prog-name=ld gives a path.
10007 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10008 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10009 case $host in
10010 *-*-mingw*)
10011 # gcc leaves a trailing carriage return which upsets mingw
10012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10015 esac
10016 case $ac_prog in
10017 # Accept absolute paths.
10018 [\\/]* | [A-Za-z]:[\\/]*)
10019 re_direlt='/[^/][^/]*/\.\./'
10020 # Canonicalize the path of ld
10021 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10022 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10023 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10024 done
10025 test -z "$LD" && LD="$ac_prog"
10028 # If it fails, then pretend we aren't using GCC.
10029 ac_prog=ld
10032 # If it is relative, then search for the first ld in PATH.
10033 with_gnu_ld=unknown
10035 esac
10036 elif test "$with_gnu_ld" = yes; then
10037 echo "$as_me:$LINENO: checking for GNU ld" >&5
10038 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10039 else
10040 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10041 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10043 if test "${acl_cv_path_LD+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046 if test -z "$LD"; then
10047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10048 for ac_dir in $PATH; do
10049 test -z "$ac_dir" && ac_dir=.
10050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10051 acl_cv_path_LD="$ac_dir/$ac_prog"
10052 # Check to see if the program is GNU ld. I'd rather use --version,
10053 # but apparently some GNU ld's only accept -v.
10054 # Break only if it was the GNU/non-GNU ld that we prefer.
10055 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10056 test "$with_gnu_ld" != no && break
10057 else
10058 test "$with_gnu_ld" != yes && break
10061 done
10062 IFS="$ac_save_ifs"
10063 else
10064 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10068 LD="$acl_cv_path_LD"
10069 if test -n "$LD"; then
10070 echo "$as_me:$LINENO: result: $LD" >&5
10071 echo "${ECHO_T}$LD" >&6
10072 else
10073 echo "$as_me:$LINENO: result: no" >&5
10074 echo "${ECHO_T}no" >&6
10076 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10077 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10078 { (exit 1); exit 1; }; }
10079 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10080 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10081 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10085 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10086 acl_cv_prog_gnu_ld=yes
10087 else
10088 acl_cv_prog_gnu_ld=no
10091 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10092 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10093 with_gnu_ld=$acl_cv_prog_gnu_ld
10097 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10098 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10099 if test "${acl_cv_rpath+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10103 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10104 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10105 . ./conftest.sh
10106 rm -f ./conftest.sh
10107 acl_cv_rpath=done
10110 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10111 echo "${ECHO_T}$acl_cv_rpath" >&6
10112 wl="$acl_cv_wl"
10113 libext="$acl_cv_libext"
10114 shlibext="$acl_cv_shlibext"
10115 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10116 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10117 hardcode_direct="$acl_cv_hardcode_direct"
10118 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10119 # Check whether --enable-rpath or --disable-rpath was given.
10120 if test "${enable_rpath+set}" = set; then
10121 enableval="$enable_rpath"
10123 else
10124 enable_rpath=yes
10133 use_additional=yes
10135 acl_save_prefix="$prefix"
10136 prefix="$acl_final_prefix"
10137 acl_save_exec_prefix="$exec_prefix"
10138 exec_prefix="$acl_final_exec_prefix"
10140 eval additional_includedir=\"$includedir\"
10141 eval additional_libdir=\"$libdir\"
10143 exec_prefix="$acl_save_exec_prefix"
10144 prefix="$acl_save_prefix"
10147 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10148 if test "${with_libiconv_prefix+set}" = set; then
10149 withval="$with_libiconv_prefix"
10151 if test "X$withval" = "Xno"; then
10152 use_additional=no
10153 else
10154 if test "X$withval" = "X"; then
10156 acl_save_prefix="$prefix"
10157 prefix="$acl_final_prefix"
10158 acl_save_exec_prefix="$exec_prefix"
10159 exec_prefix="$acl_final_exec_prefix"
10161 eval additional_includedir=\"$includedir\"
10162 eval additional_libdir=\"$libdir\"
10164 exec_prefix="$acl_save_exec_prefix"
10165 prefix="$acl_save_prefix"
10167 else
10168 additional_includedir="$withval/include"
10169 additional_libdir="$withval/lib"
10174 LIBICONV=
10175 LTLIBICONV=
10176 INCICONV=
10177 rpathdirs=
10178 ltrpathdirs=
10179 names_already_handled=
10180 names_next_round='iconv '
10181 while test -n "$names_next_round"; do
10182 names_this_round="$names_next_round"
10183 names_next_round=
10184 for name in $names_this_round; do
10185 already_handled=
10186 for n in $names_already_handled; do
10187 if test "$n" = "$name"; then
10188 already_handled=yes
10189 break
10191 done
10192 if test -z "$already_handled"; then
10193 names_already_handled="$names_already_handled $name"
10194 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10195 eval value=\"\$HAVE_LIB$uppername\"
10196 if test -n "$value"; then
10197 if test "$value" = yes; then
10198 eval value=\"\$LIB$uppername\"
10199 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10200 eval value=\"\$LTLIB$uppername\"
10201 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10202 else
10205 else
10206 found_dir=
10207 found_la=
10208 found_so=
10209 found_a=
10210 if test $use_additional = yes; then
10211 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10212 found_dir="$additional_libdir"
10213 found_so="$additional_libdir/lib$name.$shlibext"
10214 if test -f "$additional_libdir/lib$name.la"; then
10215 found_la="$additional_libdir/lib$name.la"
10217 else
10218 if test -f "$additional_libdir/lib$name.$libext"; then
10219 found_dir="$additional_libdir"
10220 found_a="$additional_libdir/lib$name.$libext"
10221 if test -f "$additional_libdir/lib$name.la"; then
10222 found_la="$additional_libdir/lib$name.la"
10227 if test "X$found_dir" = "X"; then
10228 for x in $LDFLAGS $LTLIBICONV; do
10230 acl_save_prefix="$prefix"
10231 prefix="$acl_final_prefix"
10232 acl_save_exec_prefix="$exec_prefix"
10233 exec_prefix="$acl_final_exec_prefix"
10234 eval x=\"$x\"
10235 exec_prefix="$acl_save_exec_prefix"
10236 prefix="$acl_save_prefix"
10238 case "$x" in
10239 -L*)
10240 dir=`echo "X$x" | sed -e 's/^X-L//'`
10241 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10242 found_dir="$dir"
10243 found_so="$dir/lib$name.$shlibext"
10244 if test -f "$dir/lib$name.la"; then
10245 found_la="$dir/lib$name.la"
10247 else
10248 if test -f "$dir/lib$name.$libext"; then
10249 found_dir="$dir"
10250 found_a="$dir/lib$name.$libext"
10251 if test -f "$dir/lib$name.la"; then
10252 found_la="$dir/lib$name.la"
10257 esac
10258 if test "X$found_dir" != "X"; then
10259 break
10261 done
10263 if test "X$found_dir" != "X"; then
10264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10265 if test "X$found_so" != "X"; then
10266 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10267 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10268 else
10269 haveit=
10270 for x in $ltrpathdirs; do
10271 if test "X$x" = "X$found_dir"; then
10272 haveit=yes
10273 break
10275 done
10276 if test -z "$haveit"; then
10277 ltrpathdirs="$ltrpathdirs $found_dir"
10279 if test "$hardcode_direct" = yes; then
10280 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10281 else
10282 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10283 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10284 haveit=
10285 for x in $rpathdirs; do
10286 if test "X$x" = "X$found_dir"; then
10287 haveit=yes
10288 break
10290 done
10291 if test -z "$haveit"; then
10292 rpathdirs="$rpathdirs $found_dir"
10294 else
10295 haveit=
10296 for x in $LDFLAGS $LIBICONV; do
10298 acl_save_prefix="$prefix"
10299 prefix="$acl_final_prefix"
10300 acl_save_exec_prefix="$exec_prefix"
10301 exec_prefix="$acl_final_exec_prefix"
10302 eval x=\"$x\"
10303 exec_prefix="$acl_save_exec_prefix"
10304 prefix="$acl_save_prefix"
10306 if test "X$x" = "X-L$found_dir"; then
10307 haveit=yes
10308 break
10310 done
10311 if test -z "$haveit"; then
10312 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10314 if test "$hardcode_minus_L" != no; then
10315 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10316 else
10317 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10322 else
10323 if test "X$found_a" != "X"; then
10324 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10325 else
10326 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10329 additional_includedir=
10330 case "$found_dir" in
10331 */lib | */lib/)
10332 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10333 additional_includedir="$basedir/include"
10335 esac
10336 if test "X$additional_includedir" != "X"; then
10337 if test "X$additional_includedir" != "X/usr/include"; then
10338 haveit=
10339 if test "X$additional_includedir" = "X/usr/local/include"; then
10340 if test -n "$GCC"; then
10341 case $host_os in
10342 linux*) haveit=yes;;
10343 esac
10346 if test -z "$haveit"; then
10347 for x in $CPPFLAGS $INCICONV; do
10349 acl_save_prefix="$prefix"
10350 prefix="$acl_final_prefix"
10351 acl_save_exec_prefix="$exec_prefix"
10352 exec_prefix="$acl_final_exec_prefix"
10353 eval x=\"$x\"
10354 exec_prefix="$acl_save_exec_prefix"
10355 prefix="$acl_save_prefix"
10357 if test "X$x" = "X-I$additional_includedir"; then
10358 haveit=yes
10359 break
10361 done
10362 if test -z "$haveit"; then
10363 if test -d "$additional_includedir"; then
10364 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10370 if test -n "$found_la"; then
10371 save_libdir="$libdir"
10372 case "$found_la" in
10373 */* | *\\*) . "$found_la" ;;
10374 *) . "./$found_la" ;;
10375 esac
10376 libdir="$save_libdir"
10377 for dep in $dependency_libs; do
10378 case "$dep" in
10379 -L*)
10380 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10381 if test "X$additional_libdir" != "X/usr/lib"; then
10382 haveit=
10383 if test "X$additional_libdir" = "X/usr/local/lib"; then
10384 if test -n "$GCC"; then
10385 case $host_os in
10386 linux*) haveit=yes;;
10387 esac
10390 if test -z "$haveit"; then
10391 haveit=
10392 for x in $LDFLAGS $LIBICONV; do
10394 acl_save_prefix="$prefix"
10395 prefix="$acl_final_prefix"
10396 acl_save_exec_prefix="$exec_prefix"
10397 exec_prefix="$acl_final_exec_prefix"
10398 eval x=\"$x\"
10399 exec_prefix="$acl_save_exec_prefix"
10400 prefix="$acl_save_prefix"
10402 if test "X$x" = "X-L$additional_libdir"; then
10403 haveit=yes
10404 break
10406 done
10407 if test -z "$haveit"; then
10408 if test -d "$additional_libdir"; then
10409 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10412 haveit=
10413 for x in $LDFLAGS $LTLIBICONV; do
10415 acl_save_prefix="$prefix"
10416 prefix="$acl_final_prefix"
10417 acl_save_exec_prefix="$exec_prefix"
10418 exec_prefix="$acl_final_exec_prefix"
10419 eval x=\"$x\"
10420 exec_prefix="$acl_save_exec_prefix"
10421 prefix="$acl_save_prefix"
10423 if test "X$x" = "X-L$additional_libdir"; then
10424 haveit=yes
10425 break
10427 done
10428 if test -z "$haveit"; then
10429 if test -d "$additional_libdir"; then
10430 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10436 -R*)
10437 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10438 if test "$enable_rpath" != no; then
10439 haveit=
10440 for x in $rpathdirs; do
10441 if test "X$x" = "X$dir"; then
10442 haveit=yes
10443 break
10445 done
10446 if test -z "$haveit"; then
10447 rpathdirs="$rpathdirs $dir"
10449 haveit=
10450 for x in $ltrpathdirs; do
10451 if test "X$x" = "X$dir"; then
10452 haveit=yes
10453 break
10455 done
10456 if test -z "$haveit"; then
10457 ltrpathdirs="$ltrpathdirs $dir"
10461 -l*)
10462 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10464 *.la)
10465 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10468 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10469 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10471 esac
10472 done
10474 else
10475 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10476 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10480 done
10481 done
10482 if test "X$rpathdirs" != "X"; then
10483 if test -n "$hardcode_libdir_separator"; then
10484 alldirs=
10485 for found_dir in $rpathdirs; do
10486 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10487 done
10488 acl_save_libdir="$libdir"
10489 libdir="$alldirs"
10490 eval flag=\"$hardcode_libdir_flag_spec\"
10491 libdir="$acl_save_libdir"
10492 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10493 else
10494 for found_dir in $rpathdirs; do
10495 acl_save_libdir="$libdir"
10496 libdir="$found_dir"
10497 eval flag=\"$hardcode_libdir_flag_spec\"
10498 libdir="$acl_save_libdir"
10499 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10500 done
10503 if test "X$ltrpathdirs" != "X"; then
10504 for found_dir in $ltrpathdirs; do
10505 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10506 done
10515 am_save_CPPFLAGS="$CPPFLAGS"
10517 for element in $INCICONV; do
10518 haveit=
10519 for x in $CPPFLAGS; do
10521 acl_save_prefix="$prefix"
10522 prefix="$acl_final_prefix"
10523 acl_save_exec_prefix="$exec_prefix"
10524 exec_prefix="$acl_final_exec_prefix"
10525 eval x=\"$x\"
10526 exec_prefix="$acl_save_exec_prefix"
10527 prefix="$acl_save_prefix"
10529 if test "X$x" = "X$element"; then
10530 haveit=yes
10531 break
10533 done
10534 if test -z "$haveit"; then
10535 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10537 done
10540 echo "$as_me:$LINENO: checking for iconv" >&5
10541 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10542 if test "${am_cv_func_iconv+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10546 am_cv_func_iconv="no, consider installing GNU libiconv"
10547 am_cv_lib_iconv=no
10548 if test x$gcc_no_link = xyes; then
10549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10551 { (exit 1); exit 1; }; }
10553 cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h. */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 #include <stdlib.h>
10560 #include <iconv.h>
10562 main ()
10564 iconv_t cd = iconv_open("","");
10565 iconv(cd,NULL,NULL,NULL,NULL);
10566 iconv_close(cd);
10568 return 0;
10570 _ACEOF
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10573 (eval $ac_link) 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest$ac_exeext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 am_cv_func_iconv=yes
10594 else
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10599 rm -f conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 if test "$am_cv_func_iconv" != yes; then
10602 am_save_LIBS="$LIBS"
10603 LIBS="$LIBS $LIBICONV"
10604 if test x$gcc_no_link = xyes; then
10605 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10606 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10607 { (exit 1); exit 1; }; }
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h. */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 #include <stdlib.h>
10616 #include <iconv.h>
10618 main ()
10620 iconv_t cd = iconv_open("","");
10621 iconv(cd,NULL,NULL,NULL,NULL);
10622 iconv_close(cd);
10624 return 0;
10626 _ACEOF
10627 rm -f conftest.$ac_objext conftest$ac_exeext
10628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629 (eval $ac_link) 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -z "$ac_c_werror_flag"
10637 || test ! -s conftest.err'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; } &&
10643 { ac_try='test -s conftest$ac_exeext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 am_cv_lib_iconv=yes
10650 am_cv_func_iconv=yes
10651 else
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10656 rm -f conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LIBS="$am_save_LIBS"
10662 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10663 echo "${ECHO_T}$am_cv_func_iconv" >&6
10664 if test "$am_cv_func_iconv" = yes; then
10666 cat >>confdefs.h <<\_ACEOF
10667 #define HAVE_ICONV 1
10668 _ACEOF
10671 if test "$am_cv_lib_iconv" = yes; then
10672 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10673 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10674 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10675 echo "${ECHO_T}$LIBICONV" >&6
10676 else
10677 CPPFLAGS="$am_save_CPPFLAGS"
10678 LIBICONV=
10679 LTLIBICONV=
10684 if test "$am_cv_func_iconv" = yes; then
10685 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10686 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10687 if test "${am_cv_proto_iconv+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h. */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10698 #include <stdlib.h>
10699 #include <iconv.h>
10700 extern
10701 #ifdef __cplusplus
10703 #endif
10704 #if defined(__STDC__) || defined(__cplusplus)
10705 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10706 #else
10707 size_t iconv();
10708 #endif
10711 main ()
10715 return 0;
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720 (eval $ac_compile) 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag"
10728 || test ! -s conftest.err'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; } &&
10734 { ac_try='test -s conftest.$ac_objext'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 am_cv_proto_iconv_arg1=""
10741 else
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 am_cv_proto_iconv_arg1="const"
10747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10748 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);"
10751 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10752 echo "$as_me:$LINENO: result: ${ac_t:-
10753 }$am_cv_proto_iconv" >&5
10754 echo "${ECHO_T}${ac_t:-
10755 }$am_cv_proto_iconv" >&6
10757 cat >>confdefs.h <<_ACEOF
10758 #define ICONV_CONST $am_cv_proto_iconv_arg1
10759 _ACEOF
10764 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10765 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10766 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769 if test x$gcc_no_link = xyes; then
10770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10772 { (exit 1); exit 1; }; }
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h. */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 #include <locale.h>
10782 main ()
10784 return LC_MESSAGES
10786 return 0;
10788 _ACEOF
10789 rm -f conftest.$ac_objext conftest$ac_exeext
10790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10791 (eval $ac_link) 2>conftest.er1
10792 ac_status=$?
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -z "$ac_c_werror_flag"
10799 || test ! -s conftest.err'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest$ac_exeext'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 am_cv_val_LC_MESSAGES=yes
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 am_cv_val_LC_MESSAGES=no
10818 rm -f conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10821 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10822 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10823 if test $am_cv_val_LC_MESSAGES = yes; then
10825 cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_LC_MESSAGES 1
10827 _ACEOF
10831 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10832 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10833 if test "${ac_cv_struct_tm+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <sys/types.h>
10843 #include <time.h>
10846 main ()
10848 struct tm *tp; tp->tm_sec;
10850 return 0;
10852 _ACEOF
10853 rm -f conftest.$ac_objext
10854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10855 (eval $ac_compile) 2>conftest.er1
10856 ac_status=$?
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -f conftest.er1
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } &&
10862 { ac_try='test -z "$ac_c_werror_flag"
10863 || test ! -s conftest.err'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest.$ac_objext'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_cv_struct_tm=time.h
10876 else
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10880 ac_cv_struct_tm=sys/time.h
10882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10884 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10885 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10886 if test $ac_cv_struct_tm = sys/time.h; then
10888 cat >>confdefs.h <<\_ACEOF
10889 #define TM_IN_SYS_TIME 1
10890 _ACEOF
10894 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10895 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10896 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 #include <sys/types.h>
10906 #include <$ac_cv_struct_tm>
10910 main ()
10912 static struct tm ac_aggr;
10913 if (ac_aggr.tm_zone)
10914 return 0;
10916 return 0;
10918 _ACEOF
10919 rm -f conftest.$ac_objext
10920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10921 (eval $ac_compile) 2>conftest.er1
10922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -z "$ac_c_werror_flag"
10929 || test ! -s conftest.err'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; } &&
10935 { ac_try='test -s conftest.$ac_objext'
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 ac_cv_member_struct_tm_tm_zone=yes
10942 else
10943 echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10946 cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h. */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10952 #include <sys/types.h>
10953 #include <$ac_cv_struct_tm>
10957 main ()
10959 static struct tm ac_aggr;
10960 if (sizeof ac_aggr.tm_zone)
10961 return 0;
10963 return 0;
10965 _ACEOF
10966 rm -f conftest.$ac_objext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968 (eval $ac_compile) 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
10975 { ac_try='test -z "$ac_c_werror_flag"
10976 || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest.$ac_objext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_cv_member_struct_tm_tm_zone=yes
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 ac_cv_member_struct_tm_tm_zone=no
10995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10999 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11000 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11001 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11003 cat >>confdefs.h <<_ACEOF
11004 #define HAVE_STRUCT_TM_TM_ZONE 1
11005 _ACEOF
11010 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11012 cat >>confdefs.h <<\_ACEOF
11013 #define HAVE_TM_ZONE 1
11014 _ACEOF
11016 else
11017 echo "$as_me:$LINENO: checking for tzname" >&5
11018 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11019 if test "${ac_cv_var_tzname+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 if test x$gcc_no_link = xyes; then
11023 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11024 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11025 { (exit 1); exit 1; }; }
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h. */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 #include <time.h>
11034 #ifndef tzname /* For SGI. */
11035 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11036 #endif
11039 main ()
11041 atoi(*tzname);
11043 return 0;
11045 _ACEOF
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048 (eval $ac_link) 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try='test -z "$ac_c_werror_flag"
11056 || test ! -s conftest.err'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest$ac_exeext'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }; then
11068 ac_cv_var_tzname=yes
11069 else
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_cv_var_tzname=no
11075 rm -f conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11078 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11079 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11080 if test $ac_cv_var_tzname = yes; then
11082 cat >>confdefs.h <<\_ACEOF
11083 #define HAVE_TZNAME 1
11084 _ACEOF
11092 for ac_func in gethostbyname_r
11094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11095 echo "$as_me:$LINENO: checking for $ac_func" >&5
11096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11097 if eval "test \"\${$as_ac_var+set}\" = set"; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100 if test x$gcc_no_link = xyes; then
11101 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11102 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11103 { (exit 1); exit 1; }; }
11105 cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h. */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11113 #define $ac_func innocuous_$ac_func
11115 /* System header to define __stub macros and hopefully few prototypes,
11116 which can conflict with char $ac_func (); below.
11117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11118 <limits.h> exists even on freestanding compilers. */
11120 #ifdef __STDC__
11121 # include <limits.h>
11122 #else
11123 # include <assert.h>
11124 #endif
11126 #undef $ac_func
11128 /* Override any gcc2 internal prototype to avoid an error. */
11129 #ifdef __cplusplus
11130 extern "C"
11132 #endif
11133 /* We use char because int might match the return type of a gcc2
11134 builtin and then its argument prototype would still apply. */
11135 char $ac_func ();
11136 /* The GNU C library defines this for functions which it implements
11137 to always fail with ENOSYS. Some functions are actually named
11138 something starting with __ and the normal name is an alias. */
11139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11140 choke me
11141 #else
11142 char (*f) () = $ac_func;
11143 #endif
11144 #ifdef __cplusplus
11146 #endif
11149 main ()
11151 return f != $ac_func;
11153 return 0;
11155 _ACEOF
11156 rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158 (eval $ac_link) 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -z "$ac_c_werror_flag"
11166 || test ! -s conftest.err'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest$ac_exeext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 eval "$as_ac_var=yes"
11179 else
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 eval "$as_ac_var=no"
11185 rm -f conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11190 if test `eval echo '${'$as_ac_var'}'` = yes; then
11191 cat >>confdefs.h <<_ACEOF
11192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11193 _ACEOF
11196 cat >>confdefs.h <<\_ACEOF
11197 #define HAVE_GETHOSTBYNAME_R 1
11198 _ACEOF
11200 # There are two different kinds of gethostbyname_r.
11201 # We look for the one that returns `int'.
11202 # Hopefully this check is robust enough.
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 #include <netdb.h>
11211 _ACEOF
11212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11213 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11216 cat >>confdefs.h <<\_ACEOF
11217 #define GETHOSTBYNAME_R_RETURNS_INT 1
11218 _ACEOF
11221 rm -f conftest*
11224 case " $GCINCS " in
11225 *" -D_REENTRANT "*) ;;
11227 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11228 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11229 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232 ac_ext=cc
11233 ac_cpp='$CXXCPP $CPPFLAGS'
11234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h. */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 #include <netdb.h>
11246 main ()
11248 gethostbyname_r("", 0, 0);
11250 return 0;
11252 _ACEOF
11253 rm -f conftest.$ac_objext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255 (eval $ac_compile) 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_cxx_werror_flag"
11263 || test ! -s conftest.err'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; } &&
11269 { ac_try='test -s conftest.$ac_objext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 libjava_cv_gethostbyname_r_needs_reentrant=no
11276 else
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 CPPFLAGS_SAVE="$CPPFLAGS"
11281 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 #include <netdb.h>
11290 main ()
11292 gethostbyname_r("", 0, 0);
11294 return 0;
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299 (eval $ac_compile) 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_cxx_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest.$ac_objext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 libjava_cv_gethostbyname_r_needs_reentrant=yes
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 libjava_cv_gethostbyname_r_needs_reentrant=fail
11326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11327 CPPFLAGS="$CPPFLAGS_SAVE"
11330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11331 ac_ext=c
11332 ac_cpp='$CPP $CPPFLAGS'
11333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11339 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11340 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11341 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11343 cat >>confdefs.h <<\_ACEOF
11344 #define _REENTRANT 1
11345 _ACEOF
11349 esac
11351 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11352 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11353 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h. */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11363 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11364 # define _REENTRANT 1
11365 #endif
11366 #include <netdb.h>
11368 main ()
11370 struct hostent_data data;
11372 return 0;
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377 (eval $ac_compile) 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag"
11385 || test ! -s conftest.err'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; } &&
11391 { ac_try='test -s conftest.$ac_objext'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 libjava_cv_struct_hostent_data=yes
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 libjava_cv_struct_hostent_data=no
11404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11406 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11407 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11408 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11410 cat >>confdefs.h <<\_ACEOF
11411 #define HAVE_STRUCT_HOSTENT_DATA 1
11412 _ACEOF
11417 done
11420 # FIXME: libjava source code expects to find a prototype for
11421 # gethostbyaddr_r in netdb.h. The outer check ensures that
11422 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11423 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11424 # linkage check is enough, yet C++ code requires proper prototypes.)
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h. */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 #include <netdb.h>
11433 _ACEOF
11434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11435 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11438 for ac_func in gethostbyaddr_r
11440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11441 echo "$as_me:$LINENO: checking for $ac_func" >&5
11442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11443 if eval "test \"\${$as_ac_var+set}\" = set"; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446 if test x$gcc_no_link = xyes; then
11447 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11448 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11449 { (exit 1); exit 1; }; }
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11459 #define $ac_func innocuous_$ac_func
11461 /* System header to define __stub macros and hopefully few prototypes,
11462 which can conflict with char $ac_func (); below.
11463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11464 <limits.h> exists even on freestanding compilers. */
11466 #ifdef __STDC__
11467 # include <limits.h>
11468 #else
11469 # include <assert.h>
11470 #endif
11472 #undef $ac_func
11474 /* Override any gcc2 internal prototype to avoid an error. */
11475 #ifdef __cplusplus
11476 extern "C"
11478 #endif
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11481 char $ac_func ();
11482 /* The GNU C library defines this for functions which it implements
11483 to always fail with ENOSYS. Some functions are actually named
11484 something starting with __ and the normal name is an alias. */
11485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11486 choke me
11487 #else
11488 char (*f) () = $ac_func;
11489 #endif
11490 #ifdef __cplusplus
11492 #endif
11495 main ()
11497 return f != $ac_func;
11499 return 0;
11501 _ACEOF
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504 (eval $ac_link) 2>conftest.er1
11505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } &&
11511 { ac_try='test -z "$ac_c_werror_flag"
11512 || test ! -s conftest.err'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; } &&
11518 { ac_try='test -s conftest$ac_exeext'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 eval "$as_ac_var=yes"
11525 else
11526 echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11529 eval "$as_ac_var=no"
11531 rm -f conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11536 if test `eval echo '${'$as_ac_var'}'` = yes; then
11537 cat >>confdefs.h <<_ACEOF
11538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11539 _ACEOF
11542 cat >>confdefs.h <<\_ACEOF
11543 #define HAVE_GETHOSTBYADDR_R 1
11544 _ACEOF
11546 # There are two different kinds of gethostbyaddr_r.
11547 # We look for the one that returns `int'.
11548 # Hopefully this check is robust enough.
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 #include <netdb.h>
11557 _ACEOF
11558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11559 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11562 cat >>confdefs.h <<\_ACEOF
11563 #define GETHOSTBYADDR_R_RETURNS_INT 1
11564 _ACEOF
11567 rm -f conftest*
11570 done
11573 rm -f conftest*
11577 for ac_func in gethostname
11579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11580 echo "$as_me:$LINENO: checking for $ac_func" >&5
11581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11582 if eval "test \"\${$as_ac_var+set}\" = set"; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585 if test x$gcc_no_link = xyes; then
11586 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11587 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11588 { (exit 1); exit 1; }; }
11590 cat >conftest.$ac_ext <<_ACEOF
11591 /* confdefs.h. */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11598 #define $ac_func innocuous_$ac_func
11600 /* System header to define __stub macros and hopefully few prototypes,
11601 which can conflict with char $ac_func (); below.
11602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11603 <limits.h> exists even on freestanding compilers. */
11605 #ifdef __STDC__
11606 # include <limits.h>
11607 #else
11608 # include <assert.h>
11609 #endif
11611 #undef $ac_func
11613 /* Override any gcc2 internal prototype to avoid an error. */
11614 #ifdef __cplusplus
11615 extern "C"
11617 #endif
11618 /* We use char because int might match the return type of a gcc2
11619 builtin and then its argument prototype would still apply. */
11620 char $ac_func ();
11621 /* The GNU C library defines this for functions which it implements
11622 to always fail with ENOSYS. Some functions are actually named
11623 something starting with __ and the normal name is an alias. */
11624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11625 choke me
11626 #else
11627 char (*f) () = $ac_func;
11628 #endif
11629 #ifdef __cplusplus
11631 #endif
11634 main ()
11636 return f != $ac_func;
11638 return 0;
11640 _ACEOF
11641 rm -f conftest.$ac_objext conftest$ac_exeext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11643 (eval $ac_link) 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag"
11651 || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest$ac_exeext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 eval "$as_ac_var=yes"
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 eval "$as_ac_var=no"
11670 rm -f conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
11673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11675 if test `eval echo '${'$as_ac_var'}'` = yes; then
11676 cat >>confdefs.h <<_ACEOF
11677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11678 _ACEOF
11681 cat >>confdefs.h <<\_ACEOF
11682 #define HAVE_GETHOSTNAME 1
11683 _ACEOF
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 #include <unistd.h>
11693 _ACEOF
11694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11695 $EGREP "gethostname" >/dev/null 2>&1; then
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_GETHOSTNAME_DECL 1
11700 _ACEOF
11703 rm -f conftest*
11706 done
11710 for ac_func in usleep
11712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11713 echo "$as_me:$LINENO: checking for $ac_func" >&5
11714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11715 if eval "test \"\${$as_ac_var+set}\" = set"; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 if test x$gcc_no_link = xyes; then
11719 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11720 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11721 { (exit 1); exit 1; }; }
11723 cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h. */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11731 #define $ac_func innocuous_$ac_func
11733 /* System header to define __stub macros and hopefully few prototypes,
11734 which can conflict with char $ac_func (); below.
11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736 <limits.h> exists even on freestanding compilers. */
11738 #ifdef __STDC__
11739 # include <limits.h>
11740 #else
11741 # include <assert.h>
11742 #endif
11744 #undef $ac_func
11746 /* Override any gcc2 internal prototype to avoid an error. */
11747 #ifdef __cplusplus
11748 extern "C"
11750 #endif
11751 /* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11753 char $ac_func ();
11754 /* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11758 choke me
11759 #else
11760 char (*f) () = $ac_func;
11761 #endif
11762 #ifdef __cplusplus
11764 #endif
11767 main ()
11769 return f != $ac_func;
11771 return 0;
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag"
11784 || test ! -s conftest.err'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; } &&
11790 { ac_try='test -s conftest$ac_exeext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11803 rm -f conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11808 if test `eval echo '${'$as_ac_var'}'` = yes; then
11809 cat >>confdefs.h <<_ACEOF
11810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11811 _ACEOF
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <unistd.h>
11821 _ACEOF
11822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11823 $EGREP "usleep" >/dev/null 2>&1; then
11826 cat >>confdefs.h <<\_ACEOF
11827 #define HAVE_USLEEP_DECL 1
11828 _ACEOF
11831 rm -f conftest*
11834 done
11837 # Look for these functions in the thread library, but only bother
11838 # if using POSIX threads.
11839 if test "$THREADS" = posix; then
11840 save_LIBS="$LIBS"
11841 LIBS="$LIBS $THREADLIBS"
11842 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11843 # E.g., Solaris.
11846 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11851 if eval "test \"\${$as_ac_var+set}\" = set"; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854 if test x$gcc_no_link = xyes; then
11855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11857 { (exit 1); exit 1; }; }
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867 #define $ac_func innocuous_$ac_func
11869 /* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11874 #ifdef __STDC__
11875 # include <limits.h>
11876 #else
11877 # include <assert.h>
11878 #endif
11880 #undef $ac_func
11882 /* Override any gcc2 internal prototype to avoid an error. */
11883 #ifdef __cplusplus
11884 extern "C"
11886 #endif
11887 /* We use char because int might match the return type of a gcc2
11888 builtin and then its argument prototype would still apply. */
11889 char $ac_func ();
11890 /* The GNU C library defines this for functions which it implements
11891 to always fail with ENOSYS. Some functions are actually named
11892 something starting with __ and the normal name is an alias. */
11893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11894 choke me
11895 #else
11896 char (*f) () = $ac_func;
11897 #endif
11898 #ifdef __cplusplus
11900 #endif
11903 main ()
11905 return f != $ac_func;
11907 return 0;
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag"
11920 || test ! -s conftest.err'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 eval "$as_ac_var=yes"
11933 else
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 eval "$as_ac_var=no"
11939 rm -f conftest.err conftest.$ac_objext \
11940 conftest$ac_exeext conftest.$ac_ext
11942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11944 if test `eval echo '${'$as_ac_var'}'` = yes; then
11945 cat >>confdefs.h <<_ACEOF
11946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11947 _ACEOF
11950 done
11953 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11954 # Solaris 7 the name librt is preferred.
11956 for ac_func in sched_yield
11958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11959 echo "$as_me:$LINENO: checking for $ac_func" >&5
11960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11961 if eval "test \"\${$as_ac_var+set}\" = set"; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964 if test x$gcc_no_link = xyes; then
11965 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11966 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11967 { (exit 1); exit 1; }; }
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11977 #define $ac_func innocuous_$ac_func
11979 /* System header to define __stub macros and hopefully few prototypes,
11980 which can conflict with char $ac_func (); below.
11981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11982 <limits.h> exists even on freestanding compilers. */
11984 #ifdef __STDC__
11985 # include <limits.h>
11986 #else
11987 # include <assert.h>
11988 #endif
11990 #undef $ac_func
11992 /* Override any gcc2 internal prototype to avoid an error. */
11993 #ifdef __cplusplus
11994 extern "C"
11996 #endif
11997 /* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
11999 char $ac_func ();
12000 /* The GNU C library defines this for functions which it implements
12001 to always fail with ENOSYS. Some functions are actually named
12002 something starting with __ and the normal name is an alias. */
12003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12004 choke me
12005 #else
12006 char (*f) () = $ac_func;
12007 #endif
12008 #ifdef __cplusplus
12010 #endif
12013 main ()
12015 return f != $ac_func;
12017 return 0;
12019 _ACEOF
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022 (eval $ac_link) 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag"
12030 || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 eval "$as_ac_var=yes"
12043 else
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 eval "$as_ac_var=no"
12049 rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12054 if test `eval echo '${'$as_ac_var'}'` = yes; then
12055 cat >>confdefs.h <<_ACEOF
12056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12057 _ACEOF
12059 else
12061 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12062 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12063 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 else
12066 ac_check_lib_save_LIBS=$LIBS
12067 LIBS="-lrt $LIBS"
12068 if test x$gcc_no_link = xyes; then
12069 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12070 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12071 { (exit 1); exit 1; }; }
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h. */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12080 /* Override any gcc2 internal prototype to avoid an error. */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 /* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12086 char sched_yield ();
12088 main ()
12090 sched_yield ();
12092 return 0;
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_c_werror_flag"
12105 || test ! -s conftest.err'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_lib_rt_sched_yield=yes
12118 else
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 ac_cv_lib_rt_sched_yield=no
12124 rm -f conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12128 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12129 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12130 if test $ac_cv_lib_rt_sched_yield = yes; then
12132 cat >>confdefs.h <<\_ACEOF
12133 #define HAVE_SCHED_YIELD 1
12134 _ACEOF
12136 THREADLIBS="$THREADLIBS -lrt"
12137 THREADSPEC="$THREADSPEC -lrt"
12138 else
12140 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12141 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12142 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145 ac_check_lib_save_LIBS=$LIBS
12146 LIBS="-lposix4 $LIBS"
12147 if test x$gcc_no_link = xyes; then
12148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12150 { (exit 1); exit 1; }; }
12152 cat >conftest.$ac_ext <<_ACEOF
12153 /* confdefs.h. */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12159 /* Override any gcc2 internal prototype to avoid an error. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 /* We use char because int might match the return type of a gcc2
12164 builtin and then its argument prototype would still apply. */
12165 char sched_yield ();
12167 main ()
12169 sched_yield ();
12171 return 0;
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12176 (eval $ac_link) 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag"
12184 || test ! -s conftest.err'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; } &&
12190 { ac_try='test -s conftest$ac_exeext'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12196 ac_cv_lib_posix4_sched_yield=yes
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_cv_lib_posix4_sched_yield=no
12203 rm -f conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12207 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12208 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12209 if test $ac_cv_lib_posix4_sched_yield = yes; then
12211 cat >>confdefs.h <<\_ACEOF
12212 #define HAVE_SCHED_YIELD 1
12213 _ACEOF
12215 THREADLIBS="$THREADLIBS -lposix4"
12216 THREADSPEC="$THREADSPEC -lposix4"
12222 done
12224 LIBS="$save_LIBS"
12226 # We can save a little space at runtime if the mutex has m_count
12227 # or __m_count. This is a nice hack for Linux.
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h. */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 #include <pthread.h>
12236 main ()
12239 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12242 return 0;
12244 _ACEOF
12245 rm -f conftest.$ac_objext
12246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12247 (eval $ac_compile) 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -z "$ac_c_werror_flag"
12255 || test ! -s conftest.err'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; } &&
12261 { ac_try='test -s conftest.$ac_objext'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12268 cat >>confdefs.h <<\_ACEOF
12269 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12270 _ACEOF
12272 else
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h. */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12283 #include <pthread.h>
12285 main ()
12288 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12291 return 0;
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296 (eval $ac_compile) 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag"
12304 || test ! -s conftest.err'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest.$ac_objext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12317 cat >>confdefs.h <<\_ACEOF
12318 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12319 _ACEOF
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12331 # We require a way to get the time.
12332 time_found=no
12336 for ac_func in gettimeofday time ftime
12338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12339 echo "$as_me:$LINENO: checking for $ac_func" >&5
12340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12341 if eval "test \"\${$as_ac_var+set}\" = set"; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344 if test x$gcc_no_link = xyes; then
12345 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12347 { (exit 1); exit 1; }; }
12349 cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h. */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12357 #define $ac_func innocuous_$ac_func
12359 /* System header to define __stub macros and hopefully few prototypes,
12360 which can conflict with char $ac_func (); below.
12361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12362 <limits.h> exists even on freestanding compilers. */
12364 #ifdef __STDC__
12365 # include <limits.h>
12366 #else
12367 # include <assert.h>
12368 #endif
12370 #undef $ac_func
12372 /* Override any gcc2 internal prototype to avoid an error. */
12373 #ifdef __cplusplus
12374 extern "C"
12376 #endif
12377 /* We use char because int might match the return type of a gcc2
12378 builtin and then its argument prototype would still apply. */
12379 char $ac_func ();
12380 /* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12384 choke me
12385 #else
12386 char (*f) () = $ac_func;
12387 #endif
12388 #ifdef __cplusplus
12390 #endif
12393 main ()
12395 return f != $ac_func;
12397 return 0;
12399 _ACEOF
12400 rm -f conftest.$ac_objext conftest$ac_exeext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag"
12410 || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest$ac_exeext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 eval "$as_ac_var=yes"
12423 else
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12427 eval "$as_ac_var=no"
12429 rm -f conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
12432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12434 if test `eval echo '${'$as_ac_var'}'` = yes; then
12435 cat >>confdefs.h <<_ACEOF
12436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12437 _ACEOF
12438 time_found=yes
12440 done
12442 if test "$time_found" = no; then
12443 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12444 echo "$as_me: error: no function found to get the time" >&2;}
12445 { (exit 1); exit 1; }; }
12449 for ac_func in memmove
12451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452 echo "$as_me:$LINENO: checking for $ac_func" >&5
12453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12454 if eval "test \"\${$as_ac_var+set}\" = set"; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457 if test x$gcc_no_link = xyes; then
12458 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12460 { (exit 1); exit 1; }; }
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h. */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12470 #define $ac_func innocuous_$ac_func
12472 /* System header to define __stub macros and hopefully few prototypes,
12473 which can conflict with char $ac_func (); below.
12474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12475 <limits.h> exists even on freestanding compilers. */
12477 #ifdef __STDC__
12478 # include <limits.h>
12479 #else
12480 # include <assert.h>
12481 #endif
12483 #undef $ac_func
12485 /* Override any gcc2 internal prototype to avoid an error. */
12486 #ifdef __cplusplus
12487 extern "C"
12489 #endif
12490 /* We use char because int might match the return type of a gcc2
12491 builtin and then its argument prototype would still apply. */
12492 char $ac_func ();
12493 /* The GNU C library defines this for functions which it implements
12494 to always fail with ENOSYS. Some functions are actually named
12495 something starting with __ and the normal name is an alias. */
12496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12497 choke me
12498 #else
12499 char (*f) () = $ac_func;
12500 #endif
12501 #ifdef __cplusplus
12503 #endif
12506 main ()
12508 return f != $ac_func;
12510 return 0;
12512 _ACEOF
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12515 (eval $ac_link) 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -z "$ac_c_werror_flag"
12523 || test ! -s conftest.err'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; } &&
12529 { ac_try='test -s conftest$ac_exeext'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
12535 eval "$as_ac_var=yes"
12536 else
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12540 eval "$as_ac_var=no"
12542 rm -f conftest.err conftest.$ac_objext \
12543 conftest$ac_exeext conftest.$ac_ext
12545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12547 if test `eval echo '${'$as_ac_var'}'` = yes; then
12548 cat >>confdefs.h <<_ACEOF
12549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12550 _ACEOF
12553 done
12556 # We require memcpy.
12557 memcpy_found=no
12559 for ac_func in memcpy
12561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12562 echo "$as_me:$LINENO: checking for $ac_func" >&5
12563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12564 if eval "test \"\${$as_ac_var+set}\" = set"; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 else
12567 if test x$gcc_no_link = xyes; then
12568 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12569 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12570 { (exit 1); exit 1; }; }
12572 cat >conftest.$ac_ext <<_ACEOF
12573 /* confdefs.h. */
12574 _ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12580 #define $ac_func innocuous_$ac_func
12582 /* System header to define __stub macros and hopefully few prototypes,
12583 which can conflict with char $ac_func (); below.
12584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12585 <limits.h> exists even on freestanding compilers. */
12587 #ifdef __STDC__
12588 # include <limits.h>
12589 #else
12590 # include <assert.h>
12591 #endif
12593 #undef $ac_func
12595 /* Override any gcc2 internal prototype to avoid an error. */
12596 #ifdef __cplusplus
12597 extern "C"
12599 #endif
12600 /* We use char because int might match the return type of a gcc2
12601 builtin and then its argument prototype would still apply. */
12602 char $ac_func ();
12603 /* The GNU C library defines this for functions which it implements
12604 to always fail with ENOSYS. Some functions are actually named
12605 something starting with __ and the normal name is an alias. */
12606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12607 choke me
12608 #else
12609 char (*f) () = $ac_func;
12610 #endif
12611 #ifdef __cplusplus
12613 #endif
12616 main ()
12618 return f != $ac_func;
12620 return 0;
12622 _ACEOF
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625 (eval $ac_link) 2>conftest.er1
12626 ac_status=$?
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -z "$ac_c_werror_flag"
12633 || test ! -s conftest.err'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 eval "$as_ac_var=yes"
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 eval "$as_ac_var=no"
12652 rm -f conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12657 if test `eval echo '${'$as_ac_var'}'` = yes; then
12658 cat >>confdefs.h <<_ACEOF
12659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12660 _ACEOF
12661 memcpy_found=yes
12663 done
12665 if test "$memcpy_found" = no; then
12666 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12667 echo "$as_me: error: memcpy is required" >&2;}
12668 { (exit 1); exit 1; }; }
12671 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12672 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676 ac_check_lib_save_LIBS=$LIBS
12677 LIBS="-ldl $LIBS"
12678 if test x$gcc_no_link = xyes; then
12679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12681 { (exit 1); exit 1; }; }
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h. */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12690 /* Override any gcc2 internal prototype to avoid an error. */
12691 #ifdef __cplusplus
12692 extern "C"
12693 #endif
12694 /* We use char because int might match the return type of a gcc2
12695 builtin and then its argument prototype would still apply. */
12696 char dlopen ();
12698 main ()
12700 dlopen ();
12702 return 0;
12704 _ACEOF
12705 rm -f conftest.$ac_objext conftest$ac_exeext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707 (eval $ac_link) 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest$ac_exeext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 ac_cv_lib_dl_dlopen=yes
12728 else
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 ac_cv_lib_dl_dlopen=no
12734 rm -f conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736 LIBS=$ac_check_lib_save_LIBS
12738 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12739 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12740 if test $ac_cv_lib_dl_dlopen = yes; then
12743 cat >>confdefs.h <<\_ACEOF
12744 #define HAVE_DLOPEN 1
12745 _ACEOF
12750 # Some library-finding code we stole from Tcl.
12751 #--------------------------------------------------------------------
12752 # Check for the existence of the -lsocket and -lnsl libraries.
12753 # The order here is important, so that they end up in the right
12754 # order in the command line generated by make. Here are some
12755 # special considerations:
12756 # 1. Use "connect" and "accept" to check for -lsocket, and
12757 # "gethostbyname" to check for -lnsl.
12758 # 2. Use each function name only once: can't redo a check because
12759 # autoconf caches the results of the last check and won't redo it.
12760 # 3. Use -lnsl and -lsocket only if they supply procedures that
12761 # aren't already present in the normal libraries. This is because
12762 # IRIX 5.2 has libraries, but they aren't needed and they're
12763 # bogus: they goof up name resolution if used.
12764 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12765 # To get around this problem, check for both libraries together
12766 # if -lsocket doesn't work by itself.
12767 #--------------------------------------------------------------------
12769 echo "$as_me:$LINENO: checking for socket libraries" >&5
12770 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12771 if test "${gcj_cv_lib_sockets+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774 gcj_cv_lib_sockets=
12775 gcj_checkBoth=0
12776 unset ac_cv_func_connect
12777 echo "$as_me:$LINENO: checking for connect" >&5
12778 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12779 if test "${ac_cv_func_connect+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782 if test x$gcc_no_link = xyes; then
12783 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12785 { (exit 1); exit 1; }; }
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795 #define connect innocuous_connect
12797 /* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char connect (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12802 #ifdef __STDC__
12803 # include <limits.h>
12804 #else
12805 # include <assert.h>
12806 #endif
12808 #undef connect
12810 /* Override any gcc2 internal prototype to avoid an error. */
12811 #ifdef __cplusplus
12812 extern "C"
12814 #endif
12815 /* We use char because int might match the return type of a gcc2
12816 builtin and then its argument prototype would still apply. */
12817 char connect ();
12818 /* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821 #if defined (__stub_connect) || defined (__stub___connect)
12822 choke me
12823 #else
12824 char (*f) () = connect;
12825 #endif
12826 #ifdef __cplusplus
12828 #endif
12831 main ()
12833 return f != connect;
12835 return 0;
12837 _ACEOF
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840 (eval $ac_link) 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag"
12848 || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest$ac_exeext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_cv_func_connect=yes
12861 else
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_cv_func_connect=no
12867 rm -f conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12870 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12871 echo "${ECHO_T}$ac_cv_func_connect" >&6
12872 if test $ac_cv_func_connect = yes; then
12873 gcj_checkSocket=0
12874 else
12875 gcj_checkSocket=1
12878 if test "$gcj_checkSocket" = 1; then
12879 unset ac_cv_func_connect
12880 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12881 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12882 if test "${ac_cv_lib_socket_main+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 else
12885 ac_check_lib_save_LIBS=$LIBS
12886 LIBS="-lsocket $LIBS"
12887 if test x$gcc_no_link = xyes; then
12888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12890 { (exit 1); exit 1; }; }
12892 cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h. */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12901 main ()
12903 main ();
12905 return 0;
12907 _ACEOF
12908 rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12910 (eval $ac_link) 2>conftest.er1
12911 ac_status=$?
12912 grep -v '^ *+' conftest.er1 >conftest.err
12913 rm -f conftest.er1
12914 cat conftest.err >&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
12917 { ac_try='test -z "$ac_c_werror_flag"
12918 || test ! -s conftest.err'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; } &&
12924 { ac_try='test -s conftest$ac_exeext'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
12930 ac_cv_lib_socket_main=yes
12931 else
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 ac_cv_lib_socket_main=no
12937 rm -f conftest.err conftest.$ac_objext \
12938 conftest$ac_exeext conftest.$ac_ext
12939 LIBS=$ac_check_lib_save_LIBS
12941 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12942 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12943 if test $ac_cv_lib_socket_main = yes; then
12944 gcj_cv_lib_sockets="-lsocket"
12945 else
12946 gcj_checkBoth=1
12950 if test "$gcj_checkBoth" = 1; then
12951 gcj_oldLibs=$LIBS
12952 LIBS="$LIBS -lsocket -lnsl"
12953 unset ac_cv_func_accept
12954 echo "$as_me:$LINENO: checking for accept" >&5
12955 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12956 if test "${ac_cv_func_accept+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959 if test x$gcc_no_link = xyes; then
12960 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12961 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12962 { (exit 1); exit 1; }; }
12964 cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h. */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12972 #define accept innocuous_accept
12974 /* System header to define __stub macros and hopefully few prototypes,
12975 which can conflict with char accept (); below.
12976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12977 <limits.h> exists even on freestanding compilers. */
12979 #ifdef __STDC__
12980 # include <limits.h>
12981 #else
12982 # include <assert.h>
12983 #endif
12985 #undef accept
12987 /* Override any gcc2 internal prototype to avoid an error. */
12988 #ifdef __cplusplus
12989 extern "C"
12991 #endif
12992 /* We use char because int might match the return type of a gcc2
12993 builtin and then its argument prototype would still apply. */
12994 char accept ();
12995 /* The GNU C library defines this for functions which it implements
12996 to always fail with ENOSYS. Some functions are actually named
12997 something starting with __ and the normal name is an alias. */
12998 #if defined (__stub_accept) || defined (__stub___accept)
12999 choke me
13000 #else
13001 char (*f) () = accept;
13002 #endif
13003 #ifdef __cplusplus
13005 #endif
13008 main ()
13010 return f != accept;
13012 return 0;
13014 _ACEOF
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>conftest.er1
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_func_accept=yes
13038 else
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 ac_cv_func_accept=no
13044 rm -f conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13047 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13048 echo "${ECHO_T}$ac_cv_func_accept" >&6
13049 if test $ac_cv_func_accept = yes; then
13050 gcj_checkNsl=0
13051 gcj_cv_lib_sockets="-lsocket -lnsl"
13054 unset ac_cv_func_accept
13055 LIBS=$gcj_oldLibs
13057 unset ac_cv_func_gethostbyname
13058 gcj_oldLibs=$LIBS
13059 LIBS="$LIBS $gcj_cv_lib_sockets"
13060 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13061 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13062 if test "${ac_cv_func_gethostbyname+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065 if test x$gcc_no_link = xyes; then
13066 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13067 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13068 { (exit 1); exit 1; }; }
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13078 #define gethostbyname innocuous_gethostbyname
13080 /* System header to define __stub macros and hopefully few prototypes,
13081 which can conflict with char gethostbyname (); below.
13082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13083 <limits.h> exists even on freestanding compilers. */
13085 #ifdef __STDC__
13086 # include <limits.h>
13087 #else
13088 # include <assert.h>
13089 #endif
13091 #undef gethostbyname
13093 /* Override any gcc2 internal prototype to avoid an error. */
13094 #ifdef __cplusplus
13095 extern "C"
13097 #endif
13098 /* We use char because int might match the return type of a gcc2
13099 builtin and then its argument prototype would still apply. */
13100 char gethostbyname ();
13101 /* The GNU C library defines this for functions which it implements
13102 to always fail with ENOSYS. Some functions are actually named
13103 something starting with __ and the normal name is an alias. */
13104 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13105 choke me
13106 #else
13107 char (*f) () = gethostbyname;
13108 #endif
13109 #ifdef __cplusplus
13111 #endif
13114 main ()
13116 return f != gethostbyname;
13118 return 0;
13120 _ACEOF
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest$ac_exeext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 ac_cv_func_gethostbyname=yes
13144 else
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ac_cv_func_gethostbyname=no
13150 rm -f conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13153 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13154 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13155 if test $ac_cv_func_gethostbyname = yes; then
13157 else
13158 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13159 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13160 if test "${ac_cv_lib_nsl_main+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163 ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-lnsl $LIBS"
13165 if test x$gcc_no_link = xyes; then
13166 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13167 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13168 { (exit 1); exit 1; }; }
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h. */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13179 main ()
13181 main ();
13183 return 0;
13185 _ACEOF
13186 rm -f conftest.$ac_objext conftest$ac_exeext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13188 (eval $ac_link) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag"
13196 || test ! -s conftest.err'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; } &&
13202 { ac_try='test -s conftest$ac_exeext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_lib_nsl_main=yes
13209 else
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 ac_cv_lib_nsl_main=no
13215 rm -f conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13219 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13220 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13221 if test $ac_cv_lib_nsl_main = yes; then
13222 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13227 unset ac_cv_func_gethostbyname
13228 LIBS=$gcj_oldLIBS
13231 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13232 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13233 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13235 if test "$with_system_zlib" = yes; then
13236 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13237 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13238 if test "${ac_cv_lib_z_deflate+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241 ac_check_lib_save_LIBS=$LIBS
13242 LIBS="-lz $LIBS"
13243 if test x$gcc_no_link = xyes; then
13244 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13245 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13246 { (exit 1); exit 1; }; }
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h. */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13255 /* Override any gcc2 internal prototype to avoid an error. */
13256 #ifdef __cplusplus
13257 extern "C"
13258 #endif
13259 /* We use char because int might match the return type of a gcc2
13260 builtin and then its argument prototype would still apply. */
13261 char deflate ();
13263 main ()
13265 deflate ();
13267 return 0;
13269 _ACEOF
13270 rm -f conftest.$ac_objext conftest$ac_exeext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13272 (eval $ac_link) 2>conftest.er1
13273 ac_status=$?
13274 grep -v '^ *+' conftest.er1 >conftest.err
13275 rm -f conftest.er1
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -z "$ac_c_werror_flag"
13280 || test ! -s conftest.err'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest$ac_exeext'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_lib_z_deflate=yes
13293 else
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ac_cv_lib_z_deflate=no
13299 rm -f conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13301 LIBS=$ac_check_lib_save_LIBS
13303 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13304 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13305 if test $ac_cv_lib_z_deflate = yes; then
13306 ZLIBSPEC=-lz
13307 else
13308 ZLIBSPEC=
13313 # Test for Gtk stuff, if asked for.
13314 if test "$use_gtk_awt" = yes; then
13316 succeeded=no
13318 if test -z "$PKG_CONFIG"; then
13319 # Extract the first word of "pkg-config", so it can be a program name with args.
13320 set dummy pkg-config; ac_word=$2
13321 echo "$as_me:$LINENO: checking for $ac_word" >&5
13322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13323 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 else
13326 case $PKG_CONFIG in
13327 [\\/]* | ?:[\\/]*)
13328 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13334 IFS=$as_save_IFS
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13338 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 break 2
13342 done
13343 done
13345 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13347 esac
13349 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13351 if test -n "$PKG_CONFIG"; then
13352 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13353 echo "${ECHO_T}$PKG_CONFIG" >&6
13354 else
13355 echo "$as_me:$LINENO: result: no" >&5
13356 echo "${ECHO_T}no" >&6
13361 if test "$PKG_CONFIG" = "no" ; then
13362 echo "*** The pkg-config script could not be found. Make sure it is"
13363 echo "*** in your path, or set the PKG_CONFIG environment variable"
13364 echo "*** to the full path to pkg-config."
13365 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13366 else
13367 PKG_CONFIG_MIN_VERSION=0.9.0
13368 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13369 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13370 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13372 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13373 echo "$as_me:$LINENO: result: yes" >&5
13374 echo "${ECHO_T}yes" >&6
13375 succeeded=yes
13377 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13378 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13379 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13380 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13381 echo "${ECHO_T}$GTK_CFLAGS" >&6
13383 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13384 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13385 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13386 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13387 echo "${ECHO_T}$GTK_LIBS" >&6
13388 else
13389 GTK_CFLAGS=""
13390 GTK_LIBS=""
13391 ## If we have a custom action on failure, don't print errors, but
13392 ## do set a variable so people can do so.
13393 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13394 echo $GTK_PKG_ERRORS
13399 else
13400 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13401 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13405 if test $succeeded = yes; then
13407 else
13408 { { 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
13409 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;}
13410 { (exit 1); exit 1; }; }
13417 succeeded=no
13419 if test -z "$PKG_CONFIG"; then
13420 # Extract the first word of "pkg-config", so it can be a program name with args.
13421 set dummy pkg-config; ac_word=$2
13422 echo "$as_me:$LINENO: checking for $ac_word" >&5
13423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13424 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427 case $PKG_CONFIG in
13428 [\\/]* | ?:[\\/]*)
13429 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13435 IFS=$as_save_IFS
13436 test -z "$as_dir" && as_dir=.
13437 for ac_exec_ext in '' $ac_executable_extensions; do
13438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13439 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13441 break 2
13443 done
13444 done
13446 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13448 esac
13450 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13452 if test -n "$PKG_CONFIG"; then
13453 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13454 echo "${ECHO_T}$PKG_CONFIG" >&6
13455 else
13456 echo "$as_me:$LINENO: result: no" >&5
13457 echo "${ECHO_T}no" >&6
13462 if test "$PKG_CONFIG" = "no" ; then
13463 echo "*** The pkg-config script could not be found. Make sure it is"
13464 echo "*** in your path, or set the PKG_CONFIG environment variable"
13465 echo "*** to the full path to pkg-config."
13466 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13467 else
13468 PKG_CONFIG_MIN_VERSION=0.9.0
13469 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13470 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13471 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13473 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13474 echo "$as_me:$LINENO: result: yes" >&5
13475 echo "${ECHO_T}yes" >&6
13476 succeeded=yes
13478 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13479 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13480 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13481 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13482 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13484 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13485 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13486 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13487 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13488 echo "${ECHO_T}$GLIB_LIBS" >&6
13489 else
13490 GLIB_CFLAGS=""
13491 GLIB_LIBS=""
13492 ## If we have a custom action on failure, don't print errors, but
13493 ## do set a variable so people can do so.
13494 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13495 echo $GLIB_PKG_ERRORS
13500 else
13501 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13502 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13506 if test $succeeded = yes; then
13508 else
13509 { { 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
13510 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;}
13511 { (exit 1); exit 1; }; }
13518 succeeded=no
13520 if test -z "$PKG_CONFIG"; then
13521 # Extract the first word of "pkg-config", so it can be a program name with args.
13522 set dummy pkg-config; ac_word=$2
13523 echo "$as_me:$LINENO: checking for $ac_word" >&5
13524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13525 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528 case $PKG_CONFIG in
13529 [\\/]* | ?:[\\/]*)
13530 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534 for as_dir in $PATH
13536 IFS=$as_save_IFS
13537 test -z "$as_dir" && as_dir=.
13538 for ac_exec_ext in '' $ac_executable_extensions; do
13539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13540 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13542 break 2
13544 done
13545 done
13547 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13549 esac
13551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13553 if test -n "$PKG_CONFIG"; then
13554 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13555 echo "${ECHO_T}$PKG_CONFIG" >&6
13556 else
13557 echo "$as_me:$LINENO: result: no" >&5
13558 echo "${ECHO_T}no" >&6
13563 if test "$PKG_CONFIG" = "no" ; then
13564 echo "*** The pkg-config script could not be found. Make sure it is"
13565 echo "*** in your path, or set the PKG_CONFIG environment variable"
13566 echo "*** to the full path to pkg-config."
13567 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13568 else
13569 PKG_CONFIG_MIN_VERSION=0.9.0
13570 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13571 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13572 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13574 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13575 echo "$as_me:$LINENO: result: yes" >&5
13576 echo "${ECHO_T}yes" >&6
13577 succeeded=yes
13579 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13580 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13581 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13582 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13583 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13585 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13586 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13587 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13588 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13589 echo "${ECHO_T}$LIBART_LIBS" >&6
13590 else
13591 LIBART_CFLAGS=""
13592 LIBART_LIBS=""
13593 ## If we have a custom action on failure, don't print errors, but
13594 ## do set a variable so people can do so.
13595 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13596 echo $LIBART_PKG_ERRORS
13601 else
13602 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13603 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13607 if test $succeeded = yes; then
13609 else
13610 { { 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
13611 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;}
13612 { (exit 1); exit 1; }; }
13619 # On Solaris, and maybe other architectures, the Boehm collector
13620 # requires -ldl.
13621 if test "$GC" = boehm; then
13622 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13623 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13624 if test "${ac_cv_lib_dl_main+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 else
13627 ac_check_lib_save_LIBS=$LIBS
13628 LIBS="-ldl $LIBS"
13629 if test x$gcc_no_link = xyes; then
13630 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13631 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13632 { (exit 1); exit 1; }; }
13634 cat >conftest.$ac_ext <<_ACEOF
13635 /* confdefs.h. */
13636 _ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13643 main ()
13645 main ();
13647 return 0;
13649 _ACEOF
13650 rm -f conftest.$ac_objext conftest$ac_exeext
13651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13652 (eval $ac_link) 2>conftest.er1
13653 ac_status=$?
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -z "$ac_c_werror_flag"
13660 || test ! -s conftest.err'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; } &&
13666 { ac_try='test -s conftest$ac_exeext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_cv_lib_dl_main=yes
13673 else
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_cv_lib_dl_main=no
13679 rm -f conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 LIBS=$ac_check_lib_save_LIBS
13683 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13684 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13685 if test $ac_cv_lib_dl_main = yes; then
13686 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13693 if test "$supply_backtrace" = yes; then
13694 SUPPLY_BACKTRACE_TRUE=
13695 SUPPLY_BACKTRACE_FALSE='#'
13696 else
13697 SUPPLY_BACKTRACE_TRUE='#'
13698 SUPPLY_BACKTRACE_FALSE=
13702 if test -z "${with_multisubdir}"; then
13703 builddotdot=.
13704 else
13705 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13708 NATIVE=yes
13710 # Which gcj do we use?
13711 which_gcj=default
13712 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13713 if test -n "${with_cross_host}"; then
13714 # We are being configured with a cross compiler. We can't
13715 # use ac_exeext, because that is for the target platform.
13716 NATIVE=no
13717 cross_host_exeext=
13718 case "${with_cross_host}" in
13719 *mingw* | *cygwin*)
13720 cross_host_exeext=.exe
13722 esac
13723 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13724 if test x"$build_noncanonical" = x"$with_cross_host"; then
13725 # Ordinary cross (host!=target and host=build)
13726 which_gcj=built
13727 else
13728 # Canadian cross (host!=target and host!=build)
13729 which_gcj=cross
13731 else
13732 which_gcj=cross
13734 else
13735 # We are being configured with a native or crossed-native compiler
13736 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13737 if test x"$build" = x"$host"; then
13738 # True native build (host=target and host=build)
13739 which_gcj=built
13740 else
13741 # Crossed-native build (host=target and host!=build)
13742 which_gcj=cross
13744 else
13745 which_gcj=path
13748 case "${which_gcj}" in
13749 built)
13750 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13751 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13752 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13754 cross)
13755 if test "x${with_newlib}" = "xyes"; then
13756 # FIXME (comment): Why is this needed?
13757 GCC_UNWIND_INCLUDE=
13758 GCJ="${target_noncanonical}-gcj"
13759 else
13760 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13762 ZIP=jar
13763 GCJH='$(target_noncanonical)-gcjh'
13765 path)
13766 GCJ="gcj -B`${PWDCMD-pwd}`/"
13767 ## In this case, gcj is found outside the build tree. However, zip is
13768 ## found in the build tree.
13769 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13770 GCJH=gcjh
13772 esac
13777 # Create it, so that compile/link tests don't fail
13778 test -f libgcj.spec || touch libgcj.spec
13780 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13781 case $build in
13782 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13783 *) CLASSPATH_SEPARATOR=':' ;;
13784 esac
13787 # We must search the source tree for java.lang, since we still don't
13788 # have libgcj.jar nor java/lang/*.class
13789 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13790 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13792 # Since some classes depend on this one, we need its source available
13793 # before we can do any GCJ compilation test :-(
13794 if test ! -f gnu/classpath/Configuration.java; then
13795 test -d gnu || mkdir gnu
13796 test -d gnu/classpath || mkdir gnu/classpath
13797 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13798 -e 's,@TOOLKIT@,$TOOLKIT,' \
13799 < $srcdir/gnu/classpath/Configuration.java.in \
13800 > gnu/classpath/Configuration.java
13801 # We do not want to redirect the output of the grep below to /dev/null,
13802 # but we add /dev/null to the input list so that grep will print the
13803 # filename of Configuration.java in case it finds any matches.
13804 if grep @ gnu/classpath/Configuration.java /dev/null; then
13805 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13806 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13807 { (exit 1); exit 1; }; }
13811 if test -n "$ac_tool_prefix"; then
13812 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13813 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13814 echo "$as_me:$LINENO: checking for $ac_word" >&5
13815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13816 if test "${ac_cv_prog_GCJ+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819 if test -n "$GCJ"; then
13820 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13821 else
13822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13823 for as_dir in $PATH
13825 IFS=$as_save_IFS
13826 test -z "$as_dir" && as_dir=.
13827 for ac_exec_ext in '' $ac_executable_extensions; do
13828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13829 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13831 break 2
13833 done
13834 done
13838 GCJ=$ac_cv_prog_GCJ
13839 if test -n "$GCJ"; then
13840 echo "$as_me:$LINENO: result: $GCJ" >&5
13841 echo "${ECHO_T}$GCJ" >&6
13842 else
13843 echo "$as_me:$LINENO: result: no" >&5
13844 echo "${ECHO_T}no" >&6
13848 if test -z "$ac_cv_prog_GCJ"; then
13849 ac_ct_GCJ=$GCJ
13850 # Extract the first word of "gcj", so it can be a program name with args.
13851 set dummy gcj; ac_word=$2
13852 echo "$as_me:$LINENO: checking for $ac_word" >&5
13853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13854 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857 if test -n "$ac_ct_GCJ"; then
13858 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13859 else
13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13863 IFS=$as_save_IFS
13864 test -z "$as_dir" && as_dir=.
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13867 ac_cv_prog_ac_ct_GCJ="gcj"
13868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13869 break 2
13871 done
13872 done
13874 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13877 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13878 if test -n "$ac_ct_GCJ"; then
13879 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13880 echo "${ECHO_T}$ac_ct_GCJ" >&6
13881 else
13882 echo "$as_me:$LINENO: result: no" >&5
13883 echo "${ECHO_T}no" >&6
13886 GCJ=$ac_ct_GCJ
13887 else
13888 GCJ="$ac_cv_prog_GCJ"
13891 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13896 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13898 echo "$as_me:$LINENO: checking size of void *" >&5
13899 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13900 if test "${ac_cv_sizeof_void_p+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h. */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 #include "confdefs.h"
13911 #include <sys/types.h>
13915 main ()
13917 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13919 return 0;
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>conftest.er1
13925 ac_status=$?
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } &&
13931 { ac_try='test -z "$ac_c_werror_flag"
13932 || test ! -s conftest.err'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; } &&
13938 { ac_try='test -s conftest.$ac_objext'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; }; then
13944 ac_cv_sizeof_void_p=$ac_size
13945 else
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13951 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13952 done
13956 if test x$ac_cv_sizeof_void_p = x ; then
13957 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13958 echo "$as_me: error: cannot determine a size for void *" >&2;}
13959 { (exit 1); exit 1; }; }
13961 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13962 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13964 cat >>confdefs.h <<_ACEOF
13965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13966 _ACEOF
13970 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13971 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13972 if test "${ac_cv_c_bigendian+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 else
13975 ac_cv_c_bigendian=unknown
13976 # See if sys/param.h defines the BYTE_ORDER macro.
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h. */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 #include <sys/types.h>
13984 #include <sys/param.h>
13986 main ()
13989 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13990 bogus endian macros
13991 #endif
13993 return 0;
13995 _ACEOF
13996 rm -f conftest.$ac_objext
13997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13998 (eval $ac_compile) 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try='test -z "$ac_c_werror_flag"
14006 || test ! -s conftest.err'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; } &&
14012 { ac_try='test -s conftest.$ac_objext'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 # It does; now see whether it defined to BIG_ENDIAN or not.
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 #include <sys/types.h>
14026 #include <sys/param.h>
14028 main ()
14031 #if BYTE_ORDER != BIG_ENDIAN
14032 not big endian
14033 #endif
14035 return 0;
14037 _ACEOF
14038 rm -f conftest.$ac_objext
14039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag"
14048 || test ! -s conftest.err'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest.$ac_objext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_c_bigendian=yes
14061 else
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 ac_cv_c_bigendian=no
14067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14068 else
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14074 if test $ac_cv_c_bigendian = unknown; then
14075 if test "$cross_compiling" = yes; then
14076 echo $ac_n "cross-compiling... " 2>&6
14077 else
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 main () {
14085 /* Are we little or big endian? From Harbison&Steele. */
14086 union
14088 long l;
14089 char c[sizeof (long)];
14090 } u;
14091 u.l = 1;
14092 exit (u.c[sizeof (long) - 1] == 1);
14094 _ACEOF
14095 rm -f conftest$ac_exeext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14097 (eval $ac_link) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_cv_c_bigendian=no
14107 else
14108 echo "$as_me: program exited with status $ac_status" >&5
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ( exit $ac_status )
14113 ac_cv_c_bigendian=yes
14115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14119 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14120 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14121 if test $ac_cv_c_bigendian = unknown; then
14122 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
14123 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
14125 cat >conftest.c <<EOF
14126 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14127 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14128 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
14129 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14130 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14131 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
14132 int main() { _ascii (); _ebcdic (); return 0; }
14134 if test -f conftest.c ; then
14135 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
14136 if test `grep -l BIGenDianSyS conftest.o` ; then
14137 echo $ac_n ' big endian probe OK, ' 1>&6
14138 ac_cv_c_bigendian=yes
14140 if test `grep -l LiTTleEnDian conftest.o` ; then
14141 echo $ac_n ' little endian probe OK, ' 1>&6
14142 if test $ac_cv_c_bigendian = yes ; then
14143 ac_cv_c_bigendian=unknown;
14144 else
14145 ac_cv_c_bigendian=no
14148 echo $ac_n 'guessing bigendian ... ' >&6
14151 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14152 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14154 if test $ac_cv_c_bigendian = yes; then
14156 cat >>confdefs.h <<\_ACEOF
14157 #define WORDS_BIGENDIAN 1
14158 _ACEOF
14161 cat >>confdefs.h <<\_ACEOF
14162 #define HOST_WORDS_BIG_ENDIAN 1
14163 _ACEOF
14165 BYTEORDER=4321
14166 else
14167 BYTEORDER=1234
14170 cat >>confdefs.h <<_ACEOF
14171 #define BYTEORDER $BYTEORDER
14172 _ACEOF
14174 if test $ac_cv_c_bigendian = unknown; then
14175 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
14176 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
14177 { (exit 1); exit 1; }; }
14181 ZLIBS=
14182 SYS_ZLIBS=
14183 ZINCS=
14185 if test -z "$ZLIBSPEC"; then
14186 # Use zlib from the GCC tree.
14187 ZINCS='-I$(top_srcdir)/../zlib'
14188 ZLIBS=../zlib/libzgcj_convenience.la
14189 else
14190 # System's zlib.
14191 SYS_ZLIBS="$ZLIBSPEC"
14203 if test "$NATIVE" = yes; then
14204 NATIVE_TRUE=
14205 NATIVE_FALSE='#'
14206 else
14207 NATIVE_TRUE='#'
14208 NATIVE_FALSE=
14213 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14214 NEEDS_DATA_START_TRUE=
14215 NEEDS_DATA_START_FALSE='#'
14216 else
14217 NEEDS_DATA_START_TRUE='#'
14218 NEEDS_DATA_START_FALSE=
14223 # Process the option "--enable-version-specific-runtime-libs"
14224 # Calculate toolexeclibdir
14225 case ${version_specific_libs} in
14226 yes)
14227 # Need the gcc compiler version to know where to install libraries
14228 # and header files if --enable-version-specific-runtime-libs option
14229 # is selected.
14230 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
14231 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14232 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
14233 toolexeclibdir=$toolexecmainlibdir
14236 if test -n "$with_cross_host" &&
14237 test x"$with_cross_host" != x"no"; then
14238 # Install a library built with a cross compiler in tooldir, not libdir.
14239 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14240 toolexecmainlibdir='$(toolexecdir)/lib'
14241 else
14242 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14243 toolexecmainlibdir='$(libdir)'
14245 multi_os_directory=`$CC -print-multi-os-directory`
14246 case $multi_os_directory in
14247 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14248 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14249 esac
14251 esac
14256 # Determine gcj version number.
14257 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14258 GCJVERSION=$gcjversion
14261 cat >>confdefs.h <<_ACEOF
14262 #define GCJVERSION "$GCJVERSION"
14263 _ACEOF
14266 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14267 # On that system, sys/ioctl.h will not include sys/filio.h unless
14268 # BSD_COMP is defined; just including sys/filio.h is simpler.
14288 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
14290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14292 echo "$as_me:$LINENO: checking for $ac_header" >&5
14293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14299 else
14300 # Is the header compilable?
14301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14303 cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h. */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 $ac_includes_default
14310 #include <$ac_header>
14311 _ACEOF
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_header_compiler=yes
14335 else
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_header_compiler=no
14341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14343 echo "${ECHO_T}$ac_header_compiler" >&6
14345 # Is the header present?
14346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 #include <$ac_header>
14355 _ACEOF
14356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } >/dev/null; then
14364 if test -s conftest.err; then
14365 ac_cpp_err=$ac_c_preproc_warn_flag
14366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14367 else
14368 ac_cpp_err=
14370 else
14371 ac_cpp_err=yes
14373 if test -z "$ac_cpp_err"; then
14374 ac_header_preproc=yes
14375 else
14376 echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14379 ac_header_preproc=no
14381 rm -f conftest.err conftest.$ac_ext
14382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14383 echo "${ECHO_T}$ac_header_preproc" >&6
14385 # So? What about this header?
14386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14387 yes:no: )
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14392 ac_header_preproc=yes
14394 no:yes:* )
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14408 cat <<\_ASBOX
14409 ## ---------------------------------- ##
14410 ## Report this to the libjava lists. ##
14411 ## ---------------------------------- ##
14412 _ASBOX
14414 sed "s/^/$as_me: WARNING: /" >&2
14416 esac
14417 echo "$as_me:$LINENO: checking for $ac_header" >&5
14418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422 eval "$as_ac_Header=\$ac_header_preproc"
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14429 cat >>confdefs.h <<_ACEOF
14430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14431 _ACEOF
14435 done
14437 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14438 # for now. If you change this, you also must update natFile.cc.
14440 for ac_header in dirent.h
14442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14444 echo "$as_me:$LINENO: checking for $ac_header" >&5
14445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14451 else
14452 # Is the header compilable?
14453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14462 #include <$ac_header>
14463 _ACEOF
14464 rm -f conftest.$ac_objext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>conftest.er1
14467 ac_status=$?
14468 grep -v '^ *+' conftest.er1 >conftest.err
14469 rm -f conftest.er1
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } &&
14473 { ac_try='test -z "$ac_c_werror_flag"
14474 || test ! -s conftest.err'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; } &&
14480 { ac_try='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14486 ac_header_compiler=yes
14487 else
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_header_compiler=no
14493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14495 echo "${ECHO_T}$ac_header_compiler" >&6
14497 # Is the header present?
14498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14500 cat >conftest.$ac_ext <<_ACEOF
14501 /* confdefs.h. */
14502 _ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14506 #include <$ac_header>
14507 _ACEOF
14508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } >/dev/null; then
14516 if test -s conftest.err; then
14517 ac_cpp_err=$ac_c_preproc_warn_flag
14518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14519 else
14520 ac_cpp_err=
14522 else
14523 ac_cpp_err=yes
14525 if test -z "$ac_cpp_err"; then
14526 ac_header_preproc=yes
14527 else
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 ac_header_preproc=no
14533 rm -f conftest.err conftest.$ac_ext
14534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14535 echo "${ECHO_T}$ac_header_preproc" >&6
14537 # So? What about this header?
14538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14539 yes:no: )
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14544 ac_header_preproc=yes
14546 no:yes:* )
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14560 cat <<\_ASBOX
14561 ## ---------------------------------- ##
14562 ## Report this to the libjava lists. ##
14563 ## ---------------------------------- ##
14564 _ASBOX
14566 sed "s/^/$as_me: WARNING: /" >&2
14568 esac
14569 echo "$as_me:$LINENO: checking for $ac_header" >&5
14570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574 eval "$as_ac_Header=\$ac_header_preproc"
14576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14581 cat >>confdefs.h <<_ACEOF
14582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14583 _ACEOF
14587 done
14590 for ac_header in inttypes.h
14592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14594 echo "$as_me:$LINENO: checking for $ac_header" >&5
14595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14601 else
14602 # Is the header compilable?
14603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14605 cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h. */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 $ac_includes_default
14612 #include <$ac_header>
14613 _ACEOF
14614 rm -f conftest.$ac_objext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616 (eval $ac_compile) 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag"
14624 || test ! -s conftest.err'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_header_compiler=yes
14637 else
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_header_compiler=no
14643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14645 echo "${ECHO_T}$ac_header_compiler" >&6
14647 # Is the header present?
14648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h. */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 #include <$ac_header>
14657 _ACEOF
14658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev/null; then
14666 if test -s conftest.err; then
14667 ac_cpp_err=$ac_c_preproc_warn_flag
14668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14669 else
14670 ac_cpp_err=
14672 else
14673 ac_cpp_err=yes
14675 if test -z "$ac_cpp_err"; then
14676 ac_header_preproc=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_preproc=no
14683 rm -f conftest.err conftest.$ac_ext
14684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14685 echo "${ECHO_T}$ac_header_preproc" >&6
14687 # So? What about this header?
14688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14689 yes:no: )
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14694 ac_header_preproc=yes
14696 no:yes:* )
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14710 cat <<\_ASBOX
14711 ## ---------------------------------- ##
14712 ## Report this to the libjava lists. ##
14713 ## ---------------------------------- ##
14714 _ASBOX
14716 sed "s/^/$as_me: WARNING: /" >&2
14718 esac
14719 echo "$as_me:$LINENO: checking for $ac_header" >&5
14720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724 eval "$as_ac_Header=\$ac_header_preproc"
14726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14731 cat >>confdefs.h <<_ACEOF
14732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14733 _ACEOF
14736 cat >>confdefs.h <<\_ACEOF
14737 #define HAVE_INTTYPES_H 1
14738 _ACEOF
14741 cat >>confdefs.h <<\_ACEOF
14742 #define JV_HAVE_INTTYPES_H 1
14743 _ACEOF
14748 done
14750 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14751 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14752 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755 cat >conftest.$ac_ext <<_ACEOF
14756 /* confdefs.h. */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14761 #include <sys/types.h>
14762 #include <sys/wait.h>
14763 #ifndef WEXITSTATUS
14764 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14765 #endif
14766 #ifndef WIFEXITED
14767 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14768 #endif
14771 main ()
14773 int s;
14774 wait (&s);
14775 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14777 return 0;
14779 _ACEOF
14780 rm -f conftest.$ac_objext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782 (eval $ac_compile) 2>conftest.er1
14783 ac_status=$?
14784 grep -v '^ *+' conftest.er1 >conftest.err
14785 rm -f conftest.er1
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } &&
14789 { ac_try='test -z "$ac_c_werror_flag"
14790 || test ! -s conftest.err'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14793 ac_status=$?
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; } &&
14796 { ac_try='test -s conftest.$ac_objext'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; }; then
14802 ac_cv_header_sys_wait_h=yes
14803 else
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 ac_cv_header_sys_wait_h=no
14809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14811 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14812 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14813 if test $ac_cv_header_sys_wait_h = yes; then
14815 cat >>confdefs.h <<\_ACEOF
14816 #define HAVE_SYS_WAIT_H 1
14817 _ACEOF
14822 echo "$as_me:$LINENO: checking for ssize_t" >&5
14823 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14824 if test "${ac_cv_type_ssize_t+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827 cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h. */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14833 $ac_includes_default
14835 main ()
14837 if ((ssize_t *) 0)
14838 return 0;
14839 if (sizeof (ssize_t))
14840 return 0;
14842 return 0;
14844 _ACEOF
14845 rm -f conftest.$ac_objext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847 (eval $ac_compile) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest.$ac_objext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_cv_type_ssize_t=yes
14868 else
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_cv_type_ssize_t=no
14874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14876 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14877 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14878 if test $ac_cv_type_ssize_t = yes; then
14880 else
14882 cat >>confdefs.h <<_ACEOF
14883 #define ssize_t int
14884 _ACEOF
14889 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14890 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14891 cat >conftest.$ac_ext <<_ACEOF
14892 /* confdefs.h. */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14897 #include <sys/types.h>
14898 #if STDC_HEADERS
14899 #include <stdlib.h>
14900 #include <stddef.h>
14901 #endif
14902 #if HAVE_NETINET_IN_H
14903 #include <netinet/in.h>
14904 #endif
14906 main ()
14908 in_addr_t foo;
14910 return 0;
14912 _ACEOF
14913 rm -f conftest.$ac_objext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14915 (eval $ac_compile) 2>conftest.er1
14916 ac_status=$?
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
14922 { ac_try='test -z "$ac_c_werror_flag"
14923 || test ! -s conftest.err'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; } &&
14929 { ac_try='test -s conftest.$ac_objext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14936 cat >>confdefs.h <<\_ACEOF
14937 #define HAVE_IN_ADDR_T 1
14938 _ACEOF
14940 echo "$as_me:$LINENO: result: yes" >&5
14941 echo "${ECHO_T}yes" >&6
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 echo "$as_me:$LINENO: result: no" >&5
14947 echo "${ECHO_T}no" >&6
14949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14951 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14952 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14953 cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h. */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 #include <netinet/in.h>
14961 main ()
14963 struct ip_mreq mreq;
14965 return 0;
14967 _ACEOF
14968 rm -f conftest.$ac_objext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14970 (eval $ac_compile) 2>conftest.er1
14971 ac_status=$?
14972 grep -v '^ *+' conftest.er1 >conftest.err
14973 rm -f conftest.er1
14974 cat conftest.err >&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -z "$ac_c_werror_flag"
14978 || test ! -s conftest.err'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; } &&
14984 { ac_try='test -s conftest.$ac_objext'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14991 cat >>confdefs.h <<\_ACEOF
14992 #define HAVE_STRUCT_IP_MREQ 1
14993 _ACEOF
14995 echo "$as_me:$LINENO: result: yes" >&5
14996 echo "${ECHO_T}yes" >&6
14997 else
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 echo "$as_me:$LINENO: result: no" >&5
15002 echo "${ECHO_T}no" >&6
15004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15006 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15007 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 #include <netinet/in.h>
15016 main ()
15018 struct ipv6_mreq mreq6;
15020 return 0;
15022 _ACEOF
15023 rm -f conftest.$ac_objext
15024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15025 (eval $ac_compile) 2>conftest.er1
15026 ac_status=$?
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
15032 { ac_try='test -z "$ac_c_werror_flag"
15033 || test ! -s conftest.err'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
15046 cat >>confdefs.h <<\_ACEOF
15047 #define HAVE_STRUCT_IPV6_MREQ 1
15048 _ACEOF
15050 echo "$as_me:$LINENO: result: yes" >&5
15051 echo "${ECHO_T}yes" >&6
15052 else
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15056 echo "$as_me:$LINENO: result: no" >&5
15057 echo "${ECHO_T}no" >&6
15059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15061 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15062 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15063 cat >conftest.$ac_ext <<_ACEOF
15064 /* confdefs.h. */
15065 _ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h. */
15069 #include <netinet/in.h>
15071 main ()
15073 struct sockaddr_in6 addr6;
15075 return 0;
15077 _ACEOF
15078 rm -f conftest.$ac_objext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080 (eval $ac_compile) 2>conftest.er1
15081 ac_status=$?
15082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
15087 { ac_try='test -z "$ac_c_werror_flag"
15088 || test ! -s conftest.err'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest.$ac_objext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15101 cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_INET6 1
15103 _ACEOF
15105 echo "$as_me:$LINENO: result: yes" >&5
15106 echo "${ECHO_T}yes" >&6
15107 else
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 echo "$as_me:$LINENO: result: no" >&5
15112 echo "${ECHO_T}no" >&6
15114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15116 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15117 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h. */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 #define _POSIX_PII_SOCKET
15125 #include <sys/types.h>
15126 #include <sys/socket.h>
15128 main ()
15130 socklen_t x = 5;
15132 return 0;
15134 _ACEOF
15135 rm -f conftest.$ac_objext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137 (eval $ac_compile) 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -z "$ac_c_werror_flag"
15145 || test ! -s conftest.err'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest.$ac_objext'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_SOCKLEN_T 1
15160 _ACEOF
15162 echo "$as_me:$LINENO: result: yes" >&5
15163 echo "${ECHO_T}yes" >&6
15164 else
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 echo "$as_me:$LINENO: result: no" >&5
15169 echo "${ECHO_T}no" >&6
15171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15173 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15174 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15175 cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h. */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 #include <time.h>
15183 main ()
15185 struct tm tim; tim.tm_gmtoff = 0;
15187 return 0;
15189 _ACEOF
15190 rm -f conftest.$ac_objext
15191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15192 (eval $ac_compile) 2>conftest.er1
15193 ac_status=$?
15194 grep -v '^ *+' conftest.er1 >conftest.err
15195 rm -f conftest.er1
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -z "$ac_c_werror_flag"
15200 || test ! -s conftest.err'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest.$ac_objext'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15213 cat >>confdefs.h <<\_ACEOF
15214 #define STRUCT_TM_HAS_GMTOFF 1
15215 _ACEOF
15217 echo "$as_me:$LINENO: result: yes" >&5
15218 echo "${ECHO_T}yes" >&6
15219 else
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 echo "$as_me:$LINENO: result: no" >&5
15224 echo "${ECHO_T}no" >&6
15225 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15226 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 #include <time.h>
15235 main ()
15237 void i(){long z2 = 2*timezone;}
15239 return 0;
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag"
15252 || test ! -s conftest.err'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest.$ac_objext'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_TIMEZONE 1
15267 _ACEOF
15269 echo "$as_me:$LINENO: result: yes" >&5
15270 echo "${ECHO_T}yes" >&6
15271 else
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 echo "$as_me:$LINENO: result: no" >&5
15276 echo "${ECHO_T}no" >&6
15277 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15278 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15279 cat >conftest.$ac_ext <<_ACEOF
15280 /* confdefs.h. */
15281 _ACEOF
15282 cat confdefs.h >>conftest.$ac_ext
15283 cat >>conftest.$ac_ext <<_ACEOF
15284 /* end confdefs.h. */
15285 #include <time.h>
15287 main ()
15289 long z2 = _timezone;
15291 return 0;
15293 _ACEOF
15294 rm -f conftest.$ac_objext
15295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15296 (eval $ac_compile) 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
15303 { ac_try='test -z "$ac_c_werror_flag"
15304 || test ! -s conftest.err'
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; } &&
15310 { ac_try='test -s conftest.$ac_objext'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_UNDERSCORE_TIMEZONE 1
15319 _ACEOF
15321 echo "$as_me:$LINENO: result: yes" >&5
15322 echo "${ECHO_T}yes" >&6
15323 else
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 echo "$as_me:$LINENO: result: no" >&5
15328 echo "${ECHO_T}no" >&6
15330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15336 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15337 # for constant arguments. Useless!
15338 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15339 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15340 if test "${ac_cv_working_alloca_h+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 else
15343 if test x$gcc_no_link = xyes; then
15344 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15345 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15346 { (exit 1); exit 1; }; }
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h. */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 #include <alloca.h>
15356 main ()
15358 char *p = (char *) alloca (2 * sizeof (int));
15360 return 0;
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15365 (eval $ac_link) 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest$ac_exeext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_cv_working_alloca_h=yes
15386 else
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_cv_working_alloca_h=no
15392 rm -f conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
15395 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15396 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15397 if test $ac_cv_working_alloca_h = yes; then
15399 cat >>confdefs.h <<\_ACEOF
15400 #define HAVE_ALLOCA_H 1
15401 _ACEOF
15405 echo "$as_me:$LINENO: checking for alloca" >&5
15406 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15407 if test "${ac_cv_func_alloca_works+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410 if test x$gcc_no_link = xyes; then
15411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15413 { (exit 1); exit 1; }; }
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 #ifdef __GNUC__
15422 # define alloca __builtin_alloca
15423 #else
15424 # ifdef _MSC_VER
15425 # include <malloc.h>
15426 # define alloca _alloca
15427 # else
15428 # if HAVE_ALLOCA_H
15429 # include <alloca.h>
15430 # else
15431 # ifdef _AIX
15432 #pragma alloca
15433 # else
15434 # ifndef alloca /* predefined by HP cc +Olibcalls */
15435 char *alloca ();
15436 # endif
15437 # endif
15438 # endif
15439 # endif
15440 #endif
15443 main ()
15445 char *p = (char *) alloca (1);
15447 return 0;
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15452 (eval $ac_link) 2>conftest.er1
15453 ac_status=$?
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -z "$ac_c_werror_flag"
15460 || test ! -s conftest.err'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest$ac_exeext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_cv_func_alloca_works=yes
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_cv_func_alloca_works=no
15479 rm -f conftest.err conftest.$ac_objext \
15480 conftest$ac_exeext conftest.$ac_ext
15482 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15483 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15485 if test $ac_cv_func_alloca_works = yes; then
15487 cat >>confdefs.h <<\_ACEOF
15488 #define HAVE_ALLOCA 1
15489 _ACEOF
15491 else
15492 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15493 # that cause trouble. Some versions do not even contain alloca or
15494 # contain a buggy version. If you still want to use their alloca,
15495 # use ar to extract alloca.o from them instead of compiling alloca.c.
15497 ALLOCA=alloca.$ac_objext
15499 cat >>confdefs.h <<\_ACEOF
15500 #define C_ALLOCA 1
15501 _ACEOF
15504 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15505 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15506 if test "${ac_cv_os_cray+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 else
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 #if defined(CRAY) && ! defined(CRAY2)
15516 webecray
15517 #else
15518 wenotbecray
15519 #endif
15521 _ACEOF
15522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15523 $EGREP "webecray" >/dev/null 2>&1; then
15524 ac_cv_os_cray=yes
15525 else
15526 ac_cv_os_cray=no
15528 rm -f conftest*
15531 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15532 echo "${ECHO_T}$ac_cv_os_cray" >&6
15533 if test $ac_cv_os_cray = yes; then
15534 for ac_func in _getb67 GETB67 getb67; do
15535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15536 echo "$as_me:$LINENO: checking for $ac_func" >&5
15537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15538 if eval "test \"\${$as_ac_var+set}\" = set"; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541 if test x$gcc_no_link = xyes; then
15542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15544 { (exit 1); exit 1; }; }
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h. */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15554 #define $ac_func innocuous_$ac_func
15556 /* System header to define __stub macros and hopefully few prototypes,
15557 which can conflict with char $ac_func (); below.
15558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15559 <limits.h> exists even on freestanding compilers. */
15561 #ifdef __STDC__
15562 # include <limits.h>
15563 #else
15564 # include <assert.h>
15565 #endif
15567 #undef $ac_func
15569 /* Override any gcc2 internal prototype to avoid an error. */
15570 #ifdef __cplusplus
15571 extern "C"
15573 #endif
15574 /* We use char because int might match the return type of a gcc2
15575 builtin and then its argument prototype would still apply. */
15576 char $ac_func ();
15577 /* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15581 choke me
15582 #else
15583 char (*f) () = $ac_func;
15584 #endif
15585 #ifdef __cplusplus
15587 #endif
15590 main ()
15592 return f != $ac_func;
15594 return 0;
15596 _ACEOF
15597 rm -f conftest.$ac_objext conftest$ac_exeext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15599 (eval $ac_link) 2>conftest.er1
15600 ac_status=$?
15601 grep -v '^ *+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -z "$ac_c_werror_flag"
15607 || test ! -s conftest.err'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; } &&
15613 { ac_try='test -s conftest$ac_exeext'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 eval "$as_ac_var=yes"
15620 else
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 eval "$as_ac_var=no"
15626 rm -f conftest.err conftest.$ac_objext \
15627 conftest$ac_exeext conftest.$ac_ext
15629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15631 if test `eval echo '${'$as_ac_var'}'` = yes; then
15633 cat >>confdefs.h <<_ACEOF
15634 #define CRAY_STACKSEG_END $ac_func
15635 _ACEOF
15637 break
15640 done
15643 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15644 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15645 if test "${ac_cv_c_stack_direction+set}" = set; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648 if test "$cross_compiling" = yes; then
15649 ac_cv_c_stack_direction=0
15650 else
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h. */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15658 find_stack_direction ()
15660 static char *addr = 0;
15661 auto char dummy;
15662 if (addr == 0)
15664 addr = &dummy;
15665 return find_stack_direction ();
15667 else
15668 return (&dummy > addr) ? 1 : -1;
15672 main ()
15674 exit (find_stack_direction () < 0);
15676 _ACEOF
15677 rm -f conftest$ac_exeext
15678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15679 (eval $ac_link) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_cv_c_stack_direction=1
15689 else
15690 echo "$as_me: program exited with status $ac_status" >&5
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ( exit $ac_status )
15695 ac_cv_c_stack_direction=-1
15697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15700 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15701 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15703 cat >>confdefs.h <<_ACEOF
15704 #define STACK_DIRECTION $ac_cv_c_stack_direction
15705 _ACEOF
15710 if test x$gcc_no_link = xyes; then
15711 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15712 ac_cv_func_mmap_fixed_mapped=no
15715 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15718 for ac_header in stdlib.h unistd.h
15720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15722 echo "$as_me:$LINENO: checking for $ac_header" >&5
15723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15729 else
15730 # Is the header compilable?
15731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 #include <$ac_header>
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>conftest.er1
15745 ac_status=$?
15746 grep -v '^ *+' conftest.er1 >conftest.err
15747 rm -f conftest.er1
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_header_compiler=yes
15765 else
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 ac_header_compiler=no
15771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15773 echo "${ECHO_T}$ac_header_compiler" >&6
15775 # Is the header present?
15776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15778 cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h. */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 #include <$ac_header>
15785 _ACEOF
15786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15788 ac_status=$?
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } >/dev/null; then
15794 if test -s conftest.err; then
15795 ac_cpp_err=$ac_c_preproc_warn_flag
15796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15797 else
15798 ac_cpp_err=
15800 else
15801 ac_cpp_err=yes
15803 if test -z "$ac_cpp_err"; then
15804 ac_header_preproc=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_header_preproc=no
15811 rm -f conftest.err conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15813 echo "${ECHO_T}$ac_header_preproc" >&6
15815 # So? What about this header?
15816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15817 yes:no: )
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15822 ac_header_preproc=yes
15824 no:yes:* )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15838 cat <<\_ASBOX
15839 ## ---------------------------------- ##
15840 ## Report this to the libjava lists. ##
15841 ## ---------------------------------- ##
15842 _ASBOX
15844 sed "s/^/$as_me: WARNING: /" >&2
15846 esac
15847 echo "$as_me:$LINENO: checking for $ac_header" >&5
15848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 else
15852 eval "$as_ac_Header=\$ac_header_preproc"
15854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15859 cat >>confdefs.h <<_ACEOF
15860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15861 _ACEOF
15865 done
15868 for ac_func in getpagesize
15870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15871 echo "$as_me:$LINENO: checking for $ac_func" >&5
15872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15873 if eval "test \"\${$as_ac_var+set}\" = set"; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876 if test x$gcc_no_link = xyes; then
15877 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15879 { (exit 1); exit 1; }; }
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h. */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15889 #define $ac_func innocuous_$ac_func
15891 /* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char $ac_func (); below.
15893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15894 <limits.h> exists even on freestanding compilers. */
15896 #ifdef __STDC__
15897 # include <limits.h>
15898 #else
15899 # include <assert.h>
15900 #endif
15902 #undef $ac_func
15904 /* Override any gcc2 internal prototype to avoid an error. */
15905 #ifdef __cplusplus
15906 extern "C"
15908 #endif
15909 /* We use char because int might match the return type of a gcc2
15910 builtin and then its argument prototype would still apply. */
15911 char $ac_func ();
15912 /* The GNU C library defines this for functions which it implements
15913 to always fail with ENOSYS. Some functions are actually named
15914 something starting with __ and the normal name is an alias. */
15915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15916 choke me
15917 #else
15918 char (*f) () = $ac_func;
15919 #endif
15920 #ifdef __cplusplus
15922 #endif
15925 main ()
15927 return f != $ac_func;
15929 return 0;
15931 _ACEOF
15932 rm -f conftest.$ac_objext conftest$ac_exeext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15934 (eval $ac_link) 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 eval "$as_ac_var=yes"
15955 else
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 eval "$as_ac_var=no"
15961 rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966 if test `eval echo '${'$as_ac_var'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15969 _ACEOF
15972 done
15974 echo "$as_me:$LINENO: checking for working mmap" >&5
15975 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15976 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 else
15979 if test "$cross_compiling" = yes; then
15980 ac_cv_func_mmap_fixed_mapped=no
15981 else
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h. */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 $ac_includes_default
15989 /* malloc might have been renamed as rpl_malloc. */
15990 #undef malloc
15992 /* Thanks to Mike Haertel and Jim Avera for this test.
15993 Here is a matrix of mmap possibilities:
15994 mmap private not fixed
15995 mmap private fixed at somewhere currently unmapped
15996 mmap private fixed at somewhere already mapped
15997 mmap shared not fixed
15998 mmap shared fixed at somewhere currently unmapped
15999 mmap shared fixed at somewhere already mapped
16000 For private mappings, we should verify that changes cannot be read()
16001 back from the file, nor mmap's back from the file at a different
16002 address. (There have been systems where private was not correctly
16003 implemented like the infamous i386 svr4.0, and systems where the
16004 VM page cache was not coherent with the file system buffer cache
16005 like early versions of FreeBSD and possibly contemporary NetBSD.)
16006 For shared mappings, we should conversely verify that changes get
16007 propagated back to all the places they're supposed to be.
16009 Grep wants private fixed already mapped.
16010 The main things grep needs to know about mmap are:
16011 * does it exist and is it safe to write into the mmap'd area
16012 * how to use it (BSD variants) */
16014 #include <fcntl.h>
16015 #include <sys/mman.h>
16017 #if !STDC_HEADERS && !HAVE_STDLIB_H
16018 char *malloc ();
16019 #endif
16021 /* This mess was copied from the GNU getpagesize.h. */
16022 #if !HAVE_GETPAGESIZE
16023 /* Assume that all systems that can run configure have sys/param.h. */
16024 # if !HAVE_SYS_PARAM_H
16025 # define HAVE_SYS_PARAM_H 1
16026 # endif
16028 # ifdef _SC_PAGESIZE
16029 # define getpagesize() sysconf(_SC_PAGESIZE)
16030 # else /* no _SC_PAGESIZE */
16031 # if HAVE_SYS_PARAM_H
16032 # include <sys/param.h>
16033 # ifdef EXEC_PAGESIZE
16034 # define getpagesize() EXEC_PAGESIZE
16035 # else /* no EXEC_PAGESIZE */
16036 # ifdef NBPG
16037 # define getpagesize() NBPG * CLSIZE
16038 # ifndef CLSIZE
16039 # define CLSIZE 1
16040 # endif /* no CLSIZE */
16041 # else /* no NBPG */
16042 # ifdef NBPC
16043 # define getpagesize() NBPC
16044 # else /* no NBPC */
16045 # ifdef PAGESIZE
16046 # define getpagesize() PAGESIZE
16047 # endif /* PAGESIZE */
16048 # endif /* no NBPC */
16049 # endif /* no NBPG */
16050 # endif /* no EXEC_PAGESIZE */
16051 # else /* no HAVE_SYS_PARAM_H */
16052 # define getpagesize() 8192 /* punt totally */
16053 # endif /* no HAVE_SYS_PARAM_H */
16054 # endif /* no _SC_PAGESIZE */
16056 #endif /* no HAVE_GETPAGESIZE */
16059 main ()
16061 char *data, *data2, *data3;
16062 int i, pagesize;
16063 int fd;
16065 pagesize = getpagesize ();
16067 /* First, make a file with some known garbage in it. */
16068 data = (char *) malloc (pagesize);
16069 if (!data)
16070 exit (1);
16071 for (i = 0; i < pagesize; ++i)
16072 *(data + i) = rand ();
16073 umask (0);
16074 fd = creat ("conftest.mmap", 0600);
16075 if (fd < 0)
16076 exit (1);
16077 if (write (fd, data, pagesize) != pagesize)
16078 exit (1);
16079 close (fd);
16081 /* Next, try to mmap the file at a fixed address which already has
16082 something else allocated at it. If we can, also make sure that
16083 we see the same garbage. */
16084 fd = open ("conftest.mmap", O_RDWR);
16085 if (fd < 0)
16086 exit (1);
16087 data2 = (char *) malloc (2 * pagesize);
16088 if (!data2)
16089 exit (1);
16090 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16091 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16092 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16093 exit (1);
16094 for (i = 0; i < pagesize; ++i)
16095 if (*(data + i) != *(data2 + i))
16096 exit (1);
16098 /* Finally, make sure that changes to the mapped area do not
16099 percolate back to the file as seen by read(). (This is a bug on
16100 some variants of i386 svr4.0.) */
16101 for (i = 0; i < pagesize; ++i)
16102 *(data2 + i) = *(data2 + i) + 1;
16103 data3 = (char *) malloc (pagesize);
16104 if (!data3)
16105 exit (1);
16106 if (read (fd, data3, pagesize) != pagesize)
16107 exit (1);
16108 for (i = 0; i < pagesize; ++i)
16109 if (*(data + i) != *(data3 + i))
16110 exit (1);
16111 close (fd);
16112 exit (0);
16114 _ACEOF
16115 rm -f conftest$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117 (eval $ac_link) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_cv_func_mmap_fixed_mapped=yes
16127 else
16128 echo "$as_me: program exited with status $ac_status" >&5
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 ( exit $ac_status )
16133 ac_cv_func_mmap_fixed_mapped=no
16135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16138 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16139 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16140 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_MMAP 1
16144 _ACEOF
16147 rm -f conftest.mmap
16151 for ac_prog in perl
16153 # Extract the first word of "$ac_prog", so it can be a program name with args.
16154 set dummy $ac_prog; ac_word=$2
16155 echo "$as_me:$LINENO: checking for $ac_word" >&5
16156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16157 if test "${ac_cv_prog_PERL+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 else
16160 if test -n "$PERL"; then
16161 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16162 else
16163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16164 for as_dir in $PATH
16166 IFS=$as_save_IFS
16167 test -z "$as_dir" && as_dir=.
16168 for ac_exec_ext in '' $ac_executable_extensions; do
16169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16170 ac_cv_prog_PERL="$ac_prog"
16171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16172 break 2
16174 done
16175 done
16179 PERL=$ac_cv_prog_PERL
16180 if test -n "$PERL"; then
16181 echo "$as_me:$LINENO: result: $PERL" >&5
16182 echo "${ECHO_T}$PERL" >&6
16183 else
16184 echo "$as_me:$LINENO: result: no" >&5
16185 echo "${ECHO_T}no" >&6
16188 test -n "$PERL" && break
16189 done
16190 test -n "$PERL" || PERL="false"
16193 SYSDEP_SOURCES=
16194 SIGNAL_HANDLER_AUX=
16196 case "${host}" in
16197 i?86-*-linux*)
16198 SIGNAL_HANDLER=include/i386-signal.h
16200 sparc*-sun-solaris*)
16201 SIGNAL_HANDLER=include/sparc-signal.h
16203 # ia64-*)
16204 # SYSDEP_SOURCES=sysdep/ia64.c
16205 # test -d sysdep || mkdir sysdep
16206 # ;;
16207 hppa*-*-linux*)
16208 SIGNAL_HANDLER=include/pa-signal.h
16210 ia64-*-linux*)
16211 SIGNAL_HANDLER=include/dwarf2-signal.h
16213 powerpc*-*-linux*)
16214 SIGNAL_HANDLER=include/powerpc-signal.h
16216 alpha*-*-linux*)
16217 SIGNAL_HANDLER=include/dwarf2-signal.h
16219 s390*-*-linux*)
16220 SIGNAL_HANDLER=include/s390-signal.h
16222 x86_64*-*-linux*)
16223 SIGNAL_HANDLER=include/x86_64-signal.h
16224 SIGNAL_HANDLER_AUX=include/i386-signal.h
16226 sparc*-*-linux*)
16227 SIGNAL_HANDLER=include/dwarf2-signal.h
16229 sh*-*-linux*)
16230 SIGNAL_HANDLER=include/sh-signal.h
16232 *mingw*)
16233 SIGNAL_HANDLER=include/win32-signal.h
16235 mips*-*-linux*)
16236 SIGNAL_HANDLER=include/mips-signal.h
16238 *-*-darwin*)
16239 SIGNAL_HANDLER=include/darwin-signal.h
16242 SIGNAL_HANDLER=include/default-signal.h
16244 esac
16246 # If we're using sjlj exceptions, forget what we just learned.
16247 if test "$enable_sjlj_exceptions" = yes; then
16248 SIGNAL_HANDLER=include/default-signal.h
16249 SIGNAL_HANDLER_AUX=
16252 # Define here any compiler flags that you need in order to make backtrace() work.
16253 BACKTRACESPEC=
16254 case "${host}" in
16255 x86_64*-*-linux*|i?86-*)
16256 BACKTRACESPEC=-fno-omit-frame-pointer
16258 esac
16263 if test -z "$SIGNAL_HANDLER_AUX"; then
16264 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16267 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16270 if test "${multilib}" = "yes"; then
16271 multilib_arg="--enable-multilib"
16272 else
16273 multilib_arg=
16278 here=`${PWDCMD-pwd}`
16281 # We get this from the environment.
16284 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
16287 ac_config_commands="$ac_config_commands default"
16290 cat >confcache <<\_ACEOF
16291 # This file is a shell script that caches the results of configure
16292 # tests run on this system so they can be shared between configure
16293 # scripts and configure runs, see configure's option --config-cache.
16294 # It is not useful on other systems. If it contains results you don't
16295 # want to keep, you may remove or edit it.
16297 # config.status only pays attention to the cache file if you give it
16298 # the --recheck option to rerun configure.
16300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16302 # following values.
16304 _ACEOF
16306 # The following way of writing the cache mishandles newlines in values,
16307 # but we know of no workaround that is simple, portable, and efficient.
16308 # So, don't put newlines in cache variables' values.
16309 # Ultrix sh set writes to stderr and can't be redirected directly,
16310 # and sets the high bit in the cache file unless we assign to the vars.
16312 (set) 2>&1 |
16313 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16314 *ac_space=\ *)
16315 # `set' does not quote correctly, so add quotes (double-quote
16316 # substitution turns \\\\ into \\, and sed turns \\ into \).
16317 sed -n \
16318 "s/'/'\\\\''/g;
16319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16322 # `set' quotes correctly as required by POSIX, so do not add quotes.
16323 sed -n \
16324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16326 esac;
16328 sed '
16329 t clear
16330 : clear
16331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16332 t end
16333 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16334 : end' >>confcache
16335 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16336 if test -w $cache_file; then
16337 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16338 cat confcache >$cache_file
16339 else
16340 echo "not updating unwritable cache $cache_file"
16343 rm -f confcache
16345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16346 # Let make expand exec_prefix.
16347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16351 # trailing colons and then remove the whole line if VPATH becomes empty
16352 # (actually we leave an empty line to preserve line numbers).
16353 if test "x$srcdir" = x.; then
16354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16355 s/:*\$(srcdir):*/:/;
16356 s/:*\${srcdir}:*/:/;
16357 s/:*@srcdir@:*/:/;
16358 s/^\([^=]*=[ ]*\):*/\1/;
16359 s/:*$//;
16360 s/^[^=]*=[ ]*$//;
16364 DEFS=-DHAVE_CONFIG_H
16366 ac_libobjs=
16367 ac_ltlibobjs=
16368 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16369 # 1. Remove the extension, and $U if already installed.
16370 ac_i=`echo "$ac_i" |
16371 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16372 # 2. Add them.
16373 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16374 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16375 done
16376 LIBOBJS=$ac_libobjs
16378 LTLIBOBJS=$ac_ltlibobjs
16381 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16382 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16383 Usually this means the macro was only invoked conditionally." >&5
16384 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16385 Usually this means the macro was only invoked conditionally." >&2;}
16386 { (exit 1); exit 1; }; }
16388 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16389 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16390 Usually this means the macro was only invoked conditionally." >&5
16391 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16392 Usually this means the macro was only invoked conditionally." >&2;}
16393 { (exit 1); exit 1; }; }
16395 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16396 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16397 Usually this means the macro was only invoked conditionally." >&5
16398 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16399 Usually this means the macro was only invoked conditionally." >&2;}
16400 { (exit 1); exit 1; }; }
16402 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16403 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16404 Usually this means the macro was only invoked conditionally." >&5
16405 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16406 Usually this means the macro was only invoked conditionally." >&2;}
16407 { (exit 1); exit 1; }; }
16409 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16410 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16411 Usually this means the macro was only invoked conditionally." >&5
16412 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16413 Usually this means the macro was only invoked conditionally." >&2;}
16414 { (exit 1); exit 1; }; }
16416 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16417 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16418 Usually this means the macro was only invoked conditionally." >&5
16419 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16420 Usually this means the macro was only invoked conditionally." >&2;}
16421 { (exit 1); exit 1; }; }
16423 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
16424 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
16425 Usually this means the macro was only invoked conditionally." >&5
16426 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
16427 Usually this means the macro was only invoked conditionally." >&2;}
16428 { (exit 1); exit 1; }; }
16430 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16431 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16432 Usually this means the macro was only invoked conditionally." >&5
16433 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16434 Usually this means the macro was only invoked conditionally." >&2;}
16435 { (exit 1); exit 1; }; }
16437 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16438 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16439 Usually this means the macro was only invoked conditionally." >&5
16440 echo "$as_me: error: conditional \"USING_POSIX_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_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16445 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16446 Usually this means the macro was only invoked conditionally." >&5
16447 echo "$as_me: error: conditional \"USING_ECOS_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_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16452 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16453 Usually this means the macro was only invoked conditionally." >&5
16454 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16455 Usually this means the macro was only invoked conditionally." >&2;}
16456 { (exit 1); exit 1; }; }
16458 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16459 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16460 Usually this means the macro was only invoked conditionally." >&5
16461 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16462 Usually this means the macro was only invoked conditionally." >&2;}
16463 { (exit 1); exit 1; }; }
16465 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16466 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16467 Usually this means the macro was only invoked conditionally." >&5
16468 echo "$as_me: error: conditional \"GTK_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_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16473 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16474 Usually this means the macro was only invoked conditionally." >&5
16475 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16476 Usually this means the macro was only invoked conditionally." >&2;}
16477 { (exit 1); exit 1; }; }
16479 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16480 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16481 Usually this means the macro was only invoked conditionally." >&5
16482 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16483 Usually this means the macro was only invoked conditionally." >&2;}
16484 { (exit 1); exit 1; }; }
16486 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16487 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16488 Usually this means the macro was only invoked conditionally." >&5
16489 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16490 Usually this means the macro was only invoked conditionally." >&2;}
16491 { (exit 1); exit 1; }; }
16493 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16494 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16495 Usually this means the macro was only invoked conditionally." >&5
16496 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16497 Usually this means the macro was only invoked conditionally." >&2;}
16498 { (exit 1); exit 1; }; }
16500 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16501 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16502 Usually this means the macro was only invoked conditionally." >&5
16503 echo "$as_me: error: conditional \"USING_WIN32_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_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16508 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16509 Usually this means the macro was only invoked conditionally." >&5
16510 echo "$as_me: error: conditional \"USING_NO_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_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16515 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16516 Usually this means the macro was only invoked conditionally." >&5
16517 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16518 Usually this means the macro was only invoked conditionally." >&2;}
16519 { (exit 1); exit 1; }; }
16521 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16522 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16523 Usually this means the macro was only invoked conditionally." >&5
16524 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16525 Usually this means the macro was only invoked conditionally." >&2;}
16526 { (exit 1); exit 1; }; }
16528 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16529 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16530 Usually this means the macro was only invoked conditionally." >&5
16531 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16532 Usually this means the macro was only invoked conditionally." >&2;}
16533 { (exit 1); exit 1; }; }
16535 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16536 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16537 Usually this means the macro was only invoked conditionally." >&5
16538 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16539 Usually this means the macro was only invoked conditionally." >&2;}
16540 { (exit 1); exit 1; }; }
16543 : ${CONFIG_STATUS=./config.status}
16544 ac_clean_files_save=$ac_clean_files
16545 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16546 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16547 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16548 cat >$CONFIG_STATUS <<_ACEOF
16549 #! $SHELL
16550 # Generated by $as_me.
16551 # Run this file to recreate the current configuration.
16552 # Compiler output produced by configure, useful for debugging
16553 # configure, is in config.log if it exists.
16555 debug=false
16556 ac_cs_recheck=false
16557 ac_cs_silent=false
16558 SHELL=\${CONFIG_SHELL-$SHELL}
16559 _ACEOF
16561 cat >>$CONFIG_STATUS <<\_ACEOF
16562 ## --------------------- ##
16563 ## M4sh Initialization. ##
16564 ## --------------------- ##
16566 # Be Bourne compatible
16567 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16568 emulate sh
16569 NULLCMD=:
16570 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16571 # is contrary to our usage. Disable this feature.
16572 alias -g '${1+"$@"}'='"$@"'
16573 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16574 set -o posix
16576 DUALCASE=1; export DUALCASE # for MKS sh
16578 # Support unset when possible.
16579 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16580 as_unset=unset
16581 else
16582 as_unset=false
16586 # Work around bugs in pre-3.0 UWIN ksh.
16587 $as_unset ENV MAIL MAILPATH
16588 PS1='$ '
16589 PS2='> '
16590 PS4='+ '
16592 # NLS nuisances.
16593 for as_var in \
16594 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16595 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16596 LC_TELEPHONE LC_TIME
16598 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16599 eval $as_var=C; export $as_var
16600 else
16601 $as_unset $as_var
16603 done
16605 # Required to use basename.
16606 if expr a : '\(a\)' >/dev/null 2>&1; then
16607 as_expr=expr
16608 else
16609 as_expr=false
16612 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16613 as_basename=basename
16614 else
16615 as_basename=false
16619 # Name of the executable.
16620 as_me=`$as_basename "$0" ||
16621 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16622 X"$0" : 'X\(//\)$' \| \
16623 X"$0" : 'X\(/\)$' \| \
16624 . : '\(.\)' 2>/dev/null ||
16625 echo X/"$0" |
16626 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16627 /^X\/\(\/\/\)$/{ s//\1/; q; }
16628 /^X\/\(\/\).*/{ s//\1/; q; }
16629 s/.*/./; q'`
16632 # PATH needs CR, and LINENO needs CR and PATH.
16633 # Avoid depending upon Character Ranges.
16634 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16635 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16636 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16637 as_cr_digits='0123456789'
16638 as_cr_alnum=$as_cr_Letters$as_cr_digits
16640 # The user is always right.
16641 if test "${PATH_SEPARATOR+set}" != set; then
16642 echo "#! /bin/sh" >conf$$.sh
16643 echo "exit 0" >>conf$$.sh
16644 chmod +x conf$$.sh
16645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16646 PATH_SEPARATOR=';'
16647 else
16648 PATH_SEPARATOR=:
16650 rm -f conf$$.sh
16654 as_lineno_1=$LINENO
16655 as_lineno_2=$LINENO
16656 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16657 test "x$as_lineno_1" != "x$as_lineno_2" &&
16658 test "x$as_lineno_3" = "x$as_lineno_2" || {
16659 # Find who we are. Look in the path if we contain no path at all
16660 # relative or not.
16661 case $0 in
16662 *[\\/]* ) as_myself=$0 ;;
16663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16664 for as_dir in $PATH
16666 IFS=$as_save_IFS
16667 test -z "$as_dir" && as_dir=.
16668 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16669 done
16672 esac
16673 # We did not find ourselves, most probably we were run as `sh COMMAND'
16674 # in which case we are not to be found in the path.
16675 if test "x$as_myself" = x; then
16676 as_myself=$0
16678 if test ! -f "$as_myself"; then
16679 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16680 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16681 { (exit 1); exit 1; }; }
16683 case $CONFIG_SHELL in
16685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16686 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16688 IFS=$as_save_IFS
16689 test -z "$as_dir" && as_dir=.
16690 for as_base in sh bash ksh sh5; do
16691 case $as_dir in
16693 if ("$as_dir/$as_base" -c '
16694 as_lineno_1=$LINENO
16695 as_lineno_2=$LINENO
16696 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16697 test "x$as_lineno_1" != "x$as_lineno_2" &&
16698 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16699 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16700 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16701 CONFIG_SHELL=$as_dir/$as_base
16702 export CONFIG_SHELL
16703 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16704 fi;;
16705 esac
16706 done
16707 done
16709 esac
16711 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16712 # uniformly replaced by the line number. The first 'sed' inserts a
16713 # line-number line before each line; the second 'sed' does the real
16714 # work. The second script uses 'N' to pair each line-number line
16715 # with the numbered line, and appends trailing '-' during
16716 # substitution so that $LINENO is not a special case at line end.
16717 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16718 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16719 sed '=' <$as_myself |
16720 sed '
16722 s,$,-,
16723 : loop
16724 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16725 t loop
16726 s,-$,,
16727 s,^['$as_cr_digits']*\n,,
16728 ' >$as_me.lineno &&
16729 chmod +x $as_me.lineno ||
16730 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16731 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16732 { (exit 1); exit 1; }; }
16734 # Don't try to exec as it changes $[0], causing all sort of problems
16735 # (the dirname of $[0] is not the place where we might find the
16736 # original and so on. Autoconf is especially sensible to this).
16737 . ./$as_me.lineno
16738 # Exit status is that of the last command.
16739 exit
16743 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16744 *c*,-n*) ECHO_N= ECHO_C='
16745 ' ECHO_T=' ' ;;
16746 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16747 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16748 esac
16750 if expr a : '\(a\)' >/dev/null 2>&1; then
16751 as_expr=expr
16752 else
16753 as_expr=false
16756 rm -f conf$$ conf$$.exe conf$$.file
16757 echo >conf$$.file
16758 if ln -s conf$$.file conf$$ 2>/dev/null; then
16759 # We could just check for DJGPP; but this test a) works b) is more generic
16760 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16761 if test -f conf$$.exe; then
16762 # Don't use ln at all; we don't have any links
16763 as_ln_s='cp -p'
16764 else
16765 as_ln_s='ln -s'
16767 elif ln conf$$.file conf$$ 2>/dev/null; then
16768 as_ln_s=ln
16769 else
16770 as_ln_s='cp -p'
16772 rm -f conf$$ conf$$.exe conf$$.file
16774 if mkdir -p . 2>/dev/null; then
16775 as_mkdir_p=:
16776 else
16777 test -d ./-p && rmdir ./-p
16778 as_mkdir_p=false
16781 as_executable_p="test -f"
16783 # Sed expression to map a string onto a valid CPP name.
16784 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16786 # Sed expression to map a string onto a valid variable name.
16787 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16790 # IFS
16791 # We need space, tab and new line, in precisely that order.
16792 as_nl='
16794 IFS=" $as_nl"
16796 # CDPATH.
16797 $as_unset CDPATH
16799 exec 6>&1
16801 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16802 # report actual input values of CONFIG_FILES etc. instead of their
16803 # values after options handling. Logging --version etc. is OK.
16804 exec 5>>config.log
16806 echo
16807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16808 ## Running $as_me. ##
16809 _ASBOX
16810 } >&5
16811 cat >&5 <<_CSEOF
16813 This file was extended by libjava $as_me version-unused, which was
16814 generated by GNU Autoconf 2.59. Invocation command line was
16816 CONFIG_FILES = $CONFIG_FILES
16817 CONFIG_HEADERS = $CONFIG_HEADERS
16818 CONFIG_LINKS = $CONFIG_LINKS
16819 CONFIG_COMMANDS = $CONFIG_COMMANDS
16820 $ $0 $@
16822 _CSEOF
16823 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16824 echo >&5
16825 _ACEOF
16827 # Files that config.status was made for.
16828 if test -n "$ac_config_files"; then
16829 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16832 if test -n "$ac_config_headers"; then
16833 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16836 if test -n "$ac_config_links"; then
16837 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16840 if test -n "$ac_config_commands"; then
16841 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16844 cat >>$CONFIG_STATUS <<\_ACEOF
16846 ac_cs_usage="\
16847 \`$as_me' instantiates files from templates according to the
16848 current configuration.
16850 Usage: $0 [OPTIONS] [FILE]...
16852 -h, --help print this help, then exit
16853 -V, --version print version number, then exit
16854 -q, --quiet do not print progress messages
16855 -d, --debug don't remove temporary files
16856 --recheck update $as_me by reconfiguring in the same conditions
16857 --file=FILE[:TEMPLATE]
16858 instantiate the configuration file FILE
16859 --header=FILE[:TEMPLATE]
16860 instantiate the configuration header FILE
16862 Configuration files:
16863 $config_files
16865 Configuration headers:
16866 $config_headers
16868 Configuration links:
16869 $config_links
16871 Configuration commands:
16872 $config_commands
16874 Report bugs to <bug-autoconf@gnu.org>."
16875 _ACEOF
16877 cat >>$CONFIG_STATUS <<_ACEOF
16878 ac_cs_version="\\
16879 libjava config.status version-unused
16880 configured by $0, generated by GNU Autoconf 2.59,
16881 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16883 Copyright (C) 2003 Free Software Foundation, Inc.
16884 This config.status script is free software; the Free Software Foundation
16885 gives unlimited permission to copy, distribute and modify it."
16886 srcdir=$srcdir
16887 INSTALL="$INSTALL"
16888 _ACEOF
16890 cat >>$CONFIG_STATUS <<\_ACEOF
16891 # If no file are specified by the user, then we need to provide default
16892 # value. By we need to know if files were specified by the user.
16893 ac_need_defaults=:
16894 while test $# != 0
16896 case $1 in
16897 --*=*)
16898 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16899 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16900 ac_shift=:
16903 ac_option=$1
16904 ac_optarg=$2
16905 ac_shift=shift
16907 *) # This is not an option, so the user has probably given explicit
16908 # arguments.
16909 ac_option=$1
16910 ac_need_defaults=false;;
16911 esac
16913 case $ac_option in
16914 # Handling of the options.
16915 _ACEOF
16916 cat >>$CONFIG_STATUS <<\_ACEOF
16917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16918 ac_cs_recheck=: ;;
16919 --version | --vers* | -V )
16920 echo "$ac_cs_version"; exit 0 ;;
16921 --he | --h)
16922 # Conflict between --help and --header
16923 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16924 Try \`$0 --help' for more information." >&5
16925 echo "$as_me: error: ambiguous option: $1
16926 Try \`$0 --help' for more information." >&2;}
16927 { (exit 1); exit 1; }; };;
16928 --help | --hel | -h )
16929 echo "$ac_cs_usage"; exit 0 ;;
16930 --debug | --d* | -d )
16931 debug=: ;;
16932 --file | --fil | --fi | --f )
16933 $ac_shift
16934 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16935 ac_need_defaults=false;;
16936 --header | --heade | --head | --hea )
16937 $ac_shift
16938 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16939 ac_need_defaults=false;;
16940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16941 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16942 ac_cs_silent=: ;;
16944 # This is an error.
16945 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16946 Try \`$0 --help' for more information." >&5
16947 echo "$as_me: error: unrecognized option: $1
16948 Try \`$0 --help' for more information." >&2;}
16949 { (exit 1); exit 1; }; } ;;
16951 *) ac_config_targets="$ac_config_targets $1" ;;
16953 esac
16954 shift
16955 done
16957 ac_configure_extra_args=
16959 if $ac_cs_silent; then
16960 exec 6>/dev/null
16961 ac_configure_extra_args="$ac_configure_extra_args --silent"
16964 _ACEOF
16965 cat >>$CONFIG_STATUS <<_ACEOF
16966 if \$ac_cs_recheck; then
16967 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16968 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16971 _ACEOF
16973 cat >>$CONFIG_STATUS <<_ACEOF
16975 # INIT-COMMANDS section.
16978 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16979 srcdir=${srcdir}
16980 host=${host}
16981 target=${target}
16982 with_multisubdir=${with_multisubdir}
16983 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16984 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16985 libgcj_basedir=${libgcj_basedir}
16986 CC="${CC}"
16987 CXX="${CXX}"
16988 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16991 _ACEOF
16995 cat >>$CONFIG_STATUS <<\_ACEOF
16996 for ac_config_target in $ac_config_targets
16998 case "$ac_config_target" in
16999 # Handling of arguments.
17000 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17001 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17002 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17003 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17004 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
17005 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17006 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17007 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17008 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17009 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17010 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17011 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17012 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17013 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
17014 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17015 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17016 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17017 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17018 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17019 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17020 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17021 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17022 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17023 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17024 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17025 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17026 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17027 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17028 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17029 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17030 { (exit 1); exit 1; }; };;
17031 esac
17032 done
17034 # If the user did not use the arguments to specify the items to instantiate,
17035 # then the envvar interface is used. Set only those that are not.
17036 # We use the long form for the default assignment because of an extremely
17037 # bizarre bug on SunOS 4.1.3.
17038 if $ac_need_defaults; then
17039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17040 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17041 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17045 # Have a temporary directory for convenience. Make it in the build tree
17046 # simply because there is no reason to put it here, and in addition,
17047 # creating and moving files from /tmp can sometimes cause problems.
17048 # Create a temporary directory, and hook for its removal unless debugging.
17049 $debug ||
17051 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17052 trap '{ (exit 1); exit 1; }' 1 2 13 15
17055 # Create a (secure) tmp directory for tmp files.
17058 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17059 test -n "$tmp" && test -d "$tmp"
17060 } ||
17062 tmp=./confstat$$-$RANDOM
17063 (umask 077 && mkdir $tmp)
17064 } ||
17066 echo "$me: cannot create a temporary directory in ." >&2
17067 { (exit 1); exit 1; }
17070 _ACEOF
17072 cat >>$CONFIG_STATUS <<_ACEOF
17075 # CONFIG_FILES section.
17078 # No need to generate the scripts if there are no CONFIG_FILES.
17079 # This happens for instance when ./config.status config.h
17080 if test -n "\$CONFIG_FILES"; then
17081 # Protect against being on the right side of a sed subst in config.status.
17082 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17083 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17084 s,@SHELL@,$SHELL,;t t
17085 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17086 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17087 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17088 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17089 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17090 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17091 s,@exec_prefix@,$exec_prefix,;t t
17092 s,@prefix@,$prefix,;t t
17093 s,@program_transform_name@,$program_transform_name,;t t
17094 s,@bindir@,$bindir,;t t
17095 s,@sbindir@,$sbindir,;t t
17096 s,@libexecdir@,$libexecdir,;t t
17097 s,@datadir@,$datadir,;t t
17098 s,@sysconfdir@,$sysconfdir,;t t
17099 s,@sharedstatedir@,$sharedstatedir,;t t
17100 s,@localstatedir@,$localstatedir,;t t
17101 s,@libdir@,$libdir,;t t
17102 s,@includedir@,$includedir,;t t
17103 s,@oldincludedir@,$oldincludedir,;t t
17104 s,@infodir@,$infodir,;t t
17105 s,@mandir@,$mandir,;t t
17106 s,@build_alias@,$build_alias,;t t
17107 s,@host_alias@,$host_alias,;t t
17108 s,@target_alias@,$target_alias,;t t
17109 s,@DEFS@,$DEFS,;t t
17110 s,@ECHO_C@,$ECHO_C,;t t
17111 s,@ECHO_N@,$ECHO_N,;t t
17112 s,@ECHO_T@,$ECHO_T,;t t
17113 s,@LIBS@,$LIBS,;t t
17114 s,@libgcj_basedir@,$libgcj_basedir,;t t
17115 s,@build@,$build,;t t
17116 s,@build_cpu@,$build_cpu,;t t
17117 s,@build_vendor@,$build_vendor,;t t
17118 s,@build_os@,$build_os,;t t
17119 s,@host@,$host,;t t
17120 s,@host_cpu@,$host_cpu,;t t
17121 s,@host_vendor@,$host_vendor,;t t
17122 s,@host_os@,$host_os,;t t
17123 s,@target@,$target,;t t
17124 s,@target_cpu@,$target_cpu,;t t
17125 s,@target_vendor@,$target_vendor,;t t
17126 s,@target_os@,$target_os,;t t
17127 s,@target_noncanonical@,$target_noncanonical,;t t
17128 s,@LN_S@,$LN_S,;t t
17129 s,@mkinstalldirs@,$mkinstalldirs,;t t
17130 s,@CC@,$CC,;t t
17131 s,@ac_ct_CC@,$ac_ct_CC,;t t
17132 s,@EXEEXT@,$EXEEXT,;t t
17133 s,@OBJEXT@,$OBJEXT,;t t
17134 s,@CXX@,$CXX,;t t
17135 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17136 s,@CFLAGS@,$CFLAGS,;t t
17137 s,@CXXFLAGS@,$CXXFLAGS,;t t
17138 s,@LDFLAGS@,$LDFLAGS,;t t
17139 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17140 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17141 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17142 s,@CYGPATH_W@,$CYGPATH_W,;t t
17143 s,@PACKAGE@,$PACKAGE,;t t
17144 s,@VERSION@,$VERSION,;t t
17145 s,@ACLOCAL@,$ACLOCAL,;t t
17146 s,@AUTOCONF@,$AUTOCONF,;t t
17147 s,@AUTOMAKE@,$AUTOMAKE,;t t
17148 s,@AUTOHEADER@,$AUTOHEADER,;t t
17149 s,@MAKEINFO@,$MAKEINFO,;t t
17150 s,@install_sh@,$install_sh,;t t
17151 s,@STRIP@,$STRIP,;t t
17152 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17153 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17154 s,@mkdir_p@,$mkdir_p,;t t
17155 s,@AWK@,$AWK,;t t
17156 s,@SET_MAKE@,$SET_MAKE,;t t
17157 s,@am__leading_dot@,$am__leading_dot,;t t
17158 s,@AMTAR@,$AMTAR,;t t
17159 s,@am__tar@,$am__tar,;t t
17160 s,@am__untar@,$am__untar,;t t
17161 s,@DEPDIR@,$DEPDIR,;t t
17162 s,@am__include@,$am__include,;t t
17163 s,@am__quote@,$am__quote,;t t
17164 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17165 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17166 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17167 s,@CCDEPMODE@,$CCDEPMODE,;t t
17168 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17169 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17170 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17171 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17172 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17173 s,@AS@,$AS,;t t
17174 s,@ac_ct_AS@,$ac_ct_AS,;t t
17175 s,@AR@,$AR,;t t
17176 s,@ac_ct_AR@,$ac_ct_AR,;t t
17177 s,@RANLIB@,$RANLIB,;t t
17178 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17179 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17180 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17181 s,@MAINT@,$MAINT,;t t
17182 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17183 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17184 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17185 s,@INCLTDL@,$INCLTDL,;t t
17186 s,@LIBLTDL@,$LIBLTDL,;t t
17187 s,@DIRLTDL@,$DIRLTDL,;t t
17188 s,@LIBTOOL@,$LIBTOOL,;t t
17189 s,@CXXCPP@,$CXXCPP,;t t
17190 s,@CPPFLAGS@,$CPPFLAGS,;t t
17191 s,@GCJ@,$GCJ,;t t
17192 s,@GCJFLAGS@,$GCJFLAGS,;t t
17193 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17194 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17195 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17196 s,@subdirs@,$subdirs,;t t
17197 s,@COMPPATH@,$COMPPATH,;t t
17198 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17199 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17200 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
17201 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
17202 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17203 s,@INTERPRETER@,$INTERPRETER,;t t
17204 s,@LIBFFI@,$LIBFFI,;t t
17205 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17206 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17207 s,@CPP@,$CPP,;t t
17208 s,@EGREP@,$EGREP,;t t
17209 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17210 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17211 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17212 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17213 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
17214 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
17215 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17216 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17217 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17218 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17219 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17220 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17221 s,@X_CFLAGS@,$X_CFLAGS,;t t
17222 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17223 s,@X_LIBS@,$X_LIBS,;t t
17224 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17225 s,@TOOLKIT@,$TOOLKIT,;t t
17226 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17227 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17228 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17229 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17230 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17231 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17232 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17233 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17234 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17235 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17236 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17237 s,@GCLIBS@,$GCLIBS,;t t
17238 s,@GCINCS@,$GCINCS,;t t
17239 s,@GCDEPS@,$GCDEPS,;t t
17240 s,@GCSPEC@,$GCSPEC,;t t
17241 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17242 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17243 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17244 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17245 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17246 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17247 s,@THREADLIBS@,$THREADLIBS,;t t
17248 s,@THREADINCS@,$THREADINCS,;t t
17249 s,@THREADDEPS@,$THREADDEPS,;t t
17250 s,@THREADSPEC@,$THREADSPEC,;t t
17251 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17252 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17253 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17254 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17255 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17256 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17257 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17258 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17259 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17260 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17261 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17262 s,@tool_include_dir@,$tool_include_dir,;t t
17263 s,@gcc_version@,$gcc_version,;t t
17264 s,@LIBICONV@,$LIBICONV,;t t
17265 s,@LTLIBICONV@,$LTLIBICONV,;t t
17266 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17267 s,@GTK_LIBS@,$GTK_LIBS,;t t
17268 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17269 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17270 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17271 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17272 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17273 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17274 s,@GCJH@,$GCJH,;t t
17275 s,@ZIP@,$ZIP,;t t
17276 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17277 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17278 s,@ZLIBS@,$ZLIBS,;t t
17279 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17280 s,@ZINCS@,$ZINCS,;t t
17281 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17282 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17283 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17284 s,@IEEESPEC@,$IEEESPEC,;t t
17285 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17286 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17287 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17288 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17289 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17290 s,@toolexecdir@,$toolexecdir,;t t
17291 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17292 s,@toolexeclibdir@,$toolexeclibdir,;t t
17293 s,@GCJVERSION@,$GCJVERSION,;t t
17294 s,@ALLOCA@,$ALLOCA,;t t
17295 s,@PERL@,$PERL,;t t
17296 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17297 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17298 s,@here@,$here,;t t
17299 s,@LIBOBJS@,$LIBOBJS,;t t
17300 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17301 CEOF
17303 _ACEOF
17305 cat >>$CONFIG_STATUS <<\_ACEOF
17306 # Split the substitutions into bite-sized pieces for seds with
17307 # small command number limits, like on Digital OSF/1 and HP-UX.
17308 ac_max_sed_lines=48
17309 ac_sed_frag=1 # Number of current file.
17310 ac_beg=1 # First line for current file.
17311 ac_end=$ac_max_sed_lines # Line after last line for current file.
17312 ac_more_lines=:
17313 ac_sed_cmds=
17314 while $ac_more_lines; do
17315 if test $ac_beg -gt 1; then
17316 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17317 else
17318 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17320 if test ! -s $tmp/subs.frag; then
17321 ac_more_lines=false
17322 else
17323 # The purpose of the label and of the branching condition is to
17324 # speed up the sed processing (if there are no `@' at all, there
17325 # is no need to browse any of the substitutions).
17326 # These are the two extra sed commands mentioned above.
17327 (echo ':t
17328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17329 if test -z "$ac_sed_cmds"; then
17330 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17331 else
17332 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17334 ac_sed_frag=`expr $ac_sed_frag + 1`
17335 ac_beg=$ac_end
17336 ac_end=`expr $ac_end + $ac_max_sed_lines`
17338 done
17339 if test -z "$ac_sed_cmds"; then
17340 ac_sed_cmds=cat
17342 fi # test -n "$CONFIG_FILES"
17344 _ACEOF
17345 cat >>$CONFIG_STATUS <<\_ACEOF
17346 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17347 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17348 case $ac_file in
17349 - | *:- | *:-:* ) # input from stdin
17350 cat >$tmp/stdin
17351 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17353 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17354 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17355 * ) ac_file_in=$ac_file.in ;;
17356 esac
17358 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17359 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17361 X"$ac_file" : 'X\(//\)[^/]' \| \
17362 X"$ac_file" : 'X\(//\)$' \| \
17363 X"$ac_file" : 'X\(/\)' \| \
17364 . : '\(.\)' 2>/dev/null ||
17365 echo X"$ac_file" |
17366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17368 /^X\(\/\/\)$/{ s//\1/; q; }
17369 /^X\(\/\).*/{ s//\1/; q; }
17370 s/.*/./; q'`
17371 { if $as_mkdir_p; then
17372 mkdir -p "$ac_dir"
17373 else
17374 as_dir="$ac_dir"
17375 as_dirs=
17376 while test ! -d "$as_dir"; do
17377 as_dirs="$as_dir $as_dirs"
17378 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17380 X"$as_dir" : 'X\(//\)[^/]' \| \
17381 X"$as_dir" : 'X\(//\)$' \| \
17382 X"$as_dir" : 'X\(/\)' \| \
17383 . : '\(.\)' 2>/dev/null ||
17384 echo X"$as_dir" |
17385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17387 /^X\(\/\/\)$/{ s//\1/; q; }
17388 /^X\(\/\).*/{ s//\1/; q; }
17389 s/.*/./; q'`
17390 done
17391 test ! -n "$as_dirs" || mkdir $as_dirs
17392 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17393 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17394 { (exit 1); exit 1; }; }; }
17396 ac_builddir=.
17398 if test "$ac_dir" != .; then
17399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17400 # A "../" for each directory in $ac_dir_suffix.
17401 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17402 else
17403 ac_dir_suffix= ac_top_builddir=
17406 case $srcdir in
17407 .) # No --srcdir option. We are building in place.
17408 ac_srcdir=.
17409 if test -z "$ac_top_builddir"; then
17410 ac_top_srcdir=.
17411 else
17412 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17413 fi ;;
17414 [\\/]* | ?:[\\/]* ) # Absolute path.
17415 ac_srcdir=$srcdir$ac_dir_suffix;
17416 ac_top_srcdir=$srcdir ;;
17417 *) # Relative path.
17418 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17419 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17420 esac
17422 # Do not use `cd foo && pwd` to compute absolute paths, because
17423 # the directories may not exist.
17424 case `pwd` in
17425 .) ac_abs_builddir="$ac_dir";;
17427 case "$ac_dir" in
17428 .) ac_abs_builddir=`pwd`;;
17429 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17430 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17431 esac;;
17432 esac
17433 case $ac_abs_builddir in
17434 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17436 case ${ac_top_builddir}. in
17437 .) ac_abs_top_builddir=$ac_abs_builddir;;
17438 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17439 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17440 esac;;
17441 esac
17442 case $ac_abs_builddir in
17443 .) ac_abs_srcdir=$ac_srcdir;;
17445 case $ac_srcdir in
17446 .) ac_abs_srcdir=$ac_abs_builddir;;
17447 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17448 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17449 esac;;
17450 esac
17451 case $ac_abs_builddir in
17452 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17454 case $ac_top_srcdir in
17455 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17456 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17457 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17458 esac;;
17459 esac
17462 case $INSTALL in
17463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17464 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17465 esac
17467 if test x"$ac_file" != x-; then
17468 { echo "$as_me:$LINENO: creating $ac_file" >&5
17469 echo "$as_me: creating $ac_file" >&6;}
17470 rm -f "$ac_file"
17472 # Let's still pretend it is `configure' which instantiates (i.e., don't
17473 # use $as_me), people would be surprised to read:
17474 # /* config.h. Generated by config.status. */
17475 if test x"$ac_file" = x-; then
17476 configure_input=
17477 else
17478 configure_input="$ac_file. "
17480 configure_input=$configure_input"Generated from `echo $ac_file_in |
17481 sed 's,.*/,,'` by configure."
17483 # First look for the input files in the build tree, otherwise in the
17484 # src tree.
17485 ac_file_inputs=`IFS=:
17486 for f in $ac_file_in; do
17487 case $f in
17488 -) echo $tmp/stdin ;;
17489 [\\/$]*)
17490 # Absolute (can't be DOS-style, as IFS=:)
17491 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17492 echo "$as_me: error: cannot find input file: $f" >&2;}
17493 { (exit 1); exit 1; }; }
17494 echo "$f";;
17495 *) # Relative
17496 if test -f "$f"; then
17497 # Build tree
17498 echo "$f"
17499 elif test -f "$srcdir/$f"; then
17500 # Source tree
17501 echo "$srcdir/$f"
17502 else
17503 # /dev/null tree
17504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17505 echo "$as_me: error: cannot find input file: $f" >&2;}
17506 { (exit 1); exit 1; }; }
17507 fi;;
17508 esac
17509 done` || { (exit 1); exit 1; }
17510 _ACEOF
17511 cat >>$CONFIG_STATUS <<_ACEOF
17512 sed "$ac_vpsub
17513 $extrasub
17514 _ACEOF
17515 cat >>$CONFIG_STATUS <<\_ACEOF
17517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17518 s,@configure_input@,$configure_input,;t t
17519 s,@srcdir@,$ac_srcdir,;t t
17520 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17521 s,@top_srcdir@,$ac_top_srcdir,;t t
17522 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17523 s,@builddir@,$ac_builddir,;t t
17524 s,@abs_builddir@,$ac_abs_builddir,;t t
17525 s,@top_builddir@,$ac_top_builddir,;t t
17526 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17527 s,@INSTALL@,$ac_INSTALL,;t t
17528 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17529 rm -f $tmp/stdin
17530 if test x"$ac_file" != x-; then
17531 mv $tmp/out $ac_file
17532 else
17533 cat $tmp/out
17534 rm -f $tmp/out
17537 done
17538 _ACEOF
17539 cat >>$CONFIG_STATUS <<\_ACEOF
17542 # CONFIG_HEADER section.
17545 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17546 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17548 # ac_d sets the value in "#define NAME VALUE" lines.
17549 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17550 ac_dB='[ ].*$,\1#\2'
17551 ac_dC=' '
17552 ac_dD=',;t'
17553 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17554 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17555 ac_uB='$,\1#\2define\3'
17556 ac_uC=' '
17557 ac_uD=',;t'
17559 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17560 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17561 case $ac_file in
17562 - | *:- | *:-:* ) # input from stdin
17563 cat >$tmp/stdin
17564 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17566 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17567 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17568 * ) ac_file_in=$ac_file.in ;;
17569 esac
17571 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17572 echo "$as_me: creating $ac_file" >&6;}
17574 # First look for the input files in the build tree, otherwise in the
17575 # src tree.
17576 ac_file_inputs=`IFS=:
17577 for f in $ac_file_in; do
17578 case $f in
17579 -) echo $tmp/stdin ;;
17580 [\\/$]*)
17581 # Absolute (can't be DOS-style, as IFS=:)
17582 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17583 echo "$as_me: error: cannot find input file: $f" >&2;}
17584 { (exit 1); exit 1; }; }
17585 # Do quote $f, to prevent DOS paths from being IFS'd.
17586 echo "$f";;
17587 *) # Relative
17588 if test -f "$f"; then
17589 # Build tree
17590 echo "$f"
17591 elif test -f "$srcdir/$f"; then
17592 # Source tree
17593 echo "$srcdir/$f"
17594 else
17595 # /dev/null tree
17596 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17597 echo "$as_me: error: cannot find input file: $f" >&2;}
17598 { (exit 1); exit 1; }; }
17599 fi;;
17600 esac
17601 done` || { (exit 1); exit 1; }
17602 # Remove the trailing spaces.
17603 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17605 _ACEOF
17607 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17608 # `conftest.undefs', that substitutes the proper values into
17609 # config.h.in to produce config.h. The first handles `#define'
17610 # templates, and the second `#undef' templates.
17611 # And first: Protect against being on the right side of a sed subst in
17612 # config.status. Protect against being in an unquoted here document
17613 # in config.status.
17614 rm -f conftest.defines conftest.undefs
17615 # Using a here document instead of a string reduces the quoting nightmare.
17616 # Putting comments in sed scripts is not portable.
17618 # `end' is used to avoid that the second main sed command (meant for
17619 # 0-ary CPP macros) applies to n-ary macro definitions.
17620 # See the Autoconf documentation for `clear'.
17621 cat >confdef2sed.sed <<\_ACEOF
17622 s/[\\&,]/\\&/g
17623 s,[\\$`],\\&,g
17624 t clear
17625 : clear
17626 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17627 t end
17628 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17629 : end
17630 _ACEOF
17631 # If some macros were called several times there might be several times
17632 # the same #defines, which is useless. Nevertheless, we may not want to
17633 # sort them, since we want the *last* AC-DEFINE to be honored.
17634 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17635 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17636 rm -f confdef2sed.sed
17638 # This sed command replaces #undef with comments. This is necessary, for
17639 # example, in the case of _POSIX_SOURCE, which is predefined and required
17640 # on some systems where configure will not decide to define it.
17641 cat >>conftest.undefs <<\_ACEOF
17642 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17643 _ACEOF
17645 # Break up conftest.defines because some shells have a limit on the size
17646 # of here documents, and old seds have small limits too (100 cmds).
17647 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17648 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17649 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17650 echo ' :' >>$CONFIG_STATUS
17651 rm -f conftest.tail
17652 while grep . conftest.defines >/dev/null
17654 # Write a limited-size here document to $tmp/defines.sed.
17655 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17656 # Speed up: don't consider the non `#define' lines.
17657 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17658 # Work around the forget-to-reset-the-flag bug.
17659 echo 't clr' >>$CONFIG_STATUS
17660 echo ': clr' >>$CONFIG_STATUS
17661 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17662 echo 'CEOF
17663 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17664 rm -f $tmp/in
17665 mv $tmp/out $tmp/in
17666 ' >>$CONFIG_STATUS
17667 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17668 rm -f conftest.defines
17669 mv conftest.tail conftest.defines
17670 done
17671 rm -f conftest.defines
17672 echo ' fi # grep' >>$CONFIG_STATUS
17673 echo >>$CONFIG_STATUS
17675 # Break up conftest.undefs because some shells have a limit on the size
17676 # of here documents, and old seds have small limits too (100 cmds).
17677 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17678 rm -f conftest.tail
17679 while grep . conftest.undefs >/dev/null
17681 # Write a limited-size here document to $tmp/undefs.sed.
17682 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17683 # Speed up: don't consider the non `#undef'
17684 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17685 # Work around the forget-to-reset-the-flag bug.
17686 echo 't clr' >>$CONFIG_STATUS
17687 echo ': clr' >>$CONFIG_STATUS
17688 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17689 echo 'CEOF
17690 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17691 rm -f $tmp/in
17692 mv $tmp/out $tmp/in
17693 ' >>$CONFIG_STATUS
17694 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17695 rm -f conftest.undefs
17696 mv conftest.tail conftest.undefs
17697 done
17698 rm -f conftest.undefs
17700 cat >>$CONFIG_STATUS <<\_ACEOF
17701 # Let's still pretend it is `configure' which instantiates (i.e., don't
17702 # use $as_me), people would be surprised to read:
17703 # /* config.h. Generated by config.status. */
17704 if test x"$ac_file" = x-; then
17705 echo "/* Generated by configure. */" >$tmp/config.h
17706 else
17707 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17709 cat $tmp/in >>$tmp/config.h
17710 rm -f $tmp/in
17711 if test x"$ac_file" != x-; then
17712 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17713 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17714 echo "$as_me: $ac_file is unchanged" >&6;}
17715 else
17716 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17718 X"$ac_file" : 'X\(//\)[^/]' \| \
17719 X"$ac_file" : 'X\(//\)$' \| \
17720 X"$ac_file" : 'X\(/\)' \| \
17721 . : '\(.\)' 2>/dev/null ||
17722 echo X"$ac_file" |
17723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17725 /^X\(\/\/\)$/{ s//\1/; q; }
17726 /^X\(\/\).*/{ s//\1/; q; }
17727 s/.*/./; q'`
17728 { if $as_mkdir_p; then
17729 mkdir -p "$ac_dir"
17730 else
17731 as_dir="$ac_dir"
17732 as_dirs=
17733 while test ! -d "$as_dir"; do
17734 as_dirs="$as_dir $as_dirs"
17735 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17737 X"$as_dir" : 'X\(//\)[^/]' \| \
17738 X"$as_dir" : 'X\(//\)$' \| \
17739 X"$as_dir" : 'X\(/\)' \| \
17740 . : '\(.\)' 2>/dev/null ||
17741 echo X"$as_dir" |
17742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17744 /^X\(\/\/\)$/{ s//\1/; q; }
17745 /^X\(\/\).*/{ s//\1/; q; }
17746 s/.*/./; q'`
17747 done
17748 test ! -n "$as_dirs" || mkdir $as_dirs
17749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17750 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17751 { (exit 1); exit 1; }; }; }
17753 rm -f $ac_file
17754 mv $tmp/config.h $ac_file
17756 else
17757 cat $tmp/config.h
17758 rm -f $tmp/config.h
17760 # Compute $ac_file's index in $config_headers.
17761 _am_stamp_count=1
17762 for _am_header in $config_headers :; do
17763 case $_am_header in
17764 $ac_file | $ac_file:* )
17765 break ;;
17767 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17768 esac
17769 done
17770 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17771 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17772 X$ac_file : 'X\(//\)[^/]' \| \
17773 X$ac_file : 'X\(//\)$' \| \
17774 X$ac_file : 'X\(/\)' \| \
17775 . : '\(.\)' 2>/dev/null ||
17776 echo X$ac_file |
17777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17779 /^X\(\/\/\)$/{ s//\1/; q; }
17780 /^X\(\/\).*/{ s//\1/; q; }
17781 s/.*/./; q'`/stamp-h$_am_stamp_count
17782 done
17783 _ACEOF
17784 cat >>$CONFIG_STATUS <<\_ACEOF
17787 # CONFIG_LINKS section.
17790 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17791 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17792 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17794 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17795 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17797 if test ! -r $srcdir/$ac_source; then
17798 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17799 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17800 { (exit 1); exit 1; }; }
17802 rm -f $ac_dest
17804 # Make relative symlinks.
17805 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17806 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17807 X"$ac_dest" : 'X\(//\)[^/]' \| \
17808 X"$ac_dest" : 'X\(//\)$' \| \
17809 X"$ac_dest" : 'X\(/\)' \| \
17810 . : '\(.\)' 2>/dev/null ||
17811 echo X"$ac_dest" |
17812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17814 /^X\(\/\/\)$/{ s//\1/; q; }
17815 /^X\(\/\).*/{ s//\1/; q; }
17816 s/.*/./; q'`
17817 { if $as_mkdir_p; then
17818 mkdir -p "$ac_dest_dir"
17819 else
17820 as_dir="$ac_dest_dir"
17821 as_dirs=
17822 while test ! -d "$as_dir"; do
17823 as_dirs="$as_dir $as_dirs"
17824 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17826 X"$as_dir" : 'X\(//\)[^/]' \| \
17827 X"$as_dir" : 'X\(//\)$' \| \
17828 X"$as_dir" : 'X\(/\)' \| \
17829 . : '\(.\)' 2>/dev/null ||
17830 echo X"$as_dir" |
17831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17833 /^X\(\/\/\)$/{ s//\1/; q; }
17834 /^X\(\/\).*/{ s//\1/; q; }
17835 s/.*/./; q'`
17836 done
17837 test ! -n "$as_dirs" || mkdir $as_dirs
17838 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17839 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17840 { (exit 1); exit 1; }; }; }
17842 ac_builddir=.
17844 if test "$ac_dest_dir" != .; then
17845 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17846 # A "../" for each directory in $ac_dir_suffix.
17847 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17848 else
17849 ac_dir_suffix= ac_top_builddir=
17852 case $srcdir in
17853 .) # No --srcdir option. We are building in place.
17854 ac_srcdir=.
17855 if test -z "$ac_top_builddir"; then
17856 ac_top_srcdir=.
17857 else
17858 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17859 fi ;;
17860 [\\/]* | ?:[\\/]* ) # Absolute path.
17861 ac_srcdir=$srcdir$ac_dir_suffix;
17862 ac_top_srcdir=$srcdir ;;
17863 *) # Relative path.
17864 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17865 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17866 esac
17868 # Do not use `cd foo && pwd` to compute absolute paths, because
17869 # the directories may not exist.
17870 case `pwd` in
17871 .) ac_abs_builddir="$ac_dest_dir";;
17873 case "$ac_dest_dir" in
17874 .) ac_abs_builddir=`pwd`;;
17875 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17876 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17877 esac;;
17878 esac
17879 case $ac_abs_builddir in
17880 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17882 case ${ac_top_builddir}. in
17883 .) ac_abs_top_builddir=$ac_abs_builddir;;
17884 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17885 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17886 esac;;
17887 esac
17888 case $ac_abs_builddir in
17889 .) ac_abs_srcdir=$ac_srcdir;;
17891 case $ac_srcdir in
17892 .) ac_abs_srcdir=$ac_abs_builddir;;
17893 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17894 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17895 esac;;
17896 esac
17897 case $ac_abs_builddir in
17898 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17900 case $ac_top_srcdir in
17901 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17902 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17903 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17904 esac;;
17905 esac
17908 case $srcdir in
17909 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17910 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17911 esac
17913 # Try a symlink, then a hard link, then a copy.
17914 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17915 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17916 cp -p $srcdir/$ac_source $ac_dest ||
17917 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17918 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17919 { (exit 1); exit 1; }; }
17920 done
17921 _ACEOF
17922 cat >>$CONFIG_STATUS <<\_ACEOF
17925 # CONFIG_COMMANDS section.
17927 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17928 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17929 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17930 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17931 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17932 X"$ac_dest" : 'X\(//\)[^/]' \| \
17933 X"$ac_dest" : 'X\(//\)$' \| \
17934 X"$ac_dest" : 'X\(/\)' \| \
17935 . : '\(.\)' 2>/dev/null ||
17936 echo X"$ac_dest" |
17937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17939 /^X\(\/\/\)$/{ s//\1/; q; }
17940 /^X\(\/\).*/{ s//\1/; q; }
17941 s/.*/./; q'`
17942 { if $as_mkdir_p; then
17943 mkdir -p "$ac_dir"
17944 else
17945 as_dir="$ac_dir"
17946 as_dirs=
17947 while test ! -d "$as_dir"; do
17948 as_dirs="$as_dir $as_dirs"
17949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17951 X"$as_dir" : 'X\(//\)[^/]' \| \
17952 X"$as_dir" : 'X\(//\)$' \| \
17953 X"$as_dir" : 'X\(/\)' \| \
17954 . : '\(.\)' 2>/dev/null ||
17955 echo X"$as_dir" |
17956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17958 /^X\(\/\/\)$/{ s//\1/; q; }
17959 /^X\(\/\).*/{ s//\1/; q; }
17960 s/.*/./; q'`
17961 done
17962 test ! -n "$as_dirs" || mkdir $as_dirs
17963 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17965 { (exit 1); exit 1; }; }; }
17967 ac_builddir=.
17969 if test "$ac_dir" != .; then
17970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17971 # A "../" for each directory in $ac_dir_suffix.
17972 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17973 else
17974 ac_dir_suffix= ac_top_builddir=
17977 case $srcdir in
17978 .) # No --srcdir option. We are building in place.
17979 ac_srcdir=.
17980 if test -z "$ac_top_builddir"; then
17981 ac_top_srcdir=.
17982 else
17983 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17984 fi ;;
17985 [\\/]* | ?:[\\/]* ) # Absolute path.
17986 ac_srcdir=$srcdir$ac_dir_suffix;
17987 ac_top_srcdir=$srcdir ;;
17988 *) # Relative path.
17989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17991 esac
17993 # Do not use `cd foo && pwd` to compute absolute paths, because
17994 # the directories may not exist.
17995 case `pwd` in
17996 .) ac_abs_builddir="$ac_dir";;
17998 case "$ac_dir" in
17999 .) ac_abs_builddir=`pwd`;;
18000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18002 esac;;
18003 esac
18004 case $ac_abs_builddir in
18005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18007 case ${ac_top_builddir}. in
18008 .) ac_abs_top_builddir=$ac_abs_builddir;;
18009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18011 esac;;
18012 esac
18013 case $ac_abs_builddir in
18014 .) ac_abs_srcdir=$ac_srcdir;;
18016 case $ac_srcdir in
18017 .) ac_abs_srcdir=$ac_abs_builddir;;
18018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18020 esac;;
18021 esac
18022 case $ac_abs_builddir in
18023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18025 case $ac_top_srcdir in
18026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18029 esac;;
18030 esac
18033 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18034 echo "$as_me: executing $ac_dest commands" >&6;}
18035 case $ac_dest in
18036 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18037 # Strip MF so we end up with the name of the file.
18038 mf=`echo "$mf" | sed -e 's/:.*$//'`
18039 # Check whether this is an Automake generated Makefile or not.
18040 # We used to match only the files named `Makefile.in', but
18041 # some people rename them; so instead we look at the file content.
18042 # Grep'ing the first line is not enough: some people post-process
18043 # each Makefile.in and add a new line on top of each file to say so.
18044 # So let's grep whole file.
18045 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18046 dirpart=`(dirname "$mf") 2>/dev/null ||
18047 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18048 X"$mf" : 'X\(//\)[^/]' \| \
18049 X"$mf" : 'X\(//\)$' \| \
18050 X"$mf" : 'X\(/\)' \| \
18051 . : '\(.\)' 2>/dev/null ||
18052 echo X"$mf" |
18053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18055 /^X\(\/\/\)$/{ s//\1/; q; }
18056 /^X\(\/\).*/{ s//\1/; q; }
18057 s/.*/./; q'`
18058 else
18059 continue
18061 # Extract the definition of DEPDIR, am__include, and am__quote
18062 # from the Makefile without running `make'.
18063 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18064 test -z "$DEPDIR" && continue
18065 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18066 test -z "am__include" && continue
18067 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18068 # When using ansi2knr, U may be empty or an underscore; expand it
18069 U=`sed -n 's/^U = //p' < "$mf"`
18070 # Find all dependency output files, they are included files with
18071 # $(DEPDIR) in their names. We invoke sed twice because it is the
18072 # simplest approach to changing $(DEPDIR) to its actual value in the
18073 # expansion.
18074 for file in `sed -n "
18075 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18076 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18077 # Make sure the directory exists.
18078 test -f "$dirpart/$file" && continue
18079 fdir=`(dirname "$file") 2>/dev/null ||
18080 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18081 X"$file" : 'X\(//\)[^/]' \| \
18082 X"$file" : 'X\(//\)$' \| \
18083 X"$file" : 'X\(/\)' \| \
18084 . : '\(.\)' 2>/dev/null ||
18085 echo X"$file" |
18086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18088 /^X\(\/\/\)$/{ s//\1/; q; }
18089 /^X\(\/\).*/{ s//\1/; q; }
18090 s/.*/./; q'`
18091 { if $as_mkdir_p; then
18092 mkdir -p $dirpart/$fdir
18093 else
18094 as_dir=$dirpart/$fdir
18095 as_dirs=
18096 while test ! -d "$as_dir"; do
18097 as_dirs="$as_dir $as_dirs"
18098 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18100 X"$as_dir" : 'X\(//\)[^/]' \| \
18101 X"$as_dir" : 'X\(//\)$' \| \
18102 X"$as_dir" : 'X\(/\)' \| \
18103 . : '\(.\)' 2>/dev/null ||
18104 echo X"$as_dir" |
18105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18107 /^X\(\/\/\)$/{ s//\1/; q; }
18108 /^X\(\/\).*/{ s//\1/; q; }
18109 s/.*/./; q'`
18110 done
18111 test ! -n "$as_dirs" || mkdir $as_dirs
18112 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18113 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18114 { (exit 1); exit 1; }; }; }
18116 # echo "creating $dirpart/$file"
18117 echo '# dummy' > "$dirpart/$file"
18118 done
18119 done
18121 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18122 case " $CONFIG_FILES " in
18123 *" Makefile "*)
18124 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18125 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18127 esac
18129 esac
18130 done
18131 _ACEOF
18133 cat >>$CONFIG_STATUS <<\_ACEOF
18135 { (exit 0); exit 0; }
18136 _ACEOF
18137 chmod +x $CONFIG_STATUS
18138 ac_clean_files=$ac_clean_files_save
18141 # configure is writing to config.log, and then calls config.status.
18142 # config.status does its own redirection, appending to config.log.
18143 # Unfortunately, on DOS this fails, as config.log is still kept open
18144 # by configure, so config.status won't be able to write to it; its
18145 # output is simply discarded. So we exec the FD to /dev/null,
18146 # effectively closing config.log, so it can be properly (re)opened and
18147 # appended to by config.status. When coming back to configure, we
18148 # need to make the FD available again.
18149 if test "$no_create" != yes; then
18150 ac_cs_success=:
18151 ac_config_status_args=
18152 test "$silent" = yes &&
18153 ac_config_status_args="$ac_config_status_args --quiet"
18154 exec 5>/dev/null
18155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18156 exec 5>>config.log
18157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18158 # would make configure fail if this is the last instruction.
18159 $ac_cs_success || { (exit 1); exit 1; }
18163 # CONFIG_SUBDIRS section.
18165 if test "$no_recursion" != yes; then
18167 # Remove --cache-file and --srcdir arguments so they do not pile up.
18168 ac_sub_configure_args=
18169 ac_prev=
18170 for ac_arg in $ac_configure_args; do
18171 if test -n "$ac_prev"; then
18172 ac_prev=
18173 continue
18175 case $ac_arg in
18176 -cache-file | --cache-file | --cache-fil | --cache-fi \
18177 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18178 ac_prev=cache_file ;;
18179 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18180 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18181 | --c=*)
18183 --config-cache | -C)
18185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18186 ac_prev=srcdir ;;
18187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18190 ac_prev=prefix ;;
18191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18193 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18194 esac
18195 done
18197 # Always prepend --prefix to ensure using the same prefix
18198 # in subdir configurations.
18199 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18201 ac_popdir=`pwd`
18202 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18204 # Do not complain, so a configure script can configure whichever
18205 # parts of a large source tree are present.
18206 test -d $srcdir/$ac_dir || continue
18208 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18209 echo "$as_me: configuring in $ac_dir" >&6;}
18210 { if $as_mkdir_p; then
18211 mkdir -p "$ac_dir"
18212 else
18213 as_dir="$ac_dir"
18214 as_dirs=
18215 while test ! -d "$as_dir"; do
18216 as_dirs="$as_dir $as_dirs"
18217 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18219 X"$as_dir" : 'X\(//\)[^/]' \| \
18220 X"$as_dir" : 'X\(//\)$' \| \
18221 X"$as_dir" : 'X\(/\)' \| \
18222 . : '\(.\)' 2>/dev/null ||
18223 echo X"$as_dir" |
18224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18226 /^X\(\/\/\)$/{ s//\1/; q; }
18227 /^X\(\/\).*/{ s//\1/; q; }
18228 s/.*/./; q'`
18229 done
18230 test ! -n "$as_dirs" || mkdir $as_dirs
18231 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18232 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18233 { (exit 1); exit 1; }; }; }
18235 ac_builddir=.
18237 if test "$ac_dir" != .; then
18238 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18239 # A "../" for each directory in $ac_dir_suffix.
18240 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18241 else
18242 ac_dir_suffix= ac_top_builddir=
18245 case $srcdir in
18246 .) # No --srcdir option. We are building in place.
18247 ac_srcdir=.
18248 if test -z "$ac_top_builddir"; then
18249 ac_top_srcdir=.
18250 else
18251 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18252 fi ;;
18253 [\\/]* | ?:[\\/]* ) # Absolute path.
18254 ac_srcdir=$srcdir$ac_dir_suffix;
18255 ac_top_srcdir=$srcdir ;;
18256 *) # Relative path.
18257 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18258 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18259 esac
18261 # Do not use `cd foo && pwd` to compute absolute paths, because
18262 # the directories may not exist.
18263 case `pwd` in
18264 .) ac_abs_builddir="$ac_dir";;
18266 case "$ac_dir" in
18267 .) ac_abs_builddir=`pwd`;;
18268 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18269 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18270 esac;;
18271 esac
18272 case $ac_abs_builddir in
18273 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18275 case ${ac_top_builddir}. in
18276 .) ac_abs_top_builddir=$ac_abs_builddir;;
18277 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18278 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18279 esac;;
18280 esac
18281 case $ac_abs_builddir in
18282 .) ac_abs_srcdir=$ac_srcdir;;
18284 case $ac_srcdir in
18285 .) ac_abs_srcdir=$ac_abs_builddir;;
18286 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18287 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18288 esac;;
18289 esac
18290 case $ac_abs_builddir in
18291 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18293 case $ac_top_srcdir in
18294 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18295 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18296 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18297 esac;;
18298 esac
18301 cd $ac_dir
18303 # Check for guested configure; otherwise get Cygnus style configure.
18304 if test -f $ac_srcdir/configure.gnu; then
18305 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18306 elif test -f $ac_srcdir/configure; then
18307 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18308 elif test -f $ac_srcdir/configure.in; then
18309 ac_sub_configure=$ac_configure
18310 else
18311 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18312 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18313 ac_sub_configure=
18316 # The recursion is here.
18317 if test -n "$ac_sub_configure"; then
18318 # Make the cache file name correct relative to the subdirectory.
18319 case $cache_file in
18320 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18321 *) # Relative path.
18322 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18323 esac
18325 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18326 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18327 # The eval makes quoting arguments work.
18328 eval $ac_sub_configure $ac_sub_configure_args \
18329 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18330 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18331 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18332 { (exit 1); exit 1; }; }
18335 cd $ac_popdir
18336 done