* config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
[official-gcc.git] / libjava / configure
blobcd6dc283b84217b8c36aef1e7156889ab6a79b96
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 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 GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
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)
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-target-subdir=SUBDIR
886 configure in a subdirectory
887 --with-cross-host=HOST configure with a cross compiler from HOST
888 --with-newlib configure with newlib
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-pic try to use only PIC/non-PIC objects default=use both
891 --with-win32-nlsapi=ansi or unicows or unicode
892 native MinGW libgcj Win32 OS API (default is ansi)
893 --without-libffi don't use libffi
894 --with-ecos enable runtime eCos target support
895 --with-system-zlib use installed libz
896 --with-x use the X Window System
897 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
899 Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
906 CXX C++ compiler command
907 CXXFLAGS C++ compiler flags
908 CXXCPP C++ preprocessor
909 CPP C preprocessor
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
914 _ACEOF
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
919 ac_popdir=`pwd`
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
922 ac_builddir=.
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 else
929 ac_dir_suffix= ac_top_builddir=
932 case $srcdir in
933 .) # No --srcdir option. We are building in place.
934 ac_srcdir=.
935 if test -z "$ac_top_builddir"; then
936 ac_top_srcdir=.
937 else
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 fi ;;
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
943 *) # Relative path.
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
946 esac
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
950 case `pwd` in
951 .) ac_abs_builddir="$ac_dir";;
953 case "$ac_dir" in
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
957 esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966 esac;;
967 esac
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
971 case $ac_srcdir in
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975 esac;;
976 esac
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984 esac;;
985 esac
987 cd $ac_dir
988 # Check for guested configure; otherwise get Cygnus style configure.
989 if test -f $ac_srcdir/configure.gnu; then
990 echo
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
993 echo
994 $SHELL $ac_srcdir/configure --help=recursive
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
997 echo
998 $ac_configure --help
999 else
1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 cd "$ac_popdir"
1003 done
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1008 cat <<\_ACEOF
1009 libjava configure version-unused
1010 generated by GNU Autoconf 2.59
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1015 _ACEOF
1016 exit 0
1018 exec 5>config.log
1019 cat >&5 <<_ACEOF
1020 This file contains any messages produced by compilers while
1021 running configure, to aid debugging if configure makes a mistake.
1023 It was created by libjava $as_me version-unused, which was
1024 generated by GNU Autoconf 2.59. Invocation command line was
1026 $ $0 $@
1028 _ACEOF
1030 cat <<_ASUNAME
1031 ## --------- ##
1032 ## Platform. ##
1033 ## --------- ##
1035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1044 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1045 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1048 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1049 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1050 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052 _ASUNAME
1054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055 for as_dir in $PATH
1057 IFS=$as_save_IFS
1058 test -z "$as_dir" && as_dir=.
1059 echo "PATH: $as_dir"
1060 done
1062 } >&5
1064 cat >&5 <<_ACEOF
1067 ## ----------- ##
1068 ## Core tests. ##
1069 ## ----------- ##
1071 _ACEOF
1074 # Keep a trace of the command line.
1075 # Strip out --no-create and --no-recursion so they do not pile up.
1076 # Strip out --silent because we don't want to record it for future runs.
1077 # Also quote any args containing shell meta-characters.
1078 # Make two passes to allow for proper duplicate-argument suppression.
1079 ac_configure_args=
1080 ac_configure_args0=
1081 ac_configure_args1=
1082 ac_sep=
1083 ac_must_keep_next=false
1084 for ac_pass in 1 2
1086 for ac_arg
1088 case $ac_arg in
1089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 continue ;;
1093 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095 esac
1096 case $ac_pass in
1097 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100 if test $ac_must_keep_next = true; then
1101 ac_must_keep_next=false # Got value, back to normal.
1102 else
1103 case $ac_arg in
1104 *=* | --config-cache | -C | -disable-* | --disable-* \
1105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107 | -with-* | --with-* | -without-* | --without-* | --x)
1108 case "$ac_configure_args0 " in
1109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110 esac
1112 -* ) ac_must_keep_next=true ;;
1113 esac
1115 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116 # Get rid of the leading space.
1117 ac_sep=" "
1119 esac
1120 done
1121 done
1122 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125 # When interrupted or exit'd, cleanup temporary files, and complete
1126 # config.log. We remove comments because anyway the quotes in there
1127 # would cause problems or look ugly.
1128 # WARNING: Be sure not to use single quotes in there, as some shells,
1129 # such as our DU 5.0 friend, will then `close' the trap.
1130 trap 'exit_status=$?
1131 # Save into config.log some information that might help in debugging.
1133 echo
1135 cat <<\_ASBOX
1136 ## ---------------- ##
1137 ## Cache variables. ##
1138 ## ---------------- ##
1139 _ASBOX
1140 echo
1141 # The following way of writing the cache mishandles newlines in values,
1143 (set) 2>&1 |
1144 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145 *ac_space=\ *)
1146 sed -n \
1147 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 sed -n \
1152 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154 esac;
1156 echo
1158 cat <<\_ASBOX
1159 ## ----------------- ##
1160 ## Output variables. ##
1161 ## ----------------- ##
1162 _ASBOX
1163 echo
1164 for ac_var in $ac_subst_vars
1166 eval ac_val=$`echo $ac_var`
1167 echo "$ac_var='"'"'$ac_val'"'"'"
1168 done | sort
1169 echo
1171 if test -n "$ac_subst_files"; then
1172 cat <<\_ASBOX
1173 ## ------------- ##
1174 ## Output files. ##
1175 ## ------------- ##
1176 _ASBOX
1177 echo
1178 for ac_var in $ac_subst_files
1180 eval ac_val=$`echo $ac_var`
1181 echo "$ac_var='"'"'$ac_val'"'"'"
1182 done | sort
1183 echo
1186 if test -s confdefs.h; then
1187 cat <<\_ASBOX
1188 ## ----------- ##
1189 ## confdefs.h. ##
1190 ## ----------- ##
1191 _ASBOX
1192 echo
1193 sed "/^$/d" confdefs.h | sort
1194 echo
1196 test "$ac_signal" != 0 &&
1197 echo "$as_me: caught signal $ac_signal"
1198 echo "$as_me: exit $exit_status"
1199 } >&5
1200 rm -f core *.core &&
1201 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202 exit $exit_status
1204 for ac_signal in 1 2 13 15; do
1205 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206 done
1207 ac_signal=0
1209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210 rm -rf conftest* confdefs.h
1211 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 echo >confdefs.h
1214 # Predefined preprocessor variables.
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_NAME "$PACKAGE_NAME"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223 _ACEOF
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228 _ACEOF
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_STRING "$PACKAGE_STRING"
1233 _ACEOF
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238 _ACEOF
1241 # Let the site file select an alternate cache file if it wants to.
1242 # Prefer explicitly selected file to automatically selected ones.
1243 if test -z "$CONFIG_SITE"; then
1244 if test "x$prefix" != xNONE; then
1245 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246 else
1247 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250 for ac_site_file in $CONFIG_SITE; do
1251 if test -r "$ac_site_file"; then
1252 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253 echo "$as_me: loading site script $ac_site_file" >&6;}
1254 sed 's/^/| /' "$ac_site_file" >&5
1255 . "$ac_site_file"
1257 done
1259 if test -r "$cache_file"; then
1260 # Some versions of bash will fail to source /dev/null (special
1261 # files actually), so we avoid doing that.
1262 if test -f "$cache_file"; then
1263 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264 echo "$as_me: loading cache $cache_file" >&6;}
1265 case $cache_file in
1266 [\\/]* | ?:[\\/]* ) . $cache_file;;
1267 *) . ./$cache_file;;
1268 esac
1270 else
1271 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272 echo "$as_me: creating cache $cache_file" >&6;}
1273 >$cache_file
1276 # Check that the precious variables saved in the cache have kept the same
1277 # value.
1278 ac_cache_corrupted=false
1279 for ac_var in `(set) 2>&1 |
1280 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1281 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282 eval ac_new_set=\$ac_env_${ac_var}_set
1283 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284 eval ac_new_val="\$ac_env_${ac_var}_value"
1285 case $ac_old_set,$ac_new_set in
1286 set,)
1287 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289 ac_cache_corrupted=: ;;
1290 ,set)
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1294 ,);;
1296 if test "x$ac_old_val" != "x$ac_new_val"; then
1297 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1298 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1299 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1300 echo "$as_me: former value: $ac_old_val" >&2;}
1301 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1302 echo "$as_me: current value: $ac_new_val" >&2;}
1303 ac_cache_corrupted=:
1304 fi;;
1305 esac
1306 # Pass precious variables to config.status.
1307 if test "$ac_new_set" = set; then
1308 case $ac_new_val in
1309 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1311 *) ac_arg=$ac_var=$ac_new_val ;;
1312 esac
1313 case " $ac_configure_args " in
1314 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1315 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1316 esac
1318 done
1319 if $ac_cache_corrupted; then
1320 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1321 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1322 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1323 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1324 { (exit 1); exit 1; }; }
1327 ac_ext=c
1328 ac_cpp='$CPP $CPPFLAGS'
1329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1362 # We use these options to decide which functions to include.
1364 # Check whether --with-target-subdir or --without-target-subdir was given.
1365 if test "${with_target_subdir+set}" = set; then
1366 withval="$with_target_subdir"
1370 # We may get other options which we don't document:
1371 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1373 # When building with srcdir == objdir, links to the source files will
1374 # be created in directories within the target_subdir. We have to
1375 # adjust toplevel_srcdir accordingly, so that configure finds
1376 # install-sh and other auxiliary files that live in the top-level
1377 # source directory.
1378 if test "${srcdir}" = "."; then
1379 if test -z "${with_target_subdir}"; then
1380 toprel=".."
1381 else
1382 if test "${with_target_subdir}" != "."; then
1383 toprel="${with_multisrctop}../.."
1384 else
1385 toprel="${with_multisrctop}.."
1388 else
1389 toprel=".."
1392 libgcj_basedir=$srcdir/$toprel/./libjava
1395 ac_aux_dir=
1396 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1397 if test -f $ac_dir/install-sh; then
1398 ac_aux_dir=$ac_dir
1399 ac_install_sh="$ac_aux_dir/install-sh -c"
1400 break
1401 elif test -f $ac_dir/install.sh; then
1402 ac_aux_dir=$ac_dir
1403 ac_install_sh="$ac_aux_dir/install.sh -c"
1404 break
1405 elif test -f $ac_dir/shtool; then
1406 ac_aux_dir=$ac_dir
1407 ac_install_sh="$ac_aux_dir/shtool install -c"
1408 break
1410 done
1411 if test -z "$ac_aux_dir"; then
1412 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1413 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1414 { (exit 1); exit 1; }; }
1416 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1417 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1418 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1420 # Make sure we can run config.sub.
1421 $ac_config_sub sun4 >/dev/null 2>&1 ||
1422 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1423 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1424 { (exit 1); exit 1; }; }
1426 echo "$as_me:$LINENO: checking build system type" >&5
1427 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1428 if test "${ac_cv_build+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431 ac_cv_build_alias=$build_alias
1432 test -z "$ac_cv_build_alias" &&
1433 ac_cv_build_alias=`$ac_config_guess`
1434 test -z "$ac_cv_build_alias" &&
1435 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1437 { (exit 1); exit 1; }; }
1438 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1445 echo "${ECHO_T}$ac_cv_build" >&6
1446 build=$ac_cv_build
1447 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 echo "$as_me:$LINENO: checking host system type" >&5
1453 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1454 if test "${ac_cv_host+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 else
1457 ac_cv_host_alias=$host_alias
1458 test -z "$ac_cv_host_alias" &&
1459 ac_cv_host_alias=$ac_cv_build_alias
1460 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1461 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1462 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1463 { (exit 1); exit 1; }; }
1466 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1467 echo "${ECHO_T}$ac_cv_host" >&6
1468 host=$ac_cv_host
1469 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474 echo "$as_me:$LINENO: checking target system type" >&5
1475 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1476 if test "${ac_cv_target+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 ac_cv_target_alias=$target_alias
1480 test "x$ac_cv_target_alias" = "x" &&
1481 ac_cv_target_alias=$ac_cv_host_alias
1482 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1483 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1484 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1485 { (exit 1); exit 1; }; }
1488 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1489 echo "${ECHO_T}$ac_cv_target" >&6
1490 target=$ac_cv_target
1491 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1496 # The aliases save the names the user supplied, while $host etc.
1497 # will get canonicalized.
1498 test -n "$target_alias" &&
1499 test "$program_prefix$program_suffix$program_transform_name" = \
1500 NONENONEs,x,x, &&
1501 program_prefix=${target_alias}-
1502 case ${build_alias} in
1503 "") build_noncanonical=${build} ;;
1504 *) build_noncanonical=${build_alias} ;;
1505 esac
1507 case ${host_alias} in
1508 "") host_noncanonical=${build_noncanonical} ;;
1509 *) host_noncanonical=${host_alias} ;;
1510 esac
1512 case ${target_alias} in
1513 "") target_noncanonical=${host_noncanonical} ;;
1514 *) target_noncanonical=${target_alias} ;;
1515 esac
1520 # This works around the fact that libtool configuration may change LD
1521 # for this particular configuration, but some shells, instead of
1522 # keeping the changes in LD private, export them just because LD is
1523 # exported.
1524 ORIGINAL_LD_FOR_MULTILIBS=$LD
1526 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1527 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1528 LN_S=$as_ln_s
1529 if test "$LN_S" = "ln -s"; then
1530 echo "$as_me:$LINENO: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1532 else
1533 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1534 echo "${ECHO_T}no, using $LN_S" >&6
1538 # This works around an automake problem.
1539 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1543 # Check whether --with-cross-host or --without-cross-host was given.
1544 if test "${with_cross_host+set}" = set; then
1545 withval="$with_cross_host"
1550 # Check whether --with-newlib or --without-newlib was given.
1551 if test "${with_newlib+set}" = set; then
1552 withval="$with_newlib"
1556 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1557 if test "${enable_version_specific_runtime_libs+set}" = set; then
1558 enableval="$enable_version_specific_runtime_libs"
1559 case "$enableval" in
1560 yes) version_specific_libs=yes ;;
1561 no) version_specific_libs=no ;;
1562 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1563 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1564 { (exit 1); exit 1; }; };;
1565 esac
1566 else
1567 version_specific_libs=no
1571 # Default to --enable-multilib
1572 # Check whether --enable-multilib or --disable-multilib was given.
1573 if test "${enable_multilib+set}" = set; then
1574 enableval="$enable_multilib"
1575 case "${enableval}" in
1576 yes) multilib=yes ;;
1577 no) multilib=no ;;
1578 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1579 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1580 { (exit 1); exit 1; }; } ;;
1581 esac
1582 else
1583 multilib=yes
1585 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1588 # (1) We use an abnormal CXX (without library references), so we
1589 # must cache it under a different name.
1590 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1591 # the non-multilib-adjusted value will be used in multilibs.
1592 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1593 # (4) As another side effect, automake doesn't automatically include them
1594 # in Makefile.in.
1595 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1596 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1597 # used in later tests. This may not be necessary in libjava; I don't know.
1601 save_CXXFLAGS="$CXXFLAGS"
1602 CXXFLAGS="$CXXFLAGS -fno-builtin"
1603 ac_ext=c
1604 ac_cpp='$CPP $CPPFLAGS'
1605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 break 2
1630 done
1631 done
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_CC"; then
1646 ac_ct_CC=$CC
1647 # Extract the first word of "gcc", so it can be a program name with args.
1648 set dummy gcc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="gcc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
1668 done
1669 done
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1682 CC=$ac_ct_CC
1683 else
1684 CC="$ac_cv_prog_CC"
1687 if test -z "$CC"; then
1688 if test -n "$ac_tool_prefix"; then
1689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_CC="${ac_tool_prefix}cc"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1710 done
1711 done
1715 CC=$ac_cv_prog_CC
1716 if test -n "$CC"; then
1717 echo "$as_me:$LINENO: result: $CC" >&5
1718 echo "${ECHO_T}$CC" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1725 if test -z "$ac_cv_prog_CC"; then
1726 ac_ct_CC=$CC
1727 # Extract the first word of "cc", so it can be a program name with args.
1728 set dummy cc; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 if test -n "$ac_ct_CC"; then
1735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_ac_ct_CC="cc"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 break 2
1748 done
1749 done
1753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1754 if test -n "$ac_ct_CC"; then
1755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1756 echo "${ECHO_T}$ac_ct_CC" >&6
1757 else
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 CC=$ac_ct_CC
1763 else
1764 CC="$ac_cv_prog_CC"
1768 if test -z "$CC"; then
1769 # Extract the first word of "cc", so it can be a program name with args.
1770 set dummy cc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1778 else
1779 ac_prog_rejected=no
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 for as_dir in $PATH
1783 IFS=$as_save_IFS
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1788 ac_prog_rejected=yes
1789 continue
1791 ac_cv_prog_CC="cc"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 break 2
1795 done
1796 done
1798 if test $ac_prog_rejected = yes; then
1799 # We found a bogon in the path, so make sure we never use it.
1800 set dummy $ac_cv_prog_CC
1801 shift
1802 if test $# != 0; then
1803 # We chose a different compiler from the bogus one.
1804 # However, it has the same basename, so the bogon will be chosen
1805 # first if we set CC to just the basename; use the full file name.
1806 shift
1807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1812 CC=$ac_cv_prog_CC
1813 if test -n "$CC"; then
1814 echo "$as_me:$LINENO: result: $CC" >&5
1815 echo "${ECHO_T}$CC" >&6
1816 else
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1822 if test -z "$CC"; then
1823 if test -n "$ac_tool_prefix"; then
1824 for ac_prog in cl
1826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1847 done
1848 done
1852 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$CC" && break
1862 done
1864 if test -z "$CC"; then
1865 ac_ct_CC=$CC
1866 for ac_prog in cl
1868 # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1881 IFS=$as_save_IFS
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_CC="$ac_prog"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 break 2
1889 done
1890 done
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1898 else
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1903 test -n "$ac_ct_CC" && break
1904 done
1906 CC=$ac_ct_CC
1912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&2;}
1916 { (exit 1); exit 1; }; }
1918 # Provide some information about the compiler.
1919 echo "$as_me:$LINENO:" \
1920 "checking for C compiler version" >&5
1921 ac_compiler=`set X $ac_compile; echo $2`
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1938 cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h. */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1946 main ()
1950 return 0;
1952 _ACEOF
1953 # FIXME: Cleanup?
1954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1955 (eval $ac_link) 2>&5
1956 ac_status=$?
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; then
1959 gcc_no_link=no
1960 else
1961 gcc_no_link=yes
1964 if test x$gcc_no_link = xyes; then
1965 # Setting cross_compile will disable run tests; it will
1966 # also disable AC_CHECK_FILE but that's generally
1967 # correct if we can't link.
1968 cross_compiling=yes
1969 EXEEXT=
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1979 main ()
1983 return 0;
1985 _ACEOF
1986 ac_clean_files_save=$ac_clean_files
1987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1988 # Try to create an executable without -o first, disregard a.out.
1989 # It will help us diagnose broken compilers, and finding out an intuition
1990 # of exeext.
1991 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1994 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1995 (eval $ac_link_default) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; then
1999 # Find the output, starting from the most likely. This scheme is
2000 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2001 # resort.
2003 # Be careful to initialize this variable, since it used to be cached.
2004 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2005 ac_cv_exeext=
2006 # b.out is created by i960 compilers.
2007 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2009 test -f "$ac_file" || continue
2010 case $ac_file in
2011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2013 conftest.$ac_ext )
2014 # This is the source file.
2016 [ab].out )
2017 # We found the default executable, but exeext='' is most
2018 # certainly right.
2019 break;;
2020 *.* )
2021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2022 # FIXME: I believe we export ac_cv_exeext for Libtool,
2023 # but it would be cool to find out if it's true. Does anybody
2024 # maintain Libtool? --akim.
2025 export ac_cv_exeext
2026 break;;
2028 break;;
2029 esac
2030 done
2031 else
2032 echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: C compiler cannot create executables
2038 See \`config.log' for more details." >&2;}
2039 { (exit 77); exit 77; }; }
2042 ac_exeext=$ac_cv_exeext
2043 echo "$as_me:$LINENO: result: $ac_file" >&5
2044 echo "${ECHO_T}$ac_file" >&6
2046 # Check the compiler produces executables we can run. If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2051 # If not cross compiling, check that we can run a simple program.
2052 if test "$cross_compiling" != yes; then
2053 if { ac_try='./$ac_file'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 (eval $ac_try) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2059 cross_compiling=no
2060 else
2061 if test "$cross_compiling" = maybe; then
2062 cross_compiling=yes
2063 else
2064 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'.
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: cannot run C compiled programs.
2068 If you meant to cross compile, use \`--host'.
2069 See \`config.log' for more details." >&2;}
2070 { (exit 1); exit 1; }; }
2074 echo "$as_me:$LINENO: result: yes" >&5
2075 echo "${ECHO_T}yes" >&6
2077 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2078 ac_clean_files=$ac_clean_files_save
2079 # Check the compiler produces executables we can run. If not, either
2080 # the compiler is broken, or we cross compile.
2081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2082 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2083 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2084 echo "${ECHO_T}$cross_compiling" >&6
2086 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2087 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2089 (eval $ac_link) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; then
2093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2095 # work properly (i.e., refer to `conftest.exe'), while it won't with
2096 # `rm'.
2097 for ac_file in conftest.exe conftest conftest.*; do
2098 test -f "$ac_file" || continue
2099 case $ac_file in
2100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2101 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102 export ac_cv_exeext
2103 break;;
2104 * ) break;;
2105 esac
2106 done
2107 else
2108 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2111 See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2115 rm -f conftest$ac_cv_exeext
2116 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2117 echo "${ECHO_T}$ac_cv_exeext" >&6
2119 rm -f conftest.$ac_ext
2120 EXEEXT=$ac_cv_exeext
2121 ac_exeext=$EXEEXT
2123 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2124 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2125 if test "${ac_cv_objext+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 cat >conftest.$ac_ext <<_ACEOF
2129 /* confdefs.h. */
2130 _ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h. */
2136 main ()
2140 return 0;
2142 _ACEOF
2143 rm -f conftest.o conftest.obj
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2150 case $ac_file in
2151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2153 break;;
2154 esac
2155 done
2156 else
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2163 See \`config.log' for more details." >&2;}
2164 { (exit 1); exit 1; }; }
2167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2169 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2170 echo "${ECHO_T}$ac_cv_objext" >&6
2171 OBJEXT=$ac_cv_objext
2172 ac_objext=$OBJEXT
2173 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2174 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2175 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 cat >conftest.$ac_ext <<_ACEOF
2179 /* confdefs.h. */
2180 _ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2186 main ()
2188 #ifndef __GNUC__
2189 choke me
2190 #endif
2193 return 0;
2195 _ACEOF
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2199 ac_status=$?
2200 grep -v '^ *+' conftest.er1 >conftest.err
2201 rm -f conftest.er1
2202 cat conftest.err >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 ac_compiler_gnu=yes
2218 else
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2222 ac_compiler_gnu=no
2224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2228 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2229 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2230 GCC=`test $ac_compiler_gnu = yes && echo yes`
2231 ac_test_CFLAGS=${CFLAGS+set}
2232 ac_save_CFLAGS=$CFLAGS
2233 CFLAGS="-g"
2234 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2235 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2236 if test "${ac_cv_prog_cc_g+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239 cat >conftest.$ac_ext <<_ACEOF
2240 /* confdefs.h. */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2247 main ()
2251 return 0;
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2257 ac_status=$?
2258 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 ac_cv_prog_cc_g=yes
2276 else
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 ac_cv_prog_cc_g=no
2282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2286 if test "$ac_test_CFLAGS" = set; then
2287 CFLAGS=$ac_save_CFLAGS
2288 elif test $ac_cv_prog_cc_g = yes; then
2289 if test "$GCC" = yes; then
2290 CFLAGS="-g -O2"
2291 else
2292 CFLAGS="-g"
2294 else
2295 if test "$GCC" = yes; then
2296 CFLAGS="-O2"
2297 else
2298 CFLAGS=
2301 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2302 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2303 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 ac_cv_prog_cc_stdc=no
2307 ac_save_CC=$CC
2308 cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h. */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2314 #include <stdarg.h>
2315 #include <stdio.h>
2316 #include <sys/types.h>
2317 #include <sys/stat.h>
2318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2319 struct buf { int x; };
2320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2321 static char *e (p, i)
2322 char **p;
2323 int i;
2325 return p[i];
2327 static char *f (char * (*g) (char **, int), char **p, ...)
2329 char *s;
2330 va_list v;
2331 va_start (v,p);
2332 s = g (p, va_arg (v,int));
2333 va_end (v);
2334 return s;
2337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2338 function prototypes and stuff, but not '\xHH' hex character constants.
2339 These don't provoke an error unfortunately, instead are silently treated
2340 as 'x'. The following induces an error, until -std1 is added to get
2341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2342 array size at least. It's necessary to write '\x00'==0 to get something
2343 that's true only with -std1. */
2344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2346 int test (int i, double x);
2347 struct s1 {int (*f) (int a);};
2348 struct s2 {int (*f) (double a);};
2349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2350 int argc;
2351 char **argv;
2353 main ()
2355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2357 return 0;
2359 _ACEOF
2360 # Don't try gcc -ansi; that turns off useful extensions and
2361 # breaks some systems' header files.
2362 # AIX -qlanglvl=ansi
2363 # Ultrix and OSF/1 -std1
2364 # HP-UX 10.20 and later -Ae
2365 # HP-UX older versions -Aa -D_HPUX_SOURCE
2366 # SVR4 -Xc -D__EXTENSIONS__
2367 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2369 CC="$ac_save_CC $ac_arg"
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_cv_prog_cc_stdc=$ac_arg
2392 break
2393 else
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f conftest.err conftest.$ac_objext
2399 done
2400 rm -f conftest.$ac_ext conftest.$ac_objext
2401 CC=$ac_save_CC
2405 case "x$ac_cv_prog_cc_stdc" in
2406 x|xno)
2407 echo "$as_me:$LINENO: result: none needed" >&5
2408 echo "${ECHO_T}none needed" >&6 ;;
2410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2412 CC="$CC $ac_cv_prog_cc_stdc" ;;
2413 esac
2415 # Some people use a C++ compiler to compile C. Since we use `exit',
2416 # in C++ we need to declare it. In case someone uses the same compiler
2417 # for both compiling C and C++ we need to have the C++ compiler decide
2418 # the declaration of exit, since it's the most demanding environment.
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #ifndef __cplusplus
2421 choke me
2422 #endif
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>conftest.er1
2427 ac_status=$?
2428 grep -v '^ *+' conftest.er1 >conftest.err
2429 rm -f conftest.er1
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2445 for ac_declaration in \
2446 '' \
2447 'extern "C" void std::exit (int) throw (); using std::exit;' \
2448 'extern "C" void std::exit (int); using std::exit;' \
2449 'extern "C" void exit (int) throw ();' \
2450 'extern "C" void exit (int);' \
2451 'void exit (int);'
2453 cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h. */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2459 $ac_declaration
2460 #include <stdlib.h>
2462 main ()
2464 exit (42);
2466 return 0;
2468 _ACEOF
2469 rm -f conftest.$ac_objext
2470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471 (eval $ac_compile) 2>conftest.er1
2472 ac_status=$?
2473 grep -v '^ *+' conftest.er1 >conftest.err
2474 rm -f conftest.er1
2475 cat conftest.err >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 (eval $ac_try) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2491 else
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 continue
2497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2504 $ac_declaration
2506 main ()
2508 exit (42);
2510 return 0;
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2534 break
2535 else
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541 done
2542 rm -f conftest*
2543 if test -n "$ac_declaration"; then
2544 echo '#ifdef __cplusplus' >>confdefs.h
2545 echo $ac_declaration >>confdefs.h
2546 echo '#endif' >>confdefs.h
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561 ac_ext=cc
2562 ac_cpp='$CXXCPP $CPPFLAGS'
2563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2566 if test -n "$ac_tool_prefix"; then
2567 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2571 echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2573 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576 if test -n "$CXX"; then
2577 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2590 done
2591 done
2595 CXX=$glibcxx_cv_prog_CXX
2596 if test -n "$CXX"; then
2597 echo "$as_me:$LINENO: result: $CXX" >&5
2598 echo "${ECHO_T}$CXX" >&6
2599 else
2600 echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6
2604 test -n "$CXX" && break
2605 done
2607 if test -z "$CXX"; then
2608 ac_ct_CXX=$CXX
2609 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 if test -n "$ac_ct_CXX"; then
2619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_ac_ct_CXX="$ac_prog"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2632 done
2633 done
2637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2638 if test -n "$ac_ct_CXX"; then
2639 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2640 echo "${ECHO_T}$ac_ct_CXX" >&6
2641 else
2642 echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6
2646 test -n "$ac_ct_CXX" && break
2647 done
2648 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2650 CXX=$ac_ct_CXX
2654 # Provide some information about the compiler.
2655 echo "$as_me:$LINENO:" \
2656 "checking for C++ compiler version" >&5
2657 ac_compiler=`set X $ac_compile; echo $2`
2658 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2659 (eval $ac_compiler --version </dev/null >&5) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }
2663 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2664 (eval $ac_compiler -v </dev/null >&5) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }
2668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2669 (eval $ac_compiler -V </dev/null >&5) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }
2674 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2687 main ()
2689 #ifndef __GNUC__
2690 choke me
2691 #endif
2694 return 0;
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 ac_compiler_gnu=yes
2719 else
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2723 ac_compiler_gnu=no
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2729 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2731 GXX=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CXXFLAGS=${CXXFLAGS+set}
2733 ac_save_CXXFLAGS=$CXXFLAGS
2734 CXXFLAGS="-g"
2735 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2736 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2737 if test "${ac_cv_prog_cxx_g+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h. */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2748 main ()
2752 return 0;
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757 (eval $ac_compile) 2>conftest.er1
2758 ac_status=$?
2759 grep -v '^ *+' conftest.er1 >conftest.err
2760 rm -f conftest.er1
2761 cat conftest.err >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 ac_cv_prog_cxx_g=yes
2777 else
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2781 ac_cv_prog_cxx_g=no
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2786 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2787 if test "$ac_test_CXXFLAGS" = set; then
2788 CXXFLAGS=$ac_save_CXXFLAGS
2789 elif test $ac_cv_prog_cxx_g = yes; then
2790 if test "$GXX" = yes; then
2791 CXXFLAGS="-g -O2"
2792 else
2793 CXXFLAGS="-g"
2795 else
2796 if test "$GXX" = yes; then
2797 CXXFLAGS="-O2"
2798 else
2799 CXXFLAGS=
2802 for ac_declaration in \
2803 '' \
2804 'extern "C" void std::exit (int) throw (); using std::exit;' \
2805 'extern "C" void std::exit (int); using std::exit;' \
2806 'extern "C" void exit (int) throw ();' \
2807 'extern "C" void exit (int);' \
2808 'void exit (int);'
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2816 $ac_declaration
2817 #include <stdlib.h>
2819 main ()
2821 exit (42);
2823 return 0;
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2848 else
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2852 continue
2854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h. */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2861 $ac_declaration
2863 main ()
2865 exit (42);
2867 return 0;
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 break
2892 else
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898 done
2899 rm -f conftest*
2900 if test -n "$ac_declaration"; then
2901 echo '#ifdef __cplusplus' >>confdefs.h
2902 echo $ac_declaration >>confdefs.h
2903 echo '#endif' >>confdefs.h
2906 ac_ext=c
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 CXXFLAGS="$save_CXXFLAGS"
2918 am__api_version="1.9"
2919 # Find a good install program. We prefer a C program (faster),
2920 # so one script is as good as another. But avoid the broken or
2921 # incompatible versions:
2922 # SysV /etc/install, /usr/sbin/install
2923 # SunOS /usr/etc/install
2924 # IRIX /sbin/install
2925 # AIX /bin/install
2926 # AmigaOS /C/install, which installs bootblocks on floppy discs
2927 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2928 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2929 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2930 # OS/2's system install, which has a completely different semantic
2931 # ./install, which can be erroneously created by make from ./install.sh.
2932 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2933 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2934 if test -z "$INSTALL"; then
2935 if test "${ac_cv_path_install+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 # Account for people who put trailing slashes in PATH elements.
2944 case $as_dir/ in
2945 ./ | .// | /cC/* | \
2946 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2947 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2948 /usr/ucb/* ) ;;
2950 # OSF1 and SCO ODT 3.0 have their own names for install.
2951 # Don't use installbsd from OSF since it installs stuff as root
2952 # by default.
2953 for ac_prog in ginstall scoinst install; do
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2956 if test $ac_prog = install &&
2957 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2958 # AIX install. It has an incompatible calling convention.
2960 elif test $ac_prog = install &&
2961 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2962 # program-specific install script used by HP pwplus--don't use.
2964 else
2965 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2966 break 3
2969 done
2970 done
2972 esac
2973 done
2977 if test "${ac_cv_path_install+set}" = set; then
2978 INSTALL=$ac_cv_path_install
2979 else
2980 # As a last resort, use the slow shell script. We don't cache a
2981 # path for INSTALL within a source directory, because that will
2982 # break other packages using the cache if that directory is
2983 # removed, or if the path is relative.
2984 INSTALL=$ac_install_sh
2987 echo "$as_me:$LINENO: result: $INSTALL" >&5
2988 echo "${ECHO_T}$INSTALL" >&6
2990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2991 # It thinks the first close brace ends the variable substitution.
2992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2998 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2999 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3000 # Just in case
3001 sleep 1
3002 echo timestamp > conftest.file
3003 # Do `set' in a subshell so we don't clobber the current shell's
3004 # arguments. Must try -L first in case configure is actually a
3005 # symlink; some systems play weird games with the mod time of symlinks
3006 # (eg FreeBSD returns the mod time of the symlink's containing
3007 # directory).
3008 if (
3009 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3010 if test "$*" = "X"; then
3011 # -L didn't work.
3012 set X `ls -t $srcdir/configure conftest.file`
3014 rm -f conftest.file
3015 if test "$*" != "X $srcdir/configure conftest.file" \
3016 && test "$*" != "X conftest.file $srcdir/configure"; then
3018 # If neither matched, then we have a broken ls. This can happen
3019 # if, for instance, CONFIG_SHELL is bash and it inherits a
3020 # broken ls alias from the environment. This has actually
3021 # happened. Such a system could not be considered "sane".
3022 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3023 alias in your environment" >&5
3024 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3025 alias in your environment" >&2;}
3026 { (exit 1); exit 1; }; }
3029 test "$2" = conftest.file
3031 then
3032 # Ok.
3034 else
3035 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3036 Check your system clock" >&5
3037 echo "$as_me: error: newly created file is older than distributed files!
3038 Check your system clock" >&2;}
3039 { (exit 1); exit 1; }; }
3041 echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6
3043 test "$program_prefix" != NONE &&
3044 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3045 # Use a double $ so make ignores it.
3046 test "$program_suffix" != NONE &&
3047 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3048 # Double any \ or $. echo might interpret backslashes.
3049 # By default was `s,x,x', remove it if useless.
3050 cat <<\_ACEOF >conftest.sed
3051 s/[\\$]/&&/g;s/;s,x,x,$//
3052 _ACEOF
3053 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3054 rm conftest.sed
3056 # expand $ac_aux_dir to an absolute path
3057 am_aux_dir=`cd $ac_aux_dir && pwd`
3059 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3060 # Use eval to expand $SHELL
3061 if eval "$MISSING --run true"; then
3062 am_missing_run="$MISSING --run "
3063 else
3064 am_missing_run=
3065 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3066 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3069 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3070 # We used to keeping the `.' as first argument, in order to
3071 # allow $(mkdir_p) to be used without argument. As in
3072 # $(mkdir_p) $(somedir)
3073 # where $(somedir) is conditionally defined. However this is wrong
3074 # for two reasons:
3075 # 1. if the package is installed by a user who cannot write `.'
3076 # make install will fail,
3077 # 2. the above comment should most certainly read
3078 # $(mkdir_p) $(DESTDIR)$(somedir)
3079 # so it does not work when $(somedir) is undefined and
3080 # $(DESTDIR) is not.
3081 # To support the latter case, we have to write
3082 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3083 # so the `.' trick is pointless.
3084 mkdir_p='mkdir -p --'
3085 else
3086 # On NextStep and OpenStep, the `mkdir' command does not
3087 # recognize any option. It will interpret all options as
3088 # directories to create, and then abort because `.' already
3089 # exists.
3090 for d in ./-p ./--version;
3092 test -d $d && rmdir $d
3093 done
3094 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3095 if test -f "$ac_aux_dir/mkinstalldirs"; then
3096 mkdir_p='$(mkinstalldirs)'
3097 else
3098 mkdir_p='$(install_sh) -d'
3102 for ac_prog in gawk mawk nawk awk
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_AWK+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 if test -n "$AWK"; then
3112 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_AWK="$ac_prog"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3125 done
3126 done
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132 echo "$as_me:$LINENO: result: $AWK" >&5
3133 echo "${ECHO_T}$AWK" >&6
3134 else
3135 echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3139 test -n "$AWK" && break
3140 done
3142 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3144 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3145 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148 cat >conftest.make <<\_ACEOF
3149 all:
3150 @echo 'ac_maketemp="$(MAKE)"'
3151 _ACEOF
3152 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3153 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3154 if test -n "$ac_maketemp"; then
3155 eval ac_cv_prog_make_${ac_make}_set=yes
3156 else
3157 eval ac_cv_prog_make_${ac_make}_set=no
3159 rm -f conftest.make
3161 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3162 echo "$as_me:$LINENO: result: yes" >&5
3163 echo "${ECHO_T}yes" >&6
3164 SET_MAKE=
3165 else
3166 echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 SET_MAKE="MAKE=${MAKE-make}"
3171 rm -rf .tst 2>/dev/null
3172 mkdir .tst 2>/dev/null
3173 if test -d .tst; then
3174 am__leading_dot=.
3175 else
3176 am__leading_dot=_
3178 rmdir .tst 2>/dev/null
3180 DEPDIR="${am__leading_dot}deps"
3182 ac_config_commands="$ac_config_commands depfiles"
3185 am_make=${MAKE-make}
3186 cat > confinc << 'END'
3187 am__doit:
3188 @echo done
3189 .PHONY: am__doit
3191 # If we don't find an include directive, just comment out the code.
3192 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3193 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3194 am__include="#"
3195 am__quote=
3196 _am_result=none
3197 # First try GNU make style include.
3198 echo "include confinc" > confmf
3199 # We grep out `Entering directory' and `Leaving directory'
3200 # messages which can occur if `w' ends up in MAKEFLAGS.
3201 # In particular we don't look at `^make:' because GNU make might
3202 # be invoked under some other name (usually "gmake"), in which
3203 # case it prints its new name instead of `make'.
3204 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3205 am__include=include
3206 am__quote=
3207 _am_result=GNU
3209 # Now try BSD make style include.
3210 if test "$am__include" = "#"; then
3211 echo '.include "confinc"' > confmf
3212 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3213 am__include=.include
3214 am__quote="\""
3215 _am_result=BSD
3220 echo "$as_me:$LINENO: result: $_am_result" >&5
3221 echo "${ECHO_T}$_am_result" >&6
3222 rm -f confinc confmf
3224 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3225 if test "${enable_dependency_tracking+set}" = set; then
3226 enableval="$enable_dependency_tracking"
3229 if test "x$enable_dependency_tracking" != xno; then
3230 am_depcomp="$ac_aux_dir/depcomp"
3231 AMDEPBACKSLASH='\'
3235 if test "x$enable_dependency_tracking" != xno; then
3236 AMDEP_TRUE=
3237 AMDEP_FALSE='#'
3238 else
3239 AMDEP_TRUE='#'
3240 AMDEP_FALSE=
3245 # test to see if srcdir already configured
3246 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3247 test -f $srcdir/config.status; then
3248 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3249 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3250 { (exit 1); exit 1; }; }
3253 # test whether we have cygpath
3254 if test -z "$CYGPATH_W"; then
3255 if (cygpath --version) >/dev/null 2>/dev/null; then
3256 CYGPATH_W='cygpath -w'
3257 else
3258 CYGPATH_W=echo
3263 # Define the identity of the package.
3264 PACKAGE='libjava'
3265 VERSION='version-unused'
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE "$PACKAGE"
3270 _ACEOF
3273 cat >>confdefs.h <<_ACEOF
3274 #define VERSION "$VERSION"
3275 _ACEOF
3277 # Some tools Automake needs.
3279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3293 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3295 # Installed binaries are usually stripped using `strip' when the user
3296 # run `make install-strip'. However `strip' might not be the right
3297 # tool to use in cross-compilation environments, therefore Automake
3298 # will honor the `STRIP' environment variable to overrule this program.
3299 if test "$cross_compiling" != no; then
3300 if test -n "$ac_tool_prefix"; then
3301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}strip; ac_word=$2
3303 echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3305 if test "${ac_cv_prog_STRIP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 if test -n "$STRIP"; then
3309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3322 done
3323 done
3327 STRIP=$ac_cv_prog_STRIP
3328 if test -n "$STRIP"; then
3329 echo "$as_me:$LINENO: result: $STRIP" >&5
3330 echo "${ECHO_T}$STRIP" >&6
3331 else
3332 echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3337 if test -z "$ac_cv_prog_STRIP"; then
3338 ac_ct_STRIP=$STRIP
3339 # Extract the first word of "strip", so it can be a program name with args.
3340 set dummy strip; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346 if test -n "$ac_ct_STRIP"; then
3347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_ac_ct_STRIP="strip"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3360 done
3361 done
3363 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3366 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3367 if test -n "$ac_ct_STRIP"; then
3368 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3369 echo "${ECHO_T}$ac_ct_STRIP" >&6
3370 else
3371 echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3375 STRIP=$ac_ct_STRIP
3376 else
3377 STRIP="$ac_cv_prog_STRIP"
3381 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3383 # We need awk for the "check" target. The system "awk" is bad on
3384 # some platforms.
3385 # Always define AMTAR for backward compatibility.
3387 AMTAR=${AMTAR-"${am_missing_run}tar"}
3389 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3394 depcc="$CC" am_compiler_list=
3396 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3397 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3398 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3402 # We make a subdir and do the tests there. Otherwise we can end up
3403 # making bogus files that we don't know about and never remove. For
3404 # instance it was reported that on HP-UX the gcc test will end up
3405 # making a dummy file named `D' -- because `-MD' means `put the output
3406 # in D'.
3407 mkdir conftest.dir
3408 # Copy depcomp to subdir because otherwise we won't find it if we're
3409 # using a relative directory.
3410 cp "$am_depcomp" conftest.dir
3411 cd conftest.dir
3412 # We will build objects and dependencies in a subdirectory because
3413 # it helps to detect inapplicable dependency modes. For instance
3414 # both Tru64's cc and ICC support -MD to output dependencies as a
3415 # side effect of compilation, but ICC will put the dependencies in
3416 # the current directory while Tru64 will put them in the object
3417 # directory.
3418 mkdir sub
3420 am_cv_CC_dependencies_compiler_type=none
3421 if test "$am_compiler_list" = ""; then
3422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3424 for depmode in $am_compiler_list; do
3425 # Setup a source with many dependencies, because some compilers
3426 # like to wrap large dependency lists on column 80 (with \), and
3427 # we should not choose a depcomp mode which is confused by this.
3429 # We need to recreate these files for each test, as the compiler may
3430 # overwrite some of them when testing with obscure command lines.
3431 # This happens at least with the AIX C compiler.
3432 : > sub/conftest.c
3433 for i in 1 2 3 4 5 6; do
3434 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3435 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3436 # Solaris 8's {/usr,}/bin/sh.
3437 touch sub/conftst$i.h
3438 done
3439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3441 case $depmode in
3442 nosideeffect)
3443 # after this tag, mechanisms are not by side-effect, so they'll
3444 # only be used when explicitly requested
3445 if test "x$enable_dependency_tracking" = xyes; then
3446 continue
3447 else
3448 break
3451 none) break ;;
3452 esac
3453 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3454 # mode. It turns out that the SunPro C++ compiler does not properly
3455 # handle `-M -o', and we need to detect this.
3456 if depmode=$depmode \
3457 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3458 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3459 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3460 >/dev/null 2>conftest.err &&
3461 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3462 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3463 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3464 # icc doesn't choke on unknown options, it will just issue warnings
3465 # or remarks (even with -Werror). So we grep stderr for any message
3466 # that says an option was ignored or not supported.
3467 # When given -MP, icc 7.0 and 7.1 complain thusly:
3468 # icc: Command line warning: ignoring option '-M'; no argument required
3469 # The diagnosis changed in icc 8.0:
3470 # icc: Command line remark: option '-MP' not supported
3471 if (grep 'ignoring option' conftest.err ||
3472 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3473 am_cv_CC_dependencies_compiler_type=$depmode
3474 break
3477 done
3479 cd ..
3480 rm -rf conftest.dir
3481 else
3482 am_cv_CC_dependencies_compiler_type=none
3486 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3487 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3488 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3493 test "x$enable_dependency_tracking" != xno \
3494 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3495 am__fastdepCC_TRUE=
3496 am__fastdepCC_FALSE='#'
3497 else
3498 am__fastdepCC_TRUE='#'
3499 am__fastdepCC_FALSE=
3503 depcc="$CXX" am_compiler_list=
3505 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3506 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3507 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3511 # We make a subdir and do the tests there. Otherwise we can end up
3512 # making bogus files that we don't know about and never remove. For
3513 # instance it was reported that on HP-UX the gcc test will end up
3514 # making a dummy file named `D' -- because `-MD' means `put the output
3515 # in D'.
3516 mkdir conftest.dir
3517 # Copy depcomp to subdir because otherwise we won't find it if we're
3518 # using a relative directory.
3519 cp "$am_depcomp" conftest.dir
3520 cd conftest.dir
3521 # We will build objects and dependencies in a subdirectory because
3522 # it helps to detect inapplicable dependency modes. For instance
3523 # both Tru64's cc and ICC support -MD to output dependencies as a
3524 # side effect of compilation, but ICC will put the dependencies in
3525 # the current directory while Tru64 will put them in the object
3526 # directory.
3527 mkdir sub
3529 am_cv_CXX_dependencies_compiler_type=none
3530 if test "$am_compiler_list" = ""; then
3531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3533 for depmode in $am_compiler_list; do
3534 # Setup a source with many dependencies, because some compilers
3535 # like to wrap large dependency lists on column 80 (with \), and
3536 # we should not choose a depcomp mode which is confused by this.
3538 # We need to recreate these files for each test, as the compiler may
3539 # overwrite some of them when testing with obscure command lines.
3540 # This happens at least with the AIX C compiler.
3541 : > sub/conftest.c
3542 for i in 1 2 3 4 5 6; do
3543 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3544 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3545 # Solaris 8's {/usr,}/bin/sh.
3546 touch sub/conftst$i.h
3547 done
3548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3550 case $depmode in
3551 nosideeffect)
3552 # after this tag, mechanisms are not by side-effect, so they'll
3553 # only be used when explicitly requested
3554 if test "x$enable_dependency_tracking" = xyes; then
3555 continue
3556 else
3557 break
3560 none) break ;;
3561 esac
3562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3563 # mode. It turns out that the SunPro C++ compiler does not properly
3564 # handle `-M -o', and we need to detect this.
3565 if depmode=$depmode \
3566 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3568 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3569 >/dev/null 2>conftest.err &&
3570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3571 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3573 # icc doesn't choke on unknown options, it will just issue warnings
3574 # or remarks (even with -Werror). So we grep stderr for any message
3575 # that says an option was ignored or not supported.
3576 # When given -MP, icc 7.0 and 7.1 complain thusly:
3577 # icc: Command line warning: ignoring option '-M'; no argument required
3578 # The diagnosis changed in icc 8.0:
3579 # icc: Command line remark: option '-MP' not supported
3580 if (grep 'ignoring option' conftest.err ||
3581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3582 am_cv_CXX_dependencies_compiler_type=$depmode
3583 break
3586 done
3588 cd ..
3589 rm -rf conftest.dir
3590 else
3591 am_cv_CXX_dependencies_compiler_type=none
3595 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3596 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3597 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3602 test "x$enable_dependency_tracking" != xno \
3603 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3604 am__fastdepCXX_TRUE=
3605 am__fastdepCXX_FALSE='#'
3606 else
3607 am__fastdepCXX_TRUE='#'
3608 am__fastdepCXX_FALSE=
3614 if test -n "$ac_tool_prefix"; then
3615 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3616 set dummy ${ac_tool_prefix}as; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_AS+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622 if test -n "$AS"; then
3623 ac_cv_prog_AS="$AS" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_AS="${ac_tool_prefix}as"
3633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3636 done
3637 done
3641 AS=$ac_cv_prog_AS
3642 if test -n "$AS"; then
3643 echo "$as_me:$LINENO: result: $AS" >&5
3644 echo "${ECHO_T}$AS" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3651 if test -z "$ac_cv_prog_AS"; then
3652 ac_ct_AS=$AS
3653 # Extract the first word of "as", so it can be a program name with args.
3654 set dummy as; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 if test -n "$ac_ct_AS"; then
3661 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_ac_ct_AS="as"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3674 done
3675 done
3679 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3680 if test -n "$ac_ct_AS"; then
3681 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3682 echo "${ECHO_T}$ac_ct_AS" >&6
3683 else
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3688 AS=$ac_ct_AS
3689 else
3690 AS="$ac_cv_prog_AS"
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}ar; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_prog_AR+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 if test -n "$AR"; then
3702 ac_cv_prog_AR="$AR" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_AR="${ac_tool_prefix}ar"
3712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3720 AR=$ac_cv_prog_AR
3721 if test -n "$AR"; then
3722 echo "$as_me:$LINENO: result: $AR" >&5
3723 echo "${ECHO_T}$AR" >&6
3724 else
3725 echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3730 if test -z "$ac_cv_prog_AR"; then
3731 ac_ct_AR=$AR
3732 # Extract the first word of "ar", so it can be a program name with args.
3733 set dummy ar; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 if test -n "$ac_ct_AR"; then
3740 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_ac_ct_AR="ar"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3758 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3759 if test -n "$ac_ct_AR"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3761 echo "${ECHO_T}$ac_ct_AR" >&6
3762 else
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3767 AR=$ac_ct_AR
3768 else
3769 AR="$ac_cv_prog_AR"
3772 if test -n "$ac_tool_prefix"; then
3773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3775 echo "$as_me:$LINENO: checking for $ac_word" >&5
3776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3777 if test "${ac_cv_prog_RANLIB+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 if test -n "$RANLIB"; then
3781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3782 else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 break 2
3794 done
3795 done
3799 RANLIB=$ac_cv_prog_RANLIB
3800 if test -n "$RANLIB"; then
3801 echo "$as_me:$LINENO: result: $RANLIB" >&5
3802 echo "${ECHO_T}$RANLIB" >&6
3803 else
3804 echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3809 if test -z "$ac_cv_prog_RANLIB"; then
3810 ac_ct_RANLIB=$RANLIB
3811 # Extract the first word of "ranlib", so it can be a program name with args.
3812 set dummy ranlib; ac_word=$2
3813 echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 if test -n "$ac_ct_RANLIB"; then
3819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_RANLIB="ranlib"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3832 done
3833 done
3835 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3839 if test -n "$ac_ct_RANLIB"; then
3840 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3841 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3842 else
3843 echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3847 RANLIB=$ac_ct_RANLIB
3848 else
3849 RANLIB="$ac_cv_prog_RANLIB"
3853 # Find a good install program. We prefer a C program (faster),
3854 # so one script is as good as another. But avoid the broken or
3855 # incompatible versions:
3856 # SysV /etc/install, /usr/sbin/install
3857 # SunOS /usr/etc/install
3858 # IRIX /sbin/install
3859 # AIX /bin/install
3860 # AmigaOS /C/install, which installs bootblocks on floppy discs
3861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3864 # OS/2's system install, which has a completely different semantic
3865 # ./install, which can be erroneously created by make from ./install.sh.
3866 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3867 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3868 if test -z "$INSTALL"; then
3869 if test "${ac_cv_path_install+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 # Account for people who put trailing slashes in PATH elements.
3878 case $as_dir/ in
3879 ./ | .// | /cC/* | \
3880 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3881 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3882 /usr/ucb/* ) ;;
3884 # OSF1 and SCO ODT 3.0 have their own names for install.
3885 # Don't use installbsd from OSF since it installs stuff as root
3886 # by default.
3887 for ac_prog in ginstall scoinst install; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3890 if test $ac_prog = install &&
3891 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3892 # AIX install. It has an incompatible calling convention.
3894 elif test $ac_prog = install &&
3895 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3896 # program-specific install script used by HP pwplus--don't use.
3898 else
3899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3900 break 3
3903 done
3904 done
3906 esac
3907 done
3911 if test "${ac_cv_path_install+set}" = set; then
3912 INSTALL=$ac_cv_path_install
3913 else
3914 # As a last resort, use the slow shell script. We don't cache a
3915 # path for INSTALL within a source directory, because that will
3916 # break other packages using the cache if that directory is
3917 # removed, or if the path is relative.
3918 INSTALL=$ac_install_sh
3921 echo "$as_me:$LINENO: result: $INSTALL" >&5
3922 echo "${ECHO_T}$INSTALL" >&6
3924 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3925 # It thinks the first close brace ends the variable substitution.
3926 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3928 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3930 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3933 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3934 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3935 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3936 if test "${enable_maintainer_mode+set}" = set; then
3937 enableval="$enable_maintainer_mode"
3938 USE_MAINTAINER_MODE=$enableval
3939 else
3940 USE_MAINTAINER_MODE=no
3942 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3943 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3946 if test $USE_MAINTAINER_MODE = yes; then
3947 MAINTAINER_MODE_TRUE=
3948 MAINTAINER_MODE_FALSE='#'
3949 else
3950 MAINTAINER_MODE_TRUE='#'
3951 MAINTAINER_MODE_FALSE=
3954 MAINT=$MAINTAINER_MODE_TRUE
3960 # configure.host sets the following important variables
3961 # libgcj_cflags - host specific C compiler flags
3962 # libgcj_cxxflags - host specific C++ compiler flags
3963 # libgcj_javaflags - host specific Java compiler flags
3965 libgcj_cflags=
3966 libgcj_cxxflags=
3967 libgcj_javaflags=
3969 . ${srcdir}/configure.host
3971 LIBGCJ_CFLAGS="${libgcj_cflags}"
3972 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3973 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3978 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3981 # Only use libltdl for non-newlib builds.
3982 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3983 case $enable_ltdl_convenience in
3984 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3985 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3986 { (exit 1); exit 1; }; } ;;
3987 "") enable_ltdl_convenience=yes
3988 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3989 esac
3990 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3991 INCLTDL='-I${top_srcdir}/''libltdl'
3994 DIRLTDL=libltdl
3996 cat >>confdefs.h <<\_ACEOF
3997 #define USE_LTDL 1
3998 _ACEOF
4000 # Sigh. Libtool's macro doesn't do the right thing.
4001 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4002 # FIXME: this is a hack.
4003 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4004 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4009 # Check whether --enable-shared or --disable-shared was given.
4010 if test "${enable_shared+set}" = set; then
4011 enableval="$enable_shared"
4012 p=${PACKAGE-default}
4013 case $enableval in
4014 yes) enable_shared=yes ;;
4015 no) enable_shared=no ;;
4017 enable_shared=no
4018 # Look at the argument we got. We use all the common list separators.
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4020 for pkg in $enableval; do
4021 if test "X$pkg" = "X$p"; then
4022 enable_shared=yes
4024 done
4025 IFS="$ac_save_ifs"
4027 esac
4028 else
4029 enable_shared=yes
4031 # Check whether --enable-static or --disable-static was given.
4032 if test "${enable_static+set}" = set; then
4033 enableval="$enable_static"
4034 p=${PACKAGE-default}
4035 case $enableval in
4036 yes) enable_static=yes ;;
4037 no) enable_static=no ;;
4039 enable_static=no
4040 # Look at the argument we got. We use all the common list separators.
4041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4042 for pkg in $enableval; do
4043 if test "X$pkg" = "X$p"; then
4044 enable_static=yes
4046 done
4047 IFS="$ac_save_ifs"
4049 esac
4050 else
4051 enable_static=yes
4053 # Check whether --enable-fast-install or --disable-fast-install was given.
4054 if test "${enable_fast_install+set}" = set; then
4055 enableval="$enable_fast_install"
4056 p=${PACKAGE-default}
4057 case $enableval in
4058 yes) enable_fast_install=yes ;;
4059 no) enable_fast_install=no ;;
4061 enable_fast_install=no
4062 # Look at the argument we got. We use all the common list separators.
4063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4064 for pkg in $enableval; do
4065 if test "X$pkg" = "X$p"; then
4066 enable_fast_install=yes
4068 done
4069 IFS="$ac_save_ifs"
4071 esac
4072 else
4073 enable_fast_install=yes
4076 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4077 if test "${with_gnu_ld+set}" = set; then
4078 withval="$with_gnu_ld"
4079 test "$withval" = no || with_gnu_ld=yes
4080 else
4081 with_gnu_ld=no
4083 ac_prog=ld
4084 if test "$GCC" = yes; then
4085 # Check if gcc -print-prog-name=ld gives a path.
4086 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4087 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4088 case $host in
4089 *-*-mingw*)
4090 # gcc leaves a trailing carriage return which upsets mingw
4091 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4093 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4094 esac
4095 case $ac_prog in
4096 # Accept absolute paths.
4097 [\\/]* | [A-Za-z]:[\\/]*)
4098 re_direlt='/[^/][^/]*/\.\./'
4099 # Canonicalize the path of ld
4100 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4101 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4102 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4103 done
4104 test -z "$LD" && LD="$ac_prog"
4107 # If it fails, then pretend we aren't using GCC.
4108 ac_prog=ld
4111 # If it is relative, then search for the first ld in PATH.
4112 with_gnu_ld=unknown
4114 esac
4115 elif test "$with_gnu_ld" = yes; then
4116 echo "$as_me:$LINENO: checking for GNU ld" >&5
4117 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4118 else
4119 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4120 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4122 if test "${lt_cv_path_LD+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 if test -z "$LD"; then
4126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4127 for ac_dir in $PATH; do
4128 test -z "$ac_dir" && ac_dir=.
4129 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4130 lt_cv_path_LD="$ac_dir/$ac_prog"
4131 # Check to see if the program is GNU ld. I'd rather use --version,
4132 # but apparently some GNU ld's only accept -v.
4133 # Break only if it was the GNU/non-GNU ld that we prefer.
4134 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4135 test "$with_gnu_ld" != no && break
4136 else
4137 test "$with_gnu_ld" != yes && break
4140 done
4141 IFS="$ac_save_ifs"
4142 else
4143 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4147 LD="$lt_cv_path_LD"
4148 if test -n "$LD"; then
4149 echo "$as_me:$LINENO: result: $LD" >&5
4150 echo "${ECHO_T}$LD" >&6
4151 else
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4155 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4156 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4157 { (exit 1); exit 1; }; }
4158 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4159 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4160 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4164 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4165 lt_cv_prog_gnu_ld=yes
4166 else
4167 lt_cv_prog_gnu_ld=no
4170 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4171 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4172 with_gnu_ld=$lt_cv_prog_gnu_ld
4175 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4176 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4177 if test "${lt_cv_ld_reload_flag+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 lt_cv_ld_reload_flag='-r'
4182 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4183 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4184 reload_flag=$lt_cv_ld_reload_flag
4185 test -n "$reload_flag" && reload_flag=" $reload_flag"
4187 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4188 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4189 if test "${lt_cv_path_NM+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 if test -n "$NM"; then
4193 # Let the user override the test.
4194 lt_cv_path_NM="$NM"
4195 else
4196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4197 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4198 test -z "$ac_dir" && ac_dir=.
4199 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4200 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4201 # Check to see if the nm accepts a BSD-compat flag.
4202 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4203 # nm: unknown option "B" ignored
4204 # Tru64's nm complains that /dev/null is an invalid object file
4205 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4206 lt_cv_path_NM="$tmp_nm -B"
4207 break
4208 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4209 lt_cv_path_NM="$tmp_nm -p"
4210 break
4211 else
4212 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4213 continue # so that we can try to find one that supports BSD flags
4216 done
4217 IFS="$ac_save_ifs"
4218 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4222 NM="$lt_cv_path_NM"
4223 echo "$as_me:$LINENO: result: $NM" >&5
4224 echo "${ECHO_T}$NM" >&6
4226 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4227 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4228 if test "${lt_cv_deplibs_check_method+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 lt_cv_file_magic_cmd='$MAGIC_CMD'
4232 lt_cv_file_magic_test_file=
4233 lt_cv_deplibs_check_method='unknown'
4234 # Need to set the preceding variable on all platforms that support
4235 # interlibrary dependencies.
4236 # 'none' -- dependencies not supported.
4237 # `unknown' -- same as none, but documents that we really don't know.
4238 # 'pass_all' -- all dependencies passed with no checks.
4239 # 'test_compile' -- check by making test program.
4240 # 'file_magic [regex]' -- check by looking for files in library path
4241 # which responds to the $file_magic_cmd with a given egrep regex.
4242 # If you have `file' or equivalent on your system and you're not sure
4243 # whether `pass_all' will *always* work, you probably want this one.
4245 case $host_os in
4246 aix*)
4247 lt_cv_deplibs_check_method=pass_all
4250 beos*)
4251 lt_cv_deplibs_check_method=pass_all
4254 bsdi4*)
4255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4256 lt_cv_file_magic_cmd='/usr/bin/file -L'
4257 lt_cv_file_magic_test_file=/shlib/libc.so
4260 cygwin* | mingw* |pw32*)
4261 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4262 lt_cv_file_magic_cmd='$OBJDUMP -f'
4265 darwin* | rhapsody*)
4266 # this will be overwritten by pass_all, but leave it in just in case
4267 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4268 lt_cv_file_magic_cmd='/usr/bin/file -L'
4269 case "$host_os" in
4270 rhapsody* | darwin1.012)
4271 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4273 *) # Darwin 1.3 on
4274 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4276 esac
4277 lt_cv_deplibs_check_method=pass_all
4280 freebsd* | kfreebsd*-gnu)
4281 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4282 case $host_cpu in
4283 i*86 )
4284 # Not sure whether the presence of OpenBSD here was a mistake.
4285 # Let's accept both of them until this is cleared up.
4286 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4287 lt_cv_file_magic_cmd=/usr/bin/file
4288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4290 esac
4291 else
4292 lt_cv_deplibs_check_method=pass_all
4296 gnu*)
4297 lt_cv_deplibs_check_method=pass_all
4300 hpux10.20*|hpux11*)
4301 case $host_cpu in
4302 hppa*)
4303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4304 lt_cv_file_magic_cmd=/usr/bin/file
4305 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4307 ia64*)
4308 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4309 lt_cv_file_magic_cmd=/usr/bin/file
4310 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4312 esac
4315 irix5* | irix6*)
4316 case $host_os in
4317 irix5*)
4318 # this will be overridden with pass_all, but let us keep it just in case
4319 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4322 case $LD in
4323 *-32|*"-32 ") libmagic=32-bit;;
4324 *-n32|*"-n32 ") libmagic=N32;;
4325 *-64|*"-64 ") libmagic=64-bit;;
4326 *) libmagic=never-match;;
4327 esac
4328 # this will be overridden with pass_all, but let us keep it just in case
4329 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4331 esac
4332 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4333 lt_cv_deplibs_check_method=pass_all
4336 # This must be Linux ELF.
4337 linux-gnu*)
4338 case $host_cpu in
4339 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4340 lt_cv_deplibs_check_method=pass_all ;;
4342 # glibc up to 2.1.1 does not perform some relocations on ARM
4343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4344 esac
4345 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4348 netbsd* | knetbsd*-gnu)
4349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4350 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4351 else
4352 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4356 newsos6)
4357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4358 lt_cv_file_magic_cmd=/usr/bin/file
4359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4362 osf3* | osf4* | osf5*)
4363 # this will be overridden with pass_all, but let us keep it just in case
4364 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4365 lt_cv_file_magic_test_file=/shlib/libc.so
4366 lt_cv_deplibs_check_method=pass_all
4369 sco3.2v5*)
4370 lt_cv_deplibs_check_method=pass_all
4373 solaris*)
4374 lt_cv_deplibs_check_method=pass_all
4375 lt_cv_file_magic_test_file=/lib/libc.so
4378 sysv5uw[78]* | sysv4*uw2*)
4379 lt_cv_deplibs_check_method=pass_all
4382 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4383 case $host_vendor in
4384 ncr)
4385 lt_cv_deplibs_check_method=pass_all
4387 motorola)
4388 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]'
4389 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4391 esac
4393 esac
4396 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4397 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4398 file_magic_cmd=$lt_cv_file_magic_cmd
4399 deplibs_check_method=$lt_cv_deplibs_check_method
4404 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4406 # Only perform the check for file, if the check method requires it
4407 case $deplibs_check_method in
4408 file_magic*)
4409 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4410 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4411 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4412 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 case $MAGIC_CMD in
4417 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4419 ?:/*)
4420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4423 ac_save_MAGIC_CMD="$MAGIC_CMD"
4424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4425 ac_dummy="/usr/bin:$PATH"
4426 for ac_dir in $ac_dummy; do
4427 test -z "$ac_dir" && ac_dir=.
4428 if test -f $ac_dir/${ac_tool_prefix}file; then
4429 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4430 if test -n "$file_magic_test_file"; then
4431 case $deplibs_check_method in
4432 "file_magic "*)
4433 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4436 egrep "$file_magic_regex" > /dev/null; then
4438 else
4439 cat <<EOF 1>&2
4441 *** Warning: the command libtool uses to detect shared libraries,
4442 *** $file_magic_cmd, produces output that libtool cannot recognize.
4443 *** The result is that libtool may fail to recognize shared libraries
4444 *** as such. This will affect the creation of libtool libraries that
4445 *** depend on shared libraries, but programs linked with such libtool
4446 *** libraries will work regardless of this problem. Nevertheless, you
4447 *** may want to report the problem to your system manager and/or to
4448 *** bug-libtool@gnu.org
4451 fi ;;
4452 esac
4454 break
4456 done
4457 IFS="$ac_save_ifs"
4458 MAGIC_CMD="$ac_save_MAGIC_CMD"
4460 esac
4463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4464 if test -n "$MAGIC_CMD"; then
4465 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4466 echo "${ECHO_T}$MAGIC_CMD" >&6
4467 else
4468 echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4472 if test -z "$lt_cv_path_MAGIC_CMD"; then
4473 if test -n "$ac_tool_prefix"; then
4474 echo "$as_me:$LINENO: checking for file" >&5
4475 echo $ECHO_N "checking for file... $ECHO_C" >&6
4476 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 case $MAGIC_CMD in
4481 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4483 ?:/*)
4484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4487 ac_save_MAGIC_CMD="$MAGIC_CMD"
4488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4489 ac_dummy="/usr/bin:$PATH"
4490 for ac_dir in $ac_dummy; do
4491 test -z "$ac_dir" && ac_dir=.
4492 if test -f $ac_dir/file; then
4493 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4494 if test -n "$file_magic_test_file"; then
4495 case $deplibs_check_method in
4496 "file_magic "*)
4497 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4499 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4500 egrep "$file_magic_regex" > /dev/null; then
4502 else
4503 cat <<EOF 1>&2
4505 *** Warning: the command libtool uses to detect shared libraries,
4506 *** $file_magic_cmd, produces output that libtool cannot recognize.
4507 *** The result is that libtool may fail to recognize shared libraries
4508 *** as such. This will affect the creation of libtool libraries that
4509 *** depend on shared libraries, but programs linked with such libtool
4510 *** libraries will work regardless of this problem. Nevertheless, you
4511 *** may want to report the problem to your system manager and/or to
4512 *** bug-libtool@gnu.org
4515 fi ;;
4516 esac
4518 break
4520 done
4521 IFS="$ac_save_ifs"
4522 MAGIC_CMD="$ac_save_MAGIC_CMD"
4524 esac
4527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4528 if test -n "$MAGIC_CMD"; then
4529 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4530 echo "${ECHO_T}$MAGIC_CMD" >&6
4531 else
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4536 else
4537 MAGIC_CMD=:
4543 esac
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_RANLIB+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 if test -n "$RANLIB"; then
4554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4572 RANLIB=$ac_cv_prog_RANLIB
4573 if test -n "$RANLIB"; then
4574 echo "$as_me:$LINENO: result: $RANLIB" >&5
4575 echo "${ECHO_T}$RANLIB" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4582 if test -z "$ac_cv_prog_RANLIB"; then
4583 ac_ct_RANLIB=$RANLIB
4584 # Extract the first word of "ranlib", so it can be a program name with args.
4585 set dummy ranlib; ac_word=$2
4586 echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 if test -n "$ac_ct_RANLIB"; then
4592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_RANLIB="ranlib"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4605 done
4606 done
4608 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4612 if test -n "$ac_ct_RANLIB"; then
4613 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4614 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4615 else
4616 echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4620 RANLIB=$ac_ct_RANLIB
4621 else
4622 RANLIB="$ac_cv_prog_RANLIB"
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}strip; ac_word=$2
4628 echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630 if test "${ac_cv_prog_STRIP+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 if test -n "$STRIP"; then
4634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 break 2
4647 done
4648 done
4652 STRIP=$ac_cv_prog_STRIP
4653 if test -n "$STRIP"; then
4654 echo "$as_me:$LINENO: result: $STRIP" >&5
4655 echo "${ECHO_T}$STRIP" >&6
4656 else
4657 echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4662 if test -z "$ac_cv_prog_STRIP"; then
4663 ac_ct_STRIP=$STRIP
4664 # Extract the first word of "strip", so it can be a program name with args.
4665 set dummy strip; ac_word=$2
4666 echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671 if test -n "$ac_ct_STRIP"; then
4672 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_STRIP="strip"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4685 done
4686 done
4688 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4691 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4692 if test -n "$ac_ct_STRIP"; then
4693 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4694 echo "${ECHO_T}$ac_ct_STRIP" >&6
4695 else
4696 echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4700 STRIP=$ac_ct_STRIP
4701 else
4702 STRIP="$ac_cv_prog_STRIP"
4706 # Check for any special flags to pass to ltconfig.
4707 libtool_flags="--cache-file=$cache_file"
4708 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4709 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4710 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4711 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4712 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4715 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4716 if test "${enable_libtool_lock+set}" = set; then
4717 enableval="$enable_libtool_lock"
4720 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4721 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4724 # Check whether --with-pic or --without-pic was given.
4725 if test "${with_pic+set}" = set; then
4726 withval="$with_pic"
4727 pic_mode="$withval"
4728 else
4729 pic_mode=default
4731 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4732 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4734 # Some flags need to be propagated to the compiler or linker for good
4735 # libtool support.
4736 case $host in
4737 *-*-irix6*)
4738 # Find out which ABI we are using.
4739 echo '#line 4739 "configure"' > conftest.$ac_ext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; then
4745 if test "$lt_cv_prog_gnu_ld" = yes; then
4746 case `/usr/bin/file conftest.$ac_objext` in
4747 *32-bit*)
4748 LD="${LD-ld} -melf32bsmip"
4750 *N32*)
4751 LD="${LD-ld} -melf32bmipn32"
4753 *64-bit*)
4754 LD="${LD-ld} -melf64bmip"
4756 esac
4757 else
4758 case `/usr/bin/file conftest.$ac_objext` in
4759 *32-bit*)
4760 LD="${LD-ld} -32"
4762 *N32*)
4763 LD="${LD-ld} -n32"
4765 *64-bit*)
4766 LD="${LD-ld} -64"
4768 esac
4771 rm -rf conftest*
4774 ia64-*-hpux*)
4775 # Find out which ABI we are using.
4776 echo 'int i;' > conftest.$ac_ext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; then
4782 case "`/usr/bin/file conftest.o`" in
4783 *ELF-32*)
4784 HPUX_IA64_MODE="32"
4786 *ELF-64*)
4787 HPUX_IA64_MODE="64"
4789 esac
4791 rm -rf conftest*
4794 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4795 # Find out which ABI we are using.
4796 echo 'int i;' > conftest.$ac_ext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; then
4802 case "`/usr/bin/file conftest.o`" in
4803 *32-bit*)
4804 case $host in
4805 x86_64-*linux*)
4806 LD="${LD-ld} -m elf_i386"
4808 ppc64-*linux*|powerpc64-*linux*)
4809 LD="${LD-ld} -m elf32ppclinux"
4811 s390x-*linux*)
4812 LD="${LD-ld} -m elf_s390"
4814 sparc64-*linux*)
4815 LD="${LD-ld} -m elf32_sparc"
4817 esac
4819 *64-bit*)
4820 case $host in
4821 x86_64-*linux*)
4822 LD="${LD-ld} -m elf_x86_64"
4824 ppc*-*linux*|powerpc*-*linux*)
4825 LD="${LD-ld} -m elf64ppc"
4827 s390*-*linux*)
4828 LD="${LD-ld} -m elf64_s390"
4830 sparc*-*linux*)
4831 LD="${LD-ld} -m elf64_sparc"
4833 esac
4835 esac
4837 rm -rf conftest*
4840 *-*-sco3.2v5*)
4841 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4842 SAVE_CFLAGS="$CFLAGS"
4843 CFLAGS="$CFLAGS -belf"
4844 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4845 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4846 if test "${lt_cv_cc_needs_belf+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4851 ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 if test x$gcc_no_link = xyes; then
4858 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4860 { (exit 1); exit 1; }; }
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h. */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4870 main ()
4874 return 0;
4876 _ACEOF
4877 rm -f conftest.$ac_objext conftest$ac_exeext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4879 (eval $ac_link) 2>conftest.er1
4880 ac_status=$?
4881 grep -v '^ *+' conftest.er1 >conftest.err
4882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 (eval $ac_try) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; } &&
4892 { ac_try='test -s conftest$ac_exeext'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 lt_cv_cc_needs_belf=yes
4899 else
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4903 lt_cv_cc_needs_belf=no
4905 rm -f conftest.err conftest.$ac_objext \
4906 conftest$ac_exeext conftest.$ac_ext
4907 ac_ext=c
4908 ac_cpp='$CPP $CPPFLAGS'
4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4915 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4916 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4917 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4918 CFLAGS="$SAVE_CFLAGS"
4923 esac
4926 # Save cache, so that ltconfig can load it
4927 cat >confcache <<\_ACEOF
4928 # This file is a shell script that caches the results of configure
4929 # tests run on this system so they can be shared between configure
4930 # scripts and configure runs, see configure's option --config-cache.
4931 # It is not useful on other systems. If it contains results you don't
4932 # want to keep, you may remove or edit it.
4934 # config.status only pays attention to the cache file if you give it
4935 # the --recheck option to rerun configure.
4937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4939 # following values.
4941 _ACEOF
4943 # The following way of writing the cache mishandles newlines in values,
4944 # but we know of no workaround that is simple, portable, and efficient.
4945 # So, don't put newlines in cache variables' values.
4946 # Ultrix sh set writes to stderr and can't be redirected directly,
4947 # and sets the high bit in the cache file unless we assign to the vars.
4949 (set) 2>&1 |
4950 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4951 *ac_space=\ *)
4952 # `set' does not quote correctly, so add quotes (double-quote
4953 # substitution turns \\\\ into \\, and sed turns \\ into \).
4954 sed -n \
4955 "s/'/'\\\\''/g;
4956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4959 # `set' quotes correctly as required by POSIX, so do not add quotes.
4960 sed -n \
4961 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4963 esac;
4965 sed '
4966 t clear
4967 : clear
4968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4969 t end
4970 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4971 : end' >>confcache
4972 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4973 if test -w $cache_file; then
4974 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4975 cat confcache >$cache_file
4976 else
4977 echo "not updating unwritable cache $cache_file"
4980 rm -f confcache
4982 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4983 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4984 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4985 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4986 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4987 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4988 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4989 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4990 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4991 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4992 echo "$as_me: error: libtool configure failed" >&2;}
4993 { (exit 1); exit 1; }; }
4995 # Reload cache, that may have been modified by ltconfig
4996 if test -r "$cache_file"; then
4997 # Some versions of bash will fail to source /dev/null (special
4998 # files actually), so we avoid doing that.
4999 if test -f "$cache_file"; then
5000 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5001 echo "$as_me: loading cache $cache_file" >&6;}
5002 case $cache_file in
5003 [\\/]* | ?:[\\/]* ) . $cache_file;;
5004 *) . ./$cache_file;;
5005 esac
5007 else
5008 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5009 echo "$as_me: creating cache $cache_file" >&6;}
5010 >$cache_file
5014 # This can be used to rebuild libtool when needed
5015 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5017 # Always use our own libtool.
5018 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5020 # Redirect the config.log output again, so that the ltconfig log is not
5021 # clobbered by the next message.
5022 exec 5>>./config.log
5024 ac_ext=cc
5025 ac_cpp='$CXXCPP $CPPFLAGS'
5026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5029 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5030 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5031 if test -z "$CXXCPP"; then
5032 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 # Double quotes because CXXCPP needs to be expanded
5036 for CXXCPP in "$CXX -E" "/lib/cpp"
5038 ac_preproc_ok=false
5039 for ac_cxx_preproc_warn_flag in '' yes
5041 # Use a header file that comes with gcc, so configuring glibc
5042 # with a fresh cross-compiler works.
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 # <limits.h> exists even on freestanding compilers.
5045 # On the NeXT, cc -E runs the code through the compiler's parser,
5046 # not just through cpp. "Syntax error" is here to catch this case.
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #ifdef __STDC__
5054 # include <limits.h>
5055 #else
5056 # include <assert.h>
5057 #endif
5058 Syntax error
5059 _ACEOF
5060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } >/dev/null; then
5068 if test -s conftest.err; then
5069 ac_cpp_err=$ac_cxx_preproc_warn_flag
5070 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5071 else
5072 ac_cpp_err=
5074 else
5075 ac_cpp_err=yes
5077 if test -z "$ac_cpp_err"; then
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083 # Broken: fails on valid input.
5084 continue
5086 rm -f conftest.err conftest.$ac_ext
5088 # OK, works on sane cases. Now check whether non-existent headers
5089 # can be detected and how.
5090 cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h. */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 #include <ac_nonexistent.h>
5097 _ACEOF
5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null; then
5106 if test -s conftest.err; then
5107 ac_cpp_err=$ac_cxx_preproc_warn_flag
5108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5109 else
5110 ac_cpp_err=
5112 else
5113 ac_cpp_err=yes
5115 if test -z "$ac_cpp_err"; then
5116 # Broken: success on invalid input.
5117 continue
5118 else
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 # Passes both tests.
5123 ac_preproc_ok=:
5124 break
5126 rm -f conftest.err conftest.$ac_ext
5128 done
5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130 rm -f conftest.err conftest.$ac_ext
5131 if $ac_preproc_ok; then
5132 break
5135 done
5136 ac_cv_prog_CXXCPP=$CXXCPP
5139 CXXCPP=$ac_cv_prog_CXXCPP
5140 else
5141 ac_cv_prog_CXXCPP=$CXXCPP
5143 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5144 echo "${ECHO_T}$CXXCPP" >&6
5145 ac_preproc_ok=false
5146 for ac_cxx_preproc_warn_flag in '' yes
5148 # Use a header file that comes with gcc, so configuring glibc
5149 # with a fresh cross-compiler works.
5150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5151 # <limits.h> exists even on freestanding compilers.
5152 # On the NeXT, cc -E runs the code through the compiler's parser,
5153 # not just through cpp. "Syntax error" is here to catch this case.
5154 cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h. */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 #ifdef __STDC__
5161 # include <limits.h>
5162 #else
5163 # include <assert.h>
5164 #endif
5165 Syntax error
5166 _ACEOF
5167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5169 ac_status=$?
5170 grep -v '^ *+' conftest.er1 >conftest.err
5171 rm -f conftest.er1
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } >/dev/null; then
5175 if test -s conftest.err; then
5176 ac_cpp_err=$ac_cxx_preproc_warn_flag
5177 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5178 else
5179 ac_cpp_err=
5181 else
5182 ac_cpp_err=yes
5184 if test -z "$ac_cpp_err"; then
5186 else
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 # Broken: fails on valid input.
5191 continue
5193 rm -f conftest.err conftest.$ac_ext
5195 # OK, works on sane cases. Now check whether non-existent headers
5196 # can be detected and how.
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #include <ac_nonexistent.h>
5204 _ACEOF
5205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } >/dev/null; then
5213 if test -s conftest.err; then
5214 ac_cpp_err=$ac_cxx_preproc_warn_flag
5215 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5216 else
5217 ac_cpp_err=
5219 else
5220 ac_cpp_err=yes
5222 if test -z "$ac_cpp_err"; then
5223 # Broken: success on invalid input.
5224 continue
5225 else
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5229 # Passes both tests.
5230 ac_preproc_ok=:
5231 break
5233 rm -f conftest.err conftest.$ac_ext
5235 done
5236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5237 rm -f conftest.err conftest.$ac_ext
5238 if $ac_preproc_ok; then
5240 else
5241 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5242 See \`config.log' for more details." >&5
5243 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5244 See \`config.log' for more details." >&2;}
5245 { (exit 1); exit 1; }; }
5248 ac_ext=c
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5257 lt_save_CC="$CC"
5258 lt_save_CFLAGS="$CFLAGS"
5259 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5260 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5261 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5262 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5263 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5264 deplibs_check_method="$deplibs_check_method" \
5265 file_magic_cmd="$file_magic_cmd" \
5266 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5267 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5268 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5269 echo "$as_me: error: libtool tag configuration failed" >&2;}
5270 { (exit 1); exit 1; }; }
5271 CC="$lt_save_CC"
5272 CFLAGS="$lt_save_CFLAGS"
5274 # Redirect the config.log output again, so that the ltconfig log is not
5275 # clobbered by the next message.
5276 exec 5>>./config.log
5284 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287 set dummy $ac_prog; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_prog_GCJ+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if test -n "$GCJ"; then
5294 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303 ac_cv_prog_GCJ="$ac_prog"
5304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5312 GCJ=$ac_cv_prog_GCJ
5313 if test -n "$GCJ"; then
5314 echo "$as_me:$LINENO: result: $GCJ" >&5
5315 echo "${ECHO_T}$GCJ" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5321 test -n "$GCJ" && break
5322 done
5323 test -n "$GCJ" || GCJ="gcj"
5325 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5326 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5327 { (exit 1); exit 1; }; }
5328 if test "x${GCJFLAGS-unset}" = xunset; then
5329 GCJFLAGS="-g -O2"
5333 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5335 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5336 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5337 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5341 # We make a subdir and do the tests there. Otherwise we can end up
5342 # making bogus files that we don't know about and never remove. For
5343 # instance it was reported that on HP-UX the gcc test will end up
5344 # making a dummy file named `D' -- because `-MD' means `put the output
5345 # in D'.
5346 mkdir conftest.dir
5347 # Copy depcomp to subdir because otherwise we won't find it if we're
5348 # using a relative directory.
5349 cp "$am_depcomp" conftest.dir
5350 cd conftest.dir
5351 # We will build objects and dependencies in a subdirectory because
5352 # it helps to detect inapplicable dependency modes. For instance
5353 # both Tru64's cc and ICC support -MD to output dependencies as a
5354 # side effect of compilation, but ICC will put the dependencies in
5355 # the current directory while Tru64 will put them in the object
5356 # directory.
5357 mkdir sub
5359 am_cv_GCJ_dependencies_compiler_type=none
5360 if test "$am_compiler_list" = ""; then
5361 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5363 for depmode in $am_compiler_list; do
5364 # Setup a source with many dependencies, because some compilers
5365 # like to wrap large dependency lists on column 80 (with \), and
5366 # we should not choose a depcomp mode which is confused by this.
5368 # We need to recreate these files for each test, as the compiler may
5369 # overwrite some of them when testing with obscure command lines.
5370 # This happens at least with the AIX C compiler.
5371 : > sub/conftest.c
5372 for i in 1 2 3 4 5 6; do
5373 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5374 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5375 # Solaris 8's {/usr,}/bin/sh.
5376 touch sub/conftst$i.h
5377 done
5378 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5380 case $depmode in
5381 nosideeffect)
5382 # after this tag, mechanisms are not by side-effect, so they'll
5383 # only be used when explicitly requested
5384 if test "x$enable_dependency_tracking" = xyes; then
5385 continue
5386 else
5387 break
5390 none) break ;;
5391 esac
5392 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5393 # mode. It turns out that the SunPro C++ compiler does not properly
5394 # handle `-M -o', and we need to detect this.
5395 if depmode=$depmode \
5396 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5397 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5398 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5399 >/dev/null 2>conftest.err &&
5400 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5401 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5402 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5403 # icc doesn't choke on unknown options, it will just issue warnings
5404 # or remarks (even with -Werror). So we grep stderr for any message
5405 # that says an option was ignored or not supported.
5406 # When given -MP, icc 7.0 and 7.1 complain thusly:
5407 # icc: Command line warning: ignoring option '-M'; no argument required
5408 # The diagnosis changed in icc 8.0:
5409 # icc: Command line remark: option '-MP' not supported
5410 if (grep 'ignoring option' conftest.err ||
5411 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5412 am_cv_GCJ_dependencies_compiler_type=$depmode
5413 break
5416 done
5418 cd ..
5419 rm -rf conftest.dir
5420 else
5421 am_cv_GCJ_dependencies_compiler_type=none
5425 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5426 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5427 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5432 test "x$enable_dependency_tracking" != xno \
5433 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5434 am__fastdepGCJ_TRUE=
5435 am__fastdepGCJ_FALSE='#'
5436 else
5437 am__fastdepGCJ_TRUE='#'
5438 am__fastdepGCJ_FALSE=
5444 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5445 lt_save_CC="$CC"
5446 lt_save_CFLAGS="$CFLAGS"
5447 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5448 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5449 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5450 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5451 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5452 deplibs_check_method="$deplibs_check_method" \
5453 file_magic_cmd="$file_magic_cmd" \
5454 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5455 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5456 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5457 echo "$as_me: error: libtool tag configuration failed" >&2;}
5458 { (exit 1); exit 1; }; }
5459 CC="$lt_save_CC"
5460 CFLAGS="$lt_save_CFLAGS"
5462 # Redirect the config.log output again, so that the ltconfig log is not
5463 # clobbered by the next message.
5464 exec 5>>./config.log
5468 if test "x$CC" != xcc; then
5469 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5470 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5471 else
5472 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5473 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5475 set dummy $CC; ac_cc=`echo $2 |
5476 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5477 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5488 main ()
5492 return 0;
5494 _ACEOF
5495 # Make sure it works both with $CC and with simple cc.
5496 # We do the test twice because some compilers refuse to overwrite an
5497 # existing .o file with -o, though they will create one.
5498 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5499 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 (eval $ac_try) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); };
5509 then
5510 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5511 if test "x$CC" != xcc; then
5512 # Test first that cc exists at all.
5513 if { ac_try='cc -c conftest.$ac_ext >&5'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5520 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); };
5530 then
5531 # cc works too.
5533 else
5534 # cc exists but doesn't like -o.
5535 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5539 else
5540 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5542 rm -f conftest*
5545 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5546 echo "$as_me:$LINENO: result: yes" >&5
5547 echo "${ECHO_T}yes" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5552 cat >>confdefs.h <<\_ACEOF
5553 #define NO_MINUS_C_MINUS_O 1
5554 _ACEOF
5558 # FIXME: we rely on the cache variable name because
5559 # there is no other way.
5560 set dummy $CC
5561 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5562 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5563 # Losing compiler, so override with the script.
5564 # FIXME: It is wrong to rewrite CC.
5565 # But if we don't then we get into trouble of one sort or another.
5566 # A longer-term fix would be to have automake use am__CC in this case,
5567 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5568 CC="$am_aux_dir/compile $CC"
5573 subdirs="$subdirs libltdl"
5576 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5577 COMPPATH=.
5578 else
5579 COMPPATH=..
5583 # The -no-testsuite modules omit the test subdir.
5586 if test -d $srcdir/testsuite; then
5587 TESTSUBDIR_TRUE=
5588 TESTSUBDIR_FALSE='#'
5589 else
5590 TESTSUBDIR_TRUE='#'
5591 TESTSUBDIR_FALSE=
5595 # Should the runtime set system properties by examining the
5596 # environment variable GCJ_PROPERTIES?
5597 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5598 if test "${enable_getenv_properties+set}" = set; then
5599 enableval="$enable_getenv_properties"
5603 # Whether GCJ_PROPERTIES is used depends on the target.
5604 if test -z "$enable_getenv_properties"; then
5605 enable_getenv_properties=${enable_getenv_properties_default-yes}
5607 if test "$enable_getenv_properties" = no; then
5609 cat >>confdefs.h <<\_ACEOF
5610 #define DISABLE_GETENV_PROPERTIES 1
5611 _ACEOF
5615 # Whether we should use arguments to main()
5616 if test -z "$enable_main_args"; then
5617 enable_main_args=${enable_main_args_default-yes}
5619 if test "$enable_main_args" = no; then
5621 cat >>confdefs.h <<\_ACEOF
5622 #define DISABLE_MAIN_ARGS 1
5623 _ACEOF
5628 # Should we use hashtable-based synchronization?
5629 # Currently works only for Linux X86/ia64
5630 # Typically faster and more space-efficient
5631 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5632 if test "${enable_hash_synchronization+set}" = set; then
5633 enableval="$enable_hash_synchronization"
5637 if test -z "$enable_hash_synchronization"; then
5638 enable_hash_synchronization=$enable_hash_synchronization_default
5641 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5642 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5643 if test "${enable_libgcj_multifile+set}" = set; then
5644 enableval="$enable_libgcj_multifile"
5645 case "${enableval}" in
5646 yes) enable_libgcj_multifile=yes ;;
5647 no) enable_libgcj_multifile=no ;;
5648 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5649 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5650 { (exit 1); exit 1; }; } ;;
5651 esac
5652 else
5653 enable_libgcj_multifile=no
5657 if test "$enable_libgcj_multifile" = yes; then
5658 ONESTEP_TRUE=
5659 ONESTEP_FALSE='#'
5660 else
5661 ONESTEP_TRUE='#'
5662 ONESTEP_FALSE=
5666 # What is the native OS API for MinGW?
5668 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5669 if test "${with_win32_nlsapi+set}" = set; then
5670 withval="$with_win32_nlsapi"
5671 case "${withval}" in
5672 ansi) with_win32_nlsapi=ansi ;;
5673 unicows) with_win32_nlsapi=unicows ;;
5674 unicode) with_win32_nlsapi=unicode ;;
5675 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5676 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5677 { (exit 1); exit 1; }; } ;;
5678 esac
5679 else
5680 with_win32_nlsapi=ansi
5683 case "${with_win32_nlsapi}" in
5684 unicows | unicode)
5686 cat >>confdefs.h <<\_ACEOF
5687 #define MINGW_LIBGCJ_UNICODE 1
5688 _ACEOF
5691 esac
5693 # configure.host sets slow_pthread_self if the synchronization code should
5694 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5695 if test "${slow_pthread_self}" = "yes"; then
5697 cat >>confdefs.h <<\_ACEOF
5698 #define SLOW_PTHREAD_SELF 1
5699 _ACEOF
5704 # See if the user has requested runtime debugging.
5705 LIBGCJDEBUG="false"
5707 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5708 if test "${enable_libgcj_debug+set}" = set; then
5709 enableval="$enable_libgcj_debug"
5710 if test "$enable_libgcj_debug" = yes; then
5712 cat >>confdefs.h <<\_ACEOF
5713 #define DEBUG 1
5714 _ACEOF
5716 LIBGCJDEBUG="true"
5720 # Check for gc debugging. This option is handled both here and in the GC.
5721 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5722 if test "${enable_gc_debug+set}" = set; then
5723 enableval="$enable_gc_debug"
5724 if test "$enable_gc_debug" = "yes"; then
5725 cat >>confdefs.h <<\_ACEOF
5726 #define LIBGCJ_GC_DEBUG 1
5727 _ACEOF
5732 # See if the user has the interpreter included.
5733 # Check whether --enable-interpreter or --disable-interpreter was given.
5734 if test "${enable_interpreter+set}" = set; then
5735 enableval="$enable_interpreter"
5736 if test "$enable_interpreter" = yes; then
5737 # This can also be set in configure.host.
5738 libgcj_interpreter=yes
5739 elif test "$enable_interpreter" = no; then
5740 libgcj_interpreter=no
5744 if test "$libgcj_interpreter" = yes; then
5746 cat >>confdefs.h <<\_ACEOF
5747 #define INTERPRETER 1
5748 _ACEOF
5751 INTERPRETER="$libgcj_interpreter"
5754 echo "$as_me:$LINENO: checking for exception model to use" >&5
5755 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5756 ac_ext=cc
5757 ac_cpp='$CXXCPP $CPPFLAGS'
5758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5762 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5763 if test "${enable_sjlj_exceptions+set}" = set; then
5764 enableval="$enable_sjlj_exceptions"
5766 else
5767 cat > conftest.$ac_ext << EOF
5768 #line 5768 "configure"
5769 struct S { ~S(); };
5770 void bar();
5771 void foo()
5773 S s;
5774 bar();
5777 old_CXXFLAGS="$CXXFLAGS"
5778 CXXFLAGS=-S
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; then
5784 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5785 enable_sjlj_exceptions=yes
5786 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5787 enable_sjlj_exceptions=no
5790 CXXFLAGS="$old_CXXFLAGS"
5791 rm -f conftest*
5793 if test x$enable_sjlj_exceptions = xyes; then
5795 cat >>confdefs.h <<\_ACEOF
5796 #define SJLJ_EXCEPTIONS 1
5797 _ACEOF
5799 ac_exception_model_name=sjlj
5800 elif test x$enable_sjlj_exceptions = xno; then
5801 ac_exception_model_name="call frame"
5802 else
5803 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5804 echo "$as_me: error: unable to detect exception model" >&2;}
5805 { (exit 1); exit 1; }; }
5807 ac_ext=c
5808 ac_cpp='$CPP $CPPFLAGS'
5809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5814 echo "${ECHO_T}$ac_exception_model_name" >&6
5816 # If we are non using SJLJ exceptions, and this host does not have support
5817 # for unwinding from a signal handler, enable checked dereferences and divides.
5818 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5819 CHECKREFSPEC=-fcheck-references
5820 DIVIDESPEC=-fuse-divide-subroutine
5821 EXCEPTIONSPEC=
5824 # See if the user wants to disable java.net. This is the mildly
5825 # ugly way that we admit that target-side configuration sucks.
5826 # Check whether --enable-java-net or --disable-java-net was given.
5827 if test "${enable_java_net+set}" = set; then
5828 enableval="$enable_java_net"
5832 # Whether java.net is built by default can depend on the target.
5833 if test -z "$enable_java_net"; then
5834 enable_java_net=${enable_java_net_default-yes}
5836 if test "$enable_java_net" = no; then
5838 cat >>confdefs.h <<\_ACEOF
5839 #define DISABLE_JAVA_NET 1
5840 _ACEOF
5844 # See if the user wants to configure without libffi. Some
5845 # architectures don't support it, and default values are set in
5846 # configure.host.
5848 # Check whether --with-libffi or --without-libffi was given.
5849 if test "${with_libffi+set}" = set; then
5850 withval="$with_libffi"
5852 else
5853 with_libffi=${with_libffi_default-yes}
5856 LIBFFI=
5857 LIBFFIINCS=
5858 if test "$with_libffi" != no; then
5860 cat >>confdefs.h <<\_ACEOF
5861 #define USE_LIBFFI 1
5862 _ACEOF
5864 LIBFFI=../libffi/libffi_convenience.la
5865 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5870 # See if the user wants to disable JVMPI support.
5871 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5872 if test "${enable_jvmpi+set}" = set; then
5873 enableval="$enable_jvmpi"
5877 if test "$enable_jvmpi" != no; then
5879 cat >>confdefs.h <<\_ACEOF
5880 #define ENABLE_JVMPI 1
5881 _ACEOF
5885 # If the target is an eCos system, use the appropriate eCos
5886 # I/O routines.
5887 # FIXME: this should not be a local option but a global target
5888 # system; at present there is no eCos target.
5889 TARGET_ECOS=${PROCESS-"no"}
5891 # Check whether --with-ecos or --without-ecos was given.
5892 if test "${with_ecos+set}" = set; then
5893 withval="$with_ecos"
5894 TARGET_ECOS="$with_ecos"
5898 supply_backtrace=no
5900 PLATFORM_INNER_NAT_HDRS=
5901 case "$TARGET_ECOS" in
5902 no) case "$host" in
5903 *mingw*)
5904 PLATFORM=Win32
5905 PLATFORMNET=Win32
5906 PLATFORMH=win32.h
5908 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5909 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5910 LD_PROG=`$CC --print-prog-name=ld`
5911 LD_VERSION=`$LD_PROG --version`
5912 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5913 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5914 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5915 LD_OK="ok"
5916 else
5917 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5918 LD_OK="ok"
5921 if test "x$LD_OK" != x; then
5922 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5923 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5924 else
5925 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5926 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5927 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5928 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5930 cat >>confdefs.h <<\_ACEOF
5931 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5932 _ACEOF
5937 PLATFORM=Posix
5938 PLATFORMNET=Posix
5939 PLATFORMH=posix.h
5940 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5942 esac
5945 PLATFORM=Ecos
5946 PLATFORMNET=NoNet
5948 cat >>confdefs.h <<\_ACEOF
5949 #define ECOS 1
5950 _ACEOF
5952 PLATFORMH=posix.h
5954 esac
5956 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5959 ac_ext=c
5960 ac_cpp='$CPP $CPPFLAGS'
5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5965 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5966 # On Suns, sometimes $CPP names a directory.
5967 if test -n "$CPP" && test -d "$CPP"; then
5968 CPP=
5970 if test -z "$CPP"; then
5971 if test "${ac_cv_prog_CPP+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 # Double quotes because CPP needs to be expanded
5975 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5977 ac_preproc_ok=false
5978 for ac_c_preproc_warn_flag in '' yes
5980 # Use a header file that comes with gcc, so configuring glibc
5981 # with a fresh cross-compiler works.
5982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983 # <limits.h> exists even on freestanding compilers.
5984 # On the NeXT, cc -E runs the code through the compiler's parser,
5985 # not just through cpp. "Syntax error" is here to catch this case.
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #ifdef __STDC__
5993 # include <limits.h>
5994 #else
5995 # include <assert.h>
5996 #endif
5997 Syntax error
5998 _ACEOF
5999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } >/dev/null; then
6007 if test -s conftest.err; then
6008 ac_cpp_err=$ac_c_preproc_warn_flag
6009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6010 else
6011 ac_cpp_err=
6013 else
6014 ac_cpp_err=yes
6016 if test -z "$ac_cpp_err"; then
6018 else
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 # Broken: fails on valid input.
6023 continue
6025 rm -f conftest.err conftest.$ac_ext
6027 # OK, works on sane cases. Now check whether non-existent headers
6028 # can be detected and how.
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #include <ac_nonexistent.h>
6036 _ACEOF
6037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } >/dev/null; then
6045 if test -s conftest.err; then
6046 ac_cpp_err=$ac_c_preproc_warn_flag
6047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6048 else
6049 ac_cpp_err=
6051 else
6052 ac_cpp_err=yes
6054 if test -z "$ac_cpp_err"; then
6055 # Broken: success on invalid input.
6056 continue
6057 else
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 # Passes both tests.
6062 ac_preproc_ok=:
6063 break
6065 rm -f conftest.err conftest.$ac_ext
6067 done
6068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069 rm -f conftest.err conftest.$ac_ext
6070 if $ac_preproc_ok; then
6071 break
6074 done
6075 ac_cv_prog_CPP=$CPP
6078 CPP=$ac_cv_prog_CPP
6079 else
6080 ac_cv_prog_CPP=$CPP
6082 echo "$as_me:$LINENO: result: $CPP" >&5
6083 echo "${ECHO_T}$CPP" >&6
6084 ac_preproc_ok=false
6085 for ac_c_preproc_warn_flag in '' yes
6087 # Use a header file that comes with gcc, so configuring glibc
6088 # with a fresh cross-compiler works.
6089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090 # <limits.h> exists even on freestanding compilers.
6091 # On the NeXT, cc -E runs the code through the compiler's parser,
6092 # not just through cpp. "Syntax error" is here to catch this case.
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 #ifdef __STDC__
6100 # include <limits.h>
6101 #else
6102 # include <assert.h>
6103 #endif
6104 Syntax error
6105 _ACEOF
6106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } >/dev/null; then
6114 if test -s conftest.err; then
6115 ac_cpp_err=$ac_c_preproc_warn_flag
6116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6117 else
6118 ac_cpp_err=
6120 else
6121 ac_cpp_err=yes
6123 if test -z "$ac_cpp_err"; then
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6129 # Broken: fails on valid input.
6130 continue
6132 rm -f conftest.err conftest.$ac_ext
6134 # OK, works on sane cases. Now check whether non-existent headers
6135 # can be detected and how.
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <ac_nonexistent.h>
6143 _ACEOF
6144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } >/dev/null; then
6152 if test -s conftest.err; then
6153 ac_cpp_err=$ac_c_preproc_warn_flag
6154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6155 else
6156 ac_cpp_err=
6158 else
6159 ac_cpp_err=yes
6161 if test -z "$ac_cpp_err"; then
6162 # Broken: success on invalid input.
6163 continue
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 # Passes both tests.
6169 ac_preproc_ok=:
6170 break
6172 rm -f conftest.err conftest.$ac_ext
6174 done
6175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6176 rm -f conftest.err conftest.$ac_ext
6177 if $ac_preproc_ok; then
6179 else
6180 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6181 See \`config.log' for more details." >&5
6182 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6183 See \`config.log' for more details." >&2;}
6184 { (exit 1); exit 1; }; }
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 echo "$as_me:$LINENO: checking for egrep" >&5
6195 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6196 if test "${ac_cv_prog_egrep+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6200 then ac_cv_prog_egrep='grep -E'
6201 else ac_cv_prog_egrep='egrep'
6204 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6205 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6206 EGREP=$ac_cv_prog_egrep
6209 cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h. */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 #include <stdint.h>
6217 _ACEOF
6218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6219 $EGREP "uint32_t" >/dev/null 2>&1; then
6221 cat >>confdefs.h <<\_ACEOF
6222 #define HAVE_INT32_DEFINED 1
6223 _ACEOF
6226 rm -f conftest*
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <inttypes.h>
6236 _ACEOF
6237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6238 $EGREP "uint32_t" >/dev/null 2>&1; then
6240 cat >>confdefs.h <<\_ACEOF
6241 #define HAVE_INT32_DEFINED 1
6242 _ACEOF
6245 rm -f conftest*
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h. */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 #include <sys/types.h>
6255 _ACEOF
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 $EGREP "u_int32_t" >/dev/null 2>&1; then
6259 cat >>confdefs.h <<\_ACEOF
6260 #define HAVE_BSD_INT32_DEFINED 1
6261 _ACEOF
6264 rm -f conftest*
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 #include <sys/config.h>
6274 _ACEOF
6275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6276 $EGREP "u_int32_t" >/dev/null 2>&1; then
6278 cat >>confdefs.h <<\_ACEOF
6279 #define HAVE_BSD_INT32_DEFINED 1
6280 _ACEOF
6283 rm -f conftest*
6288 if test "$PLATFORM" = Win32; then
6289 USING_WIN32_PLATFORM_TRUE=
6290 USING_WIN32_PLATFORM_FALSE='#'
6291 else
6292 USING_WIN32_PLATFORM_TRUE='#'
6293 USING_WIN32_PLATFORM_FALSE=
6298 if test "$PLATFORM" = Posix; then
6299 USING_POSIX_PLATFORM_TRUE=
6300 USING_POSIX_PLATFORM_FALSE='#'
6301 else
6302 USING_POSIX_PLATFORM_TRUE='#'
6303 USING_POSIX_PLATFORM_FALSE=
6308 if test "$PLATFORM" = Ecos; then
6309 USING_ECOS_PLATFORM_TRUE=
6310 USING_ECOS_PLATFORM_FALSE='#'
6311 else
6312 USING_ECOS_PLATFORM_TRUE='#'
6313 USING_ECOS_PLATFORM_FALSE=
6317 # These may not be defined in a non-ANS conformant embedded system.
6318 # FIXME: Should these case a runtime exception in that case?
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 #include <time.h>
6327 _ACEOF
6328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "mktime" >/dev/null 2>&1; then
6331 cat >>confdefs.h <<\_ACEOF
6332 #define HAVE_MKTIME 1
6333 _ACEOF
6336 rm -f conftest*
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include <time.h>
6346 _ACEOF
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348 $EGREP "localtime" >/dev/null 2>&1; then
6350 cat >>confdefs.h <<\_ACEOF
6351 #define HAVE_LOCALTIME 1
6352 _ACEOF
6355 rm -f conftest*
6358 # Create the subdirectory for natFile.cc, or the attempt
6359 # to create the link will fail.
6360 test -d java || mkdir java
6361 test -d java/io || mkdir java/io
6362 test -d gnu || mkdir gnu
6363 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6366 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6367 test -d java/lang || mkdir java/lang
6368 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6370 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6373 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6374 test -d java/net || mkdir java/net
6375 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6377 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6380 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6381 test -d gnu/java || mkdir gnu/java
6382 test -d gnu/java/net || mkdir gnu/java/net
6383 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6385 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6388 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6389 test -d gnu/java/nio || mkdir gnu/java/nio
6390 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6392 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6394 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6395 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6398 case "${host}" in
6399 *mingw*)
6400 SYSTEMSPEC="-lgdi32 -lws2_32"
6401 if test "${with_win32_nlsapi}" = "unicows"; then
6402 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6406 SYSTEMSPEC=
6408 esac
6411 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6415 # Check whether --with-system-zlib or --without-system-zlib was given.
6416 if test "${with_system_zlib+set}" = set; then
6417 withval="$with_system_zlib"
6420 ZLIBSPEC=
6422 ZLIBTESTSPEC=
6426 if test "x$ac_path_x_has_been_run" != xyes; then
6427 echo "$as_me:$LINENO: checking for X" >&5
6428 echo $ECHO_N "checking for X... $ECHO_C" >&6
6430 ac_path_x_has_been_run=yes
6432 # Check whether --with-x or --without-x was given.
6433 if test "${with_x+set}" = set; then
6434 withval="$with_x"
6437 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6438 if test "x$with_x" = xno; then
6439 # The user explicitly disabled X.
6440 have_x=disabled
6441 else
6442 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6443 # Both variables are already set.
6444 have_x=yes
6445 else
6446 if test "${ac_cv_have_x+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 # One or both of the vars are not set, and there is no cached value.
6450 ac_x_includes=no ac_x_libraries=no
6451 rm -fr conftest.dir
6452 if mkdir conftest.dir; then
6453 cd conftest.dir
6454 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6455 cat >Imakefile <<'_ACEOF'
6456 acfindx:
6457 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6458 _ACEOF
6459 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6460 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6461 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6462 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6463 for ac_extension in a so sl; do
6464 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6465 test -f $ac_im_libdir/libX11.$ac_extension; then
6466 ac_im_usrlibdir=$ac_im_libdir; break
6468 done
6469 # Screen out bogus values from the imake configuration. They are
6470 # bogus both because they are the default anyway, and because
6471 # using them would break gcc on systems where it needs fixed includes.
6472 case $ac_im_incroot in
6473 /usr/include) ;;
6474 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6475 esac
6476 case $ac_im_usrlibdir in
6477 /usr/lib | /lib) ;;
6478 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6479 esac
6481 cd ..
6482 rm -fr conftest.dir
6485 # Standard set of common directories for X headers.
6486 # Check X11 before X11Rn because it is often a symlink to the current release.
6487 ac_x_header_dirs='
6488 /usr/X11/include
6489 /usr/X11R6/include
6490 /usr/X11R5/include
6491 /usr/X11R4/include
6493 /usr/include/X11
6494 /usr/include/X11R6
6495 /usr/include/X11R5
6496 /usr/include/X11R4
6498 /usr/local/X11/include
6499 /usr/local/X11R6/include
6500 /usr/local/X11R5/include
6501 /usr/local/X11R4/include
6503 /usr/local/include/X11
6504 /usr/local/include/X11R6
6505 /usr/local/include/X11R5
6506 /usr/local/include/X11R4
6508 /usr/X386/include
6509 /usr/x386/include
6510 /usr/XFree86/include/X11
6512 /usr/include
6513 /usr/local/include
6514 /usr/unsupported/include
6515 /usr/athena/include
6516 /usr/local/x11r5/include
6517 /usr/lpp/Xamples/include
6519 /usr/openwin/include
6520 /usr/openwin/share/include'
6522 if test "$ac_x_includes" = no; then
6523 # Guess where to find include files, by looking for a specified header file.
6524 # First, try using that file with no special directory specified.
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <X11/Intrinsic.h>
6532 _ACEOF
6533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } >/dev/null; then
6541 if test -s conftest.err; then
6542 ac_cpp_err=$ac_c_preproc_warn_flag
6543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6544 else
6545 ac_cpp_err=
6547 else
6548 ac_cpp_err=yes
6550 if test -z "$ac_cpp_err"; then
6551 # We can compile using X headers with no special include directory.
6552 ac_x_includes=
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 for ac_dir in $ac_x_header_dirs; do
6558 if test -r "$ac_dir/X11/Intrinsic.h"; then
6559 ac_x_includes=$ac_dir
6560 break
6562 done
6564 rm -f conftest.err conftest.$ac_ext
6565 fi # $ac_x_includes = no
6567 if test "$ac_x_libraries" = no; then
6568 # Check for the libraries.
6569 # See if we find them without any special options.
6570 # Don't add to $LIBS permanently.
6571 ac_save_LIBS=$LIBS
6572 LIBS="-lXt $LIBS"
6573 if test x$gcc_no_link = xyes; then
6574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6576 { (exit 1); exit 1; }; }
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 #include <X11/Intrinsic.h>
6586 main ()
6588 XtMalloc (0)
6590 return 0;
6592 _ACEOF
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; } &&
6608 { ac_try='test -s conftest$ac_exeext'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
6614 LIBS=$ac_save_LIBS
6615 # We can link X programs with no special library path.
6616 ac_x_libraries=
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 LIBS=$ac_save_LIBS
6622 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6624 # Don't even attempt the hair of trying to link an X program!
6625 for ac_extension in a so sl; do
6626 if test -r $ac_dir/libXt.$ac_extension; then
6627 ac_x_libraries=$ac_dir
6628 break 2
6630 done
6631 done
6633 rm -f conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 fi # $ac_x_libraries = no
6637 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6638 # Didn't find X anywhere. Cache the known absence of X.
6639 ac_cv_have_x="have_x=no"
6640 else
6641 # Record where we found X for the cache.
6642 ac_cv_have_x="have_x=yes \
6643 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6648 eval "$ac_cv_have_x"
6649 fi # $with_x != no
6651 if test "$have_x" != yes; then
6652 echo "$as_me:$LINENO: result: $have_x" >&5
6653 echo "${ECHO_T}$have_x" >&6
6654 no_x=yes
6655 else
6656 # If each of the values was on the command line, it overrides each guess.
6657 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6658 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6659 # Update the cache value to reflect the command line values.
6660 ac_cv_have_x="have_x=yes \
6661 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6662 # It might be that x_includes is empty (headers are found in the
6663 # standard search path. Then output the corresponding message
6664 ac_out_x_includes=$x_includes
6665 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
6666 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6667 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6671 if test "$no_x" = yes; then
6672 # Not all programs may use this symbol, but it does not hurt to define it.
6674 cat >>confdefs.h <<\_ACEOF
6675 #define X_DISPLAY_MISSING 1
6676 _ACEOF
6678 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6679 else
6680 if test -n "$x_includes"; then
6681 X_CFLAGS="$X_CFLAGS -I$x_includes"
6684 # It would also be nice to do this for all -L options, not just this one.
6685 if test -n "$x_libraries"; then
6686 X_LIBS="$X_LIBS -L$x_libraries"
6687 # For Solaris; some versions of Sun CC require a space after -R and
6688 # others require no space. Words are not sufficient . . . .
6689 case `(uname -sr) 2>/dev/null` in
6690 "SunOS 5"*)
6691 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6692 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6693 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6694 if test x$gcc_no_link = xyes; then
6695 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6696 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6697 { (exit 1); exit 1; }; }
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6707 main ()
6711 return 0;
6713 _ACEOF
6714 rm -f conftest.$ac_objext conftest$ac_exeext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6716 (eval $ac_link) 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try='test -s conftest$ac_exeext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 ac_R_nospace=yes
6736 else
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 ac_R_nospace=no
6742 rm -f conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
6744 if test $ac_R_nospace = yes; then
6745 echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6
6747 X_LIBS="$X_LIBS -R$x_libraries"
6748 else
6749 LIBS="$ac_xsave_LIBS -R $x_libraries"
6750 if test x$gcc_no_link = xyes; then
6751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6753 { (exit 1); exit 1; }; }
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6763 main ()
6767 return 0;
6769 _ACEOF
6770 rm -f conftest.$ac_objext conftest$ac_exeext
6771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6772 (eval $ac_link) 2>conftest.er1
6773 ac_status=$?
6774 grep -v '^ *+' conftest.er1 >conftest.err
6775 rm -f conftest.er1
6776 cat conftest.err >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } &&
6779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; } &&
6785 { ac_try='test -s conftest$ac_exeext'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 (eval $ac_try) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 ac_R_space=yes
6792 else
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 ac_R_space=no
6798 rm -f conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
6800 if test $ac_R_space = yes; then
6801 echo "$as_me:$LINENO: result: yes" >&5
6802 echo "${ECHO_T}yes" >&6
6803 X_LIBS="$X_LIBS -R $x_libraries"
6804 else
6805 echo "$as_me:$LINENO: result: neither works" >&5
6806 echo "${ECHO_T}neither works" >&6
6809 LIBS=$ac_xsave_LIBS
6810 esac
6813 # Check for system-dependent libraries X programs must link with.
6814 # Do this before checking for the system-independent R6 libraries
6815 # (-lICE), since we may need -lsocket or whatever for X linking.
6817 if test "$ISC" = yes; then
6818 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6819 else
6820 # Martyn Johnson says this is needed for Ultrix, if the X
6821 # libraries were built with DECnet support. And Karl Berry says
6822 # the Alpha needs dnet_stub (dnet does not exist).
6823 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6824 if test x$gcc_no_link = xyes; then
6825 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6826 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6827 { (exit 1); exit 1; }; }
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6836 /* Override any gcc2 internal prototype to avoid an error. */
6837 #ifdef __cplusplus
6838 extern "C"
6839 #endif
6840 /* We use char because int might match the return type of a gcc2
6841 builtin and then its argument prototype would still apply. */
6842 char XOpenDisplay ();
6844 main ()
6846 XOpenDisplay ();
6848 return 0;
6850 _ACEOF
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } &&
6866 { ac_try='test -s conftest$ac_exeext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 (eval $ac_try) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6878 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6879 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 ac_check_lib_save_LIBS=$LIBS
6883 LIBS="-ldnet $LIBS"
6884 if test x$gcc_no_link = xyes; then
6885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6887 { (exit 1); exit 1; }; }
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6896 /* Override any gcc2 internal prototype to avoid an error. */
6897 #ifdef __cplusplus
6898 extern "C"
6899 #endif
6900 /* We use char because int might match the return type of a gcc2
6901 builtin and then its argument prototype would still apply. */
6902 char dnet_ntoa ();
6904 main ()
6906 dnet_ntoa ();
6908 return 0;
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>conftest.er1
6914 ac_status=$?
6915 grep -v '^ *+' conftest.er1 >conftest.err
6916 rm -f conftest.er1
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try='test -s conftest$ac_exeext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 ac_cv_lib_dnet_dnet_ntoa=yes
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_cv_lib_dnet_dnet_ntoa=no
6939 rm -f conftest.err conftest.$ac_objext \
6940 conftest$ac_exeext conftest.$ac_ext
6941 LIBS=$ac_check_lib_save_LIBS
6943 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6944 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6945 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6946 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6949 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6950 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6951 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6952 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 ac_check_lib_save_LIBS=$LIBS
6956 LIBS="-ldnet_stub $LIBS"
6957 if test x$gcc_no_link = xyes; then
6958 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6960 { (exit 1); exit 1; }; }
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6969 /* Override any gcc2 internal prototype to avoid an error. */
6970 #ifdef __cplusplus
6971 extern "C"
6972 #endif
6973 /* We use char because int might match the return type of a gcc2
6974 builtin and then its argument prototype would still apply. */
6975 char dnet_ntoa ();
6977 main ()
6979 dnet_ntoa ();
6981 return 0;
6983 _ACEOF
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986 (eval $ac_link) 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try='test -s conftest$ac_exeext'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7006 else
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7010 ac_cv_lib_dnet_stub_dnet_ntoa=no
7012 rm -f conftest.err conftest.$ac_objext \
7013 conftest$ac_exeext conftest.$ac_ext
7014 LIBS=$ac_check_lib_save_LIBS
7016 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7017 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7018 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7019 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7024 rm -f conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7026 LIBS="$ac_xsave_LIBS"
7028 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7029 # to get the SysV transport functions.
7030 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7031 # needs -lnsl.
7032 # The nsl library prevents programs from opening the X display
7033 # on Irix 5.2, according to T.E. Dickey.
7034 # The functions gethostbyname, getservbyname, and inet_addr are
7035 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7036 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7037 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7038 if test "${ac_cv_func_gethostbyname+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 if test x$gcc_no_link = xyes; then
7042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7044 { (exit 1); exit 1; }; }
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7054 #define gethostbyname innocuous_gethostbyname
7056 /* System header to define __stub macros and hopefully few prototypes,
7057 which can conflict with char gethostbyname (); below.
7058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059 <limits.h> exists even on freestanding compilers. */
7061 #ifdef __STDC__
7062 # include <limits.h>
7063 #else
7064 # include <assert.h>
7065 #endif
7067 #undef gethostbyname
7069 /* Override any gcc2 internal prototype to avoid an error. */
7070 #ifdef __cplusplus
7071 extern "C"
7073 #endif
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7076 char gethostbyname ();
7077 /* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7081 choke me
7082 #else
7083 char (*f) () = gethostbyname;
7084 #endif
7085 #ifdef __cplusplus
7087 #endif
7090 main ()
7092 return f != gethostbyname;
7094 return 0;
7096 _ACEOF
7097 rm -f conftest.$ac_objext conftest$ac_exeext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_cv_func_gethostbyname=yes
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_func_gethostbyname=no
7125 rm -f conftest.err conftest.$ac_objext \
7126 conftest$ac_exeext conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7129 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7131 if test $ac_cv_func_gethostbyname = no; then
7132 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7133 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7134 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137 ac_check_lib_save_LIBS=$LIBS
7138 LIBS="-lnsl $LIBS"
7139 if test x$gcc_no_link = xyes; then
7140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7142 { (exit 1); exit 1; }; }
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7151 /* Override any gcc2 internal prototype to avoid an error. */
7152 #ifdef __cplusplus
7153 extern "C"
7154 #endif
7155 /* We use char because int might match the return type of a gcc2
7156 builtin and then its argument prototype would still apply. */
7157 char gethostbyname ();
7159 main ()
7161 gethostbyname ();
7163 return 0;
7165 _ACEOF
7166 rm -f conftest.$ac_objext conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168 (eval $ac_link) 2>conftest.er1
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
7175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 (eval $ac_try) 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; } &&
7181 { ac_try='test -s conftest$ac_exeext'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; }; then
7187 ac_cv_lib_nsl_gethostbyname=yes
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7192 ac_cv_lib_nsl_gethostbyname=no
7194 rm -f conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
7196 LIBS=$ac_check_lib_save_LIBS
7198 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7199 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7200 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7204 if test $ac_cv_lib_nsl_gethostbyname = no; then
7205 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7206 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7207 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210 ac_check_lib_save_LIBS=$LIBS
7211 LIBS="-lbsd $LIBS"
7212 if test x$gcc_no_link = xyes; then
7213 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7215 { (exit 1); exit 1; }; }
7217 cat >conftest.$ac_ext <<_ACEOF
7218 /* confdefs.h. */
7219 _ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h. */
7224 /* Override any gcc2 internal prototype to avoid an error. */
7225 #ifdef __cplusplus
7226 extern "C"
7227 #endif
7228 /* We use char because int might match the return type of a gcc2
7229 builtin and then its argument prototype would still apply. */
7230 char gethostbyname ();
7232 main ()
7234 gethostbyname ();
7236 return 0;
7238 _ACEOF
7239 rm -f conftest.$ac_objext conftest$ac_exeext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241 (eval $ac_link) 2>conftest.er1
7242 ac_status=$?
7243 grep -v '^ *+' conftest.er1 >conftest.err
7244 rm -f conftest.er1
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; } &&
7254 { ac_try='test -s conftest$ac_exeext'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 (eval $ac_try) 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7260 ac_cv_lib_bsd_gethostbyname=yes
7261 else
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 ac_cv_lib_bsd_gethostbyname=no
7267 rm -f conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7269 LIBS=$ac_check_lib_save_LIBS
7271 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7272 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7273 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7280 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7281 # socket/setsockopt and other routines are undefined under SCO ODT
7282 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7283 # on later versions), says Simon Leinen: it contains gethostby*
7284 # variants that don't use the name server (or something). -lsocket
7285 # must be given before -lnsl if both are needed. We assume that
7286 # if connect needs -lnsl, so does gethostbyname.
7287 echo "$as_me:$LINENO: checking for connect" >&5
7288 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7289 if test "${ac_cv_func_connect+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 if test x$gcc_no_link = xyes; then
7293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7294 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7295 { (exit 1); exit 1; }; }
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h. */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7305 #define connect innocuous_connect
7307 /* System header to define __stub macros and hopefully few prototypes,
7308 which can conflict with char connect (); below.
7309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7310 <limits.h> exists even on freestanding compilers. */
7312 #ifdef __STDC__
7313 # include <limits.h>
7314 #else
7315 # include <assert.h>
7316 #endif
7318 #undef connect
7320 /* Override any gcc2 internal prototype to avoid an error. */
7321 #ifdef __cplusplus
7322 extern "C"
7324 #endif
7325 /* We use char because int might match the return type of a gcc2
7326 builtin and then its argument prototype would still apply. */
7327 char connect ();
7328 /* The GNU C library defines this for functions which it implements
7329 to always fail with ENOSYS. Some functions are actually named
7330 something starting with __ and the normal name is an alias. */
7331 #if defined (__stub_connect) || defined (__stub___connect)
7332 choke me
7333 #else
7334 char (*f) () = connect;
7335 #endif
7336 #ifdef __cplusplus
7338 #endif
7341 main ()
7343 return f != connect;
7345 return 0;
7347 _ACEOF
7348 rm -f conftest.$ac_objext conftest$ac_exeext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; } &&
7363 { ac_try='test -s conftest$ac_exeext'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7369 ac_cv_func_connect=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ac_cv_func_connect=no
7376 rm -f conftest.err conftest.$ac_objext \
7377 conftest$ac_exeext conftest.$ac_ext
7379 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7380 echo "${ECHO_T}$ac_cv_func_connect" >&6
7382 if test $ac_cv_func_connect = no; then
7383 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7384 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7385 if test "${ac_cv_lib_socket_connect+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 ac_check_lib_save_LIBS=$LIBS
7389 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7390 if test x$gcc_no_link = xyes; then
7391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7393 { (exit 1); exit 1; }; }
7395 cat >conftest.$ac_ext <<_ACEOF
7396 /* confdefs.h. */
7397 _ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7402 /* Override any gcc2 internal prototype to avoid an error. */
7403 #ifdef __cplusplus
7404 extern "C"
7405 #endif
7406 /* We use char because int might match the return type of a gcc2
7407 builtin and then its argument prototype would still apply. */
7408 char connect ();
7410 main ()
7412 connect ();
7414 return 0;
7416 _ACEOF
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7419 (eval $ac_link) 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
7426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest$ac_exeext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_cv_lib_socket_connect=yes
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ac_cv_lib_socket_connect=no
7445 rm -f conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 LIBS=$ac_check_lib_save_LIBS
7449 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7450 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7451 if test $ac_cv_lib_socket_connect = yes; then
7452 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7457 # Guillermo Gomez says -lposix is necessary on A/UX.
7458 echo "$as_me:$LINENO: checking for remove" >&5
7459 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7460 if test "${ac_cv_func_remove+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463 if test x$gcc_no_link = xyes; then
7464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7466 { (exit 1); exit 1; }; }
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7476 #define remove innocuous_remove
7478 /* System header to define __stub macros and hopefully few prototypes,
7479 which can conflict with char remove (); below.
7480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7481 <limits.h> exists even on freestanding compilers. */
7483 #ifdef __STDC__
7484 # include <limits.h>
7485 #else
7486 # include <assert.h>
7487 #endif
7489 #undef remove
7491 /* Override any gcc2 internal prototype to avoid an error. */
7492 #ifdef __cplusplus
7493 extern "C"
7495 #endif
7496 /* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7498 char remove ();
7499 /* The GNU C library defines this for functions which it implements
7500 to always fail with ENOSYS. Some functions are actually named
7501 something starting with __ and the normal name is an alias. */
7502 #if defined (__stub_remove) || defined (__stub___remove)
7503 choke me
7504 #else
7505 char (*f) () = remove;
7506 #endif
7507 #ifdef __cplusplus
7509 #endif
7512 main ()
7514 return f != remove;
7516 return 0;
7518 _ACEOF
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>conftest.er1
7522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 (eval $ac_try) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; } &&
7534 { ac_try='test -s conftest$ac_exeext'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 ac_cv_func_remove=yes
7541 else
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7545 ac_cv_func_remove=no
7547 rm -f conftest.err conftest.$ac_objext \
7548 conftest$ac_exeext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7551 echo "${ECHO_T}$ac_cv_func_remove" >&6
7553 if test $ac_cv_func_remove = no; then
7554 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7555 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7556 if test "${ac_cv_lib_posix_remove+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559 ac_check_lib_save_LIBS=$LIBS
7560 LIBS="-lposix $LIBS"
7561 if test x$gcc_no_link = xyes; then
7562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7564 { (exit 1); exit 1; }; }
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7573 /* Override any gcc2 internal prototype to avoid an error. */
7574 #ifdef __cplusplus
7575 extern "C"
7576 #endif
7577 /* We use char because int might match the return type of a gcc2
7578 builtin and then its argument prototype would still apply. */
7579 char remove ();
7581 main ()
7583 remove ();
7585 return 0;
7587 _ACEOF
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590 (eval $ac_link) 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_lib_posix_remove=yes
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_cv_lib_posix_remove=no
7616 rm -f conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7618 LIBS=$ac_check_lib_save_LIBS
7620 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7621 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7622 if test $ac_cv_lib_posix_remove = yes; then
7623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7628 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7629 echo "$as_me:$LINENO: checking for shmat" >&5
7630 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7631 if test "${ac_cv_func_shmat+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 if test x$gcc_no_link = xyes; then
7635 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7637 { (exit 1); exit 1; }; }
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h. */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7647 #define shmat innocuous_shmat
7649 /* System header to define __stub macros and hopefully few prototypes,
7650 which can conflict with char shmat (); below.
7651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7652 <limits.h> exists even on freestanding compilers. */
7654 #ifdef __STDC__
7655 # include <limits.h>
7656 #else
7657 # include <assert.h>
7658 #endif
7660 #undef shmat
7662 /* Override any gcc2 internal prototype to avoid an error. */
7663 #ifdef __cplusplus
7664 extern "C"
7666 #endif
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7669 char shmat ();
7670 /* The GNU C library defines this for functions which it implements
7671 to always fail with ENOSYS. Some functions are actually named
7672 something starting with __ and the normal name is an alias. */
7673 #if defined (__stub_shmat) || defined (__stub___shmat)
7674 choke me
7675 #else
7676 char (*f) () = shmat;
7677 #endif
7678 #ifdef __cplusplus
7680 #endif
7683 main ()
7685 return f != shmat;
7687 return 0;
7689 _ACEOF
7690 rm -f conftest.$ac_objext conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692 (eval $ac_link) 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest$ac_exeext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_func_shmat=yes
7712 else
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 ac_cv_func_shmat=no
7718 rm -f conftest.err conftest.$ac_objext \
7719 conftest$ac_exeext conftest.$ac_ext
7721 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7722 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7724 if test $ac_cv_func_shmat = no; then
7725 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7726 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7727 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730 ac_check_lib_save_LIBS=$LIBS
7731 LIBS="-lipc $LIBS"
7732 if test x$gcc_no_link = xyes; then
7733 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7735 { (exit 1); exit 1; }; }
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7744 /* Override any gcc2 internal prototype to avoid an error. */
7745 #ifdef __cplusplus
7746 extern "C"
7747 #endif
7748 /* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7750 char shmat ();
7752 main ()
7754 shmat ();
7756 return 0;
7758 _ACEOF
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761 (eval $ac_link) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; } &&
7774 { ac_try='test -s conftest$ac_exeext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_cv_lib_ipc_shmat=yes
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 ac_cv_lib_ipc_shmat=no
7787 rm -f conftest.err conftest.$ac_objext \
7788 conftest$ac_exeext conftest.$ac_ext
7789 LIBS=$ac_check_lib_save_LIBS
7791 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7792 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7793 if test $ac_cv_lib_ipc_shmat = yes; then
7794 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7800 # Check for libraries that X11R6 Xt/Xaw programs need.
7801 ac_save_LDFLAGS=$LDFLAGS
7802 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7803 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7804 # check for ICE first), but we must link in the order -lSM -lICE or
7805 # we get undefined symbols. So assume we have SM if we have ICE.
7806 # These have to be linked with before -lX11, unlike the other
7807 # libraries we check for below, so use a different variable.
7808 # John Interrante, Karl Berry
7809 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7810 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7811 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 ac_check_lib_save_LIBS=$LIBS
7815 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7816 if test x$gcc_no_link = xyes; then
7817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7819 { (exit 1); exit 1; }; }
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 #ifdef __cplusplus
7830 extern "C"
7831 #endif
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7834 char IceConnectionNumber ();
7836 main ()
7838 IceConnectionNumber ();
7840 return 0;
7842 _ACEOF
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7845 (eval $ac_link) 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 (eval $ac_try) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; } &&
7858 { ac_try='test -s conftest$ac_exeext'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 (eval $ac_try) 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_cv_lib_ICE_IceConnectionNumber=yes
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_cv_lib_ICE_IceConnectionNumber=no
7871 rm -f conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7873 LIBS=$ac_check_lib_save_LIBS
7875 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7876 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7877 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7878 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7881 LDFLAGS=$ac_save_LDFLAGS
7886 # Determine which AWT peer libraries to build
7887 # Check whether --enable-java-awt or --disable-java-awt was given.
7888 if test "${enable_java_awt+set}" = set; then
7889 enableval="$enable_java_awt"
7893 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7894 use_xlib_awt=""
7895 use_gtk_awt=""
7896 # The default toolkit to use is the first one specified.
7897 TOOLKIT=
7900 for peer in $peerlibs ; do
7901 case $peer in
7902 xlib)
7903 if test "$no_x" = yes; then
7904 echo "*** xlib peers requested but no X library available" 1>&2
7905 exit 1
7906 else
7907 use_xlib_awt="yes"
7908 if test -z "$TOOLKIT"; then
7909 TOOLKIT=gnu.awt.xlib.XToolkit
7913 gtk)
7914 if test "$no_x" = yes; then
7915 echo "*** xlib peers requested but no X library available" 1>&2
7916 exit 1
7917 else
7918 use_gtk_awt=yes
7919 if test -z "$TOOLKIT"; then
7920 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7922 test -d jniinclude || mkdir jniinclude
7926 use_xlib_awt=
7927 use_gtk_awt=
7928 break
7931 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7932 exit 1
7933 esac
7934 done
7938 if test "$use_xlib_awt" = yes; then
7939 XLIB_AWT_TRUE=
7940 XLIB_AWT_FALSE='#'
7941 else
7942 XLIB_AWT_TRUE='#'
7943 XLIB_AWT_FALSE=
7948 if test "$use_gtk_awt" = yes; then
7949 GTK_AWT_TRUE=
7950 GTK_AWT_FALSE='#'
7951 else
7952 GTK_AWT_TRUE='#'
7953 GTK_AWT_FALSE=
7957 # determine whether to enable the cairo GTK Graphics2D backend
7958 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7959 if test "${enable_gtk_cairo+set}" = set; then
7960 enableval="$enable_gtk_cairo"
7965 if test "x${enable_gtk_cairo}" = xyes; then
7966 GTK_CAIRO_TRUE=
7967 GTK_CAIRO_FALSE='#'
7968 else
7969 GTK_CAIRO_TRUE='#'
7970 GTK_CAIRO_FALSE=
7973 if test "x${enable_gtk_cairo}" = xyes
7974 then
7976 succeeded=no
7978 if test -z "$PKG_CONFIG"; then
7979 # Extract the first word of "pkg-config", so it can be a program name with args.
7980 set dummy pkg-config; ac_word=$2
7981 echo "$as_me:$LINENO: checking for $ac_word" >&5
7982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7983 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 case $PKG_CONFIG in
7987 [\\/]* | ?:[\\/]*)
7988 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8002 done
8003 done
8005 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8007 esac
8009 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8011 if test -n "$PKG_CONFIG"; then
8012 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8013 echo "${ECHO_T}$PKG_CONFIG" >&6
8014 else
8015 echo "$as_me:$LINENO: result: no" >&5
8016 echo "${ECHO_T}no" >&6
8021 if test "$PKG_CONFIG" = "no" ; then
8022 echo "*** The pkg-config script could not be found. Make sure it is"
8023 echo "*** in your path, or set the PKG_CONFIG environment variable"
8024 echo "*** to the full path to pkg-config."
8025 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8026 else
8027 PKG_CONFIG_MIN_VERSION=0.9.0
8028 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8029 echo "$as_me:$LINENO: checking for cairo" >&5
8030 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8032 if $PKG_CONFIG --exists "cairo" ; then
8033 echo "$as_me:$LINENO: result: yes" >&5
8034 echo "${ECHO_T}yes" >&6
8035 succeeded=yes
8037 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8038 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8039 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8040 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8041 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8043 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8044 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8045 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8046 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8047 echo "${ECHO_T}$CAIRO_LIBS" >&6
8048 else
8049 CAIRO_CFLAGS=""
8050 CAIRO_LIBS=""
8051 ## If we have a custom action on failure, don't print errors, but
8052 ## do set a variable so people can do so.
8053 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8054 echo $CAIRO_PKG_ERRORS
8059 else
8060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8065 if test $succeeded = yes; then
8067 else
8068 { { 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
8069 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;}
8070 { (exit 1); exit 1; }; }
8074 succeeded=no
8076 if test -z "$PKG_CONFIG"; then
8077 # Extract the first word of "pkg-config", so it can be a program name with args.
8078 set dummy pkg-config; ac_word=$2
8079 echo "$as_me:$LINENO: checking for $ac_word" >&5
8080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8081 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084 case $PKG_CONFIG in
8085 [\\/]* | ?:[\\/]*)
8086 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8100 done
8101 done
8103 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8105 esac
8107 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8109 if test -n "$PKG_CONFIG"; then
8110 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8111 echo "${ECHO_T}$PKG_CONFIG" >&6
8112 else
8113 echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6
8119 if test "$PKG_CONFIG" = "no" ; then
8120 echo "*** The pkg-config script could not be found. Make sure it is"
8121 echo "*** in your path, or set the PKG_CONFIG environment variable"
8122 echo "*** to the full path to pkg-config."
8123 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8124 else
8125 PKG_CONFIG_MIN_VERSION=0.9.0
8126 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8127 echo "$as_me:$LINENO: checking for pangoft2" >&5
8128 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8130 if $PKG_CONFIG --exists "pangoft2" ; then
8131 echo "$as_me:$LINENO: result: yes" >&5
8132 echo "${ECHO_T}yes" >&6
8133 succeeded=yes
8135 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8136 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8137 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8138 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8139 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8141 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8142 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8143 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8144 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8145 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8146 else
8147 PANGOFT2_CFLAGS=""
8148 PANGOFT2_LIBS=""
8149 ## If we have a custom action on failure, don't print errors, but
8150 ## do set a variable so people can do so.
8151 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8152 echo $PANGOFT2_PKG_ERRORS
8157 else
8158 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8159 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8163 if test $succeeded = yes; then
8165 else
8166 { { 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
8167 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;}
8168 { (exit 1); exit 1; }; }
8177 # FIXME: this should be _libs on some hosts.
8178 libsubdir=.libs
8180 # Allow the GC to be disabled. Can be useful when debugging.
8181 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8182 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8183 # Check whether --enable-java-gc or --disable-java-gc was given.
8184 if test "${enable_java_gc+set}" = set; then
8185 enableval="$enable_java_gc"
8186 GC=$enableval
8187 else
8188 GC=boehm
8190 GCLIBS=
8191 GCINCS=
8192 GCDEPS=
8193 GCSPEC=
8194 JC1GCSPEC=
8195 GCTESTSPEC=
8196 case "$GC" in
8197 boehm)
8198 echo "$as_me:$LINENO: result: boehm" >&5
8199 echo "${ECHO_T}boehm" >&6
8200 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8201 JC1GCSPEC='-fuse-boehm-gc'
8202 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8203 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8204 GCOBJS=boehm.lo
8205 GCHDR=boehm-gc.h
8206 # The POSIX thread support needs to know this.
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_BOEHM_GC 1
8210 _ACEOF
8214 echo "$as_me:$LINENO: result: none" >&5
8215 echo "${ECHO_T}none" >&6
8216 GCHDR=no-gc.h
8219 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8220 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8221 { (exit 1); exit 1; }; }
8223 esac
8230 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8234 if test "$GC" = boehm; then
8235 USING_BOEHMGC_TRUE=
8236 USING_BOEHMGC_FALSE='#'
8237 else
8238 USING_BOEHMGC_TRUE='#'
8239 USING_BOEHMGC_FALSE=
8244 if test "$GC" = no; then
8245 USING_NOGC_TRUE=
8246 USING_NOGC_FALSE='#'
8247 else
8248 USING_NOGC_TRUE='#'
8249 USING_NOGC_FALSE=
8254 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8255 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8256 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8257 echo "$as_me:$LINENO: result: $THREADS" >&5
8258 echo "${ECHO_T}$THREADS" >&6
8260 case "$THREADS" in
8261 no | none | single)
8262 THREADS=none
8264 posix | pthreads)
8265 THREADS=posix
8266 case "$host" in
8267 *-*-linux*)
8269 cat >>confdefs.h <<\_ACEOF
8270 #define LINUX_THREADS 1
8271 _ACEOF
8274 esac
8276 win32)
8278 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8279 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8280 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8281 { (exit 1); exit 1; }; }
8284 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8285 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8286 { (exit 1); exit 1; }; }
8288 esac
8290 THREADCXXFLAGS=
8291 THREADLDFLAGS=
8292 THREADLIBS=
8293 THREADINCS=
8294 THREADDEPS=
8295 THREADH=
8296 THREADSPEC=
8297 case "$THREADS" in
8298 posix)
8299 case "$host" in
8300 *-*-cygwin*)
8301 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8303 *-*-freebsd[1234]*)
8304 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8305 # merely adds pthread_* functions) but it does have a -pthread switch
8306 # which is required at link-time to select -lc_r *instead* of -lc.
8307 THREADLDFLAGS=-pthread
8308 # Don't set THREADSPEC here as might be expected since -pthread is
8309 # not processed when found within a spec file, it must come from
8310 # the command line. For now, the user must provide the -pthread
8311 # switch to link code compiled with gcj. In future, consider adding
8312 # support for weak references to pthread_* functions ala gthr.h API.
8313 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
8315 *-*-freebsd*)
8316 # FreeBSD 5 implements a model much closer to other modern UNIX
8317 # which support threads. However, it still does not support
8318 # -lpthread.
8319 THREADLDFLAGS=-pthread
8320 THREADSPEC=-lc_r
8322 alpha*-dec-osf*)
8323 THREADCXXFLAGS=-pthread
8324 # boehm-gc needs some functions from librt, so link that too.
8325 THREADLIBS='-lpthread -lrt'
8326 THREADSPEC='-lpthread -lrt'
8329 THREADLIBS=-lpthread
8330 THREADSPEC=-lpthread
8332 esac
8333 THREADH=posix-threads.h
8334 # MIT pthreads doesn't seem to have the mutexattr functions.
8335 # But for now we don't check for it. We just assume you aren't
8336 # using MIT pthreads.
8338 cat >>confdefs.h <<\_ACEOF
8339 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8340 _ACEOF
8343 # If we're using the Boehm GC, then we happen to know that it
8344 # defines _REENTRANT, so we don't bother. Eww.
8345 if test "$GC" != boehm; then
8347 cat >>confdefs.h <<\_ACEOF
8348 #define _REENTRANT 1
8349 _ACEOF
8353 cat >>confdefs.h <<\_ACEOF
8354 #define _POSIX_PTHREAD_SEMANTICS 1
8355 _ACEOF
8359 win32)
8360 THREADH=win32-threads.h
8363 none)
8364 THREADH=no-threads.h
8366 esac
8367 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8377 if test "$THREADS" = posix; then
8378 USING_POSIX_THREADS_TRUE=
8379 USING_POSIX_THREADS_FALSE='#'
8380 else
8381 USING_POSIX_THREADS_TRUE='#'
8382 USING_POSIX_THREADS_FALSE=
8387 if test "$THREADS" = win32; then
8388 USING_WIN32_THREADS_TRUE=
8389 USING_WIN32_THREADS_FALSE='#'
8390 else
8391 USING_WIN32_THREADS_TRUE='#'
8392 USING_WIN32_THREADS_FALSE=
8397 if test "$THREADS" = none; then
8398 USING_NO_THREADS_TRUE=
8399 USING_NO_THREADS_FALSE='#'
8400 else
8401 USING_NO_THREADS_TRUE='#'
8402 USING_NO_THREADS_FALSE=
8406 if test -d sysdep; then true; else mkdir sysdep; fi
8407 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8410 HASH_SYNC_SPEC=
8411 # Hash synchronization is only useful with posix threads right now.
8412 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8413 HASH_SYNC_SPEC=-fhash-synchronization
8415 cat >>confdefs.h <<\_ACEOF
8416 #define JV_HASH_SYNCHRONIZATION 1
8417 _ACEOF
8425 if test "$GCC" = yes; then
8426 USING_GCC_TRUE=
8427 USING_GCC_FALSE='#'
8428 else
8429 USING_GCC_TRUE='#'
8430 USING_GCC_FALSE=
8434 # We're in the tree with gcc, and need to include some of its headers.
8435 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8437 # Figure out where generated headers like libgcj-config.h get installed.
8438 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8439 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8440 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8441 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8445 if test "x${with_newlib}" = "xyes"; then
8446 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8447 # may not work correctly, because the compiler may not be able to
8448 # link executables.
8450 # We assume newlib. This lets us hard-code the functions we know
8451 # we'll have.
8453 cat >>confdefs.h <<\_ACEOF
8454 #define HAVE_MEMMOVE 1
8455 _ACEOF
8458 cat >>confdefs.h <<\_ACEOF
8459 #define HAVE_MEMCPY 1
8460 _ACEOF
8463 cat >>confdefs.h <<\_ACEOF
8464 #define HAVE_STRERROR 1
8465 _ACEOF
8468 cat >>confdefs.h <<\_ACEOF
8469 #define HAVE_TIME 1
8470 _ACEOF
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_GMTIME_R 1
8475 _ACEOF
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_LOCALTIME_R 1
8480 _ACEOF
8483 cat >>confdefs.h <<\_ACEOF
8484 #define HAVE_USLEEP_DECL 1
8485 _ACEOF
8487 # This is only for POSIX threads.
8489 cat >>confdefs.h <<\_ACEOF
8490 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8491 _ACEOF
8493 # We also assume we are using gcc, which provides alloca.
8494 cat >>confdefs.h <<\_ACEOF
8495 #define HAVE_ALLOCA 1
8496 _ACEOF
8499 # Assume we do not have getuid and friends.
8501 cat >>confdefs.h <<\_ACEOF
8502 #define NO_GETUID 1
8503 _ACEOF
8505 PLATFORMNET=NoNet
8506 else
8515 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8518 echo "$as_me:$LINENO: checking for $ac_func" >&5
8519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8520 if eval "test \"\${$as_ac_var+set}\" = set"; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523 if test x$gcc_no_link = xyes; then
8524 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8525 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8526 { (exit 1); exit 1; }; }
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8536 #define $ac_func innocuous_$ac_func
8538 /* System header to define __stub macros and hopefully few prototypes,
8539 which can conflict with char $ac_func (); below.
8540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8541 <limits.h> exists even on freestanding compilers. */
8543 #ifdef __STDC__
8544 # include <limits.h>
8545 #else
8546 # include <assert.h>
8547 #endif
8549 #undef $ac_func
8551 /* Override any gcc2 internal prototype to avoid an error. */
8552 #ifdef __cplusplus
8553 extern "C"
8555 #endif
8556 /* We use char because int might match the return type of a gcc2
8557 builtin and then its argument prototype would still apply. */
8558 char $ac_func ();
8559 /* The GNU C library defines this for functions which it implements
8560 to always fail with ENOSYS. Some functions are actually named
8561 something starting with __ and the normal name is an alias. */
8562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8563 choke me
8564 #else
8565 char (*f) () = $ac_func;
8566 #endif
8567 #ifdef __cplusplus
8569 #endif
8572 main ()
8574 return f != $ac_func;
8576 return 0;
8578 _ACEOF
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest$ac_exeext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 eval "$as_ac_var=yes"
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8605 eval "$as_ac_var=no"
8607 rm -f conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8612 if test `eval echo '${'$as_ac_var'}'` = yes; then
8613 cat >>confdefs.h <<_ACEOF
8614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8615 _ACEOF
8618 done
8625 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8628 echo "$as_me:$LINENO: checking for $ac_func" >&5
8629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8630 if eval "test \"\${$as_ac_var+set}\" = set"; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633 if test x$gcc_no_link = xyes; then
8634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8636 { (exit 1); exit 1; }; }
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8646 #define $ac_func innocuous_$ac_func
8648 /* System header to define __stub macros and hopefully few prototypes,
8649 which can conflict with char $ac_func (); below.
8650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8651 <limits.h> exists even on freestanding compilers. */
8653 #ifdef __STDC__
8654 # include <limits.h>
8655 #else
8656 # include <assert.h>
8657 #endif
8659 #undef $ac_func
8661 /* Override any gcc2 internal prototype to avoid an error. */
8662 #ifdef __cplusplus
8663 extern "C"
8665 #endif
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8668 char $ac_func ();
8669 /* The GNU C library defines this for functions which it implements
8670 to always fail with ENOSYS. Some functions are actually named
8671 something starting with __ and the normal name is an alias. */
8672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8673 choke me
8674 #else
8675 char (*f) () = $ac_func;
8676 #endif
8677 #ifdef __cplusplus
8679 #endif
8682 main ()
8684 return f != $ac_func;
8686 return 0;
8688 _ACEOF
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest$ac_exeext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 eval "$as_ac_var=yes"
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 eval "$as_ac_var=no"
8717 rm -f conftest.err conftest.$ac_objext \
8718 conftest$ac_exeext conftest.$ac_ext
8720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8722 if test `eval echo '${'$as_ac_var'}'` = yes; then
8723 cat >>confdefs.h <<_ACEOF
8724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8725 _ACEOF
8728 done
8739 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8742 echo "$as_me:$LINENO: checking for $ac_func" >&5
8743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8744 if eval "test \"\${$as_ac_var+set}\" = set"; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 if test x$gcc_no_link = xyes; then
8748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8750 { (exit 1); exit 1; }; }
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8760 #define $ac_func innocuous_$ac_func
8762 /* System header to define __stub macros and hopefully few prototypes,
8763 which can conflict with char $ac_func (); below.
8764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8765 <limits.h> exists even on freestanding compilers. */
8767 #ifdef __STDC__
8768 # include <limits.h>
8769 #else
8770 # include <assert.h>
8771 #endif
8773 #undef $ac_func
8775 /* Override any gcc2 internal prototype to avoid an error. */
8776 #ifdef __cplusplus
8777 extern "C"
8779 #endif
8780 /* We use char because int might match the return type of a gcc2
8781 builtin and then its argument prototype would still apply. */
8782 char $ac_func ();
8783 /* The GNU C library defines this for functions which it implements
8784 to always fail with ENOSYS. Some functions are actually named
8785 something starting with __ and the normal name is an alias. */
8786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8787 choke me
8788 #else
8789 char (*f) () = $ac_func;
8790 #endif
8791 #ifdef __cplusplus
8793 #endif
8796 main ()
8798 return f != $ac_func;
8800 return 0;
8802 _ACEOF
8803 rm -f conftest.$ac_objext conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; } &&
8818 { ac_try='test -s conftest$ac_exeext'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 (eval $ac_try) 2>&5
8821 ac_status=$?
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
8824 eval "$as_ac_var=yes"
8825 else
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8829 eval "$as_ac_var=no"
8831 rm -f conftest.err conftest.$ac_objext \
8832 conftest$ac_exeext conftest.$ac_ext
8834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8836 if test `eval echo '${'$as_ac_var'}'` = yes; then
8837 cat >>confdefs.h <<_ACEOF
8838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8839 _ACEOF
8842 done
8846 for ac_func in nl_langinfo setlocale
8848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8849 echo "$as_me:$LINENO: checking for $ac_func" >&5
8850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8851 if eval "test \"\${$as_ac_var+set}\" = set"; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854 if test x$gcc_no_link = xyes; then
8855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8857 { (exit 1); exit 1; }; }
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8867 #define $ac_func innocuous_$ac_func
8869 /* System header to define __stub macros and hopefully few prototypes,
8870 which can conflict with char $ac_func (); below.
8871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8872 <limits.h> exists even on freestanding compilers. */
8874 #ifdef __STDC__
8875 # include <limits.h>
8876 #else
8877 # include <assert.h>
8878 #endif
8880 #undef $ac_func
8882 /* Override any gcc2 internal prototype to avoid an error. */
8883 #ifdef __cplusplus
8884 extern "C"
8886 #endif
8887 /* We use char because int might match the return type of a gcc2
8888 builtin and then its argument prototype would still apply. */
8889 char $ac_func ();
8890 /* The GNU C library defines this for functions which it implements
8891 to always fail with ENOSYS. Some functions are actually named
8892 something starting with __ and the normal name is an alias. */
8893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8894 choke me
8895 #else
8896 char (*f) () = $ac_func;
8897 #endif
8898 #ifdef __cplusplus
8900 #endif
8903 main ()
8905 return f != $ac_func;
8907 return 0;
8909 _ACEOF
8910 rm -f conftest.$ac_objext conftest$ac_exeext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } &&
8919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try='test -s conftest$ac_exeext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 (eval $ac_try) 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 eval "$as_ac_var=yes"
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 eval "$as_ac_var=no"
8938 rm -f conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext conftest.$ac_ext
8941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8943 if test `eval echo '${'$as_ac_var'}'` = yes; then
8944 cat >>confdefs.h <<_ACEOF
8945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8946 _ACEOF
8949 done
8953 for ac_func in inet_aton inet_addr
8955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8956 echo "$as_me:$LINENO: checking for $ac_func" >&5
8957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8958 if eval "test \"\${$as_ac_var+set}\" = set"; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961 if test x$gcc_no_link = xyes; then
8962 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8963 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8964 { (exit 1); exit 1; }; }
8966 cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h. */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8974 #define $ac_func innocuous_$ac_func
8976 /* System header to define __stub macros and hopefully few prototypes,
8977 which can conflict with char $ac_func (); below.
8978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8979 <limits.h> exists even on freestanding compilers. */
8981 #ifdef __STDC__
8982 # include <limits.h>
8983 #else
8984 # include <assert.h>
8985 #endif
8987 #undef $ac_func
8989 /* Override any gcc2 internal prototype to avoid an error. */
8990 #ifdef __cplusplus
8991 extern "C"
8993 #endif
8994 /* We use char because int might match the return type of a gcc2
8995 builtin and then its argument prototype would still apply. */
8996 char $ac_func ();
8997 /* The GNU C library defines this for functions which it implements
8998 to always fail with ENOSYS. Some functions are actually named
8999 something starting with __ and the normal name is an alias. */
9000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9001 choke me
9002 #else
9003 char (*f) () = $ac_func;
9004 #endif
9005 #ifdef __cplusplus
9007 #endif
9010 main ()
9012 return f != $ac_func;
9014 return 0;
9016 _ACEOF
9017 rm -f conftest.$ac_objext conftest$ac_exeext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9019 (eval $ac_link) 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest$ac_exeext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 eval "$as_ac_var=yes"
9039 else
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9043 eval "$as_ac_var=no"
9045 rm -f conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9050 if test `eval echo '${'$as_ac_var'}'` = yes; then
9051 cat >>confdefs.h <<_ACEOF
9052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9053 _ACEOF
9054 break
9056 done
9061 for ac_func in inet_pton uname inet_ntoa
9063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9064 echo "$as_me:$LINENO: checking for $ac_func" >&5
9065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9066 if eval "test \"\${$as_ac_var+set}\" = set"; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 if test x$gcc_no_link = xyes; then
9070 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9071 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9072 { (exit 1); exit 1; }; }
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h. */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9082 #define $ac_func innocuous_$ac_func
9084 /* System header to define __stub macros and hopefully few prototypes,
9085 which can conflict with char $ac_func (); below.
9086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9087 <limits.h> exists even on freestanding compilers. */
9089 #ifdef __STDC__
9090 # include <limits.h>
9091 #else
9092 # include <assert.h>
9093 #endif
9095 #undef $ac_func
9097 /* Override any gcc2 internal prototype to avoid an error. */
9098 #ifdef __cplusplus
9099 extern "C"
9101 #endif
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9104 char $ac_func ();
9105 /* The GNU C library defines this for functions which it implements
9106 to always fail with ENOSYS. Some functions are actually named
9107 something starting with __ and the normal name is an alias. */
9108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9109 choke me
9110 #else
9111 char (*f) () = $ac_func;
9112 #endif
9113 #ifdef __cplusplus
9115 #endif
9118 main ()
9120 return f != $ac_func;
9122 return 0;
9124 _ACEOF
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127 (eval $ac_link) 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest$ac_exeext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 eval "$as_ac_var=yes"
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 eval "$as_ac_var=no"
9153 rm -f conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9158 if test `eval echo '${'$as_ac_var'}'` = yes; then
9159 cat >>confdefs.h <<_ACEOF
9160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9161 _ACEOF
9164 done
9171 for ac_func in fork execvp pipe sigaction ftruncate
9173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9174 echo "$as_me:$LINENO: checking for $ac_func" >&5
9175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9176 if eval "test \"\${$as_ac_var+set}\" = set"; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179 if test x$gcc_no_link = xyes; then
9180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9182 { (exit 1); exit 1; }; }
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h. */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9192 #define $ac_func innocuous_$ac_func
9194 /* System header to define __stub macros and hopefully few prototypes,
9195 which can conflict with char $ac_func (); below.
9196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9197 <limits.h> exists even on freestanding compilers. */
9199 #ifdef __STDC__
9200 # include <limits.h>
9201 #else
9202 # include <assert.h>
9203 #endif
9205 #undef $ac_func
9207 /* Override any gcc2 internal prototype to avoid an error. */
9208 #ifdef __cplusplus
9209 extern "C"
9211 #endif
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9214 char $ac_func ();
9215 /* The GNU C library defines this for functions which it implements
9216 to always fail with ENOSYS. Some functions are actually named
9217 something starting with __ and the normal name is an alias. */
9218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9219 choke me
9220 #else
9221 char (*f) () = $ac_func;
9222 #endif
9223 #ifdef __cplusplus
9225 #endif
9228 main ()
9230 return f != $ac_func;
9232 return 0;
9234 _ACEOF
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>conftest.er1
9238 ac_status=$?
9239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 eval "$as_ac_var=yes"
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 eval "$as_ac_var=no"
9263 rm -f conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9268 if test `eval echo '${'$as_ac_var'}'` = yes; then
9269 cat >>confdefs.h <<_ACEOF
9270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9271 _ACEOF
9274 done
9276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9278 if test "${ac_cv_header_stdc+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 #include <stdlib.h>
9288 #include <stdarg.h>
9289 #include <string.h>
9290 #include <float.h>
9293 main ()
9297 return 0;
9299 _ACEOF
9300 rm -f conftest.$ac_objext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9302 (eval $ac_compile) 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest.$ac_objext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_header_stdc=yes
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_cv_header_stdc=no
9328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9330 if test $ac_cv_header_stdc = yes; then
9331 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 #include <string.h>
9340 _ACEOF
9341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9342 $EGREP "memchr" >/dev/null 2>&1; then
9344 else
9345 ac_cv_header_stdc=no
9347 rm -f conftest*
9351 if test $ac_cv_header_stdc = yes; then
9352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 #include <stdlib.h>
9361 _ACEOF
9362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9363 $EGREP "free" >/dev/null 2>&1; then
9365 else
9366 ac_cv_header_stdc=no
9368 rm -f conftest*
9372 if test $ac_cv_header_stdc = yes; then
9373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9374 if test "$cross_compiling" = yes; then
9376 else
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 #include <ctype.h>
9384 #if ((' ' & 0x0FF) == 0x020)
9385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9387 #else
9388 # define ISLOWER(c) \
9389 (('a' <= (c) && (c) <= 'i') \
9390 || ('j' <= (c) && (c) <= 'r') \
9391 || ('s' <= (c) && (c) <= 'z'))
9392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9393 #endif
9395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9397 main ()
9399 int i;
9400 for (i = 0; i < 256; i++)
9401 if (XOR (islower (i), ISLOWER (i))
9402 || toupper (i) != TOUPPER (i))
9403 exit(2);
9404 exit (0);
9406 _ACEOF
9407 rm -f conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9419 else
9420 echo "$as_me: program exited with status $ac_status" >&5
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9424 ( exit $ac_status )
9425 ac_cv_header_stdc=no
9427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9431 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9432 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9433 if test $ac_cv_header_stdc = yes; then
9435 cat >>confdefs.h <<\_ACEOF
9436 #define STDC_HEADERS 1
9437 _ACEOF
9441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9451 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9452 inttypes.h stdint.h unistd.h
9454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9455 echo "$as_me:$LINENO: checking for $ac_header" >&5
9456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h. */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 $ac_includes_default
9468 #include <$ac_header>
9469 _ACEOF
9470 rm -f conftest.$ac_objext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9472 (eval $ac_compile) 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 (eval $ac_try) 2>&5
9482 ac_status=$?
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); }; } &&
9485 { ac_try='test -s conftest.$ac_objext'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 (eval $ac_try) 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 eval "$as_ac_Header=yes"
9492 else
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9496 eval "$as_ac_Header=no"
9498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9503 cat >>confdefs.h <<_ACEOF
9504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9505 _ACEOF
9509 done
9515 for ac_header in execinfo.h unistd.h dlfcn.h
9517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9519 echo "$as_me:$LINENO: checking for $ac_header" >&5
9520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9526 else
9527 # Is the header compilable?
9528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 $ac_includes_default
9537 #include <$ac_header>
9538 _ACEOF
9539 rm -f conftest.$ac_objext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541 (eval $ac_compile) 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try='test -s conftest.$ac_objext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 (eval $ac_try) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_header_compiler=yes
9561 else
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_header_compiler=no
9567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9569 echo "${ECHO_T}$ac_header_compiler" >&6
9571 # Is the header present?
9572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 #include <$ac_header>
9581 _ACEOF
9582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } >/dev/null; then
9590 if test -s conftest.err; then
9591 ac_cpp_err=$ac_c_preproc_warn_flag
9592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9593 else
9594 ac_cpp_err=
9596 else
9597 ac_cpp_err=yes
9599 if test -z "$ac_cpp_err"; then
9600 ac_header_preproc=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_header_preproc=no
9607 rm -f conftest.err conftest.$ac_ext
9608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9609 echo "${ECHO_T}$ac_header_preproc" >&6
9611 # So? What about this header?
9612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9613 yes:no: )
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9618 ac_header_preproc=yes
9620 no:yes:* )
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9634 cat <<\_ASBOX
9635 ## ---------------------------------- ##
9636 ## Report this to the libjava lists. ##
9637 ## ---------------------------------- ##
9638 _ASBOX
9640 sed "s/^/$as_me: WARNING: /" >&2
9642 esac
9643 echo "$as_me:$LINENO: checking for $ac_header" >&5
9644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 eval "$as_ac_Header=\$ac_header_preproc"
9650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9655 cat >>confdefs.h <<_ACEOF
9656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9657 _ACEOF
9661 done
9663 echo "$as_me:$LINENO: checking for backtrace" >&5
9664 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9665 if test "${ac_cv_func_backtrace+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 if test x$gcc_no_link = xyes; then
9669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9671 { (exit 1); exit 1; }; }
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9681 #define backtrace innocuous_backtrace
9683 /* System header to define __stub macros and hopefully few prototypes,
9684 which can conflict with char backtrace (); below.
9685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9686 <limits.h> exists even on freestanding compilers. */
9688 #ifdef __STDC__
9689 # include <limits.h>
9690 #else
9691 # include <assert.h>
9692 #endif
9694 #undef backtrace
9696 /* Override any gcc2 internal prototype to avoid an error. */
9697 #ifdef __cplusplus
9698 extern "C"
9700 #endif
9701 /* We use char because int might match the return type of a gcc2
9702 builtin and then its argument prototype would still apply. */
9703 char backtrace ();
9704 /* The GNU C library defines this for functions which it implements
9705 to always fail with ENOSYS. Some functions are actually named
9706 something starting with __ and the normal name is an alias. */
9707 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9708 choke me
9709 #else
9710 char (*f) () = backtrace;
9711 #endif
9712 #ifdef __cplusplus
9714 #endif
9717 main ()
9719 return f != backtrace;
9721 return 0;
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9726 (eval $ac_link) 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_cv_func_backtrace=yes
9746 else
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_cv_func_backtrace=no
9752 rm -f conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9755 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9756 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9757 if test $ac_cv_func_backtrace = yes; then
9759 case "$host" in
9760 ia64-*-linux*)
9761 # Has broken backtrace()
9763 mips*-*-linux*)
9764 # Has broken backtrace(), but we supply our own.
9765 if test -d sysdep; then true; else mkdir -p sysdep; fi
9766 supply_backtrace=yes
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_BACKTRACE 1
9770 _ACEOF
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_BACKTRACE 1
9777 _ACEOF
9780 esac
9782 else
9784 case "$host" in
9785 *mingw*)
9786 # Has backtrace() defined in libgcj itself
9788 cat >>confdefs.h <<\_ACEOF
9789 #define HAVE_BACKTRACE 1
9790 _ACEOF
9793 esac
9798 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9799 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9800 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 ac_check_lib_save_LIBS=$LIBS
9804 LIBS="-ldl $LIBS"
9805 if test x$gcc_no_link = xyes; then
9806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9808 { (exit 1); exit 1; }; }
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9817 /* Override any gcc2 internal prototype to avoid an error. */
9818 #ifdef __cplusplus
9819 extern "C"
9820 #endif
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9823 char dladdr ();
9825 main ()
9827 dladdr ();
9829 return 0;
9831 _ACEOF
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834 (eval $ac_link) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_cv_lib_dl_dladdr=yes
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_cv_lib_dl_dladdr=no
9860 rm -f conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9864 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9865 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9866 if test $ac_cv_lib_dl_dladdr = yes; then
9868 if test "x${disable_dladdr}" = "xyes"; then
9869 #Broken dladdr().
9870 true
9871 else
9873 cat >>confdefs.h <<\_ACEOF
9874 #define HAVE_DLADDR 1
9875 _ACEOF
9881 if test x"$build" = x"$host"; then
9882 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9883 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9884 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887 test "$cross_compiling" = yes &&
9888 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9889 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9890 { (exit 1); exit 1; }; }
9891 if test -r "/proc/self/exe"; then
9892 ac_cv_file__proc_self_exe=yes
9893 else
9894 ac_cv_file__proc_self_exe=no
9897 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9898 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9899 if test $ac_cv_file__proc_self_exe = yes; then
9901 cat >>confdefs.h <<_ACEOF
9902 #define HAVE__PROC_SELF_EXE 1
9903 _ACEOF
9907 cat >>confdefs.h <<\_ACEOF
9908 #define HAVE_PROC_SELF_EXE 1
9909 _ACEOF
9913 else
9914 case $host in
9915 *-linux*)
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_PROC_SELF_EXE 1
9919 _ACEOF
9922 esac
9927 am_cv_lib_iconv_ldpath=
9929 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9930 if test "${with_libiconv_prefix+set}" = set; then
9931 withval="$with_libiconv_prefix"
9933 for dir in `echo "$withval" | tr : ' '`; do
9934 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9935 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9936 done
9940 echo "$as_me:$LINENO: checking for iconv" >&5
9941 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9942 if test "${am_cv_func_iconv+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9946 am_cv_func_iconv="no, consider installing GNU libiconv"
9947 am_cv_lib_iconv=no
9948 if test x$gcc_no_link = xyes; then
9949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9951 { (exit 1); exit 1; }; }
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 #include <stdlib.h>
9960 #include <iconv.h>
9962 main ()
9964 iconv_t cd = iconv_open("","");
9965 iconv(cd,NULL,NULL,NULL,NULL);
9966 iconv_close(cd);
9968 return 0;
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 am_cv_func_iconv=yes
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9998 rm -f conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10000 if test "$am_cv_func_iconv" != yes; then
10001 am_save_LIBS="$LIBS"
10002 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
10003 if test x$gcc_no_link = xyes; then
10004 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10006 { (exit 1); exit 1; }; }
10008 cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h. */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 #include <stdlib.h>
10015 #include <iconv.h>
10017 main ()
10019 iconv_t cd = iconv_open("","");
10020 iconv(cd,NULL,NULL,NULL,NULL);
10021 iconv_close(cd);
10023 return 0;
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest$ac_exeext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 am_cv_lib_iconv=yes
10048 am_cv_func_iconv=yes
10049 else
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10054 rm -f conftest.err conftest.$ac_objext \
10055 conftest$ac_exeext conftest.$ac_ext
10056 LIBS="$am_save_LIBS"
10060 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10061 echo "${ECHO_T}$am_cv_func_iconv" >&6
10062 if test "$am_cv_func_iconv" = yes; then
10064 cat >>confdefs.h <<\_ACEOF
10065 #define HAVE_ICONV 1
10066 _ACEOF
10068 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10069 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10070 if test "${am_cv_proto_iconv+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10081 #include <stdlib.h>
10082 #include <iconv.h>
10083 extern
10084 #ifdef __cplusplus
10086 #endif
10087 #if defined(__STDC__) || defined(__cplusplus)
10088 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10089 #else
10090 size_t iconv();
10091 #endif
10094 main ()
10098 return 0;
10100 _ACEOF
10101 rm -f conftest.$ac_objext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; } &&
10116 { ac_try='test -s conftest.$ac_objext'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 am_cv_proto_iconv_arg1=""
10123 else
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 am_cv_proto_iconv_arg1="const"
10129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10130 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);"
10133 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10134 echo "$as_me:$LINENO: result: ${ac_t:-
10135 }$am_cv_proto_iconv" >&5
10136 echo "${ECHO_T}${ac_t:-
10137 }$am_cv_proto_iconv" >&6
10139 cat >>confdefs.h <<_ACEOF
10140 #define ICONV_CONST $am_cv_proto_iconv_arg1
10141 _ACEOF
10144 LIBICONV=
10145 if test "$am_cv_lib_iconv" = yes; then
10146 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10151 for ac_header in locale.h
10153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10155 echo "$as_me:$LINENO: checking for $ac_header" >&5
10156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10162 else
10163 # Is the header compilable?
10164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10166 cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h. */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 $ac_includes_default
10173 #include <$ac_header>
10174 _ACEOF
10175 rm -f conftest.$ac_objext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177 (eval $ac_compile) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest.$ac_objext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_header_compiler=yes
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_header_compiler=no
10203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10205 echo "${ECHO_T}$ac_header_compiler" >&6
10207 # Is the header present?
10208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 #include <$ac_header>
10217 _ACEOF
10218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10220 ac_status=$?
10221 grep -v '^ *+' conftest.er1 >conftest.err
10222 rm -f conftest.er1
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } >/dev/null; then
10226 if test -s conftest.err; then
10227 ac_cpp_err=$ac_c_preproc_warn_flag
10228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10229 else
10230 ac_cpp_err=
10232 else
10233 ac_cpp_err=yes
10235 if test -z "$ac_cpp_err"; then
10236 ac_header_preproc=yes
10237 else
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_header_preproc=no
10243 rm -f conftest.err conftest.$ac_ext
10244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10245 echo "${ECHO_T}$ac_header_preproc" >&6
10247 # So? What about this header?
10248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10249 yes:no: )
10250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10254 ac_header_preproc=yes
10256 no:yes:* )
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10270 cat <<\_ASBOX
10271 ## ---------------------------------- ##
10272 ## Report this to the libjava lists. ##
10273 ## ---------------------------------- ##
10274 _ASBOX
10276 sed "s/^/$as_me: WARNING: /" >&2
10278 esac
10279 echo "$as_me:$LINENO: checking for $ac_header" >&5
10280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284 eval "$as_ac_Header=\$ac_header_preproc"
10286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10291 cat >>confdefs.h <<_ACEOF
10292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10293 _ACEOF
10297 done
10299 if test $ac_cv_header_locale_h = yes; then
10300 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10301 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10302 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 if test x$gcc_no_link = xyes; then
10306 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10307 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10308 { (exit 1); exit 1; }; }
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 #include <locale.h>
10318 main ()
10320 return LC_MESSAGES
10322 return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327 (eval $ac_link) 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest$ac_exeext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 am_cv_val_LC_MESSAGES=yes
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 am_cv_val_LC_MESSAGES=no
10353 rm -f conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10357 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10358 if test $am_cv_val_LC_MESSAGES = yes; then
10360 cat >>confdefs.h <<\_ACEOF
10361 #define HAVE_LC_MESSAGES 1
10362 _ACEOF
10366 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10367 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10368 if test "${ac_cv_struct_tm+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 #include <sys/types.h>
10378 #include <time.h>
10381 main ()
10383 struct tm *tp; tp->tm_sec;
10385 return 0;
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest.$ac_objext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_struct_tm=time.h
10410 else
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_struct_tm=sys/time.h
10416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10418 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10419 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10420 if test $ac_cv_struct_tm = sys/time.h; then
10422 cat >>confdefs.h <<\_ACEOF
10423 #define TM_IN_SYS_TIME 1
10424 _ACEOF
10428 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10429 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10430 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <sys/types.h>
10440 #include <$ac_cv_struct_tm>
10444 main ()
10446 static struct tm ac_aggr;
10447 if (ac_aggr.tm_zone)
10448 return 0;
10450 return 0;
10452 _ACEOF
10453 rm -f conftest.$ac_objext
10454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10455 (eval $ac_compile) 2>conftest.er1
10456 ac_status=$?
10457 grep -v '^ *+' conftest.er1 >conftest.err
10458 rm -f conftest.er1
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } &&
10462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest.$ac_objext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_member_struct_tm_tm_zone=yes
10475 else
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h. */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 #include <sys/types.h>
10486 #include <$ac_cv_struct_tm>
10490 main ()
10492 static struct tm ac_aggr;
10493 if (sizeof ac_aggr.tm_zone)
10494 return 0;
10496 return 0;
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; } &&
10514 { ac_try='test -s conftest.$ac_objext'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10520 ac_cv_member_struct_tm_tm_zone=yes
10521 else
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10525 ac_cv_member_struct_tm_tm_zone=no
10527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10531 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10532 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10533 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10535 cat >>confdefs.h <<_ACEOF
10536 #define HAVE_STRUCT_TM_TM_ZONE 1
10537 _ACEOF
10542 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10544 cat >>confdefs.h <<\_ACEOF
10545 #define HAVE_TM_ZONE 1
10546 _ACEOF
10548 else
10549 echo "$as_me:$LINENO: checking for tzname" >&5
10550 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10551 if test "${ac_cv_var_tzname+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554 if test x$gcc_no_link = xyes; then
10555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10557 { (exit 1); exit 1; }; }
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h. */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 #include <time.h>
10566 #ifndef tzname /* For SGI. */
10567 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10568 #endif
10571 main ()
10573 atoi(*tzname);
10575 return 0;
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10580 (eval $ac_link) 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; } &&
10593 { ac_try='test -s conftest$ac_exeext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 ac_cv_var_tzname=yes
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_cv_var_tzname=no
10606 rm -f conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10609 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10610 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10611 if test $ac_cv_var_tzname = yes; then
10613 cat >>confdefs.h <<\_ACEOF
10614 #define HAVE_TZNAME 1
10615 _ACEOF
10623 for ac_func in gethostbyname_r
10625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10626 echo "$as_me:$LINENO: checking for $ac_func" >&5
10627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10628 if eval "test \"\${$as_ac_var+set}\" = set"; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631 if test x$gcc_no_link = xyes; then
10632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10634 { (exit 1); exit 1; }; }
10636 cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h. */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10644 #define $ac_func innocuous_$ac_func
10646 /* System header to define __stub macros and hopefully few prototypes,
10647 which can conflict with char $ac_func (); below.
10648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10649 <limits.h> exists even on freestanding compilers. */
10651 #ifdef __STDC__
10652 # include <limits.h>
10653 #else
10654 # include <assert.h>
10655 #endif
10657 #undef $ac_func
10659 /* Override any gcc2 internal prototype to avoid an error. */
10660 #ifdef __cplusplus
10661 extern "C"
10663 #endif
10664 /* We use char because int might match the return type of a gcc2
10665 builtin and then its argument prototype would still apply. */
10666 char $ac_func ();
10667 /* The GNU C library defines this for functions which it implements
10668 to always fail with ENOSYS. Some functions are actually named
10669 something starting with __ and the normal name is an alias. */
10670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10671 choke me
10672 #else
10673 char (*f) () = $ac_func;
10674 #endif
10675 #ifdef __cplusplus
10677 #endif
10680 main ()
10682 return f != $ac_func;
10684 return 0;
10686 _ACEOF
10687 rm -f conftest.$ac_objext conftest$ac_exeext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10689 (eval $ac_link) 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 eval "$as_ac_var=yes"
10709 else
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10713 eval "$as_ac_var=no"
10715 rm -f conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10720 if test `eval echo '${'$as_ac_var'}'` = yes; then
10721 cat >>confdefs.h <<_ACEOF
10722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10723 _ACEOF
10726 cat >>confdefs.h <<\_ACEOF
10727 #define HAVE_GETHOSTBYNAME_R 1
10728 _ACEOF
10730 # There are two different kinds of gethostbyname_r.
10731 # We look for the one that returns `int'.
10732 # Hopefully this check is robust enough.
10733 cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h. */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10739 #include <netdb.h>
10741 _ACEOF
10742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10743 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10746 cat >>confdefs.h <<\_ACEOF
10747 #define GETHOSTBYNAME_R_RETURNS_INT 1
10748 _ACEOF
10751 rm -f conftest*
10754 case " $GCINCS " in
10755 *" -D_REENTRANT "*) ;;
10757 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10758 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10759 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762 ac_ext=cc
10763 ac_cpp='$CXXCPP $CPPFLAGS'
10764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h. */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 #include <netdb.h>
10776 main ()
10778 gethostbyname_r("", 0, 0);
10780 return 0;
10782 _ACEOF
10783 rm -f conftest.$ac_objext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10785 (eval $ac_compile) 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest.$ac_objext'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 libjava_cv_gethostbyname_r_needs_reentrant=no
10805 else
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 CPPFLAGS_SAVE="$CPPFLAGS"
10810 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h. */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 #include <netdb.h>
10819 main ()
10821 gethostbyname_r("", 0, 0);
10823 return 0;
10825 _ACEOF
10826 rm -f conftest.$ac_objext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10828 (eval $ac_compile) 2>conftest.er1
10829 ac_status=$?
10830 grep -v '^ *+' conftest.er1 >conftest.err
10831 rm -f conftest.er1
10832 cat conftest.err >&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } &&
10835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 libjava_cv_gethostbyname_r_needs_reentrant=yes
10848 else
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 libjava_cv_gethostbyname_r_needs_reentrant=fail
10854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10855 CPPFLAGS="$CPPFLAGS_SAVE"
10858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10859 ac_ext=c
10860 ac_cpp='$CPP $CPPFLAGS'
10861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10867 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10868 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10869 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10871 cat >>confdefs.h <<\_ACEOF
10872 #define _REENTRANT 1
10873 _ACEOF
10877 esac
10879 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10880 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10881 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884 cat >conftest.$ac_ext <<_ACEOF
10885 /* confdefs.h. */
10886 _ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10891 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10892 # define _REENTRANT 1
10893 #endif
10894 #include <netdb.h>
10896 main ()
10898 struct hostent_data data;
10900 return 0;
10902 _ACEOF
10903 rm -f conftest.$ac_objext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>conftest.er1
10906 ac_status=$?
10907 grep -v '^ *+' conftest.er1 >conftest.err
10908 rm -f conftest.er1
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 libjava_cv_struct_hostent_data=yes
10925 else
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 libjava_cv_struct_hostent_data=no
10931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10933 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10934 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10935 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10937 cat >>confdefs.h <<\_ACEOF
10938 #define HAVE_STRUCT_HOSTENT_DATA 1
10939 _ACEOF
10944 done
10947 # FIXME: libjava source code expects to find a prototype for
10948 # gethostbyaddr_r in netdb.h. The outer check ensures that
10949 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10950 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10951 # linkage check is enough, yet C++ code requires proper prototypes.)
10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h. */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 #include <netdb.h>
10960 _ACEOF
10961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10962 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10965 for ac_func in gethostbyaddr_r
10967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10968 echo "$as_me:$LINENO: checking for $ac_func" >&5
10969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10970 if eval "test \"\${$as_ac_var+set}\" = set"; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 else
10973 if test x$gcc_no_link = xyes; then
10974 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10976 { (exit 1); exit 1; }; }
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10986 #define $ac_func innocuous_$ac_func
10988 /* System header to define __stub macros and hopefully few prototypes,
10989 which can conflict with char $ac_func (); below.
10990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10991 <limits.h> exists even on freestanding compilers. */
10993 #ifdef __STDC__
10994 # include <limits.h>
10995 #else
10996 # include <assert.h>
10997 #endif
10999 #undef $ac_func
11001 /* Override any gcc2 internal prototype to avoid an error. */
11002 #ifdef __cplusplus
11003 extern "C"
11005 #endif
11006 /* We use char because int might match the return type of a gcc2
11007 builtin and then its argument prototype would still apply. */
11008 char $ac_func ();
11009 /* The GNU C library defines this for functions which it implements
11010 to always fail with ENOSYS. Some functions are actually named
11011 something starting with __ and the normal name is an alias. */
11012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11013 choke me
11014 #else
11015 char (*f) () = $ac_func;
11016 #endif
11017 #ifdef __cplusplus
11019 #endif
11022 main ()
11024 return f != $ac_func;
11026 return 0;
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 eval "$as_ac_var=yes"
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 eval "$as_ac_var=no"
11057 rm -f conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11062 if test `eval echo '${'$as_ac_var'}'` = yes; then
11063 cat >>confdefs.h <<_ACEOF
11064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11065 _ACEOF
11068 cat >>confdefs.h <<\_ACEOF
11069 #define HAVE_GETHOSTBYADDR_R 1
11070 _ACEOF
11072 # There are two different kinds of gethostbyaddr_r.
11073 # We look for the one that returns `int'.
11074 # Hopefully this check is robust enough.
11075 cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h. */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11081 #include <netdb.h>
11083 _ACEOF
11084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11085 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11088 cat >>confdefs.h <<\_ACEOF
11089 #define GETHOSTBYADDR_R_RETURNS_INT 1
11090 _ACEOF
11093 rm -f conftest*
11096 done
11099 rm -f conftest*
11103 for ac_func in gethostname
11105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11106 echo "$as_me:$LINENO: checking for $ac_func" >&5
11107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11108 if eval "test \"\${$as_ac_var+set}\" = set"; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111 if test x$gcc_no_link = xyes; then
11112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11114 { (exit 1); exit 1; }; }
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h. */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11124 #define $ac_func innocuous_$ac_func
11126 /* System header to define __stub macros and hopefully few prototypes,
11127 which can conflict with char $ac_func (); below.
11128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11129 <limits.h> exists even on freestanding compilers. */
11131 #ifdef __STDC__
11132 # include <limits.h>
11133 #else
11134 # include <assert.h>
11135 #endif
11137 #undef $ac_func
11139 /* Override any gcc2 internal prototype to avoid an error. */
11140 #ifdef __cplusplus
11141 extern "C"
11143 #endif
11144 /* We use char because int might match the return type of a gcc2
11145 builtin and then its argument prototype would still apply. */
11146 char $ac_func ();
11147 /* The GNU C library defines this for functions which it implements
11148 to always fail with ENOSYS. Some functions are actually named
11149 something starting with __ and the normal name is an alias. */
11150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11151 choke me
11152 #else
11153 char (*f) () = $ac_func;
11154 #endif
11155 #ifdef __cplusplus
11157 #endif
11160 main ()
11162 return f != $ac_func;
11164 return 0;
11166 _ACEOF
11167 rm -f conftest.$ac_objext conftest$ac_exeext
11168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11169 (eval $ac_link) 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; } &&
11182 { ac_try='test -s conftest$ac_exeext'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }; then
11188 eval "$as_ac_var=yes"
11189 else
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 eval "$as_ac_var=no"
11195 rm -f conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext conftest.$ac_ext
11198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11200 if test `eval echo '${'$as_ac_var'}'` = yes; then
11201 cat >>confdefs.h <<_ACEOF
11202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11203 _ACEOF
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_GETHOSTNAME 1
11208 _ACEOF
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 #include <unistd.h>
11218 _ACEOF
11219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11220 $EGREP "gethostname" >/dev/null 2>&1; then
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_GETHOSTNAME_DECL 1
11225 _ACEOF
11228 rm -f conftest*
11231 done
11235 for ac_func in usleep
11237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11238 echo "$as_me:$LINENO: checking for $ac_func" >&5
11239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11240 if eval "test \"\${$as_ac_var+set}\" = set"; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243 if test x$gcc_no_link = xyes; then
11244 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11245 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11246 { (exit 1); exit 1; }; }
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11256 #define $ac_func innocuous_$ac_func
11258 /* System header to define __stub macros and hopefully few prototypes,
11259 which can conflict with char $ac_func (); below.
11260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11261 <limits.h> exists even on freestanding compilers. */
11263 #ifdef __STDC__
11264 # include <limits.h>
11265 #else
11266 # include <assert.h>
11267 #endif
11269 #undef $ac_func
11271 /* Override any gcc2 internal prototype to avoid an error. */
11272 #ifdef __cplusplus
11273 extern "C"
11275 #endif
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11278 char $ac_func ();
11279 /* The GNU C library defines this for functions which it implements
11280 to always fail with ENOSYS. Some functions are actually named
11281 something starting with __ and the normal name is an alias. */
11282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11283 choke me
11284 #else
11285 char (*f) () = $ac_func;
11286 #endif
11287 #ifdef __cplusplus
11289 #endif
11292 main ()
11294 return f != $ac_func;
11296 return 0;
11298 _ACEOF
11299 rm -f conftest.$ac_objext conftest$ac_exeext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11301 (eval $ac_link) 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest$ac_exeext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 eval "$as_ac_var=yes"
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 eval "$as_ac_var=no"
11327 rm -f conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11332 if test `eval echo '${'$as_ac_var'}'` = yes; then
11333 cat >>confdefs.h <<_ACEOF
11334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11335 _ACEOF
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h. */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #include <unistd.h>
11345 _ACEOF
11346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11347 $EGREP "usleep" >/dev/null 2>&1; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_USLEEP_DECL 1
11352 _ACEOF
11355 rm -f conftest*
11358 done
11361 # Look for these functions in the thread library, but only bother
11362 # if using POSIX threads.
11363 if test "$THREADS" = posix; then
11364 save_LIBS="$LIBS"
11365 LIBS="$LIBS $THREADLIBS"
11366 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11367 # E.g., Solaris.
11370 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11373 echo "$as_me:$LINENO: checking for $ac_func" >&5
11374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11375 if eval "test \"\${$as_ac_var+set}\" = set"; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 if test x$gcc_no_link = xyes; then
11379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11381 { (exit 1); exit 1; }; }
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11391 #define $ac_func innocuous_$ac_func
11393 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func (); below.
11395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11396 <limits.h> exists even on freestanding compilers. */
11398 #ifdef __STDC__
11399 # include <limits.h>
11400 #else
11401 # include <assert.h>
11402 #endif
11404 #undef $ac_func
11406 /* Override any gcc2 internal prototype to avoid an error. */
11407 #ifdef __cplusplus
11408 extern "C"
11410 #endif
11411 /* We use char because int might match the return type of a gcc2
11412 builtin and then its argument prototype would still apply. */
11413 char $ac_func ();
11414 /* The GNU C library defines this for functions which it implements
11415 to always fail with ENOSYS. Some functions are actually named
11416 something starting with __ and the normal name is an alias. */
11417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11418 choke me
11419 #else
11420 char (*f) () = $ac_func;
11421 #endif
11422 #ifdef __cplusplus
11424 #endif
11427 main ()
11429 return f != $ac_func;
11431 return 0;
11433 _ACEOF
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11436 (eval $ac_link) 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest$ac_exeext'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 eval "$as_ac_var=yes"
11456 else
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 eval "$as_ac_var=no"
11462 rm -f conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11467 if test `eval echo '${'$as_ac_var'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11470 _ACEOF
11473 done
11476 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11477 # Solaris 7 the name librt is preferred.
11479 for ac_func in sched_yield
11481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11482 echo "$as_me:$LINENO: checking for $ac_func" >&5
11483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11484 if eval "test \"\${$as_ac_var+set}\" = set"; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487 if test x$gcc_no_link = xyes; then
11488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11490 { (exit 1); exit 1; }; }
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h. */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11500 #define $ac_func innocuous_$ac_func
11502 /* System header to define __stub macros and hopefully few prototypes,
11503 which can conflict with char $ac_func (); below.
11504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11505 <limits.h> exists even on freestanding compilers. */
11507 #ifdef __STDC__
11508 # include <limits.h>
11509 #else
11510 # include <assert.h>
11511 #endif
11513 #undef $ac_func
11515 /* Override any gcc2 internal prototype to avoid an error. */
11516 #ifdef __cplusplus
11517 extern "C"
11519 #endif
11520 /* We use char because int might match the return type of a gcc2
11521 builtin and then its argument prototype would still apply. */
11522 char $ac_func ();
11523 /* The GNU C library defines this for functions which it implements
11524 to always fail with ENOSYS. Some functions are actually named
11525 something starting with __ and the normal name is an alias. */
11526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11527 choke me
11528 #else
11529 char (*f) () = $ac_func;
11530 #endif
11531 #ifdef __cplusplus
11533 #endif
11536 main ()
11538 return f != $ac_func;
11540 return 0;
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; } &&
11558 { ac_try='test -s conftest$ac_exeext'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 eval "$as_ac_var=yes"
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 eval "$as_ac_var=no"
11571 rm -f conftest.err conftest.$ac_objext \
11572 conftest$ac_exeext conftest.$ac_ext
11574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11576 if test `eval echo '${'$as_ac_var'}'` = yes; then
11577 cat >>confdefs.h <<_ACEOF
11578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11579 _ACEOF
11581 else
11583 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11584 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11585 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588 ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-lrt $LIBS"
11590 if test x$gcc_no_link = xyes; then
11591 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11593 { (exit 1); exit 1; }; }
11595 cat >conftest.$ac_ext <<_ACEOF
11596 /* confdefs.h. */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11602 /* Override any gcc2 internal prototype to avoid an error. */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 /* We use char because int might match the return type of a gcc2
11607 builtin and then its argument prototype would still apply. */
11608 char sched_yield ();
11610 main ()
11612 sched_yield ();
11614 return 0;
11616 _ACEOF
11617 rm -f conftest.$ac_objext conftest$ac_exeext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619 (eval $ac_link) 2>conftest.er1
11620 ac_status=$?
11621 grep -v '^ *+' conftest.er1 >conftest.err
11622 rm -f conftest.er1
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest$ac_exeext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 ac_cv_lib_rt_sched_yield=yes
11639 else
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 ac_cv_lib_rt_sched_yield=no
11645 rm -f conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_lib_save_LIBS
11649 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11650 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11651 if test $ac_cv_lib_rt_sched_yield = yes; then
11653 cat >>confdefs.h <<\_ACEOF
11654 #define HAVE_SCHED_YIELD 1
11655 _ACEOF
11657 THREADLIBS="$THREADLIBS -lrt"
11658 THREADSPEC="$THREADSPEC -lrt"
11659 else
11661 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11662 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11663 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666 ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lposix4 $LIBS"
11668 if test x$gcc_no_link = xyes; then
11669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11671 { (exit 1); exit 1; }; }
11673 cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h. */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11680 /* Override any gcc2 internal prototype to avoid an error. */
11681 #ifdef __cplusplus
11682 extern "C"
11683 #endif
11684 /* We use char because int might match the return type of a gcc2
11685 builtin and then its argument prototype would still apply. */
11686 char sched_yield ();
11688 main ()
11690 sched_yield ();
11692 return 0;
11694 _ACEOF
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_cv_lib_posix4_sched_yield=yes
11717 else
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 ac_cv_lib_posix4_sched_yield=no
11723 rm -f conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11727 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11728 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11729 if test $ac_cv_lib_posix4_sched_yield = yes; then
11731 cat >>confdefs.h <<\_ACEOF
11732 #define HAVE_SCHED_YIELD 1
11733 _ACEOF
11735 THREADLIBS="$THREADLIBS -lposix4"
11736 THREADSPEC="$THREADSPEC -lposix4"
11742 done
11744 LIBS="$save_LIBS"
11746 # We can save a little space at runtime if the mutex has m_count
11747 # or __m_count. This is a nice hack for Linux.
11748 cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h. */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 #include <pthread.h>
11756 main ()
11759 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11762 return 0;
11764 _ACEOF
11765 rm -f conftest.$ac_objext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11767 (eval $ac_compile) 2>conftest.er1
11768 ac_status=$?
11769 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
11774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest.$ac_objext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11787 cat >>confdefs.h <<\_ACEOF
11788 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11789 _ACEOF
11791 else
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h. */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11802 #include <pthread.h>
11804 main ()
11807 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11810 return 0;
11812 _ACEOF
11813 rm -f conftest.$ac_objext
11814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11815 (eval $ac_compile) 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11835 cat >>confdefs.h <<\_ACEOF
11836 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11837 _ACEOF
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11849 # We require a way to get the time.
11850 time_found=no
11854 for ac_func in gettimeofday time ftime
11856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11857 echo "$as_me:$LINENO: checking for $ac_func" >&5
11858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11859 if eval "test \"\${$as_ac_var+set}\" = set"; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862 if test x$gcc_no_link = xyes; then
11863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11865 { (exit 1); exit 1; }; }
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11875 #define $ac_func innocuous_$ac_func
11877 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char $ac_func (); below.
11879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880 <limits.h> exists even on freestanding compilers. */
11882 #ifdef __STDC__
11883 # include <limits.h>
11884 #else
11885 # include <assert.h>
11886 #endif
11888 #undef $ac_func
11890 /* Override any gcc2 internal prototype to avoid an error. */
11891 #ifdef __cplusplus
11892 extern "C"
11894 #endif
11895 /* We use char because int might match the return type of a gcc2
11896 builtin and then its argument prototype would still apply. */
11897 char $ac_func ();
11898 /* The GNU C library defines this for functions which it implements
11899 to always fail with ENOSYS. Some functions are actually named
11900 something starting with __ and the normal name is an alias. */
11901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11902 choke me
11903 #else
11904 char (*f) () = $ac_func;
11905 #endif
11906 #ifdef __cplusplus
11908 #endif
11911 main ()
11913 return f != $ac_func;
11915 return 0;
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest$ac_exeext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 eval "$as_ac_var=yes"
11940 else
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 eval "$as_ac_var=no"
11946 rm -f conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11951 if test `eval echo '${'$as_ac_var'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954 _ACEOF
11955 time_found=yes
11957 done
11959 if test "$time_found" = no; then
11960 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11961 echo "$as_me: error: no function found to get the time" >&2;}
11962 { (exit 1); exit 1; }; }
11966 for ac_func in memmove
11968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969 echo "$as_me:$LINENO: checking for $ac_func" >&5
11970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11971 if eval "test \"\${$as_ac_var+set}\" = set"; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974 if test x$gcc_no_link = xyes; then
11975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11977 { (exit 1); exit 1; }; }
11979 cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h. */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11987 #define $ac_func innocuous_$ac_func
11989 /* System header to define __stub macros and hopefully few prototypes,
11990 which can conflict with char $ac_func (); below.
11991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11992 <limits.h> exists even on freestanding compilers. */
11994 #ifdef __STDC__
11995 # include <limits.h>
11996 #else
11997 # include <assert.h>
11998 #endif
12000 #undef $ac_func
12002 /* Override any gcc2 internal prototype to avoid an error. */
12003 #ifdef __cplusplus
12004 extern "C"
12006 #endif
12007 /* We use char because int might match the return type of a gcc2
12008 builtin and then its argument prototype would still apply. */
12009 char $ac_func ();
12010 /* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12014 choke me
12015 #else
12016 char (*f) () = $ac_func;
12017 #endif
12018 #ifdef __cplusplus
12020 #endif
12023 main ()
12025 return f != $ac_func;
12027 return 0;
12029 _ACEOF
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032 (eval $ac_link) 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest$ac_exeext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 eval "$as_ac_var=yes"
12052 else
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 eval "$as_ac_var=no"
12058 rm -f conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12063 if test `eval echo '${'$as_ac_var'}'` = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12066 _ACEOF
12069 done
12072 # We require memcpy.
12073 memcpy_found=no
12075 for ac_func in memcpy
12077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12078 echo "$as_me:$LINENO: checking for $ac_func" >&5
12079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12080 if eval "test \"\${$as_ac_var+set}\" = set"; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083 if test x$gcc_no_link = xyes; then
12084 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12085 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12086 { (exit 1); exit 1; }; }
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12096 #define $ac_func innocuous_$ac_func
12098 /* System header to define __stub macros and hopefully few prototypes,
12099 which can conflict with char $ac_func (); below.
12100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12101 <limits.h> exists even on freestanding compilers. */
12103 #ifdef __STDC__
12104 # include <limits.h>
12105 #else
12106 # include <assert.h>
12107 #endif
12109 #undef $ac_func
12111 /* Override any gcc2 internal prototype to avoid an error. */
12112 #ifdef __cplusplus
12113 extern "C"
12115 #endif
12116 /* We use char because int might match the return type of a gcc2
12117 builtin and then its argument prototype would still apply. */
12118 char $ac_func ();
12119 /* The GNU C library defines this for functions which it implements
12120 to always fail with ENOSYS. Some functions are actually named
12121 something starting with __ and the normal name is an alias. */
12122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12123 choke me
12124 #else
12125 char (*f) () = $ac_func;
12126 #endif
12127 #ifdef __cplusplus
12129 #endif
12132 main ()
12134 return f != $ac_func;
12136 return 0;
12138 _ACEOF
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12141 (eval $ac_link) 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; } &&
12154 { ac_try='test -s conftest$ac_exeext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 eval "$as_ac_var=yes"
12161 else
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 eval "$as_ac_var=no"
12167 rm -f conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12172 if test `eval echo '${'$as_ac_var'}'` = yes; then
12173 cat >>confdefs.h <<_ACEOF
12174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12175 _ACEOF
12176 memcpy_found=yes
12178 done
12180 if test "$memcpy_found" = no; then
12181 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12182 echo "$as_me: error: memcpy is required" >&2;}
12183 { (exit 1); exit 1; }; }
12186 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12187 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191 ac_check_lib_save_LIBS=$LIBS
12192 LIBS="-ldl $LIBS"
12193 if test x$gcc_no_link = xyes; then
12194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12196 { (exit 1); exit 1; }; }
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12205 /* Override any gcc2 internal prototype to avoid an error. */
12206 #ifdef __cplusplus
12207 extern "C"
12208 #endif
12209 /* We use char because int might match the return type of a gcc2
12210 builtin and then its argument prototype would still apply. */
12211 char dlopen ();
12213 main ()
12215 dlopen ();
12217 return 0;
12219 _ACEOF
12220 rm -f conftest.$ac_objext conftest$ac_exeext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222 (eval $ac_link) 2>conftest.er1
12223 ac_status=$?
12224 grep -v '^ *+' conftest.er1 >conftest.err
12225 rm -f conftest.er1
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_cv_lib_dl_dlopen=yes
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_lib_dl_dlopen=no
12248 rm -f conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12252 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12253 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12254 if test $ac_cv_lib_dl_dlopen = yes; then
12257 cat >>confdefs.h <<\_ACEOF
12258 #define HAVE_DLOPEN 1
12259 _ACEOF
12264 # Some library-finding code we stole from Tcl.
12265 #--------------------------------------------------------------------
12266 # Check for the existence of the -lsocket and -lnsl libraries.
12267 # The order here is important, so that they end up in the right
12268 # order in the command line generated by make. Here are some
12269 # special considerations:
12270 # 1. Use "connect" and "accept" to check for -lsocket, and
12271 # "gethostbyname" to check for -lnsl.
12272 # 2. Use each function name only once: can't redo a check because
12273 # autoconf caches the results of the last check and won't redo it.
12274 # 3. Use -lnsl and -lsocket only if they supply procedures that
12275 # aren't already present in the normal libraries. This is because
12276 # IRIX 5.2 has libraries, but they aren't needed and they're
12277 # bogus: they goof up name resolution if used.
12278 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12279 # To get around this problem, check for both libraries together
12280 # if -lsocket doesn't work by itself.
12281 #--------------------------------------------------------------------
12283 echo "$as_me:$LINENO: checking for socket libraries" >&5
12284 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12285 if test "${gcj_cv_lib_sockets+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 gcj_cv_lib_sockets=
12289 gcj_checkBoth=0
12290 unset ac_cv_func_connect
12291 echo "$as_me:$LINENO: checking for connect" >&5
12292 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12293 if test "${ac_cv_func_connect+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296 if test x$gcc_no_link = xyes; then
12297 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12299 { (exit 1); exit 1; }; }
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h. */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12309 #define connect innocuous_connect
12311 /* System header to define __stub macros and hopefully few prototypes,
12312 which can conflict with char connect (); below.
12313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12314 <limits.h> exists even on freestanding compilers. */
12316 #ifdef __STDC__
12317 # include <limits.h>
12318 #else
12319 # include <assert.h>
12320 #endif
12322 #undef connect
12324 /* Override any gcc2 internal prototype to avoid an error. */
12325 #ifdef __cplusplus
12326 extern "C"
12328 #endif
12329 /* We use char because int might match the return type of a gcc2
12330 builtin and then its argument prototype would still apply. */
12331 char connect ();
12332 /* The GNU C library defines this for functions which it implements
12333 to always fail with ENOSYS. Some functions are actually named
12334 something starting with __ and the normal name is an alias. */
12335 #if defined (__stub_connect) || defined (__stub___connect)
12336 choke me
12337 #else
12338 char (*f) () = connect;
12339 #endif
12340 #ifdef __cplusplus
12342 #endif
12345 main ()
12347 return f != connect;
12349 return 0;
12351 _ACEOF
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest$ac_exeext'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_cv_func_connect=yes
12374 else
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_cv_func_connect=no
12380 rm -f conftest.err conftest.$ac_objext \
12381 conftest$ac_exeext conftest.$ac_ext
12383 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12384 echo "${ECHO_T}$ac_cv_func_connect" >&6
12385 if test $ac_cv_func_connect = yes; then
12386 gcj_checkSocket=0
12387 else
12388 gcj_checkSocket=1
12391 if test "$gcj_checkSocket" = 1; then
12392 unset ac_cv_func_connect
12393 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12394 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12395 if test "${ac_cv_lib_socket_main+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398 ac_check_lib_save_LIBS=$LIBS
12399 LIBS="-lsocket $LIBS"
12400 if test x$gcc_no_link = xyes; then
12401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12403 { (exit 1); exit 1; }; }
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h. */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12414 main ()
12416 main ();
12418 return 0;
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423 (eval $ac_link) 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest$ac_exeext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_lib_socket_main=yes
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_lib_socket_main=no
12449 rm -f conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12451 LIBS=$ac_check_lib_save_LIBS
12453 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12454 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12455 if test $ac_cv_lib_socket_main = yes; then
12456 gcj_cv_lib_sockets="-lsocket"
12457 else
12458 gcj_checkBoth=1
12462 if test "$gcj_checkBoth" = 1; then
12463 gcj_oldLibs=$LIBS
12464 LIBS="$LIBS -lsocket -lnsl"
12465 unset ac_cv_func_accept
12466 echo "$as_me:$LINENO: checking for accept" >&5
12467 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12468 if test "${ac_cv_func_accept+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471 if test x$gcc_no_link = xyes; then
12472 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12473 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12474 { (exit 1); exit 1; }; }
12476 cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h. */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12484 #define accept innocuous_accept
12486 /* System header to define __stub macros and hopefully few prototypes,
12487 which can conflict with char accept (); below.
12488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12489 <limits.h> exists even on freestanding compilers. */
12491 #ifdef __STDC__
12492 # include <limits.h>
12493 #else
12494 # include <assert.h>
12495 #endif
12497 #undef accept
12499 /* Override any gcc2 internal prototype to avoid an error. */
12500 #ifdef __cplusplus
12501 extern "C"
12503 #endif
12504 /* We use char because int might match the return type of a gcc2
12505 builtin and then its argument prototype would still apply. */
12506 char accept ();
12507 /* The GNU C library defines this for functions which it implements
12508 to always fail with ENOSYS. Some functions are actually named
12509 something starting with __ and the normal name is an alias. */
12510 #if defined (__stub_accept) || defined (__stub___accept)
12511 choke me
12512 #else
12513 char (*f) () = accept;
12514 #endif
12515 #ifdef __cplusplus
12517 #endif
12520 main ()
12522 return f != accept;
12524 return 0;
12526 _ACEOF
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12529 (eval $ac_link) 2>conftest.er1
12530 ac_status=$?
12531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest$ac_exeext'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 ac_cv_func_accept=yes
12549 else
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 ac_cv_func_accept=no
12555 rm -f conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12558 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12559 echo "${ECHO_T}$ac_cv_func_accept" >&6
12560 if test $ac_cv_func_accept = yes; then
12561 gcj_checkNsl=0
12562 gcj_cv_lib_sockets="-lsocket -lnsl"
12565 unset ac_cv_func_accept
12566 LIBS=$gcj_oldLibs
12568 unset ac_cv_func_gethostbyname
12569 gcj_oldLibs=$LIBS
12570 LIBS="$LIBS $gcj_cv_lib_sockets"
12571 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12572 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12573 if test "${ac_cv_func_gethostbyname+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576 if test x$gcc_no_link = xyes; then
12577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12579 { (exit 1); exit 1; }; }
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h. */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12589 #define gethostbyname innocuous_gethostbyname
12591 /* System header to define __stub macros and hopefully few prototypes,
12592 which can conflict with char gethostbyname (); below.
12593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12594 <limits.h> exists even on freestanding compilers. */
12596 #ifdef __STDC__
12597 # include <limits.h>
12598 #else
12599 # include <assert.h>
12600 #endif
12602 #undef gethostbyname
12604 /* Override any gcc2 internal prototype to avoid an error. */
12605 #ifdef __cplusplus
12606 extern "C"
12608 #endif
12609 /* We use char because int might match the return type of a gcc2
12610 builtin and then its argument prototype would still apply. */
12611 char gethostbyname ();
12612 /* The GNU C library defines this for functions which it implements
12613 to always fail with ENOSYS. Some functions are actually named
12614 something starting with __ and the normal name is an alias. */
12615 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12616 choke me
12617 #else
12618 char (*f) () = gethostbyname;
12619 #endif
12620 #ifdef __cplusplus
12622 #endif
12625 main ()
12627 return f != gethostbyname;
12629 return 0;
12631 _ACEOF
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_func_gethostbyname=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_cv_func_gethostbyname=no
12660 rm -f conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12663 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12664 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12665 if test $ac_cv_func_gethostbyname = yes; then
12667 else
12668 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12669 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12670 if test "${ac_cv_lib_nsl_main+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 ac_check_lib_save_LIBS=$LIBS
12674 LIBS="-lnsl $LIBS"
12675 if test x$gcc_no_link = xyes; then
12676 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12677 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12678 { (exit 1); exit 1; }; }
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h. */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12689 main ()
12691 main ();
12693 return 0;
12695 _ACEOF
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12698 (eval $ac_link) 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_lib_nsl_main=yes
12718 else
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_cv_lib_nsl_main=no
12724 rm -f conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_check_lib_save_LIBS
12728 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12729 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12730 if test $ac_cv_lib_nsl_main = yes; then
12731 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12736 unset ac_cv_func_gethostbyname
12737 LIBS=$gcj_oldLIBS
12740 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12741 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12742 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12744 if test "$with_system_zlib" = yes; then
12745 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12746 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12747 if test "${ac_cv_lib_z_deflate+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lz $LIBS"
12752 if test x$gcc_no_link = xyes; then
12753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12754 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12755 { (exit 1); exit 1; }; }
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any gcc2 internal prototype to avoid an error. */
12765 #ifdef __cplusplus
12766 extern "C"
12767 #endif
12768 /* We use char because int might match the return type of a gcc2
12769 builtin and then its argument prototype would still apply. */
12770 char deflate ();
12772 main ()
12774 deflate ();
12776 return 0;
12778 _ACEOF
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12781 (eval $ac_link) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest$ac_exeext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_cv_lib_z_deflate=yes
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805 ac_cv_lib_z_deflate=no
12807 rm -f conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12811 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12812 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12813 if test $ac_cv_lib_z_deflate = yes; then
12814 ZLIBSPEC=-lz
12815 else
12816 ZLIBSPEC=
12821 # Test for Gtk stuff, if asked for.
12822 if test "$use_gtk_awt" = yes; then
12824 succeeded=no
12826 if test -z "$PKG_CONFIG"; then
12827 # Extract the first word of "pkg-config", so it can be a program name with args.
12828 set dummy pkg-config; ac_word=$2
12829 echo "$as_me:$LINENO: checking for $ac_word" >&5
12830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12831 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 case $PKG_CONFIG in
12835 [\\/]* | ?:[\\/]*)
12836 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12846 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12850 done
12851 done
12853 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12855 esac
12857 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12859 if test -n "$PKG_CONFIG"; then
12860 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12861 echo "${ECHO_T}$PKG_CONFIG" >&6
12862 else
12863 echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6
12869 if test "$PKG_CONFIG" = "no" ; then
12870 echo "*** The pkg-config script could not be found. Make sure it is"
12871 echo "*** in your path, or set the PKG_CONFIG environment variable"
12872 echo "*** to the full path to pkg-config."
12873 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12874 else
12875 PKG_CONFIG_MIN_VERSION=0.9.0
12876 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12877 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12878 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12880 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12881 echo "$as_me:$LINENO: result: yes" >&5
12882 echo "${ECHO_T}yes" >&6
12883 succeeded=yes
12885 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12886 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12887 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12888 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12889 echo "${ECHO_T}$GTK_CFLAGS" >&6
12891 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12892 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12893 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12894 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12895 echo "${ECHO_T}$GTK_LIBS" >&6
12896 else
12897 GTK_CFLAGS=""
12898 GTK_LIBS=""
12899 ## If we have a custom action on failure, don't print errors, but
12900 ## do set a variable so people can do so.
12901 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12902 echo $GTK_PKG_ERRORS
12907 else
12908 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12909 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12913 if test $succeeded = yes; then
12915 else
12916 { { 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
12917 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;}
12918 { (exit 1); exit 1; }; }
12925 succeeded=no
12927 if test -z "$PKG_CONFIG"; then
12928 # Extract the first word of "pkg-config", so it can be a program name with args.
12929 set dummy pkg-config; ac_word=$2
12930 echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 case $PKG_CONFIG in
12936 [\\/]* | ?:[\\/]*)
12937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12951 done
12952 done
12954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12956 esac
12958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12960 if test -n "$PKG_CONFIG"; then
12961 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12962 echo "${ECHO_T}$PKG_CONFIG" >&6
12963 else
12964 echo "$as_me:$LINENO: result: no" >&5
12965 echo "${ECHO_T}no" >&6
12970 if test "$PKG_CONFIG" = "no" ; then
12971 echo "*** The pkg-config script could not be found. Make sure it is"
12972 echo "*** in your path, or set the PKG_CONFIG environment variable"
12973 echo "*** to the full path to pkg-config."
12974 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12975 else
12976 PKG_CONFIG_MIN_VERSION=0.9.0
12977 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12978 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12979 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12981 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12982 echo "$as_me:$LINENO: result: yes" >&5
12983 echo "${ECHO_T}yes" >&6
12984 succeeded=yes
12986 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12987 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12988 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12989 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12990 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12992 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12993 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12994 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12995 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12996 echo "${ECHO_T}$GLIB_LIBS" >&6
12997 else
12998 GLIB_CFLAGS=""
12999 GLIB_LIBS=""
13000 ## If we have a custom action on failure, don't print errors, but
13001 ## do set a variable so people can do so.
13002 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13003 echo $GLIB_PKG_ERRORS
13008 else
13009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13014 if test $succeeded = yes; then
13016 else
13017 { { 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
13018 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;}
13019 { (exit 1); exit 1; }; }
13026 succeeded=no
13028 if test -z "$PKG_CONFIG"; then
13029 # Extract the first word of "pkg-config", so it can be a program name with args.
13030 set dummy pkg-config; ac_word=$2
13031 echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036 case $PKG_CONFIG in
13037 [\\/]* | ?:[\\/]*)
13038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13048 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13050 break 2
13052 done
13053 done
13055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13057 esac
13059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13061 if test -n "$PKG_CONFIG"; then
13062 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13063 echo "${ECHO_T}$PKG_CONFIG" >&6
13064 else
13065 echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6
13071 if test "$PKG_CONFIG" = "no" ; then
13072 echo "*** The pkg-config script could not be found. Make sure it is"
13073 echo "*** in your path, or set the PKG_CONFIG environment variable"
13074 echo "*** to the full path to pkg-config."
13075 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13076 else
13077 PKG_CONFIG_MIN_VERSION=0.9.0
13078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13079 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13080 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13082 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13083 echo "$as_me:$LINENO: result: yes" >&5
13084 echo "${ECHO_T}yes" >&6
13085 succeeded=yes
13087 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13088 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13089 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13090 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13091 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13093 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13094 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13095 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13096 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13097 echo "${ECHO_T}$LIBART_LIBS" >&6
13098 else
13099 LIBART_CFLAGS=""
13100 LIBART_LIBS=""
13101 ## If we have a custom action on failure, don't print errors, but
13102 ## do set a variable so people can do so.
13103 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13104 echo $LIBART_PKG_ERRORS
13109 else
13110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13115 if test $succeeded = yes; then
13117 else
13118 { { 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
13119 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;}
13120 { (exit 1); exit 1; }; }
13127 # On Solaris, and maybe other architectures, the Boehm collector
13128 # requires -ldl.
13129 if test "$GC" = boehm; then
13130 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13131 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13132 if test "${ac_cv_lib_dl_main+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135 ac_check_lib_save_LIBS=$LIBS
13136 LIBS="-ldl $LIBS"
13137 if test x$gcc_no_link = xyes; then
13138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13140 { (exit 1); exit 1; }; }
13142 cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h. */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13151 main ()
13153 main ();
13155 return 0;
13157 _ACEOF
13158 rm -f conftest.$ac_objext conftest$ac_exeext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13160 (eval $ac_link) 2>conftest.er1
13161 ac_status=$?
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
13167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; } &&
13173 { ac_try='test -s conftest$ac_exeext'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 ac_cv_lib_dl_main=yes
13180 else
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13184 ac_cv_lib_dl_main=no
13186 rm -f conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13190 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13191 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13192 if test $ac_cv_lib_dl_main = yes; then
13193 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13200 if test "$supply_backtrace" = yes; then
13201 SUPPLY_BACKTRACE_TRUE=
13202 SUPPLY_BACKTRACE_FALSE='#'
13203 else
13204 SUPPLY_BACKTRACE_TRUE='#'
13205 SUPPLY_BACKTRACE_FALSE=
13209 if test -z "${with_multisubdir}"; then
13210 builddotdot=.
13211 else
13212 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13215 NATIVE=yes
13217 # Which gcj do we use?
13218 which_gcj=default
13219 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13220 if test -n "${with_cross_host}"; then
13221 # We are being configured with a cross compiler. We can't
13222 # use ac_exeext, because that is for the target platform.
13223 NATIVE=no
13224 cross_host_exeext=
13225 case "${with_cross_host}" in
13226 *mingw* | *cygwin*)
13227 cross_host_exeext=.exe
13229 esac
13230 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13231 if test x"$build_noncanonical" = x"$with_cross_host"; then
13232 # Ordinary cross (host!=target and host=build)
13233 which_gcj=built
13234 else
13235 # Canadian cross (host!=target and host!=build)
13236 which_gcj=cross
13238 else
13239 which_gcj=cross
13241 else
13242 # We are being configured with a native or crossed-native compiler
13243 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13244 if test x"$build" = x"$host"; then
13245 # True native build (host=target and host=build)
13246 which_gcj=built
13247 else
13248 # Crossed-native build (host=target and host!=build)
13249 which_gcj=cross
13251 else
13252 which_gcj=path
13255 case "${which_gcj}" in
13256 built)
13257 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13258 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13259 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13261 cross)
13262 if test "x${with_newlib}" = "xyes"; then
13263 # FIXME (comment): Why is this needed?
13264 GCC_UNWIND_INCLUDE=
13265 GCJ="${target_noncanonical}-gcj"
13266 else
13267 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13269 ZIP=jar
13270 GCJH='$(target_noncanonical)-gcjh'
13272 path)
13273 GCJ="gcj -B`${PWDCMD-pwd}`/"
13274 ## In this case, gcj is found outside the build tree. However, zip is
13275 ## found in the build tree.
13276 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13277 GCJH=gcjh
13279 esac
13284 # Create it, so that compile/link tests don't fail
13285 test -f libgcj.spec || touch libgcj.spec
13287 # We must search the source tree for java.lang, since we still don't
13288 # have libgcj.jar nor java/lang/*.class
13289 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13290 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13292 # Since some classes depend on this one, we need its source available
13293 # before we can do any GCJ compilation test :-(
13294 if test ! -f gnu/classpath/Configuration.java; then
13295 test -d gnu || mkdir gnu
13296 test -d gnu/classpath || mkdir gnu/classpath
13297 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13298 -e 's,@TOOLKIT@,$TOOLKIT,' \
13299 < $srcdir/gnu/classpath/Configuration.java.in \
13300 > gnu/classpath/Configuration.java
13301 # We do not want to redirect the output of the grep below to /dev/null,
13302 # but we add /dev/null to the input list so that grep will print the
13303 # filename of Configuration.java in case it finds any matches.
13304 if grep @ gnu/classpath/Configuration.java /dev/null; then
13305 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13306 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13307 { (exit 1); exit 1; }; }
13311 if test -n "$ac_tool_prefix"; then
13312 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13313 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13314 echo "$as_me:$LINENO: checking for $ac_word" >&5
13315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13316 if test "${ac_cv_prog_GCJ+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319 if test -n "$GCJ"; then
13320 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13321 else
13322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323 for as_dir in $PATH
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
13328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13329 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13333 done
13334 done
13338 GCJ=$ac_cv_prog_GCJ
13339 if test -n "$GCJ"; then
13340 echo "$as_me:$LINENO: result: $GCJ" >&5
13341 echo "${ECHO_T}$GCJ" >&6
13342 else
13343 echo "$as_me:$LINENO: result: no" >&5
13344 echo "${ECHO_T}no" >&6
13348 if test -z "$ac_cv_prog_GCJ"; then
13349 ac_ct_GCJ=$GCJ
13350 # Extract the first word of "gcj", so it can be a program name with args.
13351 set dummy gcj; ac_word=$2
13352 echo "$as_me:$LINENO: checking for $ac_word" >&5
13353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13354 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357 if test -n "$ac_ct_GCJ"; then
13358 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13359 else
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 for as_dir in $PATH
13363 IFS=$as_save_IFS
13364 test -z "$as_dir" && as_dir=.
13365 for ac_exec_ext in '' $ac_executable_extensions; do
13366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13367 ac_cv_prog_ac_ct_GCJ="gcj"
13368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13369 break 2
13371 done
13372 done
13374 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13377 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13378 if test -n "$ac_ct_GCJ"; then
13379 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13380 echo "${ECHO_T}$ac_ct_GCJ" >&6
13381 else
13382 echo "$as_me:$LINENO: result: no" >&5
13383 echo "${ECHO_T}no" >&6
13386 GCJ=$ac_ct_GCJ
13387 else
13388 GCJ="$ac_cv_prog_GCJ"
13391 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13396 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13398 echo "$as_me:$LINENO: checking size of void *" >&5
13399 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13400 if test "${ac_cv_sizeof_void_p+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13404 cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h. */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 #include "confdefs.h"
13411 #include <sys/types.h>
13415 main ()
13417 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13419 return 0;
13421 _ACEOF
13422 rm -f conftest.$ac_objext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13424 (eval $ac_compile) 2>conftest.er1
13425 ac_status=$?
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 ac_cv_sizeof_void_p=$ac_size
13444 else
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13450 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13451 done
13455 if test x$ac_cv_sizeof_void_p = x ; then
13456 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13457 echo "$as_me: error: cannot determine a size for void *" >&2;}
13458 { (exit 1); exit 1; }; }
13460 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13461 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13463 cat >>confdefs.h <<_ACEOF
13464 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13465 _ACEOF
13469 ZLIBS=
13470 SYS_ZLIBS=
13471 ZINCS=
13473 if test -z "$ZLIBSPEC"; then
13474 # Use zlib from the GCC tree.
13475 ZINCS='-I$(top_srcdir)/../zlib'
13476 ZLIBS=../zlib/libzgcj_convenience.la
13477 else
13478 # System's zlib.
13479 SYS_ZLIBS="$ZLIBSPEC"
13491 if test "$NATIVE" = yes; then
13492 NATIVE_TRUE=
13493 NATIVE_FALSE='#'
13494 else
13495 NATIVE_TRUE='#'
13496 NATIVE_FALSE=
13501 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13502 NEEDS_DATA_START_TRUE=
13503 NEEDS_DATA_START_FALSE='#'
13504 else
13505 NEEDS_DATA_START_TRUE='#'
13506 NEEDS_DATA_START_FALSE=
13511 # Process the option "--enable-version-specific-runtime-libs"
13512 # Calculate toolexeclibdir
13513 case ${version_specific_libs} in
13514 yes)
13515 # Need the gcc compiler version to know where to install libraries
13516 # and header files if --enable-version-specific-runtime-libs option
13517 # is selected.
13518 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
13519 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13520 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
13521 toolexeclibdir=$toolexecmainlibdir
13524 if test -n "$with_cross_host" &&
13525 test x"$with_cross_host" != x"no"; then
13526 # Install a library built with a cross compiler in tooldir, not libdir.
13527 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13528 toolexecmainlibdir='$(toolexecdir)/lib'
13529 else
13530 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13531 toolexecmainlibdir='$(libdir)'
13533 multi_os_directory=`$CC -print-multi-os-directory`
13534 case $multi_os_directory in
13535 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13536 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13537 esac
13539 esac
13544 # Determine gcj version number.
13545 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13546 GCJVERSION=$gcjversion
13549 cat >>confdefs.h <<_ACEOF
13550 #define GCJVERSION "$GCJVERSION"
13551 _ACEOF
13554 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13555 # On that system, sys/ioctl.h will not include sys/filio.h unless
13556 # BSD_COMP is defined; just including sys/filio.h is simpler.
13576 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
13578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13580 echo "$as_me:$LINENO: checking for $ac_header" >&5
13581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13587 else
13588 # Is the header compilable?
13589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h. */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 $ac_includes_default
13598 #include <$ac_header>
13599 _ACEOF
13600 rm -f conftest.$ac_objext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13602 (eval $ac_compile) 2>conftest.er1
13603 ac_status=$?
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } &&
13609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611 (eval $ac_try) 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; } &&
13615 { ac_try='test -s conftest.$ac_objext'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 ac_header_compiler=yes
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ac_header_compiler=no
13628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13630 echo "${ECHO_T}$ac_header_compiler" >&6
13632 # Is the header present?
13633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 #include <$ac_header>
13642 _ACEOF
13643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } >/dev/null; then
13651 if test -s conftest.err; then
13652 ac_cpp_err=$ac_c_preproc_warn_flag
13653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13654 else
13655 ac_cpp_err=
13657 else
13658 ac_cpp_err=yes
13660 if test -z "$ac_cpp_err"; then
13661 ac_header_preproc=yes
13662 else
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13666 ac_header_preproc=no
13668 rm -f conftest.err conftest.$ac_ext
13669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13670 echo "${ECHO_T}$ac_header_preproc" >&6
13672 # So? What about this header?
13673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13674 yes:no: )
13675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13679 ac_header_preproc=yes
13681 no:yes:* )
13682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13695 cat <<\_ASBOX
13696 ## ---------------------------------- ##
13697 ## Report this to the libjava lists. ##
13698 ## ---------------------------------- ##
13699 _ASBOX
13701 sed "s/^/$as_me: WARNING: /" >&2
13703 esac
13704 echo "$as_me:$LINENO: checking for $ac_header" >&5
13705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709 eval "$as_ac_Header=\$ac_header_preproc"
13711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13716 cat >>confdefs.h <<_ACEOF
13717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13718 _ACEOF
13722 done
13724 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13725 # for now. If you change this, you also must update natFile.cc.
13727 for ac_header in dirent.h
13729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13731 echo "$as_me:$LINENO: checking for $ac_header" >&5
13732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13738 else
13739 # Is the header compilable?
13740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13742 cat >conftest.$ac_ext <<_ACEOF
13743 /* confdefs.h. */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 $ac_includes_default
13749 #include <$ac_header>
13750 _ACEOF
13751 rm -f conftest.$ac_objext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753 (eval $ac_compile) 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; } &&
13766 { ac_try='test -s conftest.$ac_objext'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_header_compiler=yes
13773 else
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 ac_header_compiler=no
13779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6
13783 # Is the header present?
13784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h. */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <$ac_header>
13793 _ACEOF
13794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13796 ac_status=$?
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } >/dev/null; then
13802 if test -s conftest.err; then
13803 ac_cpp_err=$ac_c_preproc_warn_flag
13804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13805 else
13806 ac_cpp_err=
13808 else
13809 ac_cpp_err=yes
13811 if test -z "$ac_cpp_err"; then
13812 ac_header_preproc=yes
13813 else
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 ac_header_preproc=no
13819 rm -f conftest.err conftest.$ac_ext
13820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13821 echo "${ECHO_T}$ac_header_preproc" >&6
13823 # So? What about this header?
13824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13825 yes:no: )
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13830 ac_header_preproc=yes
13832 no:yes:* )
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13846 cat <<\_ASBOX
13847 ## ---------------------------------- ##
13848 ## Report this to the libjava lists. ##
13849 ## ---------------------------------- ##
13850 _ASBOX
13852 sed "s/^/$as_me: WARNING: /" >&2
13854 esac
13855 echo "$as_me:$LINENO: checking for $ac_header" >&5
13856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 eval "$as_ac_Header=\$ac_header_preproc"
13862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13867 cat >>confdefs.h <<_ACEOF
13868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13869 _ACEOF
13873 done
13876 for ac_header in inttypes.h
13878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13880 echo "$as_me:$LINENO: checking for $ac_header" >&5
13881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13887 else
13888 # Is the header compilable?
13889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13891 cat >conftest.$ac_ext <<_ACEOF
13892 /* confdefs.h. */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 $ac_includes_default
13898 #include <$ac_header>
13899 _ACEOF
13900 rm -f conftest.$ac_objext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902 (eval $ac_compile) 2>conftest.er1
13903 ac_status=$?
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; } &&
13915 { ac_try='test -s conftest.$ac_objext'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; }; then
13921 ac_header_compiler=yes
13922 else
13923 echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13926 ac_header_compiler=no
13928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13930 echo "${ECHO_T}$ac_header_compiler" >&6
13932 # Is the header present?
13933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h. */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 #include <$ac_header>
13942 _ACEOF
13943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13945 ac_status=$?
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } >/dev/null; then
13951 if test -s conftest.err; then
13952 ac_cpp_err=$ac_c_preproc_warn_flag
13953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13954 else
13955 ac_cpp_err=
13957 else
13958 ac_cpp_err=yes
13960 if test -z "$ac_cpp_err"; then
13961 ac_header_preproc=yes
13962 else
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 ac_header_preproc=no
13968 rm -f conftest.err conftest.$ac_ext
13969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13970 echo "${ECHO_T}$ac_header_preproc" >&6
13972 # So? What about this header?
13973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13974 yes:no: )
13975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13979 ac_header_preproc=yes
13981 no:yes:* )
13982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13995 cat <<\_ASBOX
13996 ## ---------------------------------- ##
13997 ## Report this to the libjava lists. ##
13998 ## ---------------------------------- ##
13999 _ASBOX
14001 sed "s/^/$as_me: WARNING: /" >&2
14003 esac
14004 echo "$as_me:$LINENO: checking for $ac_header" >&5
14005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 else
14009 eval "$as_ac_Header=\$ac_header_preproc"
14011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14016 cat >>confdefs.h <<_ACEOF
14017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14018 _ACEOF
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_INTTYPES_H 1
14023 _ACEOF
14026 cat >>confdefs.h <<\_ACEOF
14027 #define JV_HAVE_INTTYPES_H 1
14028 _ACEOF
14033 done
14035 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14036 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14037 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h. */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 #include <sys/types.h>
14047 #include <sys/wait.h>
14048 #ifndef WEXITSTATUS
14049 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14050 #endif
14051 #ifndef WIFEXITED
14052 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14053 #endif
14056 main ()
14058 int s;
14059 wait (&s);
14060 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14062 return 0;
14064 _ACEOF
14065 rm -f conftest.$ac_objext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14067 (eval $ac_compile) 2>conftest.er1
14068 ac_status=$?
14069 grep -v '^ *+' conftest.er1 >conftest.err
14070 rm -f conftest.er1
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } &&
14074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; } &&
14080 { ac_try='test -s conftest.$ac_objext'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 ac_cv_header_sys_wait_h=yes
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_cv_header_sys_wait_h=no
14093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14095 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14096 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14097 if test $ac_cv_header_sys_wait_h = yes; then
14099 cat >>confdefs.h <<\_ACEOF
14100 #define HAVE_SYS_WAIT_H 1
14101 _ACEOF
14106 echo "$as_me:$LINENO: checking for ssize_t" >&5
14107 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14108 if test "${ac_cv_type_ssize_t+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h. */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 $ac_includes_default
14119 main ()
14121 if ((ssize_t *) 0)
14122 return 0;
14123 if (sizeof (ssize_t))
14124 return 0;
14126 return 0;
14128 _ACEOF
14129 rm -f conftest.$ac_objext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14131 (eval $ac_compile) 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest.$ac_objext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_type_ssize_t=yes
14151 else
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_cv_type_ssize_t=no
14157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14159 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14160 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14161 if test $ac_cv_type_ssize_t = yes; then
14163 else
14165 cat >>confdefs.h <<_ACEOF
14166 #define ssize_t int
14167 _ACEOF
14172 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14173 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14174 cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h. */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 #include <sys/types.h>
14181 #if STDC_HEADERS
14182 #include <stdlib.h>
14183 #include <stddef.h>
14184 #endif
14185 #if HAVE_NETINET_IN_H
14186 #include <netinet/in.h>
14187 #endif
14189 main ()
14191 in_addr_t foo;
14193 return 0;
14195 _ACEOF
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198 (eval $ac_compile) 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest.$ac_objext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14218 cat >>confdefs.h <<\_ACEOF
14219 #define HAVE_IN_ADDR_T 1
14220 _ACEOF
14222 echo "$as_me:$LINENO: result: yes" >&5
14223 echo "${ECHO_T}yes" >&6
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 echo "$as_me:$LINENO: result: no" >&5
14229 echo "${ECHO_T}no" >&6
14231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14233 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14234 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14235 cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h. */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 #include <netinet/in.h>
14243 main ()
14245 struct ip_mreq mreq;
14247 return 0;
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>conftest.er1
14253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest.$ac_objext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14272 cat >>confdefs.h <<\_ACEOF
14273 #define HAVE_STRUCT_IP_MREQ 1
14274 _ACEOF
14276 echo "$as_me:$LINENO: result: yes" >&5
14277 echo "${ECHO_T}yes" >&6
14278 else
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 echo "$as_me:$LINENO: result: no" >&5
14283 echo "${ECHO_T}no" >&6
14285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14287 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14288 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h. */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 #include <netinet/in.h>
14297 main ()
14299 struct ipv6_mreq mreq6;
14301 return 0;
14303 _ACEOF
14304 rm -f conftest.$ac_objext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>conftest.er1
14307 ac_status=$?
14308 grep -v '^ *+' conftest.er1 >conftest.err
14309 rm -f conftest.er1
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
14313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest.$ac_objext'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14326 cat >>confdefs.h <<\_ACEOF
14327 #define HAVE_STRUCT_IPV6_MREQ 1
14328 _ACEOF
14330 echo "$as_me:$LINENO: result: yes" >&5
14331 echo "${ECHO_T}yes" >&6
14332 else
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 echo "$as_me:$LINENO: result: no" >&5
14337 echo "${ECHO_T}no" >&6
14339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14341 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14342 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14343 cat >conftest.$ac_ext <<_ACEOF
14344 /* confdefs.h. */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14349 #include <netinet/in.h>
14351 main ()
14353 struct sockaddr_in6 addr6;
14355 return 0;
14357 _ACEOF
14358 rm -f conftest.$ac_objext
14359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360 (eval $ac_compile) 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14370 ac_status=$?
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; } &&
14373 { ac_try='test -s conftest.$ac_objext'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14380 cat >>confdefs.h <<\_ACEOF
14381 #define HAVE_INET6 1
14382 _ACEOF
14384 echo "$as_me:$LINENO: result: yes" >&5
14385 echo "${ECHO_T}yes" >&6
14386 else
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14390 echo "$as_me:$LINENO: result: no" >&5
14391 echo "${ECHO_T}no" >&6
14393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14396 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h. */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 #define _POSIX_PII_SOCKET
14404 #include <sys/types.h>
14405 #include <sys/socket.h>
14407 main ()
14409 socklen_t x = 5;
14411 return 0;
14413 _ACEOF
14414 rm -f conftest.$ac_objext
14415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14416 (eval $ac_compile) 2>conftest.er1
14417 ac_status=$?
14418 grep -v '^ *+' conftest.er1 >conftest.err
14419 rm -f conftest.er1
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } &&
14423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14436 cat >>confdefs.h <<\_ACEOF
14437 #define HAVE_SOCKLEN_T 1
14438 _ACEOF
14440 echo "$as_me:$LINENO: result: yes" >&5
14441 echo "${ECHO_T}yes" >&6
14442 else
14443 echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14446 echo "$as_me:$LINENO: result: no" >&5
14447 echo "${ECHO_T}no" >&6
14449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14451 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14452 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h. */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 #include <time.h>
14461 main ()
14463 struct tm tim; tim.tm_gmtoff = 0;
14465 return 0;
14467 _ACEOF
14468 rm -f conftest.$ac_objext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470 (eval $ac_compile) 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14480 ac_status=$?
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } &&
14483 { ac_try='test -s conftest.$ac_objext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14490 cat >>confdefs.h <<\_ACEOF
14491 #define STRUCT_TM_HAS_GMTOFF 1
14492 _ACEOF
14494 echo "$as_me:$LINENO: result: yes" >&5
14495 echo "${ECHO_T}yes" >&6
14496 else
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 echo "$as_me:$LINENO: result: no" >&5
14501 echo "${ECHO_T}no" >&6
14502 echo "$as_me:$LINENO: checking for global timezone variable" >&5
14503 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <time.h>
14512 main ()
14514 void i(){long z2 = 2*timezone;}
14516 return 0;
14518 _ACEOF
14519 rm -f conftest.$ac_objext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14541 cat >>confdefs.h <<\_ACEOF
14542 #define HAVE_TIMEZONE 1
14543 _ACEOF
14545 echo "$as_me:$LINENO: result: yes" >&5
14546 echo "${ECHO_T}yes" >&6
14547 else
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 echo "$as_me:$LINENO: result: no" >&5
14552 echo "${ECHO_T}no" >&6
14553 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14554 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14555 cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h. */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 #include <time.h>
14563 main ()
14565 long z2 = _timezone;
14567 return 0;
14569 _ACEOF
14570 rm -f conftest.$ac_objext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14572 (eval $ac_compile) 2>conftest.er1
14573 ac_status=$?
14574 grep -v '^ *+' conftest.er1 >conftest.err
14575 rm -f conftest.er1
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; } &&
14585 { ac_try='test -s conftest.$ac_objext'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14592 cat >>confdefs.h <<\_ACEOF
14593 #define HAVE_UNDERSCORE_TIMEZONE 1
14594 _ACEOF
14596 echo "$as_me:$LINENO: result: yes" >&5
14597 echo "${ECHO_T}yes" >&6
14598 else
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 echo "$as_me:$LINENO: result: no" >&5
14603 echo "${ECHO_T}no" >&6
14605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14611 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14612 # for constant arguments. Useless!
14613 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14614 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14615 if test "${ac_cv_working_alloca_h+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618 if test x$gcc_no_link = xyes; then
14619 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14621 { (exit 1); exit 1; }; }
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 #include <alloca.h>
14631 main ()
14633 char *p = (char *) alloca (2 * sizeof (int));
14635 return 0;
14637 _ACEOF
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640 (eval $ac_link) 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_cv_working_alloca_h=yes
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14664 ac_cv_working_alloca_h=no
14666 rm -f conftest.err conftest.$ac_objext \
14667 conftest$ac_exeext conftest.$ac_ext
14669 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14670 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14671 if test $ac_cv_working_alloca_h = yes; then
14673 cat >>confdefs.h <<\_ACEOF
14674 #define HAVE_ALLOCA_H 1
14675 _ACEOF
14679 echo "$as_me:$LINENO: checking for alloca" >&5
14680 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14681 if test "${ac_cv_func_alloca_works+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 else
14684 if test x$gcc_no_link = xyes; then
14685 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14686 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14687 { (exit 1); exit 1; }; }
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 #ifdef __GNUC__
14696 # define alloca __builtin_alloca
14697 #else
14698 # ifdef _MSC_VER
14699 # include <malloc.h>
14700 # define alloca _alloca
14701 # else
14702 # if HAVE_ALLOCA_H
14703 # include <alloca.h>
14704 # else
14705 # ifdef _AIX
14706 #pragma alloca
14707 # else
14708 # ifndef alloca /* predefined by HP cc +Olibcalls */
14709 char *alloca ();
14710 # endif
14711 # endif
14712 # endif
14713 # endif
14714 #endif
14717 main ()
14719 char *p = (char *) alloca (1);
14721 return 0;
14723 _ACEOF
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14726 (eval $ac_link) 2>conftest.er1
14727 ac_status=$?
14728 grep -v '^ *+' conftest.er1 >conftest.err
14729 rm -f conftest.er1
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } &&
14733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14739 { ac_try='test -s conftest$ac_exeext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 ac_cv_func_alloca_works=yes
14746 else
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 ac_cv_func_alloca_works=no
14752 rm -f conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext conftest.$ac_ext
14755 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14756 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14758 if test $ac_cv_func_alloca_works = yes; then
14760 cat >>confdefs.h <<\_ACEOF
14761 #define HAVE_ALLOCA 1
14762 _ACEOF
14764 else
14765 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14766 # that cause trouble. Some versions do not even contain alloca or
14767 # contain a buggy version. If you still want to use their alloca,
14768 # use ar to extract alloca.o from them instead of compiling alloca.c.
14770 ALLOCA=alloca.$ac_objext
14772 cat >>confdefs.h <<\_ACEOF
14773 #define C_ALLOCA 1
14774 _ACEOF
14777 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14778 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14779 if test "${ac_cv_os_cray+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h. */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #if defined(CRAY) && ! defined(CRAY2)
14789 webecray
14790 #else
14791 wenotbecray
14792 #endif
14794 _ACEOF
14795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14796 $EGREP "webecray" >/dev/null 2>&1; then
14797 ac_cv_os_cray=yes
14798 else
14799 ac_cv_os_cray=no
14801 rm -f conftest*
14804 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14805 echo "${ECHO_T}$ac_cv_os_cray" >&6
14806 if test $ac_cv_os_cray = yes; then
14807 for ac_func in _getb67 GETB67 getb67; do
14808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14809 echo "$as_me:$LINENO: checking for $ac_func" >&5
14810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14811 if eval "test \"\${$as_ac_var+set}\" = set"; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814 if test x$gcc_no_link = xyes; then
14815 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14817 { (exit 1); exit 1; }; }
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h. */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14827 #define $ac_func innocuous_$ac_func
14829 /* System header to define __stub macros and hopefully few prototypes,
14830 which can conflict with char $ac_func (); below.
14831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14832 <limits.h> exists even on freestanding compilers. */
14834 #ifdef __STDC__
14835 # include <limits.h>
14836 #else
14837 # include <assert.h>
14838 #endif
14840 #undef $ac_func
14842 /* Override any gcc2 internal prototype to avoid an error. */
14843 #ifdef __cplusplus
14844 extern "C"
14846 #endif
14847 /* We use char because int might match the return type of a gcc2
14848 builtin and then its argument prototype would still apply. */
14849 char $ac_func ();
14850 /* The GNU C library defines this for functions which it implements
14851 to always fail with ENOSYS. Some functions are actually named
14852 something starting with __ and the normal name is an alias. */
14853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14854 choke me
14855 #else
14856 char (*f) () = $ac_func;
14857 #endif
14858 #ifdef __cplusplus
14860 #endif
14863 main ()
14865 return f != $ac_func;
14867 return 0;
14869 _ACEOF
14870 rm -f conftest.$ac_objext conftest$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } &&
14885 { ac_try='test -s conftest$ac_exeext'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 eval "$as_ac_var=yes"
14892 else
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14896 eval "$as_ac_var=no"
14898 rm -f conftest.err conftest.$ac_objext \
14899 conftest$ac_exeext conftest.$ac_ext
14901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14903 if test `eval echo '${'$as_ac_var'}'` = yes; then
14905 cat >>confdefs.h <<_ACEOF
14906 #define CRAY_STACKSEG_END $ac_func
14907 _ACEOF
14909 break
14912 done
14915 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14916 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14917 if test "${ac_cv_c_stack_direction+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920 if test "$cross_compiling" = yes; then
14921 ac_cv_c_stack_direction=0
14922 else
14923 cat >conftest.$ac_ext <<_ACEOF
14924 /* confdefs.h. */
14925 _ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14930 find_stack_direction ()
14932 static char *addr = 0;
14933 auto char dummy;
14934 if (addr == 0)
14936 addr = &dummy;
14937 return find_stack_direction ();
14939 else
14940 return (&dummy > addr) ? 1 : -1;
14944 main ()
14946 exit (find_stack_direction () < 0);
14948 _ACEOF
14949 rm -f conftest$ac_exeext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14951 (eval $ac_link) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_c_stack_direction=1
14961 else
14962 echo "$as_me: program exited with status $ac_status" >&5
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ( exit $ac_status )
14967 ac_cv_c_stack_direction=-1
14969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14972 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14973 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14975 cat >>confdefs.h <<_ACEOF
14976 #define STACK_DIRECTION $ac_cv_c_stack_direction
14977 _ACEOF
14982 if test x$gcc_no_link = xyes; then
14983 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14984 ac_cv_func_mmap_fixed_mapped=no
14987 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14990 for ac_header in stdlib.h unistd.h
14992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14994 echo "$as_me:$LINENO: checking for $ac_header" >&5
14995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15001 else
15002 # Is the header compilable?
15003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h. */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15011 $ac_includes_default
15012 #include <$ac_header>
15013 _ACEOF
15014 rm -f conftest.$ac_objext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15016 (eval $ac_compile) 2>conftest.er1
15017 ac_status=$?
15018 grep -v '^ *+' conftest.er1 >conftest.err
15019 rm -f conftest.er1
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; } &&
15029 { ac_try='test -s conftest.$ac_objext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 ac_header_compiler=yes
15036 else
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 ac_header_compiler=no
15042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15044 echo "${ECHO_T}$ac_header_compiler" >&6
15046 # Is the header present?
15047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15049 cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 #include <$ac_header>
15056 _ACEOF
15057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } >/dev/null; then
15065 if test -s conftest.err; then
15066 ac_cpp_err=$ac_c_preproc_warn_flag
15067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15068 else
15069 ac_cpp_err=
15071 else
15072 ac_cpp_err=yes
15074 if test -z "$ac_cpp_err"; then
15075 ac_header_preproc=yes
15076 else
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 ac_header_preproc=no
15082 rm -f conftest.err conftest.$ac_ext
15083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15084 echo "${ECHO_T}$ac_header_preproc" >&6
15086 # So? What about this header?
15087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15088 yes:no: )
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15093 ac_header_preproc=yes
15095 no:yes:* )
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15109 cat <<\_ASBOX
15110 ## ---------------------------------- ##
15111 ## Report this to the libjava lists. ##
15112 ## ---------------------------------- ##
15113 _ASBOX
15115 sed "s/^/$as_me: WARNING: /" >&2
15117 esac
15118 echo "$as_me:$LINENO: checking for $ac_header" >&5
15119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123 eval "$as_ac_Header=\$ac_header_preproc"
15125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15130 cat >>confdefs.h <<_ACEOF
15131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15132 _ACEOF
15136 done
15139 for ac_func in getpagesize
15141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15142 echo "$as_me:$LINENO: checking for $ac_func" >&5
15143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15144 if eval "test \"\${$as_ac_var+set}\" = set"; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147 if test x$gcc_no_link = xyes; then
15148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15150 { (exit 1); exit 1; }; }
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h. */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15160 #define $ac_func innocuous_$ac_func
15162 /* System header to define __stub macros and hopefully few prototypes,
15163 which can conflict with char $ac_func (); below.
15164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15165 <limits.h> exists even on freestanding compilers. */
15167 #ifdef __STDC__
15168 # include <limits.h>
15169 #else
15170 # include <assert.h>
15171 #endif
15173 #undef $ac_func
15175 /* Override any gcc2 internal prototype to avoid an error. */
15176 #ifdef __cplusplus
15177 extern "C"
15179 #endif
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15182 char $ac_func ();
15183 /* The GNU C library defines this for functions which it implements
15184 to always fail with ENOSYS. Some functions are actually named
15185 something starting with __ and the normal name is an alias. */
15186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15187 choke me
15188 #else
15189 char (*f) () = $ac_func;
15190 #endif
15191 #ifdef __cplusplus
15193 #endif
15196 main ()
15198 return f != $ac_func;
15200 return 0;
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15205 (eval $ac_link) 2>conftest.er1
15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest$ac_exeext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 eval "$as_ac_var=yes"
15225 else
15226 echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15229 eval "$as_ac_var=no"
15231 rm -f conftest.err conftest.$ac_objext \
15232 conftest$ac_exeext conftest.$ac_ext
15234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15236 if test `eval echo '${'$as_ac_var'}'` = yes; then
15237 cat >>confdefs.h <<_ACEOF
15238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15239 _ACEOF
15242 done
15244 echo "$as_me:$LINENO: checking for working mmap" >&5
15245 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15246 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249 if test "$cross_compiling" = yes; then
15250 ac_cv_func_mmap_fixed_mapped=no
15251 else
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h. */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 $ac_includes_default
15259 /* malloc might have been renamed as rpl_malloc. */
15260 #undef malloc
15262 /* Thanks to Mike Haertel and Jim Avera for this test.
15263 Here is a matrix of mmap possibilities:
15264 mmap private not fixed
15265 mmap private fixed at somewhere currently unmapped
15266 mmap private fixed at somewhere already mapped
15267 mmap shared not fixed
15268 mmap shared fixed at somewhere currently unmapped
15269 mmap shared fixed at somewhere already mapped
15270 For private mappings, we should verify that changes cannot be read()
15271 back from the file, nor mmap's back from the file at a different
15272 address. (There have been systems where private was not correctly
15273 implemented like the infamous i386 svr4.0, and systems where the
15274 VM page cache was not coherent with the file system buffer cache
15275 like early versions of FreeBSD and possibly contemporary NetBSD.)
15276 For shared mappings, we should conversely verify that changes get
15277 propagated back to all the places they're supposed to be.
15279 Grep wants private fixed already mapped.
15280 The main things grep needs to know about mmap are:
15281 * does it exist and is it safe to write into the mmap'd area
15282 * how to use it (BSD variants) */
15284 #include <fcntl.h>
15285 #include <sys/mman.h>
15287 #if !STDC_HEADERS && !HAVE_STDLIB_H
15288 char *malloc ();
15289 #endif
15291 /* This mess was copied from the GNU getpagesize.h. */
15292 #if !HAVE_GETPAGESIZE
15293 /* Assume that all systems that can run configure have sys/param.h. */
15294 # if !HAVE_SYS_PARAM_H
15295 # define HAVE_SYS_PARAM_H 1
15296 # endif
15298 # ifdef _SC_PAGESIZE
15299 # define getpagesize() sysconf(_SC_PAGESIZE)
15300 # else /* no _SC_PAGESIZE */
15301 # if HAVE_SYS_PARAM_H
15302 # include <sys/param.h>
15303 # ifdef EXEC_PAGESIZE
15304 # define getpagesize() EXEC_PAGESIZE
15305 # else /* no EXEC_PAGESIZE */
15306 # ifdef NBPG
15307 # define getpagesize() NBPG * CLSIZE
15308 # ifndef CLSIZE
15309 # define CLSIZE 1
15310 # endif /* no CLSIZE */
15311 # else /* no NBPG */
15312 # ifdef NBPC
15313 # define getpagesize() NBPC
15314 # else /* no NBPC */
15315 # ifdef PAGESIZE
15316 # define getpagesize() PAGESIZE
15317 # endif /* PAGESIZE */
15318 # endif /* no NBPC */
15319 # endif /* no NBPG */
15320 # endif /* no EXEC_PAGESIZE */
15321 # else /* no HAVE_SYS_PARAM_H */
15322 # define getpagesize() 8192 /* punt totally */
15323 # endif /* no HAVE_SYS_PARAM_H */
15324 # endif /* no _SC_PAGESIZE */
15326 #endif /* no HAVE_GETPAGESIZE */
15329 main ()
15331 char *data, *data2, *data3;
15332 int i, pagesize;
15333 int fd;
15335 pagesize = getpagesize ();
15337 /* First, make a file with some known garbage in it. */
15338 data = (char *) malloc (pagesize);
15339 if (!data)
15340 exit (1);
15341 for (i = 0; i < pagesize; ++i)
15342 *(data + i) = rand ();
15343 umask (0);
15344 fd = creat ("conftest.mmap", 0600);
15345 if (fd < 0)
15346 exit (1);
15347 if (write (fd, data, pagesize) != pagesize)
15348 exit (1);
15349 close (fd);
15351 /* Next, try to mmap the file at a fixed address which already has
15352 something else allocated at it. If we can, also make sure that
15353 we see the same garbage. */
15354 fd = open ("conftest.mmap", O_RDWR);
15355 if (fd < 0)
15356 exit (1);
15357 data2 = (char *) malloc (2 * pagesize);
15358 if (!data2)
15359 exit (1);
15360 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15361 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15362 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15363 exit (1);
15364 for (i = 0; i < pagesize; ++i)
15365 if (*(data + i) != *(data2 + i))
15366 exit (1);
15368 /* Finally, make sure that changes to the mapped area do not
15369 percolate back to the file as seen by read(). (This is a bug on
15370 some variants of i386 svr4.0.) */
15371 for (i = 0; i < pagesize; ++i)
15372 *(data2 + i) = *(data2 + i) + 1;
15373 data3 = (char *) malloc (pagesize);
15374 if (!data3)
15375 exit (1);
15376 if (read (fd, data3, pagesize) != pagesize)
15377 exit (1);
15378 for (i = 0; i < pagesize; ++i)
15379 if (*(data + i) != *(data3 + i))
15380 exit (1);
15381 close (fd);
15382 exit (0);
15384 _ACEOF
15385 rm -f conftest$ac_exeext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15387 (eval $ac_link) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_cv_func_mmap_fixed_mapped=yes
15397 else
15398 echo "$as_me: program exited with status $ac_status" >&5
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15402 ( exit $ac_status )
15403 ac_cv_func_mmap_fixed_mapped=no
15405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15408 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15409 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15410 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15412 cat >>confdefs.h <<\_ACEOF
15413 #define HAVE_MMAP 1
15414 _ACEOF
15417 rm -f conftest.mmap
15421 for ac_prog in perl
15423 # Extract the first word of "$ac_prog", so it can be a program name with args.
15424 set dummy $ac_prog; ac_word=$2
15425 echo "$as_me:$LINENO: checking for $ac_word" >&5
15426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15427 if test "${ac_cv_prog_PERL+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430 if test -n "$PERL"; then
15431 ac_cv_prog_PERL="$PERL" # Let the user override the test.
15432 else
15433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15434 for as_dir in $PATH
15436 IFS=$as_save_IFS
15437 test -z "$as_dir" && as_dir=.
15438 for ac_exec_ext in '' $ac_executable_extensions; do
15439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15440 ac_cv_prog_PERL="$ac_prog"
15441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15442 break 2
15444 done
15445 done
15449 PERL=$ac_cv_prog_PERL
15450 if test -n "$PERL"; then
15451 echo "$as_me:$LINENO: result: $PERL" >&5
15452 echo "${ECHO_T}$PERL" >&6
15453 else
15454 echo "$as_me:$LINENO: result: no" >&5
15455 echo "${ECHO_T}no" >&6
15458 test -n "$PERL" && break
15459 done
15460 test -n "$PERL" || PERL="false"
15463 SYSDEP_SOURCES=
15464 SIGNAL_HANDLER_AUX=
15466 case "${host}" in
15467 i?86-*-linux*)
15468 SIGNAL_HANDLER=include/i386-signal.h
15470 sparc*-sun-solaris*)
15471 SIGNAL_HANDLER=include/sparc-signal.h
15473 # ia64-*)
15474 # SYSDEP_SOURCES=sysdep/ia64.c
15475 # test -d sysdep || mkdir sysdep
15476 # ;;
15477 hppa*-*-linux*)
15478 SIGNAL_HANDLER=include/pa-signal.h
15480 ia64-*-linux*)
15481 SIGNAL_HANDLER=include/dwarf2-signal.h
15483 powerpc*-*-linux*)
15484 SIGNAL_HANDLER=include/powerpc-signal.h
15486 alpha*-*-linux*)
15487 SIGNAL_HANDLER=include/dwarf2-signal.h
15489 s390*-*-linux*)
15490 SIGNAL_HANDLER=include/s390-signal.h
15492 x86_64*-*-linux*)
15493 SIGNAL_HANDLER=include/x86_64-signal.h
15494 SIGNAL_HANDLER_AUX=include/i386-signal.h
15496 sparc*-*-linux*)
15497 SIGNAL_HANDLER=include/dwarf2-signal.h
15499 sh-*-linux* | sh[34]*-*-linux*)
15500 SIGNAL_HANDLER=include/dwarf2-signal.h
15502 *mingw*)
15503 SIGNAL_HANDLER=include/win32-signal.h
15505 mips*-*-linux*)
15506 SIGNAL_HANDLER=include/mips-signal.h
15508 *-*-darwin*)
15509 SIGNAL_HANDLER=include/darwin-signal.h
15512 SIGNAL_HANDLER=include/default-signal.h
15514 esac
15516 # If we're using sjlj exceptions, forget what we just learned.
15517 if test "$enable_sjlj_exceptions" = yes; then
15518 SIGNAL_HANDLER=include/default-signal.h
15519 SIGNAL_HANDLER_AUX=
15522 # Define here any compiler flags that you need in order to make backtrace() work.
15523 BACKTRACESPEC=
15524 case "${host}" in
15525 x86_64*-*-linux*|i?86-*)
15526 BACKTRACESPEC=-fno-omit-frame-pointer
15528 esac
15533 if test -z "$SIGNAL_HANDLER_AUX"; then
15534 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15537 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15540 if test "${multilib}" = "yes"; then
15541 multilib_arg="--enable-multilib"
15542 else
15543 multilib_arg=
15548 here=`${PWDCMD-pwd}`
15551 # We get this from the environment.
15554 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
15557 ac_config_commands="$ac_config_commands default"
15560 cat >confcache <<\_ACEOF
15561 # This file is a shell script that caches the results of configure
15562 # tests run on this system so they can be shared between configure
15563 # scripts and configure runs, see configure's option --config-cache.
15564 # It is not useful on other systems. If it contains results you don't
15565 # want to keep, you may remove or edit it.
15567 # config.status only pays attention to the cache file if you give it
15568 # the --recheck option to rerun configure.
15570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15572 # following values.
15574 _ACEOF
15576 # The following way of writing the cache mishandles newlines in values,
15577 # but we know of no workaround that is simple, portable, and efficient.
15578 # So, don't put newlines in cache variables' values.
15579 # Ultrix sh set writes to stderr and can't be redirected directly,
15580 # and sets the high bit in the cache file unless we assign to the vars.
15582 (set) 2>&1 |
15583 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15584 *ac_space=\ *)
15585 # `set' does not quote correctly, so add quotes (double-quote
15586 # substitution turns \\\\ into \\, and sed turns \\ into \).
15587 sed -n \
15588 "s/'/'\\\\''/g;
15589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15592 # `set' quotes correctly as required by POSIX, so do not add quotes.
15593 sed -n \
15594 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15596 esac;
15598 sed '
15599 t clear
15600 : clear
15601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15602 t end
15603 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15604 : end' >>confcache
15605 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15606 if test -w $cache_file; then
15607 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15608 cat confcache >$cache_file
15609 else
15610 echo "not updating unwritable cache $cache_file"
15613 rm -f confcache
15615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15616 # Let make expand exec_prefix.
15617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15619 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15620 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15621 # trailing colons and then remove the whole line if VPATH becomes empty
15622 # (actually we leave an empty line to preserve line numbers).
15623 if test "x$srcdir" = x.; then
15624 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15625 s/:*\$(srcdir):*/:/;
15626 s/:*\${srcdir}:*/:/;
15627 s/:*@srcdir@:*/:/;
15628 s/^\([^=]*=[ ]*\):*/\1/;
15629 s/:*$//;
15630 s/^[^=]*=[ ]*$//;
15634 DEFS=-DHAVE_CONFIG_H
15636 ac_libobjs=
15637 ac_ltlibobjs=
15638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15639 # 1. Remove the extension, and $U if already installed.
15640 ac_i=`echo "$ac_i" |
15641 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15642 # 2. Add them.
15643 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15644 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15645 done
15646 LIBOBJS=$ac_libobjs
15648 LTLIBOBJS=$ac_ltlibobjs
15651 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15652 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15653 Usually this means the macro was only invoked conditionally." >&5
15654 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15655 Usually this means the macro was only invoked conditionally." >&2;}
15656 { (exit 1); exit 1; }; }
15658 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15659 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15660 Usually this means the macro was only invoked conditionally." >&5
15661 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15662 Usually this means the macro was only invoked conditionally." >&2;}
15663 { (exit 1); exit 1; }; }
15665 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15666 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15667 Usually this means the macro was only invoked conditionally." >&5
15668 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15669 Usually this means the macro was only invoked conditionally." >&2;}
15670 { (exit 1); exit 1; }; }
15672 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15673 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15674 Usually this means the macro was only invoked conditionally." >&5
15675 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15676 Usually this means the macro was only invoked conditionally." >&2;}
15677 { (exit 1); exit 1; }; }
15679 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15680 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15681 Usually this means the macro was only invoked conditionally." >&5
15682 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15683 Usually this means the macro was only invoked conditionally." >&2;}
15684 { (exit 1); exit 1; }; }
15686 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15687 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15688 Usually this means the macro was only invoked conditionally." >&5
15689 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15690 Usually this means the macro was only invoked conditionally." >&2;}
15691 { (exit 1); exit 1; }; }
15693 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15694 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15695 Usually this means the macro was only invoked conditionally." >&5
15696 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15697 Usually this means the macro was only invoked conditionally." >&2;}
15698 { (exit 1); exit 1; }; }
15700 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15701 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15702 Usually this means the macro was only invoked conditionally." >&5
15703 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15704 Usually this means the macro was only invoked conditionally." >&2;}
15705 { (exit 1); exit 1; }; }
15707 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15708 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15709 Usually this means the macro was only invoked conditionally." >&5
15710 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15711 Usually this means the macro was only invoked conditionally." >&2;}
15712 { (exit 1); exit 1; }; }
15714 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15715 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15716 Usually this means the macro was only invoked conditionally." >&5
15717 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15718 Usually this means the macro was only invoked conditionally." >&2;}
15719 { (exit 1); exit 1; }; }
15721 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15722 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15723 Usually this means the macro was only invoked conditionally." >&5
15724 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15725 Usually this means the macro was only invoked conditionally." >&2;}
15726 { (exit 1); exit 1; }; }
15728 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15729 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15730 Usually this means the macro was only invoked conditionally." >&5
15731 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15732 Usually this means the macro was only invoked conditionally." >&2;}
15733 { (exit 1); exit 1; }; }
15735 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15736 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15737 Usually this means the macro was only invoked conditionally." >&5
15738 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15739 Usually this means the macro was only invoked conditionally." >&2;}
15740 { (exit 1); exit 1; }; }
15742 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15743 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15744 Usually this means the macro was only invoked conditionally." >&5
15745 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15746 Usually this means the macro was only invoked conditionally." >&2;}
15747 { (exit 1); exit 1; }; }
15749 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15750 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15751 Usually this means the macro was only invoked conditionally." >&5
15752 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15753 Usually this means the macro was only invoked conditionally." >&2;}
15754 { (exit 1); exit 1; }; }
15756 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15757 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15758 Usually this means the macro was only invoked conditionally." >&5
15759 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15760 Usually this means the macro was only invoked conditionally." >&2;}
15761 { (exit 1); exit 1; }; }
15763 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15764 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15765 Usually this means the macro was only invoked conditionally." >&5
15766 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15767 Usually this means the macro was only invoked conditionally." >&2;}
15768 { (exit 1); exit 1; }; }
15770 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15771 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15772 Usually this means the macro was only invoked conditionally." >&5
15773 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15774 Usually this means the macro was only invoked conditionally." >&2;}
15775 { (exit 1); exit 1; }; }
15777 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15778 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15779 Usually this means the macro was only invoked conditionally." >&5
15780 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15781 Usually this means the macro was only invoked conditionally." >&2;}
15782 { (exit 1); exit 1; }; }
15784 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15785 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15786 Usually this means the macro was only invoked conditionally." >&5
15787 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15788 Usually this means the macro was only invoked conditionally." >&2;}
15789 { (exit 1); exit 1; }; }
15791 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15792 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15793 Usually this means the macro was only invoked conditionally." >&5
15794 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15795 Usually this means the macro was only invoked conditionally." >&2;}
15796 { (exit 1); exit 1; }; }
15798 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15799 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15800 Usually this means the macro was only invoked conditionally." >&5
15801 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
15802 Usually this means the macro was only invoked conditionally." >&2;}
15803 { (exit 1); exit 1; }; }
15806 : ${CONFIG_STATUS=./config.status}
15807 ac_clean_files_save=$ac_clean_files
15808 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15809 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15810 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15811 cat >$CONFIG_STATUS <<_ACEOF
15812 #! $SHELL
15813 # Generated by $as_me.
15814 # Run this file to recreate the current configuration.
15815 # Compiler output produced by configure, useful for debugging
15816 # configure, is in config.log if it exists.
15818 debug=false
15819 ac_cs_recheck=false
15820 ac_cs_silent=false
15821 SHELL=\${CONFIG_SHELL-$SHELL}
15822 _ACEOF
15824 cat >>$CONFIG_STATUS <<\_ACEOF
15825 ## --------------------- ##
15826 ## M4sh Initialization. ##
15827 ## --------------------- ##
15829 # Be Bourne compatible
15830 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15831 emulate sh
15832 NULLCMD=:
15833 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15834 # is contrary to our usage. Disable this feature.
15835 alias -g '${1+"$@"}'='"$@"'
15836 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15837 set -o posix
15839 DUALCASE=1; export DUALCASE # for MKS sh
15841 # Support unset when possible.
15842 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15843 as_unset=unset
15844 else
15845 as_unset=false
15849 # Work around bugs in pre-3.0 UWIN ksh.
15850 $as_unset ENV MAIL MAILPATH
15851 PS1='$ '
15852 PS2='> '
15853 PS4='+ '
15855 # NLS nuisances.
15856 for as_var in \
15857 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15858 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15859 LC_TELEPHONE LC_TIME
15861 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15862 eval $as_var=C; export $as_var
15863 else
15864 $as_unset $as_var
15866 done
15868 # Required to use basename.
15869 if expr a : '\(a\)' >/dev/null 2>&1; then
15870 as_expr=expr
15871 else
15872 as_expr=false
15875 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15876 as_basename=basename
15877 else
15878 as_basename=false
15882 # Name of the executable.
15883 as_me=`$as_basename "$0" ||
15884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15885 X"$0" : 'X\(//\)$' \| \
15886 X"$0" : 'X\(/\)$' \| \
15887 . : '\(.\)' 2>/dev/null ||
15888 echo X/"$0" |
15889 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15890 /^X\/\(\/\/\)$/{ s//\1/; q; }
15891 /^X\/\(\/\).*/{ s//\1/; q; }
15892 s/.*/./; q'`
15895 # PATH needs CR, and LINENO needs CR and PATH.
15896 # Avoid depending upon Character Ranges.
15897 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15898 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15899 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15900 as_cr_digits='0123456789'
15901 as_cr_alnum=$as_cr_Letters$as_cr_digits
15903 # The user is always right.
15904 if test "${PATH_SEPARATOR+set}" != set; then
15905 echo "#! /bin/sh" >conf$$.sh
15906 echo "exit 0" >>conf$$.sh
15907 chmod +x conf$$.sh
15908 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15909 PATH_SEPARATOR=';'
15910 else
15911 PATH_SEPARATOR=:
15913 rm -f conf$$.sh
15917 as_lineno_1=$LINENO
15918 as_lineno_2=$LINENO
15919 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15920 test "x$as_lineno_1" != "x$as_lineno_2" &&
15921 test "x$as_lineno_3" = "x$as_lineno_2" || {
15922 # Find who we are. Look in the path if we contain no path at all
15923 # relative or not.
15924 case $0 in
15925 *[\\/]* ) as_myself=$0 ;;
15926 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15927 for as_dir in $PATH
15929 IFS=$as_save_IFS
15930 test -z "$as_dir" && as_dir=.
15931 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15932 done
15935 esac
15936 # We did not find ourselves, most probably we were run as `sh COMMAND'
15937 # in which case we are not to be found in the path.
15938 if test "x$as_myself" = x; then
15939 as_myself=$0
15941 if test ! -f "$as_myself"; then
15942 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15943 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15944 { (exit 1); exit 1; }; }
15946 case $CONFIG_SHELL in
15948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15949 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15951 IFS=$as_save_IFS
15952 test -z "$as_dir" && as_dir=.
15953 for as_base in sh bash ksh sh5; do
15954 case $as_dir in
15956 if ("$as_dir/$as_base" -c '
15957 as_lineno_1=$LINENO
15958 as_lineno_2=$LINENO
15959 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15960 test "x$as_lineno_1" != "x$as_lineno_2" &&
15961 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15962 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15963 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15964 CONFIG_SHELL=$as_dir/$as_base
15965 export CONFIG_SHELL
15966 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15967 fi;;
15968 esac
15969 done
15970 done
15972 esac
15974 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15975 # uniformly replaced by the line number. The first 'sed' inserts a
15976 # line-number line before each line; the second 'sed' does the real
15977 # work. The second script uses 'N' to pair each line-number line
15978 # with the numbered line, and appends trailing '-' during
15979 # substitution so that $LINENO is not a special case at line end.
15980 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15981 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15982 sed '=' <$as_myself |
15983 sed '
15985 s,$,-,
15986 : loop
15987 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15988 t loop
15989 s,-$,,
15990 s,^['$as_cr_digits']*\n,,
15991 ' >$as_me.lineno &&
15992 chmod +x $as_me.lineno ||
15993 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15994 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15995 { (exit 1); exit 1; }; }
15997 # Don't try to exec as it changes $[0], causing all sort of problems
15998 # (the dirname of $[0] is not the place where we might find the
15999 # original and so on. Autoconf is especially sensible to this).
16000 . ./$as_me.lineno
16001 # Exit status is that of the last command.
16002 exit
16006 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16007 *c*,-n*) ECHO_N= ECHO_C='
16008 ' ECHO_T=' ' ;;
16009 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16010 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16011 esac
16013 if expr a : '\(a\)' >/dev/null 2>&1; then
16014 as_expr=expr
16015 else
16016 as_expr=false
16019 rm -f conf$$ conf$$.exe conf$$.file
16020 echo >conf$$.file
16021 if ln -s conf$$.file conf$$ 2>/dev/null; then
16022 # We could just check for DJGPP; but this test a) works b) is more generic
16023 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16024 if test -f conf$$.exe; then
16025 # Don't use ln at all; we don't have any links
16026 as_ln_s='cp -p'
16027 else
16028 as_ln_s='ln -s'
16030 elif ln conf$$.file conf$$ 2>/dev/null; then
16031 as_ln_s=ln
16032 else
16033 as_ln_s='cp -p'
16035 rm -f conf$$ conf$$.exe conf$$.file
16037 if mkdir -p . 2>/dev/null; then
16038 as_mkdir_p=:
16039 else
16040 test -d ./-p && rmdir ./-p
16041 as_mkdir_p=false
16044 as_executable_p="test -f"
16046 # Sed expression to map a string onto a valid CPP name.
16047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16049 # Sed expression to map a string onto a valid variable name.
16050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16053 # IFS
16054 # We need space, tab and new line, in precisely that order.
16055 as_nl='
16057 IFS=" $as_nl"
16059 # CDPATH.
16060 $as_unset CDPATH
16062 exec 6>&1
16064 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16065 # report actual input values of CONFIG_FILES etc. instead of their
16066 # values after options handling. Logging --version etc. is OK.
16067 exec 5>>config.log
16069 echo
16070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16071 ## Running $as_me. ##
16072 _ASBOX
16073 } >&5
16074 cat >&5 <<_CSEOF
16076 This file was extended by libjava $as_me version-unused, which was
16077 generated by GNU Autoconf 2.59. Invocation command line was
16079 CONFIG_FILES = $CONFIG_FILES
16080 CONFIG_HEADERS = $CONFIG_HEADERS
16081 CONFIG_LINKS = $CONFIG_LINKS
16082 CONFIG_COMMANDS = $CONFIG_COMMANDS
16083 $ $0 $@
16085 _CSEOF
16086 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16087 echo >&5
16088 _ACEOF
16090 # Files that config.status was made for.
16091 if test -n "$ac_config_files"; then
16092 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16095 if test -n "$ac_config_headers"; then
16096 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16099 if test -n "$ac_config_links"; then
16100 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16103 if test -n "$ac_config_commands"; then
16104 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16107 cat >>$CONFIG_STATUS <<\_ACEOF
16109 ac_cs_usage="\
16110 \`$as_me' instantiates files from templates according to the
16111 current configuration.
16113 Usage: $0 [OPTIONS] [FILE]...
16115 -h, --help print this help, then exit
16116 -V, --version print version number, then exit
16117 -q, --quiet do not print progress messages
16118 -d, --debug don't remove temporary files
16119 --recheck update $as_me by reconfiguring in the same conditions
16120 --file=FILE[:TEMPLATE]
16121 instantiate the configuration file FILE
16122 --header=FILE[:TEMPLATE]
16123 instantiate the configuration header FILE
16125 Configuration files:
16126 $config_files
16128 Configuration headers:
16129 $config_headers
16131 Configuration links:
16132 $config_links
16134 Configuration commands:
16135 $config_commands
16137 Report bugs to <bug-autoconf@gnu.org>."
16138 _ACEOF
16140 cat >>$CONFIG_STATUS <<_ACEOF
16141 ac_cs_version="\\
16142 libjava config.status version-unused
16143 configured by $0, generated by GNU Autoconf 2.59,
16144 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16146 Copyright (C) 2003 Free Software Foundation, Inc.
16147 This config.status script is free software; the Free Software Foundation
16148 gives unlimited permission to copy, distribute and modify it."
16149 srcdir=$srcdir
16150 INSTALL="$INSTALL"
16151 _ACEOF
16153 cat >>$CONFIG_STATUS <<\_ACEOF
16154 # If no file are specified by the user, then we need to provide default
16155 # value. By we need to know if files were specified by the user.
16156 ac_need_defaults=:
16157 while test $# != 0
16159 case $1 in
16160 --*=*)
16161 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16162 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16163 ac_shift=:
16166 ac_option=$1
16167 ac_optarg=$2
16168 ac_shift=shift
16170 *) # This is not an option, so the user has probably given explicit
16171 # arguments.
16172 ac_option=$1
16173 ac_need_defaults=false;;
16174 esac
16176 case $ac_option in
16177 # Handling of the options.
16178 _ACEOF
16179 cat >>$CONFIG_STATUS <<\_ACEOF
16180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16181 ac_cs_recheck=: ;;
16182 --version | --vers* | -V )
16183 echo "$ac_cs_version"; exit 0 ;;
16184 --he | --h)
16185 # Conflict between --help and --header
16186 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16187 Try \`$0 --help' for more information." >&5
16188 echo "$as_me: error: ambiguous option: $1
16189 Try \`$0 --help' for more information." >&2;}
16190 { (exit 1); exit 1; }; };;
16191 --help | --hel | -h )
16192 echo "$ac_cs_usage"; exit 0 ;;
16193 --debug | --d* | -d )
16194 debug=: ;;
16195 --file | --fil | --fi | --f )
16196 $ac_shift
16197 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16198 ac_need_defaults=false;;
16199 --header | --heade | --head | --hea )
16200 $ac_shift
16201 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16202 ac_need_defaults=false;;
16203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16204 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16205 ac_cs_silent=: ;;
16207 # This is an error.
16208 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16209 Try \`$0 --help' for more information." >&5
16210 echo "$as_me: error: unrecognized option: $1
16211 Try \`$0 --help' for more information." >&2;}
16212 { (exit 1); exit 1; }; } ;;
16214 *) ac_config_targets="$ac_config_targets $1" ;;
16216 esac
16217 shift
16218 done
16220 ac_configure_extra_args=
16222 if $ac_cs_silent; then
16223 exec 6>/dev/null
16224 ac_configure_extra_args="$ac_configure_extra_args --silent"
16227 _ACEOF
16228 cat >>$CONFIG_STATUS <<_ACEOF
16229 if \$ac_cs_recheck; then
16230 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16231 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16234 _ACEOF
16236 cat >>$CONFIG_STATUS <<_ACEOF
16238 # INIT-COMMANDS section.
16241 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16242 srcdir=${srcdir}
16243 host=${host}
16244 target=${target}
16245 with_multisubdir=${with_multisubdir}
16246 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16247 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16248 libgcj_basedir=${libgcj_basedir}
16249 CC="${CC}"
16250 CXX="${CXX}"
16251 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16254 _ACEOF
16258 cat >>$CONFIG_STATUS <<\_ACEOF
16259 for ac_config_target in $ac_config_targets
16261 case "$ac_config_target" in
16262 # Handling of arguments.
16263 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16264 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16265 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16266 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16267 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16268 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16269 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16270 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16271 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16272 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16273 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16274 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16275 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16276 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16277 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16278 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16279 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16280 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16281 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16282 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16283 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16284 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16285 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16286 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16287 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16288 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16289 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16290 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16291 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16292 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16293 { (exit 1); exit 1; }; };;
16294 esac
16295 done
16297 # If the user did not use the arguments to specify the items to instantiate,
16298 # then the envvar interface is used. Set only those that are not.
16299 # We use the long form for the default assignment because of an extremely
16300 # bizarre bug on SunOS 4.1.3.
16301 if $ac_need_defaults; then
16302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16304 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16308 # Have a temporary directory for convenience. Make it in the build tree
16309 # simply because there is no reason to put it here, and in addition,
16310 # creating and moving files from /tmp can sometimes cause problems.
16311 # Create a temporary directory, and hook for its removal unless debugging.
16312 $debug ||
16314 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16315 trap '{ (exit 1); exit 1; }' 1 2 13 15
16318 # Create a (secure) tmp directory for tmp files.
16321 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16322 test -n "$tmp" && test -d "$tmp"
16323 } ||
16325 tmp=./confstat$$-$RANDOM
16326 (umask 077 && mkdir $tmp)
16327 } ||
16329 echo "$me: cannot create a temporary directory in ." >&2
16330 { (exit 1); exit 1; }
16333 _ACEOF
16335 cat >>$CONFIG_STATUS <<_ACEOF
16338 # CONFIG_FILES section.
16341 # No need to generate the scripts if there are no CONFIG_FILES.
16342 # This happens for instance when ./config.status config.h
16343 if test -n "\$CONFIG_FILES"; then
16344 # Protect against being on the right side of a sed subst in config.status.
16345 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16346 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16347 s,@SHELL@,$SHELL,;t t
16348 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16349 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16350 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16351 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16352 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16353 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16354 s,@exec_prefix@,$exec_prefix,;t t
16355 s,@prefix@,$prefix,;t t
16356 s,@program_transform_name@,$program_transform_name,;t t
16357 s,@bindir@,$bindir,;t t
16358 s,@sbindir@,$sbindir,;t t
16359 s,@libexecdir@,$libexecdir,;t t
16360 s,@datadir@,$datadir,;t t
16361 s,@sysconfdir@,$sysconfdir,;t t
16362 s,@sharedstatedir@,$sharedstatedir,;t t
16363 s,@localstatedir@,$localstatedir,;t t
16364 s,@libdir@,$libdir,;t t
16365 s,@includedir@,$includedir,;t t
16366 s,@oldincludedir@,$oldincludedir,;t t
16367 s,@infodir@,$infodir,;t t
16368 s,@mandir@,$mandir,;t t
16369 s,@build_alias@,$build_alias,;t t
16370 s,@host_alias@,$host_alias,;t t
16371 s,@target_alias@,$target_alias,;t t
16372 s,@DEFS@,$DEFS,;t t
16373 s,@ECHO_C@,$ECHO_C,;t t
16374 s,@ECHO_N@,$ECHO_N,;t t
16375 s,@ECHO_T@,$ECHO_T,;t t
16376 s,@LIBS@,$LIBS,;t t
16377 s,@libgcj_basedir@,$libgcj_basedir,;t t
16378 s,@build@,$build,;t t
16379 s,@build_cpu@,$build_cpu,;t t
16380 s,@build_vendor@,$build_vendor,;t t
16381 s,@build_os@,$build_os,;t t
16382 s,@host@,$host,;t t
16383 s,@host_cpu@,$host_cpu,;t t
16384 s,@host_vendor@,$host_vendor,;t t
16385 s,@host_os@,$host_os,;t t
16386 s,@target@,$target,;t t
16387 s,@target_cpu@,$target_cpu,;t t
16388 s,@target_vendor@,$target_vendor,;t t
16389 s,@target_os@,$target_os,;t t
16390 s,@target_noncanonical@,$target_noncanonical,;t t
16391 s,@LN_S@,$LN_S,;t t
16392 s,@mkinstalldirs@,$mkinstalldirs,;t t
16393 s,@CC@,$CC,;t t
16394 s,@ac_ct_CC@,$ac_ct_CC,;t t
16395 s,@EXEEXT@,$EXEEXT,;t t
16396 s,@OBJEXT@,$OBJEXT,;t t
16397 s,@CXX@,$CXX,;t t
16398 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16399 s,@CFLAGS@,$CFLAGS,;t t
16400 s,@CXXFLAGS@,$CXXFLAGS,;t t
16401 s,@LDFLAGS@,$LDFLAGS,;t t
16402 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16403 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16404 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16405 s,@CYGPATH_W@,$CYGPATH_W,;t t
16406 s,@PACKAGE@,$PACKAGE,;t t
16407 s,@VERSION@,$VERSION,;t t
16408 s,@ACLOCAL@,$ACLOCAL,;t t
16409 s,@AUTOCONF@,$AUTOCONF,;t t
16410 s,@AUTOMAKE@,$AUTOMAKE,;t t
16411 s,@AUTOHEADER@,$AUTOHEADER,;t t
16412 s,@MAKEINFO@,$MAKEINFO,;t t
16413 s,@install_sh@,$install_sh,;t t
16414 s,@STRIP@,$STRIP,;t t
16415 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16416 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16417 s,@mkdir_p@,$mkdir_p,;t t
16418 s,@AWK@,$AWK,;t t
16419 s,@SET_MAKE@,$SET_MAKE,;t t
16420 s,@am__leading_dot@,$am__leading_dot,;t t
16421 s,@AMTAR@,$AMTAR,;t t
16422 s,@am__tar@,$am__tar,;t t
16423 s,@am__untar@,$am__untar,;t t
16424 s,@DEPDIR@,$DEPDIR,;t t
16425 s,@am__include@,$am__include,;t t
16426 s,@am__quote@,$am__quote,;t t
16427 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16428 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16429 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16430 s,@CCDEPMODE@,$CCDEPMODE,;t t
16431 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16432 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16433 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16434 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16435 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16436 s,@AS@,$AS,;t t
16437 s,@ac_ct_AS@,$ac_ct_AS,;t t
16438 s,@AR@,$AR,;t t
16439 s,@ac_ct_AR@,$ac_ct_AR,;t t
16440 s,@RANLIB@,$RANLIB,;t t
16441 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16442 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16443 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16444 s,@MAINT@,$MAINT,;t t
16445 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16446 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16447 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16448 s,@INCLTDL@,$INCLTDL,;t t
16449 s,@LIBLTDL@,$LIBLTDL,;t t
16450 s,@DIRLTDL@,$DIRLTDL,;t t
16451 s,@LIBTOOL@,$LIBTOOL,;t t
16452 s,@CXXCPP@,$CXXCPP,;t t
16453 s,@CPPFLAGS@,$CPPFLAGS,;t t
16454 s,@GCJ@,$GCJ,;t t
16455 s,@GCJFLAGS@,$GCJFLAGS,;t t
16456 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16457 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16458 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16459 s,@subdirs@,$subdirs,;t t
16460 s,@COMPPATH@,$COMPPATH,;t t
16461 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16462 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16463 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16464 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16465 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16466 s,@INTERPRETER@,$INTERPRETER,;t t
16467 s,@LIBFFI@,$LIBFFI,;t t
16468 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16469 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16470 s,@CPP@,$CPP,;t t
16471 s,@EGREP@,$EGREP,;t t
16472 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16473 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16474 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16475 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16476 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16477 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16478 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16479 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16480 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16481 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16482 s,@X_CFLAGS@,$X_CFLAGS,;t t
16483 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16484 s,@X_LIBS@,$X_LIBS,;t t
16485 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16486 s,@TOOLKIT@,$TOOLKIT,;t t
16487 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16488 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16489 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16490 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16491 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16492 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16493 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16494 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16495 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16496 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16497 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16498 s,@GCLIBS@,$GCLIBS,;t t
16499 s,@GCINCS@,$GCINCS,;t t
16500 s,@GCDEPS@,$GCDEPS,;t t
16501 s,@GCSPEC@,$GCSPEC,;t t
16502 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16503 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16504 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16505 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16506 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16507 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16508 s,@THREADLIBS@,$THREADLIBS,;t t
16509 s,@THREADINCS@,$THREADINCS,;t t
16510 s,@THREADDEPS@,$THREADDEPS,;t t
16511 s,@THREADSPEC@,$THREADSPEC,;t t
16512 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16513 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16514 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16515 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16516 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16517 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16518 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16519 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16520 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16521 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16522 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16523 s,@tool_include_dir@,$tool_include_dir,;t t
16524 s,@gcc_version@,$gcc_version,;t t
16525 s,@LIBICONV@,$LIBICONV,;t t
16526 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16527 s,@GTK_LIBS@,$GTK_LIBS,;t t
16528 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16529 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16530 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16531 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16532 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16533 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16534 s,@GCJH@,$GCJH,;t t
16535 s,@ZIP@,$ZIP,;t t
16536 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16537 s,@ZLIBS@,$ZLIBS,;t t
16538 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16539 s,@ZINCS@,$ZINCS,;t t
16540 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16541 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16542 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16543 s,@IEEESPEC@,$IEEESPEC,;t t
16544 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16545 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16546 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16547 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16548 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16549 s,@toolexecdir@,$toolexecdir,;t t
16550 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16551 s,@toolexeclibdir@,$toolexeclibdir,;t t
16552 s,@GCJVERSION@,$GCJVERSION,;t t
16553 s,@ALLOCA@,$ALLOCA,;t t
16554 s,@PERL@,$PERL,;t t
16555 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16556 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16557 s,@here@,$here,;t t
16558 s,@LIBOBJS@,$LIBOBJS,;t t
16559 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16560 CEOF
16562 _ACEOF
16564 cat >>$CONFIG_STATUS <<\_ACEOF
16565 # Split the substitutions into bite-sized pieces for seds with
16566 # small command number limits, like on Digital OSF/1 and HP-UX.
16567 ac_max_sed_lines=48
16568 ac_sed_frag=1 # Number of current file.
16569 ac_beg=1 # First line for current file.
16570 ac_end=$ac_max_sed_lines # Line after last line for current file.
16571 ac_more_lines=:
16572 ac_sed_cmds=
16573 while $ac_more_lines; do
16574 if test $ac_beg -gt 1; then
16575 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16576 else
16577 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16579 if test ! -s $tmp/subs.frag; then
16580 ac_more_lines=false
16581 else
16582 # The purpose of the label and of the branching condition is to
16583 # speed up the sed processing (if there are no `@' at all, there
16584 # is no need to browse any of the substitutions).
16585 # These are the two extra sed commands mentioned above.
16586 (echo ':t
16587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16588 if test -z "$ac_sed_cmds"; then
16589 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16590 else
16591 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16593 ac_sed_frag=`expr $ac_sed_frag + 1`
16594 ac_beg=$ac_end
16595 ac_end=`expr $ac_end + $ac_max_sed_lines`
16597 done
16598 if test -z "$ac_sed_cmds"; then
16599 ac_sed_cmds=cat
16601 fi # test -n "$CONFIG_FILES"
16603 _ACEOF
16604 cat >>$CONFIG_STATUS <<\_ACEOF
16605 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16607 case $ac_file in
16608 - | *:- | *:-:* ) # input from stdin
16609 cat >$tmp/stdin
16610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16614 * ) ac_file_in=$ac_file.in ;;
16615 esac
16617 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16618 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16620 X"$ac_file" : 'X\(//\)[^/]' \| \
16621 X"$ac_file" : 'X\(//\)$' \| \
16622 X"$ac_file" : 'X\(/\)' \| \
16623 . : '\(.\)' 2>/dev/null ||
16624 echo X"$ac_file" |
16625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16627 /^X\(\/\/\)$/{ s//\1/; q; }
16628 /^X\(\/\).*/{ s//\1/; q; }
16629 s/.*/./; q'`
16630 { if $as_mkdir_p; then
16631 mkdir -p "$ac_dir"
16632 else
16633 as_dir="$ac_dir"
16634 as_dirs=
16635 while test ! -d "$as_dir"; do
16636 as_dirs="$as_dir $as_dirs"
16637 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16639 X"$as_dir" : 'X\(//\)[^/]' \| \
16640 X"$as_dir" : 'X\(//\)$' \| \
16641 X"$as_dir" : 'X\(/\)' \| \
16642 . : '\(.\)' 2>/dev/null ||
16643 echo X"$as_dir" |
16644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16646 /^X\(\/\/\)$/{ s//\1/; q; }
16647 /^X\(\/\).*/{ s//\1/; q; }
16648 s/.*/./; q'`
16649 done
16650 test ! -n "$as_dirs" || mkdir $as_dirs
16651 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16652 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16653 { (exit 1); exit 1; }; }; }
16655 ac_builddir=.
16657 if test "$ac_dir" != .; then
16658 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16659 # A "../" for each directory in $ac_dir_suffix.
16660 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16661 else
16662 ac_dir_suffix= ac_top_builddir=
16665 case $srcdir in
16666 .) # No --srcdir option. We are building in place.
16667 ac_srcdir=.
16668 if test -z "$ac_top_builddir"; then
16669 ac_top_srcdir=.
16670 else
16671 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16672 fi ;;
16673 [\\/]* | ?:[\\/]* ) # Absolute path.
16674 ac_srcdir=$srcdir$ac_dir_suffix;
16675 ac_top_srcdir=$srcdir ;;
16676 *) # Relative path.
16677 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16678 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16679 esac
16681 # Do not use `cd foo && pwd` to compute absolute paths, because
16682 # the directories may not exist.
16683 case `pwd` in
16684 .) ac_abs_builddir="$ac_dir";;
16686 case "$ac_dir" in
16687 .) ac_abs_builddir=`pwd`;;
16688 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16689 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16690 esac;;
16691 esac
16692 case $ac_abs_builddir in
16693 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16695 case ${ac_top_builddir}. in
16696 .) ac_abs_top_builddir=$ac_abs_builddir;;
16697 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16698 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16699 esac;;
16700 esac
16701 case $ac_abs_builddir in
16702 .) ac_abs_srcdir=$ac_srcdir;;
16704 case $ac_srcdir in
16705 .) ac_abs_srcdir=$ac_abs_builddir;;
16706 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16707 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16708 esac;;
16709 esac
16710 case $ac_abs_builddir in
16711 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16713 case $ac_top_srcdir in
16714 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16715 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16716 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16717 esac;;
16718 esac
16721 case $INSTALL in
16722 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16723 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16724 esac
16726 # Let's still pretend it is `configure' which instantiates (i.e., don't
16727 # use $as_me), people would be surprised to read:
16728 # /* config.h. Generated by config.status. */
16729 if test x"$ac_file" = x-; then
16730 configure_input=
16731 else
16732 configure_input="$ac_file. "
16734 configure_input=$configure_input"Generated from `echo $ac_file_in |
16735 sed 's,.*/,,'` by configure."
16737 # First look for the input files in the build tree, otherwise in the
16738 # src tree.
16739 ac_file_inputs=`IFS=:
16740 for f in $ac_file_in; do
16741 case $f in
16742 -) echo $tmp/stdin ;;
16743 [\\/$]*)
16744 # Absolute (can't be DOS-style, as IFS=:)
16745 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16746 echo "$as_me: error: cannot find input file: $f" >&2;}
16747 { (exit 1); exit 1; }; }
16748 echo "$f";;
16749 *) # Relative
16750 if test -f "$f"; then
16751 # Build tree
16752 echo "$f"
16753 elif test -f "$srcdir/$f"; then
16754 # Source tree
16755 echo "$srcdir/$f"
16756 else
16757 # /dev/null tree
16758 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16759 echo "$as_me: error: cannot find input file: $f" >&2;}
16760 { (exit 1); exit 1; }; }
16761 fi;;
16762 esac
16763 done` || { (exit 1); exit 1; }
16765 if test x"$ac_file" != x-; then
16766 { echo "$as_me:$LINENO: creating $ac_file" >&5
16767 echo "$as_me: creating $ac_file" >&6;}
16768 rm -f "$ac_file"
16770 _ACEOF
16771 cat >>$CONFIG_STATUS <<_ACEOF
16772 sed "$ac_vpsub
16773 $extrasub
16774 _ACEOF
16775 cat >>$CONFIG_STATUS <<\_ACEOF
16777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16778 s,@configure_input@,$configure_input,;t t
16779 s,@srcdir@,$ac_srcdir,;t t
16780 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16781 s,@top_srcdir@,$ac_top_srcdir,;t t
16782 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16783 s,@builddir@,$ac_builddir,;t t
16784 s,@abs_builddir@,$ac_abs_builddir,;t t
16785 s,@top_builddir@,$ac_top_builddir,;t t
16786 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16787 s,@INSTALL@,$ac_INSTALL,;t t
16788 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16789 rm -f $tmp/stdin
16790 if test x"$ac_file" != x-; then
16791 mv $tmp/out $ac_file
16792 else
16793 cat $tmp/out
16794 rm -f $tmp/out
16797 done
16798 _ACEOF
16799 cat >>$CONFIG_STATUS <<\_ACEOF
16802 # CONFIG_HEADER section.
16805 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16806 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16808 # ac_d sets the value in "#define NAME VALUE" lines.
16809 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16810 ac_dB='[ ].*$,\1#\2'
16811 ac_dC=' '
16812 ac_dD=',;t'
16813 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16814 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16815 ac_uB='$,\1#\2define\3'
16816 ac_uC=' '
16817 ac_uD=',;t'
16819 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16821 case $ac_file in
16822 - | *:- | *:-:* ) # input from stdin
16823 cat >$tmp/stdin
16824 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16825 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16826 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16827 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16828 * ) ac_file_in=$ac_file.in ;;
16829 esac
16831 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16832 echo "$as_me: creating $ac_file" >&6;}
16834 # First look for the input files in the build tree, otherwise in the
16835 # src tree.
16836 ac_file_inputs=`IFS=:
16837 for f in $ac_file_in; do
16838 case $f in
16839 -) echo $tmp/stdin ;;
16840 [\\/$]*)
16841 # Absolute (can't be DOS-style, as IFS=:)
16842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16843 echo "$as_me: error: cannot find input file: $f" >&2;}
16844 { (exit 1); exit 1; }; }
16845 # Do quote $f, to prevent DOS paths from being IFS'd.
16846 echo "$f";;
16847 *) # Relative
16848 if test -f "$f"; then
16849 # Build tree
16850 echo "$f"
16851 elif test -f "$srcdir/$f"; then
16852 # Source tree
16853 echo "$srcdir/$f"
16854 else
16855 # /dev/null tree
16856 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16857 echo "$as_me: error: cannot find input file: $f" >&2;}
16858 { (exit 1); exit 1; }; }
16859 fi;;
16860 esac
16861 done` || { (exit 1); exit 1; }
16862 # Remove the trailing spaces.
16863 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16865 _ACEOF
16867 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16868 # `conftest.undefs', that substitutes the proper values into
16869 # config.h.in to produce config.h. The first handles `#define'
16870 # templates, and the second `#undef' templates.
16871 # And first: Protect against being on the right side of a sed subst in
16872 # config.status. Protect against being in an unquoted here document
16873 # in config.status.
16874 rm -f conftest.defines conftest.undefs
16875 # Using a here document instead of a string reduces the quoting nightmare.
16876 # Putting comments in sed scripts is not portable.
16878 # `end' is used to avoid that the second main sed command (meant for
16879 # 0-ary CPP macros) applies to n-ary macro definitions.
16880 # See the Autoconf documentation for `clear'.
16881 cat >confdef2sed.sed <<\_ACEOF
16882 s/[\\&,]/\\&/g
16883 s,[\\$`],\\&,g
16884 t clear
16885 : clear
16886 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16887 t end
16888 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16889 : end
16890 _ACEOF
16891 # If some macros were called several times there might be several times
16892 # the same #defines, which is useless. Nevertheless, we may not want to
16893 # sort them, since we want the *last* AC-DEFINE to be honored.
16894 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16895 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16896 rm -f confdef2sed.sed
16898 # This sed command replaces #undef with comments. This is necessary, for
16899 # example, in the case of _POSIX_SOURCE, which is predefined and required
16900 # on some systems where configure will not decide to define it.
16901 cat >>conftest.undefs <<\_ACEOF
16902 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16903 _ACEOF
16905 # Break up conftest.defines because some shells have a limit on the size
16906 # of here documents, and old seds have small limits too (100 cmds).
16907 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16908 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16909 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16910 echo ' :' >>$CONFIG_STATUS
16911 rm -f conftest.tail
16912 while grep . conftest.defines >/dev/null
16914 # Write a limited-size here document to $tmp/defines.sed.
16915 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16916 # Speed up: don't consider the non `#define' lines.
16917 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16918 # Work around the forget-to-reset-the-flag bug.
16919 echo 't clr' >>$CONFIG_STATUS
16920 echo ': clr' >>$CONFIG_STATUS
16921 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16922 echo 'CEOF
16923 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16924 rm -f $tmp/in
16925 mv $tmp/out $tmp/in
16926 ' >>$CONFIG_STATUS
16927 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16928 rm -f conftest.defines
16929 mv conftest.tail conftest.defines
16930 done
16931 rm -f conftest.defines
16932 echo ' fi # grep' >>$CONFIG_STATUS
16933 echo >>$CONFIG_STATUS
16935 # Break up conftest.undefs because some shells have a limit on the size
16936 # of here documents, and old seds have small limits too (100 cmds).
16937 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16938 rm -f conftest.tail
16939 while grep . conftest.undefs >/dev/null
16941 # Write a limited-size here document to $tmp/undefs.sed.
16942 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16943 # Speed up: don't consider the non `#undef'
16944 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16945 # Work around the forget-to-reset-the-flag bug.
16946 echo 't clr' >>$CONFIG_STATUS
16947 echo ': clr' >>$CONFIG_STATUS
16948 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16949 echo 'CEOF
16950 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16951 rm -f $tmp/in
16952 mv $tmp/out $tmp/in
16953 ' >>$CONFIG_STATUS
16954 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16955 rm -f conftest.undefs
16956 mv conftest.tail conftest.undefs
16957 done
16958 rm -f conftest.undefs
16960 cat >>$CONFIG_STATUS <<\_ACEOF
16961 # Let's still pretend it is `configure' which instantiates (i.e., don't
16962 # use $as_me), people would be surprised to read:
16963 # /* config.h. Generated by config.status. */
16964 if test x"$ac_file" = x-; then
16965 echo "/* Generated by configure. */" >$tmp/config.h
16966 else
16967 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16969 cat $tmp/in >>$tmp/config.h
16970 rm -f $tmp/in
16971 if test x"$ac_file" != x-; then
16972 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16973 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16974 echo "$as_me: $ac_file is unchanged" >&6;}
16975 else
16976 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16978 X"$ac_file" : 'X\(//\)[^/]' \| \
16979 X"$ac_file" : 'X\(//\)$' \| \
16980 X"$ac_file" : 'X\(/\)' \| \
16981 . : '\(.\)' 2>/dev/null ||
16982 echo X"$ac_file" |
16983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16985 /^X\(\/\/\)$/{ s//\1/; q; }
16986 /^X\(\/\).*/{ s//\1/; q; }
16987 s/.*/./; q'`
16988 { if $as_mkdir_p; then
16989 mkdir -p "$ac_dir"
16990 else
16991 as_dir="$ac_dir"
16992 as_dirs=
16993 while test ! -d "$as_dir"; do
16994 as_dirs="$as_dir $as_dirs"
16995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16997 X"$as_dir" : 'X\(//\)[^/]' \| \
16998 X"$as_dir" : 'X\(//\)$' \| \
16999 X"$as_dir" : 'X\(/\)' \| \
17000 . : '\(.\)' 2>/dev/null ||
17001 echo X"$as_dir" |
17002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17004 /^X\(\/\/\)$/{ s//\1/; q; }
17005 /^X\(\/\).*/{ s//\1/; q; }
17006 s/.*/./; q'`
17007 done
17008 test ! -n "$as_dirs" || mkdir $as_dirs
17009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17011 { (exit 1); exit 1; }; }; }
17013 rm -f $ac_file
17014 mv $tmp/config.h $ac_file
17016 else
17017 cat $tmp/config.h
17018 rm -f $tmp/config.h
17020 # Compute $ac_file's index in $config_headers.
17021 _am_stamp_count=1
17022 for _am_header in $config_headers :; do
17023 case $_am_header in
17024 $ac_file | $ac_file:* )
17025 break ;;
17027 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17028 esac
17029 done
17030 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17031 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17032 X$ac_file : 'X\(//\)[^/]' \| \
17033 X$ac_file : 'X\(//\)$' \| \
17034 X$ac_file : 'X\(/\)' \| \
17035 . : '\(.\)' 2>/dev/null ||
17036 echo X$ac_file |
17037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17039 /^X\(\/\/\)$/{ s//\1/; q; }
17040 /^X\(\/\).*/{ s//\1/; q; }
17041 s/.*/./; q'`/stamp-h$_am_stamp_count
17042 done
17043 _ACEOF
17044 cat >>$CONFIG_STATUS <<\_ACEOF
17047 # CONFIG_LINKS section.
17050 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17051 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17052 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17054 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17055 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17057 if test ! -r $srcdir/$ac_source; then
17058 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17059 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17060 { (exit 1); exit 1; }; }
17062 rm -f $ac_dest
17064 # Make relative symlinks.
17065 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17066 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17067 X"$ac_dest" : 'X\(//\)[^/]' \| \
17068 X"$ac_dest" : 'X\(//\)$' \| \
17069 X"$ac_dest" : 'X\(/\)' \| \
17070 . : '\(.\)' 2>/dev/null ||
17071 echo X"$ac_dest" |
17072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17074 /^X\(\/\/\)$/{ s//\1/; q; }
17075 /^X\(\/\).*/{ s//\1/; q; }
17076 s/.*/./; q'`
17077 { if $as_mkdir_p; then
17078 mkdir -p "$ac_dest_dir"
17079 else
17080 as_dir="$ac_dest_dir"
17081 as_dirs=
17082 while test ! -d "$as_dir"; do
17083 as_dirs="$as_dir $as_dirs"
17084 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17086 X"$as_dir" : 'X\(//\)[^/]' \| \
17087 X"$as_dir" : 'X\(//\)$' \| \
17088 X"$as_dir" : 'X\(/\)' \| \
17089 . : '\(.\)' 2>/dev/null ||
17090 echo X"$as_dir" |
17091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17093 /^X\(\/\/\)$/{ s//\1/; q; }
17094 /^X\(\/\).*/{ s//\1/; q; }
17095 s/.*/./; q'`
17096 done
17097 test ! -n "$as_dirs" || mkdir $as_dirs
17098 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17099 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17100 { (exit 1); exit 1; }; }; }
17102 ac_builddir=.
17104 if test "$ac_dest_dir" != .; then
17105 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17106 # A "../" for each directory in $ac_dir_suffix.
17107 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17108 else
17109 ac_dir_suffix= ac_top_builddir=
17112 case $srcdir in
17113 .) # No --srcdir option. We are building in place.
17114 ac_srcdir=.
17115 if test -z "$ac_top_builddir"; then
17116 ac_top_srcdir=.
17117 else
17118 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17119 fi ;;
17120 [\\/]* | ?:[\\/]* ) # Absolute path.
17121 ac_srcdir=$srcdir$ac_dir_suffix;
17122 ac_top_srcdir=$srcdir ;;
17123 *) # Relative path.
17124 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17125 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17126 esac
17128 # Do not use `cd foo && pwd` to compute absolute paths, because
17129 # the directories may not exist.
17130 case `pwd` in
17131 .) ac_abs_builddir="$ac_dest_dir";;
17133 case "$ac_dest_dir" in
17134 .) ac_abs_builddir=`pwd`;;
17135 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17136 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17137 esac;;
17138 esac
17139 case $ac_abs_builddir in
17140 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17142 case ${ac_top_builddir}. in
17143 .) ac_abs_top_builddir=$ac_abs_builddir;;
17144 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17145 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17146 esac;;
17147 esac
17148 case $ac_abs_builddir in
17149 .) ac_abs_srcdir=$ac_srcdir;;
17151 case $ac_srcdir in
17152 .) ac_abs_srcdir=$ac_abs_builddir;;
17153 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17154 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17155 esac;;
17156 esac
17157 case $ac_abs_builddir in
17158 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17160 case $ac_top_srcdir in
17161 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17162 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17163 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17164 esac;;
17165 esac
17168 case $srcdir in
17169 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17170 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17171 esac
17173 # Try a symlink, then a hard link, then a copy.
17174 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17175 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17176 cp -p $srcdir/$ac_source $ac_dest ||
17177 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17178 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17179 { (exit 1); exit 1; }; }
17180 done
17181 _ACEOF
17182 cat >>$CONFIG_STATUS <<\_ACEOF
17185 # CONFIG_COMMANDS section.
17187 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17188 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17189 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17190 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17191 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17192 X"$ac_dest" : 'X\(//\)[^/]' \| \
17193 X"$ac_dest" : 'X\(//\)$' \| \
17194 X"$ac_dest" : 'X\(/\)' \| \
17195 . : '\(.\)' 2>/dev/null ||
17196 echo X"$ac_dest" |
17197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17199 /^X\(\/\/\)$/{ s//\1/; q; }
17200 /^X\(\/\).*/{ s//\1/; q; }
17201 s/.*/./; q'`
17202 { if $as_mkdir_p; then
17203 mkdir -p "$ac_dir"
17204 else
17205 as_dir="$ac_dir"
17206 as_dirs=
17207 while test ! -d "$as_dir"; do
17208 as_dirs="$as_dir $as_dirs"
17209 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17211 X"$as_dir" : 'X\(//\)[^/]' \| \
17212 X"$as_dir" : 'X\(//\)$' \| \
17213 X"$as_dir" : 'X\(/\)' \| \
17214 . : '\(.\)' 2>/dev/null ||
17215 echo X"$as_dir" |
17216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17218 /^X\(\/\/\)$/{ s//\1/; q; }
17219 /^X\(\/\).*/{ s//\1/; q; }
17220 s/.*/./; q'`
17221 done
17222 test ! -n "$as_dirs" || mkdir $as_dirs
17223 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17225 { (exit 1); exit 1; }; }; }
17227 ac_builddir=.
17229 if test "$ac_dir" != .; then
17230 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17231 # A "../" for each directory in $ac_dir_suffix.
17232 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17233 else
17234 ac_dir_suffix= ac_top_builddir=
17237 case $srcdir in
17238 .) # No --srcdir option. We are building in place.
17239 ac_srcdir=.
17240 if test -z "$ac_top_builddir"; then
17241 ac_top_srcdir=.
17242 else
17243 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17244 fi ;;
17245 [\\/]* | ?:[\\/]* ) # Absolute path.
17246 ac_srcdir=$srcdir$ac_dir_suffix;
17247 ac_top_srcdir=$srcdir ;;
17248 *) # Relative path.
17249 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17250 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17251 esac
17253 # Do not use `cd foo && pwd` to compute absolute paths, because
17254 # the directories may not exist.
17255 case `pwd` in
17256 .) ac_abs_builddir="$ac_dir";;
17258 case "$ac_dir" in
17259 .) ac_abs_builddir=`pwd`;;
17260 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17261 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17262 esac;;
17263 esac
17264 case $ac_abs_builddir in
17265 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17267 case ${ac_top_builddir}. in
17268 .) ac_abs_top_builddir=$ac_abs_builddir;;
17269 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17270 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17271 esac;;
17272 esac
17273 case $ac_abs_builddir in
17274 .) ac_abs_srcdir=$ac_srcdir;;
17276 case $ac_srcdir in
17277 .) ac_abs_srcdir=$ac_abs_builddir;;
17278 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17279 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17280 esac;;
17281 esac
17282 case $ac_abs_builddir in
17283 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17285 case $ac_top_srcdir in
17286 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17287 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17288 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17289 esac;;
17290 esac
17293 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17294 echo "$as_me: executing $ac_dest commands" >&6;}
17295 case $ac_dest in
17296 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17297 # Strip MF so we end up with the name of the file.
17298 mf=`echo "$mf" | sed -e 's/:.*$//'`
17299 # Check whether this is an Automake generated Makefile or not.
17300 # We used to match only the files named `Makefile.in', but
17301 # some people rename them; so instead we look at the file content.
17302 # Grep'ing the first line is not enough: some people post-process
17303 # each Makefile.in and add a new line on top of each file to say so.
17304 # So let's grep whole file.
17305 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17306 dirpart=`(dirname "$mf") 2>/dev/null ||
17307 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17308 X"$mf" : 'X\(//\)[^/]' \| \
17309 X"$mf" : 'X\(//\)$' \| \
17310 X"$mf" : 'X\(/\)' \| \
17311 . : '\(.\)' 2>/dev/null ||
17312 echo X"$mf" |
17313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17315 /^X\(\/\/\)$/{ s//\1/; q; }
17316 /^X\(\/\).*/{ s//\1/; q; }
17317 s/.*/./; q'`
17318 else
17319 continue
17321 # Extract the definition of DEPDIR, am__include, and am__quote
17322 # from the Makefile without running `make'.
17323 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17324 test -z "$DEPDIR" && continue
17325 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17326 test -z "am__include" && continue
17327 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17328 # When using ansi2knr, U may be empty or an underscore; expand it
17329 U=`sed -n 's/^U = //p' < "$mf"`
17330 # Find all dependency output files, they are included files with
17331 # $(DEPDIR) in their names. We invoke sed twice because it is the
17332 # simplest approach to changing $(DEPDIR) to its actual value in the
17333 # expansion.
17334 for file in `sed -n "
17335 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17336 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17337 # Make sure the directory exists.
17338 test -f "$dirpart/$file" && continue
17339 fdir=`(dirname "$file") 2>/dev/null ||
17340 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17341 X"$file" : 'X\(//\)[^/]' \| \
17342 X"$file" : 'X\(//\)$' \| \
17343 X"$file" : 'X\(/\)' \| \
17344 . : '\(.\)' 2>/dev/null ||
17345 echo X"$file" |
17346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17348 /^X\(\/\/\)$/{ s//\1/; q; }
17349 /^X\(\/\).*/{ s//\1/; q; }
17350 s/.*/./; q'`
17351 { if $as_mkdir_p; then
17352 mkdir -p $dirpart/$fdir
17353 else
17354 as_dir=$dirpart/$fdir
17355 as_dirs=
17356 while test ! -d "$as_dir"; do
17357 as_dirs="$as_dir $as_dirs"
17358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17360 X"$as_dir" : 'X\(//\)[^/]' \| \
17361 X"$as_dir" : 'X\(//\)$' \| \
17362 X"$as_dir" : 'X\(/\)' \| \
17363 . : '\(.\)' 2>/dev/null ||
17364 echo X"$as_dir" |
17365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17367 /^X\(\/\/\)$/{ s//\1/; q; }
17368 /^X\(\/\).*/{ s//\1/; q; }
17369 s/.*/./; q'`
17370 done
17371 test ! -n "$as_dirs" || mkdir $as_dirs
17372 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17373 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17374 { (exit 1); exit 1; }; }; }
17376 # echo "creating $dirpart/$file"
17377 echo '# dummy' > "$dirpart/$file"
17378 done
17379 done
17381 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17382 case " $CONFIG_FILES " in
17383 *" Makefile "*)
17384 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17385 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17387 esac
17389 # Make subdirectories and `.d' files. Look in both srcdir and
17390 # builddir for the .java files.
17391 h=`${PWDCMD-pwd}`
17392 : > deps.mk
17393 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
17394 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
17395 fgrep -v testsuite | \
17396 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
17397 while read f; do
17398 echo "include $f" >> deps.mk
17399 test -f $f || {
17400 d=`echo $f | sed -e 's,/[^/]*$,,'`
17401 if test ! -d $d; then
17402 $libgcj_basedir/../mkinstalldirs $d
17404 echo > $f
17406 done
17408 esac
17409 done
17410 _ACEOF
17412 cat >>$CONFIG_STATUS <<\_ACEOF
17414 { (exit 0); exit 0; }
17415 _ACEOF
17416 chmod +x $CONFIG_STATUS
17417 ac_clean_files=$ac_clean_files_save
17420 # configure is writing to config.log, and then calls config.status.
17421 # config.status does its own redirection, appending to config.log.
17422 # Unfortunately, on DOS this fails, as config.log is still kept open
17423 # by configure, so config.status won't be able to write to it; its
17424 # output is simply discarded. So we exec the FD to /dev/null,
17425 # effectively closing config.log, so it can be properly (re)opened and
17426 # appended to by config.status. When coming back to configure, we
17427 # need to make the FD available again.
17428 if test "$no_create" != yes; then
17429 ac_cs_success=:
17430 ac_config_status_args=
17431 test "$silent" = yes &&
17432 ac_config_status_args="$ac_config_status_args --quiet"
17433 exec 5>/dev/null
17434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17435 exec 5>>config.log
17436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17437 # would make configure fail if this is the last instruction.
17438 $ac_cs_success || { (exit 1); exit 1; }
17442 # CONFIG_SUBDIRS section.
17444 if test "$no_recursion" != yes; then
17446 # Remove --cache-file and --srcdir arguments so they do not pile up.
17447 ac_sub_configure_args=
17448 ac_prev=
17449 for ac_arg in $ac_configure_args; do
17450 if test -n "$ac_prev"; then
17451 ac_prev=
17452 continue
17454 case $ac_arg in
17455 -cache-file | --cache-file | --cache-fil | --cache-fi \
17456 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17457 ac_prev=cache_file ;;
17458 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17459 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17460 | --c=*)
17462 --config-cache | -C)
17464 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17465 ac_prev=srcdir ;;
17466 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17468 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17469 ac_prev=prefix ;;
17470 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17472 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17473 esac
17474 done
17476 # Always prepend --prefix to ensure using the same prefix
17477 # in subdir configurations.
17478 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17480 ac_popdir=`pwd`
17481 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17483 # Do not complain, so a configure script can configure whichever
17484 # parts of a large source tree are present.
17485 test -d $srcdir/$ac_dir || continue
17487 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17488 echo "$as_me: configuring in $ac_dir" >&6;}
17489 { if $as_mkdir_p; then
17490 mkdir -p "$ac_dir"
17491 else
17492 as_dir="$ac_dir"
17493 as_dirs=
17494 while test ! -d "$as_dir"; do
17495 as_dirs="$as_dir $as_dirs"
17496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17498 X"$as_dir" : 'X\(//\)[^/]' \| \
17499 X"$as_dir" : 'X\(//\)$' \| \
17500 X"$as_dir" : 'X\(/\)' \| \
17501 . : '\(.\)' 2>/dev/null ||
17502 echo X"$as_dir" |
17503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17505 /^X\(\/\/\)$/{ s//\1/; q; }
17506 /^X\(\/\).*/{ s//\1/; q; }
17507 s/.*/./; q'`
17508 done
17509 test ! -n "$as_dirs" || mkdir $as_dirs
17510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17512 { (exit 1); exit 1; }; }; }
17514 ac_builddir=.
17516 if test "$ac_dir" != .; then
17517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17518 # A "../" for each directory in $ac_dir_suffix.
17519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17520 else
17521 ac_dir_suffix= ac_top_builddir=
17524 case $srcdir in
17525 .) # No --srcdir option. We are building in place.
17526 ac_srcdir=.
17527 if test -z "$ac_top_builddir"; then
17528 ac_top_srcdir=.
17529 else
17530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17531 fi ;;
17532 [\\/]* | ?:[\\/]* ) # Absolute path.
17533 ac_srcdir=$srcdir$ac_dir_suffix;
17534 ac_top_srcdir=$srcdir ;;
17535 *) # Relative path.
17536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17538 esac
17540 # Do not use `cd foo && pwd` to compute absolute paths, because
17541 # the directories may not exist.
17542 case `pwd` in
17543 .) ac_abs_builddir="$ac_dir";;
17545 case "$ac_dir" in
17546 .) ac_abs_builddir=`pwd`;;
17547 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17548 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17549 esac;;
17550 esac
17551 case $ac_abs_builddir in
17552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17554 case ${ac_top_builddir}. in
17555 .) ac_abs_top_builddir=$ac_abs_builddir;;
17556 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17557 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17558 esac;;
17559 esac
17560 case $ac_abs_builddir in
17561 .) ac_abs_srcdir=$ac_srcdir;;
17563 case $ac_srcdir in
17564 .) ac_abs_srcdir=$ac_abs_builddir;;
17565 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17566 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17567 esac;;
17568 esac
17569 case $ac_abs_builddir in
17570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17572 case $ac_top_srcdir in
17573 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17574 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17575 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17576 esac;;
17577 esac
17580 cd $ac_dir
17582 # Check for guested configure; otherwise get Cygnus style configure.
17583 if test -f $ac_srcdir/configure.gnu; then
17584 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17585 elif test -f $ac_srcdir/configure; then
17586 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17587 elif test -f $ac_srcdir/configure.in; then
17588 ac_sub_configure=$ac_configure
17589 else
17590 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17591 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17592 ac_sub_configure=
17595 # The recursion is here.
17596 if test -n "$ac_sub_configure"; then
17597 # Make the cache file name correct relative to the subdirectory.
17598 case $cache_file in
17599 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17600 *) # Relative path.
17601 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17602 esac
17604 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17605 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17606 # The eval makes quoting arguments work.
17607 eval $ac_sub_configure $ac_sub_configure_args \
17608 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17609 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17610 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17611 { (exit 1); exit 1; }; }
17614 cd "$ac_popdir"
17615 done