2006-08-18 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
[official-gcc.git] / libjava / configure
blob195b035fa747cb59e3f300f89a4faa41d77706ff
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 classpath 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 build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir libgcj_basedir 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 LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GCJH INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME 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_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC 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 USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC 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 --enable-plugin build gcjwebplugin web browser plugin
857 --enable-gconf-peer compile GConf native peers for util.preferences
858 --disable-dependency-tracking speeds up one-time build
859 --enable-dependency-tracking do not reject slow dependency extractors
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-libgcj-debug enable runtime debugging code
863 --enable-java-awt list of AWT peer implementations to be built
864 --enable-shared=PKGS build shared libraries default=yes
865 --enable-static=PKGS build static libraries default=yes
866 --enable-fast-install=PKGS optimize for fast installation default=yes
867 --disable-libtool-lock avoid locking (might break parallel builds)
868 --disable-getenv-properties
869 don't set system properties from GCJ_PROPERTIES
870 --enable-hash-synchronization
871 use global hash table for monitor locks
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-gc=TYPE choose garbage collector (default is boehm)
879 --disable-rpath do not hardcode runtime library paths
880 _g_switchUse thread-local storage
881 [default=yes]
883 Optional Packages:
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-build-libsubdir=DIR Directory where to find libraries for build system
887 --with-target-subdir=SUBDIR
888 configure in a subdirectory
889 --with-cross-host=HOST configure with a cross compiler from HOST
890 --with-newlib configure with newlib
891 --with-gnu-ld assume the C compiler uses GNU ld default=no
892 --with-pic try to use only PIC/non-PIC objects default=use both
893 --with-java-home=DIRECTORY
894 value of java.home system property
895 --with-win32-nlsapi=ansi or unicows or unicode
896 native MinGW libgcj Win32 OS API (default is ansi)
897 --without-libffi don't use libffi
898 --with-ecos enable runtime eCos target support
899 --with-system-zlib use installed libz
900 --with-x use the X Window System
901 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
902 --without-libiconv-prefix don't search for libiconv in includedir and libdir
904 Some influential environment variables:
905 CC C compiler command
906 CFLAGS C compiler flags
907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
908 nonstandard directory <lib dir>
909 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
910 headers in a nonstandard directory <include dir>
911 CXX C++ compiler command
912 CXXFLAGS C++ compiler flags
913 CXXCPP C++ preprocessor
914 CPP C preprocessor
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
919 _ACEOF
922 if test "$ac_init_help" = "recursive"; then
923 # If there are subdirs, report their specific --help.
924 ac_popdir=`pwd`
925 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926 test -d $ac_dir || continue
927 ac_builddir=.
929 if test "$ac_dir" != .; then
930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931 # A "../" for each directory in $ac_dir_suffix.
932 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 else
934 ac_dir_suffix= ac_top_builddir=
937 case $srcdir in
938 .) # No --srcdir option. We are building in place.
939 ac_srcdir=.
940 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=.
942 else
943 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 fi ;;
945 [\\/]* | ?:[\\/]* ) # Absolute path.
946 ac_srcdir=$srcdir$ac_dir_suffix;
947 ac_top_srcdir=$srcdir ;;
948 *) # Relative path.
949 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 esac
953 # Do not use `cd foo && pwd` to compute absolute paths, because
954 # the directories may not exist.
955 case `pwd` in
956 .) ac_abs_builddir="$ac_dir";;
958 case "$ac_dir" in
959 .) ac_abs_builddir=`pwd`;;
960 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
961 *) ac_abs_builddir=`pwd`/"$ac_dir";;
962 esac;;
963 esac
964 case $ac_abs_builddir in
965 .) ac_abs_top_builddir=${ac_top_builddir}.;;
967 case ${ac_top_builddir}. in
968 .) ac_abs_top_builddir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
970 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
971 esac;;
972 esac
973 case $ac_abs_builddir in
974 .) ac_abs_srcdir=$ac_srcdir;;
976 case $ac_srcdir in
977 .) ac_abs_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
979 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
980 esac;;
981 esac
982 case $ac_abs_builddir in
983 .) ac_abs_top_srcdir=$ac_top_srcdir;;
985 case $ac_top_srcdir in
986 .) ac_abs_top_srcdir=$ac_abs_builddir;;
987 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
988 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 esac;;
990 esac
992 cd $ac_dir
993 # Check for guested configure; otherwise get Cygnus style configure.
994 if test -f $ac_srcdir/configure.gnu; then
995 echo
996 $SHELL $ac_srcdir/configure.gnu --help=recursive
997 elif test -f $ac_srcdir/configure; then
998 echo
999 $SHELL $ac_srcdir/configure --help=recursive
1000 elif test -f $ac_srcdir/configure.ac ||
1001 test -f $ac_srcdir/configure.in; then
1002 echo
1003 $ac_configure --help
1004 else
1005 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 cd $ac_popdir
1008 done
1011 test -n "$ac_init_help" && exit 0
1012 if $ac_init_version; then
1013 cat <<\_ACEOF
1014 libjava configure version-unused
1015 generated by GNU Autoconf 2.59
1017 Copyright (C) 2003 Free Software Foundation, Inc.
1018 This configure script is free software; the Free Software Foundation
1019 gives unlimited permission to copy, distribute and modify it.
1020 _ACEOF
1021 exit 0
1023 exec 5>config.log
1024 cat >&5 <<_ACEOF
1025 This file contains any messages produced by compilers while
1026 running configure, to aid debugging if configure makes a mistake.
1028 It was created by libjava $as_me version-unused, which was
1029 generated by GNU Autoconf 2.59. Invocation command line was
1031 $ $0 $@
1033 _ACEOF
1035 cat <<_ASUNAME
1036 ## --------- ##
1037 ## Platform. ##
1038 ## --------- ##
1040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1052 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1057 _ASUNAME
1059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1060 for as_dir in $PATH
1062 IFS=$as_save_IFS
1063 test -z "$as_dir" && as_dir=.
1064 echo "PATH: $as_dir"
1065 done
1067 } >&5
1069 cat >&5 <<_ACEOF
1072 ## ----------- ##
1073 ## Core tests. ##
1074 ## ----------- ##
1076 _ACEOF
1079 # Keep a trace of the command line.
1080 # Strip out --no-create and --no-recursion so they do not pile up.
1081 # Strip out --silent because we don't want to record it for future runs.
1082 # Also quote any args containing shell meta-characters.
1083 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_configure_args=
1085 ac_configure_args0=
1086 ac_configure_args1=
1087 ac_sep=
1088 ac_must_keep_next=false
1089 for ac_pass in 1 2
1091 for ac_arg
1093 case $ac_arg in
1094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 continue ;;
1098 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1099 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1100 esac
1101 case $ac_pass in
1102 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1104 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1105 if test $ac_must_keep_next = true; then
1106 ac_must_keep_next=false # Got value, back to normal.
1107 else
1108 case $ac_arg in
1109 *=* | --config-cache | -C | -disable-* | --disable-* \
1110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1112 | -with-* | --with-* | -without-* | --without-* | --x)
1113 case "$ac_configure_args0 " in
1114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1115 esac
1117 -* ) ac_must_keep_next=true ;;
1118 esac
1120 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1121 # Get rid of the leading space.
1122 ac_sep=" "
1124 esac
1125 done
1126 done
1127 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1128 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1130 # When interrupted or exit'd, cleanup temporary files, and complete
1131 # config.log. We remove comments because anyway the quotes in there
1132 # would cause problems or look ugly.
1133 # WARNING: Be sure not to use single quotes in there, as some shells,
1134 # such as our DU 5.0 friend, will then `close' the trap.
1135 trap 'exit_status=$?
1136 # Save into config.log some information that might help in debugging.
1138 echo
1140 cat <<\_ASBOX
1141 ## ---------------- ##
1142 ## Cache variables. ##
1143 ## ---------------- ##
1144 _ASBOX
1145 echo
1146 # The following way of writing the cache mishandles newlines in values,
1148 (set) 2>&1 |
1149 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1150 *ac_space=\ *)
1151 sed -n \
1152 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 sed -n \
1157 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1159 esac;
1161 echo
1163 cat <<\_ASBOX
1164 ## ----------------- ##
1165 ## Output variables. ##
1166 ## ----------------- ##
1167 _ASBOX
1168 echo
1169 for ac_var in $ac_subst_vars
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1176 if test -n "$ac_subst_files"; then
1177 cat <<\_ASBOX
1178 ## ------------- ##
1179 ## Output files. ##
1180 ## ------------- ##
1181 _ASBOX
1182 echo
1183 for ac_var in $ac_subst_files
1185 eval ac_val=$`echo $ac_var`
1186 echo "$ac_var='"'"'$ac_val'"'"'"
1187 done | sort
1188 echo
1191 if test -s confdefs.h; then
1192 cat <<\_ASBOX
1193 ## ----------- ##
1194 ## confdefs.h. ##
1195 ## ----------- ##
1196 _ASBOX
1197 echo
1198 sed "/^$/d" confdefs.h | sort
1199 echo
1201 test "$ac_signal" != 0 &&
1202 echo "$as_me: caught signal $ac_signal"
1203 echo "$as_me: exit $exit_status"
1204 } >&5
1205 rm -f core *.core &&
1206 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1207 exit $exit_status
1209 for ac_signal in 1 2 13 15; do
1210 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 done
1212 ac_signal=0
1214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1215 rm -rf conftest* confdefs.h
1216 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1217 echo >confdefs.h
1219 # Predefined preprocessor variables.
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 _ACEOF
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 _ACEOF
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 _ACEOF
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 _ACEOF
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 _ACEOF
1246 # Let the site file select an alternate cache file if it wants to.
1247 # Prefer explicitly selected file to automatically selected ones.
1248 if test -z "$CONFIG_SITE"; then
1249 if test "x$prefix" != xNONE; then
1250 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 else
1252 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1255 for ac_site_file in $CONFIG_SITE; do
1256 if test -r "$ac_site_file"; then
1257 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1258 echo "$as_me: loading site script $ac_site_file" >&6;}
1259 sed 's/^/| /' "$ac_site_file" >&5
1260 . "$ac_site_file"
1262 done
1264 if test -r "$cache_file"; then
1265 # Some versions of bash will fail to source /dev/null (special
1266 # files actually), so we avoid doing that.
1267 if test -f "$cache_file"; then
1268 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1269 echo "$as_me: loading cache $cache_file" >&6;}
1270 case $cache_file in
1271 [\\/]* | ?:[\\/]* ) . $cache_file;;
1272 *) . ./$cache_file;;
1273 esac
1275 else
1276 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1277 echo "$as_me: creating cache $cache_file" >&6;}
1278 >$cache_file
1281 # Check that the precious variables saved in the cache have kept the same
1282 # value.
1283 ac_cache_corrupted=false
1284 for ac_var in `(set) 2>&1 |
1285 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1286 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1287 eval ac_new_set=\$ac_env_${ac_var}_set
1288 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1289 eval ac_new_val="\$ac_env_${ac_var}_value"
1290 case $ac_old_set,$ac_new_set in
1291 set,)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,set)
1296 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1297 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1298 ac_cache_corrupted=: ;;
1299 ,);;
1301 if test "x$ac_old_val" != "x$ac_new_val"; then
1302 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1303 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1304 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1305 echo "$as_me: former value: $ac_old_val" >&2;}
1306 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1307 echo "$as_me: current value: $ac_new_val" >&2;}
1308 ac_cache_corrupted=:
1309 fi;;
1310 esac
1311 # Pass precious variables to config.status.
1312 if test "$ac_new_set" = set; then
1313 case $ac_new_val in
1314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1315 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1316 *) ac_arg=$ac_var=$ac_new_val ;;
1317 esac
1318 case " $ac_configure_args " in
1319 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1320 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1321 esac
1323 done
1324 if $ac_cache_corrupted; then
1325 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1326 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1327 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1328 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1329 { (exit 1); exit 1; }; }
1332 ac_ext=c
1333 ac_cpp='$CPP $CPPFLAGS'
1334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 ac_aux_dir=
1368 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1369 if test -f $ac_dir/install-sh; then
1370 ac_aux_dir=$ac_dir
1371 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 break
1373 elif test -f $ac_dir/install.sh; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 break
1377 elif test -f $ac_dir/shtool; then
1378 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/shtool install -c"
1380 break
1382 done
1383 if test -z "$ac_aux_dir"; then
1384 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1386 { (exit 1); exit 1; }; }
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392 # Make sure we can run config.sub.
1393 $ac_config_sub sun4 >/dev/null 2>&1 ||
1394 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1395 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1396 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: checking build system type" >&5
1399 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1400 if test "${ac_cv_build+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 else
1403 ac_cv_build_alias=$build_alias
1404 test -z "$ac_cv_build_alias" &&
1405 ac_cv_build_alias=`$ac_config_guess`
1406 test -z "$ac_cv_build_alias" &&
1407 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1408 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1409 { (exit 1); exit 1; }; }
1410 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1417 echo "${ECHO_T}$ac_cv_build" >&6
1418 build=$ac_cv_build
1419 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 case ${build_alias} in
1425 "") build_noncanonical=${build} ;;
1426 *) build_noncanonical=${build_alias} ;;
1427 esac
1429 case ${host_alias} in
1430 "") host_noncanonical=${build_noncanonical} ;;
1431 *) host_noncanonical=${host_alias} ;;
1432 esac
1434 case ${target_alias} in
1435 "") target_noncanonical=${host_noncanonical} ;;
1436 *) target_noncanonical=${target_alias} ;;
1437 esac
1440 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1441 # have matching libraries, they should use host libraries: Makefile.tpl
1442 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1443 # However, they still use the build modules, because the corresponding
1444 # host modules (e.g. bison) are only built for the host when bootstrap
1445 # finishes. So:
1446 # - build_subdir is where we find build modules, and never changes.
1447 # - build_libsubdir is where we find build libraries, and can be overridden.
1449 # Prefix 'build-' so this never conflicts with target_subdir.
1450 build_subdir="build-${build_noncanonical}"
1452 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1453 if test "${with_build_libsubdir+set}" = set; then
1454 withval="$with_build_libsubdir"
1455 build_libsubdir="$withval"
1456 else
1457 build_libsubdir="$build_subdir"
1459 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1460 if ( test $srcdir = . && test -d gcc ) \
1461 || test -d $srcdir/../host-${host_noncanonical}; then
1462 host_subdir="host-${host_noncanonical}"
1463 else
1464 host_subdir=.
1466 # No prefix.
1467 target_subdir=${target_noncanonical}
1470 # We use these options to decide which functions to include.
1472 # Check whether --with-target-subdir or --without-target-subdir was given.
1473 if test "${with_target_subdir+set}" = set; then
1474 withval="$with_target_subdir"
1478 # We may get other options which we don't document:
1479 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1481 # When building with srcdir == objdir, links to the source files will
1482 # be created in directories within the target_subdir. We have to
1483 # adjust toplevel_srcdir accordingly, so that configure finds
1484 # install-sh and other auxiliary files that live in the top-level
1485 # source directory.
1486 if test "${srcdir}" = "."; then
1487 if test -z "${with_target_subdir}"; then
1488 toprel=".."
1489 else
1490 if test "${with_target_subdir}" != "."; then
1491 toprel="${with_multisrctop}../.."
1492 else
1493 toprel="${with_multisrctop}.."
1496 else
1497 toprel=".."
1500 libgcj_basedir=$srcdir/$toprel/./libjava
1503 echo "$as_me:$LINENO: checking host system type" >&5
1504 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1505 if test "${ac_cv_host+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_host_alias=$host_alias
1509 test -z "$ac_cv_host_alias" &&
1510 ac_cv_host_alias=$ac_cv_build_alias
1511 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1514 { (exit 1); exit 1; }; }
1517 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1518 echo "${ECHO_T}$ac_cv_host" >&6
1519 host=$ac_cv_host
1520 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 echo "$as_me:$LINENO: checking target system type" >&5
1526 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1527 if test "${ac_cv_target+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530 ac_cv_target_alias=$target_alias
1531 test "x$ac_cv_target_alias" = "x" &&
1532 ac_cv_target_alias=$ac_cv_host_alias
1533 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1540 echo "${ECHO_T}$ac_cv_target" >&6
1541 target=$ac_cv_target
1542 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547 # The aliases save the names the user supplied, while $host etc.
1548 # will get canonicalized.
1549 test -n "$target_alias" &&
1550 test "$program_prefix$program_suffix$program_transform_name" = \
1551 NONENONEs,x,x, &&
1552 program_prefix=${target_alias}-
1553 case ${build_alias} in
1554 "") build_noncanonical=${build} ;;
1555 *) build_noncanonical=${build_alias} ;;
1556 esac
1558 case ${target_alias} in
1559 "") target_noncanonical=${host_noncanonical} ;;
1560 *) target_noncanonical=${target_alias} ;;
1561 esac
1566 # This works around the fact that libtool configuration may change LD
1567 # for this particular configuration, but some shells, instead of
1568 # keeping the changes in LD private, export them just because LD is
1569 # exported.
1570 ORIGINAL_LD_FOR_MULTILIBS=$LD
1572 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1573 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1574 LN_S=$as_ln_s
1575 if test "$LN_S" = "ln -s"; then
1576 echo "$as_me:$LINENO: result: yes" >&5
1577 echo "${ECHO_T}yes" >&6
1578 else
1579 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1580 echo "${ECHO_T}no, using $LN_S" >&6
1584 # This works around an automake problem.
1585 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1589 # Check whether --with-cross-host or --without-cross-host was given.
1590 if test "${with_cross_host+set}" = set; then
1591 withval="$with_cross_host"
1596 # Check whether --with-newlib or --without-newlib was given.
1597 if test "${with_newlib+set}" = set; then
1598 withval="$with_newlib"
1602 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1603 if test "${enable_version_specific_runtime_libs+set}" = set; then
1604 enableval="$enable_version_specific_runtime_libs"
1605 case "$enableval" in
1606 yes) version_specific_libs=yes ;;
1607 no) version_specific_libs=no ;;
1608 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1609 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1610 { (exit 1); exit 1; }; };;
1611 esac
1612 else
1613 version_specific_libs=no
1617 # Default to --enable-multilib
1618 # Check whether --enable-multilib or --disable-multilib was given.
1619 if test "${enable_multilib+set}" = set; then
1620 enableval="$enable_multilib"
1621 case "${enableval}" in
1622 yes) multilib=yes ;;
1623 no) multilib=no ;;
1624 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1625 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1626 { (exit 1); exit 1; }; } ;;
1627 esac
1628 else
1629 multilib=yes
1631 # Check whether --enable-plugin or --disable-plugin was given.
1632 if test "${enable_plugin+set}" = set; then
1633 enableval="$enable_plugin"
1634 case "$enableval" in
1635 yes) plugin_enabled=yes ;;
1636 no) plugin_enabled=no ;;
1637 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1638 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1639 { (exit 1); exit 1; }; };;
1640 esac
1641 else
1642 plugin_enabled=no
1646 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1647 if test "${enable_gconf_peer+set}" = set; then
1648 enableval="$enable_gconf_peer"
1649 case "$enableval" in
1650 yes) gconf_enabled=yes ;;
1651 no) gconf_enabled=no ;;
1652 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1653 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1654 { (exit 1); exit 1; }; };;
1655 esac
1656 else
1657 gconf_enabled=no
1661 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1664 # (1) We use an abnormal CXX (without library references), so we
1665 # must cache it under a different name.
1666 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1667 # the non-multilib-adjusted value will be used in multilibs.
1668 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1669 # (4) As another side effect, automake doesn't automatically include them
1670 # in Makefile.in.
1671 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1672 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1673 # used in later tests. This may not be necessary in libjava; I don't know.
1677 save_CXXFLAGS="$CXXFLAGS"
1678 CXXFLAGS="$CXXFLAGS -fno-builtin"
1679 ac_ext=c
1680 ac_cpp='$CPP $CPPFLAGS'
1681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1684 if test -n "$ac_tool_prefix"; then
1685 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1686 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 break 2
1706 done
1707 done
1711 CC=$ac_cv_prog_CC
1712 if test -n "$CC"; then
1713 echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1715 else
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1721 if test -z "$ac_cv_prog_CC"; then
1722 ac_ct_CC=$CC
1723 # Extract the first word of "gcc", so it can be a program name with args.
1724 set dummy gcc; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="gcc"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1744 done
1745 done
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 CC=$ac_ct_CC
1759 else
1760 CC="$ac_cv_prog_CC"
1763 if test -z "$CC"; then
1764 if test -n "$ac_tool_prefix"; then
1765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1766 set dummy ${ac_tool_prefix}cc; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 else
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_prog_CC="${ac_tool_prefix}cc"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 break 2
1786 done
1787 done
1791 CC=$ac_cv_prog_CC
1792 if test -n "$CC"; then
1793 echo "$as_me:$LINENO: result: $CC" >&5
1794 echo "${ECHO_T}$CC" >&6
1795 else
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1801 if test -z "$ac_cv_prog_CC"; then
1802 ac_ct_CC=$CC
1803 # Extract the first word of "cc", so it can be a program name with args.
1804 set dummy cc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810 if test -n "$ac_ct_CC"; then
1811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1816 IFS=$as_save_IFS
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_ac_ct_CC="cc"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 break 2
1824 done
1825 done
1829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1830 if test -n "$ac_ct_CC"; then
1831 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1832 echo "${ECHO_T}$ac_ct_CC" >&6
1833 else
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1838 CC=$ac_ct_CC
1839 else
1840 CC="$ac_cv_prog_CC"
1844 if test -z "$CC"; then
1845 # Extract the first word of "cc", so it can be a program name with args.
1846 set dummy cc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$CC"; then
1853 ac_cv_prog_CC="$CC" # Let the user override the test.
1854 else
1855 ac_prog_rejected=no
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1864 ac_prog_rejected=yes
1865 continue
1867 ac_cv_prog_CC="cc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1874 if test $ac_prog_rejected = yes; then
1875 # We found a bogon in the path, so make sure we never use it.
1876 set dummy $ac_cv_prog_CC
1877 shift
1878 if test $# != 0; then
1879 # We chose a different compiler from the bogus one.
1880 # However, it has the same basename, so the bogon will be chosen
1881 # first if we set CC to just the basename; use the full file name.
1882 shift
1883 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890 echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1898 if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 for ac_prog in cl
1902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930 echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1937 test -n "$CC" && break
1938 done
1940 if test -z "$CC"; then
1941 ac_ct_CC=$CC
1942 for ac_prog in cl
1944 # Extract the first word of "$ac_prog", so it can be a program name with args.
1945 set dummy $ac_prog; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_ac_ct_CC="$ac_prog"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 break 2
1965 done
1966 done
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1979 test -n "$ac_ct_CC" && break
1980 done
1982 CC=$ac_ct_CC
1988 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1989 See \`config.log' for more details." >&5
1990 echo "$as_me: error: no acceptable C compiler found in \$PATH
1991 See \`config.log' for more details." >&2;}
1992 { (exit 1); exit 1; }; }
1994 # Provide some information about the compiler.
1995 echo "$as_me:$LINENO:" \
1996 "checking for C compiler version" >&5
1997 ac_compiler=`set X $ac_compile; echo $2`
1998 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1999 (eval $ac_compiler --version </dev/null >&5) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2004 (eval $ac_compiler -v </dev/null >&5) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }
2008 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2009 (eval $ac_compiler -V </dev/null >&5) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2014 cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h. */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2022 main ()
2026 return 0;
2028 _ACEOF
2029 # FIXME: Cleanup?
2030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2031 (eval $ac_link) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 gcc_no_link=no
2036 else
2037 gcc_no_link=yes
2040 if test x$gcc_no_link = xyes; then
2041 # Setting cross_compile will disable run tests; it will
2042 # also disable AC_CHECK_FILE but that's generally
2043 # correct if we can't link.
2044 cross_compiling=yes
2045 EXEEXT=
2046 else
2047 cat >conftest.$ac_ext <<_ACEOF
2048 /* confdefs.h. */
2049 _ACEOF
2050 cat confdefs.h >>conftest.$ac_ext
2051 cat >>conftest.$ac_ext <<_ACEOF
2052 /* end confdefs.h. */
2055 main ()
2059 return 0;
2061 _ACEOF
2062 ac_clean_files_save=$ac_clean_files
2063 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2064 # Try to create an executable without -o first, disregard a.out.
2065 # It will help us diagnose broken compilers, and finding out an intuition
2066 # of exeext.
2067 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2068 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2069 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2070 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2071 (eval $ac_link_default) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; then
2075 # Find the output, starting from the most likely. This scheme is
2076 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2077 # resort.
2079 # Be careful to initialize this variable, since it used to be cached.
2080 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2081 ac_cv_exeext=
2082 # b.out is created by i960 compilers.
2083 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2085 test -f "$ac_file" || continue
2086 case $ac_file in
2087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2089 conftest.$ac_ext )
2090 # This is the source file.
2092 [ab].out )
2093 # We found the default executable, but exeext='' is most
2094 # certainly right.
2095 break;;
2096 *.* )
2097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2098 # FIXME: I believe we export ac_cv_exeext for Libtool,
2099 # but it would be cool to find out if it's true. Does anybody
2100 # maintain Libtool? --akim.
2101 export ac_cv_exeext
2102 break;;
2104 break;;
2105 esac
2106 done
2107 else
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2111 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: C compiler cannot create executables
2114 See \`config.log' for more details." >&2;}
2115 { (exit 77); exit 77; }; }
2118 ac_exeext=$ac_cv_exeext
2119 echo "$as_me:$LINENO: result: $ac_file" >&5
2120 echo "${ECHO_T}$ac_file" >&6
2122 # Check the compiler produces executables we can run. If not, either
2123 # the compiler is broken, or we cross compile.
2124 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2125 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2126 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2127 # If not cross compiling, check that we can run a simple program.
2128 if test "$cross_compiling" != yes; then
2129 if { ac_try='./$ac_file'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 (eval $ac_try) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; }; then
2135 cross_compiling=no
2136 else
2137 if test "$cross_compiling" = maybe; then
2138 cross_compiling=yes
2139 else
2140 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2141 If you meant to cross compile, use \`--host'.
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: cannot run C compiled programs.
2144 If you meant to cross compile, use \`--host'.
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2150 echo "$as_me:$LINENO: result: yes" >&5
2151 echo "${ECHO_T}yes" >&6
2153 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2154 ac_clean_files=$ac_clean_files_save
2155 # Check the compiler produces executables we can run. If not, either
2156 # the compiler is broken, or we cross compile.
2157 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2158 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2159 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2160 echo "${ECHO_T}$cross_compiling" >&6
2162 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2163 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2165 (eval $ac_link) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2170 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2171 # work properly (i.e., refer to `conftest.exe'), while it won't with
2172 # `rm'.
2173 for ac_file in conftest.exe conftest conftest.*; do
2174 test -f "$ac_file" || continue
2175 case $ac_file in
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178 export ac_cv_exeext
2179 break;;
2180 * ) break;;
2181 esac
2182 done
2183 else
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2191 rm -f conftest$ac_cv_exeext
2192 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2193 echo "${ECHO_T}$ac_cv_exeext" >&6
2195 rm -f conftest.$ac_ext
2196 EXEEXT=$ac_cv_exeext
2197 ac_exeext=$EXEEXT
2199 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2200 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2201 if test "${ac_cv_objext+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h. */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2212 main ()
2216 return 0;
2218 _ACEOF
2219 rm -f conftest.o conftest.obj
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; then
2225 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2226 case $ac_file in
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2229 break;;
2230 esac
2231 done
2232 else
2233 echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2236 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2245 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2246 echo "${ECHO_T}$ac_cv_objext" >&6
2247 OBJEXT=$ac_cv_objext
2248 ac_objext=$OBJEXT
2249 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2250 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2251 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2262 main ()
2264 #ifndef __GNUC__
2265 choke me
2266 #endif
2269 return 0;
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 ac_compiler_gnu=yes
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2299 ac_compiler_gnu=no
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2307 GCC=`test $ac_compiler_gnu = yes && echo yes`
2308 ac_test_CFLAGS=${CFLAGS+set}
2309 ac_save_CFLAGS=$CFLAGS
2310 CFLAGS="-g"
2311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2313 if test "${ac_cv_prog_cc_g+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h. */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2324 main ()
2328 return 0;
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2334 ac_status=$?
2335 grep -v '^ *+' conftest.er1 >conftest.err
2336 rm -f conftest.er1
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 ac_cv_prog_cc_g=yes
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2358 ac_cv_prog_cc_g=no
2360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2362 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2364 if test "$ac_test_CFLAGS" = set; then
2365 CFLAGS=$ac_save_CFLAGS
2366 elif test $ac_cv_prog_cc_g = yes; then
2367 if test "$GCC" = yes; then
2368 CFLAGS="-g -O2"
2369 else
2370 CFLAGS="-g"
2372 else
2373 if test "$GCC" = yes; then
2374 CFLAGS="-O2"
2375 else
2376 CFLAGS=
2379 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2380 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2381 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384 ac_cv_prog_cc_stdc=no
2385 ac_save_CC=$CC
2386 cat >conftest.$ac_ext <<_ACEOF
2387 /* confdefs.h. */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2392 #include <stdarg.h>
2393 #include <stdio.h>
2394 #include <sys/types.h>
2395 #include <sys/stat.h>
2396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2397 struct buf { int x; };
2398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2399 static char *e (p, i)
2400 char **p;
2401 int i;
2403 return p[i];
2405 static char *f (char * (*g) (char **, int), char **p, ...)
2407 char *s;
2408 va_list v;
2409 va_start (v,p);
2410 s = g (p, va_arg (v,int));
2411 va_end (v);
2412 return s;
2415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2416 function prototypes and stuff, but not '\xHH' hex character constants.
2417 These don't provoke an error unfortunately, instead are silently treated
2418 as 'x'. The following induces an error, until -std1 is added to get
2419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2420 array size at least. It's necessary to write '\x00'==0 to get something
2421 that's true only with -std1. */
2422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2424 int test (int i, double x);
2425 struct s1 {int (*f) (int a);};
2426 struct s2 {int (*f) (double a);};
2427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2428 int argc;
2429 char **argv;
2431 main ()
2433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2435 return 0;
2437 _ACEOF
2438 # Don't try gcc -ansi; that turns off useful extensions and
2439 # breaks some systems' header files.
2440 # AIX -qlanglvl=ansi
2441 # Ultrix and OSF/1 -std1
2442 # HP-UX 10.20 and later -Ae
2443 # HP-UX older versions -Aa -D_HPUX_SOURCE
2444 # SVR4 -Xc -D__EXTENSIONS__
2445 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2447 CC="$ac_save_CC $ac_arg"
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_prog_cc_stdc=$ac_arg
2471 break
2472 else
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2477 rm -f conftest.err conftest.$ac_objext
2478 done
2479 rm -f conftest.$ac_ext conftest.$ac_objext
2480 CC=$ac_save_CC
2484 case "x$ac_cv_prog_cc_stdc" in
2485 x|xno)
2486 echo "$as_me:$LINENO: result: none needed" >&5
2487 echo "${ECHO_T}none needed" >&6 ;;
2489 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2490 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2491 CC="$CC $ac_cv_prog_cc_stdc" ;;
2492 esac
2494 # Some people use a C++ compiler to compile C. Since we use `exit',
2495 # in C++ we need to declare it. In case someone uses the same compiler
2496 # for both compiling C and C++ we need to have the C++ compiler decide
2497 # the declaration of exit, since it's the most demanding environment.
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #ifndef __cplusplus
2500 choke me
2501 #endif
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2506 ac_status=$?
2507 grep -v '^ *+' conftest.er1 >conftest.err
2508 rm -f conftest.er1
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -z "$ac_c_werror_flag"
2513 || test ! -s conftest.err'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2525 for ac_declaration in \
2526 '' \
2527 'extern "C" void std::exit (int) throw (); using std::exit;' \
2528 'extern "C" void std::exit (int); using std::exit;' \
2529 'extern "C" void exit (int) throw ();' \
2530 'extern "C" void exit (int);' \
2531 'void exit (int);'
2533 cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h. */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2539 $ac_declaration
2540 #include <stdlib.h>
2542 main ()
2544 exit (42);
2546 return 0;
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2572 else
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576 continue
2578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2579 cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2585 $ac_declaration
2587 main ()
2589 exit (42);
2591 return 0;
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 break
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623 done
2624 rm -f conftest*
2625 if test -n "$ac_declaration"; then
2626 echo '#ifdef __cplusplus' >>confdefs.h
2627 echo $ac_declaration >>confdefs.h
2628 echo '#endif' >>confdefs.h
2631 else
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 ac_ext=cc
2644 ac_cpp='$CXXCPP $CPPFLAGS'
2645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2648 if test -n "$ac_tool_prefix"; then
2649 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 if test -n "$CXX"; then
2659 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2677 CXX=$glibcxx_cv_prog_CXX
2678 if test -n "$CXX"; then
2679 echo "$as_me:$LINENO: result: $CXX" >&5
2680 echo "${ECHO_T}$CXX" >&6
2681 else
2682 echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2686 test -n "$CXX" && break
2687 done
2689 if test -z "$CXX"; then
2690 ac_ct_CXX=$CXX
2691 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 if test -n "$ac_ct_CXX"; then
2701 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_ac_ct_CXX="$ac_prog"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2714 done
2715 done
2719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2720 if test -n "$ac_ct_CXX"; then
2721 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2722 echo "${ECHO_T}$ac_ct_CXX" >&6
2723 else
2724 echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2728 test -n "$ac_ct_CXX" && break
2729 done
2730 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2732 CXX=$ac_ct_CXX
2736 # Provide some information about the compiler.
2737 echo "$as_me:$LINENO:" \
2738 "checking for C++ compiler version" >&5
2739 ac_compiler=`set X $ac_compile; echo $2`
2740 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2741 (eval $ac_compiler --version </dev/null >&5) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }
2745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2746 (eval $ac_compiler -v </dev/null >&5) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2751 (eval $ac_compiler -V </dev/null >&5) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2756 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2757 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2758 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2769 main ()
2771 #ifndef __GNUC__
2772 choke me
2773 #endif
2776 return 0;
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_cxx_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 ac_compiler_gnu=yes
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 ac_compiler_gnu=no
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2812 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2813 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2814 GXX=`test $ac_compiler_gnu = yes && echo yes`
2815 ac_test_CXXFLAGS=${CXXFLAGS+set}
2816 ac_save_CXXFLAGS=$CXXFLAGS
2817 CXXFLAGS="-g"
2818 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2819 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2820 if test "${ac_cv_prog_cxx_g+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2831 main ()
2835 return 0;
2837 _ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try='test -z "$ac_cxx_werror_flag"
2848 || test ! -s conftest.err'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 (eval $ac_try) 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 ac_cv_prog_cxx_g=yes
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 ac_cv_prog_cxx_g=no
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2870 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2871 if test "$ac_test_CXXFLAGS" = set; then
2872 CXXFLAGS=$ac_save_CXXFLAGS
2873 elif test $ac_cv_prog_cxx_g = yes; then
2874 if test "$GXX" = yes; then
2875 CXXFLAGS="-g -O2"
2876 else
2877 CXXFLAGS="-g"
2879 else
2880 if test "$GXX" = yes; then
2881 CXXFLAGS="-O2"
2882 else
2883 CXXFLAGS=
2886 for ac_declaration in \
2887 '' \
2888 'extern "C" void std::exit (int) throw (); using std::exit;' \
2889 'extern "C" void std::exit (int); using std::exit;' \
2890 'extern "C" void exit (int) throw ();' \
2891 'extern "C" void exit (int);' \
2892 'void exit (int);'
2894 cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h. */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2900 $ac_declaration
2901 #include <stdlib.h>
2903 main ()
2905 exit (42);
2907 return 0;
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -z "$ac_cxx_werror_flag"
2920 || test ! -s conftest.err'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 continue
2939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 $ac_declaration
2948 main ()
2950 exit (42);
2952 return 0;
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957 (eval $ac_compile) 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag"
2965 || test ! -s conftest.err'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 break
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984 done
2985 rm -f conftest*
2986 if test -n "$ac_declaration"; then
2987 echo '#ifdef __cplusplus' >>confdefs.h
2988 echo $ac_declaration >>confdefs.h
2989 echo '#endif' >>confdefs.h
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998 CXXFLAGS="$save_CXXFLAGS"
3004 am__api_version="1.9"
3005 # Find a good install program. We prefer a C program (faster),
3006 # so one script is as good as another. But avoid the broken or
3007 # incompatible versions:
3008 # SysV /etc/install, /usr/sbin/install
3009 # SunOS /usr/etc/install
3010 # IRIX /sbin/install
3011 # AIX /bin/install
3012 # AmigaOS /C/install, which installs bootblocks on floppy discs
3013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3016 # OS/2's system install, which has a completely different semantic
3017 # ./install, which can be erroneously created by make from ./install.sh.
3018 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3020 if test -z "$INSTALL"; then
3021 if test "${ac_cv_path_install+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 # Account for people who put trailing slashes in PATH elements.
3030 case $as_dir/ in
3031 ./ | .// | /cC/* | \
3032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3034 /usr/ucb/* ) ;;
3036 # OSF1 and SCO ODT 3.0 have their own names for install.
3037 # Don't use installbsd from OSF since it installs stuff as root
3038 # by default.
3039 for ac_prog in ginstall scoinst install; do
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3042 if test $ac_prog = install &&
3043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3044 # AIX install. It has an incompatible calling convention.
3046 elif test $ac_prog = install &&
3047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3048 # program-specific install script used by HP pwplus--don't use.
3050 else
3051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3052 break 3
3055 done
3056 done
3058 esac
3059 done
3063 if test "${ac_cv_path_install+set}" = set; then
3064 INSTALL=$ac_cv_path_install
3065 else
3066 # As a last resort, use the slow shell script. We don't cache a
3067 # path for INSTALL within a source directory, because that will
3068 # break other packages using the cache if that directory is
3069 # removed, or if the path is relative.
3070 INSTALL=$ac_install_sh
3073 echo "$as_me:$LINENO: result: $INSTALL" >&5
3074 echo "${ECHO_T}$INSTALL" >&6
3076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3077 # It thinks the first close brace ends the variable substitution.
3078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3084 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3085 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3086 # Just in case
3087 sleep 1
3088 echo timestamp > conftest.file
3089 # Do `set' in a subshell so we don't clobber the current shell's
3090 # arguments. Must try -L first in case configure is actually a
3091 # symlink; some systems play weird games with the mod time of symlinks
3092 # (eg FreeBSD returns the mod time of the symlink's containing
3093 # directory).
3094 if (
3095 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3096 if test "$*" = "X"; then
3097 # -L didn't work.
3098 set X `ls -t $srcdir/configure conftest.file`
3100 rm -f conftest.file
3101 if test "$*" != "X $srcdir/configure conftest.file" \
3102 && test "$*" != "X conftest.file $srcdir/configure"; then
3104 # If neither matched, then we have a broken ls. This can happen
3105 # if, for instance, CONFIG_SHELL is bash and it inherits a
3106 # broken ls alias from the environment. This has actually
3107 # happened. Such a system could not be considered "sane".
3108 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3109 alias in your environment" >&5
3110 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3111 alias in your environment" >&2;}
3112 { (exit 1); exit 1; }; }
3115 test "$2" = conftest.file
3117 then
3118 # Ok.
3120 else
3121 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3122 Check your system clock" >&5
3123 echo "$as_me: error: newly created file is older than distributed files!
3124 Check your system clock" >&2;}
3125 { (exit 1); exit 1; }; }
3127 echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3129 test "$program_prefix" != NONE &&
3130 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3131 # Use a double $ so make ignores it.
3132 test "$program_suffix" != NONE &&
3133 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3134 # Double any \ or $. echo might interpret backslashes.
3135 # By default was `s,x,x', remove it if useless.
3136 cat <<\_ACEOF >conftest.sed
3137 s/[\\$]/&&/g;s/;s,x,x,$//
3138 _ACEOF
3139 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3140 rm conftest.sed
3142 # expand $ac_aux_dir to an absolute path
3143 am_aux_dir=`cd $ac_aux_dir && pwd`
3145 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3146 # Use eval to expand $SHELL
3147 if eval "$MISSING --run true"; then
3148 am_missing_run="$MISSING --run "
3149 else
3150 am_missing_run=
3151 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3152 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3155 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3156 # We used to keeping the `.' as first argument, in order to
3157 # allow $(mkdir_p) to be used without argument. As in
3158 # $(mkdir_p) $(somedir)
3159 # where $(somedir) is conditionally defined. However this is wrong
3160 # for two reasons:
3161 # 1. if the package is installed by a user who cannot write `.'
3162 # make install will fail,
3163 # 2. the above comment should most certainly read
3164 # $(mkdir_p) $(DESTDIR)$(somedir)
3165 # so it does not work when $(somedir) is undefined and
3166 # $(DESTDIR) is not.
3167 # To support the latter case, we have to write
3168 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3169 # so the `.' trick is pointless.
3170 mkdir_p='mkdir -p --'
3171 else
3172 # On NextStep and OpenStep, the `mkdir' command does not
3173 # recognize any option. It will interpret all options as
3174 # directories to create, and then abort because `.' already
3175 # exists.
3176 for d in ./-p ./--version;
3178 test -d $d && rmdir $d
3179 done
3180 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3181 if test -f "$ac_aux_dir/mkinstalldirs"; then
3182 mkdir_p='$(mkinstalldirs)'
3183 else
3184 mkdir_p='$(install_sh) -d'
3188 for ac_prog in gawk mawk nawk awk
3190 # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy $ac_prog; ac_word=$2
3192 echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194 if test "${ac_cv_prog_AWK+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 if test -n "$AWK"; then
3198 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207 ac_cv_prog_AWK="$ac_prog"
3208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3211 done
3212 done
3216 AWK=$ac_cv_prog_AWK
3217 if test -n "$AWK"; then
3218 echo "$as_me:$LINENO: result: $AWK" >&5
3219 echo "${ECHO_T}$AWK" >&6
3220 else
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3225 test -n "$AWK" && break
3226 done
3228 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3229 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3230 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3231 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 cat >conftest.make <<\_ACEOF
3235 all:
3236 @echo 'ac_maketemp="$(MAKE)"'
3237 _ACEOF
3238 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3239 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3240 if test -n "$ac_maketemp"; then
3241 eval ac_cv_prog_make_${ac_make}_set=yes
3242 else
3243 eval ac_cv_prog_make_${ac_make}_set=no
3245 rm -f conftest.make
3247 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3248 echo "$as_me:$LINENO: result: yes" >&5
3249 echo "${ECHO_T}yes" >&6
3250 SET_MAKE=
3251 else
3252 echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3254 SET_MAKE="MAKE=${MAKE-make}"
3257 rm -rf .tst 2>/dev/null
3258 mkdir .tst 2>/dev/null
3259 if test -d .tst; then
3260 am__leading_dot=.
3261 else
3262 am__leading_dot=_
3264 rmdir .tst 2>/dev/null
3266 DEPDIR="${am__leading_dot}deps"
3268 ac_config_commands="$ac_config_commands depfiles"
3271 am_make=${MAKE-make}
3272 cat > confinc << 'END'
3273 am__doit:
3274 @echo done
3275 .PHONY: am__doit
3277 # If we don't find an include directive, just comment out the code.
3278 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3279 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3280 am__include="#"
3281 am__quote=
3282 _am_result=none
3283 # First try GNU make style include.
3284 echo "include confinc" > confmf
3285 # We grep out `Entering directory' and `Leaving directory'
3286 # messages which can occur if `w' ends up in MAKEFLAGS.
3287 # In particular we don't look at `^make:' because GNU make might
3288 # be invoked under some other name (usually "gmake"), in which
3289 # case it prints its new name instead of `make'.
3290 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3291 am__include=include
3292 am__quote=
3293 _am_result=GNU
3295 # Now try BSD make style include.
3296 if test "$am__include" = "#"; then
3297 echo '.include "confinc"' > confmf
3298 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3299 am__include=.include
3300 am__quote="\""
3301 _am_result=BSD
3306 echo "$as_me:$LINENO: result: $_am_result" >&5
3307 echo "${ECHO_T}$_am_result" >&6
3308 rm -f confinc confmf
3310 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3311 if test "${enable_dependency_tracking+set}" = set; then
3312 enableval="$enable_dependency_tracking"
3315 if test "x$enable_dependency_tracking" != xno; then
3316 am_depcomp="$ac_aux_dir/depcomp"
3317 AMDEPBACKSLASH='\'
3321 if test "x$enable_dependency_tracking" != xno; then
3322 AMDEP_TRUE=
3323 AMDEP_FALSE='#'
3324 else
3325 AMDEP_TRUE='#'
3326 AMDEP_FALSE=
3331 # test to see if srcdir already configured
3332 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3333 test -f $srcdir/config.status; then
3334 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3335 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3336 { (exit 1); exit 1; }; }
3339 # test whether we have cygpath
3340 if test -z "$CYGPATH_W"; then
3341 if (cygpath --version) >/dev/null 2>/dev/null; then
3342 CYGPATH_W='cygpath -w'
3343 else
3344 CYGPATH_W=echo
3349 # Define the identity of the package.
3350 PACKAGE='libjava'
3351 VERSION='version-unused'
3354 cat >>confdefs.h <<_ACEOF
3355 #define PACKAGE "$PACKAGE"
3356 _ACEOF
3359 cat >>confdefs.h <<_ACEOF
3360 #define VERSION "$VERSION"
3361 _ACEOF
3363 # Some tools Automake needs.
3365 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3368 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3371 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3374 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3377 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3379 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3381 # Installed binaries are usually stripped using `strip' when the user
3382 # run `make install-strip'. However `strip' might not be the right
3383 # tool to use in cross-compilation environments, therefore Automake
3384 # will honor the `STRIP' environment variable to overrule this program.
3385 if test "$cross_compiling" != no; then
3386 if test -n "$ac_tool_prefix"; then
3387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3388 set dummy ${ac_tool_prefix}strip; ac_word=$2
3389 echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3391 if test "${ac_cv_prog_STRIP+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 if test -n "$STRIP"; then
3395 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3408 done
3409 done
3413 STRIP=$ac_cv_prog_STRIP
3414 if test -n "$STRIP"; then
3415 echo "$as_me:$LINENO: result: $STRIP" >&5
3416 echo "${ECHO_T}$STRIP" >&6
3417 else
3418 echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3423 if test -z "$ac_cv_prog_STRIP"; then
3424 ac_ct_STRIP=$STRIP
3425 # Extract the first word of "strip", so it can be a program name with args.
3426 set dummy strip; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 if test -n "$ac_ct_STRIP"; then
3433 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_ac_ct_STRIP="strip"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3446 done
3447 done
3449 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3453 if test -n "$ac_ct_STRIP"; then
3454 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3455 echo "${ECHO_T}$ac_ct_STRIP" >&6
3456 else
3457 echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3461 STRIP=$ac_ct_STRIP
3462 else
3463 STRIP="$ac_cv_prog_STRIP"
3467 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3469 # We need awk for the "check" target. The system "awk" is bad on
3470 # some platforms.
3471 # Always define AMTAR for backward compatibility.
3473 AMTAR=${AMTAR-"${am_missing_run}tar"}
3475 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3480 depcc="$CC" am_compiler_list=
3482 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3483 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3484 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3488 # We make a subdir and do the tests there. Otherwise we can end up
3489 # making bogus files that we don't know about and never remove. For
3490 # instance it was reported that on HP-UX the gcc test will end up
3491 # making a dummy file named `D' -- because `-MD' means `put the output
3492 # in D'.
3493 mkdir conftest.dir
3494 # Copy depcomp to subdir because otherwise we won't find it if we're
3495 # using a relative directory.
3496 cp "$am_depcomp" conftest.dir
3497 cd conftest.dir
3498 # We will build objects and dependencies in a subdirectory because
3499 # it helps to detect inapplicable dependency modes. For instance
3500 # both Tru64's cc and ICC support -MD to output dependencies as a
3501 # side effect of compilation, but ICC will put the dependencies in
3502 # the current directory while Tru64 will put them in the object
3503 # directory.
3504 mkdir sub
3506 am_cv_CC_dependencies_compiler_type=none
3507 if test "$am_compiler_list" = ""; then
3508 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3510 for depmode in $am_compiler_list; do
3511 # Setup a source with many dependencies, because some compilers
3512 # like to wrap large dependency lists on column 80 (with \), and
3513 # we should not choose a depcomp mode which is confused by this.
3515 # We need to recreate these files for each test, as the compiler may
3516 # overwrite some of them when testing with obscure command lines.
3517 # This happens at least with the AIX C compiler.
3518 : > sub/conftest.c
3519 for i in 1 2 3 4 5 6; do
3520 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3521 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3522 # Solaris 8's {/usr,}/bin/sh.
3523 touch sub/conftst$i.h
3524 done
3525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3527 case $depmode in
3528 nosideeffect)
3529 # after this tag, mechanisms are not by side-effect, so they'll
3530 # only be used when explicitly requested
3531 if test "x$enable_dependency_tracking" = xyes; then
3532 continue
3533 else
3534 break
3537 none) break ;;
3538 esac
3539 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3540 # mode. It turns out that the SunPro C++ compiler does not properly
3541 # handle `-M -o', and we need to detect this.
3542 if depmode=$depmode \
3543 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3544 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3545 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3546 >/dev/null 2>conftest.err &&
3547 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3548 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3549 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3550 # icc doesn't choke on unknown options, it will just issue warnings
3551 # or remarks (even with -Werror). So we grep stderr for any message
3552 # that says an option was ignored or not supported.
3553 # When given -MP, icc 7.0 and 7.1 complain thusly:
3554 # icc: Command line warning: ignoring option '-M'; no argument required
3555 # The diagnosis changed in icc 8.0:
3556 # icc: Command line remark: option '-MP' not supported
3557 if (grep 'ignoring option' conftest.err ||
3558 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3559 am_cv_CC_dependencies_compiler_type=$depmode
3560 break
3563 done
3565 cd ..
3566 rm -rf conftest.dir
3567 else
3568 am_cv_CC_dependencies_compiler_type=none
3572 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3573 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3574 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3579 test "x$enable_dependency_tracking" != xno \
3580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3581 am__fastdepCC_TRUE=
3582 am__fastdepCC_FALSE='#'
3583 else
3584 am__fastdepCC_TRUE='#'
3585 am__fastdepCC_FALSE=
3589 depcc="$CXX" am_compiler_list=
3591 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3592 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3593 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3597 # We make a subdir and do the tests there. Otherwise we can end up
3598 # making bogus files that we don't know about and never remove. For
3599 # instance it was reported that on HP-UX the gcc test will end up
3600 # making a dummy file named `D' -- because `-MD' means `put the output
3601 # in D'.
3602 mkdir conftest.dir
3603 # Copy depcomp to subdir because otherwise we won't find it if we're
3604 # using a relative directory.
3605 cp "$am_depcomp" conftest.dir
3606 cd conftest.dir
3607 # We will build objects and dependencies in a subdirectory because
3608 # it helps to detect inapplicable dependency modes. For instance
3609 # both Tru64's cc and ICC support -MD to output dependencies as a
3610 # side effect of compilation, but ICC will put the dependencies in
3611 # the current directory while Tru64 will put them in the object
3612 # directory.
3613 mkdir sub
3615 am_cv_CXX_dependencies_compiler_type=none
3616 if test "$am_compiler_list" = ""; then
3617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3619 for depmode in $am_compiler_list; do
3620 # Setup a source with many dependencies, because some compilers
3621 # like to wrap large dependency lists on column 80 (with \), and
3622 # we should not choose a depcomp mode which is confused by this.
3624 # We need to recreate these files for each test, as the compiler may
3625 # overwrite some of them when testing with obscure command lines.
3626 # This happens at least with the AIX C compiler.
3627 : > sub/conftest.c
3628 for i in 1 2 3 4 5 6; do
3629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3631 # Solaris 8's {/usr,}/bin/sh.
3632 touch sub/conftst$i.h
3633 done
3634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3636 case $depmode in
3637 nosideeffect)
3638 # after this tag, mechanisms are not by side-effect, so they'll
3639 # only be used when explicitly requested
3640 if test "x$enable_dependency_tracking" = xyes; then
3641 continue
3642 else
3643 break
3646 none) break ;;
3647 esac
3648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3649 # mode. It turns out that the SunPro C++ compiler does not properly
3650 # handle `-M -o', and we need to detect this.
3651 if depmode=$depmode \
3652 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3654 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3655 >/dev/null 2>conftest.err &&
3656 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3657 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3658 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3659 # icc doesn't choke on unknown options, it will just issue warnings
3660 # or remarks (even with -Werror). So we grep stderr for any message
3661 # that says an option was ignored or not supported.
3662 # When given -MP, icc 7.0 and 7.1 complain thusly:
3663 # icc: Command line warning: ignoring option '-M'; no argument required
3664 # The diagnosis changed in icc 8.0:
3665 # icc: Command line remark: option '-MP' not supported
3666 if (grep 'ignoring option' conftest.err ||
3667 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3668 am_cv_CXX_dependencies_compiler_type=$depmode
3669 break
3672 done
3674 cd ..
3675 rm -rf conftest.dir
3676 else
3677 am_cv_CXX_dependencies_compiler_type=none
3681 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3682 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3683 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3688 test "x$enable_dependency_tracking" != xno \
3689 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3690 am__fastdepCXX_TRUE=
3691 am__fastdepCXX_FALSE='#'
3692 else
3693 am__fastdepCXX_TRUE='#'
3694 am__fastdepCXX_FALSE=
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}as; ac_word=$2
3703 echo "$as_me:$LINENO: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_AS+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 if test -n "$AS"; then
3709 ac_cv_prog_AS="$AS" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_AS="${ac_tool_prefix}as"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3727 AS=$ac_cv_prog_AS
3728 if test -n "$AS"; then
3729 echo "$as_me:$LINENO: result: $AS" >&5
3730 echo "${ECHO_T}$AS" >&6
3731 else
3732 echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3737 if test -z "$ac_cv_prog_AS"; then
3738 ac_ct_AS=$AS
3739 # Extract the first word of "as", so it can be a program name with args.
3740 set dummy as; ac_word=$2
3741 echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 if test -n "$ac_ct_AS"; then
3747 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_AS="as"
3757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3760 done
3761 done
3765 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3766 if test -n "$ac_ct_AS"; then
3767 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3768 echo "${ECHO_T}$ac_ct_AS" >&6
3769 else
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3774 AS=$ac_ct_AS
3775 else
3776 AS="$ac_cv_prog_AS"
3779 if test -n "$ac_tool_prefix"; then
3780 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3781 set dummy ${ac_tool_prefix}ld; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_prog_LD+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 if test -n "$LD"; then
3788 ac_cv_prog_LD="$LD" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_LD="${ac_tool_prefix}ld"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3801 done
3802 done
3806 LD=$ac_cv_prog_LD
3807 if test -n "$LD"; then
3808 echo "$as_me:$LINENO: result: $LD" >&5
3809 echo "${ECHO_T}$LD" >&6
3810 else
3811 echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3816 if test -z "$ac_cv_prog_LD"; then
3817 ac_ct_LD=$LD
3818 # Extract the first word of "ld", so it can be a program name with args.
3819 set dummy ld; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 if test -n "$ac_ct_LD"; then
3826 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_ac_ct_LD="ld"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3839 done
3840 done
3844 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3845 if test -n "$ac_ct_LD"; then
3846 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3847 echo "${ECHO_T}$ac_ct_LD" >&6
3848 else
3849 echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3853 LD=$ac_ct_LD
3854 else
3855 LD="$ac_cv_prog_LD"
3858 if test -n "$ac_tool_prefix"; then
3859 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3860 set dummy ${ac_tool_prefix}ar; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_prog_AR+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 if test -n "$AR"; then
3867 ac_cv_prog_AR="$AR" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876 ac_cv_prog_AR="${ac_tool_prefix}ar"
3877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3880 done
3881 done
3885 AR=$ac_cv_prog_AR
3886 if test -n "$AR"; then
3887 echo "$as_me:$LINENO: result: $AR" >&5
3888 echo "${ECHO_T}$AR" >&6
3889 else
3890 echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3895 if test -z "$ac_cv_prog_AR"; then
3896 ac_ct_AR=$AR
3897 # Extract the first word of "ar", so it can be a program name with args.
3898 set dummy ar; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 if test -n "$ac_ct_AR"; then
3905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_ac_ct_AR="ar"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3918 done
3919 done
3923 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3924 if test -n "$ac_ct_AR"; then
3925 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3926 echo "${ECHO_T}$ac_ct_AR" >&6
3927 else
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 AR=$ac_ct_AR
3933 else
3934 AR="$ac_cv_prog_AR"
3937 if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_RANLIB+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 if test -n "$RANLIB"; then
3946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3964 RANLIB=$ac_cv_prog_RANLIB
3965 if test -n "$RANLIB"; then
3966 echo "$as_me:$LINENO: result: $RANLIB" >&5
3967 echo "${ECHO_T}$RANLIB" >&6
3968 else
3969 echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3974 if test -z "$ac_cv_prog_RANLIB"; then
3975 ac_ct_RANLIB=$RANLIB
3976 # Extract the first word of "ranlib", so it can be a program name with args.
3977 set dummy ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 if test -n "$ac_ct_RANLIB"; then
3984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_ac_ct_RANLIB="ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
4000 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4004 if test -n "$ac_ct_RANLIB"; then
4005 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4006 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4007 else
4008 echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6
4012 RANLIB=$ac_ct_RANLIB
4013 else
4014 RANLIB="$ac_cv_prog_RANLIB"
4017 for ac_prog in gawk mawk nawk awk
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_prog_AWK+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 if test -n "$AWK"; then
4027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_AWK="$ac_prog"
4037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4040 done
4041 done
4045 AWK=$ac_cv_prog_AWK
4046 if test -n "$AWK"; then
4047 echo "$as_me:$LINENO: result: $AWK" >&5
4048 echo "${ECHO_T}$AWK" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4054 test -n "$AWK" && break
4055 done
4057 for ac_prog in jar fastjar
4059 # Extract the first word of "$ac_prog", so it can be a program name with args.
4060 set dummy $ac_prog; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_prog_JAR+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 if test -n "$JAR"; then
4067 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_prog_JAR="$ac_prog"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4085 JAR=$ac_cv_prog_JAR
4086 if test -n "$JAR"; then
4087 echo "$as_me:$LINENO: result: $JAR" >&5
4088 echo "${ECHO_T}$JAR" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4094 test -n "$JAR" && break
4095 done
4096 test -n "$JAR" || JAR="no"
4098 # Extract the first word of "zip", so it can be a program name with args.
4099 set dummy zip; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_ZIP+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 case $ZIP in
4106 [\\/]* | ?:[\\/]*)
4107 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4121 done
4122 done
4124 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4126 esac
4128 ZIP=$ac_cv_path_ZIP
4130 if test -n "$ZIP"; then
4131 echo "$as_me:$LINENO: result: $ZIP" >&5
4132 echo "${ECHO_T}$ZIP" >&6
4133 else
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 # Extract the first word of "unzip", so it can be a program name with args.
4139 set dummy unzip; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_UNZIP+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 case $UNZIP in
4146 [\\/]* | ?:[\\/]*)
4147 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4164 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4166 esac
4168 UNZIP=$ac_cv_path_UNZIP
4170 if test -n "$UNZIP"; then
4171 echo "$as_me:$LINENO: result: $UNZIP" >&5
4172 echo "${ECHO_T}$UNZIP" >&6
4173 else
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4180 if test "$JAR" = no; then
4181 BASH_JAR_TRUE=
4182 BASH_JAR_FALSE='#'
4183 else
4184 BASH_JAR_TRUE='#'
4185 BASH_JAR_FALSE=
4188 if test "$ZIP" = no; then
4189 if test "$JAR" = no; then
4190 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4191 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4192 { (exit 1); exit 1; }; }
4194 else
4195 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4196 JAR=`pwd`/scripts/jar
4199 # Find a good install program. We prefer a C program (faster),
4200 # so one script is as good as another. But avoid the broken or
4201 # incompatible versions:
4202 # SysV /etc/install, /usr/sbin/install
4203 # SunOS /usr/etc/install
4204 # IRIX /sbin/install
4205 # AIX /bin/install
4206 # AmigaOS /C/install, which installs bootblocks on floppy discs
4207 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4208 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4209 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4210 # OS/2's system install, which has a completely different semantic
4211 # ./install, which can be erroneously created by make from ./install.sh.
4212 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4213 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4214 if test -z "$INSTALL"; then
4215 if test "${ac_cv_path_install+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 # Account for people who put trailing slashes in PATH elements.
4224 case $as_dir/ in
4225 ./ | .// | /cC/* | \
4226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4227 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4228 /usr/ucb/* ) ;;
4230 # OSF1 and SCO ODT 3.0 have their own names for install.
4231 # Don't use installbsd from OSF since it installs stuff as root
4232 # by default.
4233 for ac_prog in ginstall scoinst install; do
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4236 if test $ac_prog = install &&
4237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4238 # AIX install. It has an incompatible calling convention.
4240 elif test $ac_prog = install &&
4241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242 # program-specific install script used by HP pwplus--don't use.
4244 else
4245 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4246 break 3
4249 done
4250 done
4252 esac
4253 done
4257 if test "${ac_cv_path_install+set}" = set; then
4258 INSTALL=$ac_cv_path_install
4259 else
4260 # As a last resort, use the slow shell script. We don't cache a
4261 # path for INSTALL within a source directory, because that will
4262 # break other packages using the cache if that directory is
4263 # removed, or if the path is relative.
4264 INSTALL=$ac_install_sh
4267 echo "$as_me:$LINENO: result: $INSTALL" >&5
4268 echo "${ECHO_T}$INSTALL" >&6
4270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4271 # It thinks the first close brace ends the variable substitution.
4272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4279 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4280 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4281 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4282 if test "${enable_maintainer_mode+set}" = set; then
4283 enableval="$enable_maintainer_mode"
4284 USE_MAINTAINER_MODE=$enableval
4285 else
4286 USE_MAINTAINER_MODE=no
4288 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4289 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4292 if test $USE_MAINTAINER_MODE = yes; then
4293 MAINTAINER_MODE_TRUE=
4294 MAINTAINER_MODE_FALSE='#'
4295 else
4296 MAINTAINER_MODE_TRUE='#'
4297 MAINTAINER_MODE_FALSE=
4300 MAINT=$MAINTAINER_MODE_TRUE
4306 # configure.host sets the following important variables
4307 # libgcj_cflags - host specific C compiler flags
4308 # libgcj_cxxflags - host specific C++ compiler flags
4309 # libgcj_javaflags - host specific Java compiler flags
4311 libgcj_cflags=
4312 libgcj_cxxflags=
4313 libgcj_javaflags=
4315 . ${srcdir}/configure.host
4317 LIBGCJ_CFLAGS="${libgcj_cflags}"
4318 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4319 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4320 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4326 # Only use libltdl for non-newlib builds.
4327 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4328 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4329 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4330 library_names_spec=
4331 libname_spec='lib$name'
4332 soname_spec=
4333 shrext=".so"
4334 postinstall_cmds=
4335 postuninstall_cmds=
4336 finish_cmds=
4337 finish_eval=
4338 shlibpath_var=
4339 shlibpath_overrides_runpath=unknown
4340 version_type=none
4341 dynamic_linker="$host_os ld.so"
4342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4343 if test "$GCC" = yes; then
4344 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4345 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4346 # if the path contains ";" then we assume it to be the separator
4347 # otherwise default to the standard path separator (i.e. ":") - it is
4348 # assumed that no part of a normal pathname contains ";" but that should
4349 # okay in the real world where ";" in dirpaths is itself problematic.
4350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4351 else
4352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4354 else
4355 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4357 need_lib_prefix=unknown
4358 hardcode_into_libs=no
4360 # when you set need_version to no, make sure it does not cause -set_version
4361 # flags to be left without arguments
4362 need_version=unknown
4364 case $host_os in
4365 aix3*)
4366 version_type=linux
4367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4368 shlibpath_var=LIBPATH
4370 # AIX 3 has no versioning support, so we append a major version to the name.
4371 soname_spec='${libname}${release}${shared_ext}$major'
4374 aix4* | aix5*)
4375 version_type=linux
4376 need_lib_prefix=no
4377 need_version=no
4378 hardcode_into_libs=yes
4379 if test "$host_cpu" = ia64; then
4380 # AIX 5 supports IA64
4381 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4382 shlibpath_var=LD_LIBRARY_PATH
4383 else
4384 # With GCC up to 2.95.x, collect2 would create an import file
4385 # for dependence libraries. The import file would start with
4386 # the line `#! .'. This would cause the generated library to
4387 # depend on `.', always an invalid library. This was fixed in
4388 # development snapshots of GCC prior to 3.0.
4389 case $host_os in
4390 aix4 | aix4.[01] | aix4.[01].*)
4391 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4392 echo ' yes '
4393 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4395 else
4396 can_build_shared=no
4399 esac
4400 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4401 # soname into executable. Probably we can add versioning support to
4402 # collect2, so additional links can be useful in future.
4403 if test "$aix_use_runtimelinking" = yes; then
4404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4405 # instead of lib<name>.a to let people know that these are not
4406 # typical AIX shared libraries.
4407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4408 else
4409 # We preserve .a as extension for shared libraries through AIX4.2
4410 # and later when we are not doing run time linking.
4411 library_names_spec='${libname}${release}.a $libname.a'
4412 soname_spec='${libname}${release}${shared_ext}$major'
4414 shlibpath_var=LIBPATH
4418 amigaos*)
4419 library_names_spec='$libname.ixlibrary $libname.a'
4420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4421 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4424 beos*)
4425 library_names_spec='${libname}${shared_ext}'
4426 dynamic_linker="$host_os ld.so"
4427 shlibpath_var=LIBRARY_PATH
4430 bsdi4*)
4431 version_type=linux
4432 need_version=no
4433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4434 soname_spec='${libname}${release}${shared_ext}$major'
4435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4436 shlibpath_var=LD_LIBRARY_PATH
4437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4439 # the default ld.so.conf also contains /usr/contrib/lib and
4440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4441 # libtool to hard-code these into programs
4444 cygwin* | mingw* | pw32*)
4445 version_type=windows
4446 shrext=".dll"
4447 need_version=no
4448 need_lib_prefix=no
4450 case $GCC,$host_os in
4451 yes,cygwin* | yes,mingw* | yes,pw32*)
4452 library_names_spec='$libname.dll.a'
4453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4454 postinstall_cmds='base_file=`basename \${file}`~
4455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4456 dldir=$destdir/`dirname \$dlpath`~
4457 test -d \$dldir || mkdir -p \$dldir~
4458 $install_prog $dir/$dlname \$dldir/$dlname'
4459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4460 dlpath=$dir/\$dldll~
4461 $rm \$dlpath'
4462 shlibpath_overrides_runpath=yes
4464 case $host_os in
4465 cygwin*)
4466 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4467 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4468 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4470 mingw*)
4471 # MinGW DLLs use traditional 'lib' prefix
4472 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4474 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4475 # It is most probably a Windows format PATH printed by
4476 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4477 # path with ; separators, and with drive letters. We can handle the
4478 # drive letters (cygwin fileutils understands them), so leave them,
4479 # especially as we might pass files found there to a mingw objdump,
4480 # which wouldn't understand a cygwinified path. Ahh.
4481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4482 else
4483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4486 pw32*)
4487 # pw32 DLLs use 'pw' prefix rather than 'lib'
4488 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4490 esac
4494 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4496 esac
4497 dynamic_linker='Win32 ld.exe'
4498 # FIXME: first we should search . and the directory the executable is in
4499 shlibpath_var=PATH
4502 darwin* | rhapsody*)
4503 dynamic_linker="$host_os dyld"
4504 version_type=darwin
4505 need_lib_prefix=no
4506 need_version=no
4507 # FIXME: Relying on posixy $() will cause problems for
4508 # cross-compilation, but unfortunately the echo tests do not
4509 # yet detect zsh echo's removal of \ escapes.
4510 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4511 soname_spec='${libname}${release}${major}$shared_ext'
4512 shlibpath_overrides_runpath=yes
4513 shlibpath_var=DYLD_LIBRARY_PATH
4514 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4515 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4516 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4517 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4522 dgux*)
4523 version_type=linux
4524 need_lib_prefix=no
4525 need_version=no
4526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4527 soname_spec='${libname}${release}${shared_ext}$major'
4528 shlibpath_var=LD_LIBRARY_PATH
4531 freebsd1*)
4532 dynamic_linker=no
4535 freebsd*)
4536 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4537 version_type=freebsd-$objformat
4538 case $version_type in
4539 freebsd-elf*)
4540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4541 need_version=no
4542 need_lib_prefix=no
4544 freebsd-*)
4545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4546 need_version=yes
4548 esac
4549 shlibpath_var=LD_LIBRARY_PATH
4550 case $host_os in
4551 freebsd2*)
4552 shlibpath_overrides_runpath=yes
4554 freebsd3.01* | freebsdelf3.01*)
4555 shlibpath_overrides_runpath=yes
4556 hardcode_into_libs=yes
4558 *) # from 3.2 on
4559 shlibpath_overrides_runpath=no
4560 hardcode_into_libs=yes
4562 esac
4565 gnu*)
4566 version_type=linux
4567 need_lib_prefix=no
4568 need_version=no
4569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4570 soname_spec='${libname}${release}${shared_ext}$major'
4571 shlibpath_var=LD_LIBRARY_PATH
4572 hardcode_into_libs=yes
4575 hpux9* | hpux10* | hpux11*)
4576 # Give a soname corresponding to the major version so that dld.sl refuses to
4577 # link against other versions.
4578 version_type=sunos
4579 need_lib_prefix=no
4580 need_version=no
4581 case "$host_cpu" in
4582 ia64*)
4583 shrext='.so'
4584 hardcode_into_libs=yes
4585 dynamic_linker="$host_os dld.so"
4586 shlibpath_var=LD_LIBRARY_PATH
4587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4589 soname_spec='${libname}${release}${shared_ext}$major'
4590 if test "X$HPUX_IA64_MODE" = X32; then
4591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4592 else
4593 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4597 hppa*64*)
4598 shrext='.sl'
4599 hardcode_into_libs=yes
4600 dynamic_linker="$host_os dld.sl"
4601 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4604 soname_spec='${libname}${release}${shared_ext}$major'
4605 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4609 shrext='.sl'
4610 dynamic_linker="$host_os dld.sl"
4611 shlibpath_var=SHLIB_PATH
4612 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4614 soname_spec='${libname}${release}${shared_ext}$major'
4616 esac
4617 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4618 postinstall_cmds='chmod 555 $lib'
4621 irix5* | irix6* | nonstopux*)
4622 case $host_os in
4623 nonstopux*) version_type=nonstopux ;;
4625 if test "$lt_cv_prog_gnu_ld" = yes; then
4626 version_type=linux
4627 else
4628 version_type=irix
4629 fi ;;
4630 esac
4631 need_lib_prefix=no
4632 need_version=no
4633 soname_spec='${libname}${release}${shared_ext}$major'
4634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4635 case $host_os in
4636 irix5* | nonstopux*)
4637 libsuff= shlibsuff=
4640 case $LD in # libtool.m4 will add one of these switches to LD
4641 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4642 libsuff= shlibsuff= libmagic=32-bit;;
4643 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4644 libsuff=32 shlibsuff=N32 libmagic=N32;;
4645 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4646 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4647 *) libsuff= shlibsuff= libmagic=never-match;;
4648 esac
4650 esac
4651 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4652 shlibpath_overrides_runpath=no
4653 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4654 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4655 hardcode_into_libs=yes
4658 # No shared lib support for Linux oldld, aout, or coff.
4659 linux*oldld* | linux*aout* | linux*coff*)
4660 dynamic_linker=no
4663 # This must be Linux ELF.
4664 linux*)
4665 version_type=linux
4666 need_lib_prefix=no
4667 need_version=no
4668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4669 soname_spec='${libname}${release}${shared_ext}$major'
4670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4671 shlibpath_var=LD_LIBRARY_PATH
4672 shlibpath_overrides_runpath=no
4673 # This implies no fast_install, which is unacceptable.
4674 # Some rework will be needed to allow for fast_install
4675 # before this can be enabled.
4676 hardcode_into_libs=yes
4678 # We used to test for /lib/ld.so.1 and disable shared libraries on
4679 # powerpc, because MkLinux only supported shared libraries with the
4680 # GNU dynamic linker. Since this was broken with cross compilers,
4681 # most powerpc-linux boxes support dynamic linking these days and
4682 # people can always --disable-shared, the test was removed, and we
4683 # assume the GNU/Linux dynamic linker is in use.
4684 dynamic_linker='GNU/Linux ld.so'
4687 netbsd*)
4688 version_type=sunos
4689 need_lib_prefix=no
4690 need_version=no
4691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4694 dynamic_linker='NetBSD (a.out) ld.so'
4695 else
4696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4697 soname_spec='${libname}${release}${shared_ext}$major'
4698 dynamic_linker='NetBSD ld.elf_so'
4700 shlibpath_var=LD_LIBRARY_PATH
4701 shlibpath_overrides_runpath=yes
4702 hardcode_into_libs=yes
4705 newsos6)
4706 version_type=linux
4707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4708 shlibpath_var=LD_LIBRARY_PATH
4709 shlibpath_overrides_runpath=yes
4712 nto-qnx)
4713 version_type=linux
4714 need_lib_prefix=no
4715 need_version=no
4716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4717 soname_spec='${libname}${release}${shared_ext}$major'
4718 shlibpath_var=LD_LIBRARY_PATH
4719 shlibpath_overrides_runpath=yes
4722 openbsd*)
4723 version_type=sunos
4724 need_lib_prefix=no
4725 need_version=no
4726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4728 shlibpath_var=LD_LIBRARY_PATH
4729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4730 case $host_os in
4731 openbsd2.[89] | openbsd2.[89].*)
4732 shlibpath_overrides_runpath=no
4735 shlibpath_overrides_runpath=yes
4737 esac
4738 else
4739 shlibpath_overrides_runpath=yes
4743 os2*)
4744 libname_spec='$name'
4745 shrext=".dll"
4746 need_lib_prefix=no
4747 library_names_spec='$libname${shared_ext} $libname.a'
4748 dynamic_linker='OS/2 ld.exe'
4749 shlibpath_var=LIBPATH
4752 osf3* | osf4* | osf5*)
4753 version_type=osf
4754 need_lib_prefix=no
4755 need_version=no
4756 soname_spec='${libname}${release}${shared_ext}$major'
4757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4758 shlibpath_var=LD_LIBRARY_PATH
4759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4763 sco3.2v5*)
4764 version_type=osf
4765 soname_spec='${libname}${release}${shared_ext}$major'
4766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4767 shlibpath_var=LD_LIBRARY_PATH
4770 solaris*)
4771 version_type=linux
4772 need_lib_prefix=no
4773 need_version=no
4774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4775 soname_spec='${libname}${release}${shared_ext}$major'
4776 shlibpath_var=LD_LIBRARY_PATH
4777 shlibpath_overrides_runpath=yes
4778 hardcode_into_libs=yes
4779 # ldd complains unless libraries are executable
4780 postinstall_cmds='chmod +x $lib'
4783 sunos4*)
4784 version_type=sunos
4785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4786 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4787 shlibpath_var=LD_LIBRARY_PATH
4788 shlibpath_overrides_runpath=yes
4789 if test "$with_gnu_ld" = yes; then
4790 need_lib_prefix=no
4792 need_version=yes
4795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4796 version_type=linux
4797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4798 soname_spec='${libname}${release}${shared_ext}$major'
4799 shlibpath_var=LD_LIBRARY_PATH
4800 case $host_vendor in
4801 sni)
4802 shlibpath_overrides_runpath=no
4803 need_lib_prefix=no
4804 export_dynamic_flag_spec='${wl}-Blargedynsym'
4805 runpath_var=LD_RUN_PATH
4807 siemens)
4808 need_lib_prefix=no
4810 motorola)
4811 need_lib_prefix=no
4812 need_version=no
4813 shlibpath_overrides_runpath=no
4814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4816 esac
4819 sysv4*MP*)
4820 if test -d /usr/nec ;then
4821 version_type=linux
4822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4823 soname_spec='$libname${shared_ext}.$major'
4824 shlibpath_var=LD_LIBRARY_PATH
4828 uts4*)
4829 version_type=linux
4830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4831 soname_spec='${libname}${release}${shared_ext}$major'
4832 shlibpath_var=LD_LIBRARY_PATH
4836 dynamic_linker=no
4838 esac
4839 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4840 echo "${ECHO_T}$dynamic_linker" >&6
4841 test "$dynamic_linker" = no && can_build_shared=no
4844 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4845 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4846 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849 libltdl_cv_shlibpath_var="$shlibpath_var"
4851 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4852 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4853 if test -n "$libltdl_cv_shlibpath_var"; then
4855 cat >>confdefs.h <<_ACEOF
4856 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4857 _ACEOF
4863 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4866 # See if the user has requested runtime debugging.
4867 LIBGCJDEBUG="disable"
4869 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4870 if test "${enable_libgcj_debug+set}" = set; then
4871 enableval="$enable_libgcj_debug"
4872 if test "$enable_libgcj_debug" = yes; then
4874 cat >>confdefs.h <<\_ACEOF
4875 #define DEBUG 1
4876 _ACEOF
4878 LIBGCJDEBUG="enable"
4882 # Determine which AWT peer libraries to build
4883 # Check whether --enable-java-awt or --disable-java-awt was given.
4884 if test "${enable_java_awt+set}" = set; then
4885 enableval="$enable_java_awt"
4889 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4890 use_xlib_awt=""
4891 use_gtk_awt=""
4892 use_qt_awt=""
4893 # The default toolkit to use is the first one specified.
4894 TOOLKIT=
4897 for peer in $peerlibs ; do
4898 case $peer in
4899 xlib)
4900 if test "$no_x" = yes; then
4901 echo "*** xlib peers requested but no X library available" 1>&2
4902 exit 1
4903 else
4904 use_xlib_awt="yes"
4905 if test -z "$TOOLKIT"; then
4906 TOOLKIT=gnu.awt.xlib.XToolkit
4910 gtk)
4911 if test "$no_x" = yes; then
4912 echo "*** gtk peers requested but no X library available" 1>&2
4913 exit 1
4914 else
4915 use_gtk_awt=yes
4916 if test -z "$TOOLKIT"; then
4917 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4922 if test "$no_x" = yes; then
4923 # Perhaps we should admit the possibility of embedded Qt.
4924 echo "*** Qt peers requested but no X library available" 1>&2
4925 exit 1
4926 else
4927 use_qt_awt=yes
4928 if test -z "$TOOLKIT"; then
4929 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4934 use_xlib_awt=
4935 use_gtk_awt=
4936 use_qt_awt=
4937 break
4940 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4941 exit 1
4942 esac
4943 done
4947 if test "$use_xlib_awt" = yes; then
4948 XLIB_AWT_TRUE=
4949 XLIB_AWT_FALSE='#'
4950 else
4951 XLIB_AWT_TRUE='#'
4952 XLIB_AWT_FALSE=
4956 # Create standard.omit based on decisions we just made.
4957 cp $srcdir/standard.omit.in standard.omit
4958 if test "$use_xlib_awt" != yes; then
4959 echo gnu/awt/xlib >> standard.omit
4960 echo gnu/gcj/xlib >> standard.omit
4963 if test -z "${with_multisubdir}"; then
4964 builddotdot=.
4965 else
4966 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4969 NATIVE=yes
4971 # Which gcj do we use?
4972 which_gcj=default
4973 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4974 if test -n "${with_cross_host}"; then
4975 # We are being configured with a cross compiler. We can't
4976 # use ac_exeext, because that is for the target platform.
4977 NATIVE=no
4978 cross_host_exeext=
4979 case "${with_cross_host}" in
4980 *mingw* | *cygwin*)
4981 cross_host_exeext=.exe
4983 esac
4984 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4985 if test x"$build_noncanonical" = x"$with_cross_host"; then
4986 # Ordinary cross (host!=target and host=build)
4987 which_gcj=built
4988 else
4989 # Canadian cross (host!=target and host!=build)
4990 which_gcj=cross
4992 else
4993 which_gcj=cross
4995 else
4996 # We are being configured with a native or crossed-native compiler
4997 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4998 if test x"$build" = x"$host"; then
4999 # True native build (host=target and host=build)
5000 which_gcj=built
5001 else
5002 # Crossed-native build (host=target and host!=build)
5003 which_gcj=cross
5005 else
5006 which_gcj=path
5009 case "${which_gcj}" in
5010 built)
5011 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5012 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5014 cross)
5015 if test "x${with_newlib}" = "xyes"; then
5016 # FIXME (comment): Why is this needed?
5017 GCC_UNWIND_INCLUDE=
5018 GCJ="${target_noncanonical}-gcj"
5019 else
5020 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5022 GCJH='$(target_noncanonical)-gcjh'
5024 path)
5025 GCJ="gcj -B`${PWDCMD-pwd}`/"
5026 GCJH=gcjh
5028 esac
5032 # Create it, so that compile/link tests don't fail
5033 test -f libgcj.spec || touch libgcj.spec
5037 # Set up to configure Classpath.
5038 # FIXME: no supported way to pass args in autoconf.
5039 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5040 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5041 ac_configure_args="$ac_configure_args --disable-load-library"
5042 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5043 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5044 dir1=`cd $srcdir && pwd`
5045 dir2=`pwd`
5046 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5047 ac_configure_args="$ac_configure_args --disable-core-jni"
5048 ac_configure_args="$ac_configure_args --disable-examples"
5049 ac_configure_args="$ac_configure_args --with-glibj=build"
5050 if test "$plugin_enabled" != yes; then
5051 ac_configure_args="$ac_configure_args --disable-plugin"
5053 if test "$gconf_enabled" != yes; then
5054 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5055 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5057 if test "$use_gtk_awt" != yes; then
5058 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5060 if test "$use_qt_awt" != yes; then
5061 ac_configure_args="$ac_configure_args --disable-qt-peer"
5062 else
5063 # We need this as qt is disabled by default in classpath.
5064 ac_configure_args="$ac_configure_args --enable-qt-peer"
5067 # Only use libltdl for non-newlib builds.
5068 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5069 case $enable_ltdl_convenience in
5070 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5071 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5072 { (exit 1); exit 1; }; } ;;
5073 "") enable_ltdl_convenience=yes
5074 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5075 esac
5076 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5077 INCLTDL='-I${top_srcdir}/''libltdl'
5080 DIRLTDL=libltdl
5082 cat >>confdefs.h <<\_ACEOF
5083 #define USE_LTDL 1
5084 _ACEOF
5086 # Sigh. Libtool's macro doesn't do the right thing.
5087 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5088 # FIXME: this is a hack.
5089 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5090 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5095 # Check whether --enable-shared or --disable-shared was given.
5096 if test "${enable_shared+set}" = set; then
5097 enableval="$enable_shared"
5098 p=${PACKAGE-default}
5099 case $enableval in
5100 yes) enable_shared=yes ;;
5101 no) enable_shared=no ;;
5103 enable_shared=no
5104 # Look at the argument we got. We use all the common list separators.
5105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5106 for pkg in $enableval; do
5107 if test "X$pkg" = "X$p"; then
5108 enable_shared=yes
5110 done
5111 IFS="$ac_save_ifs"
5113 esac
5114 else
5115 enable_shared=yes
5117 # Check whether --enable-static or --disable-static was given.
5118 if test "${enable_static+set}" = set; then
5119 enableval="$enable_static"
5120 p=${PACKAGE-default}
5121 case $enableval in
5122 yes) enable_static=yes ;;
5123 no) enable_static=no ;;
5125 enable_static=no
5126 # Look at the argument we got. We use all the common list separators.
5127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5128 for pkg in $enableval; do
5129 if test "X$pkg" = "X$p"; then
5130 enable_static=yes
5132 done
5133 IFS="$ac_save_ifs"
5135 esac
5136 else
5137 enable_static=yes
5139 # Check whether --enable-fast-install or --disable-fast-install was given.
5140 if test "${enable_fast_install+set}" = set; then
5141 enableval="$enable_fast_install"
5142 p=${PACKAGE-default}
5143 case $enableval in
5144 yes) enable_fast_install=yes ;;
5145 no) enable_fast_install=no ;;
5147 enable_fast_install=no
5148 # Look at the argument we got. We use all the common list separators.
5149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5150 for pkg in $enableval; do
5151 if test "X$pkg" = "X$p"; then
5152 enable_fast_install=yes
5154 done
5155 IFS="$ac_save_ifs"
5157 esac
5158 else
5159 enable_fast_install=yes
5162 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5163 if test "${with_gnu_ld+set}" = set; then
5164 withval="$with_gnu_ld"
5165 test "$withval" = no || with_gnu_ld=yes
5166 else
5167 with_gnu_ld=no
5169 ac_prog=ld
5170 if test "$GCC" = yes; then
5171 # Check if gcc -print-prog-name=ld gives a path.
5172 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5173 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5174 case $host in
5175 *-*-mingw*)
5176 # gcc leaves a trailing carriage return which upsets mingw
5177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5180 esac
5181 case $ac_prog in
5182 # Accept absolute paths.
5183 [\\/]* | [A-Za-z]:[\\/]*)
5184 re_direlt='/[^/][^/]*/\.\./'
5185 # Canonicalize the path of ld
5186 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5187 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5188 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5189 done
5190 test -z "$LD" && LD="$ac_prog"
5193 # If it fails, then pretend we aren't using GCC.
5194 ac_prog=ld
5197 # If it is relative, then search for the first ld in PATH.
5198 with_gnu_ld=unknown
5200 esac
5201 elif test "$with_gnu_ld" = yes; then
5202 echo "$as_me:$LINENO: checking for GNU ld" >&5
5203 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5204 else
5205 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5206 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5208 if test "${lt_cv_path_LD+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -z "$LD"; then
5212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5213 for ac_dir in $PATH; do
5214 test -z "$ac_dir" && ac_dir=.
5215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216 lt_cv_path_LD="$ac_dir/$ac_prog"
5217 # Check to see if the program is GNU ld. I'd rather use --version,
5218 # but apparently some GNU ld's only accept -v.
5219 # Break only if it was the GNU/non-GNU ld that we prefer.
5220 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5221 test "$with_gnu_ld" != no && break
5222 else
5223 test "$with_gnu_ld" != yes && break
5226 done
5227 IFS="$ac_save_ifs"
5228 else
5229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5233 LD="$lt_cv_path_LD"
5234 if test -n "$LD"; then
5235 echo "$as_me:$LINENO: result: $LD" >&5
5236 echo "${ECHO_T}$LD" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5241 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5242 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5243 { (exit 1); exit 1; }; }
5244 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5245 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5246 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5250 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5251 lt_cv_prog_gnu_ld=yes
5252 else
5253 lt_cv_prog_gnu_ld=no
5256 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5257 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5258 with_gnu_ld=$lt_cv_prog_gnu_ld
5261 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5262 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5263 if test "${lt_cv_ld_reload_flag+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 lt_cv_ld_reload_flag='-r'
5268 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5269 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5270 reload_flag=$lt_cv_ld_reload_flag
5271 test -n "$reload_flag" && reload_flag=" $reload_flag"
5273 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5274 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5275 if test "${lt_cv_path_NM+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 if test -n "$NM"; then
5279 # Let the user override the test.
5280 lt_cv_path_NM="$NM"
5281 else
5282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5283 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5284 test -z "$ac_dir" && ac_dir=.
5285 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5286 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5287 # Check to see if the nm accepts a BSD-compat flag.
5288 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5289 # nm: unknown option "B" ignored
5290 # Tru64's nm complains that /dev/null is an invalid object file
5291 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5292 lt_cv_path_NM="$tmp_nm -B"
5293 break
5294 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5295 lt_cv_path_NM="$tmp_nm -p"
5296 break
5297 else
5298 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5299 continue # so that we can try to find one that supports BSD flags
5302 done
5303 IFS="$ac_save_ifs"
5304 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5308 NM="$lt_cv_path_NM"
5309 echo "$as_me:$LINENO: result: $NM" >&5
5310 echo "${ECHO_T}$NM" >&6
5312 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5313 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5314 if test "${lt_cv_deplibs_check_method+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 lt_cv_file_magic_cmd='$MAGIC_CMD'
5318 lt_cv_file_magic_test_file=
5319 lt_cv_deplibs_check_method='unknown'
5320 # Need to set the preceding variable on all platforms that support
5321 # interlibrary dependencies.
5322 # 'none' -- dependencies not supported.
5323 # `unknown' -- same as none, but documents that we really don't know.
5324 # 'pass_all' -- all dependencies passed with no checks.
5325 # 'test_compile' -- check by making test program.
5326 # 'file_magic [regex]' -- check by looking for files in library path
5327 # which responds to the $file_magic_cmd with a given egrep regex.
5328 # If you have `file' or equivalent on your system and you're not sure
5329 # whether `pass_all' will *always* work, you probably want this one.
5331 case $host_os in
5332 aix*)
5333 lt_cv_deplibs_check_method=pass_all
5336 beos*)
5337 lt_cv_deplibs_check_method=pass_all
5340 bsdi4*)
5341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5342 lt_cv_file_magic_cmd='/usr/bin/file -L'
5343 lt_cv_file_magic_test_file=/shlib/libc.so
5346 cygwin* | mingw* |pw32*)
5347 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5348 lt_cv_file_magic_cmd='$OBJDUMP -f'
5351 darwin* | rhapsody*)
5352 # this will be overwritten by pass_all, but leave it in just in case
5353 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5354 lt_cv_file_magic_cmd='/usr/bin/file -L'
5355 case "$host_os" in
5356 rhapsody* | darwin1.012)
5357 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5359 *) # Darwin 1.3 on
5360 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5362 esac
5363 lt_cv_deplibs_check_method=pass_all
5366 freebsd* | kfreebsd*-gnu)
5367 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5368 case $host_cpu in
5369 i*86 )
5370 # Not sure whether the presence of OpenBSD here was a mistake.
5371 # Let's accept both of them until this is cleared up.
5372 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5373 lt_cv_file_magic_cmd=/usr/bin/file
5374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5376 esac
5377 else
5378 lt_cv_deplibs_check_method=pass_all
5382 gnu*)
5383 lt_cv_deplibs_check_method=pass_all
5386 hpux10.20*|hpux11*)
5387 case $host_cpu in
5388 hppa*)
5389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5390 lt_cv_file_magic_cmd=/usr/bin/file
5391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5393 ia64*)
5394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5395 lt_cv_file_magic_cmd=/usr/bin/file
5396 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5398 esac
5401 irix5* | irix6*)
5402 case $host_os in
5403 irix5*)
5404 # this will be overridden with pass_all, but let us keep it just in case
5405 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5408 case $LD in
5409 *-32|*"-32 ") libmagic=32-bit;;
5410 *-n32|*"-n32 ") libmagic=N32;;
5411 *-64|*"-64 ") libmagic=64-bit;;
5412 *) libmagic=never-match;;
5413 esac
5414 # this will be overridden with pass_all, but let us keep it just in case
5415 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5417 esac
5418 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5419 lt_cv_deplibs_check_method=pass_all
5422 # This must be Linux ELF.
5423 linux-gnu*)
5424 lt_cv_deplibs_check_method=pass_all
5427 netbsd* | knetbsd*-gnu)
5428 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5429 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5430 else
5431 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5435 newsos6)
5436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5441 osf3* | osf4* | osf5*)
5442 # this will be overridden with pass_all, but let us keep it just in case
5443 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5444 lt_cv_file_magic_test_file=/shlib/libc.so
5445 lt_cv_deplibs_check_method=pass_all
5448 sco3.2v5*)
5449 lt_cv_deplibs_check_method=pass_all
5452 solaris*)
5453 lt_cv_deplibs_check_method=pass_all
5454 lt_cv_file_magic_test_file=/lib/libc.so
5457 sysv5uw[78]* | sysv4*uw2*)
5458 lt_cv_deplibs_check_method=pass_all
5461 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5462 case $host_vendor in
5463 ncr)
5464 lt_cv_deplibs_check_method=pass_all
5466 motorola)
5467 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]'
5468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5470 esac
5472 esac
5475 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5476 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5477 file_magic_cmd=$lt_cv_file_magic_cmd
5478 deplibs_check_method=$lt_cv_deplibs_check_method
5483 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5485 # find the maximum length of command line arguments
5486 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5487 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5488 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5492 teststring="ABCD"
5494 case $build_os in
5495 msdosdjgpp*)
5496 # On DJGPP, this test can blow up pretty badly due to problems in libc
5497 # (any single argument exceeding 2000 bytes causes a buffer overrun
5498 # during glob expansion). Even if it were fixed, the result of this
5499 # check would be larger than it should be.
5500 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5503 cygwin* | mingw*)
5504 # On Win9x/ME, this test blows up -- it succeeds, but takes
5505 # about 5 minutes as the teststring grows exponentially.
5506 # Worse, since 9x/ME are not pre-emptively multitasking,
5507 # you end up with a "frozen" computer, even though with patience
5508 # the test eventually succeeds (with a max line length of 256k).
5509 # Instead, let's just punt: use the minimum linelength reported by
5510 # all of the supported platforms: 8192 (on NT/2K/XP).
5511 lt_cv_sys_max_cmd_len=8192;
5514 amigaos*)
5515 # On AmigaOS with pdksh, this test takes hours, literally.
5516 # So we just punt and use a minimum line length of 8192.
5517 lt_cv_sys_max_cmd_len=8192;
5520 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5521 # This has been around since 386BSD, at least. Likely further.
5522 if test -x /sbin/sysctl; then
5523 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5524 elif test -x /usr/sbin/sysctl; then
5525 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5526 else
5527 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5529 # And add a safety zone
5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5533 esac
5537 if test -n "$lt_cv_sys_max_cmd_len" ; then
5538 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5539 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5540 else
5541 echo "$as_me:$LINENO: result: none" >&5
5542 echo "${ECHO_T}none" >&6
5546 # Only perform the check for file, if the check method requires it
5547 case $deplibs_check_method in
5548 file_magic*)
5549 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5550 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5551 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 case $MAGIC_CMD in
5557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5559 ?:/*)
5560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5563 ac_save_MAGIC_CMD="$MAGIC_CMD"
5564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5565 ac_dummy="/usr/bin:$PATH"
5566 for ac_dir in $ac_dummy; do
5567 test -z "$ac_dir" && ac_dir=.
5568 if test -f $ac_dir/${ac_tool_prefix}file; then
5569 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5570 if test -n "$file_magic_test_file"; then
5571 case $deplibs_check_method in
5572 "file_magic "*)
5573 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5576 egrep "$file_magic_regex" > /dev/null; then
5578 else
5579 cat <<EOF 1>&2
5581 *** Warning: the command libtool uses to detect shared libraries,
5582 *** $file_magic_cmd, produces output that libtool cannot recognize.
5583 *** The result is that libtool may fail to recognize shared libraries
5584 *** as such. This will affect the creation of libtool libraries that
5585 *** depend on shared libraries, but programs linked with such libtool
5586 *** libraries will work regardless of this problem. Nevertheless, you
5587 *** may want to report the problem to your system manager and/or to
5588 *** bug-libtool@gnu.org
5591 fi ;;
5592 esac
5594 break
5596 done
5597 IFS="$ac_save_ifs"
5598 MAGIC_CMD="$ac_save_MAGIC_CMD"
5600 esac
5603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5604 if test -n "$MAGIC_CMD"; then
5605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5606 echo "${ECHO_T}$MAGIC_CMD" >&6
5607 else
5608 echo "$as_me:$LINENO: result: no" >&5
5609 echo "${ECHO_T}no" >&6
5612 if test -z "$lt_cv_path_MAGIC_CMD"; then
5613 if test -n "$ac_tool_prefix"; then
5614 echo "$as_me:$LINENO: checking for file" >&5
5615 echo $ECHO_N "checking for file... $ECHO_C" >&6
5616 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619 case $MAGIC_CMD in
5621 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5623 ?:/*)
5624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5627 ac_save_MAGIC_CMD="$MAGIC_CMD"
5628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5629 ac_dummy="/usr/bin:$PATH"
5630 for ac_dir in $ac_dummy; do
5631 test -z "$ac_dir" && ac_dir=.
5632 if test -f $ac_dir/file; then
5633 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5634 if test -n "$file_magic_test_file"; then
5635 case $deplibs_check_method in
5636 "file_magic "*)
5637 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5640 egrep "$file_magic_regex" > /dev/null; then
5642 else
5643 cat <<EOF 1>&2
5645 *** Warning: the command libtool uses to detect shared libraries,
5646 *** $file_magic_cmd, produces output that libtool cannot recognize.
5647 *** The result is that libtool may fail to recognize shared libraries
5648 *** as such. This will affect the creation of libtool libraries that
5649 *** depend on shared libraries, but programs linked with such libtool
5650 *** libraries will work regardless of this problem. Nevertheless, you
5651 *** may want to report the problem to your system manager and/or to
5652 *** bug-libtool@gnu.org
5655 fi ;;
5656 esac
5658 break
5660 done
5661 IFS="$ac_save_ifs"
5662 MAGIC_CMD="$ac_save_MAGIC_CMD"
5664 esac
5667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5668 if test -n "$MAGIC_CMD"; then
5669 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5670 echo "${ECHO_T}$MAGIC_CMD" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5676 else
5677 MAGIC_CMD=:
5683 esac
5685 if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5687 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5688 echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690 if test "${ac_cv_prog_RANLIB+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693 if test -n "$RANLIB"; then
5694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5707 done
5708 done
5712 RANLIB=$ac_cv_prog_RANLIB
5713 if test -n "$RANLIB"; then
5714 echo "$as_me:$LINENO: result: $RANLIB" >&5
5715 echo "${ECHO_T}$RANLIB" >&6
5716 else
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5722 if test -z "$ac_cv_prog_RANLIB"; then
5723 ac_ct_RANLIB=$RANLIB
5724 # Extract the first word of "ranlib", so it can be a program name with args.
5725 set dummy ranlib; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 if test -n "$ac_ct_RANLIB"; then
5732 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_ac_ct_RANLIB="ranlib"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5748 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5751 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5752 if test -n "$ac_ct_RANLIB"; then
5753 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5754 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5760 RANLIB=$ac_ct_RANLIB
5761 else
5762 RANLIB="$ac_cv_prog_RANLIB"
5765 if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5767 set dummy ${ac_tool_prefix}strip; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_STRIP+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 if test -n "$STRIP"; then
5774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5787 done
5788 done
5792 STRIP=$ac_cv_prog_STRIP
5793 if test -n "$STRIP"; then
5794 echo "$as_me:$LINENO: result: $STRIP" >&5
5795 echo "${ECHO_T}$STRIP" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5802 if test -z "$ac_cv_prog_STRIP"; then
5803 ac_ct_STRIP=$STRIP
5804 # Extract the first word of "strip", so it can be a program name with args.
5805 set dummy strip; ac_word=$2
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 if test -n "$ac_ct_STRIP"; then
5812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_ac_ct_STRIP="strip"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5825 done
5826 done
5828 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5832 if test -n "$ac_ct_STRIP"; then
5833 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5834 echo "${ECHO_T}$ac_ct_STRIP" >&6
5835 else
5836 echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5840 STRIP=$ac_ct_STRIP
5841 else
5842 STRIP="$ac_cv_prog_STRIP"
5846 # Check for any special flags to pass to ltconfig.
5847 libtool_flags="--cache-file=$cache_file"
5848 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5849 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5850 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5851 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5852 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5855 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5856 if test "${enable_libtool_lock+set}" = set; then
5857 enableval="$enable_libtool_lock"
5860 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5861 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5864 # Check whether --with-pic or --without-pic was given.
5865 if test "${with_pic+set}" = set; then
5866 withval="$with_pic"
5867 pic_mode="$withval"
5868 else
5869 pic_mode=default
5871 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5872 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5874 # Some flags need to be propagated to the compiler or linker for good
5875 # libtool support.
5876 case $host in
5877 *-*-irix6*)
5878 # Find out which ABI we are using.
5879 echo '#line 5879 "configure"' > conftest.$ac_ext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; then
5885 if test "$lt_cv_prog_gnu_ld" = yes; then
5886 case `/usr/bin/file conftest.$ac_objext` in
5887 *32-bit*)
5888 LD="${LD-ld} -melf32bsmip"
5890 *N32*)
5891 LD="${LD-ld} -melf32bmipn32"
5893 *64-bit*)
5894 LD="${LD-ld} -melf64bmip"
5896 esac
5897 else
5898 case `/usr/bin/file conftest.$ac_objext` in
5899 *32-bit*)
5900 LD="${LD-ld} -32"
5902 *N32*)
5903 LD="${LD-ld} -n32"
5905 *64-bit*)
5906 LD="${LD-ld} -64"
5908 esac
5911 rm -rf conftest*
5914 ia64-*-hpux*)
5915 # Find out which ABI we are using.
5916 echo 'int i;' > conftest.$ac_ext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; then
5922 case "`/usr/bin/file conftest.o`" in
5923 *ELF-32*)
5924 HPUX_IA64_MODE="32"
5926 *ELF-64*)
5927 HPUX_IA64_MODE="64"
5929 esac
5931 rm -rf conftest*
5934 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5935 # Find out which ABI we are using.
5936 echo 'int i;' > conftest.$ac_ext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; then
5942 case "`/usr/bin/file conftest.o`" in
5943 *32-bit*)
5944 case $host in
5945 x86_64-*linux*)
5946 LD="${LD-ld} -m elf_i386"
5948 ppc64-*linux*|powerpc64-*linux*)
5949 LD="${LD-ld} -m elf32ppclinux"
5951 s390x-*linux*)
5952 LD="${LD-ld} -m elf_s390"
5954 sparc64-*linux*)
5955 LD="${LD-ld} -m elf32_sparc"
5957 esac
5959 *64-bit*)
5960 case $host in
5961 x86_64-*linux*)
5962 LD="${LD-ld} -m elf_x86_64"
5964 ppc*-*linux*|powerpc*-*linux*)
5965 LD="${LD-ld} -m elf64ppc"
5967 s390*-*linux*)
5968 LD="${LD-ld} -m elf64_s390"
5970 sparc*-*linux*)
5971 LD="${LD-ld} -m elf64_sparc"
5973 esac
5975 esac
5977 rm -rf conftest*
5980 *-*-sco3.2v5*)
5981 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5982 SAVE_CFLAGS="$CFLAGS"
5983 CFLAGS="$CFLAGS -belf"
5984 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5985 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5986 if test "${lt_cv_cc_needs_belf+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5991 ac_ext=c
5992 ac_cpp='$CPP $CPPFLAGS'
5993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 if test x$gcc_no_link = xyes; then
5998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6000 { (exit 1); exit 1; }; }
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6010 main ()
6014 return 0;
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest$ac_exeext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 lt_cv_cc_needs_belf=yes
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 lt_cv_cc_needs_belf=no
6046 rm -f conftest.err conftest.$ac_objext \
6047 conftest$ac_exeext conftest.$ac_ext
6048 ac_ext=c
6049 ac_cpp='$CPP $CPPFLAGS'
6050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6055 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6056 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6057 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6059 CFLAGS="$SAVE_CFLAGS"
6064 esac
6067 # Save cache, so that ltconfig can load it
6068 cat >confcache <<\_ACEOF
6069 # This file is a shell script that caches the results of configure
6070 # tests run on this system so they can be shared between configure
6071 # scripts and configure runs, see configure's option --config-cache.
6072 # It is not useful on other systems. If it contains results you don't
6073 # want to keep, you may remove or edit it.
6075 # config.status only pays attention to the cache file if you give it
6076 # the --recheck option to rerun configure.
6078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6080 # following values.
6082 _ACEOF
6084 # The following way of writing the cache mishandles newlines in values,
6085 # but we know of no workaround that is simple, portable, and efficient.
6086 # So, don't put newlines in cache variables' values.
6087 # Ultrix sh set writes to stderr and can't be redirected directly,
6088 # and sets the high bit in the cache file unless we assign to the vars.
6090 (set) 2>&1 |
6091 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6092 *ac_space=\ *)
6093 # `set' does not quote correctly, so add quotes (double-quote
6094 # substitution turns \\\\ into \\, and sed turns \\ into \).
6095 sed -n \
6096 "s/'/'\\\\''/g;
6097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6100 # `set' quotes correctly as required by POSIX, so do not add quotes.
6101 sed -n \
6102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6104 esac;
6106 sed '
6107 t clear
6108 : clear
6109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6110 t end
6111 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6112 : end' >>confcache
6113 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6114 if test -w $cache_file; then
6115 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6116 cat confcache >$cache_file
6117 else
6118 echo "not updating unwritable cache $cache_file"
6121 rm -f confcache
6123 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6124 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6125 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6126 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6127 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6128 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6129 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6130 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6131 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6132 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6133 echo "$as_me: error: libtool configure failed" >&2;}
6134 { (exit 1); exit 1; }; }
6136 # Reload cache, that may have been modified by ltconfig
6137 if test -r "$cache_file"; then
6138 # Some versions of bash will fail to source /dev/null (special
6139 # files actually), so we avoid doing that.
6140 if test -f "$cache_file"; then
6141 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6142 echo "$as_me: loading cache $cache_file" >&6;}
6143 case $cache_file in
6144 [\\/]* | ?:[\\/]* ) . $cache_file;;
6145 *) . ./$cache_file;;
6146 esac
6148 else
6149 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6150 echo "$as_me: creating cache $cache_file" >&6;}
6151 >$cache_file
6155 # This can be used to rebuild libtool when needed
6156 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6158 # Always use our own libtool.
6159 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6161 # Redirect the config.log output again, so that the ltconfig log is not
6162 # clobbered by the next message.
6163 exec 5>>./config.log
6165 ac_ext=cc
6166 ac_cpp='$CXXCPP $CPPFLAGS'
6167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6170 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6171 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6172 if test -z "$CXXCPP"; then
6173 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176 # Double quotes because CXXCPP needs to be expanded
6177 for CXXCPP in "$CXX -E" "/lib/cpp"
6179 ac_preproc_ok=false
6180 for ac_cxx_preproc_warn_flag in '' yes
6182 # Use a header file that comes with gcc, so configuring glibc
6183 # with a fresh cross-compiler works.
6184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6185 # <limits.h> exists even on freestanding compilers.
6186 # On the NeXT, cc -E runs the code through the compiler's parser,
6187 # not just through cpp. "Syntax error" is here to catch this case.
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #ifdef __STDC__
6195 # include <limits.h>
6196 #else
6197 # include <assert.h>
6198 #endif
6199 Syntax error
6200 _ACEOF
6201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } >/dev/null; then
6209 if test -s conftest.err; then
6210 ac_cpp_err=$ac_cxx_preproc_warn_flag
6211 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6212 else
6213 ac_cpp_err=
6215 else
6216 ac_cpp_err=yes
6218 if test -z "$ac_cpp_err"; then
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 # Broken: fails on valid input.
6225 continue
6227 rm -f conftest.err conftest.$ac_ext
6229 # OK, works on sane cases. Now check whether non-existent headers
6230 # can be detected and how.
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #include <ac_nonexistent.h>
6238 _ACEOF
6239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev/null; then
6247 if test -s conftest.err; then
6248 ac_cpp_err=$ac_cxx_preproc_warn_flag
6249 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6250 else
6251 ac_cpp_err=
6253 else
6254 ac_cpp_err=yes
6256 if test -z "$ac_cpp_err"; then
6257 # Broken: success on invalid input.
6258 continue
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 # Passes both tests.
6264 ac_preproc_ok=:
6265 break
6267 rm -f conftest.err conftest.$ac_ext
6269 done
6270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6271 rm -f conftest.err conftest.$ac_ext
6272 if $ac_preproc_ok; then
6273 break
6276 done
6277 ac_cv_prog_CXXCPP=$CXXCPP
6280 CXXCPP=$ac_cv_prog_CXXCPP
6281 else
6282 ac_cv_prog_CXXCPP=$CXXCPP
6284 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6285 echo "${ECHO_T}$CXXCPP" >&6
6286 ac_preproc_ok=false
6287 for ac_cxx_preproc_warn_flag in '' yes
6289 # Use a header file that comes with gcc, so configuring glibc
6290 # with a fresh cross-compiler works.
6291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6292 # <limits.h> exists even on freestanding compilers.
6293 # On the NeXT, cc -E runs the code through the compiler's parser,
6294 # not just through cpp. "Syntax error" is here to catch this case.
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 #ifdef __STDC__
6302 # include <limits.h>
6303 #else
6304 # include <assert.h>
6305 #endif
6306 Syntax error
6307 _ACEOF
6308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } >/dev/null; then
6316 if test -s conftest.err; then
6317 ac_cpp_err=$ac_cxx_preproc_warn_flag
6318 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6319 else
6320 ac_cpp_err=
6322 else
6323 ac_cpp_err=yes
6325 if test -z "$ac_cpp_err"; then
6327 else
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 # Broken: fails on valid input.
6332 continue
6334 rm -f conftest.err conftest.$ac_ext
6336 # OK, works on sane cases. Now check whether non-existent headers
6337 # can be detected and how.
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 <ac_nonexistent.h>
6345 _ACEOF
6346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } >/dev/null; then
6354 if test -s conftest.err; then
6355 ac_cpp_err=$ac_cxx_preproc_warn_flag
6356 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6357 else
6358 ac_cpp_err=
6360 else
6361 ac_cpp_err=yes
6363 if test -z "$ac_cpp_err"; then
6364 # Broken: success on invalid input.
6365 continue
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 # Passes both tests.
6371 ac_preproc_ok=:
6372 break
6374 rm -f conftest.err conftest.$ac_ext
6376 done
6377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6378 rm -f conftest.err conftest.$ac_ext
6379 if $ac_preproc_ok; then
6381 else
6382 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6383 See \`config.log' for more details." >&5
6384 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6385 See \`config.log' for more details." >&2;}
6386 { (exit 1); exit 1; }; }
6389 ac_ext=c
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6397 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6398 lt_save_CC="$CC"
6399 lt_save_CFLAGS="$CFLAGS"
6400 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6401 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6402 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6403 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6404 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6405 deplibs_check_method="$deplibs_check_method" \
6406 file_magic_cmd="$file_magic_cmd" \
6407 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6408 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6409 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6410 echo "$as_me: error: libtool tag configuration failed" >&2;}
6411 { (exit 1); exit 1; }; }
6412 CC="$lt_save_CC"
6413 CFLAGS="$lt_save_CFLAGS"
6415 # Redirect the config.log output again, so that the ltconfig log is not
6416 # clobbered by the next message.
6417 exec 5>>./config.log
6425 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6427 # Extract the first word of "$ac_prog", so it can be a program name with args.
6428 set dummy $ac_prog; ac_word=$2
6429 echo "$as_me:$LINENO: checking for $ac_word" >&5
6430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6431 if test "${ac_cv_prog_GCJ+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 if test -n "$GCJ"; then
6435 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_GCJ="$ac_prog"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6448 done
6449 done
6453 GCJ=$ac_cv_prog_GCJ
6454 if test -n "$GCJ"; then
6455 echo "$as_me:$LINENO: result: $GCJ" >&5
6456 echo "${ECHO_T}$GCJ" >&6
6457 else
6458 echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6
6462 test -n "$GCJ" && break
6463 done
6464 test -n "$GCJ" || GCJ="gcj"
6466 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6467 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6468 { (exit 1); exit 1; }; }
6469 if test "x${GCJFLAGS-unset}" = xunset; then
6470 GCJFLAGS="-g -O2"
6474 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6476 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6477 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6478 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6482 # We make a subdir and do the tests there. Otherwise we can end up
6483 # making bogus files that we don't know about and never remove. For
6484 # instance it was reported that on HP-UX the gcc test will end up
6485 # making a dummy file named `D' -- because `-MD' means `put the output
6486 # in D'.
6487 mkdir conftest.dir
6488 # Copy depcomp to subdir because otherwise we won't find it if we're
6489 # using a relative directory.
6490 cp "$am_depcomp" conftest.dir
6491 cd conftest.dir
6492 # We will build objects and dependencies in a subdirectory because
6493 # it helps to detect inapplicable dependency modes. For instance
6494 # both Tru64's cc and ICC support -MD to output dependencies as a
6495 # side effect of compilation, but ICC will put the dependencies in
6496 # the current directory while Tru64 will put them in the object
6497 # directory.
6498 mkdir sub
6500 am_cv_GCJ_dependencies_compiler_type=none
6501 if test "$am_compiler_list" = ""; then
6502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6504 for depmode in $am_compiler_list; do
6505 # Setup a source with many dependencies, because some compilers
6506 # like to wrap large dependency lists on column 80 (with \), and
6507 # we should not choose a depcomp mode which is confused by this.
6509 # We need to recreate these files for each test, as the compiler may
6510 # overwrite some of them when testing with obscure command lines.
6511 # This happens at least with the AIX C compiler.
6512 : > sub/conftest.c
6513 for i in 1 2 3 4 5 6; do
6514 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6515 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6516 # Solaris 8's {/usr,}/bin/sh.
6517 touch sub/conftst$i.h
6518 done
6519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6521 case $depmode in
6522 nosideeffect)
6523 # after this tag, mechanisms are not by side-effect, so they'll
6524 # only be used when explicitly requested
6525 if test "x$enable_dependency_tracking" = xyes; then
6526 continue
6527 else
6528 break
6531 none) break ;;
6532 esac
6533 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6534 # mode. It turns out that the SunPro C++ compiler does not properly
6535 # handle `-M -o', and we need to detect this.
6536 if depmode=$depmode \
6537 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6539 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6540 >/dev/null 2>conftest.err &&
6541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6542 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6544 # icc doesn't choke on unknown options, it will just issue warnings
6545 # or remarks (even with -Werror). So we grep stderr for any message
6546 # that says an option was ignored or not supported.
6547 # When given -MP, icc 7.0 and 7.1 complain thusly:
6548 # icc: Command line warning: ignoring option '-M'; no argument required
6549 # The diagnosis changed in icc 8.0:
6550 # icc: Command line remark: option '-MP' not supported
6551 if (grep 'ignoring option' conftest.err ||
6552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6553 am_cv_GCJ_dependencies_compiler_type=$depmode
6554 break
6557 done
6559 cd ..
6560 rm -rf conftest.dir
6561 else
6562 am_cv_GCJ_dependencies_compiler_type=none
6566 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6567 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6568 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6573 test "x$enable_dependency_tracking" != xno \
6574 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6575 am__fastdepGCJ_TRUE=
6576 am__fastdepGCJ_FALSE='#'
6577 else
6578 am__fastdepGCJ_TRUE='#'
6579 am__fastdepGCJ_FALSE=
6585 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6586 lt_save_CC="$CC"
6587 lt_save_CFLAGS="$CFLAGS"
6588 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6593 deplibs_check_method="$deplibs_check_method" \
6594 file_magic_cmd="$file_magic_cmd" \
6595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6596 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6597 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6598 echo "$as_me: error: libtool tag configuration failed" >&2;}
6599 { (exit 1); exit 1; }; }
6600 CC="$lt_save_CC"
6601 CFLAGS="$lt_save_CFLAGS"
6603 # Redirect the config.log output again, so that the ltconfig log is not
6604 # clobbered by the next message.
6605 exec 5>>./config.log
6609 if test "x$CC" != xcc; then
6610 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6611 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6612 else
6613 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6614 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6616 set dummy $CC; ac_cc=`echo $2 |
6617 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6618 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6629 main ()
6633 return 0;
6635 _ACEOF
6636 # Make sure it works both with $CC and with simple cc.
6637 # We do the test twice because some compilers refuse to overwrite an
6638 # existing .o file with -o, though they will create one.
6639 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6640 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 (eval $ac_try) 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } &&
6645 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); };
6650 then
6651 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6652 if test "x$CC" != xcc; then
6653 # Test first that cc exists at all.
6654 if { ac_try='cc -c conftest.$ac_ext >&5'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6661 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); };
6671 then
6672 # cc works too.
6674 else
6675 # cc exists but doesn't like -o.
6676 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6680 else
6681 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6683 rm -f conftest*
6686 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6687 echo "$as_me:$LINENO: result: yes" >&5
6688 echo "${ECHO_T}yes" >&6
6689 else
6690 echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6
6693 cat >>confdefs.h <<\_ACEOF
6694 #define NO_MINUS_C_MINUS_O 1
6695 _ACEOF
6699 # FIXME: we rely on the cache variable name because
6700 # there is no other way.
6701 set dummy $CC
6702 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6703 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6704 # Losing compiler, so override with the script.
6705 # FIXME: It is wrong to rewrite CC.
6706 # But if we don't then we get into trouble of one sort or another.
6707 # A longer-term fix would be to have automake use am__CC in this case,
6708 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6709 CC="$am_aux_dir/compile $CC"
6715 subdirs="$subdirs classpath libltdl"
6718 # The -no-testsuite modules omit the test subdir.
6721 if test -d $srcdir/testsuite; then
6722 TESTSUBDIR_TRUE=
6723 TESTSUBDIR_FALSE='#'
6724 else
6725 TESTSUBDIR_TRUE='#'
6726 TESTSUBDIR_FALSE=
6730 # Should the runtime set system properties by examining the
6731 # environment variable GCJ_PROPERTIES?
6732 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6733 if test "${enable_getenv_properties+set}" = set; then
6734 enableval="$enable_getenv_properties"
6738 # Whether GCJ_PROPERTIES is used depends on the target.
6739 if test -z "$enable_getenv_properties"; then
6740 enable_getenv_properties=${enable_getenv_properties_default-yes}
6742 if test "$enable_getenv_properties" = no; then
6744 cat >>confdefs.h <<\_ACEOF
6745 #define DISABLE_GETENV_PROPERTIES 1
6746 _ACEOF
6750 # Whether we should use arguments to main()
6751 if test -z "$enable_main_args"; then
6752 enable_main_args=${enable_main_args_default-yes}
6754 if test "$enable_main_args" = no; then
6756 cat >>confdefs.h <<\_ACEOF
6757 #define DISABLE_MAIN_ARGS 1
6758 _ACEOF
6763 # Should we use hashtable-based synchronization?
6764 # Currently works only for Linux X86/ia64
6765 # Typically faster and more space-efficient
6766 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6767 if test "${enable_hash_synchronization+set}" = set; then
6768 enableval="$enable_hash_synchronization"
6772 if test -z "$enable_hash_synchronization"; then
6773 enable_hash_synchronization=$enable_hash_synchronization_default
6777 # Check whether --with-java-home or --without-java-home was given.
6778 if test "${with_java_home+set}" = set; then
6779 withval="$with_java_home"
6780 JAVA_HOME="${withval}"
6781 else
6782 JAVA_HOME=""
6786 if test ! -z "$JAVA_HOME"; then
6787 JAVA_HOME_SET_TRUE=
6788 JAVA_HOME_SET_FALSE='#'
6789 else
6790 JAVA_HOME_SET_TRUE='#'
6791 JAVA_HOME_SET_FALSE=
6796 # What is the native OS API for MinGW?
6798 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6799 if test "${with_win32_nlsapi+set}" = set; then
6800 withval="$with_win32_nlsapi"
6801 case "${withval}" in
6802 ansi) with_win32_nlsapi=ansi ;;
6803 unicows) with_win32_nlsapi=unicows ;;
6804 unicode) with_win32_nlsapi=unicode ;;
6805 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6806 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6807 { (exit 1); exit 1; }; } ;;
6808 esac
6809 else
6810 with_win32_nlsapi=ansi
6813 case "${with_win32_nlsapi}" in
6814 unicows | unicode)
6816 cat >>confdefs.h <<\_ACEOF
6817 #define MINGW_LIBGCJ_UNICODE 1
6818 _ACEOF
6821 esac
6823 # configure.host sets slow_pthread_self if the synchronization code should
6824 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6825 if test "${slow_pthread_self}" = "yes"; then
6827 cat >>confdefs.h <<\_ACEOF
6828 #define SLOW_PTHREAD_SELF 1
6829 _ACEOF
6833 # Check for gc debugging. This option is handled both here and in the GC.
6834 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6835 if test "${enable_gc_debug+set}" = set; then
6836 enableval="$enable_gc_debug"
6837 if test "$enable_gc_debug" = "yes"; then
6839 cat >>confdefs.h <<\_ACEOF
6840 #define LIBGCJ_GC_DEBUG 1
6841 _ACEOF
6846 # See if the user has the interpreter included.
6847 # Check whether --enable-interpreter or --disable-interpreter was given.
6848 if test "${enable_interpreter+set}" = set; then
6849 enableval="$enable_interpreter"
6850 if test "$enable_interpreter" = yes; then
6851 # This can also be set in configure.host.
6852 libgcj_interpreter=yes
6853 elif test "$enable_interpreter" = no; then
6854 libgcj_interpreter=no
6858 if test "$libgcj_interpreter" = yes; then
6860 cat >>confdefs.h <<\_ACEOF
6861 #define INTERPRETER 1
6862 _ACEOF
6865 INTERPRETER="$libgcj_interpreter"
6868 echo "$as_me:$LINENO: checking for exception model to use" >&5
6869 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6870 ac_ext=cc
6871 ac_cpp='$CXXCPP $CPPFLAGS'
6872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6876 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6877 if test "${enable_sjlj_exceptions+set}" = set; then
6878 enableval="$enable_sjlj_exceptions"
6880 else
6881 cat > conftest.$ac_ext << EOF
6882 #line 6882 "configure"
6883 struct S { ~S(); };
6884 void bar();
6885 void foo()
6887 S s;
6888 bar();
6891 old_CXXFLAGS="$CXXFLAGS"
6892 CXXFLAGS=-S
6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; then
6898 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6899 enable_sjlj_exceptions=yes
6900 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6901 enable_sjlj_exceptions=no
6904 CXXFLAGS="$old_CXXFLAGS"
6905 rm -f conftest*
6907 if test x$enable_sjlj_exceptions = xyes; then
6909 cat >>confdefs.h <<\_ACEOF
6910 #define SJLJ_EXCEPTIONS 1
6911 _ACEOF
6913 ac_exception_model_name=sjlj
6914 elif test x$enable_sjlj_exceptions = xno; then
6915 ac_exception_model_name="call frame"
6916 else
6917 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6918 echo "$as_me: error: unable to detect exception model" >&2;}
6919 { (exit 1); exit 1; }; }
6921 ac_ext=c
6922 ac_cpp='$CPP $CPPFLAGS'
6923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6928 echo "${ECHO_T}$ac_exception_model_name" >&6
6930 # If we are non using SJLJ exceptions, and this host does not have support
6931 # for unwinding from a signal handler, enable checked dereferences and divides.
6932 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6933 CHECKREFSPEC=-fcheck-references
6934 DIVIDESPEC=-fuse-divide-subroutine
6935 EXCEPTIONSPEC=
6938 # See if the user wants to disable java.net. This is the mildly
6939 # ugly way that we admit that target-side configuration sucks.
6940 # Check whether --enable-java-net or --disable-java-net was given.
6941 if test "${enable_java_net+set}" = set; then
6942 enableval="$enable_java_net"
6946 # Whether java.net is built by default can depend on the target.
6947 if test -z "$enable_java_net"; then
6948 enable_java_net=${enable_java_net_default-yes}
6950 if test "$enable_java_net" = no; then
6952 cat >>confdefs.h <<\_ACEOF
6953 #define DISABLE_JAVA_NET 1
6954 _ACEOF
6958 # See if the user wants to configure without libffi. Some
6959 # architectures don't support it, and default values are set in
6960 # configure.host.
6962 # Check whether --with-libffi or --without-libffi was given.
6963 if test "${with_libffi+set}" = set; then
6964 withval="$with_libffi"
6966 else
6967 with_libffi=${with_libffi_default-yes}
6970 LIBFFI=
6971 LIBFFIINCS=
6972 if test "$with_libffi" != no; then
6974 cat >>confdefs.h <<\_ACEOF
6975 #define USE_LIBFFI 1
6976 _ACEOF
6978 LIBFFI=../libffi/libffi_convenience.la
6979 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6984 # See if the user wants to disable JVMPI support.
6985 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6986 if test "${enable_jvmpi+set}" = set; then
6987 enableval="$enable_jvmpi"
6991 if test "$enable_jvmpi" != no; then
6993 cat >>confdefs.h <<\_ACEOF
6994 #define ENABLE_JVMPI 1
6995 _ACEOF
6999 # If the target is an eCos system, use the appropriate eCos
7000 # I/O routines.
7001 # FIXME: this should not be a local option but a global target
7002 # system; at present there is no eCos target.
7003 TARGET_ECOS=${PROCESS-"no"}
7005 # Check whether --with-ecos or --without-ecos was given.
7006 if test "${with_ecos+set}" = set; then
7007 withval="$with_ecos"
7008 TARGET_ECOS="$with_ecos"
7012 PLATFORM_INNER_NAT_HDRS=
7013 case "$TARGET_ECOS" in
7014 no) case "$host" in
7015 *mingw*)
7016 PLATFORM=Win32
7017 PLATFORMNET=Win32
7018 PLATFORMH=win32.h
7020 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7021 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7022 LD_PROG=`$CC --print-prog-name=ld`
7023 LD_VERSION=`$LD_PROG --version`
7024 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7025 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7026 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7027 LD_OK="ok"
7028 else
7029 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7030 LD_OK="ok"
7033 if test "x$LD_OK" != x; then
7034 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7035 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7036 else
7037 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7038 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7039 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7040 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7042 cat >>confdefs.h <<\_ACEOF
7043 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7044 _ACEOF
7049 PLATFORM=Posix
7050 PLATFORMNET=Posix
7051 PLATFORMH=posix.h
7052 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7054 esac
7057 PLATFORM=Ecos
7058 PLATFORMNET=NoNet
7060 cat >>confdefs.h <<\_ACEOF
7061 #define ECOS 1
7062 _ACEOF
7064 PLATFORMH=posix.h
7066 esac
7068 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7071 ac_ext=c
7072 ac_cpp='$CPP $CPPFLAGS'
7073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7076 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7077 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7078 # On Suns, sometimes $CPP names a directory.
7079 if test -n "$CPP" && test -d "$CPP"; then
7080 CPP=
7082 if test -z "$CPP"; then
7083 if test "${ac_cv_prog_CPP+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 # Double quotes because CPP needs to be expanded
7087 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7089 ac_preproc_ok=false
7090 for ac_c_preproc_warn_flag in '' yes
7092 # Use a header file that comes with gcc, so configuring glibc
7093 # with a fresh cross-compiler works.
7094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7095 # <limits.h> exists even on freestanding compilers.
7096 # On the NeXT, cc -E runs the code through the compiler's parser,
7097 # not just through cpp. "Syntax error" is here to catch this case.
7098 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 #ifdef __STDC__
7105 # include <limits.h>
7106 #else
7107 # include <assert.h>
7108 #endif
7109 Syntax error
7110 _ACEOF
7111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } >/dev/null; then
7119 if test -s conftest.err; then
7120 ac_cpp_err=$ac_c_preproc_warn_flag
7121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7122 else
7123 ac_cpp_err=
7125 else
7126 ac_cpp_err=yes
7128 if test -z "$ac_cpp_err"; then
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 # Broken: fails on valid input.
7135 continue
7137 rm -f conftest.err conftest.$ac_ext
7139 # OK, works on sane cases. Now check whether non-existent headers
7140 # can be detected and how.
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <ac_nonexistent.h>
7148 _ACEOF
7149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } >/dev/null; then
7157 if test -s conftest.err; then
7158 ac_cpp_err=$ac_c_preproc_warn_flag
7159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7160 else
7161 ac_cpp_err=
7163 else
7164 ac_cpp_err=yes
7166 if test -z "$ac_cpp_err"; then
7167 # Broken: success on invalid input.
7168 continue
7169 else
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 # Passes both tests.
7174 ac_preproc_ok=:
7175 break
7177 rm -f conftest.err conftest.$ac_ext
7179 done
7180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7181 rm -f conftest.err conftest.$ac_ext
7182 if $ac_preproc_ok; then
7183 break
7186 done
7187 ac_cv_prog_CPP=$CPP
7190 CPP=$ac_cv_prog_CPP
7191 else
7192 ac_cv_prog_CPP=$CPP
7194 echo "$as_me:$LINENO: result: $CPP" >&5
7195 echo "${ECHO_T}$CPP" >&6
7196 ac_preproc_ok=false
7197 for ac_c_preproc_warn_flag in '' yes
7199 # Use a header file that comes with gcc, so configuring glibc
7200 # with a fresh cross-compiler works.
7201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7202 # <limits.h> exists even on freestanding compilers.
7203 # On the NeXT, cc -E runs the code through the compiler's parser,
7204 # not just through cpp. "Syntax error" is here to catch this case.
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h. */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 #ifdef __STDC__
7212 # include <limits.h>
7213 #else
7214 # include <assert.h>
7215 #endif
7216 Syntax error
7217 _ACEOF
7218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } >/dev/null; then
7226 if test -s conftest.err; then
7227 ac_cpp_err=$ac_c_preproc_warn_flag
7228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7229 else
7230 ac_cpp_err=
7232 else
7233 ac_cpp_err=yes
7235 if test -z "$ac_cpp_err"; then
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 # Broken: fails on valid input.
7242 continue
7244 rm -f conftest.err conftest.$ac_ext
7246 # OK, works on sane cases. Now check whether non-existent headers
7247 # can be detected and how.
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 #include <ac_nonexistent.h>
7255 _ACEOF
7256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } >/dev/null; then
7264 if test -s conftest.err; then
7265 ac_cpp_err=$ac_c_preproc_warn_flag
7266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7267 else
7268 ac_cpp_err=
7270 else
7271 ac_cpp_err=yes
7273 if test -z "$ac_cpp_err"; then
7274 # Broken: success on invalid input.
7275 continue
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 # Passes both tests.
7281 ac_preproc_ok=:
7282 break
7284 rm -f conftest.err conftest.$ac_ext
7286 done
7287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7288 rm -f conftest.err conftest.$ac_ext
7289 if $ac_preproc_ok; then
7291 else
7292 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7293 See \`config.log' for more details." >&5
7294 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7295 See \`config.log' for more details." >&2;}
7296 { (exit 1); exit 1; }; }
7299 ac_ext=c
7300 ac_cpp='$CPP $CPPFLAGS'
7301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306 echo "$as_me:$LINENO: checking for egrep" >&5
7307 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7308 if test "${ac_cv_prog_egrep+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7312 then ac_cv_prog_egrep='grep -E'
7313 else ac_cv_prog_egrep='egrep'
7316 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7317 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7318 EGREP=$ac_cv_prog_egrep
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 #include <stdint.h>
7329 _ACEOF
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331 $EGREP "uint32_t" >/dev/null 2>&1; then
7333 cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_INT32_DEFINED 1
7335 _ACEOF
7338 rm -f conftest*
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <inttypes.h>
7348 _ACEOF
7349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7350 $EGREP "uint32_t" >/dev/null 2>&1; then
7352 cat >>confdefs.h <<\_ACEOF
7353 #define HAVE_INT32_DEFINED 1
7354 _ACEOF
7357 rm -f conftest*
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 #include <sys/types.h>
7367 _ACEOF
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369 $EGREP "u_int32_t" >/dev/null 2>&1; then
7371 cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_BSD_INT32_DEFINED 1
7373 _ACEOF
7376 rm -f conftest*
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <sys/config.h>
7386 _ACEOF
7387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7388 $EGREP "u_int32_t" >/dev/null 2>&1; then
7390 cat >>confdefs.h <<\_ACEOF
7391 #define HAVE_BSD_INT32_DEFINED 1
7392 _ACEOF
7395 rm -f conftest*
7400 if test "$PLATFORM" = Win32; then
7401 USING_WIN32_PLATFORM_TRUE=
7402 USING_WIN32_PLATFORM_FALSE='#'
7403 else
7404 USING_WIN32_PLATFORM_TRUE='#'
7405 USING_WIN32_PLATFORM_FALSE=
7410 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7411 USING_POSIX_PLATFORM_TRUE=
7412 USING_POSIX_PLATFORM_FALSE='#'
7413 else
7414 USING_POSIX_PLATFORM_TRUE='#'
7415 USING_POSIX_PLATFORM_FALSE=
7419 case "$host" in
7420 *-darwin*) DARWIN_CRT=true ;;
7421 *) DARWIN_CRT=false ;;
7422 esac
7425 if $DARWIN_CRT; then
7426 USING_DARWIN_CRT_TRUE=
7427 USING_DARWIN_CRT_FALSE='#'
7428 else
7429 USING_DARWIN_CRT_TRUE='#'
7430 USING_DARWIN_CRT_FALSE=
7434 # These may not be defined in a non-ANS conformant embedded system.
7435 # FIXME: Should these case a runtime exception in that case?
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 #include <time.h>
7444 _ACEOF
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446 $EGREP "mktime" >/dev/null 2>&1; then
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_MKTIME 1
7450 _ACEOF
7453 rm -f conftest*
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 #include <time.h>
7463 _ACEOF
7464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7465 $EGREP "localtime" >/dev/null 2>&1; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_LOCALTIME 1
7469 _ACEOF
7472 rm -f conftest*
7475 # Create the subdirectory for natFile.cc, or the attempt
7476 # to create the link will fail.
7477 test -d java || mkdir java
7478 test -d java/io || mkdir java/io
7479 test -d gnu || mkdir gnu
7480 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7483 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7484 test -d java/lang || mkdir java/lang
7485 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7487 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7490 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7491 test -d java/net || mkdir java/net
7492 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7494 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7497 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7498 test -d gnu/java || mkdir gnu/java
7499 test -d gnu/java/net || mkdir gnu/java/net
7500 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7502 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7505 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7506 test -d gnu/java/nio || mkdir gnu/java/nio
7507 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7509 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7511 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7512 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7515 case "${host}" in
7516 *mingw*)
7517 SYSTEMSPEC="-lgdi32 -lws2_32"
7518 if test "${with_win32_nlsapi}" = "unicows"; then
7519 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7523 SYSTEMSPEC=
7525 esac
7528 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7532 # Check whether --with-system-zlib or --without-system-zlib was given.
7533 if test "${with_system_zlib+set}" = set; then
7534 withval="$with_system_zlib"
7537 ZLIBSPEC=
7539 ZLIBTESTSPEC=
7542 echo "$as_me:$LINENO: checking for X" >&5
7543 echo $ECHO_N "checking for X... $ECHO_C" >&6
7546 # Check whether --with-x or --without-x was given.
7547 if test "${with_x+set}" = set; then
7548 withval="$with_x"
7551 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7552 if test "x$with_x" = xno; then
7553 # The user explicitly disabled X.
7554 have_x=disabled
7555 else
7556 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7557 # Both variables are already set.
7558 have_x=yes
7559 else
7560 if test "${ac_cv_have_x+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 # One or both of the vars are not set, and there is no cached value.
7564 ac_x_includes=no ac_x_libraries=no
7565 rm -fr conftest.dir
7566 if mkdir conftest.dir; then
7567 cd conftest.dir
7568 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7569 cat >Imakefile <<'_ACEOF'
7570 acfindx:
7571 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7572 _ACEOF
7573 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7575 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7576 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7577 for ac_extension in a so sl; do
7578 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7579 test -f $ac_im_libdir/libX11.$ac_extension; then
7580 ac_im_usrlibdir=$ac_im_libdir; break
7582 done
7583 # Screen out bogus values from the imake configuration. They are
7584 # bogus both because they are the default anyway, and because
7585 # using them would break gcc on systems where it needs fixed includes.
7586 case $ac_im_incroot in
7587 /usr/include) ;;
7588 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7589 esac
7590 case $ac_im_usrlibdir in
7591 /usr/lib | /lib) ;;
7592 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7593 esac
7595 cd ..
7596 rm -fr conftest.dir
7599 # Standard set of common directories for X headers.
7600 # Check X11 before X11Rn because it is often a symlink to the current release.
7601 ac_x_header_dirs='
7602 /usr/X11/include
7603 /usr/X11R6/include
7604 /usr/X11R5/include
7605 /usr/X11R4/include
7607 /usr/include/X11
7608 /usr/include/X11R6
7609 /usr/include/X11R5
7610 /usr/include/X11R4
7612 /usr/local/X11/include
7613 /usr/local/X11R6/include
7614 /usr/local/X11R5/include
7615 /usr/local/X11R4/include
7617 /usr/local/include/X11
7618 /usr/local/include/X11R6
7619 /usr/local/include/X11R5
7620 /usr/local/include/X11R4
7622 /usr/X386/include
7623 /usr/x386/include
7624 /usr/XFree86/include/X11
7626 /usr/include
7627 /usr/local/include
7628 /usr/unsupported/include
7629 /usr/athena/include
7630 /usr/local/x11r5/include
7631 /usr/lpp/Xamples/include
7633 /usr/openwin/include
7634 /usr/openwin/share/include'
7636 if test "$ac_x_includes" = no; then
7637 # Guess where to find include files, by looking for Xlib.h.
7638 # First, try using that file with no special directory specified.
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 #include <X11/Xlib.h>
7646 _ACEOF
7647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } >/dev/null; then
7655 if test -s conftest.err; then
7656 ac_cpp_err=$ac_c_preproc_warn_flag
7657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7658 else
7659 ac_cpp_err=
7661 else
7662 ac_cpp_err=yes
7664 if test -z "$ac_cpp_err"; then
7665 # We can compile using X headers with no special include directory.
7666 ac_x_includes=
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 for ac_dir in $ac_x_header_dirs; do
7672 if test -r "$ac_dir/X11/Xlib.h"; then
7673 ac_x_includes=$ac_dir
7674 break
7676 done
7678 rm -f conftest.err conftest.$ac_ext
7679 fi # $ac_x_includes = no
7681 if test "$ac_x_libraries" = no; then
7682 # Check for the libraries.
7683 # See if we find them without any special options.
7684 # Don't add to $LIBS permanently.
7685 ac_save_LIBS=$LIBS
7686 LIBS="-lXt $LIBS"
7687 if test x$gcc_no_link = xyes; then
7688 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7690 { (exit 1); exit 1; }; }
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 #include <X11/Xlib.h>
7700 main ()
7702 XrmInitialize ()
7704 return 0;
7706 _ACEOF
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest$ac_exeext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 LIBS=$ac_save_LIBS
7730 # We can link X programs with no special library path.
7731 ac_x_libraries=
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7736 LIBS=$ac_save_LIBS
7737 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7739 # Don't even attempt the hair of trying to link an X program!
7740 for ac_extension in a so sl; do
7741 if test -r $ac_dir/libXt.$ac_extension; then
7742 ac_x_libraries=$ac_dir
7743 break 2
7745 done
7746 done
7748 rm -f conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750 fi # $ac_x_libraries = no
7752 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7753 # Didn't find X anywhere. Cache the known absence of X.
7754 ac_cv_have_x="have_x=no"
7755 else
7756 # Record where we found X for the cache.
7757 ac_cv_have_x="have_x=yes \
7758 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7763 eval "$ac_cv_have_x"
7764 fi # $with_x != no
7766 if test "$have_x" != yes; then
7767 echo "$as_me:$LINENO: result: $have_x" >&5
7768 echo "${ECHO_T}$have_x" >&6
7769 no_x=yes
7770 else
7771 # If each of the values was on the command line, it overrides each guess.
7772 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7773 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7774 # Update the cache value to reflect the command line values.
7775 ac_cv_have_x="have_x=yes \
7776 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7777 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7778 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7781 if test "$no_x" = yes; then
7782 # Not all programs may use this symbol, but it does not hurt to define it.
7784 cat >>confdefs.h <<\_ACEOF
7785 #define X_DISPLAY_MISSING 1
7786 _ACEOF
7788 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7789 else
7790 if test -n "$x_includes"; then
7791 X_CFLAGS="$X_CFLAGS -I$x_includes"
7794 # It would also be nice to do this for all -L options, not just this one.
7795 if test -n "$x_libraries"; then
7796 X_LIBS="$X_LIBS -L$x_libraries"
7797 # For Solaris; some versions of Sun CC require a space after -R and
7798 # others require no space. Words are not sufficient . . . .
7799 case `(uname -sr) 2>/dev/null` in
7800 "SunOS 5"*)
7801 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7802 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7803 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7804 if test x$gcc_no_link = xyes; then
7805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7807 { (exit 1); exit 1; }; }
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7817 main ()
7821 return 0;
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest$ac_exeext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_R_nospace=yes
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_R_nospace=no
7853 rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 if test $ac_R_nospace = yes; then
7856 echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6
7858 X_LIBS="$X_LIBS -R$x_libraries"
7859 else
7860 LIBS="$ac_xsave_LIBS -R $x_libraries"
7861 if test x$gcc_no_link = xyes; then
7862 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7864 { (exit 1); exit 1; }; }
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7874 main ()
7878 return 0;
7880 _ACEOF
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883 (eval $ac_link) 2>conftest.er1
7884 ac_status=$?
7885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest$ac_exeext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_R_space=yes
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ac_R_space=no
7910 rm -f conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 if test $ac_R_space = yes; then
7913 echo "$as_me:$LINENO: result: yes" >&5
7914 echo "${ECHO_T}yes" >&6
7915 X_LIBS="$X_LIBS -R $x_libraries"
7916 else
7917 echo "$as_me:$LINENO: result: neither works" >&5
7918 echo "${ECHO_T}neither works" >&6
7921 LIBS=$ac_xsave_LIBS
7922 esac
7925 # Check for system-dependent libraries X programs must link with.
7926 # Do this before checking for the system-independent R6 libraries
7927 # (-lICE), since we may need -lsocket or whatever for X linking.
7929 if test "$ISC" = yes; then
7930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7931 else
7932 # Martyn Johnson says this is needed for Ultrix, if the X
7933 # libraries were built with DECnet support. And Karl Berry says
7934 # the Alpha needs dnet_stub (dnet does not exist).
7935 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7936 if test x$gcc_no_link = xyes; then
7937 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7939 { (exit 1); exit 1; }; }
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7948 /* Override any gcc2 internal prototype to avoid an error. */
7949 #ifdef __cplusplus
7950 extern "C"
7951 #endif
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7954 char XOpenDisplay ();
7956 main ()
7958 XOpenDisplay ();
7960 return 0;
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965 (eval $ac_link) 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -z "$ac_c_werror_flag"
7973 || test ! -s conftest.err'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7986 else
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7991 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7992 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-ldnet $LIBS"
7997 if test x$gcc_no_link = xyes; then
7998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8000 { (exit 1); exit 1; }; }
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8009 /* Override any gcc2 internal prototype to avoid an error. */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8015 char dnet_ntoa ();
8017 main ()
8019 dnet_ntoa ();
8021 return 0;
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try='test -s conftest$ac_exeext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_cv_lib_dnet_dnet_ntoa=yes
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 ac_cv_lib_dnet_dnet_ntoa=no
8053 rm -f conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8058 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8059 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8060 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8063 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8064 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8065 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8066 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069 ac_check_lib_save_LIBS=$LIBS
8070 LIBS="-ldnet_stub $LIBS"
8071 if test x$gcc_no_link = xyes; then
8072 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8074 { (exit 1); exit 1; }; }
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h. */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8083 /* Override any gcc2 internal prototype to avoid an error. */
8084 #ifdef __cplusplus
8085 extern "C"
8086 #endif
8087 /* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8089 char dnet_ntoa ();
8091 main ()
8093 dnet_ntoa ();
8095 return 0;
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag"
8108 || test ! -s conftest.err'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8121 else
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 ac_cv_lib_dnet_stub_dnet_ntoa=no
8127 rm -f conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 LIBS=$ac_check_lib_save_LIBS
8131 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8132 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8133 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8134 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8139 rm -f conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 LIBS="$ac_xsave_LIBS"
8143 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8144 # to get the SysV transport functions.
8145 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8146 # needs -lnsl.
8147 # The nsl library prevents programs from opening the X display
8148 # on Irix 5.2, according to T.E. Dickey.
8149 # The functions gethostbyname, getservbyname, and inet_addr are
8150 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8151 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8152 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8153 if test "${ac_cv_func_gethostbyname+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156 if test x$gcc_no_link = xyes; then
8157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8159 { (exit 1); exit 1; }; }
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8169 #define gethostbyname innocuous_gethostbyname
8171 /* System header to define __stub macros and hopefully few prototypes,
8172 which can conflict with char gethostbyname (); below.
8173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174 <limits.h> exists even on freestanding compilers. */
8176 #ifdef __STDC__
8177 # include <limits.h>
8178 #else
8179 # include <assert.h>
8180 #endif
8182 #undef gethostbyname
8184 /* Override any gcc2 internal prototype to avoid an error. */
8185 #ifdef __cplusplus
8186 extern "C"
8188 #endif
8189 /* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8191 char gethostbyname ();
8192 /* The GNU C library defines this for functions which it implements
8193 to always fail with ENOSYS. Some functions are actually named
8194 something starting with __ and the normal name is an alias. */
8195 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8196 choke me
8197 #else
8198 char (*f) () = gethostbyname;
8199 #endif
8200 #ifdef __cplusplus
8202 #endif
8205 main ()
8207 return f != gethostbyname;
8209 return 0;
8211 _ACEOF
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214 (eval $ac_link) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_func_gethostbyname=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_func_gethostbyname=no
8241 rm -f conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8244 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8245 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8247 if test $ac_cv_func_gethostbyname = no; then
8248 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8249 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8250 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-lnsl $LIBS"
8255 if test x$gcc_no_link = xyes; then
8256 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8258 { (exit 1); exit 1; }; }
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8267 /* Override any gcc2 internal prototype to avoid an error. */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 /* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8273 char gethostbyname ();
8275 main ()
8277 gethostbyname ();
8279 return 0;
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest$ac_exeext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 ac_cv_lib_nsl_gethostbyname=yes
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 ac_cv_lib_nsl_gethostbyname=no
8311 rm -f conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 LIBS=$ac_check_lib_save_LIBS
8315 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8316 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8317 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8318 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8321 if test $ac_cv_lib_nsl_gethostbyname = no; then
8322 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8323 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8324 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327 ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-lbsd $LIBS"
8329 if test x$gcc_no_link = xyes; then
8330 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8332 { (exit 1); exit 1; }; }
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h. */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8341 /* Override any gcc2 internal prototype to avoid an error. */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 /* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8347 char gethostbyname ();
8349 main ()
8351 gethostbyname ();
8353 return 0;
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag"
8366 || test ! -s conftest.err'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_lib_bsd_gethostbyname=yes
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_lib_bsd_gethostbyname=no
8385 rm -f conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8389 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8390 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8391 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8398 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8399 # socket/setsockopt and other routines are undefined under SCO ODT
8400 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8401 # on later versions), says Simon Leinen: it contains gethostby*
8402 # variants that don't use the name server (or something). -lsocket
8403 # must be given before -lnsl if both are needed. We assume that
8404 # if connect needs -lnsl, so does gethostbyname.
8405 echo "$as_me:$LINENO: checking for connect" >&5
8406 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8407 if test "${ac_cv_func_connect+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410 if test x$gcc_no_link = xyes; then
8411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8413 { (exit 1); exit 1; }; }
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8423 #define connect innocuous_connect
8425 /* System header to define __stub macros and hopefully few prototypes,
8426 which can conflict with char connect (); below.
8427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8428 <limits.h> exists even on freestanding compilers. */
8430 #ifdef __STDC__
8431 # include <limits.h>
8432 #else
8433 # include <assert.h>
8434 #endif
8436 #undef connect
8438 /* Override any gcc2 internal prototype to avoid an error. */
8439 #ifdef __cplusplus
8440 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char connect ();
8446 /* The GNU C library defines this for functions which it implements
8447 to always fail with ENOSYS. Some functions are actually named
8448 something starting with __ and the normal name is an alias. */
8449 #if defined (__stub_connect) || defined (__stub___connect)
8450 choke me
8451 #else
8452 char (*f) () = connect;
8453 #endif
8454 #ifdef __cplusplus
8456 #endif
8459 main ()
8461 return f != connect;
8463 return 0;
8465 _ACEOF
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468 (eval $ac_link) 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_func_connect=yes
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_cv_func_connect=no
8495 rm -f conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8499 echo "${ECHO_T}$ac_cv_func_connect" >&6
8501 if test $ac_cv_func_connect = no; then
8502 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8503 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8504 if test "${ac_cv_lib_socket_connect+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507 ac_check_lib_save_LIBS=$LIBS
8508 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8509 if test x$gcc_no_link = xyes; then
8510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8512 { (exit 1); exit 1; }; }
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8521 /* Override any gcc2 internal prototype to avoid an error. */
8522 #ifdef __cplusplus
8523 extern "C"
8524 #endif
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8527 char connect ();
8529 main ()
8531 connect ();
8533 return 0;
8535 _ACEOF
8536 rm -f conftest.$ac_objext conftest$ac_exeext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8538 (eval $ac_link) 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -z "$ac_c_werror_flag"
8546 || test ! -s conftest.err'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest$ac_exeext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_lib_socket_connect=yes
8559 else
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8563 ac_cv_lib_socket_connect=no
8565 rm -f conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 LIBS=$ac_check_lib_save_LIBS
8569 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8570 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8571 if test $ac_cv_lib_socket_connect = yes; then
8572 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8577 # Guillermo Gomez says -lposix is necessary on A/UX.
8578 echo "$as_me:$LINENO: checking for remove" >&5
8579 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8580 if test "${ac_cv_func_remove+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583 if test x$gcc_no_link = xyes; then
8584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8586 { (exit 1); exit 1; }; }
8588 cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h. */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8594 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8596 #define remove innocuous_remove
8598 /* System header to define __stub macros and hopefully few prototypes,
8599 which can conflict with char remove (); below.
8600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601 <limits.h> exists even on freestanding compilers. */
8603 #ifdef __STDC__
8604 # include <limits.h>
8605 #else
8606 # include <assert.h>
8607 #endif
8609 #undef remove
8611 /* Override any gcc2 internal prototype to avoid an error. */
8612 #ifdef __cplusplus
8613 extern "C"
8615 #endif
8616 /* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8618 char remove ();
8619 /* The GNU C library defines this for functions which it implements
8620 to always fail with ENOSYS. Some functions are actually named
8621 something starting with __ and the normal name is an alias. */
8622 #if defined (__stub_remove) || defined (__stub___remove)
8623 choke me
8624 #else
8625 char (*f) () = remove;
8626 #endif
8627 #ifdef __cplusplus
8629 #endif
8632 main ()
8634 return f != remove;
8636 return 0;
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag"
8649 || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } &&
8655 { ac_try='test -s conftest$ac_exeext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 ac_cv_func_remove=yes
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 ac_cv_func_remove=no
8668 rm -f conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8671 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8672 echo "${ECHO_T}$ac_cv_func_remove" >&6
8674 if test $ac_cv_func_remove = no; then
8675 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8676 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8677 if test "${ac_cv_lib_posix_remove+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-lposix $LIBS"
8682 if test x$gcc_no_link = xyes; then
8683 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8684 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8685 { (exit 1); exit 1; }; }
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8694 /* Override any gcc2 internal prototype to avoid an error. */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8700 char remove ();
8702 main ()
8704 remove ();
8706 return 0;
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag"
8719 || test ! -s conftest.err'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; } &&
8725 { ac_try='test -s conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 ac_cv_lib_posix_remove=yes
8732 else
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 ac_cv_lib_posix_remove=no
8738 rm -f conftest.err conftest.$ac_objext \
8739 conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8742 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8743 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8744 if test $ac_cv_lib_posix_remove = yes; then
8745 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8750 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8751 echo "$as_me:$LINENO: checking for shmat" >&5
8752 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8753 if test "${ac_cv_func_shmat+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 if test x$gcc_no_link = xyes; then
8757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8759 { (exit 1); exit 1; }; }
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8769 #define shmat innocuous_shmat
8771 /* System header to define __stub macros and hopefully few prototypes,
8772 which can conflict with char shmat (); below.
8773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774 <limits.h> exists even on freestanding compilers. */
8776 #ifdef __STDC__
8777 # include <limits.h>
8778 #else
8779 # include <assert.h>
8780 #endif
8782 #undef shmat
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 #ifdef __cplusplus
8786 extern "C"
8788 #endif
8789 /* We use char because int might match the return type of a gcc2
8790 builtin and then its argument prototype would still apply. */
8791 char shmat ();
8792 /* The GNU C library defines this for functions which it implements
8793 to always fail with ENOSYS. Some functions are actually named
8794 something starting with __ and the normal name is an alias. */
8795 #if defined (__stub_shmat) || defined (__stub___shmat)
8796 choke me
8797 #else
8798 char (*f) () = shmat;
8799 #endif
8800 #ifdef __cplusplus
8802 #endif
8805 main ()
8807 return f != shmat;
8809 return 0;
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_func_shmat=yes
8835 else
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 ac_cv_func_shmat=no
8841 rm -f conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8844 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8845 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8847 if test $ac_cv_func_shmat = no; then
8848 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8849 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8850 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lipc $LIBS"
8855 if test x$gcc_no_link = xyes; then
8856 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8858 { (exit 1); exit 1; }; }
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h. */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8867 /* Override any gcc2 internal prototype to avoid an error. */
8868 #ifdef __cplusplus
8869 extern "C"
8870 #endif
8871 /* We use char because int might match the return type of a gcc2
8872 builtin and then its argument prototype would still apply. */
8873 char shmat ();
8875 main ()
8877 shmat ();
8879 return 0;
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884 (eval $ac_link) 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag"
8892 || test ! -s conftest.err'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest$ac_exeext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 ac_cv_lib_ipc_shmat=yes
8905 else
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_cv_lib_ipc_shmat=no
8911 rm -f conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8913 LIBS=$ac_check_lib_save_LIBS
8915 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8916 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8917 if test $ac_cv_lib_ipc_shmat = yes; then
8918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8924 # Check for libraries that X11R6 Xt/Xaw programs need.
8925 ac_save_LDFLAGS=$LDFLAGS
8926 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8927 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8928 # check for ICE first), but we must link in the order -lSM -lICE or
8929 # we get undefined symbols. So assume we have SM if we have ICE.
8930 # These have to be linked with before -lX11, unlike the other
8931 # libraries we check for below, so use a different variable.
8932 # John Interrante, Karl Berry
8933 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8934 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8935 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938 ac_check_lib_save_LIBS=$LIBS
8939 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8940 if test x$gcc_no_link = xyes; then
8941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8943 { (exit 1); exit 1; }; }
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h. */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8952 /* Override any gcc2 internal prototype to avoid an error. */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 /* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8958 char IceConnectionNumber ();
8960 main ()
8962 IceConnectionNumber ();
8964 return 0;
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969 (eval $ac_link) 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag"
8977 || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_lib_ICE_IceConnectionNumber=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_cv_lib_ICE_IceConnectionNumber=no
8996 rm -f conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 LIBS=$ac_check_lib_save_LIBS
9000 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9001 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9002 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9003 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9006 LDFLAGS=$ac_save_LDFLAGS
9011 # FIXME: this should be _libs on some hosts.
9012 libsubdir=.libs
9014 # extra LD Flags which are required for targets
9015 case "${host}" in
9016 *-*-darwin[0-7].*)
9017 # For now we have to disable it on darwin[8-9] because it slows down
9018 # the linking phase. A possible bug in ld?
9019 # on Darwin -single_module speeds up loading of the dynamic libraries.
9020 extra_ldflags_libjava=-Wl,-single_module
9022 esac
9025 # Allow the GC to be disabled. Can be useful when debugging.
9026 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9027 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9028 # Check whether --enable-java-gc or --disable-java-gc was given.
9029 if test "${enable_java_gc+set}" = set; then
9030 enableval="$enable_java_gc"
9031 GC=$enableval
9032 else
9033 GC=boehm
9035 GCLIBS=
9036 GCINCS=
9037 GCDEPS=
9038 GCSPEC=
9039 JC1GCSPEC=
9040 GCTESTSPEC=
9041 case "$GC" in
9042 boehm)
9043 echo "$as_me:$LINENO: result: boehm" >&5
9044 echo "${ECHO_T}boehm" >&6
9045 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9046 JC1GCSPEC='-fuse-boehm-gc'
9047 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9048 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9049 GCOBJS=boehm.lo
9050 GCHDR=boehm-gc.h
9051 # The POSIX thread support needs to know this.
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_BOEHM_GC 1
9055 _ACEOF
9059 echo "$as_me:$LINENO: result: none" >&5
9060 echo "${ECHO_T}none" >&6
9061 GCHDR=no-gc.h
9064 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9065 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9066 { (exit 1); exit 1; }; }
9068 esac
9075 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9079 if test "$GC" = boehm; then
9080 USING_BOEHMGC_TRUE=
9081 USING_BOEHMGC_FALSE='#'
9082 else
9083 USING_BOEHMGC_TRUE='#'
9084 USING_BOEHMGC_FALSE=
9089 if test "$GC" = no; then
9090 USING_NOGC_TRUE=
9091 USING_NOGC_FALSE='#'
9092 else
9093 USING_NOGC_TRUE='#'
9094 USING_NOGC_FALSE=
9099 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9100 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9101 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9102 echo "$as_me:$LINENO: result: $THREADS" >&5
9103 echo "${ECHO_T}$THREADS" >&6
9105 case "$THREADS" in
9106 no | none | single)
9107 THREADS=none
9109 posix | posix95 | pthreads)
9110 THREADS=posix
9111 case "$host" in
9112 *-*-linux*)
9114 cat >>confdefs.h <<\_ACEOF
9115 #define LINUX_THREADS 1
9116 _ACEOF
9119 esac
9121 win32)
9123 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9124 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9125 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9126 { (exit 1); exit 1; }; }
9129 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9130 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9131 { (exit 1); exit 1; }; }
9133 esac
9135 THREADCXXFLAGS=
9136 THREADLDFLAGS=
9137 THREADLIBS=
9138 THREADINCS=
9139 THREADDEPS=
9140 THREADH=
9141 THREADSPEC=
9142 THREADSTARTFILESPEC=
9143 case "$THREADS" in
9144 posix)
9145 case "$host" in
9146 *-*-cygwin*)
9147 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9149 *-*-freebsd[1234]*)
9150 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9151 # merely adds pthread_* functions) but it does have a -pthread switch
9152 # which is required at link-time to select -lc_r *instead* of -lc.
9153 THREADLDFLAGS=-pthread
9154 # Don't set THREADSPEC here as might be expected since -pthread is
9155 # not processed when found within a spec file, it must come from
9156 # the command line. For now, the user must provide the -pthread
9157 # switch to link code compiled with gcj. In future, consider adding
9158 # support for weak references to pthread_* functions ala gthr.h API.
9159 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9161 *-*-freebsd*)
9162 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9163 # systems which support threads and -lpthread.
9164 THREADLDFLAGS=-pthread
9165 THREADSPEC=-lpthread
9167 alpha*-dec-osf* | hppa*-hp-hpux*)
9168 THREADCXXFLAGS=-pthread
9169 # boehm-gc needs some functions from librt, so link that too.
9170 THREADLIBS='-lpthread -lrt'
9171 THREADSPEC='-lpthread -lrt'
9174 THREADLIBS=-lpthread
9175 THREADSPEC=-lpthread
9177 esac
9178 THREADH=posix-threads.h
9179 # MIT pthreads doesn't seem to have the mutexattr functions.
9180 # But for now we don't check for it. We just assume you aren't
9181 # using MIT pthreads.
9183 cat >>confdefs.h <<\_ACEOF
9184 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9185 _ACEOF
9188 # If we're using the Boehm GC, then we happen to know that it
9189 # defines _REENTRANT, so we don't bother. Eww.
9190 if test "$GC" != boehm; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define _REENTRANT 1
9194 _ACEOF
9198 cat >>confdefs.h <<\_ACEOF
9199 #define _POSIX_PTHREAD_SEMANTICS 1
9200 _ACEOF
9204 win32)
9205 THREADH=win32-threads.h
9206 THREADCXXFLAGS=-mthreads
9207 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9208 # But we do not want the executables created to be dependent on
9209 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9210 # exception handling contexts. The following kludge achieves this effect
9211 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9212 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9213 # A workaround is to explicitly use -mthreads while linking Java programs.
9214 # See PR libgcj/28263.
9216 # FIXME: In Java we are able to detect thread death at the end of
9217 # Thread.run() so we should be able to clean up the exception handling
9218 # contexts ourselves.
9219 THREADSTARTFILESPEC='crtmt%O%s'
9222 none)
9223 THREADH=no-threads.h
9225 esac
9226 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9237 if test "$THREADS" = posix; then
9238 USING_POSIX_THREADS_TRUE=
9239 USING_POSIX_THREADS_FALSE='#'
9240 else
9241 USING_POSIX_THREADS_TRUE='#'
9242 USING_POSIX_THREADS_FALSE=
9247 if test "$THREADS" = win32; then
9248 USING_WIN32_THREADS_TRUE=
9249 USING_WIN32_THREADS_FALSE='#'
9250 else
9251 USING_WIN32_THREADS_TRUE='#'
9252 USING_WIN32_THREADS_FALSE=
9257 if test "$THREADS" = none; then
9258 USING_NO_THREADS_TRUE=
9259 USING_NO_THREADS_FALSE='#'
9260 else
9261 USING_NO_THREADS_TRUE='#'
9262 USING_NO_THREADS_FALSE=
9267 if test "$use_libgcj_bc" = yes; then
9268 USE_LIBGCJ_BC_TRUE=
9269 USE_LIBGCJ_BC_FALSE='#'
9270 else
9271 USE_LIBGCJ_BC_TRUE='#'
9272 USE_LIBGCJ_BC_FALSE=
9276 if test -d sysdep; then true; else mkdir sysdep; fi
9277 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9279 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9281 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9284 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9285 if test "$use_libgcj_bc" = yes; then
9286 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9290 HASH_SYNC_SPEC=
9291 # Hash synchronization is only useful with posix threads right now.
9292 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9293 HASH_SYNC_SPEC=-fhash-synchronization
9295 cat >>confdefs.h <<\_ACEOF
9296 #define JV_HASH_SYNCHRONIZATION 1
9297 _ACEOF
9304 if test "$GCC" = yes; then
9305 USING_GCC_TRUE=
9306 USING_GCC_FALSE='#'
9307 else
9308 USING_GCC_TRUE='#'
9309 USING_GCC_FALSE=
9313 # We're in the tree with gcc, and need to include some of its headers.
9314 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9316 if test "x${with_newlib}" = "xyes"; then
9317 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9318 # may not work correctly, because the compiler may not be able to
9319 # link executables.
9321 # We assume newlib. This lets us hard-code the functions we know
9322 # we'll have.
9324 cat >>confdefs.h <<\_ACEOF
9325 #define HAVE_MEMMOVE 1
9326 _ACEOF
9329 cat >>confdefs.h <<\_ACEOF
9330 #define HAVE_MEMCPY 1
9331 _ACEOF
9334 cat >>confdefs.h <<\_ACEOF
9335 #define HAVE_STRERROR 1
9336 _ACEOF
9339 cat >>confdefs.h <<\_ACEOF
9340 #define HAVE_TIME 1
9341 _ACEOF
9344 cat >>confdefs.h <<\_ACEOF
9345 #define HAVE_GMTIME_R 1
9346 _ACEOF
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_LOCALTIME_R 1
9351 _ACEOF
9354 cat >>confdefs.h <<\_ACEOF
9355 #define HAVE_USLEEP_DECL 1
9356 _ACEOF
9358 # This is only for POSIX threads.
9360 cat >>confdefs.h <<\_ACEOF
9361 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9362 _ACEOF
9364 # We also assume we are using gcc, which provides alloca.
9365 cat >>confdefs.h <<\_ACEOF
9366 #define HAVE_ALLOCA 1
9367 _ACEOF
9370 # Assume we do not have getuid and friends.
9372 cat >>confdefs.h <<\_ACEOF
9373 #define NO_GETUID 1
9374 _ACEOF
9376 PLATFORMNET=NoNet
9377 else
9413 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9414 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9415 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9416 nl_langinfo setlocale \
9417 inet_pton uname inet_ntoa \
9418 fork execvp pipe sigaction ftruncate mmap \
9419 getifaddrs
9421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9422 echo "$as_me:$LINENO: checking for $ac_func" >&5
9423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9424 if eval "test \"\${$as_ac_var+set}\" = set"; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427 if test x$gcc_no_link = xyes; then
9428 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9429 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9430 { (exit 1); exit 1; }; }
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9440 #define $ac_func innocuous_$ac_func
9442 /* System header to define __stub macros and hopefully few prototypes,
9443 which can conflict with char $ac_func (); below.
9444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9445 <limits.h> exists even on freestanding compilers. */
9447 #ifdef __STDC__
9448 # include <limits.h>
9449 #else
9450 # include <assert.h>
9451 #endif
9453 #undef $ac_func
9455 /* Override any gcc2 internal prototype to avoid an error. */
9456 #ifdef __cplusplus
9457 extern "C"
9459 #endif
9460 /* We use char because int might match the return type of a gcc2
9461 builtin and then its argument prototype would still apply. */
9462 char $ac_func ();
9463 /* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9467 choke me
9468 #else
9469 char (*f) () = $ac_func;
9470 #endif
9471 #ifdef __cplusplus
9473 #endif
9476 main ()
9478 return f != $ac_func;
9480 return 0;
9482 _ACEOF
9483 rm -f conftest.$ac_objext conftest$ac_exeext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485 (eval $ac_link) 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -z "$ac_c_werror_flag"
9493 || test ! -s conftest.err'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest$ac_exeext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 eval "$as_ac_var=yes"
9506 else
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 eval "$as_ac_var=no"
9512 rm -f conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9517 if test `eval echo '${'$as_ac_var'}'` = yes; then
9518 cat >>confdefs.h <<_ACEOF
9519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9520 _ACEOF
9523 done
9527 for ac_func in inet_aton inet_addr
9529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9530 echo "$as_me:$LINENO: checking for $ac_func" >&5
9531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9532 if eval "test \"\${$as_ac_var+set}\" = set"; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 if test x$gcc_no_link = xyes; then
9536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9538 { (exit 1); exit 1; }; }
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h. */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9548 #define $ac_func innocuous_$ac_func
9550 /* System header to define __stub macros and hopefully few prototypes,
9551 which can conflict with char $ac_func (); below.
9552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9553 <limits.h> exists even on freestanding compilers. */
9555 #ifdef __STDC__
9556 # include <limits.h>
9557 #else
9558 # include <assert.h>
9559 #endif
9561 #undef $ac_func
9563 /* Override any gcc2 internal prototype to avoid an error. */
9564 #ifdef __cplusplus
9565 extern "C"
9567 #endif
9568 /* We use char because int might match the return type of a gcc2
9569 builtin and then its argument prototype would still apply. */
9570 char $ac_func ();
9571 /* The GNU C library defines this for functions which it implements
9572 to always fail with ENOSYS. Some functions are actually named
9573 something starting with __ and the normal name is an alias. */
9574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9575 choke me
9576 #else
9577 char (*f) () = $ac_func;
9578 #endif
9579 #ifdef __cplusplus
9581 #endif
9584 main ()
9586 return f != $ac_func;
9588 return 0;
9590 _ACEOF
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593 (eval $ac_link) 2>conftest.er1
9594 ac_status=$?
9595 grep -v '^ *+' conftest.er1 >conftest.err
9596 rm -f conftest.er1
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
9600 { ac_try='test -z "$ac_c_werror_flag"
9601 || test ! -s conftest.err'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; } &&
9607 { ac_try='test -s conftest$ac_exeext'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 (eval $ac_try) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
9613 eval "$as_ac_var=yes"
9614 else
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9618 eval "$as_ac_var=no"
9620 rm -f conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9625 if test `eval echo '${'$as_ac_var'}'` = yes; then
9626 cat >>confdefs.h <<_ACEOF
9627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9628 _ACEOF
9629 break
9631 done
9633 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9635 if test "${ac_cv_header_stdc+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 #include <stdlib.h>
9645 #include <stdarg.h>
9646 #include <string.h>
9647 #include <float.h>
9650 main ()
9654 return 0;
9656 _ACEOF
9657 rm -f conftest.$ac_objext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9659 (eval $ac_compile) 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag"
9667 || test ! -s conftest.err'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 (eval $ac_try) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; } &&
9673 { ac_try='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_header_stdc=yes
9680 else
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ac_cv_header_stdc=no
9686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9688 if test $ac_cv_header_stdc = yes; then
9689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h. */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 #include <string.h>
9698 _ACEOF
9699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9700 $EGREP "memchr" >/dev/null 2>&1; then
9702 else
9703 ac_cv_header_stdc=no
9705 rm -f conftest*
9709 if test $ac_cv_header_stdc = yes; then
9710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h. */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 #include <stdlib.h>
9719 _ACEOF
9720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9721 $EGREP "free" >/dev/null 2>&1; then
9723 else
9724 ac_cv_header_stdc=no
9726 rm -f conftest*
9730 if test $ac_cv_header_stdc = yes; then
9731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9732 if test "$cross_compiling" = yes; then
9734 else
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 #include <ctype.h>
9742 #if ((' ' & 0x0FF) == 0x020)
9743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9745 #else
9746 # define ISLOWER(c) \
9747 (('a' <= (c) && (c) <= 'i') \
9748 || ('j' <= (c) && (c) <= 'r') \
9749 || ('s' <= (c) && (c) <= 'z'))
9750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9751 #endif
9753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9755 main ()
9757 int i;
9758 for (i = 0; i < 256; i++)
9759 if (XOR (islower (i), ISLOWER (i))
9760 || toupper (i) != TOUPPER (i))
9761 exit(2);
9762 exit (0);
9764 _ACEOF
9765 rm -f conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9777 else
9778 echo "$as_me: program exited with status $ac_status" >&5
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ( exit $ac_status )
9783 ac_cv_header_stdc=no
9785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9789 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9790 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9791 if test $ac_cv_header_stdc = yes; then
9793 cat >>confdefs.h <<\_ACEOF
9794 #define STDC_HEADERS 1
9795 _ACEOF
9799 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9809 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9810 inttypes.h stdint.h unistd.h
9812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 $ac_includes_default
9826 #include <$ac_header>
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830 (eval $ac_compile) 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -z "$ac_c_werror_flag"
9838 || test ! -s conftest.err'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 (eval $ac_try) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest.$ac_objext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 eval "$as_ac_Header=yes"
9851 else
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 eval "$as_ac_Header=no"
9857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9862 cat >>confdefs.h <<_ACEOF
9863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9864 _ACEOF
9868 done
9874 for ac_header in execinfo.h unistd.h dlfcn.h
9876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878 echo "$as_me:$LINENO: checking for $ac_header" >&5
9879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9885 else
9886 # Is the header compilable?
9887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h. */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 $ac_includes_default
9896 #include <$ac_header>
9897 _ACEOF
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 ac_header_compiler=yes
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 ac_header_compiler=no
9927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9929 echo "${ECHO_T}$ac_header_compiler" >&6
9931 # Is the header present?
9932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h. */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 #include <$ac_header>
9941 _ACEOF
9942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } >/dev/null; then
9950 if test -s conftest.err; then
9951 ac_cpp_err=$ac_c_preproc_warn_flag
9952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9953 else
9954 ac_cpp_err=
9956 else
9957 ac_cpp_err=yes
9959 if test -z "$ac_cpp_err"; then
9960 ac_header_preproc=yes
9961 else
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9965 ac_header_preproc=no
9967 rm -f conftest.err conftest.$ac_ext
9968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9969 echo "${ECHO_T}$ac_header_preproc" >&6
9971 # So? What about this header?
9972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9973 yes:no: )
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9978 ac_header_preproc=yes
9980 no:yes:* )
9981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9994 cat <<\_ASBOX
9995 ## ---------------------------------- ##
9996 ## Report this to the libjava lists. ##
9997 ## ---------------------------------- ##
9998 _ASBOX
10000 sed "s/^/$as_me: WARNING: /" >&2
10002 esac
10003 echo "$as_me:$LINENO: checking for $ac_header" >&5
10004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008 eval "$as_ac_Header=\$ac_header_preproc"
10010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10015 cat >>confdefs.h <<_ACEOF
10016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10017 _ACEOF
10021 done
10023 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10024 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10025 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10026 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029 ac_check_lib_save_LIBS=$LIBS
10030 LIBS="-ldl $LIBS"
10031 if test x$gcc_no_link = xyes; then
10032 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10034 { (exit 1); exit 1; }; }
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10043 /* Override any gcc2 internal prototype to avoid an error. */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 /* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10049 char dladdr ();
10051 main ()
10053 dladdr ();
10055 return 0;
10057 _ACEOF
10058 rm -f conftest.$ac_objext conftest$ac_exeext
10059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10060 (eval $ac_link) 2>conftest.er1
10061 ac_status=$?
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -z "$ac_c_werror_flag"
10068 || test ! -s conftest.err'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 ac_cv_lib_dl_dladdr=yes
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_lib_dl_dladdr=no
10087 rm -f conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
10089 LIBS=$ac_check_lib_save_LIBS
10091 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10092 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10093 if test $ac_cv_lib_dl_dladdr = yes; then
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_DLADDR 1
10098 _ACEOF
10100 else
10102 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10103 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10104 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107 ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-ldld $LIBS"
10109 if test x$gcc_no_link = xyes; then
10110 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10112 { (exit 1); exit 1; }; }
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10121 /* Override any gcc2 internal prototype to avoid an error. */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10127 char dladdr ();
10129 main ()
10131 dladdr ();
10133 return 0;
10135 _ACEOF
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10138 (eval $ac_link) 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -z "$ac_c_werror_flag"
10146 || test ! -s conftest.err'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
10152 { ac_try='test -s conftest$ac_exeext'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158 ac_cv_lib_dld_dladdr=yes
10159 else
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 ac_cv_lib_dld_dladdr=no
10165 rm -f conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10169 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10170 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10171 if test $ac_cv_lib_dld_dladdr = yes; then
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_DLADDR 1
10176 _ACEOF
10183 if test x"$build" = x"$host"; then
10184 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10185 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10186 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189 test "$cross_compiling" = yes &&
10190 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10191 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10192 { (exit 1); exit 1; }; }
10193 if test -r "/proc/self/exe"; then
10194 ac_cv_file__proc_self_exe=yes
10195 else
10196 ac_cv_file__proc_self_exe=no
10199 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10200 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10201 if test $ac_cv_file__proc_self_exe = yes; then
10203 cat >>confdefs.h <<_ACEOF
10204 #define HAVE__PROC_SELF_EXE 1
10205 _ACEOF
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_PROC_SELF_EXE 1
10211 _ACEOF
10215 else
10216 case $host in
10217 *-linux*)
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_PROC_SELF_EXE 1
10221 _ACEOF
10224 esac
10228 if test "X$prefix" = "XNONE"; then
10229 acl_final_prefix="$ac_default_prefix"
10230 else
10231 acl_final_prefix="$prefix"
10233 if test "X$exec_prefix" = "XNONE"; then
10234 acl_final_exec_prefix='${prefix}'
10235 else
10236 acl_final_exec_prefix="$exec_prefix"
10238 acl_save_prefix="$prefix"
10239 prefix="$acl_final_prefix"
10240 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10241 prefix="$acl_save_prefix"
10244 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10245 if test "${with_gnu_ld+set}" = set; then
10246 withval="$with_gnu_ld"
10247 test "$withval" = no || with_gnu_ld=yes
10248 else
10249 with_gnu_ld=no
10251 # Prepare PATH_SEPARATOR.
10252 # The user is always right.
10253 if test "${PATH_SEPARATOR+set}" != set; then
10254 echo "#! /bin/sh" >conf$$.sh
10255 echo "exit 0" >>conf$$.sh
10256 chmod +x conf$$.sh
10257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10258 PATH_SEPARATOR=';'
10259 else
10260 PATH_SEPARATOR=:
10262 rm -f conf$$.sh
10264 ac_prog=ld
10265 if test "$GCC" = yes; then
10266 # Check if gcc -print-prog-name=ld gives a path.
10267 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10268 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10269 case $host in
10270 *-*-mingw*)
10271 # gcc leaves a trailing carriage return which upsets mingw
10272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10275 esac
10276 case $ac_prog in
10277 # Accept absolute paths.
10278 [\\/]* | [A-Za-z]:[\\/]*)
10279 re_direlt='/[^/][^/]*/\.\./'
10280 # Canonicalize the path of ld
10281 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10282 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10283 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10284 done
10285 test -z "$LD" && LD="$ac_prog"
10288 # If it fails, then pretend we aren't using GCC.
10289 ac_prog=ld
10292 # If it is relative, then search for the first ld in PATH.
10293 with_gnu_ld=unknown
10295 esac
10296 elif test "$with_gnu_ld" = yes; then
10297 echo "$as_me:$LINENO: checking for GNU ld" >&5
10298 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10299 else
10300 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10301 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10303 if test "${acl_cv_path_LD+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 if test -z "$LD"; then
10307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10308 for ac_dir in $PATH; do
10309 test -z "$ac_dir" && ac_dir=.
10310 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10311 acl_cv_path_LD="$ac_dir/$ac_prog"
10312 # Check to see if the program is GNU ld. I'd rather use --version,
10313 # but apparently some GNU ld's only accept -v.
10314 # Break only if it was the GNU/non-GNU ld that we prefer.
10315 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10316 test "$with_gnu_ld" != no && break
10317 else
10318 test "$with_gnu_ld" != yes && break
10321 done
10322 IFS="$ac_save_ifs"
10323 else
10324 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10328 LD="$acl_cv_path_LD"
10329 if test -n "$LD"; then
10330 echo "$as_me:$LINENO: result: $LD" >&5
10331 echo "${ECHO_T}$LD" >&6
10332 else
10333 echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6
10336 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10337 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10338 { (exit 1); exit 1; }; }
10339 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10340 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10341 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10345 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10346 acl_cv_prog_gnu_ld=yes
10347 else
10348 acl_cv_prog_gnu_ld=no
10351 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10352 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10353 with_gnu_ld=$acl_cv_prog_gnu_ld
10357 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10358 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10359 if test "${acl_cv_rpath+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10363 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10364 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10365 . ./conftest.sh
10366 rm -f ./conftest.sh
10367 acl_cv_rpath=done
10370 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10371 echo "${ECHO_T}$acl_cv_rpath" >&6
10372 wl="$acl_cv_wl"
10373 libext="$acl_cv_libext"
10374 shlibext="$acl_cv_shlibext"
10375 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10376 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10377 hardcode_direct="$acl_cv_hardcode_direct"
10378 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10379 # Check whether --enable-rpath or --disable-rpath was given.
10380 if test "${enable_rpath+set}" = set; then
10381 enableval="$enable_rpath"
10383 else
10384 enable_rpath=yes
10393 use_additional=yes
10395 acl_save_prefix="$prefix"
10396 prefix="$acl_final_prefix"
10397 acl_save_exec_prefix="$exec_prefix"
10398 exec_prefix="$acl_final_exec_prefix"
10400 eval additional_includedir=\"$includedir\"
10401 eval additional_libdir=\"$libdir\"
10403 exec_prefix="$acl_save_exec_prefix"
10404 prefix="$acl_save_prefix"
10407 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10408 if test "${with_libiconv_prefix+set}" = set; then
10409 withval="$with_libiconv_prefix"
10411 if test "X$withval" = "Xno"; then
10412 use_additional=no
10413 else
10414 if test "X$withval" = "X"; then
10416 acl_save_prefix="$prefix"
10417 prefix="$acl_final_prefix"
10418 acl_save_exec_prefix="$exec_prefix"
10419 exec_prefix="$acl_final_exec_prefix"
10421 eval additional_includedir=\"$includedir\"
10422 eval additional_libdir=\"$libdir\"
10424 exec_prefix="$acl_save_exec_prefix"
10425 prefix="$acl_save_prefix"
10427 else
10428 additional_includedir="$withval/include"
10429 additional_libdir="$withval/lib"
10434 LIBICONV=
10435 LTLIBICONV=
10436 INCICONV=
10437 rpathdirs=
10438 ltrpathdirs=
10439 names_already_handled=
10440 names_next_round='iconv '
10441 while test -n "$names_next_round"; do
10442 names_this_round="$names_next_round"
10443 names_next_round=
10444 for name in $names_this_round; do
10445 already_handled=
10446 for n in $names_already_handled; do
10447 if test "$n" = "$name"; then
10448 already_handled=yes
10449 break
10451 done
10452 if test -z "$already_handled"; then
10453 names_already_handled="$names_already_handled $name"
10454 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10455 eval value=\"\$HAVE_LIB$uppername\"
10456 if test -n "$value"; then
10457 if test "$value" = yes; then
10458 eval value=\"\$LIB$uppername\"
10459 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10460 eval value=\"\$LTLIB$uppername\"
10461 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10462 else
10465 else
10466 found_dir=
10467 found_la=
10468 found_so=
10469 found_a=
10470 if test $use_additional = yes; then
10471 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10472 found_dir="$additional_libdir"
10473 found_so="$additional_libdir/lib$name.$shlibext"
10474 if test -f "$additional_libdir/lib$name.la"; then
10475 found_la="$additional_libdir/lib$name.la"
10477 else
10478 if test -f "$additional_libdir/lib$name.$libext"; then
10479 found_dir="$additional_libdir"
10480 found_a="$additional_libdir/lib$name.$libext"
10481 if test -f "$additional_libdir/lib$name.la"; then
10482 found_la="$additional_libdir/lib$name.la"
10487 if test "X$found_dir" = "X"; then
10488 for x in $LDFLAGS $LTLIBICONV; do
10490 acl_save_prefix="$prefix"
10491 prefix="$acl_final_prefix"
10492 acl_save_exec_prefix="$exec_prefix"
10493 exec_prefix="$acl_final_exec_prefix"
10494 eval x=\"$x\"
10495 exec_prefix="$acl_save_exec_prefix"
10496 prefix="$acl_save_prefix"
10498 case "$x" in
10499 -L*)
10500 dir=`echo "X$x" | sed -e 's/^X-L//'`
10501 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10502 found_dir="$dir"
10503 found_so="$dir/lib$name.$shlibext"
10504 if test -f "$dir/lib$name.la"; then
10505 found_la="$dir/lib$name.la"
10507 else
10508 if test -f "$dir/lib$name.$libext"; then
10509 found_dir="$dir"
10510 found_a="$dir/lib$name.$libext"
10511 if test -f "$dir/lib$name.la"; then
10512 found_la="$dir/lib$name.la"
10517 esac
10518 if test "X$found_dir" != "X"; then
10519 break
10521 done
10523 if test "X$found_dir" != "X"; then
10524 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10525 if test "X$found_so" != "X"; then
10526 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10527 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10528 else
10529 haveit=
10530 for x in $ltrpathdirs; do
10531 if test "X$x" = "X$found_dir"; then
10532 haveit=yes
10533 break
10535 done
10536 if test -z "$haveit"; then
10537 ltrpathdirs="$ltrpathdirs $found_dir"
10539 if test "$hardcode_direct" = yes; then
10540 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10541 else
10542 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10543 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10544 haveit=
10545 for x in $rpathdirs; do
10546 if test "X$x" = "X$found_dir"; then
10547 haveit=yes
10548 break
10550 done
10551 if test -z "$haveit"; then
10552 rpathdirs="$rpathdirs $found_dir"
10554 else
10555 haveit=
10556 for x in $LDFLAGS $LIBICONV; do
10558 acl_save_prefix="$prefix"
10559 prefix="$acl_final_prefix"
10560 acl_save_exec_prefix="$exec_prefix"
10561 exec_prefix="$acl_final_exec_prefix"
10562 eval x=\"$x\"
10563 exec_prefix="$acl_save_exec_prefix"
10564 prefix="$acl_save_prefix"
10566 if test "X$x" = "X-L$found_dir"; then
10567 haveit=yes
10568 break
10570 done
10571 if test -z "$haveit"; then
10572 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10574 if test "$hardcode_minus_L" != no; then
10575 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10576 else
10577 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10582 else
10583 if test "X$found_a" != "X"; then
10584 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10585 else
10586 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10589 additional_includedir=
10590 case "$found_dir" in
10591 */lib | */lib/)
10592 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10593 additional_includedir="$basedir/include"
10595 esac
10596 if test "X$additional_includedir" != "X"; then
10597 if test "X$additional_includedir" != "X/usr/include"; then
10598 haveit=
10599 if test "X$additional_includedir" = "X/usr/local/include"; then
10600 if test -n "$GCC"; then
10601 case $host_os in
10602 linux*) haveit=yes;;
10603 esac
10606 if test -z "$haveit"; then
10607 for x in $CPPFLAGS $INCICONV; do
10609 acl_save_prefix="$prefix"
10610 prefix="$acl_final_prefix"
10611 acl_save_exec_prefix="$exec_prefix"
10612 exec_prefix="$acl_final_exec_prefix"
10613 eval x=\"$x\"
10614 exec_prefix="$acl_save_exec_prefix"
10615 prefix="$acl_save_prefix"
10617 if test "X$x" = "X-I$additional_includedir"; then
10618 haveit=yes
10619 break
10621 done
10622 if test -z "$haveit"; then
10623 if test -d "$additional_includedir"; then
10624 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10630 if test -n "$found_la"; then
10631 save_libdir="$libdir"
10632 case "$found_la" in
10633 */* | *\\*) . "$found_la" ;;
10634 *) . "./$found_la" ;;
10635 esac
10636 libdir="$save_libdir"
10637 for dep in $dependency_libs; do
10638 case "$dep" in
10639 -L*)
10640 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10641 if test "X$additional_libdir" != "X/usr/lib"; then
10642 haveit=
10643 if test "X$additional_libdir" = "X/usr/local/lib"; then
10644 if test -n "$GCC"; then
10645 case $host_os in
10646 linux*) haveit=yes;;
10647 esac
10650 if test -z "$haveit"; then
10651 haveit=
10652 for x in $LDFLAGS $LIBICONV; do
10654 acl_save_prefix="$prefix"
10655 prefix="$acl_final_prefix"
10656 acl_save_exec_prefix="$exec_prefix"
10657 exec_prefix="$acl_final_exec_prefix"
10658 eval x=\"$x\"
10659 exec_prefix="$acl_save_exec_prefix"
10660 prefix="$acl_save_prefix"
10662 if test "X$x" = "X-L$additional_libdir"; then
10663 haveit=yes
10664 break
10666 done
10667 if test -z "$haveit"; then
10668 if test -d "$additional_libdir"; then
10669 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10672 haveit=
10673 for x in $LDFLAGS $LTLIBICONV; do
10675 acl_save_prefix="$prefix"
10676 prefix="$acl_final_prefix"
10677 acl_save_exec_prefix="$exec_prefix"
10678 exec_prefix="$acl_final_exec_prefix"
10679 eval x=\"$x\"
10680 exec_prefix="$acl_save_exec_prefix"
10681 prefix="$acl_save_prefix"
10683 if test "X$x" = "X-L$additional_libdir"; then
10684 haveit=yes
10685 break
10687 done
10688 if test -z "$haveit"; then
10689 if test -d "$additional_libdir"; then
10690 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10696 -R*)
10697 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10698 if test "$enable_rpath" != no; then
10699 haveit=
10700 for x in $rpathdirs; do
10701 if test "X$x" = "X$dir"; then
10702 haveit=yes
10703 break
10705 done
10706 if test -z "$haveit"; then
10707 rpathdirs="$rpathdirs $dir"
10709 haveit=
10710 for x in $ltrpathdirs; do
10711 if test "X$x" = "X$dir"; then
10712 haveit=yes
10713 break
10715 done
10716 if test -z "$haveit"; then
10717 ltrpathdirs="$ltrpathdirs $dir"
10721 -l*)
10722 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10724 *.la)
10725 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10728 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10729 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10731 esac
10732 done
10734 else
10735 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10736 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10740 done
10741 done
10742 if test "X$rpathdirs" != "X"; then
10743 if test -n "$hardcode_libdir_separator"; then
10744 alldirs=
10745 for found_dir in $rpathdirs; do
10746 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10747 done
10748 acl_save_libdir="$libdir"
10749 libdir="$alldirs"
10750 eval flag=\"$hardcode_libdir_flag_spec\"
10751 libdir="$acl_save_libdir"
10752 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10753 else
10754 for found_dir in $rpathdirs; do
10755 acl_save_libdir="$libdir"
10756 libdir="$found_dir"
10757 eval flag=\"$hardcode_libdir_flag_spec\"
10758 libdir="$acl_save_libdir"
10759 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10760 done
10763 if test "X$ltrpathdirs" != "X"; then
10764 for found_dir in $ltrpathdirs; do
10765 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10766 done
10775 am_save_CPPFLAGS="$CPPFLAGS"
10777 for element in $INCICONV; do
10778 haveit=
10779 for x in $CPPFLAGS; do
10781 acl_save_prefix="$prefix"
10782 prefix="$acl_final_prefix"
10783 acl_save_exec_prefix="$exec_prefix"
10784 exec_prefix="$acl_final_exec_prefix"
10785 eval x=\"$x\"
10786 exec_prefix="$acl_save_exec_prefix"
10787 prefix="$acl_save_prefix"
10789 if test "X$x" = "X$element"; then
10790 haveit=yes
10791 break
10793 done
10794 if test -z "$haveit"; then
10795 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10797 done
10800 echo "$as_me:$LINENO: checking for iconv" >&5
10801 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10802 if test "${am_cv_func_iconv+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10806 am_cv_func_iconv="no, consider installing GNU libiconv"
10807 am_cv_lib_iconv=no
10808 if test x$gcc_no_link = xyes; then
10809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10811 { (exit 1); exit 1; }; }
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <stdlib.h>
10820 #include <iconv.h>
10822 main ()
10824 iconv_t cd = iconv_open("","");
10825 iconv(cd,NULL,NULL,NULL,NULL);
10826 iconv_close(cd);
10828 return 0;
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10833 (eval $ac_link) 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -z "$ac_c_werror_flag"
10841 || test ! -s conftest.err'
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); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 am_cv_func_iconv=yes
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10859 rm -f conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 if test "$am_cv_func_iconv" != yes; then
10862 am_save_LIBS="$LIBS"
10863 LIBS="$LIBS $LIBICONV"
10864 if test x$gcc_no_link = xyes; then
10865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10867 { (exit 1); exit 1; }; }
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 #include <stdlib.h>
10876 #include <iconv.h>
10878 main ()
10880 iconv_t cd = iconv_open("","");
10881 iconv(cd,NULL,NULL,NULL,NULL);
10882 iconv_close(cd);
10884 return 0;
10886 _ACEOF
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889 (eval $ac_link) 2>conftest.er1
10890 ac_status=$?
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try='test -z "$ac_c_werror_flag"
10897 || test ! -s conftest.err'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 am_cv_lib_iconv=yes
10910 am_cv_func_iconv=yes
10911 else
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10916 rm -f conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS="$am_save_LIBS"
10922 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10923 echo "${ECHO_T}$am_cv_func_iconv" >&6
10924 if test "$am_cv_func_iconv" = yes; then
10926 cat >>confdefs.h <<\_ACEOF
10927 #define HAVE_ICONV 1
10928 _ACEOF
10931 if test "$am_cv_lib_iconv" = yes; then
10932 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10933 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10934 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10935 echo "${ECHO_T}$LIBICONV" >&6
10936 else
10937 CPPFLAGS="$am_save_CPPFLAGS"
10938 LIBICONV=
10939 LTLIBICONV=
10944 if test "$am_cv_func_iconv" = yes; then
10945 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10946 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10947 if test "${am_cv_proto_iconv+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10958 #include <stdlib.h>
10959 #include <iconv.h>
10960 extern
10961 #ifdef __cplusplus
10963 #endif
10964 #if defined(__STDC__) || defined(__cplusplus)
10965 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10966 #else
10967 size_t iconv();
10968 #endif
10971 main ()
10975 return 0;
10977 _ACEOF
10978 rm -f conftest.$ac_objext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980 (eval $ac_compile) 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_c_werror_flag"
10988 || test ! -s conftest.err'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest.$ac_objext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 am_cv_proto_iconv_arg1=""
11001 else
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 am_cv_proto_iconv_arg1="const"
11007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11008 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);"
11011 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11012 echo "$as_me:$LINENO: result: ${ac_t:-
11013 }$am_cv_proto_iconv" >&5
11014 echo "${ECHO_T}${ac_t:-
11015 }$am_cv_proto_iconv" >&6
11017 cat >>confdefs.h <<_ACEOF
11018 #define ICONV_CONST $am_cv_proto_iconv_arg1
11019 _ACEOF
11024 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11025 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11026 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029 if test x$gcc_no_link = xyes; then
11030 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11032 { (exit 1); exit 1; }; }
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h. */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 #include <locale.h>
11042 main ()
11044 return LC_MESSAGES
11046 return 0;
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051 (eval $ac_link) 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -z "$ac_c_werror_flag"
11059 || test ! -s conftest.err'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; } &&
11065 { ac_try='test -s conftest$ac_exeext'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 am_cv_val_LC_MESSAGES=yes
11072 else
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 am_cv_val_LC_MESSAGES=no
11078 rm -f conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11081 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11082 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11083 if test $am_cv_val_LC_MESSAGES = yes; then
11085 cat >>confdefs.h <<\_ACEOF
11086 #define HAVE_LC_MESSAGES 1
11087 _ACEOF
11091 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11092 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11093 if test "${ac_cv_struct_tm+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h. */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 #include <sys/types.h>
11103 #include <time.h>
11106 main ()
11108 struct tm *tp; tp->tm_sec;
11110 return 0;
11112 _ACEOF
11113 rm -f conftest.$ac_objext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115 (eval $ac_compile) 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_struct_tm=time.h
11136 else
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11140 ac_cv_struct_tm=sys/time.h
11142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11144 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11145 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11146 if test $ac_cv_struct_tm = sys/time.h; then
11148 cat >>confdefs.h <<\_ACEOF
11149 #define TM_IN_SYS_TIME 1
11150 _ACEOF
11154 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11155 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11156 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159 cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h. */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h. */
11165 #include <sys/types.h>
11166 #include <$ac_cv_struct_tm>
11170 main ()
11172 static struct tm ac_aggr;
11173 if (ac_aggr.tm_zone)
11174 return 0;
11176 return 0;
11178 _ACEOF
11179 rm -f conftest.$ac_objext
11180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11181 (eval $ac_compile) 2>conftest.er1
11182 ac_status=$?
11183 grep -v '^ *+' conftest.er1 >conftest.err
11184 rm -f conftest.er1
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } &&
11188 { ac_try='test -z "$ac_c_werror_flag"
11189 || test ! -s conftest.err'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 ac_cv_member_struct_tm_tm_zone=yes
11202 else
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h. */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 #include <sys/types.h>
11213 #include <$ac_cv_struct_tm>
11217 main ()
11219 static struct tm ac_aggr;
11220 if (sizeof ac_aggr.tm_zone)
11221 return 0;
11223 return 0;
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11228 (eval $ac_compile) 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try='test -z "$ac_c_werror_flag"
11236 || test ! -s conftest.err'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try='test -s conftest.$ac_objext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_member_struct_tm_tm_zone=yes
11249 else
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 ac_cv_member_struct_tm_tm_zone=no
11255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11259 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11260 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11261 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11263 cat >>confdefs.h <<_ACEOF
11264 #define HAVE_STRUCT_TM_TM_ZONE 1
11265 _ACEOF
11270 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11272 cat >>confdefs.h <<\_ACEOF
11273 #define HAVE_TM_ZONE 1
11274 _ACEOF
11276 else
11277 echo "$as_me:$LINENO: checking for tzname" >&5
11278 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11279 if test "${ac_cv_var_tzname+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 if test x$gcc_no_link = xyes; then
11283 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11285 { (exit 1); exit 1; }; }
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <time.h>
11294 #ifndef tzname /* For SGI. */
11295 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11296 #endif
11299 main ()
11301 atoi(*tzname);
11303 return 0;
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_cv_var_tzname=yes
11329 else
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 ac_cv_var_tzname=no
11335 rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11338 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11339 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11340 if test $ac_cv_var_tzname = yes; then
11342 cat >>confdefs.h <<\_ACEOF
11343 #define HAVE_TZNAME 1
11344 _ACEOF
11352 for ac_func in gethostbyname_r
11354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11355 echo "$as_me:$LINENO: checking for $ac_func" >&5
11356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11357 if eval "test \"\${$as_ac_var+set}\" = set"; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360 if test x$gcc_no_link = xyes; then
11361 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11362 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11363 { (exit 1); exit 1; }; }
11365 cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h. */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11373 #define $ac_func innocuous_$ac_func
11375 /* System header to define __stub macros and hopefully few prototypes,
11376 which can conflict with char $ac_func (); below.
11377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11378 <limits.h> exists even on freestanding compilers. */
11380 #ifdef __STDC__
11381 # include <limits.h>
11382 #else
11383 # include <assert.h>
11384 #endif
11386 #undef $ac_func
11388 /* Override any gcc2 internal prototype to avoid an error. */
11389 #ifdef __cplusplus
11390 extern "C"
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11395 char $ac_func ();
11396 /* The GNU C library defines this for functions which it implements
11397 to always fail with ENOSYS. Some functions are actually named
11398 something starting with __ and the normal name is an alias. */
11399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11400 choke me
11401 #else
11402 char (*f) () = $ac_func;
11403 #endif
11404 #ifdef __cplusplus
11406 #endif
11409 main ()
11411 return f != $ac_func;
11413 return 0;
11415 _ACEOF
11416 rm -f conftest.$ac_objext conftest$ac_exeext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418 (eval $ac_link) 2>conftest.er1
11419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -z "$ac_c_werror_flag"
11426 || test ! -s conftest.err'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; } &&
11432 { ac_try='test -s conftest$ac_exeext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 eval "$as_ac_var=yes"
11439 else
11440 echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11443 eval "$as_ac_var=no"
11445 rm -f conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11450 if test `eval echo '${'$as_ac_var'}'` = yes; then
11451 cat >>confdefs.h <<_ACEOF
11452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11453 _ACEOF
11456 cat >>confdefs.h <<\_ACEOF
11457 #define HAVE_GETHOSTBYNAME_R 1
11458 _ACEOF
11460 # There are two different kinds of gethostbyname_r.
11461 # We look for the one that returns `int'.
11462 # Hopefully this check is robust enough.
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 #include <netdb.h>
11471 _ACEOF
11472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11473 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11476 cat >>confdefs.h <<\_ACEOF
11477 #define GETHOSTBYNAME_R_RETURNS_INT 1
11478 _ACEOF
11481 rm -f conftest*
11484 case " $GCINCS " in
11485 *" -D_REENTRANT "*) ;;
11487 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11488 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11489 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492 ac_ext=cc
11493 ac_cpp='$CXXCPP $CPPFLAGS'
11494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11498 cat >conftest.$ac_ext <<_ACEOF
11499 /* confdefs.h. */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 #include <netdb.h>
11506 main ()
11508 gethostbyname_r("", 0, 0);
11510 return 0;
11512 _ACEOF
11513 rm -f conftest.$ac_objext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11515 (eval $ac_compile) 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -z "$ac_cxx_werror_flag"
11523 || test ! -s conftest.err'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 libjava_cv_gethostbyname_r_needs_reentrant=no
11536 else
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 CPPFLAGS_SAVE="$CPPFLAGS"
11541 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h. */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 #include <netdb.h>
11550 main ()
11552 gethostbyname_r("", 0, 0);
11554 return 0;
11556 _ACEOF
11557 rm -f conftest.$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -z "$ac_cxx_werror_flag"
11567 || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest.$ac_objext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 libjava_cv_gethostbyname_r_needs_reentrant=yes
11580 else
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 libjava_cv_gethostbyname_r_needs_reentrant=fail
11586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11587 CPPFLAGS="$CPPFLAGS_SAVE"
11590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11591 ac_ext=c
11592 ac_cpp='$CPP $CPPFLAGS'
11593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11599 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11600 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11601 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11603 cat >>confdefs.h <<\_ACEOF
11604 #define _REENTRANT 1
11605 _ACEOF
11609 esac
11611 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11612 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11613 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h. */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11623 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11624 # define _REENTRANT 1
11625 #endif
11626 #include <netdb.h>
11628 main ()
11630 struct hostent_data data;
11632 return 0;
11634 _ACEOF
11635 rm -f conftest.$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637 (eval $ac_compile) 2>conftest.er1
11638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -z "$ac_c_werror_flag"
11645 || test ! -s conftest.err'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try='test -s conftest.$ac_objext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 libjava_cv_struct_hostent_data=yes
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 libjava_cv_struct_hostent_data=no
11664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11666 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11667 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11668 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11670 cat >>confdefs.h <<\_ACEOF
11671 #define HAVE_STRUCT_HOSTENT_DATA 1
11672 _ACEOF
11677 done
11680 # FIXME: libjava source code expects to find a prototype for
11681 # gethostbyaddr_r in netdb.h. The outer check ensures that
11682 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11683 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11684 # linkage check is enough, yet C++ code requires proper prototypes.)
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 #include <netdb.h>
11693 _ACEOF
11694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11695 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11698 for ac_func in gethostbyaddr_r
11700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11701 echo "$as_me:$LINENO: checking for $ac_func" >&5
11702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11703 if eval "test \"\${$as_ac_var+set}\" = set"; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706 if test x$gcc_no_link = xyes; then
11707 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11708 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11709 { (exit 1); exit 1; }; }
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h. */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719 #define $ac_func innocuous_$ac_func
11721 /* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11726 #ifdef __STDC__
11727 # include <limits.h>
11728 #else
11729 # include <assert.h>
11730 #endif
11732 #undef $ac_func
11734 /* Override any gcc2 internal prototype to avoid an error. */
11735 #ifdef __cplusplus
11736 extern "C"
11738 #endif
11739 /* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11741 char $ac_func ();
11742 /* The GNU C library defines this for functions which it implements
11743 to always fail with ENOSYS. Some functions are actually named
11744 something starting with __ and the normal name is an alias. */
11745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11746 choke me
11747 #else
11748 char (*f) () = $ac_func;
11749 #endif
11750 #ifdef __cplusplus
11752 #endif
11755 main ()
11757 return f != $ac_func;
11759 return 0;
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764 (eval $ac_link) 2>conftest.er1
11765 ac_status=$?
11766 grep -v '^ *+' conftest.er1 >conftest.err
11767 rm -f conftest.er1
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -z "$ac_c_werror_flag"
11772 || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 eval "$as_ac_var=yes"
11785 else
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 eval "$as_ac_var=no"
11791 rm -f conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext
11794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799 _ACEOF
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_GETHOSTBYADDR_R 1
11804 _ACEOF
11806 # There are two different kinds of gethostbyaddr_r.
11807 # We look for the one that returns `int'.
11808 # Hopefully this check is robust enough.
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 #include <netdb.h>
11817 _ACEOF
11818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11819 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11822 cat >>confdefs.h <<\_ACEOF
11823 #define GETHOSTBYADDR_R_RETURNS_INT 1
11824 _ACEOF
11827 rm -f conftest*
11830 done
11833 rm -f conftest*
11837 for ac_func in gethostname
11839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11840 echo "$as_me:$LINENO: checking for $ac_func" >&5
11841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11842 if eval "test \"\${$as_ac_var+set}\" = set"; then
11843 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 else
11845 if test x$gcc_no_link = xyes; then
11846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11848 { (exit 1); exit 1; }; }
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h. */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11858 #define $ac_func innocuous_$ac_func
11860 /* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func (); below.
11862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11863 <limits.h> exists even on freestanding compilers. */
11865 #ifdef __STDC__
11866 # include <limits.h>
11867 #else
11868 # include <assert.h>
11869 #endif
11871 #undef $ac_func
11873 /* Override any gcc2 internal prototype to avoid an error. */
11874 #ifdef __cplusplus
11875 extern "C"
11877 #endif
11878 /* We use char because int might match the return type of a gcc2
11879 builtin and then its argument prototype would still apply. */
11880 char $ac_func ();
11881 /* The GNU C library defines this for functions which it implements
11882 to always fail with ENOSYS. Some functions are actually named
11883 something starting with __ and the normal name is an alias. */
11884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11885 choke me
11886 #else
11887 char (*f) () = $ac_func;
11888 #endif
11889 #ifdef __cplusplus
11891 #endif
11894 main ()
11896 return f != $ac_func;
11898 return 0;
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_c_werror_flag"
11911 || test ! -s conftest.err'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 eval "$as_ac_var=yes"
11924 else
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11928 eval "$as_ac_var=no"
11930 rm -f conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11935 if test `eval echo '${'$as_ac_var'}'` = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11938 _ACEOF
11941 cat >>confdefs.h <<\_ACEOF
11942 #define HAVE_GETHOSTNAME 1
11943 _ACEOF
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 #include <unistd.h>
11953 _ACEOF
11954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11955 $EGREP "gethostname" >/dev/null 2>&1; then
11958 cat >>confdefs.h <<\_ACEOF
11959 #define HAVE_GETHOSTNAME_DECL 1
11960 _ACEOF
11963 rm -f conftest*
11966 done
11970 for ac_func in usleep
11972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 echo "$as_me:$LINENO: checking for $ac_func" >&5
11974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11975 if eval "test \"\${$as_ac_var+set}\" = set"; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978 if test x$gcc_no_link = xyes; then
11979 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11980 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11981 { (exit 1); exit 1; }; }
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h. */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11991 #define $ac_func innocuous_$ac_func
11993 /* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char $ac_func (); below.
11995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 <limits.h> exists even on freestanding compilers. */
11998 #ifdef __STDC__
11999 # include <limits.h>
12000 #else
12001 # include <assert.h>
12002 #endif
12004 #undef $ac_func
12006 /* Override any gcc2 internal prototype to avoid an error. */
12007 #ifdef __cplusplus
12008 extern "C"
12010 #endif
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12013 char $ac_func ();
12014 /* The GNU C library defines this for functions which it implements
12015 to always fail with ENOSYS. Some functions are actually named
12016 something starting with __ and the normal name is an alias. */
12017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12018 choke me
12019 #else
12020 char (*f) () = $ac_func;
12021 #endif
12022 #ifdef __cplusplus
12024 #endif
12027 main ()
12029 return f != $ac_func;
12031 return 0;
12033 _ACEOF
12034 rm -f conftest.$ac_objext conftest$ac_exeext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036 (eval $ac_link) 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag"
12044 || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest$ac_exeext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 eval "$as_ac_var=yes"
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 eval "$as_ac_var=no"
12063 rm -f conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12068 if test `eval echo '${'$as_ac_var'}'` = yes; then
12069 cat >>confdefs.h <<_ACEOF
12070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12071 _ACEOF
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h. */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12079 #include <unistd.h>
12081 _ACEOF
12082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12083 $EGREP "usleep" >/dev/null 2>&1; then
12086 cat >>confdefs.h <<\_ACEOF
12087 #define HAVE_USLEEP_DECL 1
12088 _ACEOF
12091 rm -f conftest*
12094 done
12097 # Look for these functions in the thread library, but only bother
12098 # if using POSIX threads.
12099 if test "$THREADS" = posix; then
12100 save_LIBS="$LIBS"
12101 LIBS="$LIBS $THREADLIBS"
12102 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12103 # E.g., Solaris.
12106 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12109 echo "$as_me:$LINENO: checking for $ac_func" >&5
12110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12111 if eval "test \"\${$as_ac_var+set}\" = set"; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114 if test x$gcc_no_link = xyes; then
12115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12117 { (exit 1); exit 1; }; }
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12127 #define $ac_func innocuous_$ac_func
12129 /* System header to define __stub macros and hopefully few prototypes,
12130 which can conflict with char $ac_func (); below.
12131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132 <limits.h> exists even on freestanding compilers. */
12134 #ifdef __STDC__
12135 # include <limits.h>
12136 #else
12137 # include <assert.h>
12138 #endif
12140 #undef $ac_func
12142 /* Override any gcc2 internal prototype to avoid an error. */
12143 #ifdef __cplusplus
12144 extern "C"
12146 #endif
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12149 char $ac_func ();
12150 /* The GNU C library defines this for functions which it implements
12151 to always fail with ENOSYS. Some functions are actually named
12152 something starting with __ and the normal name is an alias. */
12153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12154 choke me
12155 #else
12156 char (*f) () = $ac_func;
12157 #endif
12158 #ifdef __cplusplus
12160 #endif
12163 main ()
12165 return f != $ac_func;
12167 return 0;
12169 _ACEOF
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12172 (eval $ac_link) 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -z "$ac_c_werror_flag"
12180 || test ! -s conftest.err'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest$ac_exeext'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 eval "$as_ac_var=yes"
12193 else
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 eval "$as_ac_var=no"
12199 rm -f conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
12202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12204 if test `eval echo '${'$as_ac_var'}'` = yes; then
12205 cat >>confdefs.h <<_ACEOF
12206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12207 _ACEOF
12210 done
12213 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12214 # Solaris 7 the name librt is preferred.
12216 for ac_func in sched_yield
12218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12219 echo "$as_me:$LINENO: checking for $ac_func" >&5
12220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12221 if eval "test \"\${$as_ac_var+set}\" = set"; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224 if test x$gcc_no_link = xyes; then
12225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12227 { (exit 1); exit 1; }; }
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237 #define $ac_func innocuous_$ac_func
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12244 #ifdef __STDC__
12245 # include <limits.h>
12246 #else
12247 # include <assert.h>
12248 #endif
12250 #undef $ac_func
12252 /* Override any gcc2 internal prototype to avoid an error. */
12253 #ifdef __cplusplus
12254 extern "C"
12256 #endif
12257 /* We use char because int might match the return type of a gcc2
12258 builtin and then its argument prototype would still apply. */
12259 char $ac_func ();
12260 /* The GNU C library defines this for functions which it implements
12261 to always fail with ENOSYS. Some functions are actually named
12262 something starting with __ and the normal name is an alias. */
12263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12264 choke me
12265 #else
12266 char (*f) () = $ac_func;
12267 #endif
12268 #ifdef __cplusplus
12270 #endif
12273 main ()
12275 return f != $ac_func;
12277 return 0;
12279 _ACEOF
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282 (eval $ac_link) 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_c_werror_flag"
12290 || test ! -s conftest.err'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 eval "$as_ac_var=yes"
12303 else
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 eval "$as_ac_var=no"
12309 rm -f conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12314 if test `eval echo '${'$as_ac_var'}'` = yes; then
12315 cat >>confdefs.h <<_ACEOF
12316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12317 _ACEOF
12319 else
12321 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12322 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12323 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326 ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-lrt $LIBS"
12328 if test x$gcc_no_link = xyes; then
12329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12331 { (exit 1); exit 1; }; }
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12340 /* Override any gcc2 internal prototype to avoid an error. */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 /* We use char because int might match the return type of a gcc2
12345 builtin and then its argument prototype would still apply. */
12346 char sched_yield ();
12348 main ()
12350 sched_yield ();
12352 return 0;
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag"
12365 || test ! -s conftest.err'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 ac_cv_lib_rt_sched_yield=yes
12378 else
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_cv_lib_rt_sched_yield=no
12384 rm -f conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12388 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12389 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12390 if test $ac_cv_lib_rt_sched_yield = yes; then
12392 cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_SCHED_YIELD 1
12394 _ACEOF
12396 THREADLIBS="$THREADLIBS -lrt"
12397 THREADSPEC="$THREADSPEC -lrt"
12398 else
12400 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12401 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12402 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405 ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-lposix4 $LIBS"
12407 if test x$gcc_no_link = xyes; then
12408 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12409 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12410 { (exit 1); exit 1; }; }
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h. */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12419 /* Override any gcc2 internal prototype to avoid an error. */
12420 #ifdef __cplusplus
12421 extern "C"
12422 #endif
12423 /* We use char because int might match the return type of a gcc2
12424 builtin and then its argument prototype would still apply. */
12425 char sched_yield ();
12427 main ()
12429 sched_yield ();
12431 return 0;
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12436 (eval $ac_link) 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } &&
12443 { ac_try='test -z "$ac_c_werror_flag"
12444 || test ! -s conftest.err'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } &&
12450 { ac_try='test -s conftest$ac_exeext'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_cv_lib_posix4_sched_yield=yes
12457 else
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 ac_cv_lib_posix4_sched_yield=no
12463 rm -f conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12467 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12468 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12469 if test $ac_cv_lib_posix4_sched_yield = yes; then
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_SCHED_YIELD 1
12473 _ACEOF
12475 THREADLIBS="$THREADLIBS -lposix4"
12476 THREADSPEC="$THREADSPEC -lposix4"
12482 done
12485 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12486 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12487 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490 ac_check_lib_save_LIBS=$LIBS
12491 LIBS="-lrt $LIBS"
12492 if test x$gcc_no_link = xyes; then
12493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12495 { (exit 1); exit 1; }; }
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12504 /* Override any gcc2 internal prototype to avoid an error. */
12505 #ifdef __cplusplus
12506 extern "C"
12507 #endif
12508 /* We use char because int might match the return type of a gcc2
12509 builtin and then its argument prototype would still apply. */
12510 char clock_gettime ();
12512 main ()
12514 clock_gettime ();
12516 return 0;
12518 _ACEOF
12519 rm -f conftest.$ac_objext conftest$ac_exeext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12521 (eval $ac_link) 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest$ac_exeext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_cv_lib_rt_clock_gettime=yes
12542 else
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12546 ac_cv_lib_rt_clock_gettime=no
12548 rm -f conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12552 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12553 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12554 if test $ac_cv_lib_rt_clock_gettime = yes; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_CLOCK_GETTIME 1
12559 _ACEOF
12561 case "$THREADSPEC" in
12562 *-lrt*) ;;
12564 THREADSPEC="$THREADSPEC -lrt"
12565 THREADLIBS="$THREADLIBS -lrt"
12567 esac
12571 LIBS="$save_LIBS"
12573 # We can save a little space at runtime if the mutex has m_count
12574 # or __m_count. This is a nice hack for Linux.
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 #include <pthread.h>
12583 main ()
12586 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12589 return 0;
12591 _ACEOF
12592 rm -f conftest.$ac_objext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594 (eval $ac_compile) 2>conftest.er1
12595 ac_status=$?
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12615 cat >>confdefs.h <<\_ACEOF
12616 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12617 _ACEOF
12619 else
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h. */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 #include <pthread.h>
12632 main ()
12635 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12638 return 0;
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12643 (eval $ac_compile) 2>conftest.er1
12644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
12650 { ac_try='test -z "$ac_c_werror_flag"
12651 || test ! -s conftest.err'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; } &&
12657 { ac_try='test -s conftest.$ac_objext'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; }; then
12664 cat >>confdefs.h <<\_ACEOF
12665 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12666 _ACEOF
12668 else
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12678 # We require a way to get the time.
12679 time_found=no
12683 for ac_func in gettimeofday time ftime
12685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12686 echo "$as_me:$LINENO: checking for $ac_func" >&5
12687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12688 if eval "test \"\${$as_ac_var+set}\" = set"; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691 if test x$gcc_no_link = xyes; then
12692 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12694 { (exit 1); exit 1; }; }
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h. */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12704 #define $ac_func innocuous_$ac_func
12706 /* System header to define __stub macros and hopefully few prototypes,
12707 which can conflict with char $ac_func (); below.
12708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12709 <limits.h> exists even on freestanding compilers. */
12711 #ifdef __STDC__
12712 # include <limits.h>
12713 #else
12714 # include <assert.h>
12715 #endif
12717 #undef $ac_func
12719 /* Override any gcc2 internal prototype to avoid an error. */
12720 #ifdef __cplusplus
12721 extern "C"
12723 #endif
12724 /* We use char because int might match the return type of a gcc2
12725 builtin and then its argument prototype would still apply. */
12726 char $ac_func ();
12727 /* The GNU C library defines this for functions which it implements
12728 to always fail with ENOSYS. Some functions are actually named
12729 something starting with __ and the normal name is an alias. */
12730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12731 choke me
12732 #else
12733 char (*f) () = $ac_func;
12734 #endif
12735 #ifdef __cplusplus
12737 #endif
12740 main ()
12742 return f != $ac_func;
12744 return 0;
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749 (eval $ac_link) 2>conftest.er1
12750 ac_status=$?
12751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -z "$ac_c_werror_flag"
12757 || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 eval "$as_ac_var=yes"
12770 else
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 eval "$as_ac_var=no"
12776 rm -f conftest.err conftest.$ac_objext \
12777 conftest$ac_exeext conftest.$ac_ext
12779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12781 if test `eval echo '${'$as_ac_var'}'` = yes; then
12782 cat >>confdefs.h <<_ACEOF
12783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12784 _ACEOF
12785 time_found=yes
12787 done
12789 if test "$time_found" = no; then
12790 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12791 echo "$as_me: error: no function found to get the time" >&2;}
12792 { (exit 1); exit 1; }; }
12796 for ac_func in memmove
12798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12799 echo "$as_me:$LINENO: checking for $ac_func" >&5
12800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12801 if eval "test \"\${$as_ac_var+set}\" = set"; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 else
12804 if test x$gcc_no_link = xyes; then
12805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12807 { (exit 1); exit 1; }; }
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12817 #define $ac_func innocuous_$ac_func
12819 /* System header to define __stub macros and hopefully few prototypes,
12820 which can conflict with char $ac_func (); below.
12821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12822 <limits.h> exists even on freestanding compilers. */
12824 #ifdef __STDC__
12825 # include <limits.h>
12826 #else
12827 # include <assert.h>
12828 #endif
12830 #undef $ac_func
12832 /* Override any gcc2 internal prototype to avoid an error. */
12833 #ifdef __cplusplus
12834 extern "C"
12836 #endif
12837 /* We use char because int might match the return type of a gcc2
12838 builtin and then its argument prototype would still apply. */
12839 char $ac_func ();
12840 /* The GNU C library defines this for functions which it implements
12841 to always fail with ENOSYS. Some functions are actually named
12842 something starting with __ and the normal name is an alias. */
12843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12844 choke me
12845 #else
12846 char (*f) () = $ac_func;
12847 #endif
12848 #ifdef __cplusplus
12850 #endif
12853 main ()
12855 return f != $ac_func;
12857 return 0;
12859 _ACEOF
12860 rm -f conftest.$ac_objext conftest$ac_exeext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862 (eval $ac_link) 2>conftest.er1
12863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } &&
12869 { ac_try='test -z "$ac_c_werror_flag"
12870 || test ! -s conftest.err'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; } &&
12876 { ac_try='test -s conftest$ac_exeext'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12879 ac_status=$?
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; }; then
12882 eval "$as_ac_var=yes"
12883 else
12884 echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12887 eval "$as_ac_var=no"
12889 rm -f conftest.err conftest.$ac_objext \
12890 conftest$ac_exeext conftest.$ac_ext
12892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12894 if test `eval echo '${'$as_ac_var'}'` = yes; then
12895 cat >>confdefs.h <<_ACEOF
12896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12897 _ACEOF
12900 done
12903 # We require memcpy.
12904 memcpy_found=no
12906 for ac_func in memcpy
12908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12909 echo "$as_me:$LINENO: checking for $ac_func" >&5
12910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12911 if eval "test \"\${$as_ac_var+set}\" = set"; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914 if test x$gcc_no_link = xyes; then
12915 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12917 { (exit 1); exit 1; }; }
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12927 #define $ac_func innocuous_$ac_func
12929 /* System header to define __stub macros and hopefully few prototypes,
12930 which can conflict with char $ac_func (); below.
12931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12932 <limits.h> exists even on freestanding compilers. */
12934 #ifdef __STDC__
12935 # include <limits.h>
12936 #else
12937 # include <assert.h>
12938 #endif
12940 #undef $ac_func
12942 /* Override any gcc2 internal prototype to avoid an error. */
12943 #ifdef __cplusplus
12944 extern "C"
12946 #endif
12947 /* We use char because int might match the return type of a gcc2
12948 builtin and then its argument prototype would still apply. */
12949 char $ac_func ();
12950 /* The GNU C library defines this for functions which it implements
12951 to always fail with ENOSYS. Some functions are actually named
12952 something starting with __ and the normal name is an alias. */
12953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12954 choke me
12955 #else
12956 char (*f) () = $ac_func;
12957 #endif
12958 #ifdef __cplusplus
12960 #endif
12963 main ()
12965 return f != $ac_func;
12967 return 0;
12969 _ACEOF
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972 (eval $ac_link) 2>conftest.er1
12973 ac_status=$?
12974 grep -v '^ *+' conftest.er1 >conftest.err
12975 rm -f conftest.er1
12976 cat conftest.err >&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } &&
12979 { ac_try='test -z "$ac_c_werror_flag"
12980 || test ! -s conftest.err'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 eval "$as_ac_var=yes"
12993 else
12994 echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12997 eval "$as_ac_var=no"
12999 rm -f conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13004 if test `eval echo '${'$as_ac_var'}'` = yes; then
13005 cat >>confdefs.h <<_ACEOF
13006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13007 _ACEOF
13008 memcpy_found=yes
13010 done
13012 if test "$memcpy_found" = no; then
13013 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13014 echo "$as_me: error: memcpy is required" >&2;}
13015 { (exit 1); exit 1; }; }
13017 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13018 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-ldl $LIBS"
13025 if test x$gcc_no_link = xyes; then
13026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13028 { (exit 1); exit 1; }; }
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13037 /* Override any gcc2 internal prototype to avoid an error. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 /* We use char because int might match the return type of a gcc2
13042 builtin and then its argument prototype would still apply. */
13043 char dlopen ();
13045 main ()
13047 dlopen ();
13049 return 0;
13051 _ACEOF
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13054 (eval $ac_link) 2>conftest.er1
13055 ac_status=$?
13056 grep -v '^ *+' conftest.er1 >conftest.err
13057 rm -f conftest.er1
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try='test -z "$ac_c_werror_flag"
13062 || test ! -s conftest.err'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try='test -s conftest$ac_exeext'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13074 ac_cv_lib_dl_dlopen=yes
13075 else
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 ac_cv_lib_dl_dlopen=no
13081 rm -f conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13083 LIBS=$ac_check_lib_save_LIBS
13085 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13086 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13087 if test $ac_cv_lib_dl_dlopen = yes; then
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_DLOPEN 1
13092 _ACEOF
13094 else
13096 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13097 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13098 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101 ac_check_lib_save_LIBS=$LIBS
13102 LIBS="-ldld $LIBS"
13103 if test x$gcc_no_link = xyes; then
13104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13106 { (exit 1); exit 1; }; }
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h. */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13115 /* Override any gcc2 internal prototype to avoid an error. */
13116 #ifdef __cplusplus
13117 extern "C"
13118 #endif
13119 /* We use char because int might match the return type of a gcc2
13120 builtin and then its argument prototype would still apply. */
13121 char dlopen ();
13123 main ()
13125 dlopen ();
13127 return 0;
13129 _ACEOF
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132 (eval $ac_link) 2>conftest.er1
13133 ac_status=$?
13134 grep -v '^ *+' conftest.er1 >conftest.err
13135 rm -f conftest.er1
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -z "$ac_c_werror_flag"
13140 || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_lib_dld_dlopen=yes
13153 else
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13157 ac_cv_lib_dld_dlopen=no
13159 rm -f conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13161 LIBS=$ac_check_lib_save_LIBS
13163 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13164 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13165 if test $ac_cv_lib_dld_dlopen = yes; then
13168 cat >>confdefs.h <<\_ACEOF
13169 #define HAVE_DLOPEN 1
13170 _ACEOF
13177 # Some library-finding code we stole from Tcl.
13178 #--------------------------------------------------------------------
13179 # Check for the existence of the -lsocket and -lnsl libraries.
13180 # The order here is important, so that they end up in the right
13181 # order in the command line generated by make. Here are some
13182 # special considerations:
13183 # 1. Use "connect" and "accept" to check for -lsocket, and
13184 # "gethostbyname" to check for -lnsl.
13185 # 2. Use each function name only once: can't redo a check because
13186 # autoconf caches the results of the last check and won't redo it.
13187 # 3. Use -lnsl and -lsocket only if they supply procedures that
13188 # aren't already present in the normal libraries. This is because
13189 # IRIX 5.2 has libraries, but they aren't needed and they're
13190 # bogus: they goof up name resolution if used.
13191 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13192 # To get around this problem, check for both libraries together
13193 # if -lsocket doesn't work by itself.
13194 #--------------------------------------------------------------------
13196 echo "$as_me:$LINENO: checking for socket libraries" >&5
13197 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13198 if test "${gcj_cv_lib_sockets+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201 gcj_cv_lib_sockets=
13202 gcj_checkBoth=0
13203 unset ac_cv_func_connect
13204 echo "$as_me:$LINENO: checking for connect" >&5
13205 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13206 if test "${ac_cv_func_connect+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209 if test x$gcc_no_link = xyes; then
13210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13212 { (exit 1); exit 1; }; }
13214 cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h. */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13222 #define connect innocuous_connect
13224 /* System header to define __stub macros and hopefully few prototypes,
13225 which can conflict with char connect (); below.
13226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13227 <limits.h> exists even on freestanding compilers. */
13229 #ifdef __STDC__
13230 # include <limits.h>
13231 #else
13232 # include <assert.h>
13233 #endif
13235 #undef connect
13237 /* Override any gcc2 internal prototype to avoid an error. */
13238 #ifdef __cplusplus
13239 extern "C"
13241 #endif
13242 /* We use char because int might match the return type of a gcc2
13243 builtin and then its argument prototype would still apply. */
13244 char connect ();
13245 /* The GNU C library defines this for functions which it implements
13246 to always fail with ENOSYS. Some functions are actually named
13247 something starting with __ and the normal name is an alias. */
13248 #if defined (__stub_connect) || defined (__stub___connect)
13249 choke me
13250 #else
13251 char (*f) () = connect;
13252 #endif
13253 #ifdef __cplusplus
13255 #endif
13258 main ()
13260 return f != connect;
13262 return 0;
13264 _ACEOF
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13267 (eval $ac_link) 2>conftest.er1
13268 ac_status=$?
13269 grep -v '^ *+' conftest.er1 >conftest.err
13270 rm -f conftest.er1
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -z "$ac_c_werror_flag"
13275 || test ! -s conftest.err'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest$ac_exeext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_func_connect=yes
13288 else
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13292 ac_cv_func_connect=no
13294 rm -f conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13297 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13298 echo "${ECHO_T}$ac_cv_func_connect" >&6
13299 if test $ac_cv_func_connect = yes; then
13300 gcj_checkSocket=0
13301 else
13302 gcj_checkSocket=1
13305 if test "$gcj_checkSocket" = 1; then
13306 unset ac_cv_func_connect
13307 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13308 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13309 if test "${ac_cv_lib_socket_main+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 ac_check_lib_save_LIBS=$LIBS
13313 LIBS="-lsocket $LIBS"
13314 if test x$gcc_no_link = xyes; then
13315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13317 { (exit 1); exit 1; }; }
13319 cat >conftest.$ac_ext <<_ACEOF
13320 /* confdefs.h. */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13328 main ()
13330 main ();
13332 return 0;
13334 _ACEOF
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13337 (eval $ac_link) 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag"
13345 || test ! -s conftest.err'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest$ac_exeext'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_lib_socket_main=yes
13358 else
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 ac_cv_lib_socket_main=no
13364 rm -f conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13368 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13369 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13370 if test $ac_cv_lib_socket_main = yes; then
13371 gcj_cv_lib_sockets="-lsocket"
13372 else
13373 gcj_checkBoth=1
13377 if test "$gcj_checkBoth" = 1; then
13378 gcj_oldLibs=$LIBS
13379 LIBS="$LIBS -lsocket -lnsl"
13380 unset ac_cv_func_accept
13381 echo "$as_me:$LINENO: checking for accept" >&5
13382 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13383 if test "${ac_cv_func_accept+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386 if test x$gcc_no_link = xyes; then
13387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13389 { (exit 1); exit 1; }; }
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13399 #define accept innocuous_accept
13401 /* System header to define __stub macros and hopefully few prototypes,
13402 which can conflict with char accept (); below.
13403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13404 <limits.h> exists even on freestanding compilers. */
13406 #ifdef __STDC__
13407 # include <limits.h>
13408 #else
13409 # include <assert.h>
13410 #endif
13412 #undef accept
13414 /* Override any gcc2 internal prototype to avoid an error. */
13415 #ifdef __cplusplus
13416 extern "C"
13418 #endif
13419 /* We use char because int might match the return type of a gcc2
13420 builtin and then its argument prototype would still apply. */
13421 char accept ();
13422 /* The GNU C library defines this for functions which it implements
13423 to always fail with ENOSYS. Some functions are actually named
13424 something starting with __ and the normal name is an alias. */
13425 #if defined (__stub_accept) || defined (__stub___accept)
13426 choke me
13427 #else
13428 char (*f) () = accept;
13429 #endif
13430 #ifdef __cplusplus
13432 #endif
13435 main ()
13437 return f != accept;
13439 return 0;
13441 _ACEOF
13442 rm -f conftest.$ac_objext conftest$ac_exeext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444 (eval $ac_link) 2>conftest.er1
13445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag"
13452 || test ! -s conftest.err'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest$ac_exeext'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 ac_cv_func_accept=yes
13465 else
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ac_cv_func_accept=no
13471 rm -f conftest.err conftest.$ac_objext \
13472 conftest$ac_exeext conftest.$ac_ext
13474 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13475 echo "${ECHO_T}$ac_cv_func_accept" >&6
13476 if test $ac_cv_func_accept = yes; then
13477 gcj_checkNsl=0
13478 gcj_cv_lib_sockets="-lsocket -lnsl"
13481 unset ac_cv_func_accept
13482 LIBS=$gcj_oldLibs
13484 unset ac_cv_func_gethostbyname
13485 gcj_oldLibs=$LIBS
13486 LIBS="$LIBS $gcj_cv_lib_sockets"
13487 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13488 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13489 if test "${ac_cv_func_gethostbyname+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 else
13492 if test x$gcc_no_link = xyes; then
13493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13495 { (exit 1); exit 1; }; }
13497 cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h. */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13505 #define gethostbyname innocuous_gethostbyname
13507 /* System header to define __stub macros and hopefully few prototypes,
13508 which can conflict with char gethostbyname (); below.
13509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13510 <limits.h> exists even on freestanding compilers. */
13512 #ifdef __STDC__
13513 # include <limits.h>
13514 #else
13515 # include <assert.h>
13516 #endif
13518 #undef gethostbyname
13520 /* Override any gcc2 internal prototype to avoid an error. */
13521 #ifdef __cplusplus
13522 extern "C"
13524 #endif
13525 /* We use char because int might match the return type of a gcc2
13526 builtin and then its argument prototype would still apply. */
13527 char gethostbyname ();
13528 /* The GNU C library defines this for functions which it implements
13529 to always fail with ENOSYS. Some functions are actually named
13530 something starting with __ and the normal name is an alias. */
13531 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13532 choke me
13533 #else
13534 char (*f) () = gethostbyname;
13535 #endif
13536 #ifdef __cplusplus
13538 #endif
13541 main ()
13543 return f != gethostbyname;
13545 return 0;
13547 _ACEOF
13548 rm -f conftest.$ac_objext conftest$ac_exeext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13550 (eval $ac_link) 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -z "$ac_c_werror_flag"
13558 || test ! -s conftest.err'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest$ac_exeext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 ac_cv_func_gethostbyname=yes
13571 else
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ac_cv_func_gethostbyname=no
13577 rm -f conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13580 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13581 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13582 if test $ac_cv_func_gethostbyname = yes; then
13584 else
13585 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13586 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13587 if test "${ac_cv_lib_nsl_main+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-lnsl $LIBS"
13592 if test x$gcc_no_link = xyes; then
13593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13595 { (exit 1); exit 1; }; }
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13606 main ()
13608 main ();
13610 return 0;
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_lib_nsl_main=yes
13636 else
13637 echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13640 ac_cv_lib_nsl_main=no
13642 rm -f conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13646 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13647 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13648 if test $ac_cv_lib_nsl_main = yes; then
13649 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13654 unset ac_cv_func_gethostbyname
13655 LIBS=$gcj_oldLIBS
13658 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13659 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13660 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13662 if test "$with_system_zlib" = yes; then
13663 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13664 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13665 if test "${ac_cv_lib_z_deflate+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668 ac_check_lib_save_LIBS=$LIBS
13669 LIBS="-lz $LIBS"
13670 if test x$gcc_no_link = xyes; then
13671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13673 { (exit 1); exit 1; }; }
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h. */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13682 /* Override any gcc2 internal prototype to avoid an error. */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13688 char deflate ();
13690 main ()
13692 deflate ();
13694 return 0;
13696 _ACEOF
13697 rm -f conftest.$ac_objext conftest$ac_exeext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13699 (eval $ac_link) 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag"
13707 || test ! -s conftest.err'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try='test -s conftest$ac_exeext'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_lib_z_deflate=yes
13720 else
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_cv_lib_z_deflate=no
13726 rm -f conftest.err conftest.$ac_objext \
13727 conftest$ac_exeext conftest.$ac_ext
13728 LIBS=$ac_check_lib_save_LIBS
13730 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13731 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13732 if test $ac_cv_lib_z_deflate = yes; then
13733 ZLIBSPEC=-lz
13734 else
13735 ZLIBSPEC=
13740 # Test for Gtk stuff, if asked for.
13741 if test "$use_gtk_awt" = yes; then
13743 succeeded=no
13745 if test -z "$PKG_CONFIG"; then
13746 # Extract the first word of "pkg-config", so it can be a program name with args.
13747 set dummy pkg-config; ac_word=$2
13748 echo "$as_me:$LINENO: checking for $ac_word" >&5
13749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13750 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753 case $PKG_CONFIG in
13754 [\\/]* | ?:[\\/]*)
13755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13769 done
13770 done
13772 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13774 esac
13776 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13778 if test -n "$PKG_CONFIG"; then
13779 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13780 echo "${ECHO_T}$PKG_CONFIG" >&6
13781 else
13782 echo "$as_me:$LINENO: result: no" >&5
13783 echo "${ECHO_T}no" >&6
13788 if test "$PKG_CONFIG" = "no" ; then
13789 echo "*** The pkg-config script could not be found. Make sure it is"
13790 echo "*** in your path, or set the PKG_CONFIG environment variable"
13791 echo "*** to the full path to pkg-config."
13792 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13793 else
13794 PKG_CONFIG_MIN_VERSION=0.9.0
13795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13796 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13797 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13799 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13800 echo "$as_me:$LINENO: result: yes" >&5
13801 echo "${ECHO_T}yes" >&6
13802 succeeded=yes
13804 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13805 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13806 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13807 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13808 echo "${ECHO_T}$GTK_CFLAGS" >&6
13810 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13811 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13812 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13813 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13814 echo "${ECHO_T}$GTK_LIBS" >&6
13815 else
13816 GTK_CFLAGS=""
13817 GTK_LIBS=""
13818 ## If we have a custom action on failure, don't print errors, but
13819 ## do set a variable so people can do so.
13820 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13821 echo $GTK_PKG_ERRORS
13826 else
13827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13832 if test $succeeded = yes; then
13834 else
13835 { { 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
13836 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;}
13837 { (exit 1); exit 1; }; }
13844 succeeded=no
13846 if test -z "$PKG_CONFIG"; then
13847 # Extract the first word of "pkg-config", so it can be a program name with args.
13848 set dummy pkg-config; ac_word=$2
13849 echo "$as_me:$LINENO: checking for $ac_word" >&5
13850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854 case $PKG_CONFIG in
13855 [\\/]* | ?:[\\/]*)
13856 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13860 for as_dir in $PATH
13862 IFS=$as_save_IFS
13863 test -z "$as_dir" && as_dir=.
13864 for ac_exec_ext in '' $ac_executable_extensions; do
13865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13866 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13868 break 2
13870 done
13871 done
13873 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13875 esac
13877 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13879 if test -n "$PKG_CONFIG"; then
13880 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13881 echo "${ECHO_T}$PKG_CONFIG" >&6
13882 else
13883 echo "$as_me:$LINENO: result: no" >&5
13884 echo "${ECHO_T}no" >&6
13889 if test "$PKG_CONFIG" = "no" ; then
13890 echo "*** The pkg-config script could not be found. Make sure it is"
13891 echo "*** in your path, or set the PKG_CONFIG environment variable"
13892 echo "*** to the full path to pkg-config."
13893 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13894 else
13895 PKG_CONFIG_MIN_VERSION=0.9.0
13896 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13897 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13898 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13900 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13901 echo "$as_me:$LINENO: result: yes" >&5
13902 echo "${ECHO_T}yes" >&6
13903 succeeded=yes
13905 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13906 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13907 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13908 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13909 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13911 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13912 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13913 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13914 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13915 echo "${ECHO_T}$GLIB_LIBS" >&6
13916 else
13917 GLIB_CFLAGS=""
13918 GLIB_LIBS=""
13919 ## If we have a custom action on failure, don't print errors, but
13920 ## do set a variable so people can do so.
13921 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13922 echo $GLIB_PKG_ERRORS
13927 else
13928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13933 if test $succeeded = yes; then
13935 else
13936 { { 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
13937 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;}
13938 { (exit 1); exit 1; }; }
13945 succeeded=no
13947 if test -z "$PKG_CONFIG"; then
13948 # Extract the first word of "pkg-config", so it can be a program name with args.
13949 set dummy pkg-config; ac_word=$2
13950 echo "$as_me:$LINENO: checking for $ac_word" >&5
13951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955 case $PKG_CONFIG in
13956 [\\/]* | ?:[\\/]*)
13957 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961 for as_dir in $PATH
13963 IFS=$as_save_IFS
13964 test -z "$as_dir" && as_dir=.
13965 for ac_exec_ext in '' $ac_executable_extensions; do
13966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13967 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13969 break 2
13971 done
13972 done
13974 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13976 esac
13978 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13980 if test -n "$PKG_CONFIG"; then
13981 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13982 echo "${ECHO_T}$PKG_CONFIG" >&6
13983 else
13984 echo "$as_me:$LINENO: result: no" >&5
13985 echo "${ECHO_T}no" >&6
13990 if test "$PKG_CONFIG" = "no" ; then
13991 echo "*** The pkg-config script could not be found. Make sure it is"
13992 echo "*** in your path, or set the PKG_CONFIG environment variable"
13993 echo "*** to the full path to pkg-config."
13994 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13995 else
13996 PKG_CONFIG_MIN_VERSION=0.9.0
13997 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13998 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13999 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14001 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14002 echo "$as_me:$LINENO: result: yes" >&5
14003 echo "${ECHO_T}yes" >&6
14004 succeeded=yes
14006 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14007 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14008 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14009 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14010 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14012 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14013 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14014 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14015 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14016 echo "${ECHO_T}$LIBART_LIBS" >&6
14017 else
14018 LIBART_CFLAGS=""
14019 LIBART_LIBS=""
14020 ## If we have a custom action on failure, don't print errors, but
14021 ## do set a variable so people can do so.
14022 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14023 echo $LIBART_PKG_ERRORS
14028 else
14029 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14030 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14034 if test $succeeded = yes; then
14036 else
14037 { { 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
14038 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;}
14039 { (exit 1); exit 1; }; }
14045 # We require the XTest Extension to support java.awt.Robot.
14046 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14047 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14048 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051 ac_check_lib_save_LIBS=$LIBS
14052 LIBS="-lXtst ${X_LIBS} $LIBS"
14053 if test x$gcc_no_link = xyes; then
14054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14056 { (exit 1); exit 1; }; }
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h. */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14065 /* Override any gcc2 internal prototype to avoid an error. */
14066 #ifdef __cplusplus
14067 extern "C"
14068 #endif
14069 /* We use char because int might match the return type of a gcc2
14070 builtin and then its argument prototype would still apply. */
14071 char XTestQueryExtension ();
14073 main ()
14075 XTestQueryExtension ();
14077 return 0;
14079 _ACEOF
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082 (eval $ac_link) 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -z "$ac_c_werror_flag"
14090 || test ! -s conftest.err'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; } &&
14096 { ac_try='test -s conftest$ac_exeext'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 ac_cv_lib_Xtst_XTestQueryExtension=yes
14103 else
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 ac_cv_lib_Xtst_XTestQueryExtension=no
14109 rm -f conftest.err conftest.$ac_objext \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14113 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14114 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14115 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14116 true
14117 else
14118 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14119 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14120 { (exit 1); exit 1; }; }
14125 # On Solaris, and maybe other architectures, the Boehm collector
14126 # requires -ldl.
14127 if test "$GC" = boehm; then
14128 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14129 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14130 if test "${ac_cv_lib_dl_main+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 ac_check_lib_save_LIBS=$LIBS
14134 LIBS="-ldl $LIBS"
14135 if test x$gcc_no_link = xyes; then
14136 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14138 { (exit 1); exit 1; }; }
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14149 main ()
14151 main ();
14153 return 0;
14155 _ACEOF
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158 (eval $ac_link) 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest$ac_exeext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_cv_lib_dl_main=yes
14179 else
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 ac_cv_lib_dl_main=no
14185 rm -f conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14187 LIBS=$ac_check_lib_save_LIBS
14189 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14190 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14191 if test $ac_cv_lib_dl_main = yes; then
14192 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14198 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14199 case $build in
14200 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14201 *) CLASSPATH_SEPARATOR=':' ;;
14202 esac
14205 # We must search the source tree for java.lang, since we still don't
14206 # have libgcj.jar nor java/lang/*.class
14207 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14208 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14210 # Since some classes depend on this one, we need its source available
14211 # before we can do any GCJ compilation test :-(
14212 if test ! -f gnu/classpath/Configuration.java; then
14213 test -d gnu || mkdir gnu
14214 test -d gnu/classpath || mkdir gnu/classpath
14215 # Note that it is not crucial that all the values here be correct.
14216 sed -e "s,@prefix@,$prefix," \
14217 -e "s,@VERSION@,$VERSION," \
14218 -e "s,@LIBDEBUG@,false," \
14219 -e "s,@INIT_LOAD_LIBRARY@,false," \
14220 -e "s,@@,$LIBGCJDEBUG," \
14221 -e "s,@default_toolkit@,$TOOLKIT," \
14222 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14223 -e "s,@GTK_CAIRO_ENABLED@,false," \
14224 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14225 > gnu/classpath/Configuration.java
14226 # We do not want to redirect the output of the grep below to /dev/null,
14227 # but we add /dev/null to the input list so that grep will print the
14228 # filename of Configuration.java in case it finds any matches.
14229 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14230 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14231 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14232 { (exit 1); exit 1; }; }
14236 if test -n "$ac_tool_prefix"; then
14237 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14238 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14239 echo "$as_me:$LINENO: checking for $ac_word" >&5
14240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14241 if test "${ac_cv_prog_GCJ+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244 if test -n "$GCJ"; then
14245 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14246 else
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
14252 for ac_exec_ext in '' $ac_executable_extensions; do
14253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14254 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14256 break 2
14258 done
14259 done
14263 GCJ=$ac_cv_prog_GCJ
14264 if test -n "$GCJ"; then
14265 echo "$as_me:$LINENO: result: $GCJ" >&5
14266 echo "${ECHO_T}$GCJ" >&6
14267 else
14268 echo "$as_me:$LINENO: result: no" >&5
14269 echo "${ECHO_T}no" >&6
14273 if test -z "$ac_cv_prog_GCJ"; then
14274 ac_ct_GCJ=$GCJ
14275 # Extract the first word of "gcj", so it can be a program name with args.
14276 set dummy gcj; ac_word=$2
14277 echo "$as_me:$LINENO: checking for $ac_word" >&5
14278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14279 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282 if test -n "$ac_ct_GCJ"; then
14283 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14284 else
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14288 IFS=$as_save_IFS
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
14291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14292 ac_cv_prog_ac_ct_GCJ="gcj"
14293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14294 break 2
14296 done
14297 done
14299 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14302 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14303 if test -n "$ac_ct_GCJ"; then
14304 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14305 echo "${ECHO_T}$ac_ct_GCJ" >&6
14306 else
14307 echo "$as_me:$LINENO: result: no" >&5
14308 echo "${ECHO_T}no" >&6
14311 GCJ=$ac_ct_GCJ
14312 else
14313 GCJ="$ac_cv_prog_GCJ"
14316 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14321 # Now remove it.
14322 rm -f gnu/classpath/Configuration.java
14324 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14326 echo "$as_me:$LINENO: checking for void *" >&5
14327 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14328 if test "${ac_cv_type_void_p+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331 cat >conftest.$ac_ext <<_ACEOF
14332 /* confdefs.h. */
14333 _ACEOF
14334 cat confdefs.h >>conftest.$ac_ext
14335 cat >>conftest.$ac_ext <<_ACEOF
14336 /* end confdefs.h. */
14337 $ac_includes_default
14339 main ()
14341 if ((void * *) 0)
14342 return 0;
14343 if (sizeof (void *))
14344 return 0;
14346 return 0;
14348 _ACEOF
14349 rm -f conftest.$ac_objext
14350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14351 (eval $ac_compile) 2>conftest.er1
14352 ac_status=$?
14353 grep -v '^ *+' conftest.er1 >conftest.err
14354 rm -f conftest.er1
14355 cat conftest.err >&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } &&
14358 { ac_try='test -z "$ac_c_werror_flag"
14359 || test ! -s conftest.err'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; } &&
14365 { ac_try='test -s conftest.$ac_objext'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_cv_type_void_p=yes
14372 else
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_cv_type_void_p=no
14378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14380 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14381 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14383 echo "$as_me:$LINENO: checking size of void *" >&5
14384 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14385 if test "${ac_cv_sizeof_void_p+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388 if test "$ac_cv_type_void_p" = yes; then
14389 # The cast to unsigned long works around a bug in the HP C Compiler
14390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14392 # This bug is HP SR number 8606223364.
14393 if test "$cross_compiling" = yes; then
14394 # Depending upon the size, compute the lo and hi bounds.
14395 cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h. */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 $ac_includes_default
14403 main ()
14405 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14406 test_array [0] = 0
14409 return 0;
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414 (eval $ac_compile) 2>conftest.er1
14415 ac_status=$?
14416 grep -v '^ *+' conftest.er1 >conftest.err
14417 rm -f conftest.er1
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -z "$ac_c_werror_flag"
14422 || test ! -s conftest.err'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try='test -s conftest.$ac_objext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 ac_lo=0 ac_mid=0
14435 while :; do
14436 cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h. */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 $ac_includes_default
14444 main ()
14446 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14447 test_array [0] = 0
14450 return 0;
14452 _ACEOF
14453 rm -f conftest.$ac_objext
14454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14455 (eval $ac_compile) 2>conftest.er1
14456 ac_status=$?
14457 grep -v '^ *+' conftest.er1 >conftest.err
14458 rm -f conftest.er1
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -z "$ac_c_werror_flag"
14463 || test ! -s conftest.err'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; } &&
14469 { ac_try='test -s conftest.$ac_objext'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14475 ac_hi=$ac_mid; break
14476 else
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 ac_lo=`expr $ac_mid + 1`
14481 if test $ac_lo -le $ac_mid; then
14482 ac_lo= ac_hi=
14483 break
14485 ac_mid=`expr 2 '*' $ac_mid + 1`
14487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14488 done
14489 else
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h. */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 $ac_includes_default
14501 main ()
14503 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14504 test_array [0] = 0
14507 return 0;
14509 _ACEOF
14510 rm -f conftest.$ac_objext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512 (eval $ac_compile) 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag"
14520 || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_hi=-1 ac_mid=-1
14533 while :; do
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h. */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14540 $ac_includes_default
14542 main ()
14544 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14545 test_array [0] = 0
14548 return 0;
14550 _ACEOF
14551 rm -f conftest.$ac_objext
14552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14553 (eval $ac_compile) 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag"
14561 || test ! -s conftest.err'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; } &&
14567 { ac_try='test -s conftest.$ac_objext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_lo=$ac_mid; break
14574 else
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 ac_hi=`expr '(' $ac_mid ')' - 1`
14579 if test $ac_mid -le $ac_hi; then
14580 ac_lo= ac_hi=
14581 break
14583 ac_mid=`expr 2 '*' $ac_mid`
14585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14586 done
14587 else
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14591 ac_lo= ac_hi=
14593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14596 # Binary search between lo and hi bounds.
14597 while test "x$ac_lo" != "x$ac_hi"; do
14598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14599 cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h. */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605 $ac_includes_default
14607 main ()
14609 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14610 test_array [0] = 0
14613 return 0;
14615 _ACEOF
14616 rm -f conftest.$ac_objext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618 (eval $ac_compile) 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -z "$ac_c_werror_flag"
14626 || test ! -s conftest.err'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_hi=$ac_mid
14639 else
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_lo=`expr '(' $ac_mid ')' + 1`
14645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14646 done
14647 case $ac_lo in
14648 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14649 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14650 See \`config.log' for more details." >&5
14651 echo "$as_me: error: cannot compute sizeof (void *), 77
14652 See \`config.log' for more details." >&2;}
14653 { (exit 1); exit 1; }; } ;;
14654 esac
14655 else
14656 if test "$cross_compiling" = yes; then
14657 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14658 See \`config.log' for more details." >&5
14659 echo "$as_me: error: cannot run test program while cross compiling
14660 See \`config.log' for more details." >&2;}
14661 { (exit 1); exit 1; }; }
14662 else
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 $ac_includes_default
14670 long longval () { return (long) (sizeof (void *)); }
14671 unsigned long ulongval () { return (long) (sizeof (void *)); }
14672 #include <stdio.h>
14673 #include <stdlib.h>
14675 main ()
14678 FILE *f = fopen ("conftest.val", "w");
14679 if (! f)
14680 exit (1);
14681 if (((long) (sizeof (void *))) < 0)
14683 long i = longval ();
14684 if (i != ((long) (sizeof (void *))))
14685 exit (1);
14686 fprintf (f, "%ld\n", i);
14688 else
14690 unsigned long i = ulongval ();
14691 if (i != ((long) (sizeof (void *))))
14692 exit (1);
14693 fprintf (f, "%lu\n", i);
14695 exit (ferror (f) || fclose (f) != 0);
14698 return 0;
14700 _ACEOF
14701 rm -f conftest$ac_exeext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14703 (eval $ac_link) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_sizeof_void_p=`cat conftest.val`
14713 else
14714 echo "$as_me: program exited with status $ac_status" >&5
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ( exit $ac_status )
14719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14720 See \`config.log' for more details." >&5
14721 echo "$as_me: error: cannot compute sizeof (void *), 77
14722 See \`config.log' for more details." >&2;}
14723 { (exit 1); exit 1; }; }
14725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14728 rm -f conftest.val
14729 else
14730 ac_cv_sizeof_void_p=0
14733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14734 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14735 cat >>confdefs.h <<_ACEOF
14736 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14737 _ACEOF
14741 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14742 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14743 if test "${ac_cv_c_bigendian+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 else
14746 # See if sys/param.h defines the BYTE_ORDER macro.
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h. */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 #include <sys/types.h>
14754 #include <sys/param.h>
14757 main ()
14759 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14760 bogus endian macros
14761 #endif
14764 return 0;
14766 _ACEOF
14767 rm -f conftest.$ac_objext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769 (eval $ac_compile) 2>conftest.er1
14770 ac_status=$?
14771 grep -v '^ *+' conftest.er1 >conftest.err
14772 rm -f conftest.er1
14773 cat conftest.err >&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try='test -z "$ac_c_werror_flag"
14777 || test ! -s conftest.err'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try='test -s conftest.$ac_objext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 # It does; now see whether it defined to BIG_ENDIAN or not.
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h. */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 #include <sys/types.h>
14797 #include <sys/param.h>
14800 main ()
14802 #if BYTE_ORDER != BIG_ENDIAN
14803 not big endian
14804 #endif
14807 return 0;
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812 (eval $ac_compile) 2>conftest.er1
14813 ac_status=$?
14814 grep -v '^ *+' conftest.er1 >conftest.err
14815 rm -f conftest.er1
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -z "$ac_c_werror_flag"
14820 || test ! -s conftest.err'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest.$ac_objext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_cv_c_bigendian=yes
14833 else
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 ac_cv_c_bigendian=no
14839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14840 else
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 # It does not; compile a test program.
14845 if test "$cross_compiling" = yes; then
14846 # try to guess the endianness by grepping values into an object file
14847 ac_cv_c_bigendian=unknown
14848 cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h. */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14854 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14855 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14856 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14857 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14858 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14859 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14861 main ()
14863 _ascii (); _ebcdic ();
14865 return 0;
14867 _ACEOF
14868 rm -f conftest.$ac_objext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14870 (eval $ac_compile) 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag"
14878 || test ! -s conftest.err'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest.$ac_objext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14891 ac_cv_c_bigendian=yes
14893 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14894 if test "$ac_cv_c_bigendian" = unknown; then
14895 ac_cv_c_bigendian=no
14896 else
14897 # finding both strings is unlikely to happen, but who knows?
14898 ac_cv_c_bigendian=unknown
14901 else
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14907 else
14908 cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h. */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14915 main ()
14917 /* Are we little or big endian? From Harbison&Steele. */
14918 union
14920 long l;
14921 char c[sizeof (long)];
14922 } u;
14923 u.l = 1;
14924 exit (u.c[sizeof (long) - 1] == 1);
14926 _ACEOF
14927 rm -f conftest$ac_exeext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14929 (eval $ac_link) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 ac_cv_c_bigendian=no
14939 else
14940 echo "$as_me: program exited with status $ac_status" >&5
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 ( exit $ac_status )
14945 ac_cv_c_bigendian=yes
14947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14952 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14953 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14954 case $ac_cv_c_bigendian in
14955 yes)
14957 cat >>confdefs.h <<\_ACEOF
14958 #define WORDS_BIGENDIAN 1
14959 _ACEOF
14964 { { echo "$as_me:$LINENO: error: unknown endianness
14965 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14966 echo "$as_me: error: unknown endianness
14967 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14968 { (exit 1); exit 1; }; } ;;
14969 esac
14972 ZLIBS=
14973 SYS_ZLIBS=
14974 ZINCS=
14976 if test -z "$ZLIBSPEC"; then
14977 # Use zlib from the GCC tree.
14978 ZINCS='-I$(top_srcdir)/../zlib'
14979 ZLIBS=../zlib/libzgcj_convenience.la
14980 else
14981 # System's zlib.
14982 SYS_ZLIBS="$ZLIBSPEC"
14995 if test "$NATIVE" = yes; then
14996 NATIVE_TRUE=
14997 NATIVE_FALSE='#'
14998 else
14999 NATIVE_TRUE='#'
15000 NATIVE_FALSE=
15005 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15006 NEEDS_DATA_START_TRUE=
15007 NEEDS_DATA_START_FALSE='#'
15008 else
15009 NEEDS_DATA_START_TRUE='#'
15010 NEEDS_DATA_START_FALSE=
15015 # Process the option "--enable-version-specific-runtime-libs"
15016 # Calculate toolexeclibdir
15017 case ${version_specific_libs} in
15018 yes)
15019 # Need the gcc compiler version to know where to install libraries
15020 # and header files if --enable-version-specific-runtime-libs option
15021 # is selected.
15022 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15023 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15024 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15025 toolexeclibdir=$toolexecmainlibdir
15028 if test -n "$with_cross_host" &&
15029 test x"$with_cross_host" != x"no"; then
15030 # Install a library built with a cross compiler in tooldir, not libdir.
15031 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15032 toolexecmainlibdir='$(toolexecdir)/lib'
15033 else
15034 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15035 toolexecmainlibdir='$(libdir)'
15037 multi_os_directory=`$CC -print-multi-os-directory`
15038 case $multi_os_directory in
15039 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15040 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15041 esac
15043 esac
15048 # Determine where the standard .db file and GNU Classpath JNI
15049 # libraries are found.
15050 multi_os_directory=`$CC -print-multi-os-directory`
15051 case $multi_os_directory in
15053 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15054 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/gcj-`cat $srcdir/../gcc/BASE-VER`"
15057 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15058 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/$multi_os_directory/gcj-`cat $srcdir/../gcc/BASE-VER`"
15060 esac
15063 # Determine gcj version number.
15064 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15065 GCJVERSION=$gcjversion
15068 cat >>confdefs.h <<_ACEOF
15069 #define GCJVERSION "$GCJVERSION"
15070 _ACEOF
15074 cat >>confdefs.h <<\_ACEOF
15075 #define JV_VERSION "1.4.2"
15076 _ACEOF
15079 cat >>confdefs.h <<\_ACEOF
15080 #define JV_API_VERSION "1.4"
15081 _ACEOF
15085 case "${with_gxx_include_dir}" in
15086 yes)
15087 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15088 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15089 { (exit 1); exit 1; }; }
15091 no | "")
15092 case "${enable_version_specific_runtime_libs}" in
15093 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15095 libstdcxx_incdir='c++/$(gcc_version)'
15096 gxx_include_dir='include/$(libstdcxx_incdir)'
15097 if test -n "$with_cross_host" &&
15098 test x"$with_cross_host" != x"no"; then
15099 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15100 else
15101 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15102 fi;;
15103 esac ;;
15104 *) gxx_include_dir=${with_gxx_include_dir} ;;
15105 esac
15110 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15111 # On that system, sys/ioctl.h will not include sys/filio.h unless
15112 # BSD_COMP is defined; just including sys/filio.h is simpler.
15113 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15114 # for now. If you change this, you also must update natFile.cc.
15137 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15138 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15139 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15140 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15141 dirent.h sys/rw_lock.h ifaddrs.h
15143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15145 echo "$as_me:$LINENO: checking for $ac_header" >&5
15146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15152 else
15153 # Is the header compilable?
15154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h. */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 $ac_includes_default
15163 #include <$ac_header>
15164 _ACEOF
15165 rm -f conftest.$ac_objext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15167 (eval $ac_compile) 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag"
15175 || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_header_compiler=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_header_compiler=no
15194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15196 echo "${ECHO_T}$ac_header_compiler" >&6
15198 # Is the header present?
15199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 #include <$ac_header>
15208 _ACEOF
15209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } >/dev/null; then
15217 if test -s conftest.err; then
15218 ac_cpp_err=$ac_c_preproc_warn_flag
15219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15220 else
15221 ac_cpp_err=
15223 else
15224 ac_cpp_err=yes
15226 if test -z "$ac_cpp_err"; then
15227 ac_header_preproc=yes
15228 else
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 ac_header_preproc=no
15234 rm -f conftest.err conftest.$ac_ext
15235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236 echo "${ECHO_T}$ac_header_preproc" >&6
15238 # So? What about this header?
15239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15240 yes:no: )
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15245 ac_header_preproc=yes
15247 no:yes:* )
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15261 cat <<\_ASBOX
15262 ## ---------------------------------- ##
15263 ## Report this to the libjava lists. ##
15264 ## ---------------------------------- ##
15265 _ASBOX
15267 sed "s/^/$as_me: WARNING: /" >&2
15269 esac
15270 echo "$as_me:$LINENO: checking for $ac_header" >&5
15271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 else
15275 eval "$as_ac_Header=\$ac_header_preproc"
15277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15282 cat >>confdefs.h <<_ACEOF
15283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15284 _ACEOF
15288 done
15291 for ac_header in inttypes.h
15293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15295 echo "$as_me:$LINENO: checking for $ac_header" >&5
15296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15302 else
15303 # Is the header compilable?
15304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15306 cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h. */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 $ac_includes_default
15313 #include <$ac_header>
15314 _ACEOF
15315 rm -f conftest.$ac_objext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317 (eval $ac_compile) 2>conftest.er1
15318 ac_status=$?
15319 grep -v '^ *+' conftest.er1 >conftest.err
15320 rm -f conftest.er1
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } &&
15324 { ac_try='test -z "$ac_c_werror_flag"
15325 || test ! -s conftest.err'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; } &&
15331 { ac_try='test -s conftest.$ac_objext'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15337 ac_header_compiler=yes
15338 else
15339 echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 ac_header_compiler=no
15344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15346 echo "${ECHO_T}$ac_header_compiler" >&6
15348 # Is the header present?
15349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15351 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 #include <$ac_header>
15358 _ACEOF
15359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } >/dev/null; then
15367 if test -s conftest.err; then
15368 ac_cpp_err=$ac_c_preproc_warn_flag
15369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15370 else
15371 ac_cpp_err=
15373 else
15374 ac_cpp_err=yes
15376 if test -z "$ac_cpp_err"; then
15377 ac_header_preproc=yes
15378 else
15379 echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15382 ac_header_preproc=no
15384 rm -f conftest.err conftest.$ac_ext
15385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15386 echo "${ECHO_T}$ac_header_preproc" >&6
15388 # So? What about this header?
15389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15390 yes:no: )
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15395 ac_header_preproc=yes
15397 no:yes:* )
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15411 cat <<\_ASBOX
15412 ## ---------------------------------- ##
15413 ## Report this to the libjava lists. ##
15414 ## ---------------------------------- ##
15415 _ASBOX
15417 sed "s/^/$as_me: WARNING: /" >&2
15419 esac
15420 echo "$as_me:$LINENO: checking for $ac_header" >&5
15421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425 eval "$as_ac_Header=\$ac_header_preproc"
15427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15434 _ACEOF
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE_INTTYPES_H 1
15439 _ACEOF
15442 cat >>confdefs.h <<\_ACEOF
15443 #define JV_HAVE_INTTYPES_H 1
15444 _ACEOF
15449 done
15451 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15452 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15453 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456 cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h. */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 #include <sys/types.h>
15463 #include <sys/wait.h>
15464 #ifndef WEXITSTATUS
15465 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15466 #endif
15467 #ifndef WIFEXITED
15468 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15469 #endif
15472 main ()
15474 int s;
15475 wait (&s);
15476 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15478 return 0;
15480 _ACEOF
15481 rm -f conftest.$ac_objext
15482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15483 (eval $ac_compile) 2>conftest.er1
15484 ac_status=$?
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -z "$ac_c_werror_flag"
15491 || test ! -s conftest.err'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; } &&
15497 { ac_try='test -s conftest.$ac_objext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_header_sys_wait_h=yes
15504 else
15505 echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15508 ac_cv_header_sys_wait_h=no
15510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15513 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15514 if test $ac_cv_header_sys_wait_h = yes; then
15516 cat >>confdefs.h <<\_ACEOF
15517 #define HAVE_SYS_WAIT_H 1
15518 _ACEOF
15523 echo "$as_me:$LINENO: checking for ssize_t" >&5
15524 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15525 if test "${ac_cv_type_ssize_t+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528 cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h. */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15534 $ac_includes_default
15536 main ()
15538 if ((ssize_t *) 0)
15539 return 0;
15540 if (sizeof (ssize_t))
15541 return 0;
15543 return 0;
15545 _ACEOF
15546 rm -f conftest.$ac_objext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15548 (eval $ac_compile) 2>conftest.er1
15549 ac_status=$?
15550 grep -v '^ *+' conftest.er1 >conftest.err
15551 rm -f conftest.er1
15552 cat conftest.err >&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } &&
15555 { ac_try='test -z "$ac_c_werror_flag"
15556 || test ! -s conftest.err'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; } &&
15562 { ac_try='test -s conftest.$ac_objext'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_cv_type_ssize_t=yes
15569 else
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_cv_type_ssize_t=no
15575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15577 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15578 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15579 if test $ac_cv_type_ssize_t = yes; then
15581 else
15583 cat >>confdefs.h <<_ACEOF
15584 #define ssize_t int
15585 _ACEOF
15590 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15591 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h. */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <sys/types.h>
15599 #if STDC_HEADERS
15600 #include <stdlib.h>
15601 #include <stddef.h>
15602 #endif
15603 #if HAVE_NETINET_IN_H
15604 #include <netinet/in.h>
15605 #endif
15607 main ()
15609 in_addr_t foo;
15611 return 0;
15613 _ACEOF
15614 rm -f conftest.$ac_objext
15615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15616 (eval $ac_compile) 2>conftest.er1
15617 ac_status=$?
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -z "$ac_c_werror_flag"
15624 || test ! -s conftest.err'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest.$ac_objext'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15637 cat >>confdefs.h <<\_ACEOF
15638 #define HAVE_IN_ADDR_T 1
15639 _ACEOF
15641 echo "$as_me:$LINENO: result: yes" >&5
15642 echo "${ECHO_T}yes" >&6
15643 else
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 echo "$as_me:$LINENO: result: no" >&5
15648 echo "${ECHO_T}no" >&6
15650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15652 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15653 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15654 cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h. */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 #include <netinet/in.h>
15662 main ()
15664 struct ip_mreq mreq;
15666 return 0;
15668 _ACEOF
15669 rm -f conftest.$ac_objext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671 (eval $ac_compile) 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag"
15679 || test ! -s conftest.err'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15692 cat >>confdefs.h <<\_ACEOF
15693 #define HAVE_STRUCT_IP_MREQ 1
15694 _ACEOF
15696 echo "$as_me:$LINENO: result: yes" >&5
15697 echo "${ECHO_T}yes" >&6
15698 else
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 echo "$as_me:$LINENO: result: no" >&5
15703 echo "${ECHO_T}no" >&6
15705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15707 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15708 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h. */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 #include <netinet/in.h>
15717 main ()
15719 struct ipv6_mreq mreq6;
15721 return 0;
15723 _ACEOF
15724 rm -f conftest.$ac_objext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15726 (eval $ac_compile) 2>conftest.er1
15727 ac_status=$?
15728 grep -v '^ *+' conftest.er1 >conftest.err
15729 rm -f conftest.er1
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -z "$ac_c_werror_flag"
15734 || test ! -s conftest.err'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; } &&
15740 { ac_try='test -s conftest.$ac_objext'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15747 cat >>confdefs.h <<\_ACEOF
15748 #define HAVE_STRUCT_IPV6_MREQ 1
15749 _ACEOF
15751 echo "$as_me:$LINENO: result: yes" >&5
15752 echo "${ECHO_T}yes" >&6
15753 else
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 echo "$as_me:$LINENO: result: no" >&5
15758 echo "${ECHO_T}no" >&6
15760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15762 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15763 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15764 cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h. */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
15770 #include <netinet/in.h>
15772 main ()
15774 struct sockaddr_in6 addr6;
15776 return 0;
15778 _ACEOF
15779 rm -f conftest.$ac_objext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15781 (eval $ac_compile) 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
15788 { ac_try='test -z "$ac_c_werror_flag"
15789 || test ! -s conftest.err'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15802 cat >>confdefs.h <<\_ACEOF
15803 #define HAVE_INET6 1
15804 _ACEOF
15806 echo "$as_me:$LINENO: result: yes" >&5
15807 echo "${ECHO_T}yes" >&6
15808 else
15809 echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15812 echo "$as_me:$LINENO: result: no" >&5
15813 echo "${ECHO_T}no" >&6
15815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15817 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15818 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15819 cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h. */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 #define _POSIX_PII_SOCKET
15826 #include <sys/types.h>
15827 #include <sys/socket.h>
15829 main ()
15831 socklen_t x = 5;
15833 return 0;
15835 _ACEOF
15836 rm -f conftest.$ac_objext
15837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15838 (eval $ac_compile) 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag"
15846 || test ! -s conftest.err'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; } &&
15852 { ac_try='test -s conftest.$ac_objext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15859 cat >>confdefs.h <<\_ACEOF
15860 #define HAVE_SOCKLEN_T 1
15861 _ACEOF
15863 echo "$as_me:$LINENO: result: yes" >&5
15864 echo "${ECHO_T}yes" >&6
15865 else
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6
15872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15874 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15875 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 #include <time.h>
15884 main ()
15886 struct tm tim; tim.tm_gmtoff = 0;
15888 return 0;
15890 _ACEOF
15891 rm -f conftest.$ac_objext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15893 (eval $ac_compile) 2>conftest.er1
15894 ac_status=$?
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
15900 { ac_try='test -z "$ac_c_werror_flag"
15901 || test ! -s conftest.err'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; } &&
15907 { ac_try='test -s conftest.$ac_objext'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15914 cat >>confdefs.h <<\_ACEOF
15915 #define STRUCT_TM_HAS_GMTOFF 1
15916 _ACEOF
15918 echo "$as_me:$LINENO: result: yes" >&5
15919 echo "${ECHO_T}yes" >&6
15920 else
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 echo "$as_me:$LINENO: result: no" >&5
15925 echo "${ECHO_T}no" >&6
15926 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15927 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <time.h>
15936 main ()
15938 void i(){long z2 = 2*timezone;}
15940 return 0;
15942 _ACEOF
15943 rm -f conftest.$ac_objext
15944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15945 (eval $ac_compile) 2>conftest.er1
15946 ac_status=$?
15947 grep -v '^ *+' conftest.er1 >conftest.err
15948 rm -f conftest.er1
15949 cat conftest.err >&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } &&
15952 { ac_try='test -z "$ac_c_werror_flag"
15953 || test ! -s conftest.err'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; } &&
15959 { ac_try='test -s conftest.$ac_objext'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; }; then
15966 cat >>confdefs.h <<\_ACEOF
15967 #define HAVE_TIMEZONE 1
15968 _ACEOF
15970 echo "$as_me:$LINENO: result: yes" >&5
15971 echo "${ECHO_T}yes" >&6
15972 else
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 echo "$as_me:$LINENO: result: no" >&5
15977 echo "${ECHO_T}no" >&6
15978 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15979 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15980 cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h. */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986 #include <time.h>
15988 main ()
15990 long z2 = _timezone;
15992 return 0;
15994 _ACEOF
15995 rm -f conftest.$ac_objext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15997 (eval $ac_compile) 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag"
16005 || test ! -s conftest.err'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest.$ac_objext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16018 cat >>confdefs.h <<\_ACEOF
16019 #define HAVE_UNDERSCORE_TIMEZONE 1
16020 _ACEOF
16022 echo "$as_me:$LINENO: result: yes" >&5
16023 echo "${ECHO_T}yes" >&6
16024 else
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 echo "$as_me:$LINENO: result: no" >&5
16029 echo "${ECHO_T}no" >&6
16031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16037 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16038 # for constant arguments. Useless!
16039 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16040 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16041 if test "${ac_cv_working_alloca_h+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044 if test x$gcc_no_link = xyes; then
16045 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16046 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16047 { (exit 1); exit 1; }; }
16049 cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h. */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16055 #include <alloca.h>
16057 main ()
16059 char *p = (char *) alloca (2 * sizeof (int));
16061 return 0;
16063 _ACEOF
16064 rm -f conftest.$ac_objext conftest$ac_exeext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066 (eval $ac_link) 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
16073 { ac_try='test -z "$ac_c_werror_flag"
16074 || test ! -s conftest.err'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_working_alloca_h=yes
16087 else
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_cv_working_alloca_h=no
16093 rm -f conftest.err conftest.$ac_objext \
16094 conftest$ac_exeext conftest.$ac_ext
16096 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16097 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16098 if test $ac_cv_working_alloca_h = yes; then
16100 cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_ALLOCA_H 1
16102 _ACEOF
16106 echo "$as_me:$LINENO: checking for alloca" >&5
16107 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16108 if test "${ac_cv_func_alloca_works+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111 if test x$gcc_no_link = xyes; then
16112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16114 { (exit 1); exit 1; }; }
16116 cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h. */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16122 #ifdef __GNUC__
16123 # define alloca __builtin_alloca
16124 #else
16125 # ifdef _MSC_VER
16126 # include <malloc.h>
16127 # define alloca _alloca
16128 # else
16129 # if HAVE_ALLOCA_H
16130 # include <alloca.h>
16131 # else
16132 # ifdef _AIX
16133 #pragma alloca
16134 # else
16135 # ifndef alloca /* predefined by HP cc +Olibcalls */
16136 char *alloca ();
16137 # endif
16138 # endif
16139 # endif
16140 # endif
16141 #endif
16144 main ()
16146 char *p = (char *) alloca (1);
16148 return 0;
16150 _ACEOF
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16153 (eval $ac_link) 2>conftest.er1
16154 ac_status=$?
16155 grep -v '^ *+' conftest.er1 >conftest.err
16156 rm -f conftest.er1
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -z "$ac_c_werror_flag"
16161 || test ! -s conftest.err'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; } &&
16167 { ac_try='test -s conftest$ac_exeext'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 ac_cv_func_alloca_works=yes
16174 else
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 ac_cv_func_alloca_works=no
16180 rm -f conftest.err conftest.$ac_objext \
16181 conftest$ac_exeext conftest.$ac_ext
16183 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16184 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16186 if test $ac_cv_func_alloca_works = yes; then
16188 cat >>confdefs.h <<\_ACEOF
16189 #define HAVE_ALLOCA 1
16190 _ACEOF
16192 else
16193 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16194 # that cause trouble. Some versions do not even contain alloca or
16195 # contain a buggy version. If you still want to use their alloca,
16196 # use ar to extract alloca.o from them instead of compiling alloca.c.
16198 ALLOCA=alloca.$ac_objext
16200 cat >>confdefs.h <<\_ACEOF
16201 #define C_ALLOCA 1
16202 _ACEOF
16205 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16206 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16207 if test "${ac_cv_os_cray+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210 cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h. */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 #if defined(CRAY) && ! defined(CRAY2)
16217 webecray
16218 #else
16219 wenotbecray
16220 #endif
16222 _ACEOF
16223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16224 $EGREP "webecray" >/dev/null 2>&1; then
16225 ac_cv_os_cray=yes
16226 else
16227 ac_cv_os_cray=no
16229 rm -f conftest*
16232 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16233 echo "${ECHO_T}$ac_cv_os_cray" >&6
16234 if test $ac_cv_os_cray = yes; then
16235 for ac_func in _getb67 GETB67 getb67; do
16236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16237 echo "$as_me:$LINENO: checking for $ac_func" >&5
16238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16239 if eval "test \"\${$as_ac_var+set}\" = set"; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242 if test x$gcc_no_link = xyes; then
16243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16245 { (exit 1); exit 1; }; }
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h. */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16255 #define $ac_func innocuous_$ac_func
16257 /* System header to define __stub macros and hopefully few prototypes,
16258 which can conflict with char $ac_func (); below.
16259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16260 <limits.h> exists even on freestanding compilers. */
16262 #ifdef __STDC__
16263 # include <limits.h>
16264 #else
16265 # include <assert.h>
16266 #endif
16268 #undef $ac_func
16270 /* Override any gcc2 internal prototype to avoid an error. */
16271 #ifdef __cplusplus
16272 extern "C"
16274 #endif
16275 /* We use char because int might match the return type of a gcc2
16276 builtin and then its argument prototype would still apply. */
16277 char $ac_func ();
16278 /* The GNU C library defines this for functions which it implements
16279 to always fail with ENOSYS. Some functions are actually named
16280 something starting with __ and the normal name is an alias. */
16281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16282 choke me
16283 #else
16284 char (*f) () = $ac_func;
16285 #endif
16286 #ifdef __cplusplus
16288 #endif
16291 main ()
16293 return f != $ac_func;
16295 return 0;
16297 _ACEOF
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16300 (eval $ac_link) 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag"
16308 || test ! -s conftest.err'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest$ac_exeext'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 eval "$as_ac_var=yes"
16321 else
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 eval "$as_ac_var=no"
16327 rm -f conftest.err conftest.$ac_objext \
16328 conftest$ac_exeext conftest.$ac_ext
16330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16332 if test `eval echo '${'$as_ac_var'}'` = yes; then
16334 cat >>confdefs.h <<_ACEOF
16335 #define CRAY_STACKSEG_END $ac_func
16336 _ACEOF
16338 break
16341 done
16344 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16345 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16346 if test "${ac_cv_c_stack_direction+set}" = set; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16348 else
16349 if test "$cross_compiling" = yes; then
16350 ac_cv_c_stack_direction=0
16351 else
16352 cat >conftest.$ac_ext <<_ACEOF
16353 /* confdefs.h. */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16359 find_stack_direction ()
16361 static char *addr = 0;
16362 auto char dummy;
16363 if (addr == 0)
16365 addr = &dummy;
16366 return find_stack_direction ();
16368 else
16369 return (&dummy > addr) ? 1 : -1;
16373 main ()
16375 exit (find_stack_direction () < 0);
16377 _ACEOF
16378 rm -f conftest$ac_exeext
16379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16380 (eval $ac_link) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_cv_c_stack_direction=1
16390 else
16391 echo "$as_me: program exited with status $ac_status" >&5
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16395 ( exit $ac_status )
16396 ac_cv_c_stack_direction=-1
16398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16401 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16402 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16404 cat >>confdefs.h <<_ACEOF
16405 #define STACK_DIRECTION $ac_cv_c_stack_direction
16406 _ACEOF
16412 for ac_prog in perl
16414 # Extract the first word of "$ac_prog", so it can be a program name with args.
16415 set dummy $ac_prog; ac_word=$2
16416 echo "$as_me:$LINENO: checking for $ac_word" >&5
16417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16418 if test "${ac_cv_prog_PERL+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16420 else
16421 if test -n "$PERL"; then
16422 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16423 else
16424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16425 for as_dir in $PATH
16427 IFS=$as_save_IFS
16428 test -z "$as_dir" && as_dir=.
16429 for ac_exec_ext in '' $ac_executable_extensions; do
16430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16431 ac_cv_prog_PERL="$ac_prog"
16432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16433 break 2
16435 done
16436 done
16440 PERL=$ac_cv_prog_PERL
16441 if test -n "$PERL"; then
16442 echo "$as_me:$LINENO: result: $PERL" >&5
16443 echo "${ECHO_T}$PERL" >&6
16444 else
16445 echo "$as_me:$LINENO: result: no" >&5
16446 echo "${ECHO_T}no" >&6
16449 test -n "$PERL" && break
16450 done
16451 test -n "$PERL" || PERL="false"
16454 SYSDEP_SOURCES=
16455 SIGNAL_HANDLER_AUX=
16457 case "${host}" in
16458 i?86-*-linux*)
16459 SIGNAL_HANDLER=include/i386-signal.h
16461 sparc*-sun-solaris*)
16462 SIGNAL_HANDLER=include/sparc-signal.h
16464 # ia64-*)
16465 # SYSDEP_SOURCES=sysdep/ia64.c
16466 # test -d sysdep || mkdir sysdep
16467 # ;;
16468 hppa*-*-linux*)
16469 SIGNAL_HANDLER=include/pa-signal.h
16471 hppa*-hp-hpux*)
16472 SIGNAL_HANDLER=include/hppa-signal.h
16474 ia64-*-linux*)
16475 SIGNAL_HANDLER=include/dwarf2-signal.h
16477 powerpc*-*-linux*)
16478 SIGNAL_HANDLER=include/powerpc-signal.h
16480 alpha*-*-linux*)
16481 SIGNAL_HANDLER=include/dwarf2-signal.h
16483 s390*-*-linux*)
16484 SIGNAL_HANDLER=include/s390-signal.h
16486 x86_64*-*-linux*)
16487 SIGNAL_HANDLER=include/x86_64-signal.h
16488 SIGNAL_HANDLER_AUX=include/i386-signal.h
16490 sparc*-*-linux*)
16491 SIGNAL_HANDLER=include/dwarf2-signal.h
16493 sh*-*-linux*)
16494 SIGNAL_HANDLER=include/sh-signal.h
16496 *mingw*)
16497 SIGNAL_HANDLER=include/win32-signal.h
16499 mips*-*-linux*)
16500 SIGNAL_HANDLER=include/mips-signal.h
16502 *-*-darwin*)
16503 SIGNAL_HANDLER=include/darwin-signal.h
16506 SIGNAL_HANDLER=include/default-signal.h
16508 esac
16510 # If we're using sjlj exceptions, forget what we just learned.
16511 if test "$enable_sjlj_exceptions" = yes; then
16512 SIGNAL_HANDLER=include/default-signal.h
16513 SIGNAL_HANDLER_AUX=
16518 if test -z "$SIGNAL_HANDLER_AUX"; then
16519 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16522 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16525 if test "${multilib}" = "yes"; then
16526 multilib_arg="--enable-multilib"
16527 else
16528 multilib_arg=
16531 # See if we support thread-local storage.
16533 # Check whether --enable-tls or --disable-tls was given.
16534 if test "${enable_tls+set}" = set; then
16535 enableval="$enable_tls"
16537 case "$enableval" in
16538 yes|no) ;;
16539 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16540 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16541 { (exit 1); exit 1; }; } ;;
16542 esac
16544 else
16545 enable_tls=yes
16548 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16549 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16550 if test "${have_tls+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16554 if test "$cross_compiling" = yes; then
16555 cat >conftest.$ac_ext <<_ACEOF
16556 __thread int foo;
16557 _ACEOF
16558 rm -f conftest.$ac_objext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16560 (eval $ac_compile) 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try='test -z "$ac_c_werror_flag"
16568 || test ! -s conftest.err'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 have_tls=yes
16581 else
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 have_tls=no
16587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16589 else
16590 cat >conftest.$ac_ext <<_ACEOF
16591 __thread int a; int b; int main() { return a = b; }
16592 _ACEOF
16593 rm -f conftest$ac_exeext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16595 (eval $ac_link) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 save_LDFLAGS="$LDFLAGS"
16605 LDFLAGS="-static $LDFLAGS"
16606 if test "$cross_compiling" = yes; then
16607 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16608 See \`config.log' for more details." >&5
16609 echo "$as_me: error: cannot run test program while cross compiling
16610 See \`config.log' for more details." >&2;}
16611 { (exit 1); exit 1; }; }
16612 else
16613 cat >conftest.$ac_ext <<_ACEOF
16614 __thread int a; int b; int main() { return a = b; }
16615 _ACEOF
16616 rm -f conftest$ac_exeext
16617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16618 (eval $ac_link) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16627 have_tls=yes
16628 else
16629 echo "$as_me: program exited with status $ac_status" >&5
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 ( exit $ac_status )
16634 have_tls=no
16636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16638 LDFLAGS="$save_LDFLAGS"
16639 else
16640 echo "$as_me: program exited with status $ac_status" >&5
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ( exit $ac_status )
16645 have_tls=no
16647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16650 echo "$as_me:$LINENO: result: $have_tls" >&5
16651 echo "${ECHO_T}$have_tls" >&6
16652 if test "$enable_tls $have_tls" = "yes yes"; then
16654 cat >>confdefs.h <<\_ACEOF
16655 #define HAVE_TLS 1
16656 _ACEOF
16660 # Check if linker supports static linking on a per library basis
16661 LD_START_STATIC_SPEC=
16662 LD_FINISH_STATIC_SPEC=
16663 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16664 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16665 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16666 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16672 here=`${PWDCMD-pwd}`
16675 # We get this from the environment.
16678 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16681 ac_config_files="$ac_config_files scripts/jar"
16684 ac_config_commands="$ac_config_commands default"
16687 cat >confcache <<\_ACEOF
16688 # This file is a shell script that caches the results of configure
16689 # tests run on this system so they can be shared between configure
16690 # scripts and configure runs, see configure's option --config-cache.
16691 # It is not useful on other systems. If it contains results you don't
16692 # want to keep, you may remove or edit it.
16694 # config.status only pays attention to the cache file if you give it
16695 # the --recheck option to rerun configure.
16697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16699 # following values.
16701 _ACEOF
16703 # The following way of writing the cache mishandles newlines in values,
16704 # but we know of no workaround that is simple, portable, and efficient.
16705 # So, don't put newlines in cache variables' values.
16706 # Ultrix sh set writes to stderr and can't be redirected directly,
16707 # and sets the high bit in the cache file unless we assign to the vars.
16709 (set) 2>&1 |
16710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16711 *ac_space=\ *)
16712 # `set' does not quote correctly, so add quotes (double-quote
16713 # substitution turns \\\\ into \\, and sed turns \\ into \).
16714 sed -n \
16715 "s/'/'\\\\''/g;
16716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16719 # `set' quotes correctly as required by POSIX, so do not add quotes.
16720 sed -n \
16721 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16723 esac;
16725 sed '
16726 t clear
16727 : clear
16728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16729 t end
16730 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16731 : end' >>confcache
16732 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16733 if test -w $cache_file; then
16734 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16735 cat confcache >$cache_file
16736 else
16737 echo "not updating unwritable cache $cache_file"
16740 rm -f confcache
16742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16743 # Let make expand exec_prefix.
16744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16748 # trailing colons and then remove the whole line if VPATH becomes empty
16749 # (actually we leave an empty line to preserve line numbers).
16750 if test "x$srcdir" = x.; then
16751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16752 s/:*\$(srcdir):*/:/;
16753 s/:*\${srcdir}:*/:/;
16754 s/:*@srcdir@:*/:/;
16755 s/^\([^=]*=[ ]*\):*/\1/;
16756 s/:*$//;
16757 s/^[^=]*=[ ]*$//;
16761 DEFS=-DHAVE_CONFIG_H
16763 ac_libobjs=
16764 ac_ltlibobjs=
16765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16766 # 1. Remove the extension, and $U if already installed.
16767 ac_i=`echo "$ac_i" |
16768 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16769 # 2. Add them.
16770 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16771 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16772 done
16773 LIBOBJS=$ac_libobjs
16775 LTLIBOBJS=$ac_ltlibobjs
16778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16779 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16780 Usually this means the macro was only invoked conditionally." >&5
16781 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16782 Usually this means the macro was only invoked conditionally." >&2;}
16783 { (exit 1); exit 1; }; }
16785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16786 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16787 Usually this means the macro was only invoked conditionally." >&5
16788 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16789 Usually this means the macro was only invoked conditionally." >&2;}
16790 { (exit 1); exit 1; }; }
16792 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16793 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16794 Usually this means the macro was only invoked conditionally." >&5
16795 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16796 Usually this means the macro was only invoked conditionally." >&2;}
16797 { (exit 1); exit 1; }; }
16799 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16800 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16801 Usually this means the macro was only invoked conditionally." >&5
16802 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16803 Usually this means the macro was only invoked conditionally." >&2;}
16804 { (exit 1); exit 1; }; }
16806 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16807 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16808 Usually this means the macro was only invoked conditionally." >&5
16809 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16810 Usually this means the macro was only invoked conditionally." >&2;}
16811 { (exit 1); exit 1; }; }
16813 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16814 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16815 Usually this means the macro was only invoked conditionally." >&5
16816 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16817 Usually this means the macro was only invoked conditionally." >&2;}
16818 { (exit 1); exit 1; }; }
16820 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16821 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16822 Usually this means the macro was only invoked conditionally." >&5
16823 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16824 Usually this means the macro was only invoked conditionally." >&2;}
16825 { (exit 1); exit 1; }; }
16827 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16828 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16829 Usually this means the macro was only invoked conditionally." >&5
16830 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16831 Usually this means the macro was only invoked conditionally." >&2;}
16832 { (exit 1); exit 1; }; }
16834 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16835 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16836 Usually this means the macro was only invoked conditionally." >&5
16837 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16838 Usually this means the macro was only invoked conditionally." >&2;}
16839 { (exit 1); exit 1; }; }
16841 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16842 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16843 Usually this means the macro was only invoked conditionally." >&5
16844 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16845 Usually this means the macro was only invoked conditionally." >&2;}
16846 { (exit 1); exit 1; }; }
16848 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16849 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16850 Usually this means the macro was only invoked conditionally." >&5
16851 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16852 Usually this means the macro was only invoked conditionally." >&2;}
16853 { (exit 1); exit 1; }; }
16855 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16856 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16857 Usually this means the macro was only invoked conditionally." >&5
16858 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16859 Usually this means the macro was only invoked conditionally." >&2;}
16860 { (exit 1); exit 1; }; }
16862 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16863 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16864 Usually this means the macro was only invoked conditionally." >&5
16865 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16866 Usually this means the macro was only invoked conditionally." >&2;}
16867 { (exit 1); exit 1; }; }
16869 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16870 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16871 Usually this means the macro was only invoked conditionally." >&5
16872 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16873 Usually this means the macro was only invoked conditionally." >&2;}
16874 { (exit 1); exit 1; }; }
16876 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16877 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16878 Usually this means the macro was only invoked conditionally." >&5
16879 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16880 Usually this means the macro was only invoked conditionally." >&2;}
16881 { (exit 1); exit 1; }; }
16883 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16884 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16885 Usually this means the macro was only invoked conditionally." >&5
16886 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16887 Usually this means the macro was only invoked conditionally." >&2;}
16888 { (exit 1); exit 1; }; }
16890 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16891 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16892 Usually this means the macro was only invoked conditionally." >&5
16893 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16894 Usually this means the macro was only invoked conditionally." >&2;}
16895 { (exit 1); exit 1; }; }
16897 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
16898 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
16899 Usually this means the macro was only invoked conditionally." >&5
16900 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
16901 Usually this means the macro was only invoked conditionally." >&2;}
16902 { (exit 1); exit 1; }; }
16904 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16905 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16906 Usually this means the macro was only invoked conditionally." >&5
16907 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16908 Usually this means the macro was only invoked conditionally." >&2;}
16909 { (exit 1); exit 1; }; }
16911 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16912 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16913 Usually this means the macro was only invoked conditionally." >&5
16914 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16915 Usually this means the macro was only invoked conditionally." >&2;}
16916 { (exit 1); exit 1; }; }
16918 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16919 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16920 Usually this means the macro was only invoked conditionally." >&5
16921 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16922 Usually this means the macro was only invoked conditionally." >&2;}
16923 { (exit 1); exit 1; }; }
16926 : ${CONFIG_STATUS=./config.status}
16927 ac_clean_files_save=$ac_clean_files
16928 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16929 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16930 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16931 cat >$CONFIG_STATUS <<_ACEOF
16932 #! $SHELL
16933 # Generated by $as_me.
16934 # Run this file to recreate the current configuration.
16935 # Compiler output produced by configure, useful for debugging
16936 # configure, is in config.log if it exists.
16938 debug=false
16939 ac_cs_recheck=false
16940 ac_cs_silent=false
16941 SHELL=\${CONFIG_SHELL-$SHELL}
16942 _ACEOF
16944 cat >>$CONFIG_STATUS <<\_ACEOF
16945 ## --------------------- ##
16946 ## M4sh Initialization. ##
16947 ## --------------------- ##
16949 # Be Bourne compatible
16950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16951 emulate sh
16952 NULLCMD=:
16953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16954 # is contrary to our usage. Disable this feature.
16955 alias -g '${1+"$@"}'='"$@"'
16956 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16957 set -o posix
16959 DUALCASE=1; export DUALCASE # for MKS sh
16961 # Support unset when possible.
16962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16963 as_unset=unset
16964 else
16965 as_unset=false
16969 # Work around bugs in pre-3.0 UWIN ksh.
16970 $as_unset ENV MAIL MAILPATH
16971 PS1='$ '
16972 PS2='> '
16973 PS4='+ '
16975 # NLS nuisances.
16976 for as_var in \
16977 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16978 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16979 LC_TELEPHONE LC_TIME
16981 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16982 eval $as_var=C; export $as_var
16983 else
16984 $as_unset $as_var
16986 done
16988 # Required to use basename.
16989 if expr a : '\(a\)' >/dev/null 2>&1; then
16990 as_expr=expr
16991 else
16992 as_expr=false
16995 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16996 as_basename=basename
16997 else
16998 as_basename=false
17002 # Name of the executable.
17003 as_me=`$as_basename "$0" ||
17004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17005 X"$0" : 'X\(//\)$' \| \
17006 X"$0" : 'X\(/\)$' \| \
17007 . : '\(.\)' 2>/dev/null ||
17008 echo X/"$0" |
17009 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17010 /^X\/\(\/\/\)$/{ s//\1/; q; }
17011 /^X\/\(\/\).*/{ s//\1/; q; }
17012 s/.*/./; q'`
17015 # PATH needs CR, and LINENO needs CR and PATH.
17016 # Avoid depending upon Character Ranges.
17017 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17018 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17019 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17020 as_cr_digits='0123456789'
17021 as_cr_alnum=$as_cr_Letters$as_cr_digits
17023 # The user is always right.
17024 if test "${PATH_SEPARATOR+set}" != set; then
17025 echo "#! /bin/sh" >conf$$.sh
17026 echo "exit 0" >>conf$$.sh
17027 chmod +x conf$$.sh
17028 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17029 PATH_SEPARATOR=';'
17030 else
17031 PATH_SEPARATOR=:
17033 rm -f conf$$.sh
17037 as_lineno_1=$LINENO
17038 as_lineno_2=$LINENO
17039 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17040 test "x$as_lineno_1" != "x$as_lineno_2" &&
17041 test "x$as_lineno_3" = "x$as_lineno_2" || {
17042 # Find who we are. Look in the path if we contain no path at all
17043 # relative or not.
17044 case $0 in
17045 *[\\/]* ) as_myself=$0 ;;
17046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17047 for as_dir in $PATH
17049 IFS=$as_save_IFS
17050 test -z "$as_dir" && as_dir=.
17051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17052 done
17055 esac
17056 # We did not find ourselves, most probably we were run as `sh COMMAND'
17057 # in which case we are not to be found in the path.
17058 if test "x$as_myself" = x; then
17059 as_myself=$0
17061 if test ! -f "$as_myself"; then
17062 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17063 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17064 { (exit 1); exit 1; }; }
17066 case $CONFIG_SHELL in
17068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17069 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17071 IFS=$as_save_IFS
17072 test -z "$as_dir" && as_dir=.
17073 for as_base in sh bash ksh sh5; do
17074 case $as_dir in
17076 if ("$as_dir/$as_base" -c '
17077 as_lineno_1=$LINENO
17078 as_lineno_2=$LINENO
17079 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17080 test "x$as_lineno_1" != "x$as_lineno_2" &&
17081 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17082 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17083 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17084 CONFIG_SHELL=$as_dir/$as_base
17085 export CONFIG_SHELL
17086 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17087 fi;;
17088 esac
17089 done
17090 done
17092 esac
17094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17095 # uniformly replaced by the line number. The first 'sed' inserts a
17096 # line-number line before each line; the second 'sed' does the real
17097 # work. The second script uses 'N' to pair each line-number line
17098 # with the numbered line, and appends trailing '-' during
17099 # substitution so that $LINENO is not a special case at line end.
17100 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17101 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17102 sed '=' <$as_myself |
17103 sed '
17105 s,$,-,
17106 : loop
17107 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17108 t loop
17109 s,-$,,
17110 s,^['$as_cr_digits']*\n,,
17111 ' >$as_me.lineno &&
17112 chmod +x $as_me.lineno ||
17113 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17114 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17115 { (exit 1); exit 1; }; }
17117 # Don't try to exec as it changes $[0], causing all sort of problems
17118 # (the dirname of $[0] is not the place where we might find the
17119 # original and so on. Autoconf is especially sensible to this).
17120 . ./$as_me.lineno
17121 # Exit status is that of the last command.
17122 exit
17126 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17127 *c*,-n*) ECHO_N= ECHO_C='
17128 ' ECHO_T=' ' ;;
17129 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17130 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17131 esac
17133 if expr a : '\(a\)' >/dev/null 2>&1; then
17134 as_expr=expr
17135 else
17136 as_expr=false
17139 rm -f conf$$ conf$$.exe conf$$.file
17140 echo >conf$$.file
17141 if ln -s conf$$.file conf$$ 2>/dev/null; then
17142 # We could just check for DJGPP; but this test a) works b) is more generic
17143 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17144 if test -f conf$$.exe; then
17145 # Don't use ln at all; we don't have any links
17146 as_ln_s='cp -p'
17147 else
17148 as_ln_s='ln -s'
17150 elif ln conf$$.file conf$$ 2>/dev/null; then
17151 as_ln_s=ln
17152 else
17153 as_ln_s='cp -p'
17155 rm -f conf$$ conf$$.exe conf$$.file
17157 if mkdir -p . 2>/dev/null; then
17158 as_mkdir_p=:
17159 else
17160 test -d ./-p && rmdir ./-p
17161 as_mkdir_p=false
17164 as_executable_p="test -f"
17166 # Sed expression to map a string onto a valid CPP name.
17167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17169 # Sed expression to map a string onto a valid variable name.
17170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17173 # IFS
17174 # We need space, tab and new line, in precisely that order.
17175 as_nl='
17177 IFS=" $as_nl"
17179 # CDPATH.
17180 $as_unset CDPATH
17182 exec 6>&1
17184 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17185 # report actual input values of CONFIG_FILES etc. instead of their
17186 # values after options handling. Logging --version etc. is OK.
17187 exec 5>>config.log
17189 echo
17190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17191 ## Running $as_me. ##
17192 _ASBOX
17193 } >&5
17194 cat >&5 <<_CSEOF
17196 This file was extended by libjava $as_me version-unused, which was
17197 generated by GNU Autoconf 2.59. Invocation command line was
17199 CONFIG_FILES = $CONFIG_FILES
17200 CONFIG_HEADERS = $CONFIG_HEADERS
17201 CONFIG_LINKS = $CONFIG_LINKS
17202 CONFIG_COMMANDS = $CONFIG_COMMANDS
17203 $ $0 $@
17205 _CSEOF
17206 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17207 echo >&5
17208 _ACEOF
17210 # Files that config.status was made for.
17211 if test -n "$ac_config_files"; then
17212 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17215 if test -n "$ac_config_headers"; then
17216 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17219 if test -n "$ac_config_links"; then
17220 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17223 if test -n "$ac_config_commands"; then
17224 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17227 cat >>$CONFIG_STATUS <<\_ACEOF
17229 ac_cs_usage="\
17230 \`$as_me' instantiates files from templates according to the
17231 current configuration.
17233 Usage: $0 [OPTIONS] [FILE]...
17235 -h, --help print this help, then exit
17236 -V, --version print version number, then exit
17237 -q, --quiet do not print progress messages
17238 -d, --debug don't remove temporary files
17239 --recheck update $as_me by reconfiguring in the same conditions
17240 --file=FILE[:TEMPLATE]
17241 instantiate the configuration file FILE
17242 --header=FILE[:TEMPLATE]
17243 instantiate the configuration header FILE
17245 Configuration files:
17246 $config_files
17248 Configuration headers:
17249 $config_headers
17251 Configuration links:
17252 $config_links
17254 Configuration commands:
17255 $config_commands
17257 Report bugs to <bug-autoconf@gnu.org>."
17258 _ACEOF
17260 cat >>$CONFIG_STATUS <<_ACEOF
17261 ac_cs_version="\\
17262 libjava config.status version-unused
17263 configured by $0, generated by GNU Autoconf 2.59,
17264 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17266 Copyright (C) 2003 Free Software Foundation, Inc.
17267 This config.status script is free software; the Free Software Foundation
17268 gives unlimited permission to copy, distribute and modify it."
17269 srcdir=$srcdir
17270 INSTALL="$INSTALL"
17271 _ACEOF
17273 cat >>$CONFIG_STATUS <<\_ACEOF
17274 # If no file are specified by the user, then we need to provide default
17275 # value. By we need to know if files were specified by the user.
17276 ac_need_defaults=:
17277 while test $# != 0
17279 case $1 in
17280 --*=*)
17281 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17282 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17283 ac_shift=:
17286 ac_option=$1
17287 ac_optarg=$2
17288 ac_shift=shift
17290 *) # This is not an option, so the user has probably given explicit
17291 # arguments.
17292 ac_option=$1
17293 ac_need_defaults=false;;
17294 esac
17296 case $ac_option in
17297 # Handling of the options.
17298 _ACEOF
17299 cat >>$CONFIG_STATUS <<\_ACEOF
17300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17301 ac_cs_recheck=: ;;
17302 --version | --vers* | -V )
17303 echo "$ac_cs_version"; exit 0 ;;
17304 --he | --h)
17305 # Conflict between --help and --header
17306 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17307 Try \`$0 --help' for more information." >&5
17308 echo "$as_me: error: ambiguous option: $1
17309 Try \`$0 --help' for more information." >&2;}
17310 { (exit 1); exit 1; }; };;
17311 --help | --hel | -h )
17312 echo "$ac_cs_usage"; exit 0 ;;
17313 --debug | --d* | -d )
17314 debug=: ;;
17315 --file | --fil | --fi | --f )
17316 $ac_shift
17317 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17318 ac_need_defaults=false;;
17319 --header | --heade | --head | --hea )
17320 $ac_shift
17321 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17322 ac_need_defaults=false;;
17323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17324 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17325 ac_cs_silent=: ;;
17327 # This is an error.
17328 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17329 Try \`$0 --help' for more information." >&5
17330 echo "$as_me: error: unrecognized option: $1
17331 Try \`$0 --help' for more information." >&2;}
17332 { (exit 1); exit 1; }; } ;;
17334 *) ac_config_targets="$ac_config_targets $1" ;;
17336 esac
17337 shift
17338 done
17340 ac_configure_extra_args=
17342 if $ac_cs_silent; then
17343 exec 6>/dev/null
17344 ac_configure_extra_args="$ac_configure_extra_args --silent"
17347 _ACEOF
17348 cat >>$CONFIG_STATUS <<_ACEOF
17349 if \$ac_cs_recheck; then
17350 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17351 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17354 _ACEOF
17356 cat >>$CONFIG_STATUS <<_ACEOF
17358 # INIT-COMMANDS section.
17361 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17362 srcdir=${srcdir}
17363 host=${host}
17364 target=${target}
17365 with_multisubdir=${with_multisubdir}
17366 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17367 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17368 libgcj_basedir=${libgcj_basedir}
17369 CC="${CC}"
17370 CXX="${CXX}"
17371 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17374 _ACEOF
17378 cat >>$CONFIG_STATUS <<\_ACEOF
17379 for ac_config_target in $ac_config_targets
17381 case "$ac_config_target" in
17382 # Handling of arguments.
17383 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17384 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17385 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17386 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17387 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17388 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17389 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17390 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17391 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17392 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17393 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17394 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17395 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17396 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17397 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17398 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17399 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17400 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17401 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17402 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17403 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17404 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17405 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17406 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17407 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17408 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17409 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17410 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17411 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17412 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17413 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17414 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17415 { (exit 1); exit 1; }; };;
17416 esac
17417 done
17419 # If the user did not use the arguments to specify the items to instantiate,
17420 # then the envvar interface is used. Set only those that are not.
17421 # We use the long form for the default assignment because of an extremely
17422 # bizarre bug on SunOS 4.1.3.
17423 if $ac_need_defaults; then
17424 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17425 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17426 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17430 # Have a temporary directory for convenience. Make it in the build tree
17431 # simply because there is no reason to put it here, and in addition,
17432 # creating and moving files from /tmp can sometimes cause problems.
17433 # Create a temporary directory, and hook for its removal unless debugging.
17434 $debug ||
17436 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17437 trap '{ (exit 1); exit 1; }' 1 2 13 15
17440 # Create a (secure) tmp directory for tmp files.
17443 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17444 test -n "$tmp" && test -d "$tmp"
17445 } ||
17447 tmp=./confstat$$-$RANDOM
17448 (umask 077 && mkdir $tmp)
17449 } ||
17451 echo "$me: cannot create a temporary directory in ." >&2
17452 { (exit 1); exit 1; }
17455 _ACEOF
17457 cat >>$CONFIG_STATUS <<_ACEOF
17460 # CONFIG_FILES section.
17463 # No need to generate the scripts if there are no CONFIG_FILES.
17464 # This happens for instance when ./config.status config.h
17465 if test -n "\$CONFIG_FILES"; then
17466 # Protect against being on the right side of a sed subst in config.status.
17467 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17468 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17469 s,@SHELL@,$SHELL,;t t
17470 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17471 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17472 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17473 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17474 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17475 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17476 s,@exec_prefix@,$exec_prefix,;t t
17477 s,@prefix@,$prefix,;t t
17478 s,@program_transform_name@,$program_transform_name,;t t
17479 s,@bindir@,$bindir,;t t
17480 s,@sbindir@,$sbindir,;t t
17481 s,@libexecdir@,$libexecdir,;t t
17482 s,@datadir@,$datadir,;t t
17483 s,@sysconfdir@,$sysconfdir,;t t
17484 s,@sharedstatedir@,$sharedstatedir,;t t
17485 s,@localstatedir@,$localstatedir,;t t
17486 s,@libdir@,$libdir,;t t
17487 s,@includedir@,$includedir,;t t
17488 s,@oldincludedir@,$oldincludedir,;t t
17489 s,@infodir@,$infodir,;t t
17490 s,@mandir@,$mandir,;t t
17491 s,@build_alias@,$build_alias,;t t
17492 s,@host_alias@,$host_alias,;t t
17493 s,@target_alias@,$target_alias,;t t
17494 s,@DEFS@,$DEFS,;t t
17495 s,@ECHO_C@,$ECHO_C,;t t
17496 s,@ECHO_N@,$ECHO_N,;t t
17497 s,@ECHO_T@,$ECHO_T,;t t
17498 s,@LIBS@,$LIBS,;t t
17499 s,@build@,$build,;t t
17500 s,@build_cpu@,$build_cpu,;t t
17501 s,@build_vendor@,$build_vendor,;t t
17502 s,@build_os@,$build_os,;t t
17503 s,@build_libsubdir@,$build_libsubdir,;t t
17504 s,@build_subdir@,$build_subdir,;t t
17505 s,@host_subdir@,$host_subdir,;t t
17506 s,@target_subdir@,$target_subdir,;t t
17507 s,@libgcj_basedir@,$libgcj_basedir,;t t
17508 s,@host@,$host,;t t
17509 s,@host_cpu@,$host_cpu,;t t
17510 s,@host_vendor@,$host_vendor,;t t
17511 s,@host_os@,$host_os,;t t
17512 s,@target@,$target,;t t
17513 s,@target_cpu@,$target_cpu,;t t
17514 s,@target_vendor@,$target_vendor,;t t
17515 s,@target_os@,$target_os,;t t
17516 s,@target_noncanonical@,$target_noncanonical,;t t
17517 s,@LN_S@,$LN_S,;t t
17518 s,@mkinstalldirs@,$mkinstalldirs,;t t
17519 s,@CC@,$CC,;t t
17520 s,@ac_ct_CC@,$ac_ct_CC,;t t
17521 s,@EXEEXT@,$EXEEXT,;t t
17522 s,@OBJEXT@,$OBJEXT,;t t
17523 s,@CXX@,$CXX,;t t
17524 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17525 s,@CFLAGS@,$CFLAGS,;t t
17526 s,@CXXFLAGS@,$CXXFLAGS,;t t
17527 s,@LDFLAGS@,$LDFLAGS,;t t
17528 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17529 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17530 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17531 s,@CYGPATH_W@,$CYGPATH_W,;t t
17532 s,@PACKAGE@,$PACKAGE,;t t
17533 s,@VERSION@,$VERSION,;t t
17534 s,@ACLOCAL@,$ACLOCAL,;t t
17535 s,@AUTOCONF@,$AUTOCONF,;t t
17536 s,@AUTOMAKE@,$AUTOMAKE,;t t
17537 s,@AUTOHEADER@,$AUTOHEADER,;t t
17538 s,@MAKEINFO@,$MAKEINFO,;t t
17539 s,@install_sh@,$install_sh,;t t
17540 s,@STRIP@,$STRIP,;t t
17541 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17542 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17543 s,@mkdir_p@,$mkdir_p,;t t
17544 s,@AWK@,$AWK,;t t
17545 s,@SET_MAKE@,$SET_MAKE,;t t
17546 s,@am__leading_dot@,$am__leading_dot,;t t
17547 s,@AMTAR@,$AMTAR,;t t
17548 s,@am__tar@,$am__tar,;t t
17549 s,@am__untar@,$am__untar,;t t
17550 s,@DEPDIR@,$DEPDIR,;t t
17551 s,@am__include@,$am__include,;t t
17552 s,@am__quote@,$am__quote,;t t
17553 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17554 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17555 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17556 s,@CCDEPMODE@,$CCDEPMODE,;t t
17557 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17558 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17559 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17560 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17561 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17562 s,@AS@,$AS,;t t
17563 s,@ac_ct_AS@,$ac_ct_AS,;t t
17564 s,@LD@,$LD,;t t
17565 s,@ac_ct_LD@,$ac_ct_LD,;t t
17566 s,@AR@,$AR,;t t
17567 s,@ac_ct_AR@,$ac_ct_AR,;t t
17568 s,@RANLIB@,$RANLIB,;t t
17569 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17570 s,@JAR@,$JAR,;t t
17571 s,@ZIP@,$ZIP,;t t
17572 s,@UNZIP@,$UNZIP,;t t
17573 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17574 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17575 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17576 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17577 s,@MAINT@,$MAINT,;t t
17578 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17579 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17580 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17581 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17582 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17583 s,@TOOLKIT@,$TOOLKIT,;t t
17584 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17585 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17586 s,@GCJH@,$GCJH,;t t
17587 s,@INCLTDL@,$INCLTDL,;t t
17588 s,@LIBLTDL@,$LIBLTDL,;t t
17589 s,@DIRLTDL@,$DIRLTDL,;t t
17590 s,@LIBTOOL@,$LIBTOOL,;t t
17591 s,@CXXCPP@,$CXXCPP,;t t
17592 s,@CPPFLAGS@,$CPPFLAGS,;t t
17593 s,@GCJ@,$GCJ,;t t
17594 s,@GCJFLAGS@,$GCJFLAGS,;t t
17595 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17596 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17597 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17598 s,@subdirs@,$subdirs,;t t
17599 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17600 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17601 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17602 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17603 s,@JAVA_HOME@,$JAVA_HOME,;t t
17604 s,@INTERPRETER@,$INTERPRETER,;t t
17605 s,@LIBFFI@,$LIBFFI,;t t
17606 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17607 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17608 s,@CPP@,$CPP,;t t
17609 s,@EGREP@,$EGREP,;t t
17610 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17611 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17612 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17613 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17614 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17615 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17616 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17617 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17618 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17619 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17620 s,@X_CFLAGS@,$X_CFLAGS,;t t
17621 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17622 s,@X_LIBS@,$X_LIBS,;t t
17623 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17624 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17625 s,@GCLIBS@,$GCLIBS,;t t
17626 s,@GCINCS@,$GCINCS,;t t
17627 s,@GCDEPS@,$GCDEPS,;t t
17628 s,@GCSPEC@,$GCSPEC,;t t
17629 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17630 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17631 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17632 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17633 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17634 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17635 s,@THREADLIBS@,$THREADLIBS,;t t
17636 s,@THREADINCS@,$THREADINCS,;t t
17637 s,@THREADDEPS@,$THREADDEPS,;t t
17638 s,@THREADSPEC@,$THREADSPEC,;t t
17639 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17640 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17641 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17642 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17643 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17644 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17645 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17646 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17647 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17648 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
17649 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
17650 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
17651 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17652 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17653 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17654 s,@LIBICONV@,$LIBICONV,;t t
17655 s,@LTLIBICONV@,$LTLIBICONV,;t t
17656 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17657 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17658 s,@GTK_LIBS@,$GTK_LIBS,;t t
17659 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17660 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17661 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17662 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17663 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17664 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17665 s,@ZLIBS@,$ZLIBS,;t t
17666 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17667 s,@ZINCS@,$ZINCS,;t t
17668 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17669 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17670 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17671 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17672 s,@IEEESPEC@,$IEEESPEC,;t t
17673 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17674 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17675 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17676 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17677 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17678 s,@toolexecdir@,$toolexecdir,;t t
17679 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17680 s,@toolexeclibdir@,$toolexeclibdir,;t t
17681 s,@dbexecdir@,$dbexecdir,;t t
17682 s,@GCJVERSION@,$GCJVERSION,;t t
17683 s,@gxx_include_dir@,$gxx_include_dir,;t t
17684 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17685 s,@ALLOCA@,$ALLOCA,;t t
17686 s,@PERL@,$PERL,;t t
17687 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17688 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17689 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17690 s,@here@,$here,;t t
17691 s,@LIBOBJS@,$LIBOBJS,;t t
17692 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17693 CEOF
17695 _ACEOF
17697 cat >>$CONFIG_STATUS <<\_ACEOF
17698 # Split the substitutions into bite-sized pieces for seds with
17699 # small command number limits, like on Digital OSF/1 and HP-UX.
17700 ac_max_sed_lines=48
17701 ac_sed_frag=1 # Number of current file.
17702 ac_beg=1 # First line for current file.
17703 ac_end=$ac_max_sed_lines # Line after last line for current file.
17704 ac_more_lines=:
17705 ac_sed_cmds=
17706 while $ac_more_lines; do
17707 if test $ac_beg -gt 1; then
17708 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17709 else
17710 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17712 if test ! -s $tmp/subs.frag; then
17713 ac_more_lines=false
17714 else
17715 # The purpose of the label and of the branching condition is to
17716 # speed up the sed processing (if there are no `@' at all, there
17717 # is no need to browse any of the substitutions).
17718 # These are the two extra sed commands mentioned above.
17719 (echo ':t
17720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17721 if test -z "$ac_sed_cmds"; then
17722 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17723 else
17724 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17726 ac_sed_frag=`expr $ac_sed_frag + 1`
17727 ac_beg=$ac_end
17728 ac_end=`expr $ac_end + $ac_max_sed_lines`
17730 done
17731 if test -z "$ac_sed_cmds"; then
17732 ac_sed_cmds=cat
17734 fi # test -n "$CONFIG_FILES"
17736 _ACEOF
17737 cat >>$CONFIG_STATUS <<\_ACEOF
17738 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17740 case $ac_file in
17741 - | *:- | *:-:* ) # input from stdin
17742 cat >$tmp/stdin
17743 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17745 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17747 * ) ac_file_in=$ac_file.in ;;
17748 esac
17750 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17751 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17753 X"$ac_file" : 'X\(//\)[^/]' \| \
17754 X"$ac_file" : 'X\(//\)$' \| \
17755 X"$ac_file" : 'X\(/\)' \| \
17756 . : '\(.\)' 2>/dev/null ||
17757 echo X"$ac_file" |
17758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17760 /^X\(\/\/\)$/{ s//\1/; q; }
17761 /^X\(\/\).*/{ s//\1/; q; }
17762 s/.*/./; q'`
17763 { if $as_mkdir_p; then
17764 mkdir -p "$ac_dir"
17765 else
17766 as_dir="$ac_dir"
17767 as_dirs=
17768 while test ! -d "$as_dir"; do
17769 as_dirs="$as_dir $as_dirs"
17770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17772 X"$as_dir" : 'X\(//\)[^/]' \| \
17773 X"$as_dir" : 'X\(//\)$' \| \
17774 X"$as_dir" : 'X\(/\)' \| \
17775 . : '\(.\)' 2>/dev/null ||
17776 echo X"$as_dir" |
17777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17779 /^X\(\/\/\)$/{ s//\1/; q; }
17780 /^X\(\/\).*/{ s//\1/; q; }
17781 s/.*/./; q'`
17782 done
17783 test ! -n "$as_dirs" || mkdir $as_dirs
17784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17786 { (exit 1); exit 1; }; }; }
17788 ac_builddir=.
17790 if test "$ac_dir" != .; then
17791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17792 # A "../" for each directory in $ac_dir_suffix.
17793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17794 else
17795 ac_dir_suffix= ac_top_builddir=
17798 case $srcdir in
17799 .) # No --srcdir option. We are building in place.
17800 ac_srcdir=.
17801 if test -z "$ac_top_builddir"; then
17802 ac_top_srcdir=.
17803 else
17804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17805 fi ;;
17806 [\\/]* | ?:[\\/]* ) # Absolute path.
17807 ac_srcdir=$srcdir$ac_dir_suffix;
17808 ac_top_srcdir=$srcdir ;;
17809 *) # Relative path.
17810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17812 esac
17814 # Do not use `cd foo && pwd` to compute absolute paths, because
17815 # the directories may not exist.
17816 case `pwd` in
17817 .) ac_abs_builddir="$ac_dir";;
17819 case "$ac_dir" in
17820 .) ac_abs_builddir=`pwd`;;
17821 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17822 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17823 esac;;
17824 esac
17825 case $ac_abs_builddir in
17826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17828 case ${ac_top_builddir}. in
17829 .) ac_abs_top_builddir=$ac_abs_builddir;;
17830 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17831 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17832 esac;;
17833 esac
17834 case $ac_abs_builddir in
17835 .) ac_abs_srcdir=$ac_srcdir;;
17837 case $ac_srcdir in
17838 .) ac_abs_srcdir=$ac_abs_builddir;;
17839 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17840 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17841 esac;;
17842 esac
17843 case $ac_abs_builddir in
17844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17846 case $ac_top_srcdir in
17847 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17848 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17849 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17850 esac;;
17851 esac
17854 case $INSTALL in
17855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17856 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17857 esac
17859 if test x"$ac_file" != x-; then
17860 { echo "$as_me:$LINENO: creating $ac_file" >&5
17861 echo "$as_me: creating $ac_file" >&6;}
17862 rm -f "$ac_file"
17864 # Let's still pretend it is `configure' which instantiates (i.e., don't
17865 # use $as_me), people would be surprised to read:
17866 # /* config.h. Generated by config.status. */
17867 if test x"$ac_file" = x-; then
17868 configure_input=
17869 else
17870 configure_input="$ac_file. "
17872 configure_input=$configure_input"Generated from `echo $ac_file_in |
17873 sed 's,.*/,,'` by configure."
17875 # First look for the input files in the build tree, otherwise in the
17876 # src tree.
17877 ac_file_inputs=`IFS=:
17878 for f in $ac_file_in; do
17879 case $f in
17880 -) echo $tmp/stdin ;;
17881 [\\/$]*)
17882 # Absolute (can't be DOS-style, as IFS=:)
17883 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17884 echo "$as_me: error: cannot find input file: $f" >&2;}
17885 { (exit 1); exit 1; }; }
17886 echo "$f";;
17887 *) # Relative
17888 if test -f "$f"; then
17889 # Build tree
17890 echo "$f"
17891 elif test -f "$srcdir/$f"; then
17892 # Source tree
17893 echo "$srcdir/$f"
17894 else
17895 # /dev/null tree
17896 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17897 echo "$as_me: error: cannot find input file: $f" >&2;}
17898 { (exit 1); exit 1; }; }
17899 fi;;
17900 esac
17901 done` || { (exit 1); exit 1; }
17902 _ACEOF
17903 cat >>$CONFIG_STATUS <<_ACEOF
17904 sed "$ac_vpsub
17905 $extrasub
17906 _ACEOF
17907 cat >>$CONFIG_STATUS <<\_ACEOF
17909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17910 s,@configure_input@,$configure_input,;t t
17911 s,@srcdir@,$ac_srcdir,;t t
17912 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17913 s,@top_srcdir@,$ac_top_srcdir,;t t
17914 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17915 s,@builddir@,$ac_builddir,;t t
17916 s,@abs_builddir@,$ac_abs_builddir,;t t
17917 s,@top_builddir@,$ac_top_builddir,;t t
17918 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17919 s,@INSTALL@,$ac_INSTALL,;t t
17920 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17921 rm -f $tmp/stdin
17922 if test x"$ac_file" != x-; then
17923 mv $tmp/out $ac_file
17924 else
17925 cat $tmp/out
17926 rm -f $tmp/out
17929 # Run the commands associated with the file.
17930 case $ac_file in
17931 scripts/jar ) chmod +x scripts/jar ;;
17932 esac
17933 done
17934 _ACEOF
17935 cat >>$CONFIG_STATUS <<\_ACEOF
17938 # CONFIG_HEADER section.
17941 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17942 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17944 # ac_d sets the value in "#define NAME VALUE" lines.
17945 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17946 ac_dB='[ ].*$,\1#\2'
17947 ac_dC=' '
17948 ac_dD=',;t'
17949 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17950 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17951 ac_uB='$,\1#\2define\3'
17952 ac_uC=' '
17953 ac_uD=',;t'
17955 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17957 case $ac_file in
17958 - | *:- | *:-:* ) # input from stdin
17959 cat >$tmp/stdin
17960 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17962 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17964 * ) ac_file_in=$ac_file.in ;;
17965 esac
17967 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17968 echo "$as_me: creating $ac_file" >&6;}
17970 # First look for the input files in the build tree, otherwise in the
17971 # src tree.
17972 ac_file_inputs=`IFS=:
17973 for f in $ac_file_in; do
17974 case $f in
17975 -) echo $tmp/stdin ;;
17976 [\\/$]*)
17977 # Absolute (can't be DOS-style, as IFS=:)
17978 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17979 echo "$as_me: error: cannot find input file: $f" >&2;}
17980 { (exit 1); exit 1; }; }
17981 # Do quote $f, to prevent DOS paths from being IFS'd.
17982 echo "$f";;
17983 *) # Relative
17984 if test -f "$f"; then
17985 # Build tree
17986 echo "$f"
17987 elif test -f "$srcdir/$f"; then
17988 # Source tree
17989 echo "$srcdir/$f"
17990 else
17991 # /dev/null tree
17992 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17993 echo "$as_me: error: cannot find input file: $f" >&2;}
17994 { (exit 1); exit 1; }; }
17995 fi;;
17996 esac
17997 done` || { (exit 1); exit 1; }
17998 # Remove the trailing spaces.
17999 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18001 _ACEOF
18003 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18004 # `conftest.undefs', that substitutes the proper values into
18005 # config.h.in to produce config.h. The first handles `#define'
18006 # templates, and the second `#undef' templates.
18007 # And first: Protect against being on the right side of a sed subst in
18008 # config.status. Protect against being in an unquoted here document
18009 # in config.status.
18010 rm -f conftest.defines conftest.undefs
18011 # Using a here document instead of a string reduces the quoting nightmare.
18012 # Putting comments in sed scripts is not portable.
18014 # `end' is used to avoid that the second main sed command (meant for
18015 # 0-ary CPP macros) applies to n-ary macro definitions.
18016 # See the Autoconf documentation for `clear'.
18017 cat >confdef2sed.sed <<\_ACEOF
18018 s/[\\&,]/\\&/g
18019 s,[\\$`],\\&,g
18020 t clear
18021 : clear
18022 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18023 t end
18024 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18025 : end
18026 _ACEOF
18027 # If some macros were called several times there might be several times
18028 # the same #defines, which is useless. Nevertheless, we may not want to
18029 # sort them, since we want the *last* AC-DEFINE to be honored.
18030 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18031 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18032 rm -f confdef2sed.sed
18034 # This sed command replaces #undef with comments. This is necessary, for
18035 # example, in the case of _POSIX_SOURCE, which is predefined and required
18036 # on some systems where configure will not decide to define it.
18037 cat >>conftest.undefs <<\_ACEOF
18038 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18039 _ACEOF
18041 # Break up conftest.defines because some shells have a limit on the size
18042 # of here documents, and old seds have small limits too (100 cmds).
18043 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18044 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18045 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18046 echo ' :' >>$CONFIG_STATUS
18047 rm -f conftest.tail
18048 while grep . conftest.defines >/dev/null
18050 # Write a limited-size here document to $tmp/defines.sed.
18051 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18052 # Speed up: don't consider the non `#define' lines.
18053 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18054 # Work around the forget-to-reset-the-flag bug.
18055 echo 't clr' >>$CONFIG_STATUS
18056 echo ': clr' >>$CONFIG_STATUS
18057 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18058 echo 'CEOF
18059 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18060 rm -f $tmp/in
18061 mv $tmp/out $tmp/in
18062 ' >>$CONFIG_STATUS
18063 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18064 rm -f conftest.defines
18065 mv conftest.tail conftest.defines
18066 done
18067 rm -f conftest.defines
18068 echo ' fi # grep' >>$CONFIG_STATUS
18069 echo >>$CONFIG_STATUS
18071 # Break up conftest.undefs because some shells have a limit on the size
18072 # of here documents, and old seds have small limits too (100 cmds).
18073 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18074 rm -f conftest.tail
18075 while grep . conftest.undefs >/dev/null
18077 # Write a limited-size here document to $tmp/undefs.sed.
18078 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18079 # Speed up: don't consider the non `#undef'
18080 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18081 # Work around the forget-to-reset-the-flag bug.
18082 echo 't clr' >>$CONFIG_STATUS
18083 echo ': clr' >>$CONFIG_STATUS
18084 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18085 echo 'CEOF
18086 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18087 rm -f $tmp/in
18088 mv $tmp/out $tmp/in
18089 ' >>$CONFIG_STATUS
18090 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18091 rm -f conftest.undefs
18092 mv conftest.tail conftest.undefs
18093 done
18094 rm -f conftest.undefs
18096 cat >>$CONFIG_STATUS <<\_ACEOF
18097 # Let's still pretend it is `configure' which instantiates (i.e., don't
18098 # use $as_me), people would be surprised to read:
18099 # /* config.h. Generated by config.status. */
18100 if test x"$ac_file" = x-; then
18101 echo "/* Generated by configure. */" >$tmp/config.h
18102 else
18103 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18105 cat $tmp/in >>$tmp/config.h
18106 rm -f $tmp/in
18107 if test x"$ac_file" != x-; then
18108 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18109 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18110 echo "$as_me: $ac_file is unchanged" >&6;}
18111 else
18112 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18113 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18114 X"$ac_file" : 'X\(//\)[^/]' \| \
18115 X"$ac_file" : 'X\(//\)$' \| \
18116 X"$ac_file" : 'X\(/\)' \| \
18117 . : '\(.\)' 2>/dev/null ||
18118 echo X"$ac_file" |
18119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18121 /^X\(\/\/\)$/{ s//\1/; q; }
18122 /^X\(\/\).*/{ s//\1/; q; }
18123 s/.*/./; q'`
18124 { if $as_mkdir_p; then
18125 mkdir -p "$ac_dir"
18126 else
18127 as_dir="$ac_dir"
18128 as_dirs=
18129 while test ! -d "$as_dir"; do
18130 as_dirs="$as_dir $as_dirs"
18131 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18133 X"$as_dir" : 'X\(//\)[^/]' \| \
18134 X"$as_dir" : 'X\(//\)$' \| \
18135 X"$as_dir" : 'X\(/\)' \| \
18136 . : '\(.\)' 2>/dev/null ||
18137 echo X"$as_dir" |
18138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18140 /^X\(\/\/\)$/{ s//\1/; q; }
18141 /^X\(\/\).*/{ s//\1/; q; }
18142 s/.*/./; q'`
18143 done
18144 test ! -n "$as_dirs" || mkdir $as_dirs
18145 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18146 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18147 { (exit 1); exit 1; }; }; }
18149 rm -f $ac_file
18150 mv $tmp/config.h $ac_file
18152 else
18153 cat $tmp/config.h
18154 rm -f $tmp/config.h
18156 # Compute $ac_file's index in $config_headers.
18157 _am_stamp_count=1
18158 for _am_header in $config_headers :; do
18159 case $_am_header in
18160 $ac_file | $ac_file:* )
18161 break ;;
18163 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18164 esac
18165 done
18166 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18167 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18168 X$ac_file : 'X\(//\)[^/]' \| \
18169 X$ac_file : 'X\(//\)$' \| \
18170 X$ac_file : 'X\(/\)' \| \
18171 . : '\(.\)' 2>/dev/null ||
18172 echo X$ac_file |
18173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18175 /^X\(\/\/\)$/{ s//\1/; q; }
18176 /^X\(\/\).*/{ s//\1/; q; }
18177 s/.*/./; q'`/stamp-h$_am_stamp_count
18178 done
18179 _ACEOF
18180 cat >>$CONFIG_STATUS <<\_ACEOF
18183 # CONFIG_LINKS section.
18186 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18187 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18188 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18190 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18191 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18193 if test ! -r $srcdir/$ac_source; then
18194 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18195 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18196 { (exit 1); exit 1; }; }
18198 rm -f $ac_dest
18200 # Make relative symlinks.
18201 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18202 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18203 X"$ac_dest" : 'X\(//\)[^/]' \| \
18204 X"$ac_dest" : 'X\(//\)$' \| \
18205 X"$ac_dest" : 'X\(/\)' \| \
18206 . : '\(.\)' 2>/dev/null ||
18207 echo X"$ac_dest" |
18208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18210 /^X\(\/\/\)$/{ s//\1/; q; }
18211 /^X\(\/\).*/{ s//\1/; q; }
18212 s/.*/./; q'`
18213 { if $as_mkdir_p; then
18214 mkdir -p "$ac_dest_dir"
18215 else
18216 as_dir="$ac_dest_dir"
18217 as_dirs=
18218 while test ! -d "$as_dir"; do
18219 as_dirs="$as_dir $as_dirs"
18220 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18222 X"$as_dir" : 'X\(//\)[^/]' \| \
18223 X"$as_dir" : 'X\(//\)$' \| \
18224 X"$as_dir" : 'X\(/\)' \| \
18225 . : '\(.\)' 2>/dev/null ||
18226 echo X"$as_dir" |
18227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18229 /^X\(\/\/\)$/{ s//\1/; q; }
18230 /^X\(\/\).*/{ s//\1/; q; }
18231 s/.*/./; q'`
18232 done
18233 test ! -n "$as_dirs" || mkdir $as_dirs
18234 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18235 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18236 { (exit 1); exit 1; }; }; }
18238 ac_builddir=.
18240 if test "$ac_dest_dir" != .; then
18241 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18242 # A "../" for each directory in $ac_dir_suffix.
18243 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18244 else
18245 ac_dir_suffix= ac_top_builddir=
18248 case $srcdir in
18249 .) # No --srcdir option. We are building in place.
18250 ac_srcdir=.
18251 if test -z "$ac_top_builddir"; then
18252 ac_top_srcdir=.
18253 else
18254 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18255 fi ;;
18256 [\\/]* | ?:[\\/]* ) # Absolute path.
18257 ac_srcdir=$srcdir$ac_dir_suffix;
18258 ac_top_srcdir=$srcdir ;;
18259 *) # Relative path.
18260 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18261 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18262 esac
18264 # Do not use `cd foo && pwd` to compute absolute paths, because
18265 # the directories may not exist.
18266 case `pwd` in
18267 .) ac_abs_builddir="$ac_dest_dir";;
18269 case "$ac_dest_dir" in
18270 .) ac_abs_builddir=`pwd`;;
18271 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18272 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18273 esac;;
18274 esac
18275 case $ac_abs_builddir in
18276 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18278 case ${ac_top_builddir}. in
18279 .) ac_abs_top_builddir=$ac_abs_builddir;;
18280 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18281 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18282 esac;;
18283 esac
18284 case $ac_abs_builddir in
18285 .) ac_abs_srcdir=$ac_srcdir;;
18287 case $ac_srcdir in
18288 .) ac_abs_srcdir=$ac_abs_builddir;;
18289 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18290 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18291 esac;;
18292 esac
18293 case $ac_abs_builddir in
18294 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18296 case $ac_top_srcdir in
18297 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18298 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18299 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18300 esac;;
18301 esac
18304 case $srcdir in
18305 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18306 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18307 esac
18309 # Try a symlink, then a hard link, then a copy.
18310 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18311 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18312 cp -p $srcdir/$ac_source $ac_dest ||
18313 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18314 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18315 { (exit 1); exit 1; }; }
18316 done
18317 _ACEOF
18318 cat >>$CONFIG_STATUS <<\_ACEOF
18321 # CONFIG_COMMANDS section.
18323 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18324 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18325 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18326 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18327 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18328 X"$ac_dest" : 'X\(//\)[^/]' \| \
18329 X"$ac_dest" : 'X\(//\)$' \| \
18330 X"$ac_dest" : 'X\(/\)' \| \
18331 . : '\(.\)' 2>/dev/null ||
18332 echo X"$ac_dest" |
18333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18335 /^X\(\/\/\)$/{ s//\1/; q; }
18336 /^X\(\/\).*/{ s//\1/; q; }
18337 s/.*/./; q'`
18338 { if $as_mkdir_p; then
18339 mkdir -p "$ac_dir"
18340 else
18341 as_dir="$ac_dir"
18342 as_dirs=
18343 while test ! -d "$as_dir"; do
18344 as_dirs="$as_dir $as_dirs"
18345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18347 X"$as_dir" : 'X\(//\)[^/]' \| \
18348 X"$as_dir" : 'X\(//\)$' \| \
18349 X"$as_dir" : 'X\(/\)' \| \
18350 . : '\(.\)' 2>/dev/null ||
18351 echo X"$as_dir" |
18352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18354 /^X\(\/\/\)$/{ s//\1/; q; }
18355 /^X\(\/\).*/{ s//\1/; q; }
18356 s/.*/./; q'`
18357 done
18358 test ! -n "$as_dirs" || mkdir $as_dirs
18359 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18360 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18361 { (exit 1); exit 1; }; }; }
18363 ac_builddir=.
18365 if test "$ac_dir" != .; then
18366 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18367 # A "../" for each directory in $ac_dir_suffix.
18368 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18369 else
18370 ac_dir_suffix= ac_top_builddir=
18373 case $srcdir in
18374 .) # No --srcdir option. We are building in place.
18375 ac_srcdir=.
18376 if test -z "$ac_top_builddir"; then
18377 ac_top_srcdir=.
18378 else
18379 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18380 fi ;;
18381 [\\/]* | ?:[\\/]* ) # Absolute path.
18382 ac_srcdir=$srcdir$ac_dir_suffix;
18383 ac_top_srcdir=$srcdir ;;
18384 *) # Relative path.
18385 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18386 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18387 esac
18389 # Do not use `cd foo && pwd` to compute absolute paths, because
18390 # the directories may not exist.
18391 case `pwd` in
18392 .) ac_abs_builddir="$ac_dir";;
18394 case "$ac_dir" in
18395 .) ac_abs_builddir=`pwd`;;
18396 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18397 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18398 esac;;
18399 esac
18400 case $ac_abs_builddir in
18401 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18403 case ${ac_top_builddir}. in
18404 .) ac_abs_top_builddir=$ac_abs_builddir;;
18405 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18406 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18407 esac;;
18408 esac
18409 case $ac_abs_builddir in
18410 .) ac_abs_srcdir=$ac_srcdir;;
18412 case $ac_srcdir in
18413 .) ac_abs_srcdir=$ac_abs_builddir;;
18414 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18415 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18416 esac;;
18417 esac
18418 case $ac_abs_builddir in
18419 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18421 case $ac_top_srcdir in
18422 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18423 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18424 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18425 esac;;
18426 esac
18429 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18430 echo "$as_me: executing $ac_dest commands" >&6;}
18431 case $ac_dest in
18432 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18433 # Strip MF so we end up with the name of the file.
18434 mf=`echo "$mf" | sed -e 's/:.*$//'`
18435 # Check whether this is an Automake generated Makefile or not.
18436 # We used to match only the files named `Makefile.in', but
18437 # some people rename them; so instead we look at the file content.
18438 # Grep'ing the first line is not enough: some people post-process
18439 # each Makefile.in and add a new line on top of each file to say so.
18440 # So let's grep whole file.
18441 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18442 dirpart=`(dirname "$mf") 2>/dev/null ||
18443 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18444 X"$mf" : 'X\(//\)[^/]' \| \
18445 X"$mf" : 'X\(//\)$' \| \
18446 X"$mf" : 'X\(/\)' \| \
18447 . : '\(.\)' 2>/dev/null ||
18448 echo X"$mf" |
18449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18451 /^X\(\/\/\)$/{ s//\1/; q; }
18452 /^X\(\/\).*/{ s//\1/; q; }
18453 s/.*/./; q'`
18454 else
18455 continue
18457 # Extract the definition of DEPDIR, am__include, and am__quote
18458 # from the Makefile without running `make'.
18459 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18460 test -z "$DEPDIR" && continue
18461 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18462 test -z "am__include" && continue
18463 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18464 # When using ansi2knr, U may be empty or an underscore; expand it
18465 U=`sed -n 's/^U = //p' < "$mf"`
18466 # Find all dependency output files, they are included files with
18467 # $(DEPDIR) in their names. We invoke sed twice because it is the
18468 # simplest approach to changing $(DEPDIR) to its actual value in the
18469 # expansion.
18470 for file in `sed -n "
18471 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18472 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18473 # Make sure the directory exists.
18474 test -f "$dirpart/$file" && continue
18475 fdir=`(dirname "$file") 2>/dev/null ||
18476 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18477 X"$file" : 'X\(//\)[^/]' \| \
18478 X"$file" : 'X\(//\)$' \| \
18479 X"$file" : 'X\(/\)' \| \
18480 . : '\(.\)' 2>/dev/null ||
18481 echo X"$file" |
18482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18484 /^X\(\/\/\)$/{ s//\1/; q; }
18485 /^X\(\/\).*/{ s//\1/; q; }
18486 s/.*/./; q'`
18487 { if $as_mkdir_p; then
18488 mkdir -p $dirpart/$fdir
18489 else
18490 as_dir=$dirpart/$fdir
18491 as_dirs=
18492 while test ! -d "$as_dir"; do
18493 as_dirs="$as_dir $as_dirs"
18494 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18496 X"$as_dir" : 'X\(//\)[^/]' \| \
18497 X"$as_dir" : 'X\(//\)$' \| \
18498 X"$as_dir" : 'X\(/\)' \| \
18499 . : '\(.\)' 2>/dev/null ||
18500 echo X"$as_dir" |
18501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18503 /^X\(\/\/\)$/{ s//\1/; q; }
18504 /^X\(\/\).*/{ s//\1/; q; }
18505 s/.*/./; q'`
18506 done
18507 test ! -n "$as_dirs" || mkdir $as_dirs
18508 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18509 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18510 { (exit 1); exit 1; }; }; }
18512 # echo "creating $dirpart/$file"
18513 echo '# dummy' > "$dirpart/$file"
18514 done
18515 done
18517 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18518 case " $CONFIG_FILES " in
18519 *" Makefile "*)
18520 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18521 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18523 esac
18524 for ac_multi_file in $CONFIG_FILES; do
18525 case $ac_multi_file in
18526 */Makefile)
18527 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18528 esac
18529 done
18531 esac
18532 done
18533 _ACEOF
18535 cat >>$CONFIG_STATUS <<\_ACEOF
18537 { (exit 0); exit 0; }
18538 _ACEOF
18539 chmod +x $CONFIG_STATUS
18540 ac_clean_files=$ac_clean_files_save
18543 # configure is writing to config.log, and then calls config.status.
18544 # config.status does its own redirection, appending to config.log.
18545 # Unfortunately, on DOS this fails, as config.log is still kept open
18546 # by configure, so config.status won't be able to write to it; its
18547 # output is simply discarded. So we exec the FD to /dev/null,
18548 # effectively closing config.log, so it can be properly (re)opened and
18549 # appended to by config.status. When coming back to configure, we
18550 # need to make the FD available again.
18551 if test "$no_create" != yes; then
18552 ac_cs_success=:
18553 ac_config_status_args=
18554 test "$silent" = yes &&
18555 ac_config_status_args="$ac_config_status_args --quiet"
18556 exec 5>/dev/null
18557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18558 exec 5>>config.log
18559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18560 # would make configure fail if this is the last instruction.
18561 $ac_cs_success || { (exit 1); exit 1; }
18565 # CONFIG_SUBDIRS section.
18567 if test "$no_recursion" != yes; then
18569 # Remove --cache-file and --srcdir arguments so they do not pile up.
18570 ac_sub_configure_args=
18571 ac_prev=
18572 for ac_arg in $ac_configure_args; do
18573 if test -n "$ac_prev"; then
18574 ac_prev=
18575 continue
18577 case $ac_arg in
18578 -cache-file | --cache-file | --cache-fil | --cache-fi \
18579 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18580 ac_prev=cache_file ;;
18581 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18582 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18583 | --c=*)
18585 --config-cache | -C)
18587 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18588 ac_prev=srcdir ;;
18589 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18591 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18592 ac_prev=prefix ;;
18593 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18595 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18596 esac
18597 done
18599 # Always prepend --prefix to ensure using the same prefix
18600 # in subdir configurations.
18601 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18603 ac_popdir=`pwd`
18604 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18606 # Do not complain, so a configure script can configure whichever
18607 # parts of a large source tree are present.
18608 test -d $srcdir/$ac_dir || continue
18610 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18611 echo "$as_me: configuring in $ac_dir" >&6;}
18612 { if $as_mkdir_p; then
18613 mkdir -p "$ac_dir"
18614 else
18615 as_dir="$ac_dir"
18616 as_dirs=
18617 while test ! -d "$as_dir"; do
18618 as_dirs="$as_dir $as_dirs"
18619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18621 X"$as_dir" : 'X\(//\)[^/]' \| \
18622 X"$as_dir" : 'X\(//\)$' \| \
18623 X"$as_dir" : 'X\(/\)' \| \
18624 . : '\(.\)' 2>/dev/null ||
18625 echo X"$as_dir" |
18626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18628 /^X\(\/\/\)$/{ s//\1/; q; }
18629 /^X\(\/\).*/{ s//\1/; q; }
18630 s/.*/./; q'`
18631 done
18632 test ! -n "$as_dirs" || mkdir $as_dirs
18633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18635 { (exit 1); exit 1; }; }; }
18637 ac_builddir=.
18639 if test "$ac_dir" != .; then
18640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18641 # A "../" for each directory in $ac_dir_suffix.
18642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18643 else
18644 ac_dir_suffix= ac_top_builddir=
18647 case $srcdir in
18648 .) # No --srcdir option. We are building in place.
18649 ac_srcdir=.
18650 if test -z "$ac_top_builddir"; then
18651 ac_top_srcdir=.
18652 else
18653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18654 fi ;;
18655 [\\/]* | ?:[\\/]* ) # Absolute path.
18656 ac_srcdir=$srcdir$ac_dir_suffix;
18657 ac_top_srcdir=$srcdir ;;
18658 *) # Relative path.
18659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18661 esac
18663 # Do not use `cd foo && pwd` to compute absolute paths, because
18664 # the directories may not exist.
18665 case `pwd` in
18666 .) ac_abs_builddir="$ac_dir";;
18668 case "$ac_dir" in
18669 .) ac_abs_builddir=`pwd`;;
18670 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18671 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18672 esac;;
18673 esac
18674 case $ac_abs_builddir in
18675 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18677 case ${ac_top_builddir}. in
18678 .) ac_abs_top_builddir=$ac_abs_builddir;;
18679 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18680 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18681 esac;;
18682 esac
18683 case $ac_abs_builddir in
18684 .) ac_abs_srcdir=$ac_srcdir;;
18686 case $ac_srcdir in
18687 .) ac_abs_srcdir=$ac_abs_builddir;;
18688 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18689 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18690 esac;;
18691 esac
18692 case $ac_abs_builddir in
18693 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18695 case $ac_top_srcdir in
18696 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18697 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18698 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18699 esac;;
18700 esac
18703 cd $ac_dir
18705 # Check for guested configure; otherwise get Cygnus style configure.
18706 if test -f $ac_srcdir/configure.gnu; then
18707 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18708 elif test -f $ac_srcdir/configure; then
18709 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18710 elif test -f $ac_srcdir/configure.in; then
18711 ac_sub_configure=$ac_configure
18712 else
18713 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18714 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18715 ac_sub_configure=
18718 # The recursion is here.
18719 if test -n "$ac_sub_configure"; then
18720 # Make the cache file name correct relative to the subdirectory.
18721 case $cache_file in
18722 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18723 *) # Relative path.
18724 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18725 esac
18727 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18728 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18729 # The eval makes quoting arguments work.
18730 eval $ac_sub_configure $ac_sub_configure_args \
18731 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18732 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18733 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18734 { (exit 1); exit 1; }; }
18737 cd $ac_popdir
18738 done