* config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
[official-gcc.git] / libjava / configure
blob03251ee3067a45f90d26162b619c13daf8ffb247
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" || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 ac_compiler_gnu=yes
2220 else
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 ac_compiler_gnu=no
2226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2227 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2230 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2231 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2232 GCC=`test $ac_compiler_gnu = yes && echo yes`
2233 ac_test_CFLAGS=${CFLAGS+set}
2234 ac_save_CFLAGS=$CFLAGS
2235 CFLAGS="-g"
2236 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2237 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2238 if test "${ac_cv_prog_cc_g+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241 cat >conftest.$ac_ext <<_ACEOF
2242 /* confdefs.h. */
2243 _ACEOF
2244 cat confdefs.h >>conftest.$ac_ext
2245 cat >>conftest.$ac_ext <<_ACEOF
2246 /* end confdefs.h. */
2249 main ()
2253 return 0;
2255 _ACEOF
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>conftest.er1
2259 ac_status=$?
2260 grep -v '^ *+' conftest.er1 >conftest.err
2261 rm -f conftest.er1
2262 cat conftest.err >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 ac_cv_prog_cc_g=yes
2278 else
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2282 ac_cv_prog_cc_g=no
2284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2287 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2288 if test "$ac_test_CFLAGS" = set; then
2289 CFLAGS=$ac_save_CFLAGS
2290 elif test $ac_cv_prog_cc_g = yes; then
2291 if test "$GCC" = yes; then
2292 CFLAGS="-g -O2"
2293 else
2294 CFLAGS="-g"
2296 else
2297 if test "$GCC" = yes; then
2298 CFLAGS="-O2"
2299 else
2300 CFLAGS=
2303 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2304 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2305 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308 ac_cv_prog_cc_stdc=no
2309 ac_save_CC=$CC
2310 cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h. */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2316 #include <stdarg.h>
2317 #include <stdio.h>
2318 #include <sys/types.h>
2319 #include <sys/stat.h>
2320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2321 struct buf { int x; };
2322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2323 static char *e (p, i)
2324 char **p;
2325 int i;
2327 return p[i];
2329 static char *f (char * (*g) (char **, int), char **p, ...)
2331 char *s;
2332 va_list v;
2333 va_start (v,p);
2334 s = g (p, va_arg (v,int));
2335 va_end (v);
2336 return s;
2339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2340 function prototypes and stuff, but not '\xHH' hex character constants.
2341 These don't provoke an error unfortunately, instead are silently treated
2342 as 'x'. The following induces an error, until -std1 is added to get
2343 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2344 array size at least. It's necessary to write '\x00'==0 to get something
2345 that's true only with -std1. */
2346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2348 int test (int i, double x);
2349 struct s1 {int (*f) (int a);};
2350 struct s2 {int (*f) (double a);};
2351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2352 int argc;
2353 char **argv;
2355 main ()
2357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2359 return 0;
2361 _ACEOF
2362 # Don't try gcc -ansi; that turns off useful extensions and
2363 # breaks some systems' header files.
2364 # AIX -qlanglvl=ansi
2365 # Ultrix and OSF/1 -std1
2366 # HP-UX 10.20 and later -Ae
2367 # HP-UX older versions -Aa -D_HPUX_SOURCE
2368 # SVR4 -Xc -D__EXTENSIONS__
2369 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2371 CC="$ac_save_CC $ac_arg"
2372 rm -f conftest.$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>conftest.er1
2375 ac_status=$?
2376 grep -v '^ *+' conftest.er1 >conftest.err
2377 rm -f conftest.er1
2378 cat conftest.err >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 (eval $ac_try) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 (eval $ac_try) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2393 ac_cv_prog_cc_stdc=$ac_arg
2394 break
2395 else
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2400 rm -f conftest.err conftest.$ac_objext
2401 done
2402 rm -f conftest.$ac_ext conftest.$ac_objext
2403 CC=$ac_save_CC
2407 case "x$ac_cv_prog_cc_stdc" in
2408 x|xno)
2409 echo "$as_me:$LINENO: result: none needed" >&5
2410 echo "${ECHO_T}none needed" >&6 ;;
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2414 CC="$CC $ac_cv_prog_cc_stdc" ;;
2415 esac
2417 # Some people use a C++ compiler to compile C. Since we use `exit',
2418 # in C++ we need to declare it. In case someone uses the same compiler
2419 # for both compiling C and C++ we need to have the C++ compiler decide
2420 # the declaration of exit, since it's the most demanding environment.
2421 cat >conftest.$ac_ext <<_ACEOF
2422 #ifndef __cplusplus
2423 choke me
2424 #endif
2425 _ACEOF
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>conftest.er1
2429 ac_status=$?
2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 for ac_declaration in \
2448 '' \
2449 'extern "C" void std::exit (int) throw (); using std::exit;' \
2450 'extern "C" void std::exit (int); using std::exit;' \
2451 'extern "C" void exit (int) throw ();' \
2452 'extern "C" void exit (int);' \
2453 'void exit (int);'
2455 cat >conftest.$ac_ext <<_ACEOF
2456 /* confdefs.h. */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2461 $ac_declaration
2462 #include <stdlib.h>
2464 main ()
2466 exit (42);
2468 return 0;
2470 _ACEOF
2471 rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473 (eval $ac_compile) 2>conftest.er1
2474 ac_status=$?
2475 grep -v '^ *+' conftest.er1 >conftest.err
2476 rm -f conftest.er1
2477 cat conftest.err >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2493 else
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2497 continue
2499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500 cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h. */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2506 $ac_declaration
2508 main ()
2510 exit (42);
2512 return 0;
2514 _ACEOF
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517 (eval $ac_compile) 2>conftest.er1
2518 ac_status=$?
2519 grep -v '^ *+' conftest.er1 >conftest.err
2520 rm -f conftest.er1
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2536 break
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 done
2544 rm -f conftest*
2545 if test -n "$ac_declaration"; then
2546 echo '#ifdef __cplusplus' >>confdefs.h
2547 echo $ac_declaration >>confdefs.h
2548 echo '#endif' >>confdefs.h
2551 else
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2557 ac_ext=c
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 ac_ext=cc
2564 ac_cpp='$CXXCPP $CPPFLAGS'
2565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2568 if test -n "$ac_tool_prefix"; then
2569 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2573 echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 if test -n "$CXX"; then
2579 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2592 done
2593 done
2597 CXX=$glibcxx_cv_prog_CXX
2598 if test -n "$CXX"; then
2599 echo "$as_me:$LINENO: result: $CXX" >&5
2600 echo "${ECHO_T}$CXX" >&6
2601 else
2602 echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2606 test -n "$CXX" && break
2607 done
2609 if test -z "$CXX"; then
2610 ac_ct_CXX=$CXX
2611 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2613 # Extract the first word of "$ac_prog", so it can be a program name with args.
2614 set dummy $ac_prog; ac_word=$2
2615 echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620 if test -n "$ac_ct_CXX"; then
2621 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_ac_ct_CXX="$ac_prog"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2634 done
2635 done
2639 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2640 if test -n "$ac_ct_CXX"; then
2641 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2642 echo "${ECHO_T}$ac_ct_CXX" >&6
2643 else
2644 echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2648 test -n "$ac_ct_CXX" && break
2649 done
2650 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2652 CXX=$ac_ct_CXX
2656 # Provide some information about the compiler.
2657 echo "$as_me:$LINENO:" \
2658 "checking for C++ compiler version" >&5
2659 ac_compiler=`set X $ac_compile; echo $2`
2660 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2661 (eval $ac_compiler --version </dev/null >&5) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }
2665 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2666 (eval $ac_compiler -v </dev/null >&5) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }
2670 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2671 (eval $ac_compiler -V </dev/null >&5) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2676 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2677 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2678 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h. */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2689 main ()
2691 #ifndef __GNUC__
2692 choke me
2693 #endif
2696 return 0;
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 ac_compiler_gnu=yes
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 ac_compiler_gnu=no
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2731 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2732 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2733 GXX=`test $ac_compiler_gnu = yes && echo yes`
2734 ac_test_CXXFLAGS=${CXXFLAGS+set}
2735 ac_save_CXXFLAGS=$CXXFLAGS
2736 CXXFLAGS="-g"
2737 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2738 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2739 if test "${ac_cv_prog_cxx_g+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h. */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2750 main ()
2754 return 0;
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_cv_prog_cxx_g=yes
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 ac_cv_prog_cxx_g=no
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2789 if test "$ac_test_CXXFLAGS" = set; then
2790 CXXFLAGS=$ac_save_CXXFLAGS
2791 elif test $ac_cv_prog_cxx_g = yes; then
2792 if test "$GXX" = yes; then
2793 CXXFLAGS="-g -O2"
2794 else
2795 CXXFLAGS="-g"
2797 else
2798 if test "$GXX" = yes; then
2799 CXXFLAGS="-O2"
2800 else
2801 CXXFLAGS=
2804 for ac_declaration in \
2805 '' \
2806 'extern "C" void std::exit (int) throw (); using std::exit;' \
2807 'extern "C" void std::exit (int); using std::exit;' \
2808 'extern "C" void exit (int) throw ();' \
2809 'extern "C" void exit (int);' \
2810 'void exit (int);'
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 $ac_declaration
2819 #include <stdlib.h>
2821 main ()
2823 exit (42);
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 continue
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2863 $ac_declaration
2865 main ()
2867 exit (42);
2869 return 0;
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2875 ac_status=$?
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 break
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 done
2901 rm -f conftest*
2902 if test -n "$ac_declaration"; then
2903 echo '#ifdef __cplusplus' >>confdefs.h
2904 echo $ac_declaration >>confdefs.h
2905 echo '#endif' >>confdefs.h
2908 ac_ext=c
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 CXXFLAGS="$save_CXXFLAGS"
2920 am__api_version="1.9"
2921 # Find a good install program. We prefer a C program (faster),
2922 # so one script is as good as another. But avoid the broken or
2923 # incompatible versions:
2924 # SysV /etc/install, /usr/sbin/install
2925 # SunOS /usr/etc/install
2926 # IRIX /sbin/install
2927 # AIX /bin/install
2928 # AmigaOS /C/install, which installs bootblocks on floppy discs
2929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2932 # OS/2's system install, which has a completely different semantic
2933 # ./install, which can be erroneously created by make from ./install.sh.
2934 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2935 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2936 if test -z "$INSTALL"; then
2937 if test "${ac_cv_path_install+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 # Account for people who put trailing slashes in PATH elements.
2946 case $as_dir/ in
2947 ./ | .// | /cC/* | \
2948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2950 /usr/ucb/* ) ;;
2952 # OSF1 and SCO ODT 3.0 have their own names for install.
2953 # Don't use installbsd from OSF since it installs stuff as root
2954 # by default.
2955 for ac_prog in ginstall scoinst install; do
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2958 if test $ac_prog = install &&
2959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2960 # AIX install. It has an incompatible calling convention.
2962 elif test $ac_prog = install &&
2963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2964 # program-specific install script used by HP pwplus--don't use.
2966 else
2967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2968 break 3
2971 done
2972 done
2974 esac
2975 done
2979 if test "${ac_cv_path_install+set}" = set; then
2980 INSTALL=$ac_cv_path_install
2981 else
2982 # As a last resort, use the slow shell script. We don't cache a
2983 # path for INSTALL within a source directory, because that will
2984 # break other packages using the cache if that directory is
2985 # removed, or if the path is relative.
2986 INSTALL=$ac_install_sh
2989 echo "$as_me:$LINENO: result: $INSTALL" >&5
2990 echo "${ECHO_T}$INSTALL" >&6
2992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2993 # It thinks the first close brace ends the variable substitution.
2994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3000 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3001 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3002 # Just in case
3003 sleep 1
3004 echo timestamp > conftest.file
3005 # Do `set' in a subshell so we don't clobber the current shell's
3006 # arguments. Must try -L first in case configure is actually a
3007 # symlink; some systems play weird games with the mod time of symlinks
3008 # (eg FreeBSD returns the mod time of the symlink's containing
3009 # directory).
3010 if (
3011 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3012 if test "$*" = "X"; then
3013 # -L didn't work.
3014 set X `ls -t $srcdir/configure conftest.file`
3016 rm -f conftest.file
3017 if test "$*" != "X $srcdir/configure conftest.file" \
3018 && test "$*" != "X conftest.file $srcdir/configure"; then
3020 # If neither matched, then we have a broken ls. This can happen
3021 # if, for instance, CONFIG_SHELL is bash and it inherits a
3022 # broken ls alias from the environment. This has actually
3023 # happened. Such a system could not be considered "sane".
3024 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3025 alias in your environment" >&5
3026 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3027 alias in your environment" >&2;}
3028 { (exit 1); exit 1; }; }
3031 test "$2" = conftest.file
3033 then
3034 # Ok.
3036 else
3037 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3038 Check your system clock" >&5
3039 echo "$as_me: error: newly created file is older than distributed files!
3040 Check your system clock" >&2;}
3041 { (exit 1); exit 1; }; }
3043 echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6
3045 test "$program_prefix" != NONE &&
3046 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3047 # Use a double $ so make ignores it.
3048 test "$program_suffix" != NONE &&
3049 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3050 # Double any \ or $. echo might interpret backslashes.
3051 # By default was `s,x,x', remove it if useless.
3052 cat <<\_ACEOF >conftest.sed
3053 s/[\\$]/&&/g;s/;s,x,x,$//
3054 _ACEOF
3055 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3056 rm conftest.sed
3058 # expand $ac_aux_dir to an absolute path
3059 am_aux_dir=`cd $ac_aux_dir && pwd`
3061 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3062 # Use eval to expand $SHELL
3063 if eval "$MISSING --run true"; then
3064 am_missing_run="$MISSING --run "
3065 else
3066 am_missing_run=
3067 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3068 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3071 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3072 # We used to keeping the `.' as first argument, in order to
3073 # allow $(mkdir_p) to be used without argument. As in
3074 # $(mkdir_p) $(somedir)
3075 # where $(somedir) is conditionally defined. However this is wrong
3076 # for two reasons:
3077 # 1. if the package is installed by a user who cannot write `.'
3078 # make install will fail,
3079 # 2. the above comment should most certainly read
3080 # $(mkdir_p) $(DESTDIR)$(somedir)
3081 # so it does not work when $(somedir) is undefined and
3082 # $(DESTDIR) is not.
3083 # To support the latter case, we have to write
3084 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3085 # so the `.' trick is pointless.
3086 mkdir_p='mkdir -p --'
3087 else
3088 # On NextStep and OpenStep, the `mkdir' command does not
3089 # recognize any option. It will interpret all options as
3090 # directories to create, and then abort because `.' already
3091 # exists.
3092 for d in ./-p ./--version;
3094 test -d $d && rmdir $d
3095 done
3096 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3097 if test -f "$ac_aux_dir/mkinstalldirs"; then
3098 mkdir_p='$(mkinstalldirs)'
3099 else
3100 mkdir_p='$(install_sh) -d'
3104 for ac_prog in gawk mawk nawk awk
3106 # Extract the first word of "$ac_prog", so it can be a program name with args.
3107 set dummy $ac_prog; ac_word=$2
3108 echo "$as_me:$LINENO: checking for $ac_word" >&5
3109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3110 if test "${ac_cv_prog_AWK+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 if test -n "$AWK"; then
3114 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_AWK="$ac_prog"
3124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3127 done
3128 done
3132 AWK=$ac_cv_prog_AWK
3133 if test -n "$AWK"; then
3134 echo "$as_me:$LINENO: result: $AWK" >&5
3135 echo "${ECHO_T}$AWK" >&6
3136 else
3137 echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6
3141 test -n "$AWK" && break
3142 done
3144 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3145 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 cat >conftest.make <<\_ACEOF
3151 all:
3152 @echo 'ac_maketemp="$(MAKE)"'
3153 _ACEOF
3154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3156 if test -n "$ac_maketemp"; then
3157 eval ac_cv_prog_make_${ac_make}_set=yes
3158 else
3159 eval ac_cv_prog_make_${ac_make}_set=no
3161 rm -f conftest.make
3163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3164 echo "$as_me:$LINENO: result: yes" >&5
3165 echo "${ECHO_T}yes" >&6
3166 SET_MAKE=
3167 else
3168 echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3170 SET_MAKE="MAKE=${MAKE-make}"
3173 rm -rf .tst 2>/dev/null
3174 mkdir .tst 2>/dev/null
3175 if test -d .tst; then
3176 am__leading_dot=.
3177 else
3178 am__leading_dot=_
3180 rmdir .tst 2>/dev/null
3182 DEPDIR="${am__leading_dot}deps"
3184 ac_config_commands="$ac_config_commands depfiles"
3187 am_make=${MAKE-make}
3188 cat > confinc << 'END'
3189 am__doit:
3190 @echo done
3191 .PHONY: am__doit
3193 # If we don't find an include directive, just comment out the code.
3194 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3195 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3196 am__include="#"
3197 am__quote=
3198 _am_result=none
3199 # First try GNU make style include.
3200 echo "include confinc" > confmf
3201 # We grep out `Entering directory' and `Leaving directory'
3202 # messages which can occur if `w' ends up in MAKEFLAGS.
3203 # In particular we don't look at `^make:' because GNU make might
3204 # be invoked under some other name (usually "gmake"), in which
3205 # case it prints its new name instead of `make'.
3206 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3207 am__include=include
3208 am__quote=
3209 _am_result=GNU
3211 # Now try BSD make style include.
3212 if test "$am__include" = "#"; then
3213 echo '.include "confinc"' > confmf
3214 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3215 am__include=.include
3216 am__quote="\""
3217 _am_result=BSD
3222 echo "$as_me:$LINENO: result: $_am_result" >&5
3223 echo "${ECHO_T}$_am_result" >&6
3224 rm -f confinc confmf
3226 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3227 if test "${enable_dependency_tracking+set}" = set; then
3228 enableval="$enable_dependency_tracking"
3231 if test "x$enable_dependency_tracking" != xno; then
3232 am_depcomp="$ac_aux_dir/depcomp"
3233 AMDEPBACKSLASH='\'
3237 if test "x$enable_dependency_tracking" != xno; then
3238 AMDEP_TRUE=
3239 AMDEP_FALSE='#'
3240 else
3241 AMDEP_TRUE='#'
3242 AMDEP_FALSE=
3247 # test to see if srcdir already configured
3248 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3249 test -f $srcdir/config.status; then
3250 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3251 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3252 { (exit 1); exit 1; }; }
3255 # test whether we have cygpath
3256 if test -z "$CYGPATH_W"; then
3257 if (cygpath --version) >/dev/null 2>/dev/null; then
3258 CYGPATH_W='cygpath -w'
3259 else
3260 CYGPATH_W=echo
3265 # Define the identity of the package.
3266 PACKAGE='libjava'
3267 VERSION='version-unused'
3270 cat >>confdefs.h <<_ACEOF
3271 #define PACKAGE "$PACKAGE"
3272 _ACEOF
3275 cat >>confdefs.h <<_ACEOF
3276 #define VERSION "$VERSION"
3277 _ACEOF
3279 # Some tools Automake needs.
3281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3295 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3297 # Installed binaries are usually stripped using `strip' when the user
3298 # run `make install-strip'. However `strip' might not be the right
3299 # tool to use in cross-compilation environments, therefore Automake
3300 # will honor the `STRIP' environment variable to overrule this program.
3301 if test "$cross_compiling" != no; then
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}strip; ac_word=$2
3305 echo "$as_me:$LINENO: checking for $ac_word" >&5
3306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307 if test "${ac_cv_prog_STRIP+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 if test -n "$STRIP"; then
3311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3324 done
3325 done
3329 STRIP=$ac_cv_prog_STRIP
3330 if test -n "$STRIP"; then
3331 echo "$as_me:$LINENO: result: $STRIP" >&5
3332 echo "${ECHO_T}$STRIP" >&6
3333 else
3334 echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3339 if test -z "$ac_cv_prog_STRIP"; then
3340 ac_ct_STRIP=$STRIP
3341 # Extract the first word of "strip", so it can be a program name with args.
3342 set dummy strip; ac_word=$2
3343 echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 if test -n "$ac_ct_STRIP"; then
3349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_ac_ct_STRIP="strip"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3362 done
3363 done
3365 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3369 if test -n "$ac_ct_STRIP"; then
3370 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3371 echo "${ECHO_T}$ac_ct_STRIP" >&6
3372 else
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3377 STRIP=$ac_ct_STRIP
3378 else
3379 STRIP="$ac_cv_prog_STRIP"
3383 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3385 # We need awk for the "check" target. The system "awk" is bad on
3386 # some platforms.
3387 # Always define AMTAR for backward compatibility.
3389 AMTAR=${AMTAR-"${am_missing_run}tar"}
3391 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3396 depcc="$CC" am_compiler_list=
3398 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3399 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3400 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3404 # We make a subdir and do the tests there. Otherwise we can end up
3405 # making bogus files that we don't know about and never remove. For
3406 # instance it was reported that on HP-UX the gcc test will end up
3407 # making a dummy file named `D' -- because `-MD' means `put the output
3408 # in D'.
3409 mkdir conftest.dir
3410 # Copy depcomp to subdir because otherwise we won't find it if we're
3411 # using a relative directory.
3412 cp "$am_depcomp" conftest.dir
3413 cd conftest.dir
3414 # We will build objects and dependencies in a subdirectory because
3415 # it helps to detect inapplicable dependency modes. For instance
3416 # both Tru64's cc and ICC support -MD to output dependencies as a
3417 # side effect of compilation, but ICC will put the dependencies in
3418 # the current directory while Tru64 will put them in the object
3419 # directory.
3420 mkdir sub
3422 am_cv_CC_dependencies_compiler_type=none
3423 if test "$am_compiler_list" = ""; then
3424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3426 for depmode in $am_compiler_list; do
3427 # Setup a source with many dependencies, because some compilers
3428 # like to wrap large dependency lists on column 80 (with \), and
3429 # we should not choose a depcomp mode which is confused by this.
3431 # We need to recreate these files for each test, as the compiler may
3432 # overwrite some of them when testing with obscure command lines.
3433 # This happens at least with the AIX C compiler.
3434 : > sub/conftest.c
3435 for i in 1 2 3 4 5 6; do
3436 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3437 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3438 # Solaris 8's {/usr,}/bin/sh.
3439 touch sub/conftst$i.h
3440 done
3441 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3443 case $depmode in
3444 nosideeffect)
3445 # after this tag, mechanisms are not by side-effect, so they'll
3446 # only be used when explicitly requested
3447 if test "x$enable_dependency_tracking" = xyes; then
3448 continue
3449 else
3450 break
3453 none) break ;;
3454 esac
3455 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3456 # mode. It turns out that the SunPro C++ compiler does not properly
3457 # handle `-M -o', and we need to detect this.
3458 if depmode=$depmode \
3459 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3460 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3461 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3462 >/dev/null 2>conftest.err &&
3463 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3464 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3465 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3466 # icc doesn't choke on unknown options, it will just issue warnings
3467 # or remarks (even with -Werror). So we grep stderr for any message
3468 # that says an option was ignored or not supported.
3469 # When given -MP, icc 7.0 and 7.1 complain thusly:
3470 # icc: Command line warning: ignoring option '-M'; no argument required
3471 # The diagnosis changed in icc 8.0:
3472 # icc: Command line remark: option '-MP' not supported
3473 if (grep 'ignoring option' conftest.err ||
3474 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3475 am_cv_CC_dependencies_compiler_type=$depmode
3476 break
3479 done
3481 cd ..
3482 rm -rf conftest.dir
3483 else
3484 am_cv_CC_dependencies_compiler_type=none
3488 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3489 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3490 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3495 test "x$enable_dependency_tracking" != xno \
3496 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3497 am__fastdepCC_TRUE=
3498 am__fastdepCC_FALSE='#'
3499 else
3500 am__fastdepCC_TRUE='#'
3501 am__fastdepCC_FALSE=
3505 depcc="$CXX" am_compiler_list=
3507 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3508 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3509 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3513 # We make a subdir and do the tests there. Otherwise we can end up
3514 # making bogus files that we don't know about and never remove. For
3515 # instance it was reported that on HP-UX the gcc test will end up
3516 # making a dummy file named `D' -- because `-MD' means `put the output
3517 # in D'.
3518 mkdir conftest.dir
3519 # Copy depcomp to subdir because otherwise we won't find it if we're
3520 # using a relative directory.
3521 cp "$am_depcomp" conftest.dir
3522 cd conftest.dir
3523 # We will build objects and dependencies in a subdirectory because
3524 # it helps to detect inapplicable dependency modes. For instance
3525 # both Tru64's cc and ICC support -MD to output dependencies as a
3526 # side effect of compilation, but ICC will put the dependencies in
3527 # the current directory while Tru64 will put them in the object
3528 # directory.
3529 mkdir sub
3531 am_cv_CXX_dependencies_compiler_type=none
3532 if test "$am_compiler_list" = ""; then
3533 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3535 for depmode in $am_compiler_list; do
3536 # Setup a source with many dependencies, because some compilers
3537 # like to wrap large dependency lists on column 80 (with \), and
3538 # we should not choose a depcomp mode which is confused by this.
3540 # We need to recreate these files for each test, as the compiler may
3541 # overwrite some of them when testing with obscure command lines.
3542 # This happens at least with the AIX C compiler.
3543 : > sub/conftest.c
3544 for i in 1 2 3 4 5 6; do
3545 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3546 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3547 # Solaris 8's {/usr,}/bin/sh.
3548 touch sub/conftst$i.h
3549 done
3550 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3552 case $depmode in
3553 nosideeffect)
3554 # after this tag, mechanisms are not by side-effect, so they'll
3555 # only be used when explicitly requested
3556 if test "x$enable_dependency_tracking" = xyes; then
3557 continue
3558 else
3559 break
3562 none) break ;;
3563 esac
3564 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3565 # mode. It turns out that the SunPro C++ compiler does not properly
3566 # handle `-M -o', and we need to detect this.
3567 if depmode=$depmode \
3568 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3569 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3570 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3571 >/dev/null 2>conftest.err &&
3572 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3573 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3574 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3575 # icc doesn't choke on unknown options, it will just issue warnings
3576 # or remarks (even with -Werror). So we grep stderr for any message
3577 # that says an option was ignored or not supported.
3578 # When given -MP, icc 7.0 and 7.1 complain thusly:
3579 # icc: Command line warning: ignoring option '-M'; no argument required
3580 # The diagnosis changed in icc 8.0:
3581 # icc: Command line remark: option '-MP' not supported
3582 if (grep 'ignoring option' conftest.err ||
3583 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3584 am_cv_CXX_dependencies_compiler_type=$depmode
3585 break
3588 done
3590 cd ..
3591 rm -rf conftest.dir
3592 else
3593 am_cv_CXX_dependencies_compiler_type=none
3597 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3598 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3599 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3604 test "x$enable_dependency_tracking" != xno \
3605 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3606 am__fastdepCXX_TRUE=
3607 am__fastdepCXX_FALSE='#'
3608 else
3609 am__fastdepCXX_TRUE='#'
3610 am__fastdepCXX_FALSE=
3616 if test -n "$ac_tool_prefix"; then
3617 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3618 set dummy ${ac_tool_prefix}as; ac_word=$2
3619 echo "$as_me:$LINENO: checking for $ac_word" >&5
3620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3621 if test "${ac_cv_prog_AS+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624 if test -n "$AS"; then
3625 ac_cv_prog_AS="$AS" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_AS="${ac_tool_prefix}as"
3635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3638 done
3639 done
3643 AS=$ac_cv_prog_AS
3644 if test -n "$AS"; then
3645 echo "$as_me:$LINENO: result: $AS" >&5
3646 echo "${ECHO_T}$AS" >&6
3647 else
3648 echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3653 if test -z "$ac_cv_prog_AS"; then
3654 ac_ct_AS=$AS
3655 # Extract the first word of "as", so it can be a program name with args.
3656 set dummy as; ac_word=$2
3657 echo "$as_me:$LINENO: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 if test -n "$ac_ct_AS"; then
3663 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_ac_ct_AS="as"
3673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3676 done
3677 done
3681 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3682 if test -n "$ac_ct_AS"; then
3683 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3684 echo "${ECHO_T}$ac_ct_AS" >&6
3685 else
3686 echo "$as_me:$LINENO: result: no" >&5
3687 echo "${ECHO_T}no" >&6
3690 AS=$ac_ct_AS
3691 else
3692 AS="$ac_cv_prog_AS"
3695 if test -n "$ac_tool_prefix"; then
3696 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3697 set dummy ${ac_tool_prefix}ar; ac_word=$2
3698 echo "$as_me:$LINENO: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700 if test "${ac_cv_prog_AR+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 if test -n "$AR"; then
3704 ac_cv_prog_AR="$AR" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_AR="${ac_tool_prefix}ar"
3714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3717 done
3718 done
3722 AR=$ac_cv_prog_AR
3723 if test -n "$AR"; then
3724 echo "$as_me:$LINENO: result: $AR" >&5
3725 echo "${ECHO_T}$AR" >&6
3726 else
3727 echo "$as_me:$LINENO: result: no" >&5
3728 echo "${ECHO_T}no" >&6
3732 if test -z "$ac_cv_prog_AR"; then
3733 ac_ct_AR=$AR
3734 # Extract the first word of "ar", so it can be a program name with args.
3735 set dummy ar; ac_word=$2
3736 echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 if test -n "$ac_ct_AR"; then
3742 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_ac_ct_AR="ar"
3752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3760 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3761 if test -n "$ac_ct_AR"; then
3762 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3763 echo "${ECHO_T}$ac_ct_AR" >&6
3764 else
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3769 AR=$ac_ct_AR
3770 else
3771 AR="$ac_cv_prog_AR"
3774 if test -n "$ac_tool_prefix"; then
3775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3776 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3777 echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3779 if test "${ac_cv_prog_RANLIB+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 if test -n "$RANLIB"; then
3783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3796 done
3797 done
3801 RANLIB=$ac_cv_prog_RANLIB
3802 if test -n "$RANLIB"; then
3803 echo "$as_me:$LINENO: result: $RANLIB" >&5
3804 echo "${ECHO_T}$RANLIB" >&6
3805 else
3806 echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6
3811 if test -z "$ac_cv_prog_RANLIB"; then
3812 ac_ct_RANLIB=$RANLIB
3813 # Extract the first word of "ranlib", so it can be a program name with args.
3814 set dummy ranlib; ac_word=$2
3815 echo "$as_me:$LINENO: checking for $ac_word" >&5
3816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3817 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820 if test -n "$ac_ct_RANLIB"; then
3821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3822 else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_ac_ct_RANLIB="ranlib"
3831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3834 done
3835 done
3837 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3840 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3841 if test -n "$ac_ct_RANLIB"; then
3842 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3843 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3844 else
3845 echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3849 RANLIB=$ac_ct_RANLIB
3850 else
3851 RANLIB="$ac_cv_prog_RANLIB"
3855 # Find a good install program. We prefer a C program (faster),
3856 # so one script is as good as another. But avoid the broken or
3857 # incompatible versions:
3858 # SysV /etc/install, /usr/sbin/install
3859 # SunOS /usr/etc/install
3860 # IRIX /sbin/install
3861 # AIX /bin/install
3862 # AmigaOS /C/install, which installs bootblocks on floppy discs
3863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3866 # OS/2's system install, which has a completely different semantic
3867 # ./install, which can be erroneously created by make from ./install.sh.
3868 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3869 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3870 if test -z "$INSTALL"; then
3871 if test "${ac_cv_path_install+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 # Account for people who put trailing slashes in PATH elements.
3880 case $as_dir/ in
3881 ./ | .// | /cC/* | \
3882 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3883 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3884 /usr/ucb/* ) ;;
3886 # OSF1 and SCO ODT 3.0 have their own names for install.
3887 # Don't use installbsd from OSF since it installs stuff as root
3888 # by default.
3889 for ac_prog in ginstall scoinst install; do
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3892 if test $ac_prog = install &&
3893 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3894 # AIX install. It has an incompatible calling convention.
3896 elif test $ac_prog = install &&
3897 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3898 # program-specific install script used by HP pwplus--don't use.
3900 else
3901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3902 break 3
3905 done
3906 done
3908 esac
3909 done
3913 if test "${ac_cv_path_install+set}" = set; then
3914 INSTALL=$ac_cv_path_install
3915 else
3916 # As a last resort, use the slow shell script. We don't cache a
3917 # path for INSTALL within a source directory, because that will
3918 # break other packages using the cache if that directory is
3919 # removed, or if the path is relative.
3920 INSTALL=$ac_install_sh
3923 echo "$as_me:$LINENO: result: $INSTALL" >&5
3924 echo "${ECHO_T}$INSTALL" >&6
3926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3927 # It thinks the first close brace ends the variable substitution.
3928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3935 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3936 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3937 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3938 if test "${enable_maintainer_mode+set}" = set; then
3939 enableval="$enable_maintainer_mode"
3940 USE_MAINTAINER_MODE=$enableval
3941 else
3942 USE_MAINTAINER_MODE=no
3944 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3945 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3948 if test $USE_MAINTAINER_MODE = yes; then
3949 MAINTAINER_MODE_TRUE=
3950 MAINTAINER_MODE_FALSE='#'
3951 else
3952 MAINTAINER_MODE_TRUE='#'
3953 MAINTAINER_MODE_FALSE=
3956 MAINT=$MAINTAINER_MODE_TRUE
3962 # configure.host sets the following important variables
3963 # libgcj_cflags - host specific C compiler flags
3964 # libgcj_cxxflags - host specific C++ compiler flags
3965 # libgcj_javaflags - host specific Java compiler flags
3967 libgcj_cflags=
3968 libgcj_cxxflags=
3969 libgcj_javaflags=
3971 . ${srcdir}/configure.host
3973 LIBGCJ_CFLAGS="${libgcj_cflags}"
3974 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3975 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3980 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3983 # Only use libltdl for non-newlib builds.
3984 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3985 case $enable_ltdl_convenience in
3986 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3987 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3988 { (exit 1); exit 1; }; } ;;
3989 "") enable_ltdl_convenience=yes
3990 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3991 esac
3992 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3993 INCLTDL='-I${top_srcdir}/''libltdl'
3996 DIRLTDL=libltdl
3998 cat >>confdefs.h <<\_ACEOF
3999 #define USE_LTDL 1
4000 _ACEOF
4002 # Sigh. Libtool's macro doesn't do the right thing.
4003 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4004 # FIXME: this is a hack.
4005 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4006 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4011 # Check whether --enable-shared or --disable-shared was given.
4012 if test "${enable_shared+set}" = set; then
4013 enableval="$enable_shared"
4014 p=${PACKAGE-default}
4015 case $enableval in
4016 yes) enable_shared=yes ;;
4017 no) enable_shared=no ;;
4019 enable_shared=no
4020 # Look at the argument we got. We use all the common list separators.
4021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4022 for pkg in $enableval; do
4023 if test "X$pkg" = "X$p"; then
4024 enable_shared=yes
4026 done
4027 IFS="$ac_save_ifs"
4029 esac
4030 else
4031 enable_shared=yes
4033 # Check whether --enable-static or --disable-static was given.
4034 if test "${enable_static+set}" = set; then
4035 enableval="$enable_static"
4036 p=${PACKAGE-default}
4037 case $enableval in
4038 yes) enable_static=yes ;;
4039 no) enable_static=no ;;
4041 enable_static=no
4042 # Look at the argument we got. We use all the common list separators.
4043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4044 for pkg in $enableval; do
4045 if test "X$pkg" = "X$p"; then
4046 enable_static=yes
4048 done
4049 IFS="$ac_save_ifs"
4051 esac
4052 else
4053 enable_static=yes
4055 # Check whether --enable-fast-install or --disable-fast-install was given.
4056 if test "${enable_fast_install+set}" = set; then
4057 enableval="$enable_fast_install"
4058 p=${PACKAGE-default}
4059 case $enableval in
4060 yes) enable_fast_install=yes ;;
4061 no) enable_fast_install=no ;;
4063 enable_fast_install=no
4064 # Look at the argument we got. We use all the common list separators.
4065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4066 for pkg in $enableval; do
4067 if test "X$pkg" = "X$p"; then
4068 enable_fast_install=yes
4070 done
4071 IFS="$ac_save_ifs"
4073 esac
4074 else
4075 enable_fast_install=yes
4078 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4079 if test "${with_gnu_ld+set}" = set; then
4080 withval="$with_gnu_ld"
4081 test "$withval" = no || with_gnu_ld=yes
4082 else
4083 with_gnu_ld=no
4085 ac_prog=ld
4086 if test "$GCC" = yes; then
4087 # Check if gcc -print-prog-name=ld gives a path.
4088 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4089 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4090 case $host in
4091 *-*-mingw*)
4092 # gcc leaves a trailing carriage return which upsets mingw
4093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4096 esac
4097 case $ac_prog in
4098 # Accept absolute paths.
4099 [\\/]* | [A-Za-z]:[\\/]*)
4100 re_direlt='/[^/][^/]*/\.\./'
4101 # Canonicalize the path of ld
4102 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4103 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4104 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4105 done
4106 test -z "$LD" && LD="$ac_prog"
4109 # If it fails, then pretend we aren't using GCC.
4110 ac_prog=ld
4113 # If it is relative, then search for the first ld in PATH.
4114 with_gnu_ld=unknown
4116 esac
4117 elif test "$with_gnu_ld" = yes; then
4118 echo "$as_me:$LINENO: checking for GNU ld" >&5
4119 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4120 else
4121 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4122 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4124 if test "${lt_cv_path_LD+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 if test -z "$LD"; then
4128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4129 for ac_dir in $PATH; do
4130 test -z "$ac_dir" && ac_dir=.
4131 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4132 lt_cv_path_LD="$ac_dir/$ac_prog"
4133 # Check to see if the program is GNU ld. I'd rather use --version,
4134 # but apparently some GNU ld's only accept -v.
4135 # Break only if it was the GNU/non-GNU ld that we prefer.
4136 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4137 test "$with_gnu_ld" != no && break
4138 else
4139 test "$with_gnu_ld" != yes && break
4142 done
4143 IFS="$ac_save_ifs"
4144 else
4145 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4149 LD="$lt_cv_path_LD"
4150 if test -n "$LD"; then
4151 echo "$as_me:$LINENO: result: $LD" >&5
4152 echo "${ECHO_T}$LD" >&6
4153 else
4154 echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4159 { (exit 1); exit 1; }; }
4160 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4162 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4166 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4167 lt_cv_prog_gnu_ld=yes
4168 else
4169 lt_cv_prog_gnu_ld=no
4172 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4173 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4174 with_gnu_ld=$lt_cv_prog_gnu_ld
4177 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4178 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4179 if test "${lt_cv_ld_reload_flag+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 lt_cv_ld_reload_flag='-r'
4184 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4185 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4186 reload_flag=$lt_cv_ld_reload_flag
4187 test -n "$reload_flag" && reload_flag=" $reload_flag"
4189 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4190 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4191 if test "${lt_cv_path_NM+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 if test -n "$NM"; then
4195 # Let the user override the test.
4196 lt_cv_path_NM="$NM"
4197 else
4198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4199 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4200 test -z "$ac_dir" && ac_dir=.
4201 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4202 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4203 # Check to see if the nm accepts a BSD-compat flag.
4204 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4205 # nm: unknown option "B" ignored
4206 # Tru64's nm complains that /dev/null is an invalid object file
4207 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4208 lt_cv_path_NM="$tmp_nm -B"
4209 break
4210 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4211 lt_cv_path_NM="$tmp_nm -p"
4212 break
4213 else
4214 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4215 continue # so that we can try to find one that supports BSD flags
4218 done
4219 IFS="$ac_save_ifs"
4220 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4224 NM="$lt_cv_path_NM"
4225 echo "$as_me:$LINENO: result: $NM" >&5
4226 echo "${ECHO_T}$NM" >&6
4228 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4229 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4230 if test "${lt_cv_deplibs_check_method+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 lt_cv_file_magic_cmd='$MAGIC_CMD'
4234 lt_cv_file_magic_test_file=
4235 lt_cv_deplibs_check_method='unknown'
4236 # Need to set the preceding variable on all platforms that support
4237 # interlibrary dependencies.
4238 # 'none' -- dependencies not supported.
4239 # `unknown' -- same as none, but documents that we really don't know.
4240 # 'pass_all' -- all dependencies passed with no checks.
4241 # 'test_compile' -- check by making test program.
4242 # 'file_magic [regex]' -- check by looking for files in library path
4243 # which responds to the $file_magic_cmd with a given egrep regex.
4244 # If you have `file' or equivalent on your system and you're not sure
4245 # whether `pass_all' will *always* work, you probably want this one.
4247 case $host_os in
4248 aix*)
4249 lt_cv_deplibs_check_method=pass_all
4252 beos*)
4253 lt_cv_deplibs_check_method=pass_all
4256 bsdi4*)
4257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4258 lt_cv_file_magic_cmd='/usr/bin/file -L'
4259 lt_cv_file_magic_test_file=/shlib/libc.so
4262 cygwin* | mingw* |pw32*)
4263 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4264 lt_cv_file_magic_cmd='$OBJDUMP -f'
4267 darwin* | rhapsody*)
4268 # this will be overwritten by pass_all, but leave it in just in case
4269 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4270 lt_cv_file_magic_cmd='/usr/bin/file -L'
4271 case "$host_os" in
4272 rhapsody* | darwin1.012)
4273 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4275 *) # Darwin 1.3 on
4276 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4278 esac
4279 lt_cv_deplibs_check_method=pass_all
4282 freebsd* | kfreebsd*-gnu)
4283 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4284 case $host_cpu in
4285 i*86 )
4286 # Not sure whether the presence of OpenBSD here was a mistake.
4287 # Let's accept both of them until this is cleared up.
4288 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4289 lt_cv_file_magic_cmd=/usr/bin/file
4290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4292 esac
4293 else
4294 lt_cv_deplibs_check_method=pass_all
4298 gnu*)
4299 lt_cv_deplibs_check_method=pass_all
4302 hpux10.20*|hpux11*)
4303 case $host_cpu in
4304 hppa*)
4305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4306 lt_cv_file_magic_cmd=/usr/bin/file
4307 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4309 ia64*)
4310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4311 lt_cv_file_magic_cmd=/usr/bin/file
4312 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4314 esac
4317 irix5* | irix6*)
4318 case $host_os in
4319 irix5*)
4320 # this will be overridden with pass_all, but let us keep it just in case
4321 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4324 case $LD in
4325 *-32|*"-32 ") libmagic=32-bit;;
4326 *-n32|*"-n32 ") libmagic=N32;;
4327 *-64|*"-64 ") libmagic=64-bit;;
4328 *) libmagic=never-match;;
4329 esac
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 ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4333 esac
4334 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4335 lt_cv_deplibs_check_method=pass_all
4338 # This must be Linux ELF.
4339 linux-gnu*)
4340 case $host_cpu in
4341 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4342 lt_cv_deplibs_check_method=pass_all ;;
4344 # glibc up to 2.1.1 does not perform some relocations on ARM
4345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4346 esac
4347 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4350 netbsd* | knetbsd*-gnu)
4351 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4352 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4353 else
4354 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4358 newsos6)
4359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4360 lt_cv_file_magic_cmd=/usr/bin/file
4361 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4364 osf3* | osf4* | osf5*)
4365 # this will be overridden with pass_all, but let us keep it just in case
4366 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4367 lt_cv_file_magic_test_file=/shlib/libc.so
4368 lt_cv_deplibs_check_method=pass_all
4371 sco3.2v5*)
4372 lt_cv_deplibs_check_method=pass_all
4375 solaris*)
4376 lt_cv_deplibs_check_method=pass_all
4377 lt_cv_file_magic_test_file=/lib/libc.so
4380 sysv5uw[78]* | sysv4*uw2*)
4381 lt_cv_deplibs_check_method=pass_all
4384 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4385 case $host_vendor in
4386 ncr)
4387 lt_cv_deplibs_check_method=pass_all
4389 motorola)
4390 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]'
4391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4393 esac
4395 esac
4398 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4399 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4400 file_magic_cmd=$lt_cv_file_magic_cmd
4401 deplibs_check_method=$lt_cv_deplibs_check_method
4406 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4408 # Only perform the check for file, if the check method requires it
4409 case $deplibs_check_method in
4410 file_magic*)
4411 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4412 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4413 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4414 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 case $MAGIC_CMD in
4419 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4421 ?:/*)
4422 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4425 ac_save_MAGIC_CMD="$MAGIC_CMD"
4426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4427 ac_dummy="/usr/bin:$PATH"
4428 for ac_dir in $ac_dummy; do
4429 test -z "$ac_dir" && ac_dir=.
4430 if test -f $ac_dir/${ac_tool_prefix}file; then
4431 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4432 if test -n "$file_magic_test_file"; then
4433 case $deplibs_check_method in
4434 "file_magic "*)
4435 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4438 egrep "$file_magic_regex" > /dev/null; then
4440 else
4441 cat <<EOF 1>&2
4443 *** Warning: the command libtool uses to detect shared libraries,
4444 *** $file_magic_cmd, produces output that libtool cannot recognize.
4445 *** The result is that libtool may fail to recognize shared libraries
4446 *** as such. This will affect the creation of libtool libraries that
4447 *** depend on shared libraries, but programs linked with such libtool
4448 *** libraries will work regardless of this problem. Nevertheless, you
4449 *** may want to report the problem to your system manager and/or to
4450 *** bug-libtool@gnu.org
4453 fi ;;
4454 esac
4456 break
4458 done
4459 IFS="$ac_save_ifs"
4460 MAGIC_CMD="$ac_save_MAGIC_CMD"
4462 esac
4465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4466 if test -n "$MAGIC_CMD"; then
4467 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4468 echo "${ECHO_T}$MAGIC_CMD" >&6
4469 else
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4474 if test -z "$lt_cv_path_MAGIC_CMD"; then
4475 if test -n "$ac_tool_prefix"; then
4476 echo "$as_me:$LINENO: checking for file" >&5
4477 echo $ECHO_N "checking for file... $ECHO_C" >&6
4478 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 case $MAGIC_CMD in
4483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4485 ?:/*)
4486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4489 ac_save_MAGIC_CMD="$MAGIC_CMD"
4490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4491 ac_dummy="/usr/bin:$PATH"
4492 for ac_dir in $ac_dummy; do
4493 test -z "$ac_dir" && ac_dir=.
4494 if test -f $ac_dir/file; then
4495 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4496 if test -n "$file_magic_test_file"; then
4497 case $deplibs_check_method in
4498 "file_magic "*)
4499 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4502 egrep "$file_magic_regex" > /dev/null; then
4504 else
4505 cat <<EOF 1>&2
4507 *** Warning: the command libtool uses to detect shared libraries,
4508 *** $file_magic_cmd, produces output that libtool cannot recognize.
4509 *** The result is that libtool may fail to recognize shared libraries
4510 *** as such. This will affect the creation of libtool libraries that
4511 *** depend on shared libraries, but programs linked with such libtool
4512 *** libraries will work regardless of this problem. Nevertheless, you
4513 *** may want to report the problem to your system manager and/or to
4514 *** bug-libtool@gnu.org
4517 fi ;;
4518 esac
4520 break
4522 done
4523 IFS="$ac_save_ifs"
4524 MAGIC_CMD="$ac_save_MAGIC_CMD"
4526 esac
4529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4530 if test -n "$MAGIC_CMD"; then
4531 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4532 echo "${ECHO_T}$MAGIC_CMD" >&6
4533 else
4534 echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4538 else
4539 MAGIC_CMD=:
4545 esac
4547 if test -n "$ac_tool_prefix"; then
4548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4549 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_prog_RANLIB+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 if test -n "$RANLIB"; then
4556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4569 done
4570 done
4574 RANLIB=$ac_cv_prog_RANLIB
4575 if test -n "$RANLIB"; then
4576 echo "$as_me:$LINENO: result: $RANLIB" >&5
4577 echo "${ECHO_T}$RANLIB" >&6
4578 else
4579 echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4584 if test -z "$ac_cv_prog_RANLIB"; then
4585 ac_ct_RANLIB=$RANLIB
4586 # Extract the first word of "ranlib", so it can be a program name with args.
4587 set dummy ranlib; ac_word=$2
4588 echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4590 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593 if test -n "$ac_ct_RANLIB"; then
4594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_prog_ac_ct_RANLIB="ranlib"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4607 done
4608 done
4610 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4613 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4614 if test -n "$ac_ct_RANLIB"; then
4615 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4616 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4617 else
4618 echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4622 RANLIB=$ac_ct_RANLIB
4623 else
4624 RANLIB="$ac_cv_prog_RANLIB"
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}strip; ac_word=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_prog_STRIP+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$STRIP"; then
4636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4654 STRIP=$ac_cv_prog_STRIP
4655 if test -n "$STRIP"; then
4656 echo "$as_me:$LINENO: result: $STRIP" >&5
4657 echo "${ECHO_T}$STRIP" >&6
4658 else
4659 echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4664 if test -z "$ac_cv_prog_STRIP"; then
4665 ac_ct_STRIP=$STRIP
4666 # Extract the first word of "strip", so it can be a program name with args.
4667 set dummy strip; ac_word=$2
4668 echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4670 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673 if test -n "$ac_ct_STRIP"; then
4674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4683 ac_cv_prog_ac_ct_STRIP="strip"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4687 done
4688 done
4690 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4694 if test -n "$ac_ct_STRIP"; then
4695 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4696 echo "${ECHO_T}$ac_ct_STRIP" >&6
4697 else
4698 echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6
4702 STRIP=$ac_ct_STRIP
4703 else
4704 STRIP="$ac_cv_prog_STRIP"
4708 # Check for any special flags to pass to ltconfig.
4709 libtool_flags="--cache-file=$cache_file"
4710 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4711 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4712 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4713 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4714 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4717 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4718 if test "${enable_libtool_lock+set}" = set; then
4719 enableval="$enable_libtool_lock"
4722 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4723 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4726 # Check whether --with-pic or --without-pic was given.
4727 if test "${with_pic+set}" = set; then
4728 withval="$with_pic"
4729 pic_mode="$withval"
4730 else
4731 pic_mode=default
4733 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4734 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4736 # Some flags need to be propagated to the compiler or linker for good
4737 # libtool support.
4738 case $host in
4739 *-*-irix6*)
4740 # Find out which ABI we are using.
4741 echo '#line 4741 "configure"' > conftest.$ac_ext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; then
4747 if test "$lt_cv_prog_gnu_ld" = yes; then
4748 case `/usr/bin/file conftest.$ac_objext` in
4749 *32-bit*)
4750 LD="${LD-ld} -melf32bsmip"
4752 *N32*)
4753 LD="${LD-ld} -melf32bmipn32"
4755 *64-bit*)
4756 LD="${LD-ld} -melf64bmip"
4758 esac
4759 else
4760 case `/usr/bin/file conftest.$ac_objext` in
4761 *32-bit*)
4762 LD="${LD-ld} -32"
4764 *N32*)
4765 LD="${LD-ld} -n32"
4767 *64-bit*)
4768 LD="${LD-ld} -64"
4770 esac
4773 rm -rf conftest*
4776 ia64-*-hpux*)
4777 # Find out which ABI we are using.
4778 echo 'int i;' > conftest.$ac_ext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780 (eval $ac_compile) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; then
4784 case "`/usr/bin/file conftest.o`" in
4785 *ELF-32*)
4786 HPUX_IA64_MODE="32"
4788 *ELF-64*)
4789 HPUX_IA64_MODE="64"
4791 esac
4793 rm -rf conftest*
4796 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4797 # Find out which ABI we are using.
4798 echo 'int i;' > conftest.$ac_ext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; then
4804 case "`/usr/bin/file conftest.o`" in
4805 *32-bit*)
4806 case $host in
4807 x86_64-*linux*)
4808 LD="${LD-ld} -m elf_i386"
4810 ppc64-*linux*|powerpc64-*linux*)
4811 LD="${LD-ld} -m elf32ppclinux"
4813 s390x-*linux*)
4814 LD="${LD-ld} -m elf_s390"
4816 sparc64-*linux*)
4817 LD="${LD-ld} -m elf32_sparc"
4819 esac
4821 *64-bit*)
4822 case $host in
4823 x86_64-*linux*)
4824 LD="${LD-ld} -m elf_x86_64"
4826 ppc*-*linux*|powerpc*-*linux*)
4827 LD="${LD-ld} -m elf64ppc"
4829 s390*-*linux*)
4830 LD="${LD-ld} -m elf64_s390"
4832 sparc*-*linux*)
4833 LD="${LD-ld} -m elf64_sparc"
4835 esac
4837 esac
4839 rm -rf conftest*
4842 *-*-sco3.2v5*)
4843 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4844 SAVE_CFLAGS="$CFLAGS"
4845 CFLAGS="$CFLAGS -belf"
4846 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4847 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4848 if test "${lt_cv_cc_needs_belf+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 if test x$gcc_no_link = xyes; then
4860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4862 { (exit 1); exit 1; }; }
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4872 main ()
4876 return 0;
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881 (eval $ac_link) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 lt_cv_cc_needs_belf=yes
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 lt_cv_cc_needs_belf=no
4907 rm -f conftest.err conftest.$ac_objext \
4908 conftest$ac_exeext conftest.$ac_ext
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4917 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4918 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4919 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4920 CFLAGS="$SAVE_CFLAGS"
4925 esac
4928 # Save cache, so that ltconfig can load it
4929 cat >confcache <<\_ACEOF
4930 # This file is a shell script that caches the results of configure
4931 # tests run on this system so they can be shared between configure
4932 # scripts and configure runs, see configure's option --config-cache.
4933 # It is not useful on other systems. If it contains results you don't
4934 # want to keep, you may remove or edit it.
4936 # config.status only pays attention to the cache file if you give it
4937 # the --recheck option to rerun configure.
4939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4941 # following values.
4943 _ACEOF
4945 # The following way of writing the cache mishandles newlines in values,
4946 # but we know of no workaround that is simple, portable, and efficient.
4947 # So, don't put newlines in cache variables' values.
4948 # Ultrix sh set writes to stderr and can't be redirected directly,
4949 # and sets the high bit in the cache file unless we assign to the vars.
4951 (set) 2>&1 |
4952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4953 *ac_space=\ *)
4954 # `set' does not quote correctly, so add quotes (double-quote
4955 # substitution turns \\\\ into \\, and sed turns \\ into \).
4956 sed -n \
4957 "s/'/'\\\\''/g;
4958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4961 # `set' quotes correctly as required by POSIX, so do not add quotes.
4962 sed -n \
4963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4965 esac;
4967 sed '
4968 t clear
4969 : clear
4970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4971 t end
4972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4973 : end' >>confcache
4974 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4975 if test -w $cache_file; then
4976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4977 cat confcache >$cache_file
4978 else
4979 echo "not updating unwritable cache $cache_file"
4982 rm -f confcache
4984 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4985 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4986 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4987 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4988 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4989 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4990 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4991 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4992 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4993 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4994 echo "$as_me: error: libtool configure failed" >&2;}
4995 { (exit 1); exit 1; }; }
4997 # Reload cache, that may have been modified by ltconfig
4998 if test -r "$cache_file"; then
4999 # Some versions of bash will fail to source /dev/null (special
5000 # files actually), so we avoid doing that.
5001 if test -f "$cache_file"; then
5002 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5003 echo "$as_me: loading cache $cache_file" >&6;}
5004 case $cache_file in
5005 [\\/]* | ?:[\\/]* ) . $cache_file;;
5006 *) . ./$cache_file;;
5007 esac
5009 else
5010 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5011 echo "$as_me: creating cache $cache_file" >&6;}
5012 >$cache_file
5016 # This can be used to rebuild libtool when needed
5017 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5019 # Always use our own libtool.
5020 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5022 # Redirect the config.log output again, so that the ltconfig log is not
5023 # clobbered by the next message.
5024 exec 5>>./config.log
5026 ac_ext=cc
5027 ac_cpp='$CXXCPP $CPPFLAGS'
5028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5031 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5032 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5033 if test -z "$CXXCPP"; then
5034 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 # Double quotes because CXXCPP needs to be expanded
5038 for CXXCPP in "$CXX -E" "/lib/cpp"
5040 ac_preproc_ok=false
5041 for ac_cxx_preproc_warn_flag in '' yes
5043 # Use a header file that comes with gcc, so configuring glibc
5044 # with a fresh cross-compiler works.
5045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 # <limits.h> exists even on freestanding compilers.
5047 # On the NeXT, cc -E runs the code through the compiler's parser,
5048 # not just through cpp. "Syntax error" is here to catch this case.
5049 cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h. */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 #ifdef __STDC__
5056 # include <limits.h>
5057 #else
5058 # include <assert.h>
5059 #endif
5060 Syntax error
5061 _ACEOF
5062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev/null; then
5070 if test -s conftest.err; then
5071 ac_cpp_err=$ac_cxx_preproc_warn_flag
5072 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5073 else
5074 ac_cpp_err=
5076 else
5077 ac_cpp_err=yes
5079 if test -z "$ac_cpp_err"; then
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5085 # Broken: fails on valid input.
5086 continue
5088 rm -f conftest.err conftest.$ac_ext
5090 # OK, works on sane cases. Now check whether non-existent headers
5091 # can be detected and how.
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 #include <ac_nonexistent.h>
5099 _ACEOF
5100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null; then
5108 if test -s conftest.err; then
5109 ac_cpp_err=$ac_cxx_preproc_warn_flag
5110 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5111 else
5112 ac_cpp_err=
5114 else
5115 ac_cpp_err=yes
5117 if test -z "$ac_cpp_err"; then
5118 # Broken: success on invalid input.
5119 continue
5120 else
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5124 # Passes both tests.
5125 ac_preproc_ok=:
5126 break
5128 rm -f conftest.err conftest.$ac_ext
5130 done
5131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132 rm -f conftest.err conftest.$ac_ext
5133 if $ac_preproc_ok; then
5134 break
5137 done
5138 ac_cv_prog_CXXCPP=$CXXCPP
5141 CXXCPP=$ac_cv_prog_CXXCPP
5142 else
5143 ac_cv_prog_CXXCPP=$CXXCPP
5145 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5146 echo "${ECHO_T}$CXXCPP" >&6
5147 ac_preproc_ok=false
5148 for ac_cxx_preproc_warn_flag in '' yes
5150 # Use a header file that comes with gcc, so configuring glibc
5151 # with a fresh cross-compiler works.
5152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5153 # <limits.h> exists even on freestanding compilers.
5154 # On the NeXT, cc -E runs the code through the compiler's parser,
5155 # not just through cpp. "Syntax error" is here to catch this case.
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #ifdef __STDC__
5163 # include <limits.h>
5164 #else
5165 # include <assert.h>
5166 #endif
5167 Syntax error
5168 _ACEOF
5169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null; then
5177 if test -s conftest.err; then
5178 ac_cpp_err=$ac_cxx_preproc_warn_flag
5179 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5180 else
5181 ac_cpp_err=
5183 else
5184 ac_cpp_err=yes
5186 if test -z "$ac_cpp_err"; then
5188 else
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 # Broken: fails on valid input.
5193 continue
5195 rm -f conftest.err conftest.$ac_ext
5197 # OK, works on sane cases. Now check whether non-existent headers
5198 # can be detected and how.
5199 cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h. */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 #include <ac_nonexistent.h>
5206 _ACEOF
5207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } >/dev/null; then
5215 if test -s conftest.err; then
5216 ac_cpp_err=$ac_cxx_preproc_warn_flag
5217 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5218 else
5219 ac_cpp_err=
5221 else
5222 ac_cpp_err=yes
5224 if test -z "$ac_cpp_err"; then
5225 # Broken: success on invalid input.
5226 continue
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 # Passes both tests.
5232 ac_preproc_ok=:
5233 break
5235 rm -f conftest.err conftest.$ac_ext
5237 done
5238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239 rm -f conftest.err conftest.$ac_ext
5240 if $ac_preproc_ok; then
5242 else
5243 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5244 See \`config.log' for more details." >&5
5245 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5246 See \`config.log' for more details." >&2;}
5247 { (exit 1); exit 1; }; }
5250 ac_ext=c
5251 ac_cpp='$CPP $CPPFLAGS'
5252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5259 lt_save_CC="$CC"
5260 lt_save_CFLAGS="$CFLAGS"
5261 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5262 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5263 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5264 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5265 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5266 deplibs_check_method="$deplibs_check_method" \
5267 file_magic_cmd="$file_magic_cmd" \
5268 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5269 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5270 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5271 echo "$as_me: error: libtool tag configuration failed" >&2;}
5272 { (exit 1); exit 1; }; }
5273 CC="$lt_save_CC"
5274 CFLAGS="$lt_save_CFLAGS"
5276 # Redirect the config.log output again, so that the ltconfig log is not
5277 # clobbered by the next message.
5278 exec 5>>./config.log
5286 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
5288 # Extract the first word of "$ac_prog", so it can be a program name with args.
5289 set dummy $ac_prog; ac_word=$2
5290 echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292 if test "${ac_cv_prog_GCJ+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 if test -n "$GCJ"; then
5296 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_GCJ="$ac_prog"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5309 done
5310 done
5314 GCJ=$ac_cv_prog_GCJ
5315 if test -n "$GCJ"; then
5316 echo "$as_me:$LINENO: result: $GCJ" >&5
5317 echo "${ECHO_T}$GCJ" >&6
5318 else
5319 echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6
5323 test -n "$GCJ" && break
5324 done
5325 test -n "$GCJ" || GCJ="gcj"
5327 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5328 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5329 { (exit 1); exit 1; }; }
5330 if test "x${GCJFLAGS-unset}" = xunset; then
5331 GCJFLAGS="-g -O2"
5335 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5337 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5338 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5339 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5343 # We make a subdir and do the tests there. Otherwise we can end up
5344 # making bogus files that we don't know about and never remove. For
5345 # instance it was reported that on HP-UX the gcc test will end up
5346 # making a dummy file named `D' -- because `-MD' means `put the output
5347 # in D'.
5348 mkdir conftest.dir
5349 # Copy depcomp to subdir because otherwise we won't find it if we're
5350 # using a relative directory.
5351 cp "$am_depcomp" conftest.dir
5352 cd conftest.dir
5353 # We will build objects and dependencies in a subdirectory because
5354 # it helps to detect inapplicable dependency modes. For instance
5355 # both Tru64's cc and ICC support -MD to output dependencies as a
5356 # side effect of compilation, but ICC will put the dependencies in
5357 # the current directory while Tru64 will put them in the object
5358 # directory.
5359 mkdir sub
5361 am_cv_GCJ_dependencies_compiler_type=none
5362 if test "$am_compiler_list" = ""; then
5363 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5365 for depmode in $am_compiler_list; do
5366 # Setup a source with many dependencies, because some compilers
5367 # like to wrap large dependency lists on column 80 (with \), and
5368 # we should not choose a depcomp mode which is confused by this.
5370 # We need to recreate these files for each test, as the compiler may
5371 # overwrite some of them when testing with obscure command lines.
5372 # This happens at least with the AIX C compiler.
5373 : > sub/conftest.c
5374 for i in 1 2 3 4 5 6; do
5375 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5376 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5377 # Solaris 8's {/usr,}/bin/sh.
5378 touch sub/conftst$i.h
5379 done
5380 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5382 case $depmode in
5383 nosideeffect)
5384 # after this tag, mechanisms are not by side-effect, so they'll
5385 # only be used when explicitly requested
5386 if test "x$enable_dependency_tracking" = xyes; then
5387 continue
5388 else
5389 break
5392 none) break ;;
5393 esac
5394 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5395 # mode. It turns out that the SunPro C++ compiler does not properly
5396 # handle `-M -o', and we need to detect this.
5397 if depmode=$depmode \
5398 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5399 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5400 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5401 >/dev/null 2>conftest.err &&
5402 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5403 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5404 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5405 # icc doesn't choke on unknown options, it will just issue warnings
5406 # or remarks (even with -Werror). So we grep stderr for any message
5407 # that says an option was ignored or not supported.
5408 # When given -MP, icc 7.0 and 7.1 complain thusly:
5409 # icc: Command line warning: ignoring option '-M'; no argument required
5410 # The diagnosis changed in icc 8.0:
5411 # icc: Command line remark: option '-MP' not supported
5412 if (grep 'ignoring option' conftest.err ||
5413 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5414 am_cv_GCJ_dependencies_compiler_type=$depmode
5415 break
5418 done
5420 cd ..
5421 rm -rf conftest.dir
5422 else
5423 am_cv_GCJ_dependencies_compiler_type=none
5427 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5428 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5429 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5434 test "x$enable_dependency_tracking" != xno \
5435 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5436 am__fastdepGCJ_TRUE=
5437 am__fastdepGCJ_FALSE='#'
5438 else
5439 am__fastdepGCJ_TRUE='#'
5440 am__fastdepGCJ_FALSE=
5446 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5447 lt_save_CC="$CC"
5448 lt_save_CFLAGS="$CFLAGS"
5449 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5450 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5451 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5452 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5453 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5454 deplibs_check_method="$deplibs_check_method" \
5455 file_magic_cmd="$file_magic_cmd" \
5456 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5457 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5458 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5459 echo "$as_me: error: libtool tag configuration failed" >&2;}
5460 { (exit 1); exit 1; }; }
5461 CC="$lt_save_CC"
5462 CFLAGS="$lt_save_CFLAGS"
5464 # Redirect the config.log output again, so that the ltconfig log is not
5465 # clobbered by the next message.
5466 exec 5>>./config.log
5470 if test "x$CC" != xcc; then
5471 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5472 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5473 else
5474 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5475 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5477 set dummy $CC; ac_cc=`echo $2 |
5478 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5479 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5490 main ()
5494 return 0;
5496 _ACEOF
5497 # Make sure it works both with $CC and with simple cc.
5498 # We do the test twice because some compilers refuse to overwrite an
5499 # existing .o file with -o, though they will create one.
5500 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5501 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 (eval $ac_try) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); };
5511 then
5512 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5513 if test "x$CC" != xcc; then
5514 # Test first that cc exists at all.
5515 if { ac_try='cc -c conftest.$ac_ext >&5'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5522 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); };
5532 then
5533 # cc works too.
5535 else
5536 # cc exists but doesn't like -o.
5537 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5541 else
5542 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5544 rm -f conftest*
5547 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549 echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6
5554 cat >>confdefs.h <<\_ACEOF
5555 #define NO_MINUS_C_MINUS_O 1
5556 _ACEOF
5560 # FIXME: we rely on the cache variable name because
5561 # there is no other way.
5562 set dummy $CC
5563 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5564 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5565 # Losing compiler, so override with the script.
5566 # FIXME: It is wrong to rewrite CC.
5567 # But if we don't then we get into trouble of one sort or another.
5568 # A longer-term fix would be to have automake use am__CC in this case,
5569 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5570 CC="$am_aux_dir/compile $CC"
5575 subdirs="$subdirs libltdl"
5578 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5579 COMPPATH=.
5580 else
5581 COMPPATH=..
5585 # The -no-testsuite modules omit the test subdir.
5588 if test -d $srcdir/testsuite; then
5589 TESTSUBDIR_TRUE=
5590 TESTSUBDIR_FALSE='#'
5591 else
5592 TESTSUBDIR_TRUE='#'
5593 TESTSUBDIR_FALSE=
5597 # Should the runtime set system properties by examining the
5598 # environment variable GCJ_PROPERTIES?
5599 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5600 if test "${enable_getenv_properties+set}" = set; then
5601 enableval="$enable_getenv_properties"
5605 # Whether GCJ_PROPERTIES is used depends on the target.
5606 if test -z "$enable_getenv_properties"; then
5607 enable_getenv_properties=${enable_getenv_properties_default-yes}
5609 if test "$enable_getenv_properties" = no; then
5611 cat >>confdefs.h <<\_ACEOF
5612 #define DISABLE_GETENV_PROPERTIES 1
5613 _ACEOF
5617 # Whether we should use arguments to main()
5618 if test -z "$enable_main_args"; then
5619 enable_main_args=${enable_main_args_default-yes}
5621 if test "$enable_main_args" = no; then
5623 cat >>confdefs.h <<\_ACEOF
5624 #define DISABLE_MAIN_ARGS 1
5625 _ACEOF
5630 # Should we use hashtable-based synchronization?
5631 # Currently works only for Linux X86/ia64
5632 # Typically faster and more space-efficient
5633 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5634 if test "${enable_hash_synchronization+set}" = set; then
5635 enableval="$enable_hash_synchronization"
5639 if test -z "$enable_hash_synchronization"; then
5640 enable_hash_synchronization=$enable_hash_synchronization_default
5643 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5644 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5645 if test "${enable_libgcj_multifile+set}" = set; then
5646 enableval="$enable_libgcj_multifile"
5647 case "${enableval}" in
5648 yes) enable_libgcj_multifile=yes ;;
5649 no) enable_libgcj_multifile=no ;;
5650 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5651 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5652 { (exit 1); exit 1; }; } ;;
5653 esac
5654 else
5655 enable_libgcj_multifile=no
5659 if test "$enable_libgcj_multifile" = yes; then
5660 ONESTEP_TRUE=
5661 ONESTEP_FALSE='#'
5662 else
5663 ONESTEP_TRUE='#'
5664 ONESTEP_FALSE=
5668 # What is the native OS API for MinGW?
5670 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5671 if test "${with_win32_nlsapi+set}" = set; then
5672 withval="$with_win32_nlsapi"
5673 case "${withval}" in
5674 ansi) with_win32_nlsapi=ansi ;;
5675 unicows) with_win32_nlsapi=unicows ;;
5676 unicode) with_win32_nlsapi=unicode ;;
5677 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5678 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5679 { (exit 1); exit 1; }; } ;;
5680 esac
5681 else
5682 with_win32_nlsapi=ansi
5685 case "${with_win32_nlsapi}" in
5686 unicows | unicode)
5688 cat >>confdefs.h <<\_ACEOF
5689 #define MINGW_LIBGCJ_UNICODE 1
5690 _ACEOF
5693 esac
5695 # configure.host sets slow_pthread_self if the synchronization code should
5696 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5697 if test "${slow_pthread_self}" = "yes"; then
5699 cat >>confdefs.h <<\_ACEOF
5700 #define SLOW_PTHREAD_SELF 1
5701 _ACEOF
5706 # See if the user has requested runtime debugging.
5707 LIBGCJDEBUG="false"
5709 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5710 if test "${enable_libgcj_debug+set}" = set; then
5711 enableval="$enable_libgcj_debug"
5712 if test "$enable_libgcj_debug" = yes; then
5714 cat >>confdefs.h <<\_ACEOF
5715 #define DEBUG 1
5716 _ACEOF
5718 LIBGCJDEBUG="true"
5722 # Check for gc debugging. This option is handled both here and in the GC.
5723 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5724 if test "${enable_gc_debug+set}" = set; then
5725 enableval="$enable_gc_debug"
5726 if test "$enable_gc_debug" = "yes"; then
5728 cat >>confdefs.h <<\_ACEOF
5729 #define LIBGCJ_GC_DEBUG 1
5730 _ACEOF
5735 # See if the user has the interpreter included.
5736 # Check whether --enable-interpreter or --disable-interpreter was given.
5737 if test "${enable_interpreter+set}" = set; then
5738 enableval="$enable_interpreter"
5739 if test "$enable_interpreter" = yes; then
5740 # This can also be set in configure.host.
5741 libgcj_interpreter=yes
5742 elif test "$enable_interpreter" = no; then
5743 libgcj_interpreter=no
5747 if test "$libgcj_interpreter" = yes; then
5749 cat >>confdefs.h <<\_ACEOF
5750 #define INTERPRETER 1
5751 _ACEOF
5754 INTERPRETER="$libgcj_interpreter"
5757 echo "$as_me:$LINENO: checking for exception model to use" >&5
5758 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5759 ac_ext=cc
5760 ac_cpp='$CXXCPP $CPPFLAGS'
5761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5765 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5766 if test "${enable_sjlj_exceptions+set}" = set; then
5767 enableval="$enable_sjlj_exceptions"
5769 else
5770 cat > conftest.$ac_ext << EOF
5771 #line 5771 "configure"
5772 struct S { ~S(); };
5773 void bar();
5774 void foo()
5776 S s;
5777 bar();
5780 old_CXXFLAGS="$CXXFLAGS"
5781 CXXFLAGS=-S
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; then
5787 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5788 enable_sjlj_exceptions=yes
5789 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5790 enable_sjlj_exceptions=no
5793 CXXFLAGS="$old_CXXFLAGS"
5794 rm -f conftest*
5796 if test x$enable_sjlj_exceptions = xyes; then
5798 cat >>confdefs.h <<\_ACEOF
5799 #define SJLJ_EXCEPTIONS 1
5800 _ACEOF
5802 ac_exception_model_name=sjlj
5803 elif test x$enable_sjlj_exceptions = xno; then
5804 ac_exception_model_name="call frame"
5805 else
5806 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5807 echo "$as_me: error: unable to detect exception model" >&2;}
5808 { (exit 1); exit 1; }; }
5810 ac_ext=c
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5816 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5817 echo "${ECHO_T}$ac_exception_model_name" >&6
5819 # If we are non using SJLJ exceptions, and this host does not have support
5820 # for unwinding from a signal handler, enable checked dereferences and divides.
5821 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5822 CHECKREFSPEC=-fcheck-references
5823 DIVIDESPEC=-fuse-divide-subroutine
5824 EXCEPTIONSPEC=
5827 # See if the user wants to disable java.net. This is the mildly
5828 # ugly way that we admit that target-side configuration sucks.
5829 # Check whether --enable-java-net or --disable-java-net was given.
5830 if test "${enable_java_net+set}" = set; then
5831 enableval="$enable_java_net"
5835 # Whether java.net is built by default can depend on the target.
5836 if test -z "$enable_java_net"; then
5837 enable_java_net=${enable_java_net_default-yes}
5839 if test "$enable_java_net" = no; then
5841 cat >>confdefs.h <<\_ACEOF
5842 #define DISABLE_JAVA_NET 1
5843 _ACEOF
5847 # See if the user wants to configure without libffi. Some
5848 # architectures don't support it, and default values are set in
5849 # configure.host.
5851 # Check whether --with-libffi or --without-libffi was given.
5852 if test "${with_libffi+set}" = set; then
5853 withval="$with_libffi"
5855 else
5856 with_libffi=${with_libffi_default-yes}
5859 LIBFFI=
5860 LIBFFIINCS=
5861 if test "$with_libffi" != no; then
5863 cat >>confdefs.h <<\_ACEOF
5864 #define USE_LIBFFI 1
5865 _ACEOF
5867 LIBFFI=../libffi/libffi_convenience.la
5868 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5873 # See if the user wants to disable JVMPI support.
5874 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5875 if test "${enable_jvmpi+set}" = set; then
5876 enableval="$enable_jvmpi"
5880 if test "$enable_jvmpi" != no; then
5882 cat >>confdefs.h <<\_ACEOF
5883 #define ENABLE_JVMPI 1
5884 _ACEOF
5888 # If the target is an eCos system, use the appropriate eCos
5889 # I/O routines.
5890 # FIXME: this should not be a local option but a global target
5891 # system; at present there is no eCos target.
5892 TARGET_ECOS=${PROCESS-"no"}
5894 # Check whether --with-ecos or --without-ecos was given.
5895 if test "${with_ecos+set}" = set; then
5896 withval="$with_ecos"
5897 TARGET_ECOS="$with_ecos"
5901 supply_backtrace=no
5903 PLATFORM_INNER_NAT_HDRS=
5904 case "$TARGET_ECOS" in
5905 no) case "$host" in
5906 *mingw*)
5907 PLATFORM=Win32
5908 PLATFORMNET=Win32
5909 PLATFORMH=win32.h
5911 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5912 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5913 LD_PROG=`$CC --print-prog-name=ld`
5914 LD_VERSION=`$LD_PROG --version`
5915 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5916 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5917 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5918 LD_OK="ok"
5919 else
5920 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5921 LD_OK="ok"
5924 if test "x$LD_OK" != x; then
5925 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5926 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5927 else
5928 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5929 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5930 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5931 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5933 cat >>confdefs.h <<\_ACEOF
5934 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5935 _ACEOF
5940 PLATFORM=Posix
5941 PLATFORMNET=Posix
5942 PLATFORMH=posix.h
5943 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5945 esac
5948 PLATFORM=Ecos
5949 PLATFORMNET=NoNet
5951 cat >>confdefs.h <<\_ACEOF
5952 #define ECOS 1
5953 _ACEOF
5955 PLATFORMH=posix.h
5957 esac
5959 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5962 ac_ext=c
5963 ac_cpp='$CPP $CPPFLAGS'
5964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5968 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5969 # On Suns, sometimes $CPP names a directory.
5970 if test -n "$CPP" && test -d "$CPP"; then
5971 CPP=
5973 if test -z "$CPP"; then
5974 if test "${ac_cv_prog_CPP+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 # Double quotes because CPP needs to be expanded
5978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5980 ac_preproc_ok=false
5981 for ac_c_preproc_warn_flag in '' yes
5983 # Use a header file that comes with gcc, so configuring glibc
5984 # with a fresh cross-compiler works.
5985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5986 # <limits.h> exists even on freestanding compilers.
5987 # On the NeXT, cc -E runs the code through the compiler's parser,
5988 # not just through cpp. "Syntax error" is here to catch this case.
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #ifdef __STDC__
5996 # include <limits.h>
5997 #else
5998 # include <assert.h>
5999 #endif
6000 Syntax error
6001 _ACEOF
6002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } >/dev/null; then
6010 if test -s conftest.err; then
6011 ac_cpp_err=$ac_c_preproc_warn_flag
6012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6013 else
6014 ac_cpp_err=
6016 else
6017 ac_cpp_err=yes
6019 if test -z "$ac_cpp_err"; then
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 # Broken: fails on valid input.
6026 continue
6028 rm -f conftest.err conftest.$ac_ext
6030 # OK, works on sane cases. Now check whether non-existent headers
6031 # can be detected and how.
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <ac_nonexistent.h>
6039 _ACEOF
6040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } >/dev/null; then
6048 if test -s conftest.err; then
6049 ac_cpp_err=$ac_c_preproc_warn_flag
6050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6051 else
6052 ac_cpp_err=
6054 else
6055 ac_cpp_err=yes
6057 if test -z "$ac_cpp_err"; then
6058 # Broken: success on invalid input.
6059 continue
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 # Passes both tests.
6065 ac_preproc_ok=:
6066 break
6068 rm -f conftest.err conftest.$ac_ext
6070 done
6071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072 rm -f conftest.err conftest.$ac_ext
6073 if $ac_preproc_ok; then
6074 break
6077 done
6078 ac_cv_prog_CPP=$CPP
6081 CPP=$ac_cv_prog_CPP
6082 else
6083 ac_cv_prog_CPP=$CPP
6085 echo "$as_me:$LINENO: result: $CPP" >&5
6086 echo "${ECHO_T}$CPP" >&6
6087 ac_preproc_ok=false
6088 for ac_c_preproc_warn_flag in '' yes
6090 # Use a header file that comes with gcc, so configuring glibc
6091 # with a fresh cross-compiler works.
6092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6093 # <limits.h> exists even on freestanding compilers.
6094 # On the NeXT, cc -E runs the code through the compiler's parser,
6095 # not just through cpp. "Syntax error" is here to catch this case.
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 #ifdef __STDC__
6103 # include <limits.h>
6104 #else
6105 # include <assert.h>
6106 #endif
6107 Syntax error
6108 _ACEOF
6109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } >/dev/null; then
6117 if test -s conftest.err; then
6118 ac_cpp_err=$ac_c_preproc_warn_flag
6119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6120 else
6121 ac_cpp_err=
6123 else
6124 ac_cpp_err=yes
6126 if test -z "$ac_cpp_err"; then
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 # Broken: fails on valid input.
6133 continue
6135 rm -f conftest.err conftest.$ac_ext
6137 # OK, works on sane cases. Now check whether non-existent headers
6138 # can be detected and how.
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <ac_nonexistent.h>
6146 _ACEOF
6147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } >/dev/null; then
6155 if test -s conftest.err; then
6156 ac_cpp_err=$ac_c_preproc_warn_flag
6157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6158 else
6159 ac_cpp_err=
6161 else
6162 ac_cpp_err=yes
6164 if test -z "$ac_cpp_err"; then
6165 # Broken: success on invalid input.
6166 continue
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 # Passes both tests.
6172 ac_preproc_ok=:
6173 break
6175 rm -f conftest.err conftest.$ac_ext
6177 done
6178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6179 rm -f conftest.err conftest.$ac_ext
6180 if $ac_preproc_ok; then
6182 else
6183 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details." >&5
6185 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6186 See \`config.log' for more details." >&2;}
6187 { (exit 1); exit 1; }; }
6190 ac_ext=c
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197 echo "$as_me:$LINENO: checking for egrep" >&5
6198 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6199 if test "${ac_cv_prog_egrep+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6203 then ac_cv_prog_egrep='grep -E'
6204 else ac_cv_prog_egrep='egrep'
6207 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6208 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6209 EGREP=$ac_cv_prog_egrep
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <stdint.h>
6220 _ACEOF
6221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6222 $EGREP "uint32_t" >/dev/null 2>&1; then
6224 cat >>confdefs.h <<\_ACEOF
6225 #define HAVE_INT32_DEFINED 1
6226 _ACEOF
6229 rm -f conftest*
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #include <inttypes.h>
6239 _ACEOF
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241 $EGREP "uint32_t" >/dev/null 2>&1; then
6243 cat >>confdefs.h <<\_ACEOF
6244 #define HAVE_INT32_DEFINED 1
6245 _ACEOF
6248 rm -f conftest*
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 #include <sys/types.h>
6258 _ACEOF
6259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 $EGREP "u_int32_t" >/dev/null 2>&1; then
6262 cat >>confdefs.h <<\_ACEOF
6263 #define HAVE_BSD_INT32_DEFINED 1
6264 _ACEOF
6267 rm -f conftest*
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #include <sys/config.h>
6277 _ACEOF
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 $EGREP "u_int32_t" >/dev/null 2>&1; then
6281 cat >>confdefs.h <<\_ACEOF
6282 #define HAVE_BSD_INT32_DEFINED 1
6283 _ACEOF
6286 rm -f conftest*
6291 if test "$PLATFORM" = Win32; then
6292 USING_WIN32_PLATFORM_TRUE=
6293 USING_WIN32_PLATFORM_FALSE='#'
6294 else
6295 USING_WIN32_PLATFORM_TRUE='#'
6296 USING_WIN32_PLATFORM_FALSE=
6301 if test "$PLATFORM" = Posix; then
6302 USING_POSIX_PLATFORM_TRUE=
6303 USING_POSIX_PLATFORM_FALSE='#'
6304 else
6305 USING_POSIX_PLATFORM_TRUE='#'
6306 USING_POSIX_PLATFORM_FALSE=
6311 if test "$PLATFORM" = Ecos; then
6312 USING_ECOS_PLATFORM_TRUE=
6313 USING_ECOS_PLATFORM_FALSE='#'
6314 else
6315 USING_ECOS_PLATFORM_TRUE='#'
6316 USING_ECOS_PLATFORM_FALSE=
6320 case "$host" in
6321 *-darwin*) DARWIN_CRT=true ;;
6322 *) DARWIN_CRT=false ;;
6323 esac
6326 if $DARWIN_CRT; then
6327 USING_DARWIN_CRT_TRUE=
6328 USING_DARWIN_CRT_FALSE='#'
6329 else
6330 USING_DARWIN_CRT_TRUE='#'
6331 USING_DARWIN_CRT_FALSE=
6335 # These may not be defined in a non-ANS conformant embedded system.
6336 # FIXME: Should these case a runtime exception in that case?
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #include <time.h>
6345 _ACEOF
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "mktime" >/dev/null 2>&1; then
6349 cat >>confdefs.h <<\_ACEOF
6350 #define HAVE_MKTIME 1
6351 _ACEOF
6354 rm -f conftest*
6356 cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h. */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362 #include <time.h>
6364 _ACEOF
6365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6366 $EGREP "localtime" >/dev/null 2>&1; then
6368 cat >>confdefs.h <<\_ACEOF
6369 #define HAVE_LOCALTIME 1
6370 _ACEOF
6373 rm -f conftest*
6376 # Create the subdirectory for natFile.cc, or the attempt
6377 # to create the link will fail.
6378 test -d java || mkdir java
6379 test -d java/io || mkdir java/io
6380 test -d gnu || mkdir gnu
6381 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6384 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6385 test -d java/lang || mkdir java/lang
6386 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6388 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6391 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6392 test -d java/net || mkdir java/net
6393 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6395 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6398 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6399 test -d gnu/java || mkdir gnu/java
6400 test -d gnu/java/net || mkdir gnu/java/net
6401 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6403 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6406 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6407 test -d gnu/java/nio || mkdir gnu/java/nio
6408 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6410 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6412 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6413 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6416 case "${host}" in
6417 *mingw*)
6418 SYSTEMSPEC="-lgdi32 -lws2_32"
6419 if test "${with_win32_nlsapi}" = "unicows"; then
6420 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6424 SYSTEMSPEC=
6426 esac
6429 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6433 # Check whether --with-system-zlib or --without-system-zlib was given.
6434 if test "${with_system_zlib+set}" = set; then
6435 withval="$with_system_zlib"
6438 ZLIBSPEC=
6440 ZLIBTESTSPEC=
6444 if test "x$ac_path_x_has_been_run" != xyes; then
6445 echo "$as_me:$LINENO: checking for X" >&5
6446 echo $ECHO_N "checking for X... $ECHO_C" >&6
6448 ac_path_x_has_been_run=yes
6450 # Check whether --with-x or --without-x was given.
6451 if test "${with_x+set}" = set; then
6452 withval="$with_x"
6455 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6456 if test "x$with_x" = xno; then
6457 # The user explicitly disabled X.
6458 have_x=disabled
6459 else
6460 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6461 # Both variables are already set.
6462 have_x=yes
6463 else
6464 if test "${ac_cv_have_x+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 # One or both of the vars are not set, and there is no cached value.
6468 ac_x_includes=no ac_x_libraries=no
6469 rm -fr conftest.dir
6470 if mkdir conftest.dir; then
6471 cd conftest.dir
6472 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6473 cat >Imakefile <<'_ACEOF'
6474 acfindx:
6475 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6476 _ACEOF
6477 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6478 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6479 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6480 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6481 for ac_extension in a so sl; do
6482 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6483 test -f $ac_im_libdir/libX11.$ac_extension; then
6484 ac_im_usrlibdir=$ac_im_libdir; break
6486 done
6487 # Screen out bogus values from the imake configuration. They are
6488 # bogus both because they are the default anyway, and because
6489 # using them would break gcc on systems where it needs fixed includes.
6490 case $ac_im_incroot in
6491 /usr/include) ;;
6492 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6493 esac
6494 case $ac_im_usrlibdir in
6495 /usr/lib | /lib) ;;
6496 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6497 esac
6499 cd ..
6500 rm -fr conftest.dir
6503 # Standard set of common directories for X headers.
6504 # Check X11 before X11Rn because it is often a symlink to the current release.
6505 ac_x_header_dirs='
6506 /usr/X11/include
6507 /usr/X11R6/include
6508 /usr/X11R5/include
6509 /usr/X11R4/include
6511 /usr/include/X11
6512 /usr/include/X11R6
6513 /usr/include/X11R5
6514 /usr/include/X11R4
6516 /usr/local/X11/include
6517 /usr/local/X11R6/include
6518 /usr/local/X11R5/include
6519 /usr/local/X11R4/include
6521 /usr/local/include/X11
6522 /usr/local/include/X11R6
6523 /usr/local/include/X11R5
6524 /usr/local/include/X11R4
6526 /usr/X386/include
6527 /usr/x386/include
6528 /usr/XFree86/include/X11
6530 /usr/include
6531 /usr/local/include
6532 /usr/unsupported/include
6533 /usr/athena/include
6534 /usr/local/x11r5/include
6535 /usr/lpp/Xamples/include
6537 /usr/openwin/include
6538 /usr/openwin/share/include'
6540 if test "$ac_x_includes" = no; then
6541 # Guess where to find include files, by looking for a specified header file.
6542 # First, try using that file with no special directory specified.
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 #include <X11/Intrinsic.h>
6550 _ACEOF
6551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } >/dev/null; then
6559 if test -s conftest.err; then
6560 ac_cpp_err=$ac_c_preproc_warn_flag
6561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6562 else
6563 ac_cpp_err=
6565 else
6566 ac_cpp_err=yes
6568 if test -z "$ac_cpp_err"; then
6569 # We can compile using X headers with no special include directory.
6570 ac_x_includes=
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 for ac_dir in $ac_x_header_dirs; do
6576 if test -r "$ac_dir/X11/Intrinsic.h"; then
6577 ac_x_includes=$ac_dir
6578 break
6580 done
6582 rm -f conftest.err conftest.$ac_ext
6583 fi # $ac_x_includes = no
6585 if test "$ac_x_libraries" = no; then
6586 # Check for the libraries.
6587 # See if we find them without any special options.
6588 # Don't add to $LIBS permanently.
6589 ac_save_LIBS=$LIBS
6590 LIBS="-lXt $LIBS"
6591 if test x$gcc_no_link = xyes; then
6592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6594 { (exit 1); exit 1; }; }
6596 cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 #include <X11/Intrinsic.h>
6604 main ()
6606 XtMalloc (0)
6608 return 0;
6610 _ACEOF
6611 rm -f conftest.$ac_objext conftest$ac_exeext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6613 (eval $ac_link) 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try='test -s conftest$ac_exeext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 LIBS=$ac_save_LIBS
6633 # We can link X programs with no special library path.
6634 ac_x_libraries=
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 LIBS=$ac_save_LIBS
6640 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6642 # Don't even attempt the hair of trying to link an X program!
6643 for ac_extension in a so sl; do
6644 if test -r $ac_dir/libXt.$ac_extension; then
6645 ac_x_libraries=$ac_dir
6646 break 2
6648 done
6649 done
6651 rm -f conftest.err conftest.$ac_objext \
6652 conftest$ac_exeext conftest.$ac_ext
6653 fi # $ac_x_libraries = no
6655 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6656 # Didn't find X anywhere. Cache the known absence of X.
6657 ac_cv_have_x="have_x=no"
6658 else
6659 # Record where we found X for the cache.
6660 ac_cv_have_x="have_x=yes \
6661 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6666 eval "$ac_cv_have_x"
6667 fi # $with_x != no
6669 if test "$have_x" != yes; then
6670 echo "$as_me:$LINENO: result: $have_x" >&5
6671 echo "${ECHO_T}$have_x" >&6
6672 no_x=yes
6673 else
6674 # If each of the values was on the command line, it overrides each guess.
6675 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6676 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6677 # Update the cache value to reflect the command line values.
6678 ac_cv_have_x="have_x=yes \
6679 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6680 # It might be that x_includes is empty (headers are found in the
6681 # standard search path. Then output the corresponding message
6682 ac_out_x_includes=$x_includes
6683 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
6684 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6685 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6689 if test "$no_x" = yes; then
6690 # Not all programs may use this symbol, but it does not hurt to define it.
6692 cat >>confdefs.h <<\_ACEOF
6693 #define X_DISPLAY_MISSING 1
6694 _ACEOF
6696 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6697 else
6698 if test -n "$x_includes"; then
6699 X_CFLAGS="$X_CFLAGS -I$x_includes"
6702 # It would also be nice to do this for all -L options, not just this one.
6703 if test -n "$x_libraries"; then
6704 X_LIBS="$X_LIBS -L$x_libraries"
6705 # For Solaris; some versions of Sun CC require a space after -R and
6706 # others require no space. Words are not sufficient . . . .
6707 case `(uname -sr) 2>/dev/null` in
6708 "SunOS 5"*)
6709 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6710 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6711 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6712 if test x$gcc_no_link = xyes; then
6713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6715 { (exit 1); exit 1; }; }
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6725 main ()
6729 return 0;
6731 _ACEOF
6732 rm -f conftest.$ac_objext conftest$ac_exeext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6734 (eval $ac_link) 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try='test -s conftest$ac_exeext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_R_nospace=yes
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_R_nospace=no
6760 rm -f conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6762 if test $ac_R_nospace = yes; then
6763 echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6
6765 X_LIBS="$X_LIBS -R$x_libraries"
6766 else
6767 LIBS="$ac_xsave_LIBS -R $x_libraries"
6768 if test x$gcc_no_link = xyes; then
6769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6771 { (exit 1); exit 1; }; }
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6781 main ()
6785 return 0;
6787 _ACEOF
6788 rm -f conftest.$ac_objext conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest$ac_exeext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_R_space=yes
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 ac_R_space=no
6816 rm -f conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6818 if test $ac_R_space = yes; then
6819 echo "$as_me:$LINENO: result: yes" >&5
6820 echo "${ECHO_T}yes" >&6
6821 X_LIBS="$X_LIBS -R $x_libraries"
6822 else
6823 echo "$as_me:$LINENO: result: neither works" >&5
6824 echo "${ECHO_T}neither works" >&6
6827 LIBS=$ac_xsave_LIBS
6828 esac
6831 # Check for system-dependent libraries X programs must link with.
6832 # Do this before checking for the system-independent R6 libraries
6833 # (-lICE), since we may need -lsocket or whatever for X linking.
6835 if test "$ISC" = yes; then
6836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6837 else
6838 # Martyn Johnson says this is needed for Ultrix, if the X
6839 # libraries were built with DECnet support. And Karl Berry says
6840 # the Alpha needs dnet_stub (dnet does not exist).
6841 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6842 if test x$gcc_no_link = xyes; then
6843 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6844 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6845 { (exit 1); exit 1; }; }
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6854 /* Override any gcc2 internal prototype to avoid an error. */
6855 #ifdef __cplusplus
6856 extern "C"
6857 #endif
6858 /* We use char because int might match the return type of a gcc2
6859 builtin and then its argument prototype would still apply. */
6860 char XOpenDisplay ();
6862 main ()
6864 XOpenDisplay ();
6866 return 0;
6868 _ACEOF
6869 rm -f conftest.$ac_objext conftest$ac_exeext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6871 (eval $ac_link) 2>conftest.er1
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 (eval $ac_try) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; } &&
6944 { ac_try='test -s conftest$ac_exeext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 ac_cv_lib_dnet_dnet_ntoa=yes
6951 else
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6955 ac_cv_lib_dnet_dnet_ntoa=no
6957 rm -f conftest.err conftest.$ac_objext \
6958 conftest$ac_exeext conftest.$ac_ext
6959 LIBS=$ac_check_lib_save_LIBS
6961 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6962 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6963 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6964 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6967 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6968 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6969 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6970 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 ac_check_lib_save_LIBS=$LIBS
6974 LIBS="-ldnet_stub $LIBS"
6975 if test x$gcc_no_link = xyes; then
6976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6978 { (exit 1); exit 1; }; }
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6987 /* Override any gcc2 internal prototype to avoid an error. */
6988 #ifdef __cplusplus
6989 extern "C"
6990 #endif
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
6993 char dnet_ntoa ();
6995 main ()
6997 dnet_ntoa ();
6999 return 0;
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>conftest.er1
7005 ac_status=$?
7006 grep -v '^ *+' conftest.er1 >conftest.err
7007 rm -f conftest.er1
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; } &&
7017 { ac_try='test -s conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7024 else
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 ac_cv_lib_dnet_stub_dnet_ntoa=no
7030 rm -f conftest.err conftest.$ac_objext \
7031 conftest$ac_exeext conftest.$ac_ext
7032 LIBS=$ac_check_lib_save_LIBS
7034 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7035 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7036 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7037 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7042 rm -f conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7044 LIBS="$ac_xsave_LIBS"
7046 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7047 # to get the SysV transport functions.
7048 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7049 # needs -lnsl.
7050 # The nsl library prevents programs from opening the X display
7051 # on Irix 5.2, according to T.E. Dickey.
7052 # The functions gethostbyname, getservbyname, and inet_addr are
7053 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7054 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7055 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7056 if test "${ac_cv_func_gethostbyname+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 if test x$gcc_no_link = xyes; then
7060 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7061 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7062 { (exit 1); exit 1; }; }
7064 cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h. */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7072 #define gethostbyname innocuous_gethostbyname
7074 /* System header to define __stub macros and hopefully few prototypes,
7075 which can conflict with char gethostbyname (); below.
7076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7077 <limits.h> exists even on freestanding compilers. */
7079 #ifdef __STDC__
7080 # include <limits.h>
7081 #else
7082 # include <assert.h>
7083 #endif
7085 #undef gethostbyname
7087 /* Override any gcc2 internal prototype to avoid an error. */
7088 #ifdef __cplusplus
7089 extern "C"
7091 #endif
7092 /* We use char because int might match the return type of a gcc2
7093 builtin and then its argument prototype would still apply. */
7094 char gethostbyname ();
7095 /* The GNU C library defines this for functions which it implements
7096 to always fail with ENOSYS. Some functions are actually named
7097 something starting with __ and the normal name is an alias. */
7098 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7099 choke me
7100 #else
7101 char (*f) () = gethostbyname;
7102 #endif
7103 #ifdef __cplusplus
7105 #endif
7108 main ()
7110 return f != gethostbyname;
7112 return 0;
7114 _ACEOF
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117 (eval $ac_link) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest$ac_exeext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_func_gethostbyname=yes
7137 else
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_cv_func_gethostbyname=no
7143 rm -f conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7146 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7147 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7149 if test $ac_cv_func_gethostbyname = no; then
7150 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7151 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7152 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 ac_check_lib_save_LIBS=$LIBS
7156 LIBS="-lnsl $LIBS"
7157 if test x$gcc_no_link = xyes; then
7158 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7160 { (exit 1); exit 1; }; }
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7169 /* Override any gcc2 internal prototype to avoid an error. */
7170 #ifdef __cplusplus
7171 extern "C"
7172 #endif
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7175 char gethostbyname ();
7177 main ()
7179 gethostbyname ();
7181 return 0;
7183 _ACEOF
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_cv_lib_nsl_gethostbyname=yes
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_cv_lib_nsl_gethostbyname=no
7212 rm -f conftest.err conftest.$ac_objext \
7213 conftest$ac_exeext conftest.$ac_ext
7214 LIBS=$ac_check_lib_save_LIBS
7216 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7217 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7218 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7219 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7222 if test $ac_cv_lib_nsl_gethostbyname = no; then
7223 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7224 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7225 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228 ac_check_lib_save_LIBS=$LIBS
7229 LIBS="-lbsd $LIBS"
7230 if test x$gcc_no_link = xyes; then
7231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7233 { (exit 1); exit 1; }; }
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7242 /* Override any gcc2 internal prototype to avoid an error. */
7243 #ifdef __cplusplus
7244 extern "C"
7245 #endif
7246 /* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7248 char gethostbyname ();
7250 main ()
7252 gethostbyname ();
7254 return 0;
7256 _ACEOF
7257 rm -f conftest.$ac_objext conftest$ac_exeext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7259 (eval $ac_link) 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try='test -s conftest$ac_exeext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_cv_lib_bsd_gethostbyname=yes
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 ac_cv_lib_bsd_gethostbyname=no
7285 rm -f conftest.err conftest.$ac_objext \
7286 conftest$ac_exeext conftest.$ac_ext
7287 LIBS=$ac_check_lib_save_LIBS
7289 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7290 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7291 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7292 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7298 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7299 # socket/setsockopt and other routines are undefined under SCO ODT
7300 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7301 # on later versions), says Simon Leinen: it contains gethostby*
7302 # variants that don't use the name server (or something). -lsocket
7303 # must be given before -lnsl if both are needed. We assume that
7304 # if connect needs -lnsl, so does gethostbyname.
7305 echo "$as_me:$LINENO: checking for connect" >&5
7306 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7307 if test "${ac_cv_func_connect+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 if test x$gcc_no_link = xyes; then
7311 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7313 { (exit 1); exit 1; }; }
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7323 #define connect innocuous_connect
7325 /* System header to define __stub macros and hopefully few prototypes,
7326 which can conflict with char connect (); below.
7327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7328 <limits.h> exists even on freestanding compilers. */
7330 #ifdef __STDC__
7331 # include <limits.h>
7332 #else
7333 # include <assert.h>
7334 #endif
7336 #undef connect
7338 /* Override any gcc2 internal prototype to avoid an error. */
7339 #ifdef __cplusplus
7340 extern "C"
7342 #endif
7343 /* We use char because int might match the return type of a gcc2
7344 builtin and then its argument prototype would still apply. */
7345 char connect ();
7346 /* The GNU C library defines this for functions which it implements
7347 to always fail with ENOSYS. Some functions are actually named
7348 something starting with __ and the normal name is an alias. */
7349 #if defined (__stub_connect) || defined (__stub___connect)
7350 choke me
7351 #else
7352 char (*f) () = connect;
7353 #endif
7354 #ifdef __cplusplus
7356 #endif
7359 main ()
7361 return f != connect;
7363 return 0;
7365 _ACEOF
7366 rm -f conftest.$ac_objext conftest$ac_exeext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7368 (eval $ac_link) 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377 (eval $ac_try) 2>&5
7378 ac_status=$?
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; } &&
7381 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7387 ac_cv_func_connect=yes
7388 else
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7392 ac_cv_func_connect=no
7394 rm -f conftest.err conftest.$ac_objext \
7395 conftest$ac_exeext conftest.$ac_ext
7397 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7398 echo "${ECHO_T}$ac_cv_func_connect" >&6
7400 if test $ac_cv_func_connect = no; then
7401 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7402 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7403 if test "${ac_cv_lib_socket_connect+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406 ac_check_lib_save_LIBS=$LIBS
7407 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7408 if test x$gcc_no_link = xyes; then
7409 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7410 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7411 { (exit 1); exit 1; }; }
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7420 /* Override any gcc2 internal prototype to avoid an error. */
7421 #ifdef __cplusplus
7422 extern "C"
7423 #endif
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7426 char connect ();
7428 main ()
7430 connect ();
7432 return 0;
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_lib_socket_connect=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 ac_cv_lib_socket_connect=no
7463 rm -f conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7465 LIBS=$ac_check_lib_save_LIBS
7467 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7468 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7469 if test $ac_cv_lib_socket_connect = yes; then
7470 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7475 # Guillermo Gomez says -lposix is necessary on A/UX.
7476 echo "$as_me:$LINENO: checking for remove" >&5
7477 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7478 if test "${ac_cv_func_remove+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 if test x$gcc_no_link = xyes; then
7482 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7483 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7484 { (exit 1); exit 1; }; }
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7494 #define remove innocuous_remove
7496 /* System header to define __stub macros and hopefully few prototypes,
7497 which can conflict with char remove (); below.
7498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7499 <limits.h> exists even on freestanding compilers. */
7501 #ifdef __STDC__
7502 # include <limits.h>
7503 #else
7504 # include <assert.h>
7505 #endif
7507 #undef remove
7509 /* Override any gcc2 internal prototype to avoid an error. */
7510 #ifdef __cplusplus
7511 extern "C"
7513 #endif
7514 /* We use char because int might match the return type of a gcc2
7515 builtin and then its argument prototype would still apply. */
7516 char remove ();
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_remove) || defined (__stub___remove)
7521 choke me
7522 #else
7523 char (*f) () = remove;
7524 #endif
7525 #ifdef __cplusplus
7527 #endif
7530 main ()
7532 return f != remove;
7534 return 0;
7536 _ACEOF
7537 rm -f conftest.$ac_objext conftest$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } &&
7552 { ac_try='test -s conftest$ac_exeext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 (eval $ac_try) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 ac_cv_func_remove=yes
7559 else
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_cv_func_remove=no
7565 rm -f conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7568 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7569 echo "${ECHO_T}$ac_cv_func_remove" >&6
7571 if test $ac_cv_func_remove = no; then
7572 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7573 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7574 if test "${ac_cv_lib_posix_remove+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577 ac_check_lib_save_LIBS=$LIBS
7578 LIBS="-lposix $LIBS"
7579 if test x$gcc_no_link = xyes; then
7580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7582 { (exit 1); exit 1; }; }
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 #ifdef __cplusplus
7593 extern "C"
7594 #endif
7595 /* We use char because int might match the return type of a gcc2
7596 builtin and then its argument prototype would still apply. */
7597 char remove ();
7599 main ()
7601 remove ();
7603 return 0;
7605 _ACEOF
7606 rm -f conftest.$ac_objext conftest$ac_exeext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608 (eval $ac_link) 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 (eval $ac_try) 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; } &&
7621 { ac_try='test -s conftest$ac_exeext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7627 ac_cv_lib_posix_remove=yes
7628 else
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7632 ac_cv_lib_posix_remove=no
7634 rm -f conftest.err conftest.$ac_objext \
7635 conftest$ac_exeext conftest.$ac_ext
7636 LIBS=$ac_check_lib_save_LIBS
7638 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7639 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7640 if test $ac_cv_lib_posix_remove = yes; then
7641 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7646 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7647 echo "$as_me:$LINENO: checking for shmat" >&5
7648 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7649 if test "${ac_cv_func_shmat+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 if test x$gcc_no_link = xyes; then
7653 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7654 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7655 { (exit 1); exit 1; }; }
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7665 #define shmat innocuous_shmat
7667 /* System header to define __stub macros and hopefully few prototypes,
7668 which can conflict with char shmat (); below.
7669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7670 <limits.h> exists even on freestanding compilers. */
7672 #ifdef __STDC__
7673 # include <limits.h>
7674 #else
7675 # include <assert.h>
7676 #endif
7678 #undef shmat
7680 /* Override any gcc2 internal prototype to avoid an error. */
7681 #ifdef __cplusplus
7682 extern "C"
7684 #endif
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7687 char shmat ();
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined (__stub_shmat) || defined (__stub___shmat)
7692 choke me
7693 #else
7694 char (*f) () = shmat;
7695 #endif
7696 #ifdef __cplusplus
7698 #endif
7701 main ()
7703 return f != shmat;
7705 return 0;
7707 _ACEOF
7708 rm -f conftest.$ac_objext conftest$ac_exeext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7710 (eval $ac_link) 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest$ac_exeext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_func_shmat=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 ac_cv_func_shmat=no
7736 rm -f conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7739 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7740 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7742 if test $ac_cv_func_shmat = no; then
7743 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7744 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7745 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 ac_check_lib_save_LIBS=$LIBS
7749 LIBS="-lipc $LIBS"
7750 if test x$gcc_no_link = xyes; then
7751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7753 { (exit 1); exit 1; }; }
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7762 /* Override any gcc2 internal prototype to avoid an error. */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7768 char shmat ();
7770 main ()
7772 shmat ();
7774 return 0;
7776 _ACEOF
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779 (eval $ac_link) 2>conftest.er1
7780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; } &&
7792 { ac_try='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_cv_lib_ipc_shmat=yes
7799 else
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7803 ac_cv_lib_ipc_shmat=no
7805 rm -f conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 LIBS=$ac_check_lib_save_LIBS
7809 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7810 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7811 if test $ac_cv_lib_ipc_shmat = yes; then
7812 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7818 # Check for libraries that X11R6 Xt/Xaw programs need.
7819 ac_save_LDFLAGS=$LDFLAGS
7820 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7821 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7822 # check for ICE first), but we must link in the order -lSM -lICE or
7823 # we get undefined symbols. So assume we have SM if we have ICE.
7824 # These have to be linked with before -lX11, unlike the other
7825 # libraries we check for below, so use a different variable.
7826 # John Interrante, Karl Berry
7827 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7828 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7829 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 ac_check_lib_save_LIBS=$LIBS
7833 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7834 if test x$gcc_no_link = xyes; then
7835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7837 { (exit 1); exit 1; }; }
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 #ifdef __cplusplus
7848 extern "C"
7849 #endif
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7852 char IceConnectionNumber ();
7854 main ()
7856 IceConnectionNumber ();
7858 return 0;
7860 _ACEOF
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; } &&
7876 { ac_try='test -s conftest$ac_exeext'
7877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 (eval $ac_try) 2>&5
7879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 ac_cv_lib_ICE_IceConnectionNumber=yes
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 ac_cv_lib_ICE_IceConnectionNumber=no
7889 rm -f conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7893 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7894 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7895 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7896 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7899 LDFLAGS=$ac_save_LDFLAGS
7904 # Determine which AWT peer libraries to build
7905 # Check whether --enable-java-awt or --disable-java-awt was given.
7906 if test "${enable_java_awt+set}" = set; then
7907 enableval="$enable_java_awt"
7911 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7912 use_xlib_awt=""
7913 use_gtk_awt=""
7914 # The default toolkit to use is the first one specified.
7915 TOOLKIT=
7918 for peer in $peerlibs ; do
7919 case $peer in
7920 xlib)
7921 if test "$no_x" = yes; then
7922 echo "*** xlib peers requested but no X library available" 1>&2
7923 exit 1
7924 else
7925 use_xlib_awt="yes"
7926 if test -z "$TOOLKIT"; then
7927 TOOLKIT=gnu.awt.xlib.XToolkit
7931 gtk)
7932 if test "$no_x" = yes; then
7933 echo "*** xlib peers requested but no X library available" 1>&2
7934 exit 1
7935 else
7936 use_gtk_awt=yes
7937 if test -z "$TOOLKIT"; then
7938 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7940 test -d jniinclude || mkdir jniinclude
7944 use_xlib_awt=
7945 use_gtk_awt=
7946 break
7949 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7950 exit 1
7951 esac
7952 done
7956 if test "$use_xlib_awt" = yes; then
7957 XLIB_AWT_TRUE=
7958 XLIB_AWT_FALSE='#'
7959 else
7960 XLIB_AWT_TRUE='#'
7961 XLIB_AWT_FALSE=
7966 if test "$use_gtk_awt" = yes; then
7967 GTK_AWT_TRUE=
7968 GTK_AWT_FALSE='#'
7969 else
7970 GTK_AWT_TRUE='#'
7971 GTK_AWT_FALSE=
7975 # determine whether to enable the cairo GTK Graphics2D backend
7976 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7977 if test "${enable_gtk_cairo+set}" = set; then
7978 enableval="$enable_gtk_cairo"
7983 if test "x${enable_gtk_cairo}" = xyes; then
7984 GTK_CAIRO_TRUE=
7985 GTK_CAIRO_FALSE='#'
7986 else
7987 GTK_CAIRO_TRUE='#'
7988 GTK_CAIRO_FALSE=
7991 if test "x${enable_gtk_cairo}" = xyes
7992 then
7994 succeeded=no
7996 if test -z "$PKG_CONFIG"; then
7997 # Extract the first word of "pkg-config", so it can be a program name with args.
7998 set dummy pkg-config; ac_word=$2
7999 echo "$as_me:$LINENO: checking for $ac_word" >&5
8000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8001 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004 case $PKG_CONFIG in
8005 [\\/]* | ?:[\\/]*)
8006 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8020 done
8021 done
8023 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8025 esac
8027 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8029 if test -n "$PKG_CONFIG"; then
8030 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8031 echo "${ECHO_T}$PKG_CONFIG" >&6
8032 else
8033 echo "$as_me:$LINENO: result: no" >&5
8034 echo "${ECHO_T}no" >&6
8039 if test "$PKG_CONFIG" = "no" ; then
8040 echo "*** The pkg-config script could not be found. Make sure it is"
8041 echo "*** in your path, or set the PKG_CONFIG environment variable"
8042 echo "*** to the full path to pkg-config."
8043 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8044 else
8045 PKG_CONFIG_MIN_VERSION=0.9.0
8046 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8047 echo "$as_me:$LINENO: checking for cairo" >&5
8048 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8050 if $PKG_CONFIG --exists "cairo" ; then
8051 echo "$as_me:$LINENO: result: yes" >&5
8052 echo "${ECHO_T}yes" >&6
8053 succeeded=yes
8055 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8056 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8057 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8058 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8059 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8061 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8062 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8063 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8064 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8065 echo "${ECHO_T}$CAIRO_LIBS" >&6
8066 else
8067 CAIRO_CFLAGS=""
8068 CAIRO_LIBS=""
8069 ## If we have a custom action on failure, don't print errors, but
8070 ## do set a variable so people can do so.
8071 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8072 echo $CAIRO_PKG_ERRORS
8077 else
8078 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8079 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8083 if test $succeeded = yes; then
8085 else
8086 { { 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
8087 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;}
8088 { (exit 1); exit 1; }; }
8092 succeeded=no
8094 if test -z "$PKG_CONFIG"; then
8095 # Extract the first word of "pkg-config", so it can be a program name with args.
8096 set dummy pkg-config; ac_word=$2
8097 echo "$as_me:$LINENO: checking for $ac_word" >&5
8098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8099 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102 case $PKG_CONFIG in
8103 [\\/]* | ?:[\\/]*)
8104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8118 done
8119 done
8121 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8123 esac
8125 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8127 if test -n "$PKG_CONFIG"; then
8128 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8129 echo "${ECHO_T}$PKG_CONFIG" >&6
8130 else
8131 echo "$as_me:$LINENO: result: no" >&5
8132 echo "${ECHO_T}no" >&6
8137 if test "$PKG_CONFIG" = "no" ; then
8138 echo "*** The pkg-config script could not be found. Make sure it is"
8139 echo "*** in your path, or set the PKG_CONFIG environment variable"
8140 echo "*** to the full path to pkg-config."
8141 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8142 else
8143 PKG_CONFIG_MIN_VERSION=0.9.0
8144 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8145 echo "$as_me:$LINENO: checking for pangoft2" >&5
8146 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8148 if $PKG_CONFIG --exists "pangoft2" ; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150 echo "${ECHO_T}yes" >&6
8151 succeeded=yes
8153 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8154 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8155 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8156 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8157 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8159 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8160 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8161 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8162 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8163 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8164 else
8165 PANGOFT2_CFLAGS=""
8166 PANGOFT2_LIBS=""
8167 ## If we have a custom action on failure, don't print errors, but
8168 ## do set a variable so people can do so.
8169 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8170 echo $PANGOFT2_PKG_ERRORS
8175 else
8176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8181 if test $succeeded = yes; then
8183 else
8184 { { 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
8185 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;}
8186 { (exit 1); exit 1; }; }
8195 # FIXME: this should be _libs on some hosts.
8196 libsubdir=.libs
8198 # Allow the GC to be disabled. Can be useful when debugging.
8199 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8200 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8201 # Check whether --enable-java-gc or --disable-java-gc was given.
8202 if test "${enable_java_gc+set}" = set; then
8203 enableval="$enable_java_gc"
8204 GC=$enableval
8205 else
8206 GC=boehm
8208 GCLIBS=
8209 GCINCS=
8210 GCDEPS=
8211 GCSPEC=
8212 JC1GCSPEC=
8213 GCTESTSPEC=
8214 case "$GC" in
8215 boehm)
8216 echo "$as_me:$LINENO: result: boehm" >&5
8217 echo "${ECHO_T}boehm" >&6
8218 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8219 JC1GCSPEC='-fuse-boehm-gc'
8220 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8221 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8222 GCOBJS=boehm.lo
8223 GCHDR=boehm-gc.h
8224 # The POSIX thread support needs to know this.
8226 cat >>confdefs.h <<\_ACEOF
8227 #define HAVE_BOEHM_GC 1
8228 _ACEOF
8232 echo "$as_me:$LINENO: result: none" >&5
8233 echo "${ECHO_T}none" >&6
8234 GCHDR=no-gc.h
8237 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8238 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8239 { (exit 1); exit 1; }; }
8241 esac
8248 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8252 if test "$GC" = boehm; then
8253 USING_BOEHMGC_TRUE=
8254 USING_BOEHMGC_FALSE='#'
8255 else
8256 USING_BOEHMGC_TRUE='#'
8257 USING_BOEHMGC_FALSE=
8262 if test "$GC" = no; then
8263 USING_NOGC_TRUE=
8264 USING_NOGC_FALSE='#'
8265 else
8266 USING_NOGC_TRUE='#'
8267 USING_NOGC_FALSE=
8272 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8273 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8274 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8275 echo "$as_me:$LINENO: result: $THREADS" >&5
8276 echo "${ECHO_T}$THREADS" >&6
8278 case "$THREADS" in
8279 no | none | single)
8280 THREADS=none
8282 posix | posix95 | pthreads)
8283 THREADS=posix
8284 case "$host" in
8285 *-*-linux*)
8287 cat >>confdefs.h <<\_ACEOF
8288 #define LINUX_THREADS 1
8289 _ACEOF
8292 esac
8294 win32)
8296 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8297 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8298 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8299 { (exit 1); exit 1; }; }
8302 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8303 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8304 { (exit 1); exit 1; }; }
8306 esac
8308 THREADCXXFLAGS=
8309 THREADLDFLAGS=
8310 THREADLIBS=
8311 THREADINCS=
8312 THREADDEPS=
8313 THREADH=
8314 THREADSPEC=
8315 case "$THREADS" in
8316 posix)
8317 case "$host" in
8318 *-*-cygwin*)
8319 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8321 *-*-freebsd[1234]*)
8322 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8323 # merely adds pthread_* functions) but it does have a -pthread switch
8324 # which is required at link-time to select -lc_r *instead* of -lc.
8325 THREADLDFLAGS=-pthread
8326 # Don't set THREADSPEC here as might be expected since -pthread is
8327 # not processed when found within a spec file, it must come from
8328 # the command line. For now, the user must provide the -pthread
8329 # switch to link code compiled with gcj. In future, consider adding
8330 # support for weak references to pthread_* functions ala gthr.h API.
8331 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8333 *-*-freebsd*)
8334 # FreeBSD 5 implements a model much closer to other modern UNIX
8335 # which support threads. However, it still does not support
8336 # -lpthread.
8337 THREADLDFLAGS=-pthread
8338 THREADSPEC=-lc_r
8340 alpha*-dec-osf*)
8341 THREADCXXFLAGS=-pthread
8342 # boehm-gc needs some functions from librt, so link that too.
8343 THREADLIBS='-lpthread -lrt'
8344 THREADSPEC='-lpthread -lrt'
8347 THREADLIBS=-lpthread
8348 THREADSPEC=-lpthread
8350 esac
8351 THREADH=posix-threads.h
8352 # MIT pthreads doesn't seem to have the mutexattr functions.
8353 # But for now we don't check for it. We just assume you aren't
8354 # using MIT pthreads.
8356 cat >>confdefs.h <<\_ACEOF
8357 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8358 _ACEOF
8361 # If we're using the Boehm GC, then we happen to know that it
8362 # defines _REENTRANT, so we don't bother. Eww.
8363 if test "$GC" != boehm; then
8365 cat >>confdefs.h <<\_ACEOF
8366 #define _REENTRANT 1
8367 _ACEOF
8371 cat >>confdefs.h <<\_ACEOF
8372 #define _POSIX_PTHREAD_SEMANTICS 1
8373 _ACEOF
8377 win32)
8378 THREADH=win32-threads.h
8381 none)
8382 THREADH=no-threads.h
8384 esac
8385 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8395 if test "$THREADS" = posix; then
8396 USING_POSIX_THREADS_TRUE=
8397 USING_POSIX_THREADS_FALSE='#'
8398 else
8399 USING_POSIX_THREADS_TRUE='#'
8400 USING_POSIX_THREADS_FALSE=
8405 if test "$THREADS" = win32; then
8406 USING_WIN32_THREADS_TRUE=
8407 USING_WIN32_THREADS_FALSE='#'
8408 else
8409 USING_WIN32_THREADS_TRUE='#'
8410 USING_WIN32_THREADS_FALSE=
8415 if test "$THREADS" = none; then
8416 USING_NO_THREADS_TRUE=
8417 USING_NO_THREADS_FALSE='#'
8418 else
8419 USING_NO_THREADS_TRUE='#'
8420 USING_NO_THREADS_FALSE=
8424 if test -d sysdep; then true; else mkdir sysdep; fi
8425 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8428 HASH_SYNC_SPEC=
8429 # Hash synchronization is only useful with posix threads right now.
8430 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8431 HASH_SYNC_SPEC=-fhash-synchronization
8433 cat >>confdefs.h <<\_ACEOF
8434 #define JV_HASH_SYNCHRONIZATION 1
8435 _ACEOF
8443 if test "$GCC" = yes; then
8444 USING_GCC_TRUE=
8445 USING_GCC_FALSE='#'
8446 else
8447 USING_GCC_TRUE='#'
8448 USING_GCC_FALSE=
8452 # We're in the tree with gcc, and need to include some of its headers.
8453 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8455 # Figure out where generated headers like libgcj-config.h get installed.
8456 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8457 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8458 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8459 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8463 if test "x${with_newlib}" = "xyes"; then
8464 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8465 # may not work correctly, because the compiler may not be able to
8466 # link executables.
8468 # We assume newlib. This lets us hard-code the functions we know
8469 # we'll have.
8471 cat >>confdefs.h <<\_ACEOF
8472 #define HAVE_MEMMOVE 1
8473 _ACEOF
8476 cat >>confdefs.h <<\_ACEOF
8477 #define HAVE_MEMCPY 1
8478 _ACEOF
8481 cat >>confdefs.h <<\_ACEOF
8482 #define HAVE_STRERROR 1
8483 _ACEOF
8486 cat >>confdefs.h <<\_ACEOF
8487 #define HAVE_TIME 1
8488 _ACEOF
8491 cat >>confdefs.h <<\_ACEOF
8492 #define HAVE_GMTIME_R 1
8493 _ACEOF
8496 cat >>confdefs.h <<\_ACEOF
8497 #define HAVE_LOCALTIME_R 1
8498 _ACEOF
8501 cat >>confdefs.h <<\_ACEOF
8502 #define HAVE_USLEEP_DECL 1
8503 _ACEOF
8505 # This is only for POSIX threads.
8507 cat >>confdefs.h <<\_ACEOF
8508 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8509 _ACEOF
8511 # We also assume we are using gcc, which provides alloca.
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_ALLOCA 1
8514 _ACEOF
8517 # Assume we do not have getuid and friends.
8519 cat >>confdefs.h <<\_ACEOF
8520 #define NO_GETUID 1
8521 _ACEOF
8523 PLATFORMNET=NoNet
8524 else
8533 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8536 echo "$as_me:$LINENO: checking for $ac_func" >&5
8537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8538 if eval "test \"\${$as_ac_var+set}\" = set"; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541 if test x$gcc_no_link = xyes; then
8542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8544 { (exit 1); exit 1; }; }
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8554 #define $ac_func innocuous_$ac_func
8556 /* System header to define __stub macros and hopefully few prototypes,
8557 which can conflict with char $ac_func (); below.
8558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8559 <limits.h> exists even on freestanding compilers. */
8561 #ifdef __STDC__
8562 # include <limits.h>
8563 #else
8564 # include <assert.h>
8565 #endif
8567 #undef $ac_func
8569 /* Override any gcc2 internal prototype to avoid an error. */
8570 #ifdef __cplusplus
8571 extern "C"
8573 #endif
8574 /* We use char because int might match the return type of a gcc2
8575 builtin and then its argument prototype would still apply. */
8576 char $ac_func ();
8577 /* The GNU C library defines this for functions which it implements
8578 to always fail with ENOSYS. Some functions are actually named
8579 something starting with __ and the normal name is an alias. */
8580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8581 choke me
8582 #else
8583 char (*f) () = $ac_func;
8584 #endif
8585 #ifdef __cplusplus
8587 #endif
8590 main ()
8592 return f != $ac_func;
8594 return 0;
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599 (eval $ac_link) 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 (eval $ac_try) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 eval "$as_ac_var=yes"
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 eval "$as_ac_var=no"
8625 rm -f conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8630 if test `eval echo '${'$as_ac_var'}'` = yes; then
8631 cat >>confdefs.h <<_ACEOF
8632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8633 _ACEOF
8636 done
8643 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8646 echo "$as_me:$LINENO: checking for $ac_func" >&5
8647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8648 if eval "test \"\${$as_ac_var+set}\" = set"; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 if test x$gcc_no_link = xyes; then
8652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8654 { (exit 1); exit 1; }; }
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8664 #define $ac_func innocuous_$ac_func
8666 /* System header to define __stub macros and hopefully few prototypes,
8667 which can conflict with char $ac_func (); below.
8668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669 <limits.h> exists even on freestanding compilers. */
8671 #ifdef __STDC__
8672 # include <limits.h>
8673 #else
8674 # include <assert.h>
8675 #endif
8677 #undef $ac_func
8679 /* Override any gcc2 internal prototype to avoid an error. */
8680 #ifdef __cplusplus
8681 extern "C"
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8686 char $ac_func ();
8687 /* The GNU C library defines this for functions which it implements
8688 to always fail with ENOSYS. Some functions are actually named
8689 something starting with __ and the normal name is an alias. */
8690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8691 choke me
8692 #else
8693 char (*f) () = $ac_func;
8694 #endif
8695 #ifdef __cplusplus
8697 #endif
8700 main ()
8702 return f != $ac_func;
8704 return 0;
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest$ac_exeext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 eval "$as_ac_var=yes"
8729 else
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 eval "$as_ac_var=no"
8735 rm -f conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8740 if test `eval echo '${'$as_ac_var'}'` = yes; then
8741 cat >>confdefs.h <<_ACEOF
8742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8743 _ACEOF
8746 done
8757 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8760 echo "$as_me:$LINENO: checking for $ac_func" >&5
8761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8762 if eval "test \"\${$as_ac_var+set}\" = set"; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 if test x$gcc_no_link = xyes; then
8766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8768 { (exit 1); exit 1; }; }
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8778 #define $ac_func innocuous_$ac_func
8780 /* System header to define __stub macros and hopefully few prototypes,
8781 which can conflict with char $ac_func (); below.
8782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8783 <limits.h> exists even on freestanding compilers. */
8785 #ifdef __STDC__
8786 # include <limits.h>
8787 #else
8788 # include <assert.h>
8789 #endif
8791 #undef $ac_func
8793 /* Override any gcc2 internal prototype to avoid an error. */
8794 #ifdef __cplusplus
8795 extern "C"
8797 #endif
8798 /* We use char because int might match the return type of a gcc2
8799 builtin and then its argument prototype would still apply. */
8800 char $ac_func ();
8801 /* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8805 choke me
8806 #else
8807 char (*f) () = $ac_func;
8808 #endif
8809 #ifdef __cplusplus
8811 #endif
8814 main ()
8816 return f != $ac_func;
8818 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; } &&
8836 { ac_try='test -s conftest$ac_exeext'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 eval "$as_ac_var=yes"
8843 else
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8847 eval "$as_ac_var=no"
8849 rm -f conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8854 if test `eval echo '${'$as_ac_var'}'` = yes; then
8855 cat >>confdefs.h <<_ACEOF
8856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8857 _ACEOF
8860 done
8864 for ac_func in nl_langinfo setlocale
8866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8867 echo "$as_me:$LINENO: checking for $ac_func" >&5
8868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8869 if eval "test \"\${$as_ac_var+set}\" = set"; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872 if test x$gcc_no_link = xyes; then
8873 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8875 { (exit 1); exit 1; }; }
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8885 #define $ac_func innocuous_$ac_func
8887 /* System header to define __stub macros and hopefully few prototypes,
8888 which can conflict with char $ac_func (); below.
8889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8890 <limits.h> exists even on freestanding compilers. */
8892 #ifdef __STDC__
8893 # include <limits.h>
8894 #else
8895 # include <assert.h>
8896 #endif
8898 #undef $ac_func
8900 /* Override any gcc2 internal prototype to avoid an error. */
8901 #ifdef __cplusplus
8902 extern "C"
8904 #endif
8905 /* We use char because int might match the return type of a gcc2
8906 builtin and then its argument prototype would still apply. */
8907 char $ac_func ();
8908 /* The GNU C library defines this for functions which it implements
8909 to always fail with ENOSYS. Some functions are actually named
8910 something starting with __ and the normal name is an alias. */
8911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8912 choke me
8913 #else
8914 char (*f) () = $ac_func;
8915 #endif
8916 #ifdef __cplusplus
8918 #endif
8921 main ()
8923 return f != $ac_func;
8925 return 0;
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930 (eval $ac_link) 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 (eval $ac_try) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try='test -s conftest$ac_exeext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 eval "$as_ac_var=yes"
8950 else
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8954 eval "$as_ac_var=no"
8956 rm -f conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext conftest.$ac_ext
8959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8961 if test `eval echo '${'$as_ac_var'}'` = yes; then
8962 cat >>confdefs.h <<_ACEOF
8963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8964 _ACEOF
8967 done
8971 for ac_func in inet_aton inet_addr
8973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8974 echo "$as_me:$LINENO: checking for $ac_func" >&5
8975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8976 if eval "test \"\${$as_ac_var+set}\" = set"; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979 if test x$gcc_no_link = xyes; then
8980 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8982 { (exit 1); exit 1; }; }
8984 cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h. */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8992 #define $ac_func innocuous_$ac_func
8994 /* System header to define __stub macros and hopefully few prototypes,
8995 which can conflict with char $ac_func (); below.
8996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8997 <limits.h> exists even on freestanding compilers. */
8999 #ifdef __STDC__
9000 # include <limits.h>
9001 #else
9002 # include <assert.h>
9003 #endif
9005 #undef $ac_func
9007 /* Override any gcc2 internal prototype to avoid an error. */
9008 #ifdef __cplusplus
9009 extern "C"
9011 #endif
9012 /* We use char because int might match the return type of a gcc2
9013 builtin and then its argument prototype would still apply. */
9014 char $ac_func ();
9015 /* The GNU C library defines this for functions which it implements
9016 to always fail with ENOSYS. Some functions are actually named
9017 something starting with __ and the normal name is an alias. */
9018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9019 choke me
9020 #else
9021 char (*f) () = $ac_func;
9022 #endif
9023 #ifdef __cplusplus
9025 #endif
9028 main ()
9030 return f != $ac_func;
9032 return 0;
9034 _ACEOF
9035 rm -f conftest.$ac_objext conftest$ac_exeext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
9044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; } &&
9050 { ac_try='test -s conftest$ac_exeext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 eval "$as_ac_var=yes"
9057 else
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 eval "$as_ac_var=no"
9063 rm -f conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9068 if test `eval echo '${'$as_ac_var'}'` = yes; then
9069 cat >>confdefs.h <<_ACEOF
9070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9071 _ACEOF
9072 break
9074 done
9079 for ac_func in inet_pton uname inet_ntoa
9081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9082 echo "$as_me:$LINENO: checking for $ac_func" >&5
9083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9084 if eval "test \"\${$as_ac_var+set}\" = set"; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 if test x$gcc_no_link = xyes; then
9088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9090 { (exit 1); exit 1; }; }
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9100 #define $ac_func innocuous_$ac_func
9102 /* System header to define __stub macros and hopefully few prototypes,
9103 which can conflict with char $ac_func (); below.
9104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9105 <limits.h> exists even on freestanding compilers. */
9107 #ifdef __STDC__
9108 # include <limits.h>
9109 #else
9110 # include <assert.h>
9111 #endif
9113 #undef $ac_func
9115 /* Override any gcc2 internal prototype to avoid an error. */
9116 #ifdef __cplusplus
9117 extern "C"
9119 #endif
9120 /* We use char because int might match the return type of a gcc2
9121 builtin and then its argument prototype would still apply. */
9122 char $ac_func ();
9123 /* The GNU C library defines this for functions which it implements
9124 to always fail with ENOSYS. Some functions are actually named
9125 something starting with __ and the normal name is an alias. */
9126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9127 choke me
9128 #else
9129 char (*f) () = $ac_func;
9130 #endif
9131 #ifdef __cplusplus
9133 #endif
9136 main ()
9138 return f != $ac_func;
9140 return 0;
9142 _ACEOF
9143 rm -f conftest.$ac_objext conftest$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 (eval $ac_try) 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 eval "$as_ac_var=yes"
9165 else
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 eval "$as_ac_var=no"
9171 rm -f conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9176 if test `eval echo '${'$as_ac_var'}'` = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9179 _ACEOF
9182 done
9189 for ac_func in fork execvp pipe sigaction ftruncate
9191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9192 echo "$as_me:$LINENO: checking for $ac_func" >&5
9193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_var+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197 if test x$gcc_no_link = xyes; then
9198 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9200 { (exit 1); exit 1; }; }
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9210 #define $ac_func innocuous_$ac_func
9212 /* System header to define __stub macros and hopefully few prototypes,
9213 which can conflict with char $ac_func (); below.
9214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9215 <limits.h> exists even on freestanding compilers. */
9217 #ifdef __STDC__
9218 # include <limits.h>
9219 #else
9220 # include <assert.h>
9221 #endif
9223 #undef $ac_func
9225 /* Override any gcc2 internal prototype to avoid an error. */
9226 #ifdef __cplusplus
9227 extern "C"
9229 #endif
9230 /* We use char because int might match the return type of a gcc2
9231 builtin and then its argument prototype would still apply. */
9232 char $ac_func ();
9233 /* The GNU C library defines this for functions which it implements
9234 to always fail with ENOSYS. Some functions are actually named
9235 something starting with __ and the normal name is an alias. */
9236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9237 choke me
9238 #else
9239 char (*f) () = $ac_func;
9240 #endif
9241 #ifdef __cplusplus
9243 #endif
9246 main ()
9248 return f != $ac_func;
9250 return 0;
9252 _ACEOF
9253 rm -f conftest.$ac_objext conftest$ac_exeext
9254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255 (eval $ac_link) 2>conftest.er1
9256 ac_status=$?
9257 grep -v '^ *+' conftest.er1 >conftest.err
9258 rm -f conftest.er1
9259 cat conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } &&
9262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; } &&
9268 { ac_try='test -s conftest$ac_exeext'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 (eval $ac_try) 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 eval "$as_ac_var=yes"
9275 else
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9279 eval "$as_ac_var=no"
9281 rm -f conftest.err conftest.$ac_objext \
9282 conftest$ac_exeext conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9286 if test `eval echo '${'$as_ac_var'}'` = yes; then
9287 cat >>confdefs.h <<_ACEOF
9288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9289 _ACEOF
9292 done
9294 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9295 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9296 if test "${ac_cv_header_stdc+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h. */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 #include <stdlib.h>
9306 #include <stdarg.h>
9307 #include <string.h>
9308 #include <float.h>
9311 main ()
9315 return 0;
9317 _ACEOF
9318 rm -f conftest.$ac_objext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9320 (eval $ac_compile) 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest.$ac_objext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 ac_cv_header_stdc=yes
9340 else
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9344 ac_cv_header_stdc=no
9346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9348 if test $ac_cv_header_stdc = yes; then
9349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 #include <string.h>
9358 _ACEOF
9359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9360 $EGREP "memchr" >/dev/null 2>&1; then
9362 else
9363 ac_cv_header_stdc=no
9365 rm -f conftest*
9369 if test $ac_cv_header_stdc = yes; then
9370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h. */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 #include <stdlib.h>
9379 _ACEOF
9380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9381 $EGREP "free" >/dev/null 2>&1; then
9383 else
9384 ac_cv_header_stdc=no
9386 rm -f conftest*
9390 if test $ac_cv_header_stdc = yes; then
9391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9392 if test "$cross_compiling" = yes; then
9394 else
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 #include <ctype.h>
9402 #if ((' ' & 0x0FF) == 0x020)
9403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9405 #else
9406 # define ISLOWER(c) \
9407 (('a' <= (c) && (c) <= 'i') \
9408 || ('j' <= (c) && (c) <= 'r') \
9409 || ('s' <= (c) && (c) <= 'z'))
9410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9411 #endif
9413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9415 main ()
9417 int i;
9418 for (i = 0; i < 256; i++)
9419 if (XOR (islower (i), ISLOWER (i))
9420 || toupper (i) != TOUPPER (i))
9421 exit(2);
9422 exit (0);
9424 _ACEOF
9425 rm -f conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 (eval $ac_try) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
9437 else
9438 echo "$as_me: program exited with status $ac_status" >&5
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9442 ( exit $ac_status )
9443 ac_cv_header_stdc=no
9445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9449 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9450 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9451 if test $ac_cv_header_stdc = yes; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define STDC_HEADERS 1
9455 _ACEOF
9459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9469 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9470 inttypes.h stdint.h unistd.h
9472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9473 echo "$as_me:$LINENO: checking for $ac_header" >&5
9474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478 cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h. */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 $ac_includes_default
9486 #include <$ac_header>
9487 _ACEOF
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest.$ac_objext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 eval "$as_ac_Header=yes"
9510 else
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 eval "$as_ac_Header=no"
9516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9521 cat >>confdefs.h <<_ACEOF
9522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9523 _ACEOF
9527 done
9533 for ac_header in execinfo.h unistd.h dlfcn.h
9535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9537 echo "$as_me:$LINENO: checking for $ac_header" >&5
9538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9544 else
9545 # Is the header compilable?
9546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $ac_includes_default
9555 #include <$ac_header>
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest.$ac_objext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_header_compiler=yes
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 ac_header_compiler=no
9585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9587 echo "${ECHO_T}$ac_header_compiler" >&6
9589 # Is the header present?
9590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h. */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 #include <$ac_header>
9599 _ACEOF
9600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } >/dev/null; then
9608 if test -s conftest.err; then
9609 ac_cpp_err=$ac_c_preproc_warn_flag
9610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9611 else
9612 ac_cpp_err=
9614 else
9615 ac_cpp_err=yes
9617 if test -z "$ac_cpp_err"; then
9618 ac_header_preproc=yes
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_header_preproc=no
9625 rm -f conftest.err conftest.$ac_ext
9626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627 echo "${ECHO_T}$ac_header_preproc" >&6
9629 # So? What about this header?
9630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9631 yes:no: )
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9636 ac_header_preproc=yes
9638 no:yes:* )
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9652 cat <<\_ASBOX
9653 ## ---------------------------------- ##
9654 ## Report this to the libjava lists. ##
9655 ## ---------------------------------- ##
9656 _ASBOX
9658 sed "s/^/$as_me: WARNING: /" >&2
9660 esac
9661 echo "$as_me:$LINENO: checking for $ac_header" >&5
9662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 eval "$as_ac_Header=\$ac_header_preproc"
9668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9673 cat >>confdefs.h <<_ACEOF
9674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9675 _ACEOF
9679 done
9681 echo "$as_me:$LINENO: checking for backtrace" >&5
9682 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9683 if test "${ac_cv_func_backtrace+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686 if test x$gcc_no_link = xyes; then
9687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9689 { (exit 1); exit 1; }; }
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9699 #define backtrace innocuous_backtrace
9701 /* System header to define __stub macros and hopefully few prototypes,
9702 which can conflict with char backtrace (); below.
9703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9704 <limits.h> exists even on freestanding compilers. */
9706 #ifdef __STDC__
9707 # include <limits.h>
9708 #else
9709 # include <assert.h>
9710 #endif
9712 #undef backtrace
9714 /* Override any gcc2 internal prototype to avoid an error. */
9715 #ifdef __cplusplus
9716 extern "C"
9718 #endif
9719 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721 char backtrace ();
9722 /* The GNU C library defines this for functions which it implements
9723 to always fail with ENOSYS. Some functions are actually named
9724 something starting with __ and the normal name is an alias. */
9725 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9726 choke me
9727 #else
9728 char (*f) () = backtrace;
9729 #endif
9730 #ifdef __cplusplus
9732 #endif
9735 main ()
9737 return f != backtrace;
9739 return 0;
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_func_backtrace=yes
9764 else
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_func_backtrace=no
9770 rm -f conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9774 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9775 if test $ac_cv_func_backtrace = yes; then
9777 case "$host" in
9778 ia64-*-linux*)
9779 # Has broken backtrace()
9781 mips*-*-linux*)
9782 # Has broken backtrace(), but we supply our own.
9783 if test -d sysdep; then true; else mkdir -p sysdep; fi
9784 supply_backtrace=yes
9786 cat >>confdefs.h <<\_ACEOF
9787 #define HAVE_BACKTRACE 1
9788 _ACEOF
9793 cat >>confdefs.h <<\_ACEOF
9794 #define HAVE_BACKTRACE 1
9795 _ACEOF
9798 esac
9800 else
9802 case "$host" in
9803 *mingw*)
9804 # Has backtrace() defined in libgcj itself
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_BACKTRACE 1
9808 _ACEOF
9811 esac
9816 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9817 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9818 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821 ac_check_lib_save_LIBS=$LIBS
9822 LIBS="-ldl $LIBS"
9823 if test x$gcc_no_link = xyes; then
9824 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9825 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9826 { (exit 1); exit 1; }; }
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9835 /* Override any gcc2 internal prototype to avoid an error. */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 /* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9841 char dladdr ();
9843 main ()
9845 dladdr ();
9847 return 0;
9849 _ACEOF
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 (eval $ac_link) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 (eval $ac_try) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; }; then
9871 ac_cv_lib_dl_dladdr=yes
9872 else
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 ac_cv_lib_dl_dladdr=no
9878 rm -f conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9882 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9883 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9884 if test $ac_cv_lib_dl_dladdr = yes; then
9886 if test "x${disable_dladdr}" = "xyes"; then
9887 #Broken dladdr().
9888 true
9889 else
9891 cat >>confdefs.h <<\_ACEOF
9892 #define HAVE_DLADDR 1
9893 _ACEOF
9899 if test x"$build" = x"$host"; then
9900 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9901 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9902 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905 test "$cross_compiling" = yes &&
9906 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9907 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9908 { (exit 1); exit 1; }; }
9909 if test -r "/proc/self/exe"; then
9910 ac_cv_file__proc_self_exe=yes
9911 else
9912 ac_cv_file__proc_self_exe=no
9915 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9916 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9917 if test $ac_cv_file__proc_self_exe = yes; then
9919 cat >>confdefs.h <<_ACEOF
9920 #define HAVE__PROC_SELF_EXE 1
9921 _ACEOF
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_PROC_SELF_EXE 1
9927 _ACEOF
9931 else
9932 case $host in
9933 *-linux*)
9935 cat >>confdefs.h <<\_ACEOF
9936 #define HAVE_PROC_SELF_EXE 1
9937 _ACEOF
9940 esac
9944 if test "X$prefix" = "XNONE"; then
9945 acl_final_prefix="$ac_default_prefix"
9946 else
9947 acl_final_prefix="$prefix"
9949 if test "X$exec_prefix" = "XNONE"; then
9950 acl_final_exec_prefix='${prefix}'
9951 else
9952 acl_final_exec_prefix="$exec_prefix"
9954 acl_save_prefix="$prefix"
9955 prefix="$acl_final_prefix"
9956 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9957 prefix="$acl_save_prefix"
9960 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9961 if test "${with_gnu_ld+set}" = set; then
9962 withval="$with_gnu_ld"
9963 test "$withval" = no || with_gnu_ld=yes
9964 else
9965 with_gnu_ld=no
9967 # Prepare PATH_SEPARATOR.
9968 # The user is always right.
9969 if test "${PATH_SEPARATOR+set}" != set; then
9970 echo "#! /bin/sh" >conf$$.sh
9971 echo "exit 0" >>conf$$.sh
9972 chmod +x conf$$.sh
9973 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9974 PATH_SEPARATOR=';'
9975 else
9976 PATH_SEPARATOR=:
9978 rm -f conf$$.sh
9980 ac_prog=ld
9981 if test "$GCC" = yes; then
9982 # Check if gcc -print-prog-name=ld gives a path.
9983 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9984 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9985 case $host in
9986 *-*-mingw*)
9987 # gcc leaves a trailing carriage return which upsets mingw
9988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9991 esac
9992 case $ac_prog in
9993 # Accept absolute paths.
9994 [\\/]* | [A-Za-z]:[\\/]*)
9995 re_direlt='/[^/][^/]*/\.\./'
9996 # Canonicalize the path of ld
9997 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9998 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9999 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10000 done
10001 test -z "$LD" && LD="$ac_prog"
10004 # If it fails, then pretend we aren't using GCC.
10005 ac_prog=ld
10008 # If it is relative, then search for the first ld in PATH.
10009 with_gnu_ld=unknown
10011 esac
10012 elif test "$with_gnu_ld" = yes; then
10013 echo "$as_me:$LINENO: checking for GNU ld" >&5
10014 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10015 else
10016 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10017 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10019 if test "${acl_cv_path_LD+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022 if test -z "$LD"; then
10023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10024 for ac_dir in $PATH; do
10025 test -z "$ac_dir" && ac_dir=.
10026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10027 acl_cv_path_LD="$ac_dir/$ac_prog"
10028 # Check to see if the program is GNU ld. I'd rather use --version,
10029 # but apparently some GNU ld's only accept -v.
10030 # Break only if it was the GNU/non-GNU ld that we prefer.
10031 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10032 test "$with_gnu_ld" != no && break
10033 else
10034 test "$with_gnu_ld" != yes && break
10037 done
10038 IFS="$ac_save_ifs"
10039 else
10040 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10044 LD="$acl_cv_path_LD"
10045 if test -n "$LD"; then
10046 echo "$as_me:$LINENO: result: $LD" >&5
10047 echo "${ECHO_T}$LD" >&6
10048 else
10049 echo "$as_me:$LINENO: result: no" >&5
10050 echo "${ECHO_T}no" >&6
10052 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10053 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10054 { (exit 1); exit 1; }; }
10055 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10056 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10057 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10061 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10062 acl_cv_prog_gnu_ld=yes
10063 else
10064 acl_cv_prog_gnu_ld=no
10067 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10068 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10069 with_gnu_ld=$acl_cv_prog_gnu_ld
10073 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10074 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10075 if test "${acl_cv_rpath+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10079 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10080 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10081 . ./conftest.sh
10082 rm -f ./conftest.sh
10083 acl_cv_rpath=done
10086 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10087 echo "${ECHO_T}$acl_cv_rpath" >&6
10088 wl="$acl_cv_wl"
10089 libext="$acl_cv_libext"
10090 shlibext="$acl_cv_shlibext"
10091 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10092 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10093 hardcode_direct="$acl_cv_hardcode_direct"
10094 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10095 # Check whether --enable-rpath or --disable-rpath was given.
10096 if test "${enable_rpath+set}" = set; then
10097 enableval="$enable_rpath"
10099 else
10100 enable_rpath=yes
10109 use_additional=yes
10111 acl_save_prefix="$prefix"
10112 prefix="$acl_final_prefix"
10113 acl_save_exec_prefix="$exec_prefix"
10114 exec_prefix="$acl_final_exec_prefix"
10116 eval additional_includedir=\"$includedir\"
10117 eval additional_libdir=\"$libdir\"
10119 exec_prefix="$acl_save_exec_prefix"
10120 prefix="$acl_save_prefix"
10123 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10124 if test "${with_libiconv_prefix+set}" = set; then
10125 withval="$with_libiconv_prefix"
10127 if test "X$withval" = "Xno"; then
10128 use_additional=no
10129 else
10130 if test "X$withval" = "X"; then
10132 acl_save_prefix="$prefix"
10133 prefix="$acl_final_prefix"
10134 acl_save_exec_prefix="$exec_prefix"
10135 exec_prefix="$acl_final_exec_prefix"
10137 eval additional_includedir=\"$includedir\"
10138 eval additional_libdir=\"$libdir\"
10140 exec_prefix="$acl_save_exec_prefix"
10141 prefix="$acl_save_prefix"
10143 else
10144 additional_includedir="$withval/include"
10145 additional_libdir="$withval/lib"
10150 LIBICONV=
10151 LTLIBICONV=
10152 INCICONV=
10153 rpathdirs=
10154 ltrpathdirs=
10155 names_already_handled=
10156 names_next_round='iconv '
10157 while test -n "$names_next_round"; do
10158 names_this_round="$names_next_round"
10159 names_next_round=
10160 for name in $names_this_round; do
10161 already_handled=
10162 for n in $names_already_handled; do
10163 if test "$n" = "$name"; then
10164 already_handled=yes
10165 break
10167 done
10168 if test -z "$already_handled"; then
10169 names_already_handled="$names_already_handled $name"
10170 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10171 eval value=\"\$HAVE_LIB$uppername\"
10172 if test -n "$value"; then
10173 if test "$value" = yes; then
10174 eval value=\"\$LIB$uppername\"
10175 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10176 eval value=\"\$LTLIB$uppername\"
10177 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10178 else
10181 else
10182 found_dir=
10183 found_la=
10184 found_so=
10185 found_a=
10186 if test $use_additional = yes; then
10187 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10188 found_dir="$additional_libdir"
10189 found_so="$additional_libdir/lib$name.$shlibext"
10190 if test -f "$additional_libdir/lib$name.la"; then
10191 found_la="$additional_libdir/lib$name.la"
10193 else
10194 if test -f "$additional_libdir/lib$name.$libext"; then
10195 found_dir="$additional_libdir"
10196 found_a="$additional_libdir/lib$name.$libext"
10197 if test -f "$additional_libdir/lib$name.la"; then
10198 found_la="$additional_libdir/lib$name.la"
10203 if test "X$found_dir" = "X"; then
10204 for x in $LDFLAGS $LTLIBICONV; do
10206 acl_save_prefix="$prefix"
10207 prefix="$acl_final_prefix"
10208 acl_save_exec_prefix="$exec_prefix"
10209 exec_prefix="$acl_final_exec_prefix"
10210 eval x=\"$x\"
10211 exec_prefix="$acl_save_exec_prefix"
10212 prefix="$acl_save_prefix"
10214 case "$x" in
10215 -L*)
10216 dir=`echo "X$x" | sed -e 's/^X-L//'`
10217 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10218 found_dir="$dir"
10219 found_so="$dir/lib$name.$shlibext"
10220 if test -f "$dir/lib$name.la"; then
10221 found_la="$dir/lib$name.la"
10223 else
10224 if test -f "$dir/lib$name.$libext"; then
10225 found_dir="$dir"
10226 found_a="$dir/lib$name.$libext"
10227 if test -f "$dir/lib$name.la"; then
10228 found_la="$dir/lib$name.la"
10233 esac
10234 if test "X$found_dir" != "X"; then
10235 break
10237 done
10239 if test "X$found_dir" != "X"; then
10240 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10241 if test "X$found_so" != "X"; then
10242 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10243 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10244 else
10245 haveit=
10246 for x in $ltrpathdirs; do
10247 if test "X$x" = "X$found_dir"; then
10248 haveit=yes
10249 break
10251 done
10252 if test -z "$haveit"; then
10253 ltrpathdirs="$ltrpathdirs $found_dir"
10255 if test "$hardcode_direct" = yes; then
10256 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10257 else
10258 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10259 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10260 haveit=
10261 for x in $rpathdirs; do
10262 if test "X$x" = "X$found_dir"; then
10263 haveit=yes
10264 break
10266 done
10267 if test -z "$haveit"; then
10268 rpathdirs="$rpathdirs $found_dir"
10270 else
10271 haveit=
10272 for x in $LDFLAGS $LIBICONV; do
10274 acl_save_prefix="$prefix"
10275 prefix="$acl_final_prefix"
10276 acl_save_exec_prefix="$exec_prefix"
10277 exec_prefix="$acl_final_exec_prefix"
10278 eval x=\"$x\"
10279 exec_prefix="$acl_save_exec_prefix"
10280 prefix="$acl_save_prefix"
10282 if test "X$x" = "X-L$found_dir"; then
10283 haveit=yes
10284 break
10286 done
10287 if test -z "$haveit"; then
10288 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10290 if test "$hardcode_minus_L" != no; then
10291 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10292 else
10293 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10298 else
10299 if test "X$found_a" != "X"; then
10300 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10301 else
10302 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10305 additional_includedir=
10306 case "$found_dir" in
10307 */lib | */lib/)
10308 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10309 additional_includedir="$basedir/include"
10311 esac
10312 if test "X$additional_includedir" != "X"; then
10313 if test "X$additional_includedir" != "X/usr/include"; then
10314 haveit=
10315 if test "X$additional_includedir" = "X/usr/local/include"; then
10316 if test -n "$GCC"; then
10317 case $host_os in
10318 linux*) haveit=yes;;
10319 esac
10322 if test -z "$haveit"; then
10323 for x in $CPPFLAGS $INCICONV; do
10325 acl_save_prefix="$prefix"
10326 prefix="$acl_final_prefix"
10327 acl_save_exec_prefix="$exec_prefix"
10328 exec_prefix="$acl_final_exec_prefix"
10329 eval x=\"$x\"
10330 exec_prefix="$acl_save_exec_prefix"
10331 prefix="$acl_save_prefix"
10333 if test "X$x" = "X-I$additional_includedir"; then
10334 haveit=yes
10335 break
10337 done
10338 if test -z "$haveit"; then
10339 if test -d "$additional_includedir"; then
10340 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10346 if test -n "$found_la"; then
10347 save_libdir="$libdir"
10348 case "$found_la" in
10349 */* | *\\*) . "$found_la" ;;
10350 *) . "./$found_la" ;;
10351 esac
10352 libdir="$save_libdir"
10353 for dep in $dependency_libs; do
10354 case "$dep" in
10355 -L*)
10356 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10357 if test "X$additional_libdir" != "X/usr/lib"; then
10358 haveit=
10359 if test "X$additional_libdir" = "X/usr/local/lib"; then
10360 if test -n "$GCC"; then
10361 case $host_os in
10362 linux*) haveit=yes;;
10363 esac
10366 if test -z "$haveit"; then
10367 haveit=
10368 for x in $LDFLAGS $LIBICONV; do
10370 acl_save_prefix="$prefix"
10371 prefix="$acl_final_prefix"
10372 acl_save_exec_prefix="$exec_prefix"
10373 exec_prefix="$acl_final_exec_prefix"
10374 eval x=\"$x\"
10375 exec_prefix="$acl_save_exec_prefix"
10376 prefix="$acl_save_prefix"
10378 if test "X$x" = "X-L$additional_libdir"; then
10379 haveit=yes
10380 break
10382 done
10383 if test -z "$haveit"; then
10384 if test -d "$additional_libdir"; then
10385 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10388 haveit=
10389 for x in $LDFLAGS $LTLIBICONV; do
10391 acl_save_prefix="$prefix"
10392 prefix="$acl_final_prefix"
10393 acl_save_exec_prefix="$exec_prefix"
10394 exec_prefix="$acl_final_exec_prefix"
10395 eval x=\"$x\"
10396 exec_prefix="$acl_save_exec_prefix"
10397 prefix="$acl_save_prefix"
10399 if test "X$x" = "X-L$additional_libdir"; then
10400 haveit=yes
10401 break
10403 done
10404 if test -z "$haveit"; then
10405 if test -d "$additional_libdir"; then
10406 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10412 -R*)
10413 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10414 if test "$enable_rpath" != no; then
10415 haveit=
10416 for x in $rpathdirs; do
10417 if test "X$x" = "X$dir"; then
10418 haveit=yes
10419 break
10421 done
10422 if test -z "$haveit"; then
10423 rpathdirs="$rpathdirs $dir"
10425 haveit=
10426 for x in $ltrpathdirs; do
10427 if test "X$x" = "X$dir"; then
10428 haveit=yes
10429 break
10431 done
10432 if test -z "$haveit"; then
10433 ltrpathdirs="$ltrpathdirs $dir"
10437 -l*)
10438 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10440 *.la)
10441 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10444 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10445 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10447 esac
10448 done
10450 else
10451 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10452 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10456 done
10457 done
10458 if test "X$rpathdirs" != "X"; then
10459 if test -n "$hardcode_libdir_separator"; then
10460 alldirs=
10461 for found_dir in $rpathdirs; do
10462 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10463 done
10464 acl_save_libdir="$libdir"
10465 libdir="$alldirs"
10466 eval flag=\"$hardcode_libdir_flag_spec\"
10467 libdir="$acl_save_libdir"
10468 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10469 else
10470 for found_dir in $rpathdirs; do
10471 acl_save_libdir="$libdir"
10472 libdir="$found_dir"
10473 eval flag=\"$hardcode_libdir_flag_spec\"
10474 libdir="$acl_save_libdir"
10475 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10476 done
10479 if test "X$ltrpathdirs" != "X"; then
10480 for found_dir in $ltrpathdirs; do
10481 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10482 done
10491 am_save_CPPFLAGS="$CPPFLAGS"
10493 for element in $INCICONV; do
10494 haveit=
10495 for x in $CPPFLAGS; do
10497 acl_save_prefix="$prefix"
10498 prefix="$acl_final_prefix"
10499 acl_save_exec_prefix="$exec_prefix"
10500 exec_prefix="$acl_final_exec_prefix"
10501 eval x=\"$x\"
10502 exec_prefix="$acl_save_exec_prefix"
10503 prefix="$acl_save_prefix"
10505 if test "X$x" = "X$element"; then
10506 haveit=yes
10507 break
10509 done
10510 if test -z "$haveit"; then
10511 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10513 done
10516 echo "$as_me:$LINENO: checking for iconv" >&5
10517 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10518 if test "${am_cv_func_iconv+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10522 am_cv_func_iconv="no, consider installing GNU libiconv"
10523 am_cv_lib_iconv=no
10524 if test x$gcc_no_link = xyes; then
10525 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10526 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10527 { (exit 1); exit 1; }; }
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 #include <stdlib.h>
10536 #include <iconv.h>
10538 main ()
10540 iconv_t cd = iconv_open("","");
10541 iconv(cd,NULL,NULL,NULL,NULL);
10542 iconv_close(cd);
10544 return 0;
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549 (eval $ac_link) 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 am_cv_func_iconv=yes
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10574 rm -f conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 if test "$am_cv_func_iconv" != yes; then
10577 am_save_LIBS="$LIBS"
10578 LIBS="$LIBS $LIBICONV"
10579 if test x$gcc_no_link = xyes; then
10580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10582 { (exit 1); exit 1; }; }
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <stdlib.h>
10591 #include <iconv.h>
10593 main ()
10595 iconv_t cd = iconv_open("","");
10596 iconv(cd,NULL,NULL,NULL,NULL);
10597 iconv_close(cd);
10599 return 0;
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest$ac_exeext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 am_cv_lib_iconv=yes
10624 am_cv_func_iconv=yes
10625 else
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10630 rm -f conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS="$am_save_LIBS"
10636 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10637 echo "${ECHO_T}$am_cv_func_iconv" >&6
10638 if test "$am_cv_func_iconv" = yes; then
10640 cat >>confdefs.h <<\_ACEOF
10641 #define HAVE_ICONV 1
10642 _ACEOF
10645 if test "$am_cv_lib_iconv" = yes; then
10646 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10647 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10648 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10649 echo "${ECHO_T}$LIBICONV" >&6
10650 else
10651 CPPFLAGS="$am_save_CPPFLAGS"
10652 LIBICONV=
10653 LTLIBICONV=
10658 if test "$am_cv_func_iconv" = yes; then
10659 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10660 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10661 if test "${am_cv_proto_iconv+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10672 #include <stdlib.h>
10673 #include <iconv.h>
10674 extern
10675 #ifdef __cplusplus
10677 #endif
10678 #if defined(__STDC__) || defined(__cplusplus)
10679 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10680 #else
10681 size_t iconv();
10682 #endif
10685 main ()
10689 return 0;
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 am_cv_proto_iconv_arg1=""
10714 else
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 am_cv_proto_iconv_arg1="const"
10720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10721 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);"
10724 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10725 echo "$as_me:$LINENO: result: ${ac_t:-
10726 }$am_cv_proto_iconv" >&5
10727 echo "${ECHO_T}${ac_t:-
10728 }$am_cv_proto_iconv" >&6
10730 cat >>confdefs.h <<_ACEOF
10731 #define ICONV_CONST $am_cv_proto_iconv_arg1
10732 _ACEOF
10737 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10738 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10739 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 if test x$gcc_no_link = xyes; then
10743 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10744 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10745 { (exit 1); exit 1; }; }
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 #include <locale.h>
10755 main ()
10757 return LC_MESSAGES
10759 return 0;
10761 _ACEOF
10762 rm -f conftest.$ac_objext conftest$ac_exeext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10764 (eval $ac_link) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 am_cv_val_LC_MESSAGES=yes
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 am_cv_val_LC_MESSAGES=no
10790 rm -f conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10793 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10794 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10795 if test $am_cv_val_LC_MESSAGES = yes; then
10797 cat >>confdefs.h <<\_ACEOF
10798 #define HAVE_LC_MESSAGES 1
10799 _ACEOF
10803 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10804 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10805 if test "${ac_cv_struct_tm+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <sys/types.h>
10815 #include <time.h>
10818 main ()
10820 struct tm *tp; tp->tm_sec;
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_cv_struct_tm=time.h
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_cv_struct_tm=sys/time.h
10853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10855 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10856 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10857 if test $ac_cv_struct_tm = sys/time.h; then
10859 cat >>confdefs.h <<\_ACEOF
10860 #define TM_IN_SYS_TIME 1
10861 _ACEOF
10865 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10866 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10867 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 #include <sys/types.h>
10877 #include <$ac_cv_struct_tm>
10881 main ()
10883 static struct tm ac_aggr;
10884 if (ac_aggr.tm_zone)
10885 return 0;
10887 return 0;
10889 _ACEOF
10890 rm -f conftest.$ac_objext
10891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892 (eval $ac_compile) 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_member_struct_tm_tm_zone=yes
10912 else
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10916 cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h. */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10922 #include <sys/types.h>
10923 #include <$ac_cv_struct_tm>
10927 main ()
10929 static struct tm ac_aggr;
10930 if (sizeof ac_aggr.tm_zone)
10931 return 0;
10933 return 0;
10935 _ACEOF
10936 rm -f conftest.$ac_objext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938 (eval $ac_compile) 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 ac_cv_member_struct_tm_tm_zone=yes
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 ac_cv_member_struct_tm_tm_zone=no
10964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10969 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10970 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10972 cat >>confdefs.h <<_ACEOF
10973 #define HAVE_STRUCT_TM_TM_ZONE 1
10974 _ACEOF
10979 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10981 cat >>confdefs.h <<\_ACEOF
10982 #define HAVE_TM_ZONE 1
10983 _ACEOF
10985 else
10986 echo "$as_me:$LINENO: checking for tzname" >&5
10987 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10988 if test "${ac_cv_var_tzname+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991 if test x$gcc_no_link = xyes; then
10992 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10994 { (exit 1); exit 1; }; }
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h. */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 #include <time.h>
11003 #ifndef tzname /* For SGI. */
11004 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11005 #endif
11008 main ()
11010 atoi(*tzname);
11012 return 0;
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11017 (eval $ac_link) 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest$ac_exeext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 ac_cv_var_tzname=yes
11037 else
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_cv_var_tzname=no
11043 rm -f conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11046 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11047 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11048 if test $ac_cv_var_tzname = yes; then
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_TZNAME 1
11052 _ACEOF
11060 for ac_func in gethostbyname_r
11062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11063 echo "$as_me:$LINENO: checking for $ac_func" >&5
11064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11065 if eval "test \"\${$as_ac_var+set}\" = set"; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 else
11068 if test x$gcc_no_link = xyes; then
11069 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11070 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11071 { (exit 1); exit 1; }; }
11073 cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h. */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11081 #define $ac_func innocuous_$ac_func
11083 /* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char $ac_func (); below.
11085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11086 <limits.h> exists even on freestanding compilers. */
11088 #ifdef __STDC__
11089 # include <limits.h>
11090 #else
11091 # include <assert.h>
11092 #endif
11094 #undef $ac_func
11096 /* Override any gcc2 internal prototype to avoid an error. */
11097 #ifdef __cplusplus
11098 extern "C"
11100 #endif
11101 /* We use char because int might match the return type of a gcc2
11102 builtin and then its argument prototype would still apply. */
11103 char $ac_func ();
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11108 choke me
11109 #else
11110 char (*f) () = $ac_func;
11111 #endif
11112 #ifdef __cplusplus
11114 #endif
11117 main ()
11119 return f != $ac_func;
11121 return 0;
11123 _ACEOF
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; } &&
11139 { ac_try='test -s conftest$ac_exeext'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 eval "$as_ac_var=yes"
11146 else
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 eval "$as_ac_var=no"
11152 rm -f conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11157 if test `eval echo '${'$as_ac_var'}'` = yes; then
11158 cat >>confdefs.h <<_ACEOF
11159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11160 _ACEOF
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_GETHOSTBYNAME_R 1
11165 _ACEOF
11167 # There are two different kinds of gethostbyname_r.
11168 # We look for the one that returns `int'.
11169 # Hopefully this check is robust enough.
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h. */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 #include <netdb.h>
11178 _ACEOF
11179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11180 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11183 cat >>confdefs.h <<\_ACEOF
11184 #define GETHOSTBYNAME_R_RETURNS_INT 1
11185 _ACEOF
11188 rm -f conftest*
11191 case " $GCINCS " in
11192 *" -D_REENTRANT "*) ;;
11194 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11195 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11196 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199 ac_ext=cc
11200 ac_cpp='$CXXCPP $CPPFLAGS'
11201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <netdb.h>
11213 main ()
11215 gethostbyname_r("", 0, 0);
11217 return 0;
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>conftest.er1
11223 ac_status=$?
11224 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest.$ac_objext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 libjava_cv_gethostbyname_r_needs_reentrant=no
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 CPPFLAGS_SAVE="$CPPFLAGS"
11247 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h. */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #include <netdb.h>
11256 main ()
11258 gethostbyname_r("", 0, 0);
11260 return 0;
11262 _ACEOF
11263 rm -f conftest.$ac_objext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265 (eval $ac_compile) 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 libjava_cv_gethostbyname_r_needs_reentrant=yes
11285 else
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 libjava_cv_gethostbyname_r_needs_reentrant=fail
11291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11292 CPPFLAGS="$CPPFLAGS_SAVE"
11295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11296 ac_ext=c
11297 ac_cpp='$CPP $CPPFLAGS'
11298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11304 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11305 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11306 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11308 cat >>confdefs.h <<\_ACEOF
11309 #define _REENTRANT 1
11310 _ACEOF
11314 esac
11316 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11317 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11318 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11328 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11329 # define _REENTRANT 1
11330 #endif
11331 #include <netdb.h>
11333 main ()
11335 struct hostent_data data;
11337 return 0;
11339 _ACEOF
11340 rm -f conftest.$ac_objext
11341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11342 (eval $ac_compile) 2>conftest.er1
11343 ac_status=$?
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 libjava_cv_struct_hostent_data=yes
11362 else
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 libjava_cv_struct_hostent_data=no
11368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11370 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11371 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11372 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_STRUCT_HOSTENT_DATA 1
11376 _ACEOF
11381 done
11384 # FIXME: libjava source code expects to find a prototype for
11385 # gethostbyaddr_r in netdb.h. The outer check ensures that
11386 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11387 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11388 # linkage check is enough, yet C++ code requires proper prototypes.)
11389 cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h. */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11395 #include <netdb.h>
11397 _ACEOF
11398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11399 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11402 for ac_func in gethostbyaddr_r
11404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_func" >&5
11406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_var+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 if test x$gcc_no_link = xyes; then
11411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11413 { (exit 1); exit 1; }; }
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11423 #define $ac_func innocuous_$ac_func
11425 /* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func (); below.
11427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11428 <limits.h> exists even on freestanding compilers. */
11430 #ifdef __STDC__
11431 # include <limits.h>
11432 #else
11433 # include <assert.h>
11434 #endif
11436 #undef $ac_func
11438 /* Override any gcc2 internal prototype to avoid an error. */
11439 #ifdef __cplusplus
11440 extern "C"
11442 #endif
11443 /* We use char because int might match the return type of a gcc2
11444 builtin and then its argument prototype would still apply. */
11445 char $ac_func ();
11446 /* The GNU C library defines this for functions which it implements
11447 to always fail with ENOSYS. Some functions are actually named
11448 something starting with __ and the normal name is an alias. */
11449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11450 choke me
11451 #else
11452 char (*f) () = $ac_func;
11453 #endif
11454 #ifdef __cplusplus
11456 #endif
11459 main ()
11461 return f != $ac_func;
11463 return 0;
11465 _ACEOF
11466 rm -f conftest.$ac_objext conftest$ac_exeext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468 (eval $ac_link) 2>conftest.er1
11469 ac_status=$?
11470 grep -v '^ *+' conftest.er1 >conftest.err
11471 rm -f conftest.er1
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 eval "$as_ac_var=yes"
11488 else
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 eval "$as_ac_var=no"
11494 rm -f conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11499 if test `eval echo '${'$as_ac_var'}'` = yes; then
11500 cat >>confdefs.h <<_ACEOF
11501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11502 _ACEOF
11505 cat >>confdefs.h <<\_ACEOF
11506 #define HAVE_GETHOSTBYADDR_R 1
11507 _ACEOF
11509 # There are two different kinds of gethostbyaddr_r.
11510 # We look for the one that returns `int'.
11511 # Hopefully this check is robust enough.
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h. */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 #include <netdb.h>
11520 _ACEOF
11521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11522 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11525 cat >>confdefs.h <<\_ACEOF
11526 #define GETHOSTBYADDR_R_RETURNS_INT 1
11527 _ACEOF
11530 rm -f conftest*
11533 done
11536 rm -f conftest*
11540 for ac_func in gethostname
11542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543 echo "$as_me:$LINENO: checking for $ac_func" >&5
11544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11545 if eval "test \"\${$as_ac_var+set}\" = set"; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548 if test x$gcc_no_link = xyes; then
11549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11551 { (exit 1); exit 1; }; }
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11561 #define $ac_func innocuous_$ac_func
11563 /* System header to define __stub macros and hopefully few prototypes,
11564 which can conflict with char $ac_func (); below.
11565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11566 <limits.h> exists even on freestanding compilers. */
11568 #ifdef __STDC__
11569 # include <limits.h>
11570 #else
11571 # include <assert.h>
11572 #endif
11574 #undef $ac_func
11576 /* Override any gcc2 internal prototype to avoid an error. */
11577 #ifdef __cplusplus
11578 extern "C"
11580 #endif
11581 /* We use char because int might match the return type of a gcc2
11582 builtin and then its argument prototype would still apply. */
11583 char $ac_func ();
11584 /* The GNU C library defines this for functions which it implements
11585 to always fail with ENOSYS. Some functions are actually named
11586 something starting with __ and the normal name is an alias. */
11587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11588 choke me
11589 #else
11590 char (*f) () = $ac_func;
11591 #endif
11592 #ifdef __cplusplus
11594 #endif
11597 main ()
11599 return f != $ac_func;
11601 return 0;
11603 _ACEOF
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606 (eval $ac_link) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest$ac_exeext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 eval "$as_ac_var=yes"
11626 else
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 eval "$as_ac_var=no"
11632 rm -f conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11637 if test `eval echo '${'$as_ac_var'}'` = yes; then
11638 cat >>confdefs.h <<_ACEOF
11639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11640 _ACEOF
11643 cat >>confdefs.h <<\_ACEOF
11644 #define HAVE_GETHOSTNAME 1
11645 _ACEOF
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <unistd.h>
11655 _ACEOF
11656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11657 $EGREP "gethostname" >/dev/null 2>&1; then
11660 cat >>confdefs.h <<\_ACEOF
11661 #define HAVE_GETHOSTNAME_DECL 1
11662 _ACEOF
11665 rm -f conftest*
11668 done
11672 for ac_func in usleep
11674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11675 echo "$as_me:$LINENO: checking for $ac_func" >&5
11676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11677 if eval "test \"\${$as_ac_var+set}\" = set"; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680 if test x$gcc_no_link = xyes; then
11681 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11683 { (exit 1); exit 1; }; }
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11693 #define $ac_func innocuous_$ac_func
11695 /* System header to define __stub macros and hopefully few prototypes,
11696 which can conflict with char $ac_func (); below.
11697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11698 <limits.h> exists even on freestanding compilers. */
11700 #ifdef __STDC__
11701 # include <limits.h>
11702 #else
11703 # include <assert.h>
11704 #endif
11706 #undef $ac_func
11708 /* Override any gcc2 internal prototype to avoid an error. */
11709 #ifdef __cplusplus
11710 extern "C"
11712 #endif
11713 /* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11715 char $ac_func ();
11716 /* The GNU C library defines this for functions which it implements
11717 to always fail with ENOSYS. Some functions are actually named
11718 something starting with __ and the normal name is an alias. */
11719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11720 choke me
11721 #else
11722 char (*f) () = $ac_func;
11723 #endif
11724 #ifdef __cplusplus
11726 #endif
11729 main ()
11731 return f != $ac_func;
11733 return 0;
11735 _ACEOF
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738 (eval $ac_link) 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 eval "$as_ac_var=yes"
11758 else
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 eval "$as_ac_var=no"
11764 rm -f conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11769 if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11772 _ACEOF
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 #include <unistd.h>
11782 _ACEOF
11783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11784 $EGREP "usleep" >/dev/null 2>&1; then
11787 cat >>confdefs.h <<\_ACEOF
11788 #define HAVE_USLEEP_DECL 1
11789 _ACEOF
11792 rm -f conftest*
11795 done
11798 # Look for these functions in the thread library, but only bother
11799 # if using POSIX threads.
11800 if test "$THREADS" = posix; then
11801 save_LIBS="$LIBS"
11802 LIBS="$LIBS $THREADLIBS"
11803 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11804 # E.g., Solaris.
11807 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11810 echo "$as_me:$LINENO: checking for $ac_func" >&5
11811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11812 if eval "test \"\${$as_ac_var+set}\" = set"; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815 if test x$gcc_no_link = xyes; then
11816 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11818 { (exit 1); exit 1; }; }
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11828 #define $ac_func innocuous_$ac_func
11830 /* System header to define __stub macros and hopefully few prototypes,
11831 which can conflict with char $ac_func (); below.
11832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11833 <limits.h> exists even on freestanding compilers. */
11835 #ifdef __STDC__
11836 # include <limits.h>
11837 #else
11838 # include <assert.h>
11839 #endif
11841 #undef $ac_func
11843 /* Override any gcc2 internal prototype to avoid an error. */
11844 #ifdef __cplusplus
11845 extern "C"
11847 #endif
11848 /* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850 char $ac_func ();
11851 /* The GNU C library defines this for functions which it implements
11852 to always fail with ENOSYS. Some functions are actually named
11853 something starting with __ and the normal name is an alias. */
11854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11855 choke me
11856 #else
11857 char (*f) () = $ac_func;
11858 #endif
11859 #ifdef __cplusplus
11861 #endif
11864 main ()
11866 return f != $ac_func;
11868 return 0;
11870 _ACEOF
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11873 (eval $ac_link) 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; } &&
11886 { ac_try='test -s conftest$ac_exeext'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 eval "$as_ac_var=yes"
11893 else
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 eval "$as_ac_var=no"
11899 rm -f conftest.err conftest.$ac_objext \
11900 conftest$ac_exeext conftest.$ac_ext
11902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11904 if test `eval echo '${'$as_ac_var'}'` = yes; then
11905 cat >>confdefs.h <<_ACEOF
11906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11907 _ACEOF
11910 done
11913 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11914 # Solaris 7 the name librt is preferred.
11916 for ac_func in sched_yield
11918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919 echo "$as_me:$LINENO: checking for $ac_func" >&5
11920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11921 if eval "test \"\${$as_ac_var+set}\" = set"; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924 if test x$gcc_no_link = xyes; then
11925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11927 { (exit 1); exit 1; }; }
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11937 #define $ac_func innocuous_$ac_func
11939 /* System header to define __stub macros and hopefully few prototypes,
11940 which can conflict with char $ac_func (); below.
11941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11942 <limits.h> exists even on freestanding compilers. */
11944 #ifdef __STDC__
11945 # include <limits.h>
11946 #else
11947 # include <assert.h>
11948 #endif
11950 #undef $ac_func
11952 /* Override any gcc2 internal prototype to avoid an error. */
11953 #ifdef __cplusplus
11954 extern "C"
11956 #endif
11957 /* We use char because int might match the return type of a gcc2
11958 builtin and then its argument prototype would still apply. */
11959 char $ac_func ();
11960 /* The GNU C library defines this for functions which it implements
11961 to always fail with ENOSYS. Some functions are actually named
11962 something starting with __ and the normal name is an alias. */
11963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11964 choke me
11965 #else
11966 char (*f) () = $ac_func;
11967 #endif
11968 #ifdef __cplusplus
11970 #endif
11973 main ()
11975 return f != $ac_func;
11977 return 0;
11979 _ACEOF
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11982 (eval $ac_link) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest$ac_exeext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 eval "$as_ac_var=yes"
12002 else
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 eval "$as_ac_var=no"
12008 rm -f conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12013 if test `eval echo '${'$as_ac_var'}'` = yes; then
12014 cat >>confdefs.h <<_ACEOF
12015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12016 _ACEOF
12018 else
12020 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12021 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12022 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025 ac_check_lib_save_LIBS=$LIBS
12026 LIBS="-lrt $LIBS"
12027 if test x$gcc_no_link = xyes; then
12028 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12030 { (exit 1); exit 1; }; }
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h. */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12039 /* Override any gcc2 internal prototype to avoid an error. */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12045 char sched_yield ();
12047 main ()
12049 sched_yield ();
12051 return 0;
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; } &&
12069 { ac_try='test -s conftest$ac_exeext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_lib_rt_sched_yield=yes
12076 else
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_cv_lib_rt_sched_yield=no
12082 rm -f conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
12084 LIBS=$ac_check_lib_save_LIBS
12086 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12087 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12088 if test $ac_cv_lib_rt_sched_yield = yes; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_SCHED_YIELD 1
12092 _ACEOF
12094 THREADLIBS="$THREADLIBS -lrt"
12095 THREADSPEC="$THREADSPEC -lrt"
12096 else
12098 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12099 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12100 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103 ac_check_lib_save_LIBS=$LIBS
12104 LIBS="-lposix4 $LIBS"
12105 if test x$gcc_no_link = xyes; then
12106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12108 { (exit 1); exit 1; }; }
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h. */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12117 /* Override any gcc2 internal prototype to avoid an error. */
12118 #ifdef __cplusplus
12119 extern "C"
12120 #endif
12121 /* We use char because int might match the return type of a gcc2
12122 builtin and then its argument prototype would still apply. */
12123 char sched_yield ();
12125 main ()
12127 sched_yield ();
12129 return 0;
12131 _ACEOF
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134 (eval $ac_link) 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 ac_cv_lib_posix4_sched_yield=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 ac_cv_lib_posix4_sched_yield=no
12160 rm -f conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12164 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12165 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12166 if test $ac_cv_lib_posix4_sched_yield = yes; then
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_SCHED_YIELD 1
12170 _ACEOF
12172 THREADLIBS="$THREADLIBS -lposix4"
12173 THREADSPEC="$THREADSPEC -lposix4"
12179 done
12181 LIBS="$save_LIBS"
12183 # We can save a little space at runtime if the mutex has m_count
12184 # or __m_count. This is a nice hack for Linux.
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 #include <pthread.h>
12193 main ()
12196 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12199 return 0;
12201 _ACEOF
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest.$ac_objext'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12224 cat >>confdefs.h <<\_ACEOF
12225 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12226 _ACEOF
12228 else
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 #include <pthread.h>
12241 main ()
12244 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12247 return 0;
12249 _ACEOF
12250 rm -f conftest.$ac_objext
12251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12252 (eval $ac_compile) 2>conftest.er1
12253 ac_status=$?
12254 grep -v '^ *+' conftest.er1 >conftest.err
12255 rm -f conftest.er1
12256 cat conftest.err >&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
12259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest.$ac_objext'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12272 cat >>confdefs.h <<\_ACEOF
12273 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12274 _ACEOF
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12286 # We require a way to get the time.
12287 time_found=no
12291 for ac_func in gettimeofday time ftime
12293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12294 echo "$as_me:$LINENO: checking for $ac_func" >&5
12295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12296 if eval "test \"\${$as_ac_var+set}\" = set"; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299 if test x$gcc_no_link = xyes; then
12300 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12301 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12302 { (exit 1); exit 1; }; }
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12312 #define $ac_func innocuous_$ac_func
12314 /* System header to define __stub macros and hopefully few prototypes,
12315 which can conflict with char $ac_func (); below.
12316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317 <limits.h> exists even on freestanding compilers. */
12319 #ifdef __STDC__
12320 # include <limits.h>
12321 #else
12322 # include <assert.h>
12323 #endif
12325 #undef $ac_func
12327 /* Override any gcc2 internal prototype to avoid an error. */
12328 #ifdef __cplusplus
12329 extern "C"
12331 #endif
12332 /* We use char because int might match the return type of a gcc2
12333 builtin and then its argument prototype would still apply. */
12334 char $ac_func ();
12335 /* The GNU C library defines this for functions which it implements
12336 to always fail with ENOSYS. Some functions are actually named
12337 something starting with __ and the normal name is an alias. */
12338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12339 choke me
12340 #else
12341 char (*f) () = $ac_func;
12342 #endif
12343 #ifdef __cplusplus
12345 #endif
12348 main ()
12350 return f != $ac_func;
12352 return 0;
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 eval "$as_ac_var=yes"
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 eval "$as_ac_var=no"
12383 rm -f conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12388 if test `eval echo '${'$as_ac_var'}'` = yes; then
12389 cat >>confdefs.h <<_ACEOF
12390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12391 _ACEOF
12392 time_found=yes
12394 done
12396 if test "$time_found" = no; then
12397 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12398 echo "$as_me: error: no function found to get the time" >&2;}
12399 { (exit 1); exit 1; }; }
12403 for ac_func in memmove
12405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12406 echo "$as_me:$LINENO: checking for $ac_func" >&5
12407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12408 if eval "test \"\${$as_ac_var+set}\" = set"; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411 if test x$gcc_no_link = xyes; then
12412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12414 { (exit 1); exit 1; }; }
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h. */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12424 #define $ac_func innocuous_$ac_func
12426 /* System header to define __stub macros and hopefully few prototypes,
12427 which can conflict with char $ac_func (); below.
12428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12429 <limits.h> exists even on freestanding compilers. */
12431 #ifdef __STDC__
12432 # include <limits.h>
12433 #else
12434 # include <assert.h>
12435 #endif
12437 #undef $ac_func
12439 /* Override any gcc2 internal prototype to avoid an error. */
12440 #ifdef __cplusplus
12441 extern "C"
12443 #endif
12444 /* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12446 char $ac_func ();
12447 /* The GNU C library defines this for functions which it implements
12448 to always fail with ENOSYS. Some functions are actually named
12449 something starting with __ and the normal name is an alias. */
12450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12451 choke me
12452 #else
12453 char (*f) () = $ac_func;
12454 #endif
12455 #ifdef __cplusplus
12457 #endif
12460 main ()
12462 return f != $ac_func;
12464 return 0;
12466 _ACEOF
12467 rm -f conftest.$ac_objext conftest$ac_exeext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469 (eval $ac_link) 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 eval "$as_ac_var=yes"
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 eval "$as_ac_var=no"
12495 rm -f conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12500 if test `eval echo '${'$as_ac_var'}'` = yes; then
12501 cat >>confdefs.h <<_ACEOF
12502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12503 _ACEOF
12506 done
12509 # We require memcpy.
12510 memcpy_found=no
12512 for ac_func in memcpy
12514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12515 echo "$as_me:$LINENO: checking for $ac_func" >&5
12516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12517 if eval "test \"\${$as_ac_var+set}\" = set"; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520 if test x$gcc_no_link = xyes; then
12521 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12522 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12523 { (exit 1); exit 1; }; }
12525 cat >conftest.$ac_ext <<_ACEOF
12526 /* confdefs.h. */
12527 _ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12533 #define $ac_func innocuous_$ac_func
12535 /* System header to define __stub macros and hopefully few prototypes,
12536 which can conflict with char $ac_func (); below.
12537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12538 <limits.h> exists even on freestanding compilers. */
12540 #ifdef __STDC__
12541 # include <limits.h>
12542 #else
12543 # include <assert.h>
12544 #endif
12546 #undef $ac_func
12548 /* Override any gcc2 internal prototype to avoid an error. */
12549 #ifdef __cplusplus
12550 extern "C"
12552 #endif
12553 /* We use char because int might match the return type of a gcc2
12554 builtin and then its argument prototype would still apply. */
12555 char $ac_func ();
12556 /* The GNU C library defines this for functions which it implements
12557 to always fail with ENOSYS. Some functions are actually named
12558 something starting with __ and the normal name is an alias. */
12559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12560 choke me
12561 #else
12562 char (*f) () = $ac_func;
12563 #endif
12564 #ifdef __cplusplus
12566 #endif
12569 main ()
12571 return f != $ac_func;
12573 return 0;
12575 _ACEOF
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578 (eval $ac_link) 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } &&
12591 { ac_try='test -s conftest$ac_exeext'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 eval "$as_ac_var=yes"
12598 else
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 eval "$as_ac_var=no"
12604 rm -f conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12609 if test `eval echo '${'$as_ac_var'}'` = yes; then
12610 cat >>confdefs.h <<_ACEOF
12611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12612 _ACEOF
12613 memcpy_found=yes
12615 done
12617 if test "$memcpy_found" = no; then
12618 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12619 echo "$as_me: error: memcpy is required" >&2;}
12620 { (exit 1); exit 1; }; }
12623 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12624 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12625 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628 ac_check_lib_save_LIBS=$LIBS
12629 LIBS="-ldl $LIBS"
12630 if test x$gcc_no_link = xyes; then
12631 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12632 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12633 { (exit 1); exit 1; }; }
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12642 /* Override any gcc2 internal prototype to avoid an error. */
12643 #ifdef __cplusplus
12644 extern "C"
12645 #endif
12646 /* We use char because int might match the return type of a gcc2
12647 builtin and then its argument prototype would still apply. */
12648 char dlopen ();
12650 main ()
12652 dlopen ();
12654 return 0;
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest$ac_exeext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_lib_dl_dlopen=yes
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_cv_lib_dl_dlopen=no
12685 rm -f conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687 LIBS=$ac_check_lib_save_LIBS
12689 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12690 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12691 if test $ac_cv_lib_dl_dlopen = yes; then
12694 cat >>confdefs.h <<\_ACEOF
12695 #define HAVE_DLOPEN 1
12696 _ACEOF
12701 # Some library-finding code we stole from Tcl.
12702 #--------------------------------------------------------------------
12703 # Check for the existence of the -lsocket and -lnsl libraries.
12704 # The order here is important, so that they end up in the right
12705 # order in the command line generated by make. Here are some
12706 # special considerations:
12707 # 1. Use "connect" and "accept" to check for -lsocket, and
12708 # "gethostbyname" to check for -lnsl.
12709 # 2. Use each function name only once: can't redo a check because
12710 # autoconf caches the results of the last check and won't redo it.
12711 # 3. Use -lnsl and -lsocket only if they supply procedures that
12712 # aren't already present in the normal libraries. This is because
12713 # IRIX 5.2 has libraries, but they aren't needed and they're
12714 # bogus: they goof up name resolution if used.
12715 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12716 # To get around this problem, check for both libraries together
12717 # if -lsocket doesn't work by itself.
12718 #--------------------------------------------------------------------
12720 echo "$as_me:$LINENO: checking for socket libraries" >&5
12721 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12722 if test "${gcj_cv_lib_sockets+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725 gcj_cv_lib_sockets=
12726 gcj_checkBoth=0
12727 unset ac_cv_func_connect
12728 echo "$as_me:$LINENO: checking for connect" >&5
12729 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12730 if test "${ac_cv_func_connect+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733 if test x$gcc_no_link = xyes; then
12734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12736 { (exit 1); exit 1; }; }
12738 cat >conftest.$ac_ext <<_ACEOF
12739 /* confdefs.h. */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12746 #define connect innocuous_connect
12748 /* System header to define __stub macros and hopefully few prototypes,
12749 which can conflict with char connect (); below.
12750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12751 <limits.h> exists even on freestanding compilers. */
12753 #ifdef __STDC__
12754 # include <limits.h>
12755 #else
12756 # include <assert.h>
12757 #endif
12759 #undef connect
12761 /* Override any gcc2 internal prototype to avoid an error. */
12762 #ifdef __cplusplus
12763 extern "C"
12765 #endif
12766 /* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12768 char connect ();
12769 /* The GNU C library defines this for functions which it implements
12770 to always fail with ENOSYS. Some functions are actually named
12771 something starting with __ and the normal name is an alias. */
12772 #if defined (__stub_connect) || defined (__stub___connect)
12773 choke me
12774 #else
12775 char (*f) () = connect;
12776 #endif
12777 #ifdef __cplusplus
12779 #endif
12782 main ()
12784 return f != connect;
12786 return 0;
12788 _ACEOF
12789 rm -f conftest.$ac_objext conftest$ac_exeext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791 (eval $ac_link) 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest$ac_exeext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_cv_func_connect=yes
12811 else
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_cv_func_connect=no
12817 rm -f conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12820 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12821 echo "${ECHO_T}$ac_cv_func_connect" >&6
12822 if test $ac_cv_func_connect = yes; then
12823 gcj_checkSocket=0
12824 else
12825 gcj_checkSocket=1
12828 if test "$gcj_checkSocket" = 1; then
12829 unset ac_cv_func_connect
12830 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12831 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12832 if test "${ac_cv_lib_socket_main+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835 ac_check_lib_save_LIBS=$LIBS
12836 LIBS="-lsocket $LIBS"
12837 if test x$gcc_no_link = xyes; then
12838 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12839 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12840 { (exit 1); exit 1; }; }
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h. */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12851 main ()
12853 main ();
12855 return 0;
12857 _ACEOF
12858 rm -f conftest.$ac_objext conftest$ac_exeext
12859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12860 (eval $ac_link) 2>conftest.er1
12861 ac_status=$?
12862 grep -v '^ *+' conftest.er1 >conftest.err
12863 rm -f conftest.er1
12864 cat conftest.err >&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; } &&
12873 { ac_try='test -s conftest$ac_exeext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12876 ac_status=$?
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 ac_cv_lib_socket_main=yes
12880 else
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12884 ac_cv_lib_socket_main=no
12886 rm -f conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LIBS=$ac_check_lib_save_LIBS
12890 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12891 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12892 if test $ac_cv_lib_socket_main = yes; then
12893 gcj_cv_lib_sockets="-lsocket"
12894 else
12895 gcj_checkBoth=1
12899 if test "$gcj_checkBoth" = 1; then
12900 gcj_oldLibs=$LIBS
12901 LIBS="$LIBS -lsocket -lnsl"
12902 unset ac_cv_func_accept
12903 echo "$as_me:$LINENO: checking for accept" >&5
12904 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12905 if test "${ac_cv_func_accept+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908 if test x$gcc_no_link = xyes; then
12909 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12910 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12911 { (exit 1); exit 1; }; }
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h. */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12919 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12921 #define accept innocuous_accept
12923 /* System header to define __stub macros and hopefully few prototypes,
12924 which can conflict with char accept (); below.
12925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12926 <limits.h> exists even on freestanding compilers. */
12928 #ifdef __STDC__
12929 # include <limits.h>
12930 #else
12931 # include <assert.h>
12932 #endif
12934 #undef accept
12936 /* Override any gcc2 internal prototype to avoid an error. */
12937 #ifdef __cplusplus
12938 extern "C"
12940 #endif
12941 /* We use char because int might match the return type of a gcc2
12942 builtin and then its argument prototype would still apply. */
12943 char accept ();
12944 /* The GNU C library defines this for functions which it implements
12945 to always fail with ENOSYS. Some functions are actually named
12946 something starting with __ and the normal name is an alias. */
12947 #if defined (__stub_accept) || defined (__stub___accept)
12948 choke me
12949 #else
12950 char (*f) () = accept;
12951 #endif
12952 #ifdef __cplusplus
12954 #endif
12957 main ()
12959 return f != accept;
12961 return 0;
12963 _ACEOF
12964 rm -f conftest.$ac_objext conftest$ac_exeext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12966 (eval $ac_link) 2>conftest.er1
12967 ac_status=$?
12968 grep -v '^ *+' conftest.er1 >conftest.err
12969 rm -f conftest.er1
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_func_accept=yes
12986 else
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_cv_func_accept=no
12992 rm -f conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12995 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12996 echo "${ECHO_T}$ac_cv_func_accept" >&6
12997 if test $ac_cv_func_accept = yes; then
12998 gcj_checkNsl=0
12999 gcj_cv_lib_sockets="-lsocket -lnsl"
13002 unset ac_cv_func_accept
13003 LIBS=$gcj_oldLibs
13005 unset ac_cv_func_gethostbyname
13006 gcj_oldLibs=$LIBS
13007 LIBS="$LIBS $gcj_cv_lib_sockets"
13008 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13009 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13010 if test "${ac_cv_func_gethostbyname+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013 if test x$gcc_no_link = xyes; then
13014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13016 { (exit 1); exit 1; }; }
13018 cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h. */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13026 #define gethostbyname innocuous_gethostbyname
13028 /* System header to define __stub macros and hopefully few prototypes,
13029 which can conflict with char gethostbyname (); below.
13030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13031 <limits.h> exists even on freestanding compilers. */
13033 #ifdef __STDC__
13034 # include <limits.h>
13035 #else
13036 # include <assert.h>
13037 #endif
13039 #undef gethostbyname
13041 /* Override any gcc2 internal prototype to avoid an error. */
13042 #ifdef __cplusplus
13043 extern "C"
13045 #endif
13046 /* We use char because int might match the return type of a gcc2
13047 builtin and then its argument prototype would still apply. */
13048 char gethostbyname ();
13049 /* The GNU C library defines this for functions which it implements
13050 to always fail with ENOSYS. Some functions are actually named
13051 something starting with __ and the normal name is an alias. */
13052 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13053 choke me
13054 #else
13055 char (*f) () = gethostbyname;
13056 #endif
13057 #ifdef __cplusplus
13059 #endif
13062 main ()
13064 return f != gethostbyname;
13066 return 0;
13068 _ACEOF
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13071 (eval $ac_link) 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest$ac_exeext'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13087 ac_status=$?
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 ac_cv_func_gethostbyname=yes
13091 else
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13095 ac_cv_func_gethostbyname=no
13097 rm -f conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13100 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13101 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13102 if test $ac_cv_func_gethostbyname = yes; then
13104 else
13105 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13106 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13107 if test "${ac_cv_lib_nsl_main+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110 ac_check_lib_save_LIBS=$LIBS
13111 LIBS="-lnsl $LIBS"
13112 if test x$gcc_no_link = xyes; then
13113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13115 { (exit 1); exit 1; }; }
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h. */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13126 main ()
13128 main ();
13130 return 0;
13132 _ACEOF
13133 rm -f conftest.$ac_objext conftest$ac_exeext
13134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13135 (eval $ac_link) 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; } &&
13148 { ac_try='test -s conftest$ac_exeext'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_lib_nsl_main=yes
13155 else
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ac_cv_lib_nsl_main=no
13161 rm -f conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13163 LIBS=$ac_check_lib_save_LIBS
13165 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13166 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13167 if test $ac_cv_lib_nsl_main = yes; then
13168 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13173 unset ac_cv_func_gethostbyname
13174 LIBS=$gcj_oldLIBS
13177 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13178 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13179 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13181 if test "$with_system_zlib" = yes; then
13182 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13183 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13184 if test "${ac_cv_lib_z_deflate+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187 ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-lz $LIBS"
13189 if test x$gcc_no_link = xyes; then
13190 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13192 { (exit 1); exit 1; }; }
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h. */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 /* Override any gcc2 internal prototype to avoid an error. */
13202 #ifdef __cplusplus
13203 extern "C"
13204 #endif
13205 /* We use char because int might match the return type of a gcc2
13206 builtin and then its argument prototype would still apply. */
13207 char deflate ();
13209 main ()
13211 deflate ();
13213 return 0;
13215 _ACEOF
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest$ac_exeext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 ac_cv_lib_z_deflate=yes
13238 else
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 ac_cv_lib_z_deflate=no
13244 rm -f conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13248 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13249 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13250 if test $ac_cv_lib_z_deflate = yes; then
13251 ZLIBSPEC=-lz
13252 else
13253 ZLIBSPEC=
13258 # Test for Gtk stuff, if asked for.
13259 if test "$use_gtk_awt" = yes; then
13261 succeeded=no
13263 if test -z "$PKG_CONFIG"; then
13264 # Extract the first word of "pkg-config", so it can be a program name with args.
13265 set dummy pkg-config; ac_word=$2
13266 echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13268 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271 case $PKG_CONFIG in
13272 [\\/]* | ?:[\\/]*)
13273 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13279 IFS=$as_save_IFS
13280 test -z "$as_dir" && as_dir=.
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13283 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13285 break 2
13287 done
13288 done
13290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13292 esac
13294 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13296 if test -n "$PKG_CONFIG"; then
13297 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13298 echo "${ECHO_T}$PKG_CONFIG" >&6
13299 else
13300 echo "$as_me:$LINENO: result: no" >&5
13301 echo "${ECHO_T}no" >&6
13306 if test "$PKG_CONFIG" = "no" ; then
13307 echo "*** The pkg-config script could not be found. Make sure it is"
13308 echo "*** in your path, or set the PKG_CONFIG environment variable"
13309 echo "*** to the full path to pkg-config."
13310 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13311 else
13312 PKG_CONFIG_MIN_VERSION=0.9.0
13313 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13314 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13315 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13317 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13318 echo "$as_me:$LINENO: result: yes" >&5
13319 echo "${ECHO_T}yes" >&6
13320 succeeded=yes
13322 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13323 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13324 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13325 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13326 echo "${ECHO_T}$GTK_CFLAGS" >&6
13328 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13329 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13330 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13331 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13332 echo "${ECHO_T}$GTK_LIBS" >&6
13333 else
13334 GTK_CFLAGS=""
13335 GTK_LIBS=""
13336 ## If we have a custom action on failure, don't print errors, but
13337 ## do set a variable so people can do so.
13338 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13339 echo $GTK_PKG_ERRORS
13344 else
13345 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13346 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13350 if test $succeeded = yes; then
13352 else
13353 { { 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
13354 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;}
13355 { (exit 1); exit 1; }; }
13362 succeeded=no
13364 if test -z "$PKG_CONFIG"; then
13365 # Extract the first word of "pkg-config", so it can be a program name with args.
13366 set dummy pkg-config; ac_word=$2
13367 echo "$as_me:$LINENO: checking for $ac_word" >&5
13368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13369 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372 case $PKG_CONFIG in
13373 [\\/]* | ?:[\\/]*)
13374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378 for as_dir in $PATH
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
13383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13384 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 break 2
13388 done
13389 done
13391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13393 esac
13395 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13397 if test -n "$PKG_CONFIG"; then
13398 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13399 echo "${ECHO_T}$PKG_CONFIG" >&6
13400 else
13401 echo "$as_me:$LINENO: result: no" >&5
13402 echo "${ECHO_T}no" >&6
13407 if test "$PKG_CONFIG" = "no" ; then
13408 echo "*** The pkg-config script could not be found. Make sure it is"
13409 echo "*** in your path, or set the PKG_CONFIG environment variable"
13410 echo "*** to the full path to pkg-config."
13411 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13412 else
13413 PKG_CONFIG_MIN_VERSION=0.9.0
13414 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13415 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13416 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13418 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13419 echo "$as_me:$LINENO: result: yes" >&5
13420 echo "${ECHO_T}yes" >&6
13421 succeeded=yes
13423 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13424 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13425 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13426 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13427 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13429 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13430 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13431 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13432 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13433 echo "${ECHO_T}$GLIB_LIBS" >&6
13434 else
13435 GLIB_CFLAGS=""
13436 GLIB_LIBS=""
13437 ## If we have a custom action on failure, don't print errors, but
13438 ## do set a variable so people can do so.
13439 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13440 echo $GLIB_PKG_ERRORS
13445 else
13446 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13447 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13451 if test $succeeded = yes; then
13453 else
13454 { { 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
13455 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;}
13456 { (exit 1); exit 1; }; }
13463 succeeded=no
13465 if test -z "$PKG_CONFIG"; then
13466 # Extract the first word of "pkg-config", so it can be a program name with args.
13467 set dummy pkg-config; ac_word=$2
13468 echo "$as_me:$LINENO: checking for $ac_word" >&5
13469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13470 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473 case $PKG_CONFIG in
13474 [\\/]* | ?:[\\/]*)
13475 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13479 for as_dir in $PATH
13481 IFS=$as_save_IFS
13482 test -z "$as_dir" && as_dir=.
13483 for ac_exec_ext in '' $ac_executable_extensions; do
13484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13485 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13487 break 2
13489 done
13490 done
13492 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13494 esac
13496 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13498 if test -n "$PKG_CONFIG"; then
13499 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13500 echo "${ECHO_T}$PKG_CONFIG" >&6
13501 else
13502 echo "$as_me:$LINENO: result: no" >&5
13503 echo "${ECHO_T}no" >&6
13508 if test "$PKG_CONFIG" = "no" ; then
13509 echo "*** The pkg-config script could not be found. Make sure it is"
13510 echo "*** in your path, or set the PKG_CONFIG environment variable"
13511 echo "*** to the full path to pkg-config."
13512 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13513 else
13514 PKG_CONFIG_MIN_VERSION=0.9.0
13515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13516 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13517 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13519 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13520 echo "$as_me:$LINENO: result: yes" >&5
13521 echo "${ECHO_T}yes" >&6
13522 succeeded=yes
13524 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13525 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13526 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13527 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13528 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13530 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13531 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13532 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13533 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13534 echo "${ECHO_T}$LIBART_LIBS" >&6
13535 else
13536 LIBART_CFLAGS=""
13537 LIBART_LIBS=""
13538 ## If we have a custom action on failure, don't print errors, but
13539 ## do set a variable so people can do so.
13540 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13541 echo $LIBART_PKG_ERRORS
13546 else
13547 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13548 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13552 if test $succeeded = yes; then
13554 else
13555 { { 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
13556 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;}
13557 { (exit 1); exit 1; }; }
13564 # On Solaris, and maybe other architectures, the Boehm collector
13565 # requires -ldl.
13566 if test "$GC" = boehm; then
13567 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13568 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13569 if test "${ac_cv_lib_dl_main+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572 ac_check_lib_save_LIBS=$LIBS
13573 LIBS="-ldl $LIBS"
13574 if test x$gcc_no_link = xyes; then
13575 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13576 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13577 { (exit 1); exit 1; }; }
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13588 main ()
13590 main ();
13592 return 0;
13594 _ACEOF
13595 rm -f conftest.$ac_objext conftest$ac_exeext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597 (eval $ac_link) 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest$ac_exeext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_lib_dl_main=yes
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_cv_lib_dl_main=no
13623 rm -f conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext conftest.$ac_ext
13625 LIBS=$ac_check_lib_save_LIBS
13627 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13628 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13629 if test $ac_cv_lib_dl_main = yes; then
13630 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13637 if test "$supply_backtrace" = yes; then
13638 SUPPLY_BACKTRACE_TRUE=
13639 SUPPLY_BACKTRACE_FALSE='#'
13640 else
13641 SUPPLY_BACKTRACE_TRUE='#'
13642 SUPPLY_BACKTRACE_FALSE=
13646 if test -z "${with_multisubdir}"; then
13647 builddotdot=.
13648 else
13649 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13652 NATIVE=yes
13654 # Which gcj do we use?
13655 which_gcj=default
13656 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13657 if test -n "${with_cross_host}"; then
13658 # We are being configured with a cross compiler. We can't
13659 # use ac_exeext, because that is for the target platform.
13660 NATIVE=no
13661 cross_host_exeext=
13662 case "${with_cross_host}" in
13663 *mingw* | *cygwin*)
13664 cross_host_exeext=.exe
13666 esac
13667 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13668 if test x"$build_noncanonical" = x"$with_cross_host"; then
13669 # Ordinary cross (host!=target and host=build)
13670 which_gcj=built
13671 else
13672 # Canadian cross (host!=target and host!=build)
13673 which_gcj=cross
13675 else
13676 which_gcj=cross
13678 else
13679 # We are being configured with a native or crossed-native compiler
13680 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13681 if test x"$build" = x"$host"; then
13682 # True native build (host=target and host=build)
13683 which_gcj=built
13684 else
13685 # Crossed-native build (host=target and host!=build)
13686 which_gcj=cross
13688 else
13689 which_gcj=path
13692 case "${which_gcj}" in
13693 built)
13694 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13695 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13696 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13698 cross)
13699 if test "x${with_newlib}" = "xyes"; then
13700 # FIXME (comment): Why is this needed?
13701 GCC_UNWIND_INCLUDE=
13702 GCJ="${target_noncanonical}-gcj"
13703 else
13704 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13706 ZIP=jar
13707 GCJH='$(target_noncanonical)-gcjh'
13709 path)
13710 GCJ="gcj -B`${PWDCMD-pwd}`/"
13711 ## In this case, gcj is found outside the build tree. However, zip is
13712 ## found in the build tree.
13713 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13714 GCJH=gcjh
13716 esac
13721 # Create it, so that compile/link tests don't fail
13722 test -f libgcj.spec || touch libgcj.spec
13724 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13725 case $build in
13726 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13727 *) CLASSPATH_SEPARATOR=':' ;;
13728 esac
13731 # We must search the source tree for java.lang, since we still don't
13732 # have libgcj.jar nor java/lang/*.class
13733 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13734 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13736 # Since some classes depend on this one, we need its source available
13737 # before we can do any GCJ compilation test :-(
13738 if test ! -f gnu/classpath/Configuration.java; then
13739 test -d gnu || mkdir gnu
13740 test -d gnu/classpath || mkdir gnu/classpath
13741 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13742 -e 's,@TOOLKIT@,$TOOLKIT,' \
13743 < $srcdir/gnu/classpath/Configuration.java.in \
13744 > gnu/classpath/Configuration.java
13745 # We do not want to redirect the output of the grep below to /dev/null,
13746 # but we add /dev/null to the input list so that grep will print the
13747 # filename of Configuration.java in case it finds any matches.
13748 if grep @ gnu/classpath/Configuration.java /dev/null; then
13749 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13750 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13751 { (exit 1); exit 1; }; }
13755 if test -n "$ac_tool_prefix"; then
13756 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13757 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13758 echo "$as_me:$LINENO: checking for $ac_word" >&5
13759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13760 if test "${ac_cv_prog_GCJ+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763 if test -n "$GCJ"; then
13764 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13765 else
13766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13767 for as_dir in $PATH
13769 IFS=$as_save_IFS
13770 test -z "$as_dir" && as_dir=.
13771 for ac_exec_ext in '' $ac_executable_extensions; do
13772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13773 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13775 break 2
13777 done
13778 done
13782 GCJ=$ac_cv_prog_GCJ
13783 if test -n "$GCJ"; then
13784 echo "$as_me:$LINENO: result: $GCJ" >&5
13785 echo "${ECHO_T}$GCJ" >&6
13786 else
13787 echo "$as_me:$LINENO: result: no" >&5
13788 echo "${ECHO_T}no" >&6
13792 if test -z "$ac_cv_prog_GCJ"; then
13793 ac_ct_GCJ=$GCJ
13794 # Extract the first word of "gcj", so it can be a program name with args.
13795 set dummy gcj; ac_word=$2
13796 echo "$as_me:$LINENO: checking for $ac_word" >&5
13797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13798 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801 if test -n "$ac_ct_GCJ"; then
13802 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13803 else
13804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13805 for as_dir in $PATH
13807 IFS=$as_save_IFS
13808 test -z "$as_dir" && as_dir=.
13809 for ac_exec_ext in '' $ac_executable_extensions; do
13810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13811 ac_cv_prog_ac_ct_GCJ="gcj"
13812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13813 break 2
13815 done
13816 done
13818 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13821 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13822 if test -n "$ac_ct_GCJ"; then
13823 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13824 echo "${ECHO_T}$ac_ct_GCJ" >&6
13825 else
13826 echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6
13830 GCJ=$ac_ct_GCJ
13831 else
13832 GCJ="$ac_cv_prog_GCJ"
13835 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13840 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13842 echo "$as_me:$LINENO: checking size of void *" >&5
13843 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13844 if test "${ac_cv_sizeof_void_p+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 #include "confdefs.h"
13855 #include <sys/types.h>
13859 main ()
13861 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13863 return 0;
13865 _ACEOF
13866 rm -f conftest.$ac_objext
13867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13868 (eval $ac_compile) 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try='test -s conftest.$ac_objext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 ac_cv_sizeof_void_p=$ac_size
13888 else
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13894 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13895 done
13899 if test x$ac_cv_sizeof_void_p = x ; then
13900 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13901 echo "$as_me: error: cannot determine a size for void *" >&2;}
13902 { (exit 1); exit 1; }; }
13904 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13905 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13907 cat >>confdefs.h <<_ACEOF
13908 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13909 _ACEOF
13913 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13914 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13915 if test "${ac_cv_c_bigendian+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 else
13918 ac_cv_c_bigendian=unknown
13919 # See if sys/param.h defines the BYTE_ORDER macro.
13920 cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h. */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 #include <sys/types.h>
13927 #include <sys/param.h>
13929 main ()
13932 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13933 bogus endian macros
13934 #endif
13936 return 0;
13938 _ACEOF
13939 rm -f conftest.$ac_objext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13941 (eval $ac_compile) 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 # It does; now see whether it defined to BIG_ENDIAN or not.
13961 cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h. */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include <sys/types.h>
13968 #include <sys/param.h>
13970 main ()
13973 #if BYTE_ORDER != BIG_ENDIAN
13974 not big endian
13975 #endif
13977 return 0;
13979 _ACEOF
13980 rm -f conftest.$ac_objext
13981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13982 (eval $ac_compile) 2>conftest.er1
13983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest.$ac_objext'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14001 ac_cv_c_bigendian=yes
14002 else
14003 echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_cv_c_bigendian=no
14008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14009 else
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14015 if test $ac_cv_c_bigendian = unknown; then
14016 if test "$cross_compiling" = yes; then
14017 echo $ac_n "cross-compiling... " 2>&6
14018 else
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 main () {
14026 /* Are we little or big endian? From Harbison&Steele. */
14027 union
14029 long l;
14030 char c[sizeof (long)];
14031 } u;
14032 u.l = 1;
14033 exit (u.c[sizeof (long) - 1] == 1);
14035 _ACEOF
14036 rm -f conftest$ac_exeext
14037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14038 (eval $ac_link) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_c_bigendian=no
14048 else
14049 echo "$as_me: program exited with status $ac_status" >&5
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ( exit $ac_status )
14054 ac_cv_c_bigendian=yes
14056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14060 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14061 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14062 if test $ac_cv_c_bigendian = unknown; then
14063 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
14064 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
14066 cat >conftest.c <<EOF
14067 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14068 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14069 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
14070 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14071 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14072 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
14073 int main() { _ascii (); _ebcdic (); return 0; }
14075 if test -f conftest.c ; then
14076 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
14077 if test `grep -l BIGenDianSyS conftest.o` ; then
14078 echo $ac_n ' big endian probe OK, ' 1>&6
14079 ac_cv_c_bigendian=yes
14081 if test `grep -l LiTTleEnDian conftest.o` ; then
14082 echo $ac_n ' little endian probe OK, ' 1>&6
14083 if test $ac_cv_c_bigendian = yes ; then
14084 ac_cv_c_bigendian=unknown;
14085 else
14086 ac_cv_c_bigendian=no
14089 echo $ac_n 'guessing bigendian ... ' >&6
14092 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14093 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14095 if test $ac_cv_c_bigendian = yes; then
14097 cat >>confdefs.h <<\_ACEOF
14098 #define WORDS_BIGENDIAN 1
14099 _ACEOF
14102 cat >>confdefs.h <<\_ACEOF
14103 #define HOST_WORDS_BIG_ENDIAN 1
14104 _ACEOF
14106 BYTEORDER=4321
14107 else
14108 BYTEORDER=1234
14111 cat >>confdefs.h <<_ACEOF
14112 #define BYTEORDER $BYTEORDER
14113 _ACEOF
14115 if test $ac_cv_c_bigendian = unknown; then
14116 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
14117 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
14118 { (exit 1); exit 1; }; }
14122 ZLIBS=
14123 SYS_ZLIBS=
14124 ZINCS=
14126 if test -z "$ZLIBSPEC"; then
14127 # Use zlib from the GCC tree.
14128 ZINCS='-I$(top_srcdir)/../zlib'
14129 ZLIBS=../zlib/libzgcj_convenience.la
14130 else
14131 # System's zlib.
14132 SYS_ZLIBS="$ZLIBSPEC"
14144 if test "$NATIVE" = yes; then
14145 NATIVE_TRUE=
14146 NATIVE_FALSE='#'
14147 else
14148 NATIVE_TRUE='#'
14149 NATIVE_FALSE=
14154 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14155 NEEDS_DATA_START_TRUE=
14156 NEEDS_DATA_START_FALSE='#'
14157 else
14158 NEEDS_DATA_START_TRUE='#'
14159 NEEDS_DATA_START_FALSE=
14164 # Process the option "--enable-version-specific-runtime-libs"
14165 # Calculate toolexeclibdir
14166 case ${version_specific_libs} in
14167 yes)
14168 # Need the gcc compiler version to know where to install libraries
14169 # and header files if --enable-version-specific-runtime-libs option
14170 # is selected.
14171 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
14172 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14173 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
14174 toolexeclibdir=$toolexecmainlibdir
14177 if test -n "$with_cross_host" &&
14178 test x"$with_cross_host" != x"no"; then
14179 # Install a library built with a cross compiler in tooldir, not libdir.
14180 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14181 toolexecmainlibdir='$(toolexecdir)/lib'
14182 else
14183 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14184 toolexecmainlibdir='$(libdir)'
14186 multi_os_directory=`$CC -print-multi-os-directory`
14187 case $multi_os_directory in
14188 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14189 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14190 esac
14192 esac
14197 # Determine gcj version number.
14198 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14199 GCJVERSION=$gcjversion
14202 cat >>confdefs.h <<_ACEOF
14203 #define GCJVERSION "$GCJVERSION"
14204 _ACEOF
14207 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14208 # On that system, sys/ioctl.h will not include sys/filio.h unless
14209 # BSD_COMP is defined; just including sys/filio.h is simpler.
14229 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
14231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14233 echo "$as_me:$LINENO: checking for $ac_header" >&5
14234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14240 else
14241 # Is the header compilable?
14242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14244 cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h. */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14250 $ac_includes_default
14251 #include <$ac_header>
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; } &&
14268 { ac_try='test -s conftest.$ac_objext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
14274 ac_header_compiler=yes
14275 else
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 ac_header_compiler=no
14281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14283 echo "${ECHO_T}$ac_header_compiler" >&6
14285 # Is the header present?
14286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14288 cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h. */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 #include <$ac_header>
14295 _ACEOF
14296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14298 ac_status=$?
14299 grep -v '^ *+' conftest.er1 >conftest.err
14300 rm -f conftest.er1
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } >/dev/null; then
14304 if test -s conftest.err; then
14305 ac_cpp_err=$ac_c_preproc_warn_flag
14306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14307 else
14308 ac_cpp_err=
14310 else
14311 ac_cpp_err=yes
14313 if test -z "$ac_cpp_err"; then
14314 ac_header_preproc=yes
14315 else
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ac_header_preproc=no
14321 rm -f conftest.err conftest.$ac_ext
14322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14323 echo "${ECHO_T}$ac_header_preproc" >&6
14325 # So? What about this header?
14326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14327 yes:no: )
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14332 ac_header_preproc=yes
14334 no:yes:* )
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14348 cat <<\_ASBOX
14349 ## ---------------------------------- ##
14350 ## Report this to the libjava lists. ##
14351 ## ---------------------------------- ##
14352 _ASBOX
14354 sed "s/^/$as_me: WARNING: /" >&2
14356 esac
14357 echo "$as_me:$LINENO: checking for $ac_header" >&5
14358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362 eval "$as_ac_Header=\$ac_header_preproc"
14364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14369 cat >>confdefs.h <<_ACEOF
14370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14371 _ACEOF
14375 done
14377 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14378 # for now. If you change this, you also must update natFile.cc.
14380 for ac_header in dirent.h
14382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14384 echo "$as_me:$LINENO: checking for $ac_header" >&5
14385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14391 else
14392 # Is the header compilable?
14393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14395 cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h. */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 $ac_includes_default
14402 #include <$ac_header>
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406 (eval $ac_compile) 2>conftest.er1
14407 ac_status=$?
14408 grep -v '^ *+' conftest.er1 >conftest.err
14409 rm -f conftest.er1
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_header_compiler=yes
14426 else
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 ac_header_compiler=no
14432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14434 echo "${ECHO_T}$ac_header_compiler" >&6
14436 # Is the header present?
14437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h. */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <$ac_header>
14446 _ACEOF
14447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14449 ac_status=$?
14450 grep -v '^ *+' conftest.er1 >conftest.err
14451 rm -f conftest.er1
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } >/dev/null; then
14455 if test -s conftest.err; then
14456 ac_cpp_err=$ac_c_preproc_warn_flag
14457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14458 else
14459 ac_cpp_err=
14461 else
14462 ac_cpp_err=yes
14464 if test -z "$ac_cpp_err"; then
14465 ac_header_preproc=yes
14466 else
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ac_header_preproc=no
14472 rm -f conftest.err conftest.$ac_ext
14473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14474 echo "${ECHO_T}$ac_header_preproc" >&6
14476 # So? What about this header?
14477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478 yes:no: )
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14483 ac_header_preproc=yes
14485 no:yes:* )
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14499 cat <<\_ASBOX
14500 ## ---------------------------------- ##
14501 ## Report this to the libjava lists. ##
14502 ## ---------------------------------- ##
14503 _ASBOX
14505 sed "s/^/$as_me: WARNING: /" >&2
14507 esac
14508 echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513 eval "$as_ac_Header=\$ac_header_preproc"
14515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14520 cat >>confdefs.h <<_ACEOF
14521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14522 _ACEOF
14526 done
14529 for ac_header in inttypes.h
14531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14533 echo "$as_me:$LINENO: checking for $ac_header" >&5
14534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14540 else
14541 # Is the header compilable?
14542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h. */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 $ac_includes_default
14551 #include <$ac_header>
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555 (eval $ac_compile) 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest.$ac_objext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_header_compiler=yes
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 ac_header_compiler=no
14581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14583 echo "${ECHO_T}$ac_header_compiler" >&6
14585 # Is the header present?
14586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14588 cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h. */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 #include <$ac_header>
14595 _ACEOF
14596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14598 ac_status=$?
14599 grep -v '^ *+' conftest.er1 >conftest.err
14600 rm -f conftest.er1
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } >/dev/null; then
14604 if test -s conftest.err; then
14605 ac_cpp_err=$ac_c_preproc_warn_flag
14606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14607 else
14608 ac_cpp_err=
14610 else
14611 ac_cpp_err=yes
14613 if test -z "$ac_cpp_err"; then
14614 ac_header_preproc=yes
14615 else
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14619 ac_header_preproc=no
14621 rm -f conftest.err conftest.$ac_ext
14622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14623 echo "${ECHO_T}$ac_header_preproc" >&6
14625 # So? What about this header?
14626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14627 yes:no: )
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14632 ac_header_preproc=yes
14634 no:yes:* )
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14648 cat <<\_ASBOX
14649 ## ---------------------------------- ##
14650 ## Report this to the libjava lists. ##
14651 ## ---------------------------------- ##
14652 _ASBOX
14654 sed "s/^/$as_me: WARNING: /" >&2
14656 esac
14657 echo "$as_me:$LINENO: checking for $ac_header" >&5
14658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662 eval "$as_ac_Header=\$ac_header_preproc"
14664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14669 cat >>confdefs.h <<_ACEOF
14670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14671 _ACEOF
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_INTTYPES_H 1
14676 _ACEOF
14679 cat >>confdefs.h <<\_ACEOF
14680 #define JV_HAVE_INTTYPES_H 1
14681 _ACEOF
14686 done
14688 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14689 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14690 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 else
14693 cat >conftest.$ac_ext <<_ACEOF
14694 /* confdefs.h. */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 #include <sys/types.h>
14700 #include <sys/wait.h>
14701 #ifndef WEXITSTATUS
14702 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14703 #endif
14704 #ifndef WIFEXITED
14705 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14706 #endif
14709 main ()
14711 int s;
14712 wait (&s);
14713 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14715 return 0;
14717 _ACEOF
14718 rm -f conftest.$ac_objext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_cv_header_sys_wait_h=yes
14740 else
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_cv_header_sys_wait_h=no
14746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14748 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14749 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14750 if test $ac_cv_header_sys_wait_h = yes; then
14752 cat >>confdefs.h <<\_ACEOF
14753 #define HAVE_SYS_WAIT_H 1
14754 _ACEOF
14759 echo "$as_me:$LINENO: checking for ssize_t" >&5
14760 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14761 if test "${ac_cv_type_ssize_t+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764 cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h. */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 $ac_includes_default
14772 main ()
14774 if ((ssize_t *) 0)
14775 return 0;
14776 if (sizeof (ssize_t))
14777 return 0;
14779 return 0;
14781 _ACEOF
14782 rm -f conftest.$ac_objext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784 (eval $ac_compile) 2>conftest.er1
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
14791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; } &&
14797 { ac_try='test -s conftest.$ac_objext'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 ac_cv_type_ssize_t=yes
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 ac_cv_type_ssize_t=no
14810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14813 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14814 if test $ac_cv_type_ssize_t = yes; then
14816 else
14818 cat >>confdefs.h <<_ACEOF
14819 #define ssize_t int
14820 _ACEOF
14825 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14826 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
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 #include <sys/types.h>
14834 #if STDC_HEADERS
14835 #include <stdlib.h>
14836 #include <stddef.h>
14837 #endif
14838 #if HAVE_NETINET_IN_H
14839 #include <netinet/in.h>
14840 #endif
14842 main ()
14844 in_addr_t foo;
14846 return 0;
14848 _ACEOF
14849 rm -f conftest.$ac_objext
14850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14851 (eval $ac_compile) 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; } &&
14864 { ac_try='test -s conftest.$ac_objext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14871 cat >>confdefs.h <<\_ACEOF
14872 #define HAVE_IN_ADDR_T 1
14873 _ACEOF
14875 echo "$as_me:$LINENO: result: yes" >&5
14876 echo "${ECHO_T}yes" >&6
14877 else
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 echo "$as_me:$LINENO: result: no" >&5
14882 echo "${ECHO_T}no" >&6
14884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14886 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14887 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14888 cat >conftest.$ac_ext <<_ACEOF
14889 /* confdefs.h. */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14894 #include <netinet/in.h>
14896 main ()
14898 struct ip_mreq mreq;
14900 return 0;
14902 _ACEOF
14903 rm -f conftest.$ac_objext
14904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14905 (eval $ac_compile) 2>conftest.er1
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
14912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14925 cat >>confdefs.h <<\_ACEOF
14926 #define HAVE_STRUCT_IP_MREQ 1
14927 _ACEOF
14929 echo "$as_me:$LINENO: result: yes" >&5
14930 echo "${ECHO_T}yes" >&6
14931 else
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 echo "$as_me:$LINENO: result: no" >&5
14936 echo "${ECHO_T}no" >&6
14938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14940 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14941 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h. */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14948 #include <netinet/in.h>
14950 main ()
14952 struct ipv6_mreq mreq6;
14954 return 0;
14956 _ACEOF
14957 rm -f conftest.$ac_objext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14959 (eval $ac_compile) 2>conftest.er1
14960 ac_status=$?
14961 grep -v '^ *+' conftest.er1 >conftest.err
14962 rm -f conftest.er1
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } &&
14966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest.$ac_objext'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14979 cat >>confdefs.h <<\_ACEOF
14980 #define HAVE_STRUCT_IPV6_MREQ 1
14981 _ACEOF
14983 echo "$as_me:$LINENO: result: yes" >&5
14984 echo "${ECHO_T}yes" >&6
14985 else
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 echo "$as_me:$LINENO: result: no" >&5
14990 echo "${ECHO_T}no" >&6
14992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14994 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14995 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 #include <netinet/in.h>
15004 main ()
15006 struct sockaddr_in6 addr6;
15008 return 0;
15010 _ACEOF
15011 rm -f conftest.$ac_objext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013 (eval $ac_compile) 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest.$ac_objext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15033 cat >>confdefs.h <<\_ACEOF
15034 #define HAVE_INET6 1
15035 _ACEOF
15037 echo "$as_me:$LINENO: result: yes" >&5
15038 echo "${ECHO_T}yes" >&6
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 echo "$as_me:$LINENO: result: no" >&5
15044 echo "${ECHO_T}no" >&6
15046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15048 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15049 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15050 cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h. */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 #define _POSIX_PII_SOCKET
15057 #include <sys/types.h>
15058 #include <sys/socket.h>
15060 main ()
15062 socklen_t x = 5;
15064 return 0;
15066 _ACEOF
15067 rm -f conftest.$ac_objext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15069 (eval $ac_compile) 2>conftest.er1
15070 ac_status=$?
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } &&
15082 { ac_try='test -s conftest.$ac_objext'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15089 cat >>confdefs.h <<\_ACEOF
15090 #define HAVE_SOCKLEN_T 1
15091 _ACEOF
15093 echo "$as_me:$LINENO: result: yes" >&5
15094 echo "${ECHO_T}yes" >&6
15095 else
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15099 echo "$as_me:$LINENO: result: no" >&5
15100 echo "${ECHO_T}no" >&6
15102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15104 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15105 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15106 cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h. */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 #include <time.h>
15114 main ()
15116 struct tm tim; tim.tm_gmtoff = 0;
15118 return 0;
15120 _ACEOF
15121 rm -f conftest.$ac_objext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15123 (eval $ac_compile) 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } &&
15136 { ac_try='test -s conftest.$ac_objext'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15143 cat >>confdefs.h <<\_ACEOF
15144 #define STRUCT_TM_HAS_GMTOFF 1
15145 _ACEOF
15147 echo "$as_me:$LINENO: result: yes" >&5
15148 echo "${ECHO_T}yes" >&6
15149 else
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 echo "$as_me:$LINENO: result: no" >&5
15154 echo "${ECHO_T}no" >&6
15155 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15156 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15157 cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h. */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 #include <time.h>
15165 main ()
15167 void i(){long z2 = 2*timezone;}
15169 return 0;
15171 _ACEOF
15172 rm -f conftest.$ac_objext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15174 (eval $ac_compile) 2>conftest.er1
15175 ac_status=$?
15176 grep -v '^ *+' conftest.er1 >conftest.err
15177 rm -f conftest.er1
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
15181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_TIMEZONE 1
15196 _ACEOF
15198 echo "$as_me:$LINENO: result: yes" >&5
15199 echo "${ECHO_T}yes" >&6
15200 else
15201 echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15204 echo "$as_me:$LINENO: result: no" >&5
15205 echo "${ECHO_T}no" >&6
15206 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15207 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 #include <time.h>
15216 main ()
15218 long z2 = _timezone;
15220 return 0;
15222 _ACEOF
15223 rm -f conftest.$ac_objext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15225 (eval $ac_compile) 2>conftest.er1
15226 ac_status=$?
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try='test -s conftest.$ac_objext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15245 cat >>confdefs.h <<\_ACEOF
15246 #define HAVE_UNDERSCORE_TIMEZONE 1
15247 _ACEOF
15249 echo "$as_me:$LINENO: result: yes" >&5
15250 echo "${ECHO_T}yes" >&6
15251 else
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 echo "$as_me:$LINENO: result: no" >&5
15256 echo "${ECHO_T}no" >&6
15258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15264 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15265 # for constant arguments. Useless!
15266 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15267 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15268 if test "${ac_cv_working_alloca_h+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271 if test x$gcc_no_link = xyes; then
15272 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15273 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15274 { (exit 1); exit 1; }; }
15276 cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h. */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 #include <alloca.h>
15284 main ()
15286 char *p = (char *) alloca (2 * sizeof (int));
15288 return 0;
15290 _ACEOF
15291 rm -f conftest.$ac_objext conftest$ac_exeext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15293 (eval $ac_link) 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } &&
15306 { ac_try='test -s conftest$ac_exeext'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_working_alloca_h=yes
15313 else
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 ac_cv_working_alloca_h=no
15319 rm -f conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
15322 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15323 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15324 if test $ac_cv_working_alloca_h = yes; then
15326 cat >>confdefs.h <<\_ACEOF
15327 #define HAVE_ALLOCA_H 1
15328 _ACEOF
15332 echo "$as_me:$LINENO: checking for alloca" >&5
15333 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15334 if test "${ac_cv_func_alloca_works+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337 if test x$gcc_no_link = xyes; then
15338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15340 { (exit 1); exit 1; }; }
15342 cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h. */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 #ifdef __GNUC__
15349 # define alloca __builtin_alloca
15350 #else
15351 # ifdef _MSC_VER
15352 # include <malloc.h>
15353 # define alloca _alloca
15354 # else
15355 # if HAVE_ALLOCA_H
15356 # include <alloca.h>
15357 # else
15358 # ifdef _AIX
15359 #pragma alloca
15360 # else
15361 # ifndef alloca /* predefined by HP cc +Olibcalls */
15362 char *alloca ();
15363 # endif
15364 # endif
15365 # endif
15366 # endif
15367 #endif
15370 main ()
15372 char *p = (char *) alloca (1);
15374 return 0;
15376 _ACEOF
15377 rm -f conftest.$ac_objext conftest$ac_exeext
15378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15379 (eval $ac_link) 2>conftest.er1
15380 ac_status=$?
15381 grep -v '^ *+' conftest.er1 >conftest.err
15382 rm -f conftest.er1
15383 cat conftest.err >&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_func_alloca_works=yes
15399 else
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_cv_func_alloca_works=no
15405 rm -f conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
15408 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15409 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15411 if test $ac_cv_func_alloca_works = yes; then
15413 cat >>confdefs.h <<\_ACEOF
15414 #define HAVE_ALLOCA 1
15415 _ACEOF
15417 else
15418 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15419 # that cause trouble. Some versions do not even contain alloca or
15420 # contain a buggy version. If you still want to use their alloca,
15421 # use ar to extract alloca.o from them instead of compiling alloca.c.
15423 ALLOCA=alloca.$ac_objext
15425 cat >>confdefs.h <<\_ACEOF
15426 #define C_ALLOCA 1
15427 _ACEOF
15430 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15431 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15432 if test "${ac_cv_os_cray+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h. */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 #if defined(CRAY) && ! defined(CRAY2)
15442 webecray
15443 #else
15444 wenotbecray
15445 #endif
15447 _ACEOF
15448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15449 $EGREP "webecray" >/dev/null 2>&1; then
15450 ac_cv_os_cray=yes
15451 else
15452 ac_cv_os_cray=no
15454 rm -f conftest*
15457 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15458 echo "${ECHO_T}$ac_cv_os_cray" >&6
15459 if test $ac_cv_os_cray = yes; then
15460 for ac_func in _getb67 GETB67 getb67; do
15461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15462 echo "$as_me:$LINENO: checking for $ac_func" >&5
15463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15464 if eval "test \"\${$as_ac_var+set}\" = set"; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467 if test x$gcc_no_link = xyes; then
15468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15470 { (exit 1); exit 1; }; }
15472 cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h. */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15480 #define $ac_func innocuous_$ac_func
15482 /* System header to define __stub macros and hopefully few prototypes,
15483 which can conflict with char $ac_func (); below.
15484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15485 <limits.h> exists even on freestanding compilers. */
15487 #ifdef __STDC__
15488 # include <limits.h>
15489 #else
15490 # include <assert.h>
15491 #endif
15493 #undef $ac_func
15495 /* Override any gcc2 internal prototype to avoid an error. */
15496 #ifdef __cplusplus
15497 extern "C"
15499 #endif
15500 /* We use char because int might match the return type of a gcc2
15501 builtin and then its argument prototype would still apply. */
15502 char $ac_func ();
15503 /* The GNU C library defines this for functions which it implements
15504 to always fail with ENOSYS. Some functions are actually named
15505 something starting with __ and the normal name is an alias. */
15506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15507 choke me
15508 #else
15509 char (*f) () = $ac_func;
15510 #endif
15511 #ifdef __cplusplus
15513 #endif
15516 main ()
15518 return f != $ac_func;
15520 return 0;
15522 _ACEOF
15523 rm -f conftest.$ac_objext conftest$ac_exeext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15525 (eval $ac_link) 2>conftest.er1
15526 ac_status=$?
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest$ac_exeext'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 eval "$as_ac_var=yes"
15545 else
15546 echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15549 eval "$as_ac_var=no"
15551 rm -f conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
15554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15556 if test `eval echo '${'$as_ac_var'}'` = yes; then
15558 cat >>confdefs.h <<_ACEOF
15559 #define CRAY_STACKSEG_END $ac_func
15560 _ACEOF
15562 break
15565 done
15568 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15569 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15570 if test "${ac_cv_c_stack_direction+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 else
15573 if test "$cross_compiling" = yes; then
15574 ac_cv_c_stack_direction=0
15575 else
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h. */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15583 find_stack_direction ()
15585 static char *addr = 0;
15586 auto char dummy;
15587 if (addr == 0)
15589 addr = &dummy;
15590 return find_stack_direction ();
15592 else
15593 return (&dummy > addr) ? 1 : -1;
15597 main ()
15599 exit (find_stack_direction () < 0);
15601 _ACEOF
15602 rm -f conftest$ac_exeext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15604 (eval $ac_link) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
15613 ac_cv_c_stack_direction=1
15614 else
15615 echo "$as_me: program exited with status $ac_status" >&5
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ( exit $ac_status )
15620 ac_cv_c_stack_direction=-1
15622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15625 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15626 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15628 cat >>confdefs.h <<_ACEOF
15629 #define STACK_DIRECTION $ac_cv_c_stack_direction
15630 _ACEOF
15635 if test x$gcc_no_link = xyes; then
15636 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15637 ac_cv_func_mmap_fixed_mapped=no
15640 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15643 for ac_header in stdlib.h unistd.h
15645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15647 echo "$as_me:$LINENO: checking for $ac_header" >&5
15648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15654 else
15655 # Is the header compilable?
15656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 $ac_includes_default
15665 #include <$ac_header>
15666 _ACEOF
15667 rm -f conftest.$ac_objext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15669 (eval $ac_compile) 2>conftest.er1
15670 ac_status=$?
15671 grep -v '^ *+' conftest.er1 >conftest.err
15672 rm -f conftest.er1
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; } &&
15682 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
15689 else
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_header_compiler=no
15695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15697 echo "${ECHO_T}$ac_header_compiler" >&6
15699 # Is the header present?
15700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15702 cat >conftest.$ac_ext <<_ACEOF
15703 /* confdefs.h. */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h. */
15708 #include <$ac_header>
15709 _ACEOF
15710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15712 ac_status=$?
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } >/dev/null; then
15718 if test -s conftest.err; then
15719 ac_cpp_err=$ac_c_preproc_warn_flag
15720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15721 else
15722 ac_cpp_err=
15724 else
15725 ac_cpp_err=yes
15727 if test -z "$ac_cpp_err"; then
15728 ac_header_preproc=yes
15729 else
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_header_preproc=no
15735 rm -f conftest.err conftest.$ac_ext
15736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15737 echo "${ECHO_T}$ac_header_preproc" >&6
15739 # So? What about this header?
15740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15741 yes:no: )
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15746 ac_header_preproc=yes
15748 no:yes:* )
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15762 cat <<\_ASBOX
15763 ## ---------------------------------- ##
15764 ## Report this to the libjava lists. ##
15765 ## ---------------------------------- ##
15766 _ASBOX
15768 sed "s/^/$as_me: WARNING: /" >&2
15770 esac
15771 echo "$as_me:$LINENO: checking for $ac_header" >&5
15772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 else
15776 eval "$as_ac_Header=\$ac_header_preproc"
15778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15785 _ACEOF
15789 done
15792 for ac_func in getpagesize
15794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15795 echo "$as_me:$LINENO: checking for $ac_func" >&5
15796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15797 if eval "test \"\${$as_ac_var+set}\" = set"; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800 if test x$gcc_no_link = xyes; then
15801 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15803 { (exit 1); exit 1; }; }
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h. */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15813 #define $ac_func innocuous_$ac_func
15815 /* System header to define __stub macros and hopefully few prototypes,
15816 which can conflict with char $ac_func (); below.
15817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15818 <limits.h> exists even on freestanding compilers. */
15820 #ifdef __STDC__
15821 # include <limits.h>
15822 #else
15823 # include <assert.h>
15824 #endif
15826 #undef $ac_func
15828 /* Override any gcc2 internal prototype to avoid an error. */
15829 #ifdef __cplusplus
15830 extern "C"
15832 #endif
15833 /* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
15835 char $ac_func ();
15836 /* The GNU C library defines this for functions which it implements
15837 to always fail with ENOSYS. Some functions are actually named
15838 something starting with __ and the normal name is an alias. */
15839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15840 choke me
15841 #else
15842 char (*f) () = $ac_func;
15843 #endif
15844 #ifdef __cplusplus
15846 #endif
15849 main ()
15851 return f != $ac_func;
15853 return 0;
15855 _ACEOF
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>conftest.er1
15859 ac_status=$?
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
15865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest$ac_exeext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 eval "$as_ac_var=yes"
15878 else
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 eval "$as_ac_var=no"
15884 rm -f conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
15887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15889 if test `eval echo '${'$as_ac_var'}'` = yes; then
15890 cat >>confdefs.h <<_ACEOF
15891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15892 _ACEOF
15895 done
15897 echo "$as_me:$LINENO: checking for working mmap" >&5
15898 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15899 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902 if test "$cross_compiling" = yes; then
15903 ac_cv_func_mmap_fixed_mapped=no
15904 else
15905 cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h. */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 $ac_includes_default
15912 /* malloc might have been renamed as rpl_malloc. */
15913 #undef malloc
15915 /* Thanks to Mike Haertel and Jim Avera for this test.
15916 Here is a matrix of mmap possibilities:
15917 mmap private not fixed
15918 mmap private fixed at somewhere currently unmapped
15919 mmap private fixed at somewhere already mapped
15920 mmap shared not fixed
15921 mmap shared fixed at somewhere currently unmapped
15922 mmap shared fixed at somewhere already mapped
15923 For private mappings, we should verify that changes cannot be read()
15924 back from the file, nor mmap's back from the file at a different
15925 address. (There have been systems where private was not correctly
15926 implemented like the infamous i386 svr4.0, and systems where the
15927 VM page cache was not coherent with the file system buffer cache
15928 like early versions of FreeBSD and possibly contemporary NetBSD.)
15929 For shared mappings, we should conversely verify that changes get
15930 propagated back to all the places they're supposed to be.
15932 Grep wants private fixed already mapped.
15933 The main things grep needs to know about mmap are:
15934 * does it exist and is it safe to write into the mmap'd area
15935 * how to use it (BSD variants) */
15937 #include <fcntl.h>
15938 #include <sys/mman.h>
15940 #if !STDC_HEADERS && !HAVE_STDLIB_H
15941 char *malloc ();
15942 #endif
15944 /* This mess was copied from the GNU getpagesize.h. */
15945 #if !HAVE_GETPAGESIZE
15946 /* Assume that all systems that can run configure have sys/param.h. */
15947 # if !HAVE_SYS_PARAM_H
15948 # define HAVE_SYS_PARAM_H 1
15949 # endif
15951 # ifdef _SC_PAGESIZE
15952 # define getpagesize() sysconf(_SC_PAGESIZE)
15953 # else /* no _SC_PAGESIZE */
15954 # if HAVE_SYS_PARAM_H
15955 # include <sys/param.h>
15956 # ifdef EXEC_PAGESIZE
15957 # define getpagesize() EXEC_PAGESIZE
15958 # else /* no EXEC_PAGESIZE */
15959 # ifdef NBPG
15960 # define getpagesize() NBPG * CLSIZE
15961 # ifndef CLSIZE
15962 # define CLSIZE 1
15963 # endif /* no CLSIZE */
15964 # else /* no NBPG */
15965 # ifdef NBPC
15966 # define getpagesize() NBPC
15967 # else /* no NBPC */
15968 # ifdef PAGESIZE
15969 # define getpagesize() PAGESIZE
15970 # endif /* PAGESIZE */
15971 # endif /* no NBPC */
15972 # endif /* no NBPG */
15973 # endif /* no EXEC_PAGESIZE */
15974 # else /* no HAVE_SYS_PARAM_H */
15975 # define getpagesize() 8192 /* punt totally */
15976 # endif /* no HAVE_SYS_PARAM_H */
15977 # endif /* no _SC_PAGESIZE */
15979 #endif /* no HAVE_GETPAGESIZE */
15982 main ()
15984 char *data, *data2, *data3;
15985 int i, pagesize;
15986 int fd;
15988 pagesize = getpagesize ();
15990 /* First, make a file with some known garbage in it. */
15991 data = (char *) malloc (pagesize);
15992 if (!data)
15993 exit (1);
15994 for (i = 0; i < pagesize; ++i)
15995 *(data + i) = rand ();
15996 umask (0);
15997 fd = creat ("conftest.mmap", 0600);
15998 if (fd < 0)
15999 exit (1);
16000 if (write (fd, data, pagesize) != pagesize)
16001 exit (1);
16002 close (fd);
16004 /* Next, try to mmap the file at a fixed address which already has
16005 something else allocated at it. If we can, also make sure that
16006 we see the same garbage. */
16007 fd = open ("conftest.mmap", O_RDWR);
16008 if (fd < 0)
16009 exit (1);
16010 data2 = (char *) malloc (2 * pagesize);
16011 if (!data2)
16012 exit (1);
16013 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16016 exit (1);
16017 for (i = 0; i < pagesize; ++i)
16018 if (*(data + i) != *(data2 + i))
16019 exit (1);
16021 /* Finally, make sure that changes to the mapped area do not
16022 percolate back to the file as seen by read(). (This is a bug on
16023 some variants of i386 svr4.0.) */
16024 for (i = 0; i < pagesize; ++i)
16025 *(data2 + i) = *(data2 + i) + 1;
16026 data3 = (char *) malloc (pagesize);
16027 if (!data3)
16028 exit (1);
16029 if (read (fd, data3, pagesize) != pagesize)
16030 exit (1);
16031 for (i = 0; i < pagesize; ++i)
16032 if (*(data + i) != *(data3 + i))
16033 exit (1);
16034 close (fd);
16035 exit (0);
16037 _ACEOF
16038 rm -f conftest$ac_exeext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16046 ac_status=$?
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 ac_cv_func_mmap_fixed_mapped=yes
16050 else
16051 echo "$as_me: program exited with status $ac_status" >&5
16052 echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16055 ( exit $ac_status )
16056 ac_cv_func_mmap_fixed_mapped=no
16058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16061 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16062 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16063 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16065 cat >>confdefs.h <<\_ACEOF
16066 #define HAVE_MMAP 1
16067 _ACEOF
16070 rm -f conftest.mmap
16074 for ac_prog in perl
16076 # Extract the first word of "$ac_prog", so it can be a program name with args.
16077 set dummy $ac_prog; ac_word=$2
16078 echo "$as_me:$LINENO: checking for $ac_word" >&5
16079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16080 if test "${ac_cv_prog_PERL+set}" = set; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083 if test -n "$PERL"; then
16084 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16085 else
16086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16087 for as_dir in $PATH
16089 IFS=$as_save_IFS
16090 test -z "$as_dir" && as_dir=.
16091 for ac_exec_ext in '' $ac_executable_extensions; do
16092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16093 ac_cv_prog_PERL="$ac_prog"
16094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16095 break 2
16097 done
16098 done
16102 PERL=$ac_cv_prog_PERL
16103 if test -n "$PERL"; then
16104 echo "$as_me:$LINENO: result: $PERL" >&5
16105 echo "${ECHO_T}$PERL" >&6
16106 else
16107 echo "$as_me:$LINENO: result: no" >&5
16108 echo "${ECHO_T}no" >&6
16111 test -n "$PERL" && break
16112 done
16113 test -n "$PERL" || PERL="false"
16116 SYSDEP_SOURCES=
16117 SIGNAL_HANDLER_AUX=
16119 case "${host}" in
16120 i?86-*-linux*)
16121 SIGNAL_HANDLER=include/i386-signal.h
16123 sparc*-sun-solaris*)
16124 SIGNAL_HANDLER=include/sparc-signal.h
16126 # ia64-*)
16127 # SYSDEP_SOURCES=sysdep/ia64.c
16128 # test -d sysdep || mkdir sysdep
16129 # ;;
16130 hppa*-*-linux*)
16131 SIGNAL_HANDLER=include/pa-signal.h
16133 ia64-*-linux*)
16134 SIGNAL_HANDLER=include/dwarf2-signal.h
16136 powerpc*-*-linux*)
16137 SIGNAL_HANDLER=include/powerpc-signal.h
16139 alpha*-*-linux*)
16140 SIGNAL_HANDLER=include/dwarf2-signal.h
16142 s390*-*-linux*)
16143 SIGNAL_HANDLER=include/s390-signal.h
16145 x86_64*-*-linux*)
16146 SIGNAL_HANDLER=include/x86_64-signal.h
16147 SIGNAL_HANDLER_AUX=include/i386-signal.h
16149 sparc*-*-linux*)
16150 SIGNAL_HANDLER=include/dwarf2-signal.h
16152 sh*-*-linux*)
16153 SIGNAL_HANDLER=include/sh-signal.h
16155 *mingw*)
16156 SIGNAL_HANDLER=include/win32-signal.h
16158 mips*-*-linux*)
16159 SIGNAL_HANDLER=include/mips-signal.h
16161 *-*-darwin*)
16162 SIGNAL_HANDLER=include/darwin-signal.h
16165 SIGNAL_HANDLER=include/default-signal.h
16167 esac
16169 # If we're using sjlj exceptions, forget what we just learned.
16170 if test "$enable_sjlj_exceptions" = yes; then
16171 SIGNAL_HANDLER=include/default-signal.h
16172 SIGNAL_HANDLER_AUX=
16175 # Define here any compiler flags that you need in order to make backtrace() work.
16176 BACKTRACESPEC=
16177 case "${host}" in
16178 x86_64*-*-linux*|i?86-*)
16179 BACKTRACESPEC=-fno-omit-frame-pointer
16181 esac
16186 if test -z "$SIGNAL_HANDLER_AUX"; then
16187 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16190 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16193 if test "${multilib}" = "yes"; then
16194 multilib_arg="--enable-multilib"
16195 else
16196 multilib_arg=
16201 here=`${PWDCMD-pwd}`
16204 # We get this from the environment.
16207 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
16210 ac_config_commands="$ac_config_commands default"
16213 cat >confcache <<\_ACEOF
16214 # This file is a shell script that caches the results of configure
16215 # tests run on this system so they can be shared between configure
16216 # scripts and configure runs, see configure's option --config-cache.
16217 # It is not useful on other systems. If it contains results you don't
16218 # want to keep, you may remove or edit it.
16220 # config.status only pays attention to the cache file if you give it
16221 # the --recheck option to rerun configure.
16223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16225 # following values.
16227 _ACEOF
16229 # The following way of writing the cache mishandles newlines in values,
16230 # but we know of no workaround that is simple, portable, and efficient.
16231 # So, don't put newlines in cache variables' values.
16232 # Ultrix sh set writes to stderr and can't be redirected directly,
16233 # and sets the high bit in the cache file unless we assign to the vars.
16235 (set) 2>&1 |
16236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16237 *ac_space=\ *)
16238 # `set' does not quote correctly, so add quotes (double-quote
16239 # substitution turns \\\\ into \\, and sed turns \\ into \).
16240 sed -n \
16241 "s/'/'\\\\''/g;
16242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16245 # `set' quotes correctly as required by POSIX, so do not add quotes.
16246 sed -n \
16247 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16249 esac;
16251 sed '
16252 t clear
16253 : clear
16254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16255 t end
16256 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16257 : end' >>confcache
16258 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16259 if test -w $cache_file; then
16260 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16261 cat confcache >$cache_file
16262 else
16263 echo "not updating unwritable cache $cache_file"
16266 rm -f confcache
16268 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16269 # Let make expand exec_prefix.
16270 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16274 # trailing colons and then remove the whole line if VPATH becomes empty
16275 # (actually we leave an empty line to preserve line numbers).
16276 if test "x$srcdir" = x.; then
16277 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16278 s/:*\$(srcdir):*/:/;
16279 s/:*\${srcdir}:*/:/;
16280 s/:*@srcdir@:*/:/;
16281 s/^\([^=]*=[ ]*\):*/\1/;
16282 s/:*$//;
16283 s/^[^=]*=[ ]*$//;
16287 DEFS=-DHAVE_CONFIG_H
16289 ac_libobjs=
16290 ac_ltlibobjs=
16291 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16292 # 1. Remove the extension, and $U if already installed.
16293 ac_i=`echo "$ac_i" |
16294 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16295 # 2. Add them.
16296 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16297 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16298 done
16299 LIBOBJS=$ac_libobjs
16301 LTLIBOBJS=$ac_ltlibobjs
16304 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16305 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16306 Usually this means the macro was only invoked conditionally." >&5
16307 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16308 Usually this means the macro was only invoked conditionally." >&2;}
16309 { (exit 1); exit 1; }; }
16311 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16312 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16313 Usually this means the macro was only invoked conditionally." >&5
16314 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16315 Usually this means the macro was only invoked conditionally." >&2;}
16316 { (exit 1); exit 1; }; }
16318 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16319 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16320 Usually this means the macro was only invoked conditionally." >&5
16321 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16322 Usually this means the macro was only invoked conditionally." >&2;}
16323 { (exit 1); exit 1; }; }
16325 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16326 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16327 Usually this means the macro was only invoked conditionally." >&5
16328 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16329 Usually this means the macro was only invoked conditionally." >&2;}
16330 { (exit 1); exit 1; }; }
16332 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16333 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16334 Usually this means the macro was only invoked conditionally." >&5
16335 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16336 Usually this means the macro was only invoked conditionally." >&2;}
16337 { (exit 1); exit 1; }; }
16339 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16340 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16341 Usually this means the macro was only invoked conditionally." >&5
16342 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16343 Usually this means the macro was only invoked conditionally." >&2;}
16344 { (exit 1); exit 1; }; }
16346 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
16347 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
16348 Usually this means the macro was only invoked conditionally." >&5
16349 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
16350 Usually this means the macro was only invoked conditionally." >&2;}
16351 { (exit 1); exit 1; }; }
16353 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16354 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16355 Usually this means the macro was only invoked conditionally." >&5
16356 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16357 Usually this means the macro was only invoked conditionally." >&2;}
16358 { (exit 1); exit 1; }; }
16360 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16361 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16362 Usually this means the macro was only invoked conditionally." >&5
16363 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16364 Usually this means the macro was only invoked conditionally." >&2;}
16365 { (exit 1); exit 1; }; }
16367 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16368 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16369 Usually this means the macro was only invoked conditionally." >&5
16370 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16371 Usually this means the macro was only invoked conditionally." >&2;}
16372 { (exit 1); exit 1; }; }
16374 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16375 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16376 Usually this means the macro was only invoked conditionally." >&5
16377 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16378 Usually this means the macro was only invoked conditionally." >&2;}
16379 { (exit 1); exit 1; }; }
16381 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16382 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16383 Usually this means the macro was only invoked conditionally." >&5
16384 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16385 Usually this means the macro was only invoked conditionally." >&2;}
16386 { (exit 1); exit 1; }; }
16388 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16389 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16390 Usually this means the macro was only invoked conditionally." >&5
16391 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16392 Usually this means the macro was only invoked conditionally." >&2;}
16393 { (exit 1); exit 1; }; }
16395 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16396 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16397 Usually this means the macro was only invoked conditionally." >&5
16398 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16399 Usually this means the macro was only invoked conditionally." >&2;}
16400 { (exit 1); exit 1; }; }
16402 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16403 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16404 Usually this means the macro was only invoked conditionally." >&5
16405 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16406 Usually this means the macro was only invoked conditionally." >&2;}
16407 { (exit 1); exit 1; }; }
16409 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16410 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16411 Usually this means the macro was only invoked conditionally." >&5
16412 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16413 Usually this means the macro was only invoked conditionally." >&2;}
16414 { (exit 1); exit 1; }; }
16416 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16417 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16418 Usually this means the macro was only invoked conditionally." >&5
16419 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16420 Usually this means the macro was only invoked conditionally." >&2;}
16421 { (exit 1); exit 1; }; }
16423 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16424 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16425 Usually this means the macro was only invoked conditionally." >&5
16426 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16427 Usually this means the macro was only invoked conditionally." >&2;}
16428 { (exit 1); exit 1; }; }
16430 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16431 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16432 Usually this means the macro was only invoked conditionally." >&5
16433 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16434 Usually this means the macro was only invoked conditionally." >&2;}
16435 { (exit 1); exit 1; }; }
16437 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16438 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16439 Usually this means the macro was only invoked conditionally." >&5
16440 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16441 Usually this means the macro was only invoked conditionally." >&2;}
16442 { (exit 1); exit 1; }; }
16444 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16445 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16446 Usually this means the macro was only invoked conditionally." >&5
16447 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16448 Usually this means the macro was only invoked conditionally." >&2;}
16449 { (exit 1); exit 1; }; }
16451 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16452 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16453 Usually this means the macro was only invoked conditionally." >&5
16454 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16455 Usually this means the macro was only invoked conditionally." >&2;}
16456 { (exit 1); exit 1; }; }
16458 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16459 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16460 Usually this means the macro was only invoked conditionally." >&5
16461 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16462 Usually this means the macro was only invoked conditionally." >&2;}
16463 { (exit 1); exit 1; }; }
16466 : ${CONFIG_STATUS=./config.status}
16467 ac_clean_files_save=$ac_clean_files
16468 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16469 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16470 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16471 cat >$CONFIG_STATUS <<_ACEOF
16472 #! $SHELL
16473 # Generated by $as_me.
16474 # Run this file to recreate the current configuration.
16475 # Compiler output produced by configure, useful for debugging
16476 # configure, is in config.log if it exists.
16478 debug=false
16479 ac_cs_recheck=false
16480 ac_cs_silent=false
16481 SHELL=\${CONFIG_SHELL-$SHELL}
16482 _ACEOF
16484 cat >>$CONFIG_STATUS <<\_ACEOF
16485 ## --------------------- ##
16486 ## M4sh Initialization. ##
16487 ## --------------------- ##
16489 # Be Bourne compatible
16490 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16491 emulate sh
16492 NULLCMD=:
16493 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16494 # is contrary to our usage. Disable this feature.
16495 alias -g '${1+"$@"}'='"$@"'
16496 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16497 set -o posix
16499 DUALCASE=1; export DUALCASE # for MKS sh
16501 # Support unset when possible.
16502 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16503 as_unset=unset
16504 else
16505 as_unset=false
16509 # Work around bugs in pre-3.0 UWIN ksh.
16510 $as_unset ENV MAIL MAILPATH
16511 PS1='$ '
16512 PS2='> '
16513 PS4='+ '
16515 # NLS nuisances.
16516 for as_var in \
16517 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16518 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16519 LC_TELEPHONE LC_TIME
16521 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16522 eval $as_var=C; export $as_var
16523 else
16524 $as_unset $as_var
16526 done
16528 # Required to use basename.
16529 if expr a : '\(a\)' >/dev/null 2>&1; then
16530 as_expr=expr
16531 else
16532 as_expr=false
16535 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16536 as_basename=basename
16537 else
16538 as_basename=false
16542 # Name of the executable.
16543 as_me=`$as_basename "$0" ||
16544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16545 X"$0" : 'X\(//\)$' \| \
16546 X"$0" : 'X\(/\)$' \| \
16547 . : '\(.\)' 2>/dev/null ||
16548 echo X/"$0" |
16549 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16550 /^X\/\(\/\/\)$/{ s//\1/; q; }
16551 /^X\/\(\/\).*/{ s//\1/; q; }
16552 s/.*/./; q'`
16555 # PATH needs CR, and LINENO needs CR and PATH.
16556 # Avoid depending upon Character Ranges.
16557 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16558 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16559 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16560 as_cr_digits='0123456789'
16561 as_cr_alnum=$as_cr_Letters$as_cr_digits
16563 # The user is always right.
16564 if test "${PATH_SEPARATOR+set}" != set; then
16565 echo "#! /bin/sh" >conf$$.sh
16566 echo "exit 0" >>conf$$.sh
16567 chmod +x conf$$.sh
16568 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16569 PATH_SEPARATOR=';'
16570 else
16571 PATH_SEPARATOR=:
16573 rm -f conf$$.sh
16577 as_lineno_1=$LINENO
16578 as_lineno_2=$LINENO
16579 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16580 test "x$as_lineno_1" != "x$as_lineno_2" &&
16581 test "x$as_lineno_3" = "x$as_lineno_2" || {
16582 # Find who we are. Look in the path if we contain no path at all
16583 # relative or not.
16584 case $0 in
16585 *[\\/]* ) as_myself=$0 ;;
16586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16587 for as_dir in $PATH
16589 IFS=$as_save_IFS
16590 test -z "$as_dir" && as_dir=.
16591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16592 done
16595 esac
16596 # We did not find ourselves, most probably we were run as `sh COMMAND'
16597 # in which case we are not to be found in the path.
16598 if test "x$as_myself" = x; then
16599 as_myself=$0
16601 if test ! -f "$as_myself"; then
16602 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16603 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16604 { (exit 1); exit 1; }; }
16606 case $CONFIG_SHELL in
16608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16609 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16611 IFS=$as_save_IFS
16612 test -z "$as_dir" && as_dir=.
16613 for as_base in sh bash ksh sh5; do
16614 case $as_dir in
16616 if ("$as_dir/$as_base" -c '
16617 as_lineno_1=$LINENO
16618 as_lineno_2=$LINENO
16619 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16620 test "x$as_lineno_1" != "x$as_lineno_2" &&
16621 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16622 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16623 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16624 CONFIG_SHELL=$as_dir/$as_base
16625 export CONFIG_SHELL
16626 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16627 fi;;
16628 esac
16629 done
16630 done
16632 esac
16634 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16635 # uniformly replaced by the line number. The first 'sed' inserts a
16636 # line-number line before each line; the second 'sed' does the real
16637 # work. The second script uses 'N' to pair each line-number line
16638 # with the numbered line, and appends trailing '-' during
16639 # substitution so that $LINENO is not a special case at line end.
16640 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16641 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16642 sed '=' <$as_myself |
16643 sed '
16645 s,$,-,
16646 : loop
16647 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16648 t loop
16649 s,-$,,
16650 s,^['$as_cr_digits']*\n,,
16651 ' >$as_me.lineno &&
16652 chmod +x $as_me.lineno ||
16653 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16654 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16655 { (exit 1); exit 1; }; }
16657 # Don't try to exec as it changes $[0], causing all sort of problems
16658 # (the dirname of $[0] is not the place where we might find the
16659 # original and so on. Autoconf is especially sensible to this).
16660 . ./$as_me.lineno
16661 # Exit status is that of the last command.
16662 exit
16666 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16667 *c*,-n*) ECHO_N= ECHO_C='
16668 ' ECHO_T=' ' ;;
16669 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16670 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16671 esac
16673 if expr a : '\(a\)' >/dev/null 2>&1; then
16674 as_expr=expr
16675 else
16676 as_expr=false
16679 rm -f conf$$ conf$$.exe conf$$.file
16680 echo >conf$$.file
16681 if ln -s conf$$.file conf$$ 2>/dev/null; then
16682 # We could just check for DJGPP; but this test a) works b) is more generic
16683 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16684 if test -f conf$$.exe; then
16685 # Don't use ln at all; we don't have any links
16686 as_ln_s='cp -p'
16687 else
16688 as_ln_s='ln -s'
16690 elif ln conf$$.file conf$$ 2>/dev/null; then
16691 as_ln_s=ln
16692 else
16693 as_ln_s='cp -p'
16695 rm -f conf$$ conf$$.exe conf$$.file
16697 if mkdir -p . 2>/dev/null; then
16698 as_mkdir_p=:
16699 else
16700 test -d ./-p && rmdir ./-p
16701 as_mkdir_p=false
16704 as_executable_p="test -f"
16706 # Sed expression to map a string onto a valid CPP name.
16707 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16709 # Sed expression to map a string onto a valid variable name.
16710 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16713 # IFS
16714 # We need space, tab and new line, in precisely that order.
16715 as_nl='
16717 IFS=" $as_nl"
16719 # CDPATH.
16720 $as_unset CDPATH
16722 exec 6>&1
16724 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16725 # report actual input values of CONFIG_FILES etc. instead of their
16726 # values after options handling. Logging --version etc. is OK.
16727 exec 5>>config.log
16729 echo
16730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16731 ## Running $as_me. ##
16732 _ASBOX
16733 } >&5
16734 cat >&5 <<_CSEOF
16736 This file was extended by libjava $as_me version-unused, which was
16737 generated by GNU Autoconf 2.59. Invocation command line was
16739 CONFIG_FILES = $CONFIG_FILES
16740 CONFIG_HEADERS = $CONFIG_HEADERS
16741 CONFIG_LINKS = $CONFIG_LINKS
16742 CONFIG_COMMANDS = $CONFIG_COMMANDS
16743 $ $0 $@
16745 _CSEOF
16746 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16747 echo >&5
16748 _ACEOF
16750 # Files that config.status was made for.
16751 if test -n "$ac_config_files"; then
16752 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16755 if test -n "$ac_config_headers"; then
16756 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16759 if test -n "$ac_config_links"; then
16760 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16763 if test -n "$ac_config_commands"; then
16764 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16767 cat >>$CONFIG_STATUS <<\_ACEOF
16769 ac_cs_usage="\
16770 \`$as_me' instantiates files from templates according to the
16771 current configuration.
16773 Usage: $0 [OPTIONS] [FILE]...
16775 -h, --help print this help, then exit
16776 -V, --version print version number, then exit
16777 -q, --quiet do not print progress messages
16778 -d, --debug don't remove temporary files
16779 --recheck update $as_me by reconfiguring in the same conditions
16780 --file=FILE[:TEMPLATE]
16781 instantiate the configuration file FILE
16782 --header=FILE[:TEMPLATE]
16783 instantiate the configuration header FILE
16785 Configuration files:
16786 $config_files
16788 Configuration headers:
16789 $config_headers
16791 Configuration links:
16792 $config_links
16794 Configuration commands:
16795 $config_commands
16797 Report bugs to <bug-autoconf@gnu.org>."
16798 _ACEOF
16800 cat >>$CONFIG_STATUS <<_ACEOF
16801 ac_cs_version="\\
16802 libjava config.status version-unused
16803 configured by $0, generated by GNU Autoconf 2.59,
16804 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16806 Copyright (C) 2003 Free Software Foundation, Inc.
16807 This config.status script is free software; the Free Software Foundation
16808 gives unlimited permission to copy, distribute and modify it."
16809 srcdir=$srcdir
16810 INSTALL="$INSTALL"
16811 _ACEOF
16813 cat >>$CONFIG_STATUS <<\_ACEOF
16814 # If no file are specified by the user, then we need to provide default
16815 # value. By we need to know if files were specified by the user.
16816 ac_need_defaults=:
16817 while test $# != 0
16819 case $1 in
16820 --*=*)
16821 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16822 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16823 ac_shift=:
16826 ac_option=$1
16827 ac_optarg=$2
16828 ac_shift=shift
16830 *) # This is not an option, so the user has probably given explicit
16831 # arguments.
16832 ac_option=$1
16833 ac_need_defaults=false;;
16834 esac
16836 case $ac_option in
16837 # Handling of the options.
16838 _ACEOF
16839 cat >>$CONFIG_STATUS <<\_ACEOF
16840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16841 ac_cs_recheck=: ;;
16842 --version | --vers* | -V )
16843 echo "$ac_cs_version"; exit 0 ;;
16844 --he | --h)
16845 # Conflict between --help and --header
16846 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16847 Try \`$0 --help' for more information." >&5
16848 echo "$as_me: error: ambiguous option: $1
16849 Try \`$0 --help' for more information." >&2;}
16850 { (exit 1); exit 1; }; };;
16851 --help | --hel | -h )
16852 echo "$ac_cs_usage"; exit 0 ;;
16853 --debug | --d* | -d )
16854 debug=: ;;
16855 --file | --fil | --fi | --f )
16856 $ac_shift
16857 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16858 ac_need_defaults=false;;
16859 --header | --heade | --head | --hea )
16860 $ac_shift
16861 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16862 ac_need_defaults=false;;
16863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16864 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16865 ac_cs_silent=: ;;
16867 # This is an error.
16868 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16869 Try \`$0 --help' for more information." >&5
16870 echo "$as_me: error: unrecognized option: $1
16871 Try \`$0 --help' for more information." >&2;}
16872 { (exit 1); exit 1; }; } ;;
16874 *) ac_config_targets="$ac_config_targets $1" ;;
16876 esac
16877 shift
16878 done
16880 ac_configure_extra_args=
16882 if $ac_cs_silent; then
16883 exec 6>/dev/null
16884 ac_configure_extra_args="$ac_configure_extra_args --silent"
16887 _ACEOF
16888 cat >>$CONFIG_STATUS <<_ACEOF
16889 if \$ac_cs_recheck; then
16890 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16891 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16894 _ACEOF
16896 cat >>$CONFIG_STATUS <<_ACEOF
16898 # INIT-COMMANDS section.
16901 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16902 srcdir=${srcdir}
16903 host=${host}
16904 target=${target}
16905 with_multisubdir=${with_multisubdir}
16906 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16907 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16908 libgcj_basedir=${libgcj_basedir}
16909 CC="${CC}"
16910 CXX="${CXX}"
16911 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16914 _ACEOF
16918 cat >>$CONFIG_STATUS <<\_ACEOF
16919 for ac_config_target in $ac_config_targets
16921 case "$ac_config_target" in
16922 # Handling of arguments.
16923 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16924 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16925 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16926 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16927 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16928 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16929 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16930 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16931 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16932 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16933 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16934 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16935 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16936 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16937 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16938 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16939 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16940 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16941 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16942 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16943 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16944 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16945 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16946 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16947 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16948 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16949 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16950 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16951 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16952 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16953 { (exit 1); exit 1; }; };;
16954 esac
16955 done
16957 # If the user did not use the arguments to specify the items to instantiate,
16958 # then the envvar interface is used. Set only those that are not.
16959 # We use the long form for the default assignment because of an extremely
16960 # bizarre bug on SunOS 4.1.3.
16961 if $ac_need_defaults; then
16962 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16963 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16964 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16965 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16968 # Have a temporary directory for convenience. Make it in the build tree
16969 # simply because there is no reason to put it here, and in addition,
16970 # creating and moving files from /tmp can sometimes cause problems.
16971 # Create a temporary directory, and hook for its removal unless debugging.
16972 $debug ||
16974 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16975 trap '{ (exit 1); exit 1; }' 1 2 13 15
16978 # Create a (secure) tmp directory for tmp files.
16981 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16982 test -n "$tmp" && test -d "$tmp"
16983 } ||
16985 tmp=./confstat$$-$RANDOM
16986 (umask 077 && mkdir $tmp)
16987 } ||
16989 echo "$me: cannot create a temporary directory in ." >&2
16990 { (exit 1); exit 1; }
16993 _ACEOF
16995 cat >>$CONFIG_STATUS <<_ACEOF
16998 # CONFIG_FILES section.
17001 # No need to generate the scripts if there are no CONFIG_FILES.
17002 # This happens for instance when ./config.status config.h
17003 if test -n "\$CONFIG_FILES"; then
17004 # Protect against being on the right side of a sed subst in config.status.
17005 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17006 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17007 s,@SHELL@,$SHELL,;t t
17008 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17009 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17010 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17011 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17012 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17013 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17014 s,@exec_prefix@,$exec_prefix,;t t
17015 s,@prefix@,$prefix,;t t
17016 s,@program_transform_name@,$program_transform_name,;t t
17017 s,@bindir@,$bindir,;t t
17018 s,@sbindir@,$sbindir,;t t
17019 s,@libexecdir@,$libexecdir,;t t
17020 s,@datadir@,$datadir,;t t
17021 s,@sysconfdir@,$sysconfdir,;t t
17022 s,@sharedstatedir@,$sharedstatedir,;t t
17023 s,@localstatedir@,$localstatedir,;t t
17024 s,@libdir@,$libdir,;t t
17025 s,@includedir@,$includedir,;t t
17026 s,@oldincludedir@,$oldincludedir,;t t
17027 s,@infodir@,$infodir,;t t
17028 s,@mandir@,$mandir,;t t
17029 s,@build_alias@,$build_alias,;t t
17030 s,@host_alias@,$host_alias,;t t
17031 s,@target_alias@,$target_alias,;t t
17032 s,@DEFS@,$DEFS,;t t
17033 s,@ECHO_C@,$ECHO_C,;t t
17034 s,@ECHO_N@,$ECHO_N,;t t
17035 s,@ECHO_T@,$ECHO_T,;t t
17036 s,@LIBS@,$LIBS,;t t
17037 s,@libgcj_basedir@,$libgcj_basedir,;t t
17038 s,@build@,$build,;t t
17039 s,@build_cpu@,$build_cpu,;t t
17040 s,@build_vendor@,$build_vendor,;t t
17041 s,@build_os@,$build_os,;t t
17042 s,@host@,$host,;t t
17043 s,@host_cpu@,$host_cpu,;t t
17044 s,@host_vendor@,$host_vendor,;t t
17045 s,@host_os@,$host_os,;t t
17046 s,@target@,$target,;t t
17047 s,@target_cpu@,$target_cpu,;t t
17048 s,@target_vendor@,$target_vendor,;t t
17049 s,@target_os@,$target_os,;t t
17050 s,@target_noncanonical@,$target_noncanonical,;t t
17051 s,@LN_S@,$LN_S,;t t
17052 s,@mkinstalldirs@,$mkinstalldirs,;t t
17053 s,@CC@,$CC,;t t
17054 s,@ac_ct_CC@,$ac_ct_CC,;t t
17055 s,@EXEEXT@,$EXEEXT,;t t
17056 s,@OBJEXT@,$OBJEXT,;t t
17057 s,@CXX@,$CXX,;t t
17058 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17059 s,@CFLAGS@,$CFLAGS,;t t
17060 s,@CXXFLAGS@,$CXXFLAGS,;t t
17061 s,@LDFLAGS@,$LDFLAGS,;t t
17062 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17063 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17064 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17065 s,@CYGPATH_W@,$CYGPATH_W,;t t
17066 s,@PACKAGE@,$PACKAGE,;t t
17067 s,@VERSION@,$VERSION,;t t
17068 s,@ACLOCAL@,$ACLOCAL,;t t
17069 s,@AUTOCONF@,$AUTOCONF,;t t
17070 s,@AUTOMAKE@,$AUTOMAKE,;t t
17071 s,@AUTOHEADER@,$AUTOHEADER,;t t
17072 s,@MAKEINFO@,$MAKEINFO,;t t
17073 s,@install_sh@,$install_sh,;t t
17074 s,@STRIP@,$STRIP,;t t
17075 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17076 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17077 s,@mkdir_p@,$mkdir_p,;t t
17078 s,@AWK@,$AWK,;t t
17079 s,@SET_MAKE@,$SET_MAKE,;t t
17080 s,@am__leading_dot@,$am__leading_dot,;t t
17081 s,@AMTAR@,$AMTAR,;t t
17082 s,@am__tar@,$am__tar,;t t
17083 s,@am__untar@,$am__untar,;t t
17084 s,@DEPDIR@,$DEPDIR,;t t
17085 s,@am__include@,$am__include,;t t
17086 s,@am__quote@,$am__quote,;t t
17087 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17088 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17089 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17090 s,@CCDEPMODE@,$CCDEPMODE,;t t
17091 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17092 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17093 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17094 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17095 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17096 s,@AS@,$AS,;t t
17097 s,@ac_ct_AS@,$ac_ct_AS,;t t
17098 s,@AR@,$AR,;t t
17099 s,@ac_ct_AR@,$ac_ct_AR,;t t
17100 s,@RANLIB@,$RANLIB,;t t
17101 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17102 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17103 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17104 s,@MAINT@,$MAINT,;t t
17105 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17106 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17107 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17108 s,@INCLTDL@,$INCLTDL,;t t
17109 s,@LIBLTDL@,$LIBLTDL,;t t
17110 s,@DIRLTDL@,$DIRLTDL,;t t
17111 s,@LIBTOOL@,$LIBTOOL,;t t
17112 s,@CXXCPP@,$CXXCPP,;t t
17113 s,@CPPFLAGS@,$CPPFLAGS,;t t
17114 s,@GCJ@,$GCJ,;t t
17115 s,@GCJFLAGS@,$GCJFLAGS,;t t
17116 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17117 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17118 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17119 s,@subdirs@,$subdirs,;t t
17120 s,@COMPPATH@,$COMPPATH,;t t
17121 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17122 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17123 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
17124 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
17125 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17126 s,@INTERPRETER@,$INTERPRETER,;t t
17127 s,@LIBFFI@,$LIBFFI,;t t
17128 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17129 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17130 s,@CPP@,$CPP,;t t
17131 s,@EGREP@,$EGREP,;t t
17132 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17133 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17134 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17135 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17136 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
17137 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
17138 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17139 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17140 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17141 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17142 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17143 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17144 s,@X_CFLAGS@,$X_CFLAGS,;t t
17145 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17146 s,@X_LIBS@,$X_LIBS,;t t
17147 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17148 s,@TOOLKIT@,$TOOLKIT,;t t
17149 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17150 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17151 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17152 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17153 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17154 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17155 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17156 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17157 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17158 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17159 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17160 s,@GCLIBS@,$GCLIBS,;t t
17161 s,@GCINCS@,$GCINCS,;t t
17162 s,@GCDEPS@,$GCDEPS,;t t
17163 s,@GCSPEC@,$GCSPEC,;t t
17164 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17165 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17166 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17167 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17168 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17169 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17170 s,@THREADLIBS@,$THREADLIBS,;t t
17171 s,@THREADINCS@,$THREADINCS,;t t
17172 s,@THREADDEPS@,$THREADDEPS,;t t
17173 s,@THREADSPEC@,$THREADSPEC,;t t
17174 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17175 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17176 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17177 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17178 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17179 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17180 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17181 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17182 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17183 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17184 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17185 s,@tool_include_dir@,$tool_include_dir,;t t
17186 s,@gcc_version@,$gcc_version,;t t
17187 s,@LIBICONV@,$LIBICONV,;t t
17188 s,@LTLIBICONV@,$LTLIBICONV,;t t
17189 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17190 s,@GTK_LIBS@,$GTK_LIBS,;t t
17191 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17192 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17193 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17194 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17195 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17196 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17197 s,@GCJH@,$GCJH,;t t
17198 s,@ZIP@,$ZIP,;t t
17199 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17200 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17201 s,@ZLIBS@,$ZLIBS,;t t
17202 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17203 s,@ZINCS@,$ZINCS,;t t
17204 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17205 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17206 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17207 s,@IEEESPEC@,$IEEESPEC,;t t
17208 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17209 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17210 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17211 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17212 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17213 s,@toolexecdir@,$toolexecdir,;t t
17214 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17215 s,@toolexeclibdir@,$toolexeclibdir,;t t
17216 s,@GCJVERSION@,$GCJVERSION,;t t
17217 s,@ALLOCA@,$ALLOCA,;t t
17218 s,@PERL@,$PERL,;t t
17219 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17220 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17221 s,@here@,$here,;t t
17222 s,@LIBOBJS@,$LIBOBJS,;t t
17223 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17224 CEOF
17226 _ACEOF
17228 cat >>$CONFIG_STATUS <<\_ACEOF
17229 # Split the substitutions into bite-sized pieces for seds with
17230 # small command number limits, like on Digital OSF/1 and HP-UX.
17231 ac_max_sed_lines=48
17232 ac_sed_frag=1 # Number of current file.
17233 ac_beg=1 # First line for current file.
17234 ac_end=$ac_max_sed_lines # Line after last line for current file.
17235 ac_more_lines=:
17236 ac_sed_cmds=
17237 while $ac_more_lines; do
17238 if test $ac_beg -gt 1; then
17239 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17240 else
17241 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17243 if test ! -s $tmp/subs.frag; then
17244 ac_more_lines=false
17245 else
17246 # The purpose of the label and of the branching condition is to
17247 # speed up the sed processing (if there are no `@' at all, there
17248 # is no need to browse any of the substitutions).
17249 # These are the two extra sed commands mentioned above.
17250 (echo ':t
17251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17252 if test -z "$ac_sed_cmds"; then
17253 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17254 else
17255 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17257 ac_sed_frag=`expr $ac_sed_frag + 1`
17258 ac_beg=$ac_end
17259 ac_end=`expr $ac_end + $ac_max_sed_lines`
17261 done
17262 if test -z "$ac_sed_cmds"; then
17263 ac_sed_cmds=cat
17265 fi # test -n "$CONFIG_FILES"
17267 _ACEOF
17268 cat >>$CONFIG_STATUS <<\_ACEOF
17269 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17270 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17271 case $ac_file in
17272 - | *:- | *:-:* ) # input from stdin
17273 cat >$tmp/stdin
17274 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17275 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17276 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17277 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17278 * ) ac_file_in=$ac_file.in ;;
17279 esac
17281 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17282 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17283 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17284 X"$ac_file" : 'X\(//\)[^/]' \| \
17285 X"$ac_file" : 'X\(//\)$' \| \
17286 X"$ac_file" : 'X\(/\)' \| \
17287 . : '\(.\)' 2>/dev/null ||
17288 echo X"$ac_file" |
17289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17291 /^X\(\/\/\)$/{ s//\1/; q; }
17292 /^X\(\/\).*/{ s//\1/; q; }
17293 s/.*/./; q'`
17294 { if $as_mkdir_p; then
17295 mkdir -p "$ac_dir"
17296 else
17297 as_dir="$ac_dir"
17298 as_dirs=
17299 while test ! -d "$as_dir"; do
17300 as_dirs="$as_dir $as_dirs"
17301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17303 X"$as_dir" : 'X\(//\)[^/]' \| \
17304 X"$as_dir" : 'X\(//\)$' \| \
17305 X"$as_dir" : 'X\(/\)' \| \
17306 . : '\(.\)' 2>/dev/null ||
17307 echo X"$as_dir" |
17308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17310 /^X\(\/\/\)$/{ s//\1/; q; }
17311 /^X\(\/\).*/{ s//\1/; q; }
17312 s/.*/./; q'`
17313 done
17314 test ! -n "$as_dirs" || mkdir $as_dirs
17315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17317 { (exit 1); exit 1; }; }; }
17319 ac_builddir=.
17321 if test "$ac_dir" != .; then
17322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17323 # A "../" for each directory in $ac_dir_suffix.
17324 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17325 else
17326 ac_dir_suffix= ac_top_builddir=
17329 case $srcdir in
17330 .) # No --srcdir option. We are building in place.
17331 ac_srcdir=.
17332 if test -z "$ac_top_builddir"; then
17333 ac_top_srcdir=.
17334 else
17335 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17336 fi ;;
17337 [\\/]* | ?:[\\/]* ) # Absolute path.
17338 ac_srcdir=$srcdir$ac_dir_suffix;
17339 ac_top_srcdir=$srcdir ;;
17340 *) # Relative path.
17341 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17342 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17343 esac
17345 # Do not use `cd foo && pwd` to compute absolute paths, because
17346 # the directories may not exist.
17347 case `pwd` in
17348 .) ac_abs_builddir="$ac_dir";;
17350 case "$ac_dir" in
17351 .) ac_abs_builddir=`pwd`;;
17352 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17353 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17354 esac;;
17355 esac
17356 case $ac_abs_builddir in
17357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17359 case ${ac_top_builddir}. in
17360 .) ac_abs_top_builddir=$ac_abs_builddir;;
17361 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17362 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17363 esac;;
17364 esac
17365 case $ac_abs_builddir in
17366 .) ac_abs_srcdir=$ac_srcdir;;
17368 case $ac_srcdir in
17369 .) ac_abs_srcdir=$ac_abs_builddir;;
17370 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17371 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17372 esac;;
17373 esac
17374 case $ac_abs_builddir in
17375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17377 case $ac_top_srcdir in
17378 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17379 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17380 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17381 esac;;
17382 esac
17385 case $INSTALL in
17386 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17387 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17388 esac
17390 # Let's still pretend it is `configure' which instantiates (i.e., don't
17391 # use $as_me), people would be surprised to read:
17392 # /* config.h. Generated by config.status. */
17393 if test x"$ac_file" = x-; then
17394 configure_input=
17395 else
17396 configure_input="$ac_file. "
17398 configure_input=$configure_input"Generated from `echo $ac_file_in |
17399 sed 's,.*/,,'` by configure."
17401 # First look for the input files in the build tree, otherwise in the
17402 # src tree.
17403 ac_file_inputs=`IFS=:
17404 for f in $ac_file_in; do
17405 case $f in
17406 -) echo $tmp/stdin ;;
17407 [\\/$]*)
17408 # Absolute (can't be DOS-style, as IFS=:)
17409 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17410 echo "$as_me: error: cannot find input file: $f" >&2;}
17411 { (exit 1); exit 1; }; }
17412 echo "$f";;
17413 *) # Relative
17414 if test -f "$f"; then
17415 # Build tree
17416 echo "$f"
17417 elif test -f "$srcdir/$f"; then
17418 # Source tree
17419 echo "$srcdir/$f"
17420 else
17421 # /dev/null tree
17422 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17423 echo "$as_me: error: cannot find input file: $f" >&2;}
17424 { (exit 1); exit 1; }; }
17425 fi;;
17426 esac
17427 done` || { (exit 1); exit 1; }
17429 if test x"$ac_file" != x-; then
17430 { echo "$as_me:$LINENO: creating $ac_file" >&5
17431 echo "$as_me: creating $ac_file" >&6;}
17432 rm -f "$ac_file"
17434 _ACEOF
17435 cat >>$CONFIG_STATUS <<_ACEOF
17436 sed "$ac_vpsub
17437 $extrasub
17438 _ACEOF
17439 cat >>$CONFIG_STATUS <<\_ACEOF
17441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17442 s,@configure_input@,$configure_input,;t t
17443 s,@srcdir@,$ac_srcdir,;t t
17444 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17445 s,@top_srcdir@,$ac_top_srcdir,;t t
17446 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17447 s,@builddir@,$ac_builddir,;t t
17448 s,@abs_builddir@,$ac_abs_builddir,;t t
17449 s,@top_builddir@,$ac_top_builddir,;t t
17450 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17451 s,@INSTALL@,$ac_INSTALL,;t t
17452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17453 rm -f $tmp/stdin
17454 if test x"$ac_file" != x-; then
17455 mv $tmp/out $ac_file
17456 else
17457 cat $tmp/out
17458 rm -f $tmp/out
17461 done
17462 _ACEOF
17463 cat >>$CONFIG_STATUS <<\_ACEOF
17466 # CONFIG_HEADER section.
17469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17472 # ac_d sets the value in "#define NAME VALUE" lines.
17473 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17474 ac_dB='[ ].*$,\1#\2'
17475 ac_dC=' '
17476 ac_dD=',;t'
17477 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17478 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17479 ac_uB='$,\1#\2define\3'
17480 ac_uC=' '
17481 ac_uD=',;t'
17483 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17485 case $ac_file in
17486 - | *:- | *:-:* ) # input from stdin
17487 cat >$tmp/stdin
17488 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17492 * ) ac_file_in=$ac_file.in ;;
17493 esac
17495 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17496 echo "$as_me: creating $ac_file" >&6;}
17498 # First look for the input files in the build tree, otherwise in the
17499 # src tree.
17500 ac_file_inputs=`IFS=:
17501 for f in $ac_file_in; do
17502 case $f in
17503 -) echo $tmp/stdin ;;
17504 [\\/$]*)
17505 # Absolute (can't be DOS-style, as IFS=:)
17506 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17507 echo "$as_me: error: cannot find input file: $f" >&2;}
17508 { (exit 1); exit 1; }; }
17509 # Do quote $f, to prevent DOS paths from being IFS'd.
17510 echo "$f";;
17511 *) # Relative
17512 if test -f "$f"; then
17513 # Build tree
17514 echo "$f"
17515 elif test -f "$srcdir/$f"; then
17516 # Source tree
17517 echo "$srcdir/$f"
17518 else
17519 # /dev/null tree
17520 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17521 echo "$as_me: error: cannot find input file: $f" >&2;}
17522 { (exit 1); exit 1; }; }
17523 fi;;
17524 esac
17525 done` || { (exit 1); exit 1; }
17526 # Remove the trailing spaces.
17527 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17529 _ACEOF
17531 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17532 # `conftest.undefs', that substitutes the proper values into
17533 # config.h.in to produce config.h. The first handles `#define'
17534 # templates, and the second `#undef' templates.
17535 # And first: Protect against being on the right side of a sed subst in
17536 # config.status. Protect against being in an unquoted here document
17537 # in config.status.
17538 rm -f conftest.defines conftest.undefs
17539 # Using a here document instead of a string reduces the quoting nightmare.
17540 # Putting comments in sed scripts is not portable.
17542 # `end' is used to avoid that the second main sed command (meant for
17543 # 0-ary CPP macros) applies to n-ary macro definitions.
17544 # See the Autoconf documentation for `clear'.
17545 cat >confdef2sed.sed <<\_ACEOF
17546 s/[\\&,]/\\&/g
17547 s,[\\$`],\\&,g
17548 t clear
17549 : clear
17550 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17551 t end
17552 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17553 : end
17554 _ACEOF
17555 # If some macros were called several times there might be several times
17556 # the same #defines, which is useless. Nevertheless, we may not want to
17557 # sort them, since we want the *last* AC-DEFINE to be honored.
17558 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17559 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17560 rm -f confdef2sed.sed
17562 # This sed command replaces #undef with comments. This is necessary, for
17563 # example, in the case of _POSIX_SOURCE, which is predefined and required
17564 # on some systems where configure will not decide to define it.
17565 cat >>conftest.undefs <<\_ACEOF
17566 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17567 _ACEOF
17569 # Break up conftest.defines because some shells have a limit on the size
17570 # of here documents, and old seds have small limits too (100 cmds).
17571 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17572 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17573 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17574 echo ' :' >>$CONFIG_STATUS
17575 rm -f conftest.tail
17576 while grep . conftest.defines >/dev/null
17578 # Write a limited-size here document to $tmp/defines.sed.
17579 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17580 # Speed up: don't consider the non `#define' lines.
17581 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17582 # Work around the forget-to-reset-the-flag bug.
17583 echo 't clr' >>$CONFIG_STATUS
17584 echo ': clr' >>$CONFIG_STATUS
17585 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17586 echo 'CEOF
17587 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17588 rm -f $tmp/in
17589 mv $tmp/out $tmp/in
17590 ' >>$CONFIG_STATUS
17591 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17592 rm -f conftest.defines
17593 mv conftest.tail conftest.defines
17594 done
17595 rm -f conftest.defines
17596 echo ' fi # grep' >>$CONFIG_STATUS
17597 echo >>$CONFIG_STATUS
17599 # Break up conftest.undefs because some shells have a limit on the size
17600 # of here documents, and old seds have small limits too (100 cmds).
17601 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17602 rm -f conftest.tail
17603 while grep . conftest.undefs >/dev/null
17605 # Write a limited-size here document to $tmp/undefs.sed.
17606 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17607 # Speed up: don't consider the non `#undef'
17608 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17609 # Work around the forget-to-reset-the-flag bug.
17610 echo 't clr' >>$CONFIG_STATUS
17611 echo ': clr' >>$CONFIG_STATUS
17612 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17613 echo 'CEOF
17614 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17615 rm -f $tmp/in
17616 mv $tmp/out $tmp/in
17617 ' >>$CONFIG_STATUS
17618 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17619 rm -f conftest.undefs
17620 mv conftest.tail conftest.undefs
17621 done
17622 rm -f conftest.undefs
17624 cat >>$CONFIG_STATUS <<\_ACEOF
17625 # Let's still pretend it is `configure' which instantiates (i.e., don't
17626 # use $as_me), people would be surprised to read:
17627 # /* config.h. Generated by config.status. */
17628 if test x"$ac_file" = x-; then
17629 echo "/* Generated by configure. */" >$tmp/config.h
17630 else
17631 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17633 cat $tmp/in >>$tmp/config.h
17634 rm -f $tmp/in
17635 if test x"$ac_file" != x-; then
17636 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17637 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17638 echo "$as_me: $ac_file is unchanged" >&6;}
17639 else
17640 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17642 X"$ac_file" : 'X\(//\)[^/]' \| \
17643 X"$ac_file" : 'X\(//\)$' \| \
17644 X"$ac_file" : 'X\(/\)' \| \
17645 . : '\(.\)' 2>/dev/null ||
17646 echo X"$ac_file" |
17647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17649 /^X\(\/\/\)$/{ s//\1/; q; }
17650 /^X\(\/\).*/{ s//\1/; q; }
17651 s/.*/./; q'`
17652 { if $as_mkdir_p; then
17653 mkdir -p "$ac_dir"
17654 else
17655 as_dir="$ac_dir"
17656 as_dirs=
17657 while test ! -d "$as_dir"; do
17658 as_dirs="$as_dir $as_dirs"
17659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17661 X"$as_dir" : 'X\(//\)[^/]' \| \
17662 X"$as_dir" : 'X\(//\)$' \| \
17663 X"$as_dir" : 'X\(/\)' \| \
17664 . : '\(.\)' 2>/dev/null ||
17665 echo X"$as_dir" |
17666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17668 /^X\(\/\/\)$/{ s//\1/; q; }
17669 /^X\(\/\).*/{ s//\1/; q; }
17670 s/.*/./; q'`
17671 done
17672 test ! -n "$as_dirs" || mkdir $as_dirs
17673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17674 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17675 { (exit 1); exit 1; }; }; }
17677 rm -f $ac_file
17678 mv $tmp/config.h $ac_file
17680 else
17681 cat $tmp/config.h
17682 rm -f $tmp/config.h
17684 # Compute $ac_file's index in $config_headers.
17685 _am_stamp_count=1
17686 for _am_header in $config_headers :; do
17687 case $_am_header in
17688 $ac_file | $ac_file:* )
17689 break ;;
17691 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17692 esac
17693 done
17694 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17695 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17696 X$ac_file : 'X\(//\)[^/]' \| \
17697 X$ac_file : 'X\(//\)$' \| \
17698 X$ac_file : 'X\(/\)' \| \
17699 . : '\(.\)' 2>/dev/null ||
17700 echo X$ac_file |
17701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17703 /^X\(\/\/\)$/{ s//\1/; q; }
17704 /^X\(\/\).*/{ s//\1/; q; }
17705 s/.*/./; q'`/stamp-h$_am_stamp_count
17706 done
17707 _ACEOF
17708 cat >>$CONFIG_STATUS <<\_ACEOF
17711 # CONFIG_LINKS section.
17714 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17715 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17716 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17718 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17719 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17721 if test ! -r $srcdir/$ac_source; then
17722 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17723 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17724 { (exit 1); exit 1; }; }
17726 rm -f $ac_dest
17728 # Make relative symlinks.
17729 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17730 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17731 X"$ac_dest" : 'X\(//\)[^/]' \| \
17732 X"$ac_dest" : 'X\(//\)$' \| \
17733 X"$ac_dest" : 'X\(/\)' \| \
17734 . : '\(.\)' 2>/dev/null ||
17735 echo X"$ac_dest" |
17736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17738 /^X\(\/\/\)$/{ s//\1/; q; }
17739 /^X\(\/\).*/{ s//\1/; q; }
17740 s/.*/./; q'`
17741 { if $as_mkdir_p; then
17742 mkdir -p "$ac_dest_dir"
17743 else
17744 as_dir="$ac_dest_dir"
17745 as_dirs=
17746 while test ! -d "$as_dir"; do
17747 as_dirs="$as_dir $as_dirs"
17748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17750 X"$as_dir" : 'X\(//\)[^/]' \| \
17751 X"$as_dir" : 'X\(//\)$' \| \
17752 X"$as_dir" : 'X\(/\)' \| \
17753 . : '\(.\)' 2>/dev/null ||
17754 echo X"$as_dir" |
17755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17757 /^X\(\/\/\)$/{ s//\1/; q; }
17758 /^X\(\/\).*/{ s//\1/; q; }
17759 s/.*/./; q'`
17760 done
17761 test ! -n "$as_dirs" || mkdir $as_dirs
17762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17763 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17764 { (exit 1); exit 1; }; }; }
17766 ac_builddir=.
17768 if test "$ac_dest_dir" != .; then
17769 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17770 # A "../" for each directory in $ac_dir_suffix.
17771 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17772 else
17773 ac_dir_suffix= ac_top_builddir=
17776 case $srcdir in
17777 .) # No --srcdir option. We are building in place.
17778 ac_srcdir=.
17779 if test -z "$ac_top_builddir"; then
17780 ac_top_srcdir=.
17781 else
17782 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17783 fi ;;
17784 [\\/]* | ?:[\\/]* ) # Absolute path.
17785 ac_srcdir=$srcdir$ac_dir_suffix;
17786 ac_top_srcdir=$srcdir ;;
17787 *) # Relative path.
17788 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17789 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17790 esac
17792 # Do not use `cd foo && pwd` to compute absolute paths, because
17793 # the directories may not exist.
17794 case `pwd` in
17795 .) ac_abs_builddir="$ac_dest_dir";;
17797 case "$ac_dest_dir" in
17798 .) ac_abs_builddir=`pwd`;;
17799 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17800 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17801 esac;;
17802 esac
17803 case $ac_abs_builddir in
17804 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17806 case ${ac_top_builddir}. in
17807 .) ac_abs_top_builddir=$ac_abs_builddir;;
17808 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17809 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17810 esac;;
17811 esac
17812 case $ac_abs_builddir in
17813 .) ac_abs_srcdir=$ac_srcdir;;
17815 case $ac_srcdir in
17816 .) ac_abs_srcdir=$ac_abs_builddir;;
17817 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17818 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17819 esac;;
17820 esac
17821 case $ac_abs_builddir in
17822 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17824 case $ac_top_srcdir in
17825 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17826 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17827 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17828 esac;;
17829 esac
17832 case $srcdir in
17833 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17834 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17835 esac
17837 # Try a symlink, then a hard link, then a copy.
17838 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17839 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17840 cp -p $srcdir/$ac_source $ac_dest ||
17841 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17842 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17843 { (exit 1); exit 1; }; }
17844 done
17845 _ACEOF
17846 cat >>$CONFIG_STATUS <<\_ACEOF
17849 # CONFIG_COMMANDS section.
17851 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17852 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17853 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17854 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17855 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17856 X"$ac_dest" : 'X\(//\)[^/]' \| \
17857 X"$ac_dest" : 'X\(//\)$' \| \
17858 X"$ac_dest" : 'X\(/\)' \| \
17859 . : '\(.\)' 2>/dev/null ||
17860 echo X"$ac_dest" |
17861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17863 /^X\(\/\/\)$/{ s//\1/; q; }
17864 /^X\(\/\).*/{ s//\1/; q; }
17865 s/.*/./; q'`
17866 { if $as_mkdir_p; then
17867 mkdir -p "$ac_dir"
17868 else
17869 as_dir="$ac_dir"
17870 as_dirs=
17871 while test ! -d "$as_dir"; do
17872 as_dirs="$as_dir $as_dirs"
17873 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17875 X"$as_dir" : 'X\(//\)[^/]' \| \
17876 X"$as_dir" : 'X\(//\)$' \| \
17877 X"$as_dir" : 'X\(/\)' \| \
17878 . : '\(.\)' 2>/dev/null ||
17879 echo X"$as_dir" |
17880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17882 /^X\(\/\/\)$/{ s//\1/; q; }
17883 /^X\(\/\).*/{ s//\1/; q; }
17884 s/.*/./; q'`
17885 done
17886 test ! -n "$as_dirs" || mkdir $as_dirs
17887 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17888 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17889 { (exit 1); exit 1; }; }; }
17891 ac_builddir=.
17893 if test "$ac_dir" != .; then
17894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17895 # A "../" for each directory in $ac_dir_suffix.
17896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17897 else
17898 ac_dir_suffix= ac_top_builddir=
17901 case $srcdir in
17902 .) # No --srcdir option. We are building in place.
17903 ac_srcdir=.
17904 if test -z "$ac_top_builddir"; then
17905 ac_top_srcdir=.
17906 else
17907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17908 fi ;;
17909 [\\/]* | ?:[\\/]* ) # Absolute path.
17910 ac_srcdir=$srcdir$ac_dir_suffix;
17911 ac_top_srcdir=$srcdir ;;
17912 *) # Relative path.
17913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17915 esac
17917 # Do not use `cd foo && pwd` to compute absolute paths, because
17918 # the directories may not exist.
17919 case `pwd` in
17920 .) ac_abs_builddir="$ac_dir";;
17922 case "$ac_dir" in
17923 .) ac_abs_builddir=`pwd`;;
17924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17926 esac;;
17927 esac
17928 case $ac_abs_builddir in
17929 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17931 case ${ac_top_builddir}. in
17932 .) ac_abs_top_builddir=$ac_abs_builddir;;
17933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17935 esac;;
17936 esac
17937 case $ac_abs_builddir in
17938 .) ac_abs_srcdir=$ac_srcdir;;
17940 case $ac_srcdir in
17941 .) ac_abs_srcdir=$ac_abs_builddir;;
17942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17944 esac;;
17945 esac
17946 case $ac_abs_builddir in
17947 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17949 case $ac_top_srcdir in
17950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17953 esac;;
17954 esac
17957 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17958 echo "$as_me: executing $ac_dest commands" >&6;}
17959 case $ac_dest in
17960 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17961 # Strip MF so we end up with the name of the file.
17962 mf=`echo "$mf" | sed -e 's/:.*$//'`
17963 # Check whether this is an Automake generated Makefile or not.
17964 # We used to match only the files named `Makefile.in', but
17965 # some people rename them; so instead we look at the file content.
17966 # Grep'ing the first line is not enough: some people post-process
17967 # each Makefile.in and add a new line on top of each file to say so.
17968 # So let's grep whole file.
17969 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17970 dirpart=`(dirname "$mf") 2>/dev/null ||
17971 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17972 X"$mf" : 'X\(//\)[^/]' \| \
17973 X"$mf" : 'X\(//\)$' \| \
17974 X"$mf" : 'X\(/\)' \| \
17975 . : '\(.\)' 2>/dev/null ||
17976 echo X"$mf" |
17977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17979 /^X\(\/\/\)$/{ s//\1/; q; }
17980 /^X\(\/\).*/{ s//\1/; q; }
17981 s/.*/./; q'`
17982 else
17983 continue
17985 # Extract the definition of DEPDIR, am__include, and am__quote
17986 # from the Makefile without running `make'.
17987 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17988 test -z "$DEPDIR" && continue
17989 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17990 test -z "am__include" && continue
17991 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17992 # When using ansi2knr, U may be empty or an underscore; expand it
17993 U=`sed -n 's/^U = //p' < "$mf"`
17994 # Find all dependency output files, they are included files with
17995 # $(DEPDIR) in their names. We invoke sed twice because it is the
17996 # simplest approach to changing $(DEPDIR) to its actual value in the
17997 # expansion.
17998 for file in `sed -n "
17999 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18000 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18001 # Make sure the directory exists.
18002 test -f "$dirpart/$file" && continue
18003 fdir=`(dirname "$file") 2>/dev/null ||
18004 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18005 X"$file" : 'X\(//\)[^/]' \| \
18006 X"$file" : 'X\(//\)$' \| \
18007 X"$file" : 'X\(/\)' \| \
18008 . : '\(.\)' 2>/dev/null ||
18009 echo X"$file" |
18010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18012 /^X\(\/\/\)$/{ s//\1/; q; }
18013 /^X\(\/\).*/{ s//\1/; q; }
18014 s/.*/./; q'`
18015 { if $as_mkdir_p; then
18016 mkdir -p $dirpart/$fdir
18017 else
18018 as_dir=$dirpart/$fdir
18019 as_dirs=
18020 while test ! -d "$as_dir"; do
18021 as_dirs="$as_dir $as_dirs"
18022 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18024 X"$as_dir" : 'X\(//\)[^/]' \| \
18025 X"$as_dir" : 'X\(//\)$' \| \
18026 X"$as_dir" : 'X\(/\)' \| \
18027 . : '\(.\)' 2>/dev/null ||
18028 echo X"$as_dir" |
18029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18031 /^X\(\/\/\)$/{ s//\1/; q; }
18032 /^X\(\/\).*/{ s//\1/; q; }
18033 s/.*/./; q'`
18034 done
18035 test ! -n "$as_dirs" || mkdir $as_dirs
18036 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18037 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18038 { (exit 1); exit 1; }; }; }
18040 # echo "creating $dirpart/$file"
18041 echo '# dummy' > "$dirpart/$file"
18042 done
18043 done
18045 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18046 case " $CONFIG_FILES " in
18047 *" Makefile "*)
18048 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18049 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18051 esac
18053 esac
18054 done
18055 _ACEOF
18057 cat >>$CONFIG_STATUS <<\_ACEOF
18059 { (exit 0); exit 0; }
18060 _ACEOF
18061 chmod +x $CONFIG_STATUS
18062 ac_clean_files=$ac_clean_files_save
18065 # configure is writing to config.log, and then calls config.status.
18066 # config.status does its own redirection, appending to config.log.
18067 # Unfortunately, on DOS this fails, as config.log is still kept open
18068 # by configure, so config.status won't be able to write to it; its
18069 # output is simply discarded. So we exec the FD to /dev/null,
18070 # effectively closing config.log, so it can be properly (re)opened and
18071 # appended to by config.status. When coming back to configure, we
18072 # need to make the FD available again.
18073 if test "$no_create" != yes; then
18074 ac_cs_success=:
18075 ac_config_status_args=
18076 test "$silent" = yes &&
18077 ac_config_status_args="$ac_config_status_args --quiet"
18078 exec 5>/dev/null
18079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18080 exec 5>>config.log
18081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18082 # would make configure fail if this is the last instruction.
18083 $ac_cs_success || { (exit 1); exit 1; }
18087 # CONFIG_SUBDIRS section.
18089 if test "$no_recursion" != yes; then
18091 # Remove --cache-file and --srcdir arguments so they do not pile up.
18092 ac_sub_configure_args=
18093 ac_prev=
18094 for ac_arg in $ac_configure_args; do
18095 if test -n "$ac_prev"; then
18096 ac_prev=
18097 continue
18099 case $ac_arg in
18100 -cache-file | --cache-file | --cache-fil | --cache-fi \
18101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18102 ac_prev=cache_file ;;
18103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18105 | --c=*)
18107 --config-cache | -C)
18109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18110 ac_prev=srcdir ;;
18111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18114 ac_prev=prefix ;;
18115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18117 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18118 esac
18119 done
18121 # Always prepend --prefix to ensure using the same prefix
18122 # in subdir configurations.
18123 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18125 ac_popdir=`pwd`
18126 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18128 # Do not complain, so a configure script can configure whichever
18129 # parts of a large source tree are present.
18130 test -d $srcdir/$ac_dir || continue
18132 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18133 echo "$as_me: configuring in $ac_dir" >&6;}
18134 { if $as_mkdir_p; then
18135 mkdir -p "$ac_dir"
18136 else
18137 as_dir="$ac_dir"
18138 as_dirs=
18139 while test ! -d "$as_dir"; do
18140 as_dirs="$as_dir $as_dirs"
18141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18143 X"$as_dir" : 'X\(//\)[^/]' \| \
18144 X"$as_dir" : 'X\(//\)$' \| \
18145 X"$as_dir" : 'X\(/\)' \| \
18146 . : '\(.\)' 2>/dev/null ||
18147 echo X"$as_dir" |
18148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18150 /^X\(\/\/\)$/{ s//\1/; q; }
18151 /^X\(\/\).*/{ s//\1/; q; }
18152 s/.*/./; q'`
18153 done
18154 test ! -n "$as_dirs" || mkdir $as_dirs
18155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18157 { (exit 1); exit 1; }; }; }
18159 ac_builddir=.
18161 if test "$ac_dir" != .; then
18162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18163 # A "../" for each directory in $ac_dir_suffix.
18164 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18165 else
18166 ac_dir_suffix= ac_top_builddir=
18169 case $srcdir in
18170 .) # No --srcdir option. We are building in place.
18171 ac_srcdir=.
18172 if test -z "$ac_top_builddir"; then
18173 ac_top_srcdir=.
18174 else
18175 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18176 fi ;;
18177 [\\/]* | ?:[\\/]* ) # Absolute path.
18178 ac_srcdir=$srcdir$ac_dir_suffix;
18179 ac_top_srcdir=$srcdir ;;
18180 *) # Relative path.
18181 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18182 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18183 esac
18185 # Do not use `cd foo && pwd` to compute absolute paths, because
18186 # the directories may not exist.
18187 case `pwd` in
18188 .) ac_abs_builddir="$ac_dir";;
18190 case "$ac_dir" in
18191 .) ac_abs_builddir=`pwd`;;
18192 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18193 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18194 esac;;
18195 esac
18196 case $ac_abs_builddir in
18197 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18199 case ${ac_top_builddir}. in
18200 .) ac_abs_top_builddir=$ac_abs_builddir;;
18201 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18202 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18203 esac;;
18204 esac
18205 case $ac_abs_builddir in
18206 .) ac_abs_srcdir=$ac_srcdir;;
18208 case $ac_srcdir in
18209 .) ac_abs_srcdir=$ac_abs_builddir;;
18210 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18211 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18212 esac;;
18213 esac
18214 case $ac_abs_builddir in
18215 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18217 case $ac_top_srcdir in
18218 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18219 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18220 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18221 esac;;
18222 esac
18225 cd $ac_dir
18227 # Check for guested configure; otherwise get Cygnus style configure.
18228 if test -f $ac_srcdir/configure.gnu; then
18229 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18230 elif test -f $ac_srcdir/configure; then
18231 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18232 elif test -f $ac_srcdir/configure.in; then
18233 ac_sub_configure=$ac_configure
18234 else
18235 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18236 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18237 ac_sub_configure=
18240 # The recursion is here.
18241 if test -n "$ac_sub_configure"; then
18242 # Make the cache file name correct relative to the subdirectory.
18243 case $cache_file in
18244 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18245 *) # Relative path.
18246 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18247 esac
18249 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18250 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18251 # The eval makes quoting arguments work.
18252 eval $ac_sub_configure $ac_sub_configure_args \
18253 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18254 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18255 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18256 { (exit 1); exit 1; }; }
18259 cd "$ac_popdir"
18260 done