* gcc.dg/tree-ssa/ssa-ccp-11.c: Fix the test case and un-xfail.
[official-gcc.git] / libjava / configure
blob02f2460211f2215e44301ff12b99b9cbb89c2ab4
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_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 AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE QT_AWT_TRUE QT_AWT_FALSE GCJH ZIP 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 GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_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 THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE 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 GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-libgcj-debug enable runtime debugging code
861 --enable-java-awt list of AWT peer implementations to be built
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --disable-getenv-properties
867 don't set system properties from GCJ_PROPERTIES
868 --enable-hash-synchronization
869 use global hash table for monitor locks
870 --enable-gc-debug include full support for pointer backtracing etc.
871 --enable-interpreter enable interpreter
872 --enable-sjlj-exceptions
873 force use of builtin_setjmp for exceptions
874 --disable-java-net disable java.net
875 --disable-jvmpi disable JVMPI support
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
879 _g_switchUse thread-local storage
880 [default=yes]
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-target-subdir=SUBDIR
886 configure in a subdirectory
887 --with-cross-host=HOST configure with a cross compiler from HOST
888 --with-newlib configure with newlib
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-pic try to use only PIC/non-PIC objects default=use both
891 --with-java-home=DIRECTORY
892 value of java.home system property
893 --with-win32-nlsapi=ansi or unicows or unicode
894 native MinGW libgcj Win32 OS API (default is ansi)
895 --without-libffi don't use libffi
896 --with-ecos enable runtime eCos target support
897 --with-system-zlib use installed libz
898 --with-x use the X Window System
899 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
900 --without-libiconv-prefix don't search for libiconv in includedir and libdir
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CXX C++ compiler command
910 CXXFLAGS C++ compiler flags
911 CXXCPP C++ preprocessor
912 CPP C preprocessor
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
917 _ACEOF
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
922 ac_popdir=`pwd`
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
925 ac_builddir=.
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932 ac_dir_suffix= ac_top_builddir=
935 case $srcdir in
936 .) # No --srcdir option. We are building in place.
937 ac_srcdir=.
938 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=.
940 else
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 fi ;;
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
946 *) # Relative path.
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
956 case "$ac_dir" in
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
974 case $ac_srcdir in
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 esac;;
988 esac
990 cd $ac_dir
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
993 echo
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
996 echo
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1000 echo
1001 $ac_configure --help
1002 else
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 cd $ac_popdir
1006 done
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011 cat <<\_ACEOF
1012 libjava configure version-unused
1013 generated by GNU Autoconf 2.59
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1018 _ACEOF
1019 exit 0
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by libjava $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1029 $ $0 $@
1031 _ACEOF
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 _ASUNAME
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1060 IFS=$as_save_IFS
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1063 done
1065 } >&5
1067 cat >&5 <<_ACEOF
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1074 _ACEOF
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1089 for ac_arg
1091 case $ac_arg in
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 continue ;;
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 esac
1099 case $ac_pass in
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1105 else
1106 case $ac_arg in
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 esac
1115 -* ) ac_must_keep_next=true ;;
1116 esac
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1120 ac_sep=" "
1122 esac
1123 done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1136 echo
1138 cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143 echo
1144 # The following way of writing the cache mishandles newlines in values,
1146 (set) 2>&1 |
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 *ac_space=\ *)
1149 sed -n \
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 sed -n \
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 esac;
1159 echo
1161 cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166 echo
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1174 if test -n "$ac_subst_files"; then
1175 cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180 echo
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1185 done | sort
1186 echo
1189 if test -s confdefs.h; then
1190 cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195 echo
1196 sed "/^$/d" confdefs.h | sort
1197 echo
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1202 } >&5
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 exit $exit_status
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 else
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1258 . "$ac_site_file"
1260 done
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1268 case $cache_file in
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1271 esac
1273 else
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1276 >$cache_file
1279 # Check that the precious variables saved in the cache have kept the same
1280 # value.
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1289 set,)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,set)
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1297 ,);;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1307 fi;;
1308 esac
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1311 case $ac_new_val in
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1315 esac
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319 esac
1321 done
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 ac_aux_dir=
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367 if test -f $ac_dir/install-sh; then
1368 ac_aux_dir=$ac_dir
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1370 break
1371 elif test -f $ac_dir/install.sh; then
1372 ac_aux_dir=$ac_dir
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1374 break
1375 elif test -f $ac_dir/shtool; then
1376 ac_aux_dir=$ac_dir
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1378 break
1380 done
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403 ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407 { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1416 build=$ac_cv_build
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 case ${build_alias} in
1423 "") build_noncanonical=${build} ;;
1424 *) build_noncanonical=${build_alias} ;;
1425 esac
1427 case ${host_alias} in
1428 "") host_noncanonical=${build_noncanonical} ;;
1429 *) host_noncanonical=${host_alias} ;;
1430 esac
1432 case ${target_alias} in
1433 "") target_noncanonical=${host_noncanonical} ;;
1434 *) target_noncanonical=${target_alias} ;;
1435 esac
1437 # Prefix 'build-' so this never conflicts with target_subdir.
1438 build_subdir="build-${build_noncanonical}"
1439 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440 if ( test $srcdir = . && test -d gcc ) \
1441 || test -d $srcdir/../host-${host_noncanonical}; then
1442 host_subdir="host-${host_noncanonical}"
1443 else
1444 host_subdir=.
1446 # No prefix.
1447 target_subdir=${target_noncanonical}
1450 # We use these options to decide which functions to include.
1452 # Check whether --with-target-subdir or --without-target-subdir was given.
1453 if test "${with_target_subdir+set}" = set; then
1454 withval="$with_target_subdir"
1458 # We may get other options which we don't document:
1459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461 # When building with srcdir == objdir, links to the source files will
1462 # be created in directories within the target_subdir. We have to
1463 # adjust toplevel_srcdir accordingly, so that configure finds
1464 # install-sh and other auxiliary files that live in the top-level
1465 # source directory.
1466 if test "${srcdir}" = "."; then
1467 if test -z "${with_target_subdir}"; then
1468 toprel=".."
1469 else
1470 if test "${with_target_subdir}" != "."; then
1471 toprel="${with_multisrctop}../.."
1472 else
1473 toprel="${with_multisrctop}.."
1476 else
1477 toprel=".."
1480 libgcj_basedir=$srcdir/$toprel/./libjava
1483 echo "$as_me:$LINENO: checking host system type" >&5
1484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485 if test "${ac_cv_host+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 ac_cv_host_alias=$host_alias
1489 test -z "$ac_cv_host_alias" &&
1490 ac_cv_host_alias=$ac_cv_build_alias
1491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494 { (exit 1); exit 1; }; }
1497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498 echo "${ECHO_T}$ac_cv_host" >&6
1499 host=$ac_cv_host
1500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 echo "$as_me:$LINENO: checking target system type" >&5
1506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507 if test "${ac_cv_target+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 ac_cv_target_alias=$target_alias
1511 test "x$ac_cv_target_alias" = "x" &&
1512 ac_cv_target_alias=$ac_cv_host_alias
1513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520 echo "${ECHO_T}$ac_cv_target" >&6
1521 target=$ac_cv_target
1522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 # The aliases save the names the user supplied, while $host etc.
1528 # will get canonicalized.
1529 test -n "$target_alias" &&
1530 test "$program_prefix$program_suffix$program_transform_name" = \
1531 NONENONEs,x,x, &&
1532 program_prefix=${target_alias}-
1533 case ${build_alias} in
1534 "") build_noncanonical=${build} ;;
1535 *) build_noncanonical=${build_alias} ;;
1536 esac
1538 case ${target_alias} in
1539 "") target_noncanonical=${host_noncanonical} ;;
1540 *) target_noncanonical=${target_alias} ;;
1541 esac
1546 # This works around the fact that libtool configuration may change LD
1547 # for this particular configuration, but some shells, instead of
1548 # keeping the changes in LD private, export them just because LD is
1549 # exported.
1550 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1554 LN_S=$as_ln_s
1555 if test "$LN_S" = "ln -s"; then
1556 echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560 echo "${ECHO_T}no, using $LN_S" >&6
1564 # This works around an automake problem.
1565 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1569 # Check whether --with-cross-host or --without-cross-host was given.
1570 if test "${with_cross_host+set}" = set; then
1571 withval="$with_cross_host"
1576 # Check whether --with-newlib or --without-newlib was given.
1577 if test "${with_newlib+set}" = set; then
1578 withval="$with_newlib"
1582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583 if test "${enable_version_specific_runtime_libs+set}" = set; then
1584 enableval="$enable_version_specific_runtime_libs"
1585 case "$enableval" in
1586 yes) version_specific_libs=yes ;;
1587 no) version_specific_libs=no ;;
1588 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590 { (exit 1); exit 1; }; };;
1591 esac
1592 else
1593 version_specific_libs=no
1597 # Default to --enable-multilib
1598 # Check whether --enable-multilib or --disable-multilib was given.
1599 if test "${enable_multilib+set}" = set; then
1600 enableval="$enable_multilib"
1601 case "${enableval}" in
1602 yes) multilib=yes ;;
1603 no) multilib=no ;;
1604 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606 { (exit 1); exit 1; }; } ;;
1607 esac
1608 else
1609 multilib=yes
1611 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1614 # (1) We use an abnormal CXX (without library references), so we
1615 # must cache it under a different name.
1616 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1617 # the non-multilib-adjusted value will be used in multilibs.
1618 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1619 # (4) As another side effect, automake doesn't automatically include them
1620 # in Makefile.in.
1621 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1622 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1623 # used in later tests. This may not be necessary in libjava; I don't know.
1627 save_CXXFLAGS="$CXXFLAGS"
1628 CXXFLAGS="$CXXFLAGS -fno-builtin"
1629 ac_ext=c
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1656 done
1657 done
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1671 if test -z "$ac_cv_prog_CC"; then
1672 ac_ct_CC=$CC
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 if test -n "$ac_ct_CC"; then
1681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_ac_ct_CC="gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 break 2
1694 done
1695 done
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1703 else
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1708 CC=$ac_ct_CC
1709 else
1710 CC="$ac_cv_prog_CC"
1713 if test -z "$CC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 break 2
1736 done
1737 done
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1752 ac_ct_CC=$CC
1753 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1766 IFS=$as_save_IFS
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1774 done
1775 done
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1788 CC=$ac_ct_CC
1789 else
1790 CC="$ac_cv_prog_CC"
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805 ac_prog_rejected=no
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1809 IFS=$as_save_IFS
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1815 continue
1817 ac_cv_prog_CC="cc"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1821 done
1822 done
1824 if test $ac_prog_rejected = yes; then
1825 # We found a bogon in the path, so make sure we never use it.
1826 set dummy $ac_cv_prog_CC
1827 shift
1828 if test $# != 0; then
1829 # We chose a different compiler from the bogus one.
1830 # However, it has the same basename, so the bogon will be chosen
1831 # first if we set CC to just the basename; use the full file name.
1832 shift
1833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1850 for ac_prog in cl
1852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1873 done
1874 done
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$CC" && break
1888 done
1890 if test -z "$CC"; then
1891 ac_ct_CC=$CC
1892 for ac_prog in cl
1894 # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1915 done
1916 done
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$ac_ct_CC" && break
1930 done
1932 CC=$ac_ct_CC
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946 "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949 (eval $ac_compiler --version </dev/null >&5) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954 (eval $ac_compiler -v </dev/null >&5) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959 (eval $ac_compiler -V </dev/null >&5) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h. */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1972 main ()
1976 return 0;
1978 _ACEOF
1979 # FIXME: Cleanup?
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1981 (eval $ac_link) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 gcc_no_link=no
1986 else
1987 gcc_no_link=yes
1990 if test x$gcc_no_link = xyes; then
1991 # Setting cross_compile will disable run tests; it will
1992 # also disable AC_CHECK_FILE but that's generally
1993 # correct if we can't link.
1994 cross_compiling=yes
1995 EXEEXT=
1996 else
1997 cat >conftest.$ac_ext <<_ACEOF
1998 /* confdefs.h. */
1999 _ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h. */
2005 main ()
2009 return 0;
2011 _ACEOF
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2016 # of exeext.
2017 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021 (eval $ac_link_default) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; then
2025 # Find the output, starting from the most likely. This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # resort.
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031 ac_cv_exeext=
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 test -f "$ac_file" || continue
2036 case $ac_file in
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2039 conftest.$ac_ext )
2040 # This is the source file.
2042 [ab].out )
2043 # We found the default executable, but exeext='' is most
2044 # certainly right.
2045 break;;
2046 *.* )
2047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 # FIXME: I believe we export ac_cv_exeext for Libtool,
2049 # but it would be cool to find out if it's true. Does anybody
2050 # maintain Libtool? --akim.
2051 export ac_cv_exeext
2052 break;;
2054 break;;
2055 esac
2056 done
2057 else
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065 { (exit 77); exit 77; }; }
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079 if { ac_try='./$ac_file'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 (eval $ac_try) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2085 cross_compiling=no
2086 else
2087 if test "$cross_compiling" = maybe; then
2088 cross_compiling=yes
2089 else
2090 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run. If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115 (eval $ac_link) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2122 # `rm'.
2123 for ac_file in conftest.exe conftest conftest.*; do
2124 test -f "$ac_file" || continue
2125 case $ac_file in
2126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 export ac_cv_exeext
2129 break;;
2130 * ) break;;
2131 esac
2132 done
2133 else
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2147 ac_exeext=$EXEEXT
2149 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2150 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2151 if test "${ac_cv_objext+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h. */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2162 main ()
2166 return 0;
2168 _ACEOF
2169 rm -f conftest.o conftest.obj
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179 break;;
2180 esac
2181 done
2182 else
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196 echo "${ECHO_T}$ac_cv_objext" >&6
2197 OBJEXT=$ac_cv_objext
2198 ac_objext=$OBJEXT
2199 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2201 if test "${ac_cv_c_compiler_gnu+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 ()
2214 #ifndef __GNUC__
2215 choke me
2216 #endif
2219 return 0;
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 ac_compiler_gnu=yes
2245 else
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2249 ac_compiler_gnu=no
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257 GCC=`test $ac_compiler_gnu = yes && echo yes`
2258 ac_test_CFLAGS=${CFLAGS+set}
2259 ac_save_CFLAGS=$CFLAGS
2260 CFLAGS="-g"
2261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263 if test "${ac_cv_prog_cc_g+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h. */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2274 main ()
2278 return 0;
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2284 ac_status=$?
2285 grep -v '^ *+' conftest.er1 >conftest.err
2286 rm -f conftest.er1
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_c_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_cv_prog_cc_g=yes
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 ac_cv_prog_cc_g=no
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2313 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2314 if test "$ac_test_CFLAGS" = set; then
2315 CFLAGS=$ac_save_CFLAGS
2316 elif test $ac_cv_prog_cc_g = yes; then
2317 if test "$GCC" = yes; then
2318 CFLAGS="-g -O2"
2319 else
2320 CFLAGS="-g"
2322 else
2323 if test "$GCC" = yes; then
2324 CFLAGS="-O2"
2325 else
2326 CFLAGS=
2329 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2330 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334 ac_cv_prog_cc_stdc=no
2335 ac_save_CC=$CC
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342 #include <stdarg.h>
2343 #include <stdio.h>
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2350 char **p;
2351 int i;
2353 return p[i];
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2357 char *s;
2358 va_list v;
2359 va_start (v,p);
2360 s = g (p, va_arg (v,int));
2361 va_end (v);
2362 return s;
2365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2366 function prototypes and stuff, but not '\xHH' hex character constants.
2367 These don't provoke an error unfortunately, instead are silently treated
2368 as 'x'. The following induces an error, until -std1 is added to get
2369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2370 array size at least. It's necessary to write '\x00'==0 to get something
2371 that's true only with -std1. */
2372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374 int test (int i, double x);
2375 struct s1 {int (*f) (int a);};
2376 struct s2 {int (*f) (double a);};
2377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2378 int argc;
2379 char **argv;
2381 main ()
2383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2385 return 0;
2387 _ACEOF
2388 # Don't try gcc -ansi; that turns off useful extensions and
2389 # breaks some systems' header files.
2390 # AIX -qlanglvl=ansi
2391 # Ultrix and OSF/1 -std1
2392 # HP-UX 10.20 and later -Ae
2393 # HP-UX older versions -Aa -D_HPUX_SOURCE
2394 # SVR4 -Xc -D__EXTENSIONS__
2395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397 CC="$ac_save_CC $ac_arg"
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_cv_prog_cc_stdc=$ac_arg
2421 break
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext
2428 done
2429 rm -f conftest.$ac_ext conftest.$ac_objext
2430 CC=$ac_save_CC
2434 case "x$ac_cv_prog_cc_stdc" in
2435 x|xno)
2436 echo "$as_me:$LINENO: result: none needed" >&5
2437 echo "${ECHO_T}none needed" >&6 ;;
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2441 CC="$CC $ac_cv_prog_cc_stdc" ;;
2442 esac
2444 # Some people use a C++ compiler to compile C. Since we use `exit',
2445 # in C++ we need to declare it. In case someone uses the same compiler
2446 # for both compiling C and C++ we need to have the C++ compiler decide
2447 # the declaration of exit, since it's the most demanding environment.
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #ifndef __cplusplus
2450 choke me
2451 #endif
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 for ac_declaration in \
2476 '' \
2477 'extern "C" void std::exit (int) throw (); using std::exit;' \
2478 'extern "C" void std::exit (int); using std::exit;' \
2479 'extern "C" void exit (int) throw ();' \
2480 'extern "C" void exit (int);' \
2481 'void exit (int);'
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 $ac_declaration
2490 #include <stdlib.h>
2492 main ()
2494 exit (42);
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 continue
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 $ac_declaration
2537 main ()
2539 exit (42);
2541 return 0;
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 break
2567 else
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 done
2574 rm -f conftest*
2575 if test -n "$ac_declaration"; then
2576 echo '#ifdef __cplusplus' >>confdefs.h
2577 echo $ac_declaration >>confdefs.h
2578 echo '#endif' >>confdefs.h
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593 ac_ext=cc
2594 ac_cpp='$CXXCPP $CPPFLAGS'
2595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2598 if test -n "$ac_tool_prefix"; then
2599 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603 echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$CXX"; then
2609 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2627 CXX=$glibcxx_cv_prog_CXX
2628 if test -n "$CXX"; then
2629 echo "$as_me:$LINENO: result: $CXX" >&5
2630 echo "${ECHO_T}$CXX" >&6
2631 else
2632 echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6
2636 test -n "$CXX" && break
2637 done
2639 if test -z "$CXX"; then
2640 ac_ct_CXX=$CXX
2641 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 if test -n "$ac_ct_CXX"; then
2651 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_ac_ct_CXX="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2664 done
2665 done
2669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2670 if test -n "$ac_ct_CXX"; then
2671 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2672 echo "${ECHO_T}$ac_ct_CXX" >&6
2673 else
2674 echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2678 test -n "$ac_ct_CXX" && break
2679 done
2680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2682 CXX=$ac_ct_CXX
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO:" \
2688 "checking for C++ compiler version" >&5
2689 ac_compiler=`set X $ac_compile; echo $2`
2690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2691 (eval $ac_compiler --version </dev/null >&5) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2696 (eval $ac_compiler -v </dev/null >&5) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2701 (eval $ac_compiler -V </dev/null >&5) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h. */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2719 main ()
2721 #ifndef __GNUC__
2722 choke me
2723 #endif
2726 return 0;
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_cxx_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_compiler_gnu=yes
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_compiler_gnu=no
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764 GXX=`test $ac_compiler_gnu = yes && echo yes`
2765 ac_test_CXXFLAGS=${CXXFLAGS+set}
2766 ac_save_CXXFLAGS=$CXXFLAGS
2767 CXXFLAGS="-g"
2768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cxx_g+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2781 main ()
2785 return 0;
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_cxx_werror_flag"
2798 || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 ac_cv_prog_cxx_g=yes
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 ac_cv_prog_cxx_g=no
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2821 if test "$ac_test_CXXFLAGS" = set; then
2822 CXXFLAGS=$ac_save_CXXFLAGS
2823 elif test $ac_cv_prog_cxx_g = yes; then
2824 if test "$GXX" = yes; then
2825 CXXFLAGS="-g -O2"
2826 else
2827 CXXFLAGS="-g"
2829 else
2830 if test "$GXX" = yes; then
2831 CXXFLAGS="-O2"
2832 else
2833 CXXFLAGS=
2836 for ac_declaration in \
2837 '' \
2838 'extern "C" void std::exit (int) throw (); using std::exit;' \
2839 'extern "C" void std::exit (int); using std::exit;' \
2840 'extern "C" void exit (int) throw ();' \
2841 'extern "C" void exit (int);' \
2842 'void exit (int);'
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h. */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 $ac_declaration
2851 #include <stdlib.h>
2853 main ()
2855 exit (42);
2857 return 0;
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_cxx_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2883 else
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 continue
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890 cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896 $ac_declaration
2898 main ()
2900 exit (42);
2902 return 0;
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -z "$ac_cxx_werror_flag"
2915 || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 break
2928 else
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 done
2935 rm -f conftest*
2936 if test -n "$ac_declaration"; then
2937 echo '#ifdef __cplusplus' >>confdefs.h
2938 echo $ac_declaration >>confdefs.h
2939 echo '#endif' >>confdefs.h
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 CXXFLAGS="$save_CXXFLAGS"
2954 am__api_version="1.9"
2955 # Find a good install program. We prefer a C program (faster),
2956 # so one script is as good as another. But avoid the broken or
2957 # incompatible versions:
2958 # SysV /etc/install, /usr/sbin/install
2959 # SunOS /usr/etc/install
2960 # IRIX /sbin/install
2961 # AIX /bin/install
2962 # AmigaOS /C/install, which installs bootblocks on floppy discs
2963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2966 # OS/2's system install, which has a completely different semantic
2967 # ./install, which can be erroneously created by make from ./install.sh.
2968 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2970 if test -z "$INSTALL"; then
2971 if test "${ac_cv_path_install+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 # Account for people who put trailing slashes in PATH elements.
2980 case $as_dir/ in
2981 ./ | .// | /cC/* | \
2982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984 /usr/ucb/* ) ;;
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2988 # by default.
2989 for ac_prog in ginstall scoinst install; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992 if test $ac_prog = install &&
2993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # AIX install. It has an incompatible calling convention.
2996 elif test $ac_prog = install &&
2997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # program-specific install script used by HP pwplus--don't use.
3000 else
3001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3002 break 3
3005 done
3006 done
3008 esac
3009 done
3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL=$ac_cv_path_install
3015 else
3016 # As a last resort, use the slow shell script. We don't cache a
3017 # path for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the path is relative.
3020 INSTALL=$ac_install_sh
3023 echo "$as_me:$LINENO: result: $INSTALL" >&5
3024 echo "${ECHO_T}$INSTALL" >&6
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3036 # Just in case
3037 sleep 1
3038 echo timestamp > conftest.file
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments. Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3043 # directory).
3044 if (
3045 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046 if test "$*" = "X"; then
3047 # -L didn't work.
3048 set X `ls -t $srcdir/configure conftest.file`
3050 rm -f conftest.file
3051 if test "$*" != "X $srcdir/configure conftest.file" \
3052 && test "$*" != "X conftest.file $srcdir/configure"; then
3054 # If neither matched, then we have a broken ls. This can happen
3055 # if, for instance, CONFIG_SHELL is bash and it inherits a
3056 # broken ls alias from the environment. This has actually
3057 # happened. Such a system could not be considered "sane".
3058 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&5
3060 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3061 alias in your environment" >&2;}
3062 { (exit 1); exit 1; }; }
3065 test "$2" = conftest.file
3067 then
3068 # Ok.
3070 else
3071 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3072 Check your system clock" >&5
3073 echo "$as_me: error: newly created file is older than distributed files!
3074 Check your system clock" >&2;}
3075 { (exit 1); exit 1; }; }
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3079 test "$program_prefix" != NONE &&
3080 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3084 # Double any \ or $. echo might interpret backslashes.
3085 # By default was `s,x,x', remove it if useless.
3086 cat <<\_ACEOF >conftest.sed
3087 s/[\\$]/&&/g;s/;s,x,x,$//
3088 _ACEOF
3089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3090 rm conftest.sed
3092 # expand $ac_aux_dir to an absolute path
3093 am_aux_dir=`cd $ac_aux_dir && pwd`
3095 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3096 # Use eval to expand $SHELL
3097 if eval "$MISSING --run true"; then
3098 am_missing_run="$MISSING --run "
3099 else
3100 am_missing_run=
3101 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3102 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3105 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3106 # We used to keeping the `.' as first argument, in order to
3107 # allow $(mkdir_p) to be used without argument. As in
3108 # $(mkdir_p) $(somedir)
3109 # where $(somedir) is conditionally defined. However this is wrong
3110 # for two reasons:
3111 # 1. if the package is installed by a user who cannot write `.'
3112 # make install will fail,
3113 # 2. the above comment should most certainly read
3114 # $(mkdir_p) $(DESTDIR)$(somedir)
3115 # so it does not work when $(somedir) is undefined and
3116 # $(DESTDIR) is not.
3117 # To support the latter case, we have to write
3118 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3119 # so the `.' trick is pointless.
3120 mkdir_p='mkdir -p --'
3121 else
3122 # On NextStep and OpenStep, the `mkdir' command does not
3123 # recognize any option. It will interpret all options as
3124 # directories to create, and then abort because `.' already
3125 # exists.
3126 for d in ./-p ./--version;
3128 test -d $d && rmdir $d
3129 done
3130 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3131 if test -f "$ac_aux_dir/mkinstalldirs"; then
3132 mkdir_p='$(mkinstalldirs)'
3133 else
3134 mkdir_p='$(install_sh) -d'
3138 for ac_prog in gawk mawk nawk awk
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_AWK+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 if test -n "$AWK"; then
3148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_AWK="$ac_prog"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3166 AWK=$ac_cv_prog_AWK
3167 if test -n "$AWK"; then
3168 echo "$as_me:$LINENO: result: $AWK" >&5
3169 echo "${ECHO_T}$AWK" >&6
3170 else
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3175 test -n "$AWK" && break
3176 done
3178 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3181 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 cat >conftest.make <<\_ACEOF
3185 all:
3186 @echo 'ac_maketemp="$(MAKE)"'
3187 _ACEOF
3188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3189 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3190 if test -n "$ac_maketemp"; then
3191 eval ac_cv_prog_make_${ac_make}_set=yes
3192 else
3193 eval ac_cv_prog_make_${ac_make}_set=no
3195 rm -f conftest.make
3197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3200 SET_MAKE=
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 SET_MAKE="MAKE=${MAKE-make}"
3207 rm -rf .tst 2>/dev/null
3208 mkdir .tst 2>/dev/null
3209 if test -d .tst; then
3210 am__leading_dot=.
3211 else
3212 am__leading_dot=_
3214 rmdir .tst 2>/dev/null
3216 DEPDIR="${am__leading_dot}deps"
3218 ac_config_commands="$ac_config_commands depfiles"
3221 am_make=${MAKE-make}
3222 cat > confinc << 'END'
3223 am__doit:
3224 @echo done
3225 .PHONY: am__doit
3227 # If we don't find an include directive, just comment out the code.
3228 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3229 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3230 am__include="#"
3231 am__quote=
3232 _am_result=none
3233 # First try GNU make style include.
3234 echo "include confinc" > confmf
3235 # We grep out `Entering directory' and `Leaving directory'
3236 # messages which can occur if `w' ends up in MAKEFLAGS.
3237 # In particular we don't look at `^make:' because GNU make might
3238 # be invoked under some other name (usually "gmake"), in which
3239 # case it prints its new name instead of `make'.
3240 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3241 am__include=include
3242 am__quote=
3243 _am_result=GNU
3245 # Now try BSD make style include.
3246 if test "$am__include" = "#"; then
3247 echo '.include "confinc"' > confmf
3248 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3249 am__include=.include
3250 am__quote="\""
3251 _am_result=BSD
3256 echo "$as_me:$LINENO: result: $_am_result" >&5
3257 echo "${ECHO_T}$_am_result" >&6
3258 rm -f confinc confmf
3260 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3261 if test "${enable_dependency_tracking+set}" = set; then
3262 enableval="$enable_dependency_tracking"
3265 if test "x$enable_dependency_tracking" != xno; then
3266 am_depcomp="$ac_aux_dir/depcomp"
3267 AMDEPBACKSLASH='\'
3271 if test "x$enable_dependency_tracking" != xno; then
3272 AMDEP_TRUE=
3273 AMDEP_FALSE='#'
3274 else
3275 AMDEP_TRUE='#'
3276 AMDEP_FALSE=
3281 # test to see if srcdir already configured
3282 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3283 test -f $srcdir/config.status; then
3284 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3285 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3286 { (exit 1); exit 1; }; }
3289 # test whether we have cygpath
3290 if test -z "$CYGPATH_W"; then
3291 if (cygpath --version) >/dev/null 2>/dev/null; then
3292 CYGPATH_W='cygpath -w'
3293 else
3294 CYGPATH_W=echo
3299 # Define the identity of the package.
3300 PACKAGE='libjava'
3301 VERSION='version-unused'
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE "$PACKAGE"
3306 _ACEOF
3309 cat >>confdefs.h <<_ACEOF
3310 #define VERSION "$VERSION"
3311 _ACEOF
3313 # Some tools Automake needs.
3315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3331 # Installed binaries are usually stripped using `strip' when the user
3332 # run `make install-strip'. However `strip' might not be the right
3333 # tool to use in cross-compilation environments, therefore Automake
3334 # will honor the `STRIP' environment variable to overrule this program.
3335 if test "$cross_compiling" != no; then
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}strip; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_STRIP+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 if test -n "$STRIP"; then
3345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3363 STRIP=$ac_cv_prog_STRIP
3364 if test -n "$STRIP"; then
3365 echo "$as_me:$LINENO: result: $STRIP" >&5
3366 echo "${ECHO_T}$STRIP" >&6
3367 else
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3373 if test -z "$ac_cv_prog_STRIP"; then
3374 ac_ct_STRIP=$STRIP
3375 # Extract the first word of "strip", so it can be a program name with args.
3376 set dummy strip; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 if test -n "$ac_ct_STRIP"; then
3383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_STRIP="strip"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3396 done
3397 done
3399 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3403 if test -n "$ac_ct_STRIP"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3405 echo "${ECHO_T}$ac_ct_STRIP" >&6
3406 else
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3411 STRIP=$ac_ct_STRIP
3412 else
3413 STRIP="$ac_cv_prog_STRIP"
3417 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3419 # We need awk for the "check" target. The system "awk" is bad on
3420 # some platforms.
3421 # Always define AMTAR for backward compatibility.
3423 AMTAR=${AMTAR-"${am_missing_run}tar"}
3425 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3430 depcc="$CC" am_compiler_list=
3432 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3433 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3434 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3438 # We make a subdir and do the tests there. Otherwise we can end up
3439 # making bogus files that we don't know about and never remove. For
3440 # instance it was reported that on HP-UX the gcc test will end up
3441 # making a dummy file named `D' -- because `-MD' means `put the output
3442 # in D'.
3443 mkdir conftest.dir
3444 # Copy depcomp to subdir because otherwise we won't find it if we're
3445 # using a relative directory.
3446 cp "$am_depcomp" conftest.dir
3447 cd conftest.dir
3448 # We will build objects and dependencies in a subdirectory because
3449 # it helps to detect inapplicable dependency modes. For instance
3450 # both Tru64's cc and ICC support -MD to output dependencies as a
3451 # side effect of compilation, but ICC will put the dependencies in
3452 # the current directory while Tru64 will put them in the object
3453 # directory.
3454 mkdir sub
3456 am_cv_CC_dependencies_compiler_type=none
3457 if test "$am_compiler_list" = ""; then
3458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3460 for depmode in $am_compiler_list; do
3461 # Setup a source with many dependencies, because some compilers
3462 # like to wrap large dependency lists on column 80 (with \), and
3463 # we should not choose a depcomp mode which is confused by this.
3465 # We need to recreate these files for each test, as the compiler may
3466 # overwrite some of them when testing with obscure command lines.
3467 # This happens at least with the AIX C compiler.
3468 : > sub/conftest.c
3469 for i in 1 2 3 4 5 6; do
3470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3472 # Solaris 8's {/usr,}/bin/sh.
3473 touch sub/conftst$i.h
3474 done
3475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3477 case $depmode in
3478 nosideeffect)
3479 # after this tag, mechanisms are not by side-effect, so they'll
3480 # only be used when explicitly requested
3481 if test "x$enable_dependency_tracking" = xyes; then
3482 continue
3483 else
3484 break
3487 none) break ;;
3488 esac
3489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3490 # mode. It turns out that the SunPro C++ compiler does not properly
3491 # handle `-M -o', and we need to detect this.
3492 if depmode=$depmode \
3493 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3495 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3496 >/dev/null 2>conftest.err &&
3497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500 # icc doesn't choke on unknown options, it will just issue warnings
3501 # or remarks (even with -Werror). So we grep stderr for any message
3502 # that says an option was ignored or not supported.
3503 # When given -MP, icc 7.0 and 7.1 complain thusly:
3504 # icc: Command line warning: ignoring option '-M'; no argument required
3505 # The diagnosis changed in icc 8.0:
3506 # icc: Command line remark: option '-MP' not supported
3507 if (grep 'ignoring option' conftest.err ||
3508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509 am_cv_CC_dependencies_compiler_type=$depmode
3510 break
3513 done
3515 cd ..
3516 rm -rf conftest.dir
3517 else
3518 am_cv_CC_dependencies_compiler_type=none
3522 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3523 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3524 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529 test "x$enable_dependency_tracking" != xno \
3530 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3531 am__fastdepCC_TRUE=
3532 am__fastdepCC_FALSE='#'
3533 else
3534 am__fastdepCC_TRUE='#'
3535 am__fastdepCC_FALSE=
3539 depcc="$CXX" am_compiler_list=
3541 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3543 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547 # We make a subdir and do the tests there. Otherwise we can end up
3548 # making bogus files that we don't know about and never remove. For
3549 # instance it was reported that on HP-UX the gcc test will end up
3550 # making a dummy file named `D' -- because `-MD' means `put the output
3551 # in D'.
3552 mkdir conftest.dir
3553 # Copy depcomp to subdir because otherwise we won't find it if we're
3554 # using a relative directory.
3555 cp "$am_depcomp" conftest.dir
3556 cd conftest.dir
3557 # We will build objects and dependencies in a subdirectory because
3558 # it helps to detect inapplicable dependency modes. For instance
3559 # both Tru64's cc and ICC support -MD to output dependencies as a
3560 # side effect of compilation, but ICC will put the dependencies in
3561 # the current directory while Tru64 will put them in the object
3562 # directory.
3563 mkdir sub
3565 am_cv_CXX_dependencies_compiler_type=none
3566 if test "$am_compiler_list" = ""; then
3567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569 for depmode in $am_compiler_list; do
3570 # Setup a source with many dependencies, because some compilers
3571 # like to wrap large dependency lists on column 80 (with \), and
3572 # we should not choose a depcomp mode which is confused by this.
3574 # We need to recreate these files for each test, as the compiler may
3575 # overwrite some of them when testing with obscure command lines.
3576 # This happens at least with the AIX C compiler.
3577 : > sub/conftest.c
3578 for i in 1 2 3 4 5 6; do
3579 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581 # Solaris 8's {/usr,}/bin/sh.
3582 touch sub/conftst$i.h
3583 done
3584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586 case $depmode in
3587 nosideeffect)
3588 # after this tag, mechanisms are not by side-effect, so they'll
3589 # only be used when explicitly requested
3590 if test "x$enable_dependency_tracking" = xyes; then
3591 continue
3592 else
3593 break
3596 none) break ;;
3597 esac
3598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599 # mode. It turns out that the SunPro C++ compiler does not properly
3600 # handle `-M -o', and we need to detect this.
3601 if depmode=$depmode \
3602 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605 >/dev/null 2>conftest.err &&
3606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609 # icc doesn't choke on unknown options, it will just issue warnings
3610 # or remarks (even with -Werror). So we grep stderr for any message
3611 # that says an option was ignored or not supported.
3612 # When given -MP, icc 7.0 and 7.1 complain thusly:
3613 # icc: Command line warning: ignoring option '-M'; no argument required
3614 # The diagnosis changed in icc 8.0:
3615 # icc: Command line remark: option '-MP' not supported
3616 if (grep 'ignoring option' conftest.err ||
3617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618 am_cv_CXX_dependencies_compiler_type=$depmode
3619 break
3622 done
3624 cd ..
3625 rm -rf conftest.dir
3626 else
3627 am_cv_CXX_dependencies_compiler_type=none
3631 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3632 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3633 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3638 test "x$enable_dependency_tracking" != xno \
3639 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3640 am__fastdepCXX_TRUE=
3641 am__fastdepCXX_FALSE='#'
3642 else
3643 am__fastdepCXX_TRUE='#'
3644 am__fastdepCXX_FALSE=
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}as; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_AS+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 if test -n "$AS"; then
3659 ac_cv_prog_AS="$AS" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_AS="${ac_tool_prefix}as"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3677 AS=$ac_cv_prog_AS
3678 if test -n "$AS"; then
3679 echo "$as_me:$LINENO: result: $AS" >&5
3680 echo "${ECHO_T}$AS" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$ac_cv_prog_AS"; then
3688 ac_ct_AS=$AS
3689 # Extract the first word of "as", so it can be a program name with args.
3690 set dummy as; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test -n "$ac_ct_AS"; then
3697 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_ac_ct_AS="as"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3715 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3716 if test -n "$ac_ct_AS"; then
3717 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3718 echo "${ECHO_T}$ac_ct_AS" >&6
3719 else
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3724 AS=$ac_ct_AS
3725 else
3726 AS="$ac_cv_prog_AS"
3729 if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ar; ac_word=$2
3732 echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_AR+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 if test -n "$AR"; then
3738 ac_cv_prog_AR="$AR" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_AR="${ac_tool_prefix}ar"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3756 AR=$ac_cv_prog_AR
3757 if test -n "$AR"; then
3758 echo "$as_me:$LINENO: result: $AR" >&5
3759 echo "${ECHO_T}$AR" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3766 if test -z "$ac_cv_prog_AR"; then
3767 ac_ct_AR=$AR
3768 # Extract the first word of "ar", so it can be a program name with args.
3769 set dummy ar; ac_word=$2
3770 echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 if test -n "$ac_ct_AR"; then
3776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785 ac_cv_prog_ac_ct_AR="ar"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3795 if test -n "$ac_ct_AR"; then
3796 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3797 echo "${ECHO_T}$ac_ct_AR" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 AR=$ac_ct_AR
3804 else
3805 AR="$ac_cv_prog_AR"
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_RANLIB+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 if test -n "$RANLIB"; then
3817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3830 done
3831 done
3835 RANLIB=$ac_cv_prog_RANLIB
3836 if test -n "$RANLIB"; then
3837 echo "$as_me:$LINENO: result: $RANLIB" >&5
3838 echo "${ECHO_T}$RANLIB" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3845 if test -z "$ac_cv_prog_RANLIB"; then
3846 ac_ct_RANLIB=$RANLIB
3847 # Extract the first word of "ranlib", so it can be a program name with args.
3848 set dummy ranlib; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 if test -n "$ac_ct_RANLIB"; then
3855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_RANLIB="ranlib"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3871 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3875 if test -n "$ac_ct_RANLIB"; then
3876 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3877 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3878 else
3879 echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3883 RANLIB=$ac_ct_RANLIB
3884 else
3885 RANLIB="$ac_cv_prog_RANLIB"
3889 # Find a good install program. We prefer a C program (faster),
3890 # so one script is as good as another. But avoid the broken or
3891 # incompatible versions:
3892 # SysV /etc/install, /usr/sbin/install
3893 # SunOS /usr/etc/install
3894 # IRIX /sbin/install
3895 # AIX /bin/install
3896 # AmigaOS /C/install, which installs bootblocks on floppy discs
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # OS/2's system install, which has a completely different semantic
3901 # ./install, which can be erroneously created by make from ./install.sh.
3902 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3904 if test -z "$INSTALL"; then
3905 if test "${ac_cv_path_install+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 # Account for people who put trailing slashes in PATH elements.
3914 case $as_dir/ in
3915 ./ | .// | /cC/* | \
3916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3918 /usr/ucb/* ) ;;
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3922 # by default.
3923 for ac_prog in ginstall scoinst install; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926 if test $ac_prog = install &&
3927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3930 elif test $ac_prog = install &&
3931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3934 else
3935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3936 break 3
3939 done
3940 done
3942 esac
3943 done
3947 if test "${ac_cv_path_install+set}" = set; then
3948 INSTALL=$ac_cv_path_install
3949 else
3950 # As a last resort, use the slow shell script. We don't cache a
3951 # path for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the path is relative.
3954 INSTALL=$ac_install_sh
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3969 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3970 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3971 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3972 if test "${enable_maintainer_mode+set}" = set; then
3973 enableval="$enable_maintainer_mode"
3974 USE_MAINTAINER_MODE=$enableval
3975 else
3976 USE_MAINTAINER_MODE=no
3978 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3979 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3982 if test $USE_MAINTAINER_MODE = yes; then
3983 MAINTAINER_MODE_TRUE=
3984 MAINTAINER_MODE_FALSE='#'
3985 else
3986 MAINTAINER_MODE_TRUE='#'
3987 MAINTAINER_MODE_FALSE=
3990 MAINT=$MAINTAINER_MODE_TRUE
3996 # configure.host sets the following important variables
3997 # libgcj_cflags - host specific C compiler flags
3998 # libgcj_cxxflags - host specific C++ compiler flags
3999 # libgcj_javaflags - host specific Java compiler flags
4001 libgcj_cflags=
4002 libgcj_cxxflags=
4003 libgcj_javaflags=
4005 . ${srcdir}/configure.host
4007 LIBGCJ_CFLAGS="${libgcj_cflags}"
4008 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4009 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4010 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4016 # Only use libltdl for non-newlib builds.
4017 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4018 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4020 library_names_spec=
4021 libname_spec='lib$name'
4022 soname_spec=
4023 shrext=".so"
4024 postinstall_cmds=
4025 postuninstall_cmds=
4026 finish_cmds=
4027 finish_eval=
4028 shlibpath_var=
4029 shlibpath_overrides_runpath=unknown
4030 version_type=none
4031 dynamic_linker="$host_os ld.so"
4032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4033 if test "$GCC" = yes; then
4034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4035 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4036 # if the path contains ";" then we assume it to be the separator
4037 # otherwise default to the standard path separator (i.e. ":") - it is
4038 # assumed that no part of a normal pathname contains ";" but that should
4039 # okay in the real world where ";" in dirpaths is itself problematic.
4040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4041 else
4042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4044 else
4045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4047 need_lib_prefix=unknown
4048 hardcode_into_libs=no
4050 # when you set need_version to no, make sure it does not cause -set_version
4051 # flags to be left without arguments
4052 need_version=unknown
4054 case $host_os in
4055 aix3*)
4056 version_type=linux
4057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4058 shlibpath_var=LIBPATH
4060 # AIX 3 has no versioning support, so we append a major version to the name.
4061 soname_spec='${libname}${release}${shared_ext}$major'
4064 aix4* | aix5*)
4065 version_type=linux
4066 need_lib_prefix=no
4067 need_version=no
4068 hardcode_into_libs=yes
4069 if test "$host_cpu" = ia64; then
4070 # AIX 5 supports IA64
4071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4072 shlibpath_var=LD_LIBRARY_PATH
4073 else
4074 # With GCC up to 2.95.x, collect2 would create an import file
4075 # for dependence libraries. The import file would start with
4076 # the line `#! .'. This would cause the generated library to
4077 # depend on `.', always an invalid library. This was fixed in
4078 # development snapshots of GCC prior to 3.0.
4079 case $host_os in
4080 aix4 | aix4.[01] | aix4.[01].*)
4081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4082 echo ' yes '
4083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4085 else
4086 can_build_shared=no
4089 esac
4090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4091 # soname into executable. Probably we can add versioning support to
4092 # collect2, so additional links can be useful in future.
4093 if test "$aix_use_runtimelinking" = yes; then
4094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4095 # instead of lib<name>.a to let people know that these are not
4096 # typical AIX shared libraries.
4097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4098 else
4099 # We preserve .a as extension for shared libraries through AIX4.2
4100 # and later when we are not doing run time linking.
4101 library_names_spec='${libname}${release}.a $libname.a'
4102 soname_spec='${libname}${release}${shared_ext}$major'
4104 shlibpath_var=LIBPATH
4108 amigaos*)
4109 library_names_spec='$libname.ixlibrary $libname.a'
4110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4111 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'
4114 beos*)
4115 library_names_spec='${libname}${shared_ext}'
4116 dynamic_linker="$host_os ld.so"
4117 shlibpath_var=LIBRARY_PATH
4120 bsdi4*)
4121 version_type=linux
4122 need_version=no
4123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4124 soname_spec='${libname}${release}${shared_ext}$major'
4125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4126 shlibpath_var=LD_LIBRARY_PATH
4127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4129 # the default ld.so.conf also contains /usr/contrib/lib and
4130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4131 # libtool to hard-code these into programs
4134 cygwin* | mingw* | pw32*)
4135 version_type=windows
4136 shrext=".dll"
4137 need_version=no
4138 need_lib_prefix=no
4140 case $GCC,$host_os in
4141 yes,cygwin* | yes,mingw* | yes,pw32*)
4142 library_names_spec='$libname.dll.a'
4143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4144 postinstall_cmds='base_file=`basename \${file}`~
4145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4146 dldir=$destdir/`dirname \$dlpath`~
4147 test -d \$dldir || mkdir -p \$dldir~
4148 $install_prog $dir/$dlname \$dldir/$dlname'
4149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4150 dlpath=$dir/\$dldll~
4151 $rm \$dlpath'
4152 shlibpath_overrides_runpath=yes
4154 case $host_os in
4155 cygwin*)
4156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4158 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4160 mingw*)
4161 # MinGW DLLs use traditional 'lib' prefix
4162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4164 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4165 # It is most probably a Windows format PATH printed by
4166 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4167 # path with ; separators, and with drive letters. We can handle the
4168 # drive letters (cygwin fileutils understands them), so leave them,
4169 # especially as we might pass files found there to a mingw objdump,
4170 # which wouldn't understand a cygwinified path. Ahh.
4171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4172 else
4173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4176 pw32*)
4177 # pw32 DLLs use 'pw' prefix rather than 'lib'
4178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
4180 esac
4184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4186 esac
4187 dynamic_linker='Win32 ld.exe'
4188 # FIXME: first we should search . and the directory the executable is in
4189 shlibpath_var=PATH
4192 darwin* | rhapsody*)
4193 dynamic_linker="$host_os dyld"
4194 version_type=darwin
4195 need_lib_prefix=no
4196 need_version=no
4197 # FIXME: Relying on posixy $() will cause problems for
4198 # cross-compilation, but unfortunately the echo tests do not
4199 # yet detect zsh echo's removal of \ escapes.
4200 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4201 soname_spec='${libname}${release}${major}$shared_ext'
4202 shlibpath_overrides_runpath=yes
4203 shlibpath_var=DYLD_LIBRARY_PATH
4204 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4205 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4206 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4207 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"`
4209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4212 dgux*)
4213 version_type=linux
4214 need_lib_prefix=no
4215 need_version=no
4216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4217 soname_spec='${libname}${release}${shared_ext}$major'
4218 shlibpath_var=LD_LIBRARY_PATH
4221 freebsd1*)
4222 dynamic_linker=no
4225 freebsd*)
4226 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4227 version_type=freebsd-$objformat
4228 case $version_type in
4229 freebsd-elf*)
4230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4231 need_version=no
4232 need_lib_prefix=no
4234 freebsd-*)
4235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4236 need_version=yes
4238 esac
4239 shlibpath_var=LD_LIBRARY_PATH
4240 case $host_os in
4241 freebsd2*)
4242 shlibpath_overrides_runpath=yes
4244 freebsd3.01* | freebsdelf3.01*)
4245 shlibpath_overrides_runpath=yes
4246 hardcode_into_libs=yes
4248 *) # from 3.2 on
4249 shlibpath_overrides_runpath=no
4250 hardcode_into_libs=yes
4252 esac
4255 gnu*)
4256 version_type=linux
4257 need_lib_prefix=no
4258 need_version=no
4259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4260 soname_spec='${libname}${release}${shared_ext}$major'
4261 shlibpath_var=LD_LIBRARY_PATH
4262 hardcode_into_libs=yes
4265 hpux9* | hpux10* | hpux11*)
4266 # Give a soname corresponding to the major version so that dld.sl refuses to
4267 # link against other versions.
4268 version_type=sunos
4269 need_lib_prefix=no
4270 need_version=no
4271 case "$host_cpu" in
4272 ia64*)
4273 shrext='.so'
4274 hardcode_into_libs=yes
4275 dynamic_linker="$host_os dld.so"
4276 shlibpath_var=LD_LIBRARY_PATH
4277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4279 soname_spec='${libname}${release}${shared_ext}$major'
4280 if test "X$HPUX_IA64_MODE" = X32; then
4281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4282 else
4283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4287 hppa*64*)
4288 shrext='.sl'
4289 hardcode_into_libs=yes
4290 dynamic_linker="$host_os dld.sl"
4291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4294 soname_spec='${libname}${release}${shared_ext}$major'
4295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4299 shrext='.sl'
4300 dynamic_linker="$host_os dld.sl"
4301 shlibpath_var=SHLIB_PATH
4302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4304 soname_spec='${libname}${release}${shared_ext}$major'
4306 esac
4307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4308 postinstall_cmds='chmod 555 $lib'
4311 irix5* | irix6* | nonstopux*)
4312 case $host_os in
4313 nonstopux*) version_type=nonstopux ;;
4315 if test "$lt_cv_prog_gnu_ld" = yes; then
4316 version_type=linux
4317 else
4318 version_type=irix
4319 fi ;;
4320 esac
4321 need_lib_prefix=no
4322 need_version=no
4323 soname_spec='${libname}${release}${shared_ext}$major'
4324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4325 case $host_os in
4326 irix5* | nonstopux*)
4327 libsuff= shlibsuff=
4330 case $LD in # libtool.m4 will add one of these switches to LD
4331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4332 libsuff= shlibsuff= libmagic=32-bit;;
4333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4334 libsuff=32 shlibsuff=N32 libmagic=N32;;
4335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4337 *) libsuff= shlibsuff= libmagic=never-match;;
4338 esac
4340 esac
4341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4342 shlibpath_overrides_runpath=no
4343 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4344 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4345 hardcode_into_libs=yes
4348 # No shared lib support for Linux oldld, aout, or coff.
4349 linux*oldld* | linux*aout* | linux*coff*)
4350 dynamic_linker=no
4353 # This must be Linux ELF.
4354 linux*)
4355 version_type=linux
4356 need_lib_prefix=no
4357 need_version=no
4358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4359 soname_spec='${libname}${release}${shared_ext}$major'
4360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4361 shlibpath_var=LD_LIBRARY_PATH
4362 shlibpath_overrides_runpath=no
4363 # This implies no fast_install, which is unacceptable.
4364 # Some rework will be needed to allow for fast_install
4365 # before this can be enabled.
4366 hardcode_into_libs=yes
4368 # We used to test for /lib/ld.so.1 and disable shared libraries on
4369 # powerpc, because MkLinux only supported shared libraries with the
4370 # GNU dynamic linker. Since this was broken with cross compilers,
4371 # most powerpc-linux boxes support dynamic linking these days and
4372 # people can always --disable-shared, the test was removed, and we
4373 # assume the GNU/Linux dynamic linker is in use.
4374 dynamic_linker='GNU/Linux ld.so'
4377 netbsd*)
4378 version_type=sunos
4379 need_lib_prefix=no
4380 need_version=no
4381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4384 dynamic_linker='NetBSD (a.out) ld.so'
4385 else
4386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4387 soname_spec='${libname}${release}${shared_ext}$major'
4388 dynamic_linker='NetBSD ld.elf_so'
4390 shlibpath_var=LD_LIBRARY_PATH
4391 shlibpath_overrides_runpath=yes
4392 hardcode_into_libs=yes
4395 newsos6)
4396 version_type=linux
4397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4398 shlibpath_var=LD_LIBRARY_PATH
4399 shlibpath_overrides_runpath=yes
4402 nto-qnx)
4403 version_type=linux
4404 need_lib_prefix=no
4405 need_version=no
4406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4407 soname_spec='${libname}${release}${shared_ext}$major'
4408 shlibpath_var=LD_LIBRARY_PATH
4409 shlibpath_overrides_runpath=yes
4412 openbsd*)
4413 version_type=sunos
4414 need_lib_prefix=no
4415 need_version=no
4416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4418 shlibpath_var=LD_LIBRARY_PATH
4419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4420 case $host_os in
4421 openbsd2.[89] | openbsd2.[89].*)
4422 shlibpath_overrides_runpath=no
4425 shlibpath_overrides_runpath=yes
4427 esac
4428 else
4429 shlibpath_overrides_runpath=yes
4433 os2*)
4434 libname_spec='$name'
4435 shrext=".dll"
4436 need_lib_prefix=no
4437 library_names_spec='$libname${shared_ext} $libname.a'
4438 dynamic_linker='OS/2 ld.exe'
4439 shlibpath_var=LIBPATH
4442 osf3* | osf4* | osf5*)
4443 version_type=osf
4444 need_lib_prefix=no
4445 need_version=no
4446 soname_spec='${libname}${release}${shared_ext}$major'
4447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4448 shlibpath_var=LD_LIBRARY_PATH
4449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4453 sco3.2v5*)
4454 version_type=osf
4455 soname_spec='${libname}${release}${shared_ext}$major'
4456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4457 shlibpath_var=LD_LIBRARY_PATH
4460 solaris*)
4461 version_type=linux
4462 need_lib_prefix=no
4463 need_version=no
4464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4465 soname_spec='${libname}${release}${shared_ext}$major'
4466 shlibpath_var=LD_LIBRARY_PATH
4467 shlibpath_overrides_runpath=yes
4468 hardcode_into_libs=yes
4469 # ldd complains unless libraries are executable
4470 postinstall_cmds='chmod +x $lib'
4473 sunos4*)
4474 version_type=sunos
4475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4477 shlibpath_var=LD_LIBRARY_PATH
4478 shlibpath_overrides_runpath=yes
4479 if test "$with_gnu_ld" = yes; then
4480 need_lib_prefix=no
4482 need_version=yes
4485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4486 version_type=linux
4487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4488 soname_spec='${libname}${release}${shared_ext}$major'
4489 shlibpath_var=LD_LIBRARY_PATH
4490 case $host_vendor in
4491 sni)
4492 shlibpath_overrides_runpath=no
4493 need_lib_prefix=no
4494 export_dynamic_flag_spec='${wl}-Blargedynsym'
4495 runpath_var=LD_RUN_PATH
4497 siemens)
4498 need_lib_prefix=no
4500 motorola)
4501 need_lib_prefix=no
4502 need_version=no
4503 shlibpath_overrides_runpath=no
4504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4506 esac
4509 sysv4*MP*)
4510 if test -d /usr/nec ;then
4511 version_type=linux
4512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4513 soname_spec='$libname${shared_ext}.$major'
4514 shlibpath_var=LD_LIBRARY_PATH
4518 uts4*)
4519 version_type=linux
4520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4521 soname_spec='${libname}${release}${shared_ext}$major'
4522 shlibpath_var=LD_LIBRARY_PATH
4526 dynamic_linker=no
4528 esac
4529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4530 echo "${ECHO_T}$dynamic_linker" >&6
4531 test "$dynamic_linker" = no && can_build_shared=no
4534 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4535 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4536 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 libltdl_cv_shlibpath_var="$shlibpath_var"
4541 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4542 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4543 if test -n "$libltdl_cv_shlibpath_var"; then
4545 cat >>confdefs.h <<_ACEOF
4546 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4547 _ACEOF
4553 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4556 # See if the user has requested runtime debugging.
4557 LIBGCJDEBUG="disable"
4559 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4560 if test "${enable_libgcj_debug+set}" = set; then
4561 enableval="$enable_libgcj_debug"
4562 if test "$enable_libgcj_debug" = yes; then
4564 cat >>confdefs.h <<\_ACEOF
4565 #define DEBUG 1
4566 _ACEOF
4568 LIBGCJDEBUG="enable"
4572 # Determine which AWT peer libraries to build
4573 # Check whether --enable-java-awt or --disable-java-awt was given.
4574 if test "${enable_java_awt+set}" = set; then
4575 enableval="$enable_java_awt"
4579 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4580 use_xlib_awt=""
4581 use_gtk_awt=""
4582 use_qt_awt=""
4583 # The default toolkit to use is the first one specified.
4584 TOOLKIT=
4587 for peer in $peerlibs ; do
4588 case $peer in
4589 xlib)
4590 if test "$no_x" = yes; then
4591 echo "*** xlib peers requested but no X library available" 1>&2
4592 exit 1
4593 else
4594 use_xlib_awt="yes"
4595 if test -z "$TOOLKIT"; then
4596 TOOLKIT=gnu.awt.xlib.XToolkit
4600 gtk)
4601 if test "$no_x" = yes; then
4602 echo "*** gtk peers requested but no X library available" 1>&2
4603 exit 1
4604 else
4605 use_gtk_awt=yes
4606 if test -z "$TOOLKIT"; then
4607 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4612 if test "$no_x" = yes; then
4613 # Perhaps we should admit the possibility of embedded Qt.
4614 echo "*** Qt peers requested but no X library available" 1>&2
4615 exit 1
4616 else
4617 use_qt_awt=yes
4618 if test -z "$TOOLKIT"; then
4619 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4624 use_xlib_awt=
4625 use_gtk_awt=
4626 use_qt_awt=
4627 break
4630 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4631 exit 1
4632 esac
4633 done
4637 if test "$use_xlib_awt" = yes; then
4638 XLIB_AWT_TRUE=
4639 XLIB_AWT_FALSE='#'
4640 else
4641 XLIB_AWT_TRUE='#'
4642 XLIB_AWT_FALSE=
4647 if test "$use_gtk_awt" = yes; then
4648 GTK_AWT_TRUE=
4649 GTK_AWT_FALSE='#'
4650 else
4651 GTK_AWT_TRUE='#'
4652 GTK_AWT_FALSE=
4657 if test "$use_qt_awt" = yes; then
4658 QT_AWT_TRUE=
4659 QT_AWT_FALSE='#'
4660 else
4661 QT_AWT_TRUE='#'
4662 QT_AWT_FALSE=
4666 # Create standard.omit based on decisions we just made.
4667 cp $srcdir/standard.omit.in standard.omit
4668 if test "$use_xlib_awt" != yes; then
4669 echo gnu/awt/xlib >> standard.omit
4670 echo gnu/gcj/xlib >> standard.omit
4672 if test "$use_gtk_awt" != yes; then
4673 echo gnu/java/awt/peer/gtk >> standard.omit
4675 if test "$use_qt_awt" != yes; then
4676 echo gnu/java/awt/peer/qt >> standard.omit
4679 if test -z "${with_multisubdir}"; then
4680 builddotdot=.
4681 else
4682 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4685 NATIVE=yes
4687 # Which gcj do we use?
4688 which_gcj=default
4689 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4690 if test -n "${with_cross_host}"; then
4691 # We are being configured with a cross compiler. We can't
4692 # use ac_exeext, because that is for the target platform.
4693 NATIVE=no
4694 cross_host_exeext=
4695 case "${with_cross_host}" in
4696 *mingw* | *cygwin*)
4697 cross_host_exeext=.exe
4699 esac
4700 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4701 if test x"$build_noncanonical" = x"$with_cross_host"; then
4702 # Ordinary cross (host!=target and host=build)
4703 which_gcj=built
4704 else
4705 # Canadian cross (host!=target and host!=build)
4706 which_gcj=cross
4708 else
4709 which_gcj=cross
4711 else
4712 # We are being configured with a native or crossed-native compiler
4713 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4714 if test x"$build" = x"$host"; then
4715 # True native build (host=target and host=build)
4716 which_gcj=built
4717 else
4718 # Crossed-native build (host=target and host!=build)
4719 which_gcj=cross
4721 else
4722 which_gcj=path
4725 case "${which_gcj}" in
4726 built)
4727 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4728 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4729 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4731 cross)
4732 if test "x${with_newlib}" = "xyes"; then
4733 # FIXME (comment): Why is this needed?
4734 GCC_UNWIND_INCLUDE=
4735 GCJ="${target_noncanonical}-gcj"
4736 else
4737 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4739 ZIP='$(target_noncanonical)-fastjar'
4740 GCJH='$(target_noncanonical)-gcjh'
4742 path)
4743 GCJ="gcj -B`${PWDCMD-pwd}`/"
4744 ## In this case, gcj is found outside the build tree. However, zip is
4745 ## found in the build tree.
4746 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4747 GCJH=gcjh
4749 esac
4754 # Create it, so that compile/link tests don't fail
4755 test -f libgcj.spec || touch libgcj.spec
4759 # Set up to configure Classpath.
4760 # FIXME: no supported way to pass args in autoconf.
4761 ac_configure_args="$ac_configure_args --disable-load-library"
4762 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4763 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4764 dir1=`cd $srcdir && pwd`
4765 dir2=`pwd`
4766 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4767 ac_configure_args="$ac_configure_args --disable-core-jni"
4768 ac_configure_args="$ac_configure_args --disable-examples"
4769 ac_configure_args="$ac_configure_args --with-glibj=build"
4770 if test "$use_gtk_awt" != yes; then
4771 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4773 if test "$use_qt_awt" != yes; then
4774 ac_configure_args="$ac_configure_args --disable-qt-peer"
4777 # Only use libltdl for non-newlib builds.
4778 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4779 case $enable_ltdl_convenience in
4780 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4781 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4782 { (exit 1); exit 1; }; } ;;
4783 "") enable_ltdl_convenience=yes
4784 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4785 esac
4786 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4787 INCLTDL='-I${top_srcdir}/''libltdl'
4790 DIRLTDL=libltdl
4792 cat >>confdefs.h <<\_ACEOF
4793 #define USE_LTDL 1
4794 _ACEOF
4796 # Sigh. Libtool's macro doesn't do the right thing.
4797 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4798 # FIXME: this is a hack.
4799 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4800 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4805 # Check whether --enable-shared or --disable-shared was given.
4806 if test "${enable_shared+set}" = set; then
4807 enableval="$enable_shared"
4808 p=${PACKAGE-default}
4809 case $enableval in
4810 yes) enable_shared=yes ;;
4811 no) enable_shared=no ;;
4813 enable_shared=no
4814 # Look at the argument we got. We use all the common list separators.
4815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4816 for pkg in $enableval; do
4817 if test "X$pkg" = "X$p"; then
4818 enable_shared=yes
4820 done
4821 IFS="$ac_save_ifs"
4823 esac
4824 else
4825 enable_shared=yes
4827 # Check whether --enable-static or --disable-static was given.
4828 if test "${enable_static+set}" = set; then
4829 enableval="$enable_static"
4830 p=${PACKAGE-default}
4831 case $enableval in
4832 yes) enable_static=yes ;;
4833 no) enable_static=no ;;
4835 enable_static=no
4836 # Look at the argument we got. We use all the common list separators.
4837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4838 for pkg in $enableval; do
4839 if test "X$pkg" = "X$p"; then
4840 enable_static=yes
4842 done
4843 IFS="$ac_save_ifs"
4845 esac
4846 else
4847 enable_static=yes
4849 # Check whether --enable-fast-install or --disable-fast-install was given.
4850 if test "${enable_fast_install+set}" = set; then
4851 enableval="$enable_fast_install"
4852 p=${PACKAGE-default}
4853 case $enableval in
4854 yes) enable_fast_install=yes ;;
4855 no) enable_fast_install=no ;;
4857 enable_fast_install=no
4858 # Look at the argument we got. We use all the common list separators.
4859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4860 for pkg in $enableval; do
4861 if test "X$pkg" = "X$p"; then
4862 enable_fast_install=yes
4864 done
4865 IFS="$ac_save_ifs"
4867 esac
4868 else
4869 enable_fast_install=yes
4872 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4873 if test "${with_gnu_ld+set}" = set; then
4874 withval="$with_gnu_ld"
4875 test "$withval" = no || with_gnu_ld=yes
4876 else
4877 with_gnu_ld=no
4879 ac_prog=ld
4880 if test "$GCC" = yes; then
4881 # Check if gcc -print-prog-name=ld gives a path.
4882 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4883 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4884 case $host in
4885 *-*-mingw*)
4886 # gcc leaves a trailing carriage return which upsets mingw
4887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4890 esac
4891 case $ac_prog in
4892 # Accept absolute paths.
4893 [\\/]* | [A-Za-z]:[\\/]*)
4894 re_direlt='/[^/][^/]*/\.\./'
4895 # Canonicalize the path of ld
4896 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4898 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4899 done
4900 test -z "$LD" && LD="$ac_prog"
4903 # If it fails, then pretend we aren't using GCC.
4904 ac_prog=ld
4907 # If it is relative, then search for the first ld in PATH.
4908 with_gnu_ld=unknown
4910 esac
4911 elif test "$with_gnu_ld" = yes; then
4912 echo "$as_me:$LINENO: checking for GNU ld" >&5
4913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4914 else
4915 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4918 if test "${lt_cv_path_LD+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 if test -z "$LD"; then
4922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4923 for ac_dir in $PATH; do
4924 test -z "$ac_dir" && ac_dir=.
4925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4926 lt_cv_path_LD="$ac_dir/$ac_prog"
4927 # Check to see if the program is GNU ld. I'd rather use --version,
4928 # but apparently some GNU ld's only accept -v.
4929 # Break only if it was the GNU/non-GNU ld that we prefer.
4930 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4931 test "$with_gnu_ld" != no && break
4932 else
4933 test "$with_gnu_ld" != yes && break
4936 done
4937 IFS="$ac_save_ifs"
4938 else
4939 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4943 LD="$lt_cv_path_LD"
4944 if test -n "$LD"; then
4945 echo "$as_me:$LINENO: result: $LD" >&5
4946 echo "${ECHO_T}$LD" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6
4951 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4952 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4953 { (exit 1); exit 1; }; }
4954 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4955 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4956 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4960 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4961 lt_cv_prog_gnu_ld=yes
4962 else
4963 lt_cv_prog_gnu_ld=no
4966 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4967 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4968 with_gnu_ld=$lt_cv_prog_gnu_ld
4971 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4972 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4973 if test "${lt_cv_ld_reload_flag+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976 lt_cv_ld_reload_flag='-r'
4978 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4979 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4980 reload_flag=$lt_cv_ld_reload_flag
4981 test -n "$reload_flag" && reload_flag=" $reload_flag"
4983 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4984 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4985 if test "${lt_cv_path_NM+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 if test -n "$NM"; then
4989 # Let the user override the test.
4990 lt_cv_path_NM="$NM"
4991 else
4992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4993 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4994 test -z "$ac_dir" && ac_dir=.
4995 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4996 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4997 # Check to see if the nm accepts a BSD-compat flag.
4998 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4999 # nm: unknown option "B" ignored
5000 # Tru64's nm complains that /dev/null is an invalid object file
5001 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5002 lt_cv_path_NM="$tmp_nm -B"
5003 break
5004 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5005 lt_cv_path_NM="$tmp_nm -p"
5006 break
5007 else
5008 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5009 continue # so that we can try to find one that supports BSD flags
5012 done
5013 IFS="$ac_save_ifs"
5014 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5018 NM="$lt_cv_path_NM"
5019 echo "$as_me:$LINENO: result: $NM" >&5
5020 echo "${ECHO_T}$NM" >&6
5022 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5023 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5024 if test "${lt_cv_deplibs_check_method+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027 lt_cv_file_magic_cmd='$MAGIC_CMD'
5028 lt_cv_file_magic_test_file=
5029 lt_cv_deplibs_check_method='unknown'
5030 # Need to set the preceding variable on all platforms that support
5031 # interlibrary dependencies.
5032 # 'none' -- dependencies not supported.
5033 # `unknown' -- same as none, but documents that we really don't know.
5034 # 'pass_all' -- all dependencies passed with no checks.
5035 # 'test_compile' -- check by making test program.
5036 # 'file_magic [regex]' -- check by looking for files in library path
5037 # which responds to the $file_magic_cmd with a given egrep regex.
5038 # If you have `file' or equivalent on your system and you're not sure
5039 # whether `pass_all' will *always* work, you probably want this one.
5041 case $host_os in
5042 aix*)
5043 lt_cv_deplibs_check_method=pass_all
5046 beos*)
5047 lt_cv_deplibs_check_method=pass_all
5050 bsdi4*)
5051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5052 lt_cv_file_magic_cmd='/usr/bin/file -L'
5053 lt_cv_file_magic_test_file=/shlib/libc.so
5056 cygwin* | mingw* |pw32*)
5057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5058 lt_cv_file_magic_cmd='$OBJDUMP -f'
5061 darwin* | rhapsody*)
5062 # this will be overwritten by pass_all, but leave it in just in case
5063 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5064 lt_cv_file_magic_cmd='/usr/bin/file -L'
5065 case "$host_os" in
5066 rhapsody* | darwin1.012)
5067 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5069 *) # Darwin 1.3 on
5070 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5072 esac
5073 lt_cv_deplibs_check_method=pass_all
5076 freebsd* | kfreebsd*-gnu)
5077 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5078 case $host_cpu in
5079 i*86 )
5080 # Not sure whether the presence of OpenBSD here was a mistake.
5081 # Let's accept both of them until this is cleared up.
5082 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5083 lt_cv_file_magic_cmd=/usr/bin/file
5084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5086 esac
5087 else
5088 lt_cv_deplibs_check_method=pass_all
5092 gnu*)
5093 lt_cv_deplibs_check_method=pass_all
5096 hpux10.20*|hpux11*)
5097 case $host_cpu in
5098 hppa*)
5099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5100 lt_cv_file_magic_cmd=/usr/bin/file
5101 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5103 ia64*)
5104 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5105 lt_cv_file_magic_cmd=/usr/bin/file
5106 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5108 esac
5111 irix5* | irix6*)
5112 case $host_os in
5113 irix5*)
5114 # this will be overridden with pass_all, but let us keep it just in case
5115 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5118 case $LD in
5119 *-32|*"-32 ") libmagic=32-bit;;
5120 *-n32|*"-n32 ") libmagic=N32;;
5121 *-64|*"-64 ") libmagic=64-bit;;
5122 *) libmagic=never-match;;
5123 esac
5124 # this will be overridden with pass_all, but let us keep it just in case
5125 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5127 esac
5128 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5129 lt_cv_deplibs_check_method=pass_all
5132 # This must be Linux ELF.
5133 linux-gnu*)
5134 lt_cv_deplibs_check_method=pass_all
5137 netbsd* | knetbsd*-gnu)
5138 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5139 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5140 else
5141 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5145 newsos6)
5146 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5147 lt_cv_file_magic_cmd=/usr/bin/file
5148 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5151 osf3* | osf4* | osf5*)
5152 # this will be overridden with pass_all, but let us keep it just in case
5153 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5154 lt_cv_file_magic_test_file=/shlib/libc.so
5155 lt_cv_deplibs_check_method=pass_all
5158 sco3.2v5*)
5159 lt_cv_deplibs_check_method=pass_all
5162 solaris*)
5163 lt_cv_deplibs_check_method=pass_all
5164 lt_cv_file_magic_test_file=/lib/libc.so
5167 sysv5uw[78]* | sysv4*uw2*)
5168 lt_cv_deplibs_check_method=pass_all
5171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5172 case $host_vendor in
5173 ncr)
5174 lt_cv_deplibs_check_method=pass_all
5176 motorola)
5177 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]'
5178 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5180 esac
5182 esac
5185 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5186 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5187 file_magic_cmd=$lt_cv_file_magic_cmd
5188 deplibs_check_method=$lt_cv_deplibs_check_method
5193 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5195 # find the maximum length of command line arguments
5196 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5197 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5198 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5202 teststring="ABCD"
5204 case $build_os in
5205 msdosdjgpp*)
5206 # On DJGPP, this test can blow up pretty badly due to problems in libc
5207 # (any single argument exceeding 2000 bytes causes a buffer overrun
5208 # during glob expansion). Even if it were fixed, the result of this
5209 # check would be larger than it should be.
5210 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5213 cygwin* | mingw*)
5214 # On Win9x/ME, this test blows up -- it succeeds, but takes
5215 # about 5 minutes as the teststring grows exponentially.
5216 # Worse, since 9x/ME are not pre-emptively multitasking,
5217 # you end up with a "frozen" computer, even though with patience
5218 # the test eventually succeeds (with a max line length of 256k).
5219 # Instead, let's just punt: use the minimum linelength reported by
5220 # all of the supported platforms: 8192 (on NT/2K/XP).
5221 lt_cv_sys_max_cmd_len=8192;
5224 amigaos*)
5225 # On AmigaOS with pdksh, this test takes hours, literally.
5226 # So we just punt and use a minimum line length of 8192.
5227 lt_cv_sys_max_cmd_len=8192;
5230 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5231 # This has been around since 386BSD, at least. Likely further.
5232 if test -x /sbin/sysctl; then
5233 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5234 elif test -x /usr/sbin/sysctl; then
5235 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5236 else
5237 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5239 # And add a safety zone
5240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5243 esac
5247 if test -n "$lt_cv_sys_max_cmd_len" ; then
5248 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5249 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5250 else
5251 echo "$as_me:$LINENO: result: none" >&5
5252 echo "${ECHO_T}none" >&6
5256 # Only perform the check for file, if the check method requires it
5257 case $deplibs_check_method in
5258 file_magic*)
5259 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5260 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5261 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5262 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 case $MAGIC_CMD in
5267 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5269 ?:/*)
5270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5273 ac_save_MAGIC_CMD="$MAGIC_CMD"
5274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5275 ac_dummy="/usr/bin:$PATH"
5276 for ac_dir in $ac_dummy; do
5277 test -z "$ac_dir" && ac_dir=.
5278 if test -f $ac_dir/${ac_tool_prefix}file; then
5279 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5280 if test -n "$file_magic_test_file"; then
5281 case $deplibs_check_method in
5282 "file_magic "*)
5283 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5286 egrep "$file_magic_regex" > /dev/null; then
5288 else
5289 cat <<EOF 1>&2
5291 *** Warning: the command libtool uses to detect shared libraries,
5292 *** $file_magic_cmd, produces output that libtool cannot recognize.
5293 *** The result is that libtool may fail to recognize shared libraries
5294 *** as such. This will affect the creation of libtool libraries that
5295 *** depend on shared libraries, but programs linked with such libtool
5296 *** libraries will work regardless of this problem. Nevertheless, you
5297 *** may want to report the problem to your system manager and/or to
5298 *** bug-libtool@gnu.org
5301 fi ;;
5302 esac
5304 break
5306 done
5307 IFS="$ac_save_ifs"
5308 MAGIC_CMD="$ac_save_MAGIC_CMD"
5310 esac
5313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5314 if test -n "$MAGIC_CMD"; then
5315 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5316 echo "${ECHO_T}$MAGIC_CMD" >&6
5317 else
5318 echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5322 if test -z "$lt_cv_path_MAGIC_CMD"; then
5323 if test -n "$ac_tool_prefix"; then
5324 echo "$as_me:$LINENO: checking for file" >&5
5325 echo $ECHO_N "checking for file... $ECHO_C" >&6
5326 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 case $MAGIC_CMD in
5331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5333 ?:/*)
5334 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5337 ac_save_MAGIC_CMD="$MAGIC_CMD"
5338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5339 ac_dummy="/usr/bin:$PATH"
5340 for ac_dir in $ac_dummy; do
5341 test -z "$ac_dir" && ac_dir=.
5342 if test -f $ac_dir/file; then
5343 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5344 if test -n "$file_magic_test_file"; then
5345 case $deplibs_check_method in
5346 "file_magic "*)
5347 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5349 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5350 egrep "$file_magic_regex" > /dev/null; then
5352 else
5353 cat <<EOF 1>&2
5355 *** Warning: the command libtool uses to detect shared libraries,
5356 *** $file_magic_cmd, produces output that libtool cannot recognize.
5357 *** The result is that libtool may fail to recognize shared libraries
5358 *** as such. This will affect the creation of libtool libraries that
5359 *** depend on shared libraries, but programs linked with such libtool
5360 *** libraries will work regardless of this problem. Nevertheless, you
5361 *** may want to report the problem to your system manager and/or to
5362 *** bug-libtool@gnu.org
5365 fi ;;
5366 esac
5368 break
5370 done
5371 IFS="$ac_save_ifs"
5372 MAGIC_CMD="$ac_save_MAGIC_CMD"
5374 esac
5377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5378 if test -n "$MAGIC_CMD"; then
5379 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5380 echo "${ECHO_T}$MAGIC_CMD" >&6
5381 else
5382 echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5386 else
5387 MAGIC_CMD=:
5393 esac
5395 if test -n "$ac_tool_prefix"; then
5396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5397 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5398 echo "$as_me:$LINENO: checking for $ac_word" >&5
5399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5400 if test "${ac_cv_prog_RANLIB+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 else
5403 if test -n "$RANLIB"; then
5404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5417 done
5418 done
5422 RANLIB=$ac_cv_prog_RANLIB
5423 if test -n "$RANLIB"; then
5424 echo "$as_me:$LINENO: result: $RANLIB" >&5
5425 echo "${ECHO_T}$RANLIB" >&6
5426 else
5427 echo "$as_me:$LINENO: result: no" >&5
5428 echo "${ECHO_T}no" >&6
5432 if test -z "$ac_cv_prog_RANLIB"; then
5433 ac_ct_RANLIB=$RANLIB
5434 # Extract the first word of "ranlib", so it can be a program name with args.
5435 set dummy ranlib; ac_word=$2
5436 echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441 if test -n "$ac_ct_RANLIB"; then
5442 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_ac_ct_RANLIB="ranlib"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5455 done
5456 done
5458 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5461 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5462 if test -n "$ac_ct_RANLIB"; then
5463 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5464 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5465 else
5466 echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6
5470 RANLIB=$ac_ct_RANLIB
5471 else
5472 RANLIB="$ac_cv_prog_RANLIB"
5475 if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5477 set dummy ${ac_tool_prefix}strip; ac_word=$2
5478 echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5480 if test "${ac_cv_prog_STRIP+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 if test -n "$STRIP"; then
5484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5497 done
5498 done
5502 STRIP=$ac_cv_prog_STRIP
5503 if test -n "$STRIP"; then
5504 echo "$as_me:$LINENO: result: $STRIP" >&5
5505 echo "${ECHO_T}$STRIP" >&6
5506 else
5507 echo "$as_me:$LINENO: result: no" >&5
5508 echo "${ECHO_T}no" >&6
5512 if test -z "$ac_cv_prog_STRIP"; then
5513 ac_ct_STRIP=$STRIP
5514 # Extract the first word of "strip", so it can be a program name with args.
5515 set dummy strip; ac_word=$2
5516 echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 if test -n "$ac_ct_STRIP"; then
5522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_ac_ct_STRIP="strip"
5532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5535 done
5536 done
5538 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5542 if test -n "$ac_ct_STRIP"; then
5543 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5544 echo "${ECHO_T}$ac_ct_STRIP" >&6
5545 else
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5550 STRIP=$ac_ct_STRIP
5551 else
5552 STRIP="$ac_cv_prog_STRIP"
5556 # Check for any special flags to pass to ltconfig.
5557 libtool_flags="--cache-file=$cache_file"
5558 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5559 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5560 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5561 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5562 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5565 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5566 if test "${enable_libtool_lock+set}" = set; then
5567 enableval="$enable_libtool_lock"
5570 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5571 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5574 # Check whether --with-pic or --without-pic was given.
5575 if test "${with_pic+set}" = set; then
5576 withval="$with_pic"
5577 pic_mode="$withval"
5578 else
5579 pic_mode=default
5581 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5582 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5584 # Some flags need to be propagated to the compiler or linker for good
5585 # libtool support.
5586 case $host in
5587 *-*-irix6*)
5588 # Find out which ABI we are using.
5589 echo '#line 5589 "configure"' > conftest.$ac_ext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; then
5595 if test "$lt_cv_prog_gnu_ld" = yes; then
5596 case `/usr/bin/file conftest.$ac_objext` in
5597 *32-bit*)
5598 LD="${LD-ld} -melf32bsmip"
5600 *N32*)
5601 LD="${LD-ld} -melf32bmipn32"
5603 *64-bit*)
5604 LD="${LD-ld} -melf64bmip"
5606 esac
5607 else
5608 case `/usr/bin/file conftest.$ac_objext` in
5609 *32-bit*)
5610 LD="${LD-ld} -32"
5612 *N32*)
5613 LD="${LD-ld} -n32"
5615 *64-bit*)
5616 LD="${LD-ld} -64"
5618 esac
5621 rm -rf conftest*
5624 ia64-*-hpux*)
5625 # Find out which ABI we are using.
5626 echo 'int i;' > conftest.$ac_ext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; then
5632 case "`/usr/bin/file conftest.o`" in
5633 *ELF-32*)
5634 HPUX_IA64_MODE="32"
5636 *ELF-64*)
5637 HPUX_IA64_MODE="64"
5639 esac
5641 rm -rf conftest*
5644 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5645 # Find out which ABI we are using.
5646 echo 'int i;' > conftest.$ac_ext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; then
5652 case "`/usr/bin/file conftest.o`" in
5653 *32-bit*)
5654 case $host in
5655 x86_64-*linux*)
5656 LD="${LD-ld} -m elf_i386"
5658 ppc64-*linux*|powerpc64-*linux*)
5659 LD="${LD-ld} -m elf32ppclinux"
5661 s390x-*linux*)
5662 LD="${LD-ld} -m elf_s390"
5664 sparc64-*linux*)
5665 LD="${LD-ld} -m elf32_sparc"
5667 esac
5669 *64-bit*)
5670 case $host in
5671 x86_64-*linux*)
5672 LD="${LD-ld} -m elf_x86_64"
5674 ppc*-*linux*|powerpc*-*linux*)
5675 LD="${LD-ld} -m elf64ppc"
5677 s390*-*linux*)
5678 LD="${LD-ld} -m elf64_s390"
5680 sparc*-*linux*)
5681 LD="${LD-ld} -m elf64_sparc"
5683 esac
5685 esac
5687 rm -rf conftest*
5690 *-*-sco3.2v5*)
5691 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5692 SAVE_CFLAGS="$CFLAGS"
5693 CFLAGS="$CFLAGS -belf"
5694 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5695 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5696 if test "${lt_cv_cc_needs_belf+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5701 ac_ext=c
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5707 if test x$gcc_no_link = xyes; then
5708 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5709 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5710 { (exit 1); exit 1; }; }
5712 cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h. */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5720 main ()
5724 return 0;
5726 _ACEOF
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 lt_cv_cc_needs_belf=yes
5750 else
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 lt_cv_cc_needs_belf=no
5756 rm -f conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext conftest.$ac_ext
5758 ac_ext=c
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5766 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5767 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5768 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5769 CFLAGS="$SAVE_CFLAGS"
5774 esac
5777 # Save cache, so that ltconfig can load it
5778 cat >confcache <<\_ACEOF
5779 # This file is a shell script that caches the results of configure
5780 # tests run on this system so they can be shared between configure
5781 # scripts and configure runs, see configure's option --config-cache.
5782 # It is not useful on other systems. If it contains results you don't
5783 # want to keep, you may remove or edit it.
5785 # config.status only pays attention to the cache file if you give it
5786 # the --recheck option to rerun configure.
5788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5790 # following values.
5792 _ACEOF
5794 # The following way of writing the cache mishandles newlines in values,
5795 # but we know of no workaround that is simple, portable, and efficient.
5796 # So, don't put newlines in cache variables' values.
5797 # Ultrix sh set writes to stderr and can't be redirected directly,
5798 # and sets the high bit in the cache file unless we assign to the vars.
5800 (set) 2>&1 |
5801 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5802 *ac_space=\ *)
5803 # `set' does not quote correctly, so add quotes (double-quote
5804 # substitution turns \\\\ into \\, and sed turns \\ into \).
5805 sed -n \
5806 "s/'/'\\\\''/g;
5807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5810 # `set' quotes correctly as required by POSIX, so do not add quotes.
5811 sed -n \
5812 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5814 esac;
5816 sed '
5817 t clear
5818 : clear
5819 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5820 t end
5821 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5822 : end' >>confcache
5823 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5824 if test -w $cache_file; then
5825 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5826 cat confcache >$cache_file
5827 else
5828 echo "not updating unwritable cache $cache_file"
5831 rm -f confcache
5833 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5834 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5835 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5836 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5837 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5838 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5839 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5840 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5841 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5842 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5843 echo "$as_me: error: libtool configure failed" >&2;}
5844 { (exit 1); exit 1; }; }
5846 # Reload cache, that may have been modified by ltconfig
5847 if test -r "$cache_file"; then
5848 # Some versions of bash will fail to source /dev/null (special
5849 # files actually), so we avoid doing that.
5850 if test -f "$cache_file"; then
5851 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5852 echo "$as_me: loading cache $cache_file" >&6;}
5853 case $cache_file in
5854 [\\/]* | ?:[\\/]* ) . $cache_file;;
5855 *) . ./$cache_file;;
5856 esac
5858 else
5859 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5860 echo "$as_me: creating cache $cache_file" >&6;}
5861 >$cache_file
5865 # This can be used to rebuild libtool when needed
5866 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5868 # Always use our own libtool.
5869 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5871 # Redirect the config.log output again, so that the ltconfig log is not
5872 # clobbered by the next message.
5873 exec 5>>./config.log
5875 ac_ext=cc
5876 ac_cpp='$CXXCPP $CPPFLAGS'
5877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5880 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5881 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5882 if test -z "$CXXCPP"; then
5883 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 # Double quotes because CXXCPP needs to be expanded
5887 for CXXCPP in "$CXX -E" "/lib/cpp"
5889 ac_preproc_ok=false
5890 for ac_cxx_preproc_warn_flag in '' yes
5892 # Use a header file that comes with gcc, so configuring glibc
5893 # with a fresh cross-compiler works.
5894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5895 # <limits.h> exists even on freestanding compilers.
5896 # On the NeXT, cc -E runs the code through the compiler's parser,
5897 # not just through cpp. "Syntax error" is here to catch this case.
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 #ifdef __STDC__
5905 # include <limits.h>
5906 #else
5907 # include <assert.h>
5908 #endif
5909 Syntax error
5910 _ACEOF
5911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } >/dev/null; then
5919 if test -s conftest.err; then
5920 ac_cpp_err=$ac_cxx_preproc_warn_flag
5921 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5922 else
5923 ac_cpp_err=
5925 else
5926 ac_cpp_err=yes
5928 if test -z "$ac_cpp_err"; then
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 # Broken: fails on valid input.
5935 continue
5937 rm -f conftest.err conftest.$ac_ext
5939 # OK, works on sane cases. Now check whether non-existent headers
5940 # can be detected and how.
5941 cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h. */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 #include <ac_nonexistent.h>
5948 _ACEOF
5949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } >/dev/null; then
5957 if test -s conftest.err; then
5958 ac_cpp_err=$ac_cxx_preproc_warn_flag
5959 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5960 else
5961 ac_cpp_err=
5963 else
5964 ac_cpp_err=yes
5966 if test -z "$ac_cpp_err"; then
5967 # Broken: success on invalid input.
5968 continue
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 # Passes both tests.
5974 ac_preproc_ok=:
5975 break
5977 rm -f conftest.err conftest.$ac_ext
5979 done
5980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5981 rm -f conftest.err conftest.$ac_ext
5982 if $ac_preproc_ok; then
5983 break
5986 done
5987 ac_cv_prog_CXXCPP=$CXXCPP
5990 CXXCPP=$ac_cv_prog_CXXCPP
5991 else
5992 ac_cv_prog_CXXCPP=$CXXCPP
5994 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5995 echo "${ECHO_T}$CXXCPP" >&6
5996 ac_preproc_ok=false
5997 for ac_cxx_preproc_warn_flag in '' yes
5999 # Use a header file that comes with gcc, so configuring glibc
6000 # with a fresh cross-compiler works.
6001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6002 # <limits.h> exists even on freestanding compilers.
6003 # On the NeXT, cc -E runs the code through the compiler's parser,
6004 # not just through cpp. "Syntax error" is here to catch this case.
6005 cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h. */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 #ifdef __STDC__
6012 # include <limits.h>
6013 #else
6014 # include <assert.h>
6015 #endif
6016 Syntax error
6017 _ACEOF
6018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
6026 if test -s conftest.err; then
6027 ac_cpp_err=$ac_cxx_preproc_warn_flag
6028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6029 else
6030 ac_cpp_err=
6032 else
6033 ac_cpp_err=yes
6035 if test -z "$ac_cpp_err"; then
6037 else
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 # Broken: fails on valid input.
6042 continue
6044 rm -f conftest.err conftest.$ac_ext
6046 # OK, works on sane cases. Now check whether non-existent headers
6047 # can be detected and how.
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 #include <ac_nonexistent.h>
6055 _ACEOF
6056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } >/dev/null; then
6064 if test -s conftest.err; then
6065 ac_cpp_err=$ac_cxx_preproc_warn_flag
6066 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6067 else
6068 ac_cpp_err=
6070 else
6071 ac_cpp_err=yes
6073 if test -z "$ac_cpp_err"; then
6074 # Broken: success on invalid input.
6075 continue
6076 else
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6080 # Passes both tests.
6081 ac_preproc_ok=:
6082 break
6084 rm -f conftest.err conftest.$ac_ext
6086 done
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.err conftest.$ac_ext
6089 if $ac_preproc_ok; then
6091 else
6092 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6093 See \`config.log' for more details." >&5
6094 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6095 See \`config.log' for more details." >&2;}
6096 { (exit 1); exit 1; }; }
6099 ac_ext=c
6100 ac_cpp='$CPP $CPPFLAGS'
6101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6107 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6108 lt_save_CC="$CC"
6109 lt_save_CFLAGS="$CFLAGS"
6110 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6111 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6112 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6113 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6114 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6115 deplibs_check_method="$deplibs_check_method" \
6116 file_magic_cmd="$file_magic_cmd" \
6117 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6118 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6119 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6120 echo "$as_me: error: libtool tag configuration failed" >&2;}
6121 { (exit 1); exit 1; }; }
6122 CC="$lt_save_CC"
6123 CFLAGS="$lt_save_CFLAGS"
6125 # Redirect the config.log output again, so that the ltconfig log is not
6126 # clobbered by the next message.
6127 exec 5>>./config.log
6135 for ac_prog in gcj
6137 # Extract the first word of "$ac_prog", so it can be a program name with args.
6138 set dummy $ac_prog; ac_word=$2
6139 echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6141 if test "${ac_cv_prog_GCJ+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 if test -n "$GCJ"; then
6145 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_prog_GCJ="$ac_prog"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6158 done
6159 done
6163 GCJ=$ac_cv_prog_GCJ
6164 if test -n "$GCJ"; then
6165 echo "$as_me:$LINENO: result: $GCJ" >&5
6166 echo "${ECHO_T}$GCJ" >&6
6167 else
6168 echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6
6172 test -n "$GCJ" && break
6173 done
6174 test -n "$GCJ" || GCJ="gcj"
6176 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6177 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6178 { (exit 1); exit 1; }; }
6179 if test "x${GCJFLAGS-unset}" = xunset; then
6180 GCJFLAGS="-g -O2"
6184 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6186 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6187 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6188 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6192 # We make a subdir and do the tests there. Otherwise we can end up
6193 # making bogus files that we don't know about and never remove. For
6194 # instance it was reported that on HP-UX the gcc test will end up
6195 # making a dummy file named `D' -- because `-MD' means `put the output
6196 # in D'.
6197 mkdir conftest.dir
6198 # Copy depcomp to subdir because otherwise we won't find it if we're
6199 # using a relative directory.
6200 cp "$am_depcomp" conftest.dir
6201 cd conftest.dir
6202 # We will build objects and dependencies in a subdirectory because
6203 # it helps to detect inapplicable dependency modes. For instance
6204 # both Tru64's cc and ICC support -MD to output dependencies as a
6205 # side effect of compilation, but ICC will put the dependencies in
6206 # the current directory while Tru64 will put them in the object
6207 # directory.
6208 mkdir sub
6210 am_cv_GCJ_dependencies_compiler_type=none
6211 if test "$am_compiler_list" = ""; then
6212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6214 for depmode in $am_compiler_list; do
6215 # Setup a source with many dependencies, because some compilers
6216 # like to wrap large dependency lists on column 80 (with \), and
6217 # we should not choose a depcomp mode which is confused by this.
6219 # We need to recreate these files for each test, as the compiler may
6220 # overwrite some of them when testing with obscure command lines.
6221 # This happens at least with the AIX C compiler.
6222 : > sub/conftest.c
6223 for i in 1 2 3 4 5 6; do
6224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6226 # Solaris 8's {/usr,}/bin/sh.
6227 touch sub/conftst$i.h
6228 done
6229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6231 case $depmode in
6232 nosideeffect)
6233 # after this tag, mechanisms are not by side-effect, so they'll
6234 # only be used when explicitly requested
6235 if test "x$enable_dependency_tracking" = xyes; then
6236 continue
6237 else
6238 break
6241 none) break ;;
6242 esac
6243 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6244 # mode. It turns out that the SunPro C++ compiler does not properly
6245 # handle `-M -o', and we need to detect this.
6246 if depmode=$depmode \
6247 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6248 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6249 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6250 >/dev/null 2>conftest.err &&
6251 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6252 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6253 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6254 # icc doesn't choke on unknown options, it will just issue warnings
6255 # or remarks (even with -Werror). So we grep stderr for any message
6256 # that says an option was ignored or not supported.
6257 # When given -MP, icc 7.0 and 7.1 complain thusly:
6258 # icc: Command line warning: ignoring option '-M'; no argument required
6259 # The diagnosis changed in icc 8.0:
6260 # icc: Command line remark: option '-MP' not supported
6261 if (grep 'ignoring option' conftest.err ||
6262 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6263 am_cv_GCJ_dependencies_compiler_type=$depmode
6264 break
6267 done
6269 cd ..
6270 rm -rf conftest.dir
6271 else
6272 am_cv_GCJ_dependencies_compiler_type=none
6276 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6277 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6278 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6283 test "x$enable_dependency_tracking" != xno \
6284 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6285 am__fastdepGCJ_TRUE=
6286 am__fastdepGCJ_FALSE='#'
6287 else
6288 am__fastdepGCJ_TRUE='#'
6289 am__fastdepGCJ_FALSE=
6295 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6296 lt_save_CC="$CC"
6297 lt_save_CFLAGS="$CFLAGS"
6298 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6299 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6300 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6301 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6302 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6303 deplibs_check_method="$deplibs_check_method" \
6304 file_magic_cmd="$file_magic_cmd" \
6305 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6306 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6307 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6308 echo "$as_me: error: libtool tag configuration failed" >&2;}
6309 { (exit 1); exit 1; }; }
6310 CC="$lt_save_CC"
6311 CFLAGS="$lt_save_CFLAGS"
6313 # Redirect the config.log output again, so that the ltconfig log is not
6314 # clobbered by the next message.
6315 exec 5>>./config.log
6319 if test "x$CC" != xcc; then
6320 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6321 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6322 else
6323 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6324 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6326 set dummy $CC; ac_cc=`echo $2 |
6327 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6328 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6339 main ()
6343 return 0;
6345 _ACEOF
6346 # Make sure it works both with $CC and with simple cc.
6347 # We do the test twice because some compilers refuse to overwrite an
6348 # existing .o file with -o, though they will create one.
6349 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6350 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); };
6360 then
6361 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6362 if test "x$CC" != xcc; then
6363 # Test first that cc exists at all.
6364 if { ac_try='cc -c conftest.$ac_ext >&5'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6371 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); };
6381 then
6382 # cc works too.
6384 else
6385 # cc exists but doesn't like -o.
6386 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6390 else
6391 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6393 rm -f conftest*
6396 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6397 echo "$as_me:$LINENO: result: yes" >&5
6398 echo "${ECHO_T}yes" >&6
6399 else
6400 echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6
6403 cat >>confdefs.h <<\_ACEOF
6404 #define NO_MINUS_C_MINUS_O 1
6405 _ACEOF
6409 # FIXME: we rely on the cache variable name because
6410 # there is no other way.
6411 set dummy $CC
6412 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6413 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6414 # Losing compiler, so override with the script.
6415 # FIXME: It is wrong to rewrite CC.
6416 # But if we don't then we get into trouble of one sort or another.
6417 # A longer-term fix would be to have automake use am__CC in this case,
6418 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6419 CC="$am_aux_dir/compile $CC"
6425 subdirs="$subdirs classpath libltdl"
6428 # The -no-testsuite modules omit the test subdir.
6431 if test -d $srcdir/testsuite; then
6432 TESTSUBDIR_TRUE=
6433 TESTSUBDIR_FALSE='#'
6434 else
6435 TESTSUBDIR_TRUE='#'
6436 TESTSUBDIR_FALSE=
6440 # Should the runtime set system properties by examining the
6441 # environment variable GCJ_PROPERTIES?
6442 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6443 if test "${enable_getenv_properties+set}" = set; then
6444 enableval="$enable_getenv_properties"
6448 # Whether GCJ_PROPERTIES is used depends on the target.
6449 if test -z "$enable_getenv_properties"; then
6450 enable_getenv_properties=${enable_getenv_properties_default-yes}
6452 if test "$enable_getenv_properties" = no; then
6454 cat >>confdefs.h <<\_ACEOF
6455 #define DISABLE_GETENV_PROPERTIES 1
6456 _ACEOF
6460 # Whether we should use arguments to main()
6461 if test -z "$enable_main_args"; then
6462 enable_main_args=${enable_main_args_default-yes}
6464 if test "$enable_main_args" = no; then
6466 cat >>confdefs.h <<\_ACEOF
6467 #define DISABLE_MAIN_ARGS 1
6468 _ACEOF
6473 # Should we use hashtable-based synchronization?
6474 # Currently works only for Linux X86/ia64
6475 # Typically faster and more space-efficient
6476 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6477 if test "${enable_hash_synchronization+set}" = set; then
6478 enableval="$enable_hash_synchronization"
6482 if test -z "$enable_hash_synchronization"; then
6483 enable_hash_synchronization=$enable_hash_synchronization_default
6487 # Check whether --with-java-home or --without-java-home was given.
6488 if test "${with_java_home+set}" = set; then
6489 withval="$with_java_home"
6490 JAVA_HOME="${withval}"
6491 else
6492 JAVA_HOME=""
6496 if test ! -z "$JAVA_HOME"; then
6497 JAVA_HOME_SET_TRUE=
6498 JAVA_HOME_SET_FALSE='#'
6499 else
6500 JAVA_HOME_SET_TRUE='#'
6501 JAVA_HOME_SET_FALSE=
6506 # What is the native OS API for MinGW?
6508 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6509 if test "${with_win32_nlsapi+set}" = set; then
6510 withval="$with_win32_nlsapi"
6511 case "${withval}" in
6512 ansi) with_win32_nlsapi=ansi ;;
6513 unicows) with_win32_nlsapi=unicows ;;
6514 unicode) with_win32_nlsapi=unicode ;;
6515 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6516 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6517 { (exit 1); exit 1; }; } ;;
6518 esac
6519 else
6520 with_win32_nlsapi=ansi
6523 case "${with_win32_nlsapi}" in
6524 unicows | unicode)
6526 cat >>confdefs.h <<\_ACEOF
6527 #define MINGW_LIBGCJ_UNICODE 1
6528 _ACEOF
6531 esac
6533 # configure.host sets slow_pthread_self if the synchronization code should
6534 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6535 if test "${slow_pthread_self}" = "yes"; then
6537 cat >>confdefs.h <<\_ACEOF
6538 #define SLOW_PTHREAD_SELF 1
6539 _ACEOF
6543 # Check for gc debugging. This option is handled both here and in the GC.
6544 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6545 if test "${enable_gc_debug+set}" = set; then
6546 enableval="$enable_gc_debug"
6547 if test "$enable_gc_debug" = "yes"; then
6549 cat >>confdefs.h <<\_ACEOF
6550 #define LIBGCJ_GC_DEBUG 1
6551 _ACEOF
6556 # See if the user has the interpreter included.
6557 # Check whether --enable-interpreter or --disable-interpreter was given.
6558 if test "${enable_interpreter+set}" = set; then
6559 enableval="$enable_interpreter"
6560 if test "$enable_interpreter" = yes; then
6561 # This can also be set in configure.host.
6562 libgcj_interpreter=yes
6563 elif test "$enable_interpreter" = no; then
6564 libgcj_interpreter=no
6568 if test "$libgcj_interpreter" = yes; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define INTERPRETER 1
6572 _ACEOF
6575 INTERPRETER="$libgcj_interpreter"
6578 echo "$as_me:$LINENO: checking for exception model to use" >&5
6579 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6580 ac_ext=cc
6581 ac_cpp='$CXXCPP $CPPFLAGS'
6582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6586 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6587 if test "${enable_sjlj_exceptions+set}" = set; then
6588 enableval="$enable_sjlj_exceptions"
6590 else
6591 cat > conftest.$ac_ext << EOF
6592 #line 6592 "configure"
6593 struct S { ~S(); };
6594 void bar();
6595 void foo()
6597 S s;
6598 bar();
6601 old_CXXFLAGS="$CXXFLAGS"
6602 CXXFLAGS=-S
6603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6604 (eval $ac_compile) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; then
6608 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6609 enable_sjlj_exceptions=yes
6610 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6611 enable_sjlj_exceptions=no
6614 CXXFLAGS="$old_CXXFLAGS"
6615 rm -f conftest*
6617 if test x$enable_sjlj_exceptions = xyes; then
6619 cat >>confdefs.h <<\_ACEOF
6620 #define SJLJ_EXCEPTIONS 1
6621 _ACEOF
6623 ac_exception_model_name=sjlj
6624 elif test x$enable_sjlj_exceptions = xno; then
6625 ac_exception_model_name="call frame"
6626 else
6627 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6628 echo "$as_me: error: unable to detect exception model" >&2;}
6629 { (exit 1); exit 1; }; }
6631 ac_ext=c
6632 ac_cpp='$CPP $CPPFLAGS'
6633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6637 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6638 echo "${ECHO_T}$ac_exception_model_name" >&6
6640 # If we are non using SJLJ exceptions, and this host does not have support
6641 # for unwinding from a signal handler, enable checked dereferences and divides.
6642 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6643 CHECKREFSPEC=-fcheck-references
6644 DIVIDESPEC=-fuse-divide-subroutine
6645 EXCEPTIONSPEC=
6648 # See if the user wants to disable java.net. This is the mildly
6649 # ugly way that we admit that target-side configuration sucks.
6650 # Check whether --enable-java-net or --disable-java-net was given.
6651 if test "${enable_java_net+set}" = set; then
6652 enableval="$enable_java_net"
6656 # Whether java.net is built by default can depend on the target.
6657 if test -z "$enable_java_net"; then
6658 enable_java_net=${enable_java_net_default-yes}
6660 if test "$enable_java_net" = no; then
6662 cat >>confdefs.h <<\_ACEOF
6663 #define DISABLE_JAVA_NET 1
6664 _ACEOF
6668 # See if the user wants to configure without libffi. Some
6669 # architectures don't support it, and default values are set in
6670 # configure.host.
6672 # Check whether --with-libffi or --without-libffi was given.
6673 if test "${with_libffi+set}" = set; then
6674 withval="$with_libffi"
6676 else
6677 with_libffi=${with_libffi_default-yes}
6680 LIBFFI=
6681 LIBFFIINCS=
6682 if test "$with_libffi" != no; then
6684 cat >>confdefs.h <<\_ACEOF
6685 #define USE_LIBFFI 1
6686 _ACEOF
6688 LIBFFI=../libffi/libffi_convenience.la
6689 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6694 # See if the user wants to disable JVMPI support.
6695 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6696 if test "${enable_jvmpi+set}" = set; then
6697 enableval="$enable_jvmpi"
6701 if test "$enable_jvmpi" != no; then
6703 cat >>confdefs.h <<\_ACEOF
6704 #define ENABLE_JVMPI 1
6705 _ACEOF
6709 # If the target is an eCos system, use the appropriate eCos
6710 # I/O routines.
6711 # FIXME: this should not be a local option but a global target
6712 # system; at present there is no eCos target.
6713 TARGET_ECOS=${PROCESS-"no"}
6715 # Check whether --with-ecos or --without-ecos was given.
6716 if test "${with_ecos+set}" = set; then
6717 withval="$with_ecos"
6718 TARGET_ECOS="$with_ecos"
6722 supply_backtrace=no
6724 PLATFORM_INNER_NAT_HDRS=
6725 case "$TARGET_ECOS" in
6726 no) case "$host" in
6727 *mingw*)
6728 PLATFORM=Win32
6729 PLATFORMNET=Win32
6730 PLATFORMH=win32.h
6732 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6733 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6734 LD_PROG=`$CC --print-prog-name=ld`
6735 LD_VERSION=`$LD_PROG --version`
6736 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6737 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6738 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6739 LD_OK="ok"
6740 else
6741 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6742 LD_OK="ok"
6745 if test "x$LD_OK" != x; then
6746 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6747 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6748 else
6749 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6750 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6751 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6752 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6754 cat >>confdefs.h <<\_ACEOF
6755 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6756 _ACEOF
6761 PLATFORM=Posix
6762 PLATFORMNET=Posix
6763 PLATFORMH=posix.h
6764 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6766 esac
6769 PLATFORM=Ecos
6770 PLATFORMNET=NoNet
6772 cat >>confdefs.h <<\_ACEOF
6773 #define ECOS 1
6774 _ACEOF
6776 PLATFORMH=posix.h
6778 esac
6780 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6783 ac_ext=c
6784 ac_cpp='$CPP $CPPFLAGS'
6785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6789 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6790 # On Suns, sometimes $CPP names a directory.
6791 if test -n "$CPP" && test -d "$CPP"; then
6792 CPP=
6794 if test -z "$CPP"; then
6795 if test "${ac_cv_prog_CPP+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 # Double quotes because CPP needs to be expanded
6799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6801 ac_preproc_ok=false
6802 for ac_c_preproc_warn_flag in '' yes
6804 # Use a header file that comes with gcc, so configuring glibc
6805 # with a fresh cross-compiler works.
6806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6807 # <limits.h> exists even on freestanding compilers.
6808 # On the NeXT, cc -E runs the code through the compiler's parser,
6809 # not just through cpp. "Syntax error" is here to catch this case.
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #ifdef __STDC__
6817 # include <limits.h>
6818 #else
6819 # include <assert.h>
6820 #endif
6821 Syntax error
6822 _ACEOF
6823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev/null; then
6831 if test -s conftest.err; then
6832 ac_cpp_err=$ac_c_preproc_warn_flag
6833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6834 else
6835 ac_cpp_err=
6837 else
6838 ac_cpp_err=yes
6840 if test -z "$ac_cpp_err"; then
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 # Broken: fails on valid input.
6847 continue
6849 rm -f conftest.err conftest.$ac_ext
6851 # OK, works on sane cases. Now check whether non-existent headers
6852 # can be detected and how.
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 #include <ac_nonexistent.h>
6860 _ACEOF
6861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } >/dev/null; then
6869 if test -s conftest.err; then
6870 ac_cpp_err=$ac_c_preproc_warn_flag
6871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6872 else
6873 ac_cpp_err=
6875 else
6876 ac_cpp_err=yes
6878 if test -z "$ac_cpp_err"; then
6879 # Broken: success on invalid input.
6880 continue
6881 else
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 # Passes both tests.
6886 ac_preproc_ok=:
6887 break
6889 rm -f conftest.err conftest.$ac_ext
6891 done
6892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6893 rm -f conftest.err conftest.$ac_ext
6894 if $ac_preproc_ok; then
6895 break
6898 done
6899 ac_cv_prog_CPP=$CPP
6902 CPP=$ac_cv_prog_CPP
6903 else
6904 ac_cv_prog_CPP=$CPP
6906 echo "$as_me:$LINENO: result: $CPP" >&5
6907 echo "${ECHO_T}$CPP" >&6
6908 ac_preproc_ok=false
6909 for ac_c_preproc_warn_flag in '' yes
6911 # Use a header file that comes with gcc, so configuring glibc
6912 # with a fresh cross-compiler works.
6913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6914 # <limits.h> exists even on freestanding compilers.
6915 # On the NeXT, cc -E runs the code through the compiler's parser,
6916 # not just through cpp. "Syntax error" is here to catch this case.
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 #ifdef __STDC__
6924 # include <limits.h>
6925 #else
6926 # include <assert.h>
6927 #endif
6928 Syntax error
6929 _ACEOF
6930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev/null; then
6938 if test -s conftest.err; then
6939 ac_cpp_err=$ac_c_preproc_warn_flag
6940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6941 else
6942 ac_cpp_err=
6944 else
6945 ac_cpp_err=yes
6947 if test -z "$ac_cpp_err"; then
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 # Broken: fails on valid input.
6954 continue
6956 rm -f conftest.err conftest.$ac_ext
6958 # OK, works on sane cases. Now check whether non-existent headers
6959 # can be detected and how.
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #include <ac_nonexistent.h>
6967 _ACEOF
6968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } >/dev/null; then
6976 if test -s conftest.err; then
6977 ac_cpp_err=$ac_c_preproc_warn_flag
6978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6979 else
6980 ac_cpp_err=
6982 else
6983 ac_cpp_err=yes
6985 if test -z "$ac_cpp_err"; then
6986 # Broken: success on invalid input.
6987 continue
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 # Passes both tests.
6993 ac_preproc_ok=:
6994 break
6996 rm -f conftest.err conftest.$ac_ext
6998 done
6999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7000 rm -f conftest.err conftest.$ac_ext
7001 if $ac_preproc_ok; then
7003 else
7004 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7005 See \`config.log' for more details." >&5
7006 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7007 See \`config.log' for more details." >&2;}
7008 { (exit 1); exit 1; }; }
7011 ac_ext=c
7012 ac_cpp='$CPP $CPPFLAGS'
7013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7018 echo "$as_me:$LINENO: checking for egrep" >&5
7019 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7020 if test "${ac_cv_prog_egrep+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7024 then ac_cv_prog_egrep='grep -E'
7025 else ac_cv_prog_egrep='egrep'
7028 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7029 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7030 EGREP=$ac_cv_prog_egrep
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <stdint.h>
7041 _ACEOF
7042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7043 $EGREP "uint32_t" >/dev/null 2>&1; then
7045 cat >>confdefs.h <<\_ACEOF
7046 #define HAVE_INT32_DEFINED 1
7047 _ACEOF
7050 rm -f conftest*
7052 cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h. */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <inttypes.h>
7060 _ACEOF
7061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7062 $EGREP "uint32_t" >/dev/null 2>&1; then
7064 cat >>confdefs.h <<\_ACEOF
7065 #define HAVE_INT32_DEFINED 1
7066 _ACEOF
7069 rm -f conftest*
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 #include <sys/types.h>
7079 _ACEOF
7080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7081 $EGREP "u_int32_t" >/dev/null 2>&1; then
7083 cat >>confdefs.h <<\_ACEOF
7084 #define HAVE_BSD_INT32_DEFINED 1
7085 _ACEOF
7088 rm -f conftest*
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 #include <sys/config.h>
7098 _ACEOF
7099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7100 $EGREP "u_int32_t" >/dev/null 2>&1; then
7102 cat >>confdefs.h <<\_ACEOF
7103 #define HAVE_BSD_INT32_DEFINED 1
7104 _ACEOF
7107 rm -f conftest*
7112 if test "$PLATFORM" = Win32; then
7113 USING_WIN32_PLATFORM_TRUE=
7114 USING_WIN32_PLATFORM_FALSE='#'
7115 else
7116 USING_WIN32_PLATFORM_TRUE='#'
7117 USING_WIN32_PLATFORM_FALSE=
7122 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7123 USING_POSIX_PLATFORM_TRUE=
7124 USING_POSIX_PLATFORM_FALSE='#'
7125 else
7126 USING_POSIX_PLATFORM_TRUE='#'
7127 USING_POSIX_PLATFORM_FALSE=
7131 case "$host" in
7132 *-darwin*) DARWIN_CRT=true ;;
7133 *) DARWIN_CRT=false ;;
7134 esac
7137 if $DARWIN_CRT; then
7138 USING_DARWIN_CRT_TRUE=
7139 USING_DARWIN_CRT_FALSE='#'
7140 else
7141 USING_DARWIN_CRT_TRUE='#'
7142 USING_DARWIN_CRT_FALSE=
7146 # These may not be defined in a non-ANS conformant embedded system.
7147 # FIXME: Should these case a runtime exception in that case?
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h. */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 #include <time.h>
7156 _ACEOF
7157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7158 $EGREP "mktime" >/dev/null 2>&1; then
7160 cat >>confdefs.h <<\_ACEOF
7161 #define HAVE_MKTIME 1
7162 _ACEOF
7165 rm -f conftest*
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 #include <time.h>
7175 _ACEOF
7176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7177 $EGREP "localtime" >/dev/null 2>&1; then
7179 cat >>confdefs.h <<\_ACEOF
7180 #define HAVE_LOCALTIME 1
7181 _ACEOF
7184 rm -f conftest*
7187 # Create the subdirectory for natFile.cc, or the attempt
7188 # to create the link will fail.
7189 test -d java || mkdir java
7190 test -d java/io || mkdir java/io
7191 test -d gnu || mkdir gnu
7192 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7195 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7196 test -d java/lang || mkdir java/lang
7197 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7199 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7202 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7203 test -d java/net || mkdir java/net
7204 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7206 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7209 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7210 test -d gnu/java || mkdir gnu/java
7211 test -d gnu/java/net || mkdir gnu/java/net
7212 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7214 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7217 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7218 test -d gnu/java/nio || mkdir gnu/java/nio
7219 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7221 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7223 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7224 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7227 case "${host}" in
7228 *mingw*)
7229 SYSTEMSPEC="-lgdi32 -lws2_32"
7230 if test "${with_win32_nlsapi}" = "unicows"; then
7231 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7235 SYSTEMSPEC=
7237 esac
7240 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7244 # Check whether --with-system-zlib or --without-system-zlib was given.
7245 if test "${with_system_zlib+set}" = set; then
7246 withval="$with_system_zlib"
7249 ZLIBSPEC=
7251 ZLIBTESTSPEC=
7254 echo "$as_me:$LINENO: checking for X" >&5
7255 echo $ECHO_N "checking for X... $ECHO_C" >&6
7258 # Check whether --with-x or --without-x was given.
7259 if test "${with_x+set}" = set; then
7260 withval="$with_x"
7263 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7264 if test "x$with_x" = xno; then
7265 # The user explicitly disabled X.
7266 have_x=disabled
7267 else
7268 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7269 # Both variables are already set.
7270 have_x=yes
7271 else
7272 if test "${ac_cv_have_x+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275 # One or both of the vars are not set, and there is no cached value.
7276 ac_x_includes=no ac_x_libraries=no
7277 rm -fr conftest.dir
7278 if mkdir conftest.dir; then
7279 cd conftest.dir
7280 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7281 cat >Imakefile <<'_ACEOF'
7282 acfindx:
7283 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7284 _ACEOF
7285 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7286 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7287 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7288 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7289 for ac_extension in a so sl; do
7290 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7291 test -f $ac_im_libdir/libX11.$ac_extension; then
7292 ac_im_usrlibdir=$ac_im_libdir; break
7294 done
7295 # Screen out bogus values from the imake configuration. They are
7296 # bogus both because they are the default anyway, and because
7297 # using them would break gcc on systems where it needs fixed includes.
7298 case $ac_im_incroot in
7299 /usr/include) ;;
7300 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7301 esac
7302 case $ac_im_usrlibdir in
7303 /usr/lib | /lib) ;;
7304 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7305 esac
7307 cd ..
7308 rm -fr conftest.dir
7311 # Standard set of common directories for X headers.
7312 # Check X11 before X11Rn because it is often a symlink to the current release.
7313 ac_x_header_dirs='
7314 /usr/X11/include
7315 /usr/X11R6/include
7316 /usr/X11R5/include
7317 /usr/X11R4/include
7319 /usr/include/X11
7320 /usr/include/X11R6
7321 /usr/include/X11R5
7322 /usr/include/X11R4
7324 /usr/local/X11/include
7325 /usr/local/X11R6/include
7326 /usr/local/X11R5/include
7327 /usr/local/X11R4/include
7329 /usr/local/include/X11
7330 /usr/local/include/X11R6
7331 /usr/local/include/X11R5
7332 /usr/local/include/X11R4
7334 /usr/X386/include
7335 /usr/x386/include
7336 /usr/XFree86/include/X11
7338 /usr/include
7339 /usr/local/include
7340 /usr/unsupported/include
7341 /usr/athena/include
7342 /usr/local/x11r5/include
7343 /usr/lpp/Xamples/include
7345 /usr/openwin/include
7346 /usr/openwin/share/include'
7348 if test "$ac_x_includes" = no; then
7349 # Guess where to find include files, by looking for Intrinsic.h.
7350 # First, try using that file with no special directory specified.
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h. */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 #include <X11/Intrinsic.h>
7358 _ACEOF
7359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } >/dev/null; then
7367 if test -s conftest.err; then
7368 ac_cpp_err=$ac_c_preproc_warn_flag
7369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7370 else
7371 ac_cpp_err=
7373 else
7374 ac_cpp_err=yes
7376 if test -z "$ac_cpp_err"; then
7377 # We can compile using X headers with no special include directory.
7378 ac_x_includes=
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 for ac_dir in $ac_x_header_dirs; do
7384 if test -r "$ac_dir/X11/Intrinsic.h"; then
7385 ac_x_includes=$ac_dir
7386 break
7388 done
7390 rm -f conftest.err conftest.$ac_ext
7391 fi # $ac_x_includes = no
7393 if test "$ac_x_libraries" = no; then
7394 # Check for the libraries.
7395 # See if we find them without any special options.
7396 # Don't add to $LIBS permanently.
7397 ac_save_LIBS=$LIBS
7398 LIBS="-lXt $LIBS"
7399 if test x$gcc_no_link = xyes; then
7400 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7401 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7402 { (exit 1); exit 1; }; }
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h. */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 #include <X11/Intrinsic.h>
7412 main ()
7414 XtMalloc (0)
7416 return 0;
7418 _ACEOF
7419 rm -f conftest.$ac_objext conftest$ac_exeext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421 (eval $ac_link) 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try='test -s conftest$ac_exeext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7441 LIBS=$ac_save_LIBS
7442 # We can link X programs with no special library path.
7443 ac_x_libraries=
7444 else
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448 LIBS=$ac_save_LIBS
7449 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7451 # Don't even attempt the hair of trying to link an X program!
7452 for ac_extension in a so sl; do
7453 if test -r $ac_dir/libXt.$ac_extension; then
7454 ac_x_libraries=$ac_dir
7455 break 2
7457 done
7458 done
7460 rm -f conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext conftest.$ac_ext
7462 fi # $ac_x_libraries = no
7464 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7465 # Didn't find X anywhere. Cache the known absence of X.
7466 ac_cv_have_x="have_x=no"
7467 else
7468 # Record where we found X for the cache.
7469 ac_cv_have_x="have_x=yes \
7470 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7475 eval "$ac_cv_have_x"
7476 fi # $with_x != no
7478 if test "$have_x" != yes; then
7479 echo "$as_me:$LINENO: result: $have_x" >&5
7480 echo "${ECHO_T}$have_x" >&6
7481 no_x=yes
7482 else
7483 # If each of the values was on the command line, it overrides each guess.
7484 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7485 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7486 # Update the cache value to reflect the command line values.
7487 ac_cv_have_x="have_x=yes \
7488 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7489 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7490 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7493 if test "$no_x" = yes; then
7494 # Not all programs may use this symbol, but it does not hurt to define it.
7496 cat >>confdefs.h <<\_ACEOF
7497 #define X_DISPLAY_MISSING 1
7498 _ACEOF
7500 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7501 else
7502 if test -n "$x_includes"; then
7503 X_CFLAGS="$X_CFLAGS -I$x_includes"
7506 # It would also be nice to do this for all -L options, not just this one.
7507 if test -n "$x_libraries"; then
7508 X_LIBS="$X_LIBS -L$x_libraries"
7509 # For Solaris; some versions of Sun CC require a space after -R and
7510 # others require no space. Words are not sufficient . . . .
7511 case `(uname -sr) 2>/dev/null` in
7512 "SunOS 5"*)
7513 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7514 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7515 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7516 if test x$gcc_no_link = xyes; then
7517 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7519 { (exit 1); exit 1; }; }
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7529 main ()
7533 return 0;
7535 _ACEOF
7536 rm -f conftest.$ac_objext conftest$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538 (eval $ac_link) 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } &&
7545 { ac_try='test -z "$ac_c_werror_flag"
7546 || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } &&
7552 { ac_try='test -s conftest$ac_exeext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 (eval $ac_try) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 ac_R_nospace=yes
7559 else
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_R_nospace=no
7565 rm -f conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 if test $ac_R_nospace = yes; then
7568 echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6
7570 X_LIBS="$X_LIBS -R$x_libraries"
7571 else
7572 LIBS="$ac_xsave_LIBS -R $x_libraries"
7573 if test x$gcc_no_link = xyes; then
7574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7576 { (exit 1); exit 1; }; }
7578 cat >conftest.$ac_ext <<_ACEOF
7579 /* confdefs.h. */
7580 _ACEOF
7581 cat confdefs.h >>conftest.$ac_ext
7582 cat >>conftest.$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7586 main ()
7590 return 0;
7592 _ACEOF
7593 rm -f conftest.$ac_objext conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -z "$ac_c_werror_flag"
7603 || test ! -s conftest.err'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest$ac_exeext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 ac_R_space=yes
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ac_R_space=no
7622 rm -f conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
7624 if test $ac_R_space = yes; then
7625 echo "$as_me:$LINENO: result: yes" >&5
7626 echo "${ECHO_T}yes" >&6
7627 X_LIBS="$X_LIBS -R $x_libraries"
7628 else
7629 echo "$as_me:$LINENO: result: neither works" >&5
7630 echo "${ECHO_T}neither works" >&6
7633 LIBS=$ac_xsave_LIBS
7634 esac
7637 # Check for system-dependent libraries X programs must link with.
7638 # Do this before checking for the system-independent R6 libraries
7639 # (-lICE), since we may need -lsocket or whatever for X linking.
7641 if test "$ISC" = yes; then
7642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7643 else
7644 # Martyn Johnson says this is needed for Ultrix, if the X
7645 # libraries were built with DECnet support. And Karl Berry says
7646 # the Alpha needs dnet_stub (dnet does not exist).
7647 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7648 if test x$gcc_no_link = xyes; then
7649 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7651 { (exit 1); exit 1; }; }
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7660 /* Override any gcc2 internal prototype to avoid an error. */
7661 #ifdef __cplusplus
7662 extern "C"
7663 #endif
7664 /* We use char because int might match the return type of a gcc2
7665 builtin and then its argument prototype would still apply. */
7666 char XOpenDisplay ();
7668 main ()
7670 XOpenDisplay ();
7672 return 0;
7674 _ACEOF
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7677 (eval $ac_link) 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag"
7685 || test ! -s conftest.err'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; } &&
7691 { ac_try='test -s conftest$ac_exeext'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7698 else
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7703 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7704 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 ac_check_lib_save_LIBS=$LIBS
7708 LIBS="-ldnet $LIBS"
7709 if test x$gcc_no_link = xyes; then
7710 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7711 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7712 { (exit 1); exit 1; }; }
7714 cat >conftest.$ac_ext <<_ACEOF
7715 /* confdefs.h. */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7721 /* Override any gcc2 internal prototype to avoid an error. */
7722 #ifdef __cplusplus
7723 extern "C"
7724 #endif
7725 /* We use char because int might match the return type of a gcc2
7726 builtin and then its argument prototype would still apply. */
7727 char dnet_ntoa ();
7729 main ()
7731 dnet_ntoa ();
7733 return 0;
7735 _ACEOF
7736 rm -f conftest.$ac_objext conftest$ac_exeext
7737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7738 (eval $ac_link) 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
7745 { ac_try='test -z "$ac_c_werror_flag"
7746 || test ! -s conftest.err'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; } &&
7752 { ac_try='test -s conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 (eval $ac_try) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_cv_lib_dnet_dnet_ntoa=yes
7759 else
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_cv_lib_dnet_dnet_ntoa=no
7765 rm -f conftest.err conftest.$ac_objext \
7766 conftest$ac_exeext conftest.$ac_ext
7767 LIBS=$ac_check_lib_save_LIBS
7769 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7770 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7771 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7772 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7775 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7776 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7777 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7778 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781 ac_check_lib_save_LIBS=$LIBS
7782 LIBS="-ldnet_stub $LIBS"
7783 if test x$gcc_no_link = xyes; then
7784 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7785 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7786 { (exit 1); exit 1; }; }
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7795 /* Override any gcc2 internal prototype to avoid an error. */
7796 #ifdef __cplusplus
7797 extern "C"
7798 #endif
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7801 char dnet_ntoa ();
7803 main ()
7805 dnet_ntoa ();
7807 return 0;
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7833 else
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_cv_lib_dnet_stub_dnet_ntoa=no
7839 rm -f conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 LIBS=$ac_check_lib_save_LIBS
7843 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7844 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7845 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7846 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7851 rm -f conftest.err conftest.$ac_objext \
7852 conftest$ac_exeext conftest.$ac_ext
7853 LIBS="$ac_xsave_LIBS"
7855 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7856 # to get the SysV transport functions.
7857 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7858 # needs -lnsl.
7859 # The nsl library prevents programs from opening the X display
7860 # on Irix 5.2, according to T.E. Dickey.
7861 # The functions gethostbyname, getservbyname, and inet_addr are
7862 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7863 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7864 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7865 if test "${ac_cv_func_gethostbyname+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868 if test x$gcc_no_link = xyes; then
7869 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7870 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7871 { (exit 1); exit 1; }; }
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7881 #define gethostbyname innocuous_gethostbyname
7883 /* System header to define __stub macros and hopefully few prototypes,
7884 which can conflict with char gethostbyname (); below.
7885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7886 <limits.h> exists even on freestanding compilers. */
7888 #ifdef __STDC__
7889 # include <limits.h>
7890 #else
7891 # include <assert.h>
7892 #endif
7894 #undef gethostbyname
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 #ifdef __cplusplus
7898 extern "C"
7900 #endif
7901 /* We use char because int might match the return type of a gcc2
7902 builtin and then its argument prototype would still apply. */
7903 char gethostbyname ();
7904 /* The GNU C library defines this for functions which it implements
7905 to always fail with ENOSYS. Some functions are actually named
7906 something starting with __ and the normal name is an alias. */
7907 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7908 choke me
7909 #else
7910 char (*f) () = gethostbyname;
7911 #endif
7912 #ifdef __cplusplus
7914 #endif
7917 main ()
7919 return f != gethostbyname;
7921 return 0;
7923 _ACEOF
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926 (eval $ac_link) 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag"
7934 || test ! -s conftest.err'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_cv_func_gethostbyname=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 ac_cv_func_gethostbyname=no
7953 rm -f conftest.err conftest.$ac_objext \
7954 conftest$ac_exeext conftest.$ac_ext
7956 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7957 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7959 if test $ac_cv_func_gethostbyname = no; then
7960 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7961 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7962 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965 ac_check_lib_save_LIBS=$LIBS
7966 LIBS="-lnsl $LIBS"
7967 if test x$gcc_no_link = xyes; then
7968 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7970 { (exit 1); exit 1; }; }
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7979 /* Override any gcc2 internal prototype to avoid an error. */
7980 #ifdef __cplusplus
7981 extern "C"
7982 #endif
7983 /* We use char because int might match the return type of a gcc2
7984 builtin and then its argument prototype would still apply. */
7985 char gethostbyname ();
7987 main ()
7989 gethostbyname ();
7991 return 0;
7993 _ACEOF
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7996 (eval $ac_link) 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try='test -z "$ac_c_werror_flag"
8004 || test ! -s conftest.err'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_cv_lib_nsl_gethostbyname=yes
8017 else
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 ac_cv_lib_nsl_gethostbyname=no
8023 rm -f conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025 LIBS=$ac_check_lib_save_LIBS
8027 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8028 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8029 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8030 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8033 if test $ac_cv_lib_nsl_gethostbyname = no; then
8034 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8035 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8036 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039 ac_check_lib_save_LIBS=$LIBS
8040 LIBS="-lbsd $LIBS"
8041 if test x$gcc_no_link = xyes; then
8042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8044 { (exit 1); exit 1; }; }
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8053 /* Override any gcc2 internal prototype to avoid an error. */
8054 #ifdef __cplusplus
8055 extern "C"
8056 #endif
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8059 char gethostbyname ();
8061 main ()
8063 gethostbyname ();
8065 return 0;
8067 _ACEOF
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8070 (eval $ac_link) 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_c_werror_flag"
8078 || test ! -s conftest.err'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest$ac_exeext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 ac_cv_lib_bsd_gethostbyname=yes
8091 else
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8095 ac_cv_lib_bsd_gethostbyname=no
8097 rm -f conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
8099 LIBS=$ac_check_lib_save_LIBS
8101 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8102 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8103 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8110 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8111 # socket/setsockopt and other routines are undefined under SCO ODT
8112 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8113 # on later versions), says Simon Leinen: it contains gethostby*
8114 # variants that don't use the name server (or something). -lsocket
8115 # must be given before -lnsl if both are needed. We assume that
8116 # if connect needs -lnsl, so does gethostbyname.
8117 echo "$as_me:$LINENO: checking for connect" >&5
8118 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8119 if test "${ac_cv_func_connect+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 if test x$gcc_no_link = xyes; then
8123 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8125 { (exit 1); exit 1; }; }
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8135 #define connect innocuous_connect
8137 /* System header to define __stub macros and hopefully few prototypes,
8138 which can conflict with char connect (); below.
8139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8140 <limits.h> exists even on freestanding compilers. */
8142 #ifdef __STDC__
8143 # include <limits.h>
8144 #else
8145 # include <assert.h>
8146 #endif
8148 #undef connect
8150 /* Override any gcc2 internal prototype to avoid an error. */
8151 #ifdef __cplusplus
8152 extern "C"
8154 #endif
8155 /* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8157 char connect ();
8158 /* The GNU C library defines this for functions which it implements
8159 to always fail with ENOSYS. Some functions are actually named
8160 something starting with __ and the normal name is an alias. */
8161 #if defined (__stub_connect) || defined (__stub___connect)
8162 choke me
8163 #else
8164 char (*f) () = connect;
8165 #endif
8166 #ifdef __cplusplus
8168 #endif
8171 main ()
8173 return f != connect;
8175 return 0;
8177 _ACEOF
8178 rm -f conftest.$ac_objext conftest$ac_exeext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180 (eval $ac_link) 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest$ac_exeext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_cv_func_connect=yes
8201 else
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 ac_cv_func_connect=no
8207 rm -f conftest.err conftest.$ac_objext \
8208 conftest$ac_exeext conftest.$ac_ext
8210 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8211 echo "${ECHO_T}$ac_cv_func_connect" >&6
8213 if test $ac_cv_func_connect = no; then
8214 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8215 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8216 if test "${ac_cv_lib_socket_connect+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 ac_check_lib_save_LIBS=$LIBS
8220 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8221 if test x$gcc_no_link = xyes; then
8222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8224 { (exit 1); exit 1; }; }
8226 cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h. */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 #ifdef __cplusplus
8235 extern "C"
8236 #endif
8237 /* We use char because int might match the return type of a gcc2
8238 builtin and then its argument prototype would still apply. */
8239 char connect ();
8241 main ()
8243 connect ();
8245 return 0;
8247 _ACEOF
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8250 (eval $ac_link) 2>conftest.er1
8251 ac_status=$?
8252 grep -v '^ *+' conftest.er1 >conftest.err
8253 rm -f conftest.er1
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -z "$ac_c_werror_flag"
8258 || test ! -s conftest.err'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; } &&
8264 { ac_try='test -s conftest$ac_exeext'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 (eval $ac_try) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270 ac_cv_lib_socket_connect=yes
8271 else
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8275 ac_cv_lib_socket_connect=no
8277 rm -f conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8279 LIBS=$ac_check_lib_save_LIBS
8281 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8282 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8283 if test $ac_cv_lib_socket_connect = yes; then
8284 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8289 # Guillermo Gomez says -lposix is necessary on A/UX.
8290 echo "$as_me:$LINENO: checking for remove" >&5
8291 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8292 if test "${ac_cv_func_remove+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 if test x$gcc_no_link = xyes; then
8296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8298 { (exit 1); exit 1; }; }
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h. */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8308 #define remove innocuous_remove
8310 /* System header to define __stub macros and hopefully few prototypes,
8311 which can conflict with char remove (); below.
8312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8313 <limits.h> exists even on freestanding compilers. */
8315 #ifdef __STDC__
8316 # include <limits.h>
8317 #else
8318 # include <assert.h>
8319 #endif
8321 #undef remove
8323 /* Override any gcc2 internal prototype to avoid an error. */
8324 #ifdef __cplusplus
8325 extern "C"
8327 #endif
8328 /* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8330 char remove ();
8331 /* The GNU C library defines this for functions which it implements
8332 to always fail with ENOSYS. Some functions are actually named
8333 something starting with __ and the normal name is an alias. */
8334 #if defined (__stub_remove) || defined (__stub___remove)
8335 choke me
8336 #else
8337 char (*f) () = remove;
8338 #endif
8339 #ifdef __cplusplus
8341 #endif
8344 main ()
8346 return f != remove;
8348 return 0;
8350 _ACEOF
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8353 (eval $ac_link) 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -z "$ac_c_werror_flag"
8361 || test ! -s conftest.err'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest$ac_exeext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 (eval $ac_try) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_cv_func_remove=yes
8374 else
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 ac_cv_func_remove=no
8380 rm -f conftest.err conftest.$ac_objext \
8381 conftest$ac_exeext conftest.$ac_ext
8383 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8384 echo "${ECHO_T}$ac_cv_func_remove" >&6
8386 if test $ac_cv_func_remove = no; then
8387 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8388 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8389 if test "${ac_cv_lib_posix_remove+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392 ac_check_lib_save_LIBS=$LIBS
8393 LIBS="-lposix $LIBS"
8394 if test x$gcc_no_link = xyes; then
8395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8397 { (exit 1); exit 1; }; }
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8406 /* Override any gcc2 internal prototype to avoid an error. */
8407 #ifdef __cplusplus
8408 extern "C"
8409 #endif
8410 /* We use char because int might match the return type of a gcc2
8411 builtin and then its argument prototype would still apply. */
8412 char remove ();
8414 main ()
8416 remove ();
8418 return 0;
8420 _ACEOF
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -z "$ac_c_werror_flag"
8431 || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_lib_posix_remove=yes
8444 else
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_lib_posix_remove=no
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 LIBS=$ac_check_lib_save_LIBS
8454 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8455 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8456 if test $ac_cv_lib_posix_remove = yes; then
8457 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8462 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8463 echo "$as_me:$LINENO: checking for shmat" >&5
8464 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8465 if test "${ac_cv_func_shmat+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 if test x$gcc_no_link = xyes; then
8469 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8471 { (exit 1); exit 1; }; }
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8481 #define shmat innocuous_shmat
8483 /* System header to define __stub macros and hopefully few prototypes,
8484 which can conflict with char shmat (); below.
8485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8486 <limits.h> exists even on freestanding compilers. */
8488 #ifdef __STDC__
8489 # include <limits.h>
8490 #else
8491 # include <assert.h>
8492 #endif
8494 #undef shmat
8496 /* Override any gcc2 internal prototype to avoid an error. */
8497 #ifdef __cplusplus
8498 extern "C"
8500 #endif
8501 /* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8503 char shmat ();
8504 /* The GNU C library defines this for functions which it implements
8505 to always fail with ENOSYS. Some functions are actually named
8506 something starting with __ and the normal name is an alias. */
8507 #if defined (__stub_shmat) || defined (__stub___shmat)
8508 choke me
8509 #else
8510 char (*f) () = shmat;
8511 #endif
8512 #ifdef __cplusplus
8514 #endif
8517 main ()
8519 return f != shmat;
8521 return 0;
8523 _ACEOF
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag"
8534 || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_cv_func_shmat=yes
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 ac_cv_func_shmat=no
8553 rm -f conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8557 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8559 if test $ac_cv_func_shmat = no; then
8560 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8561 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8562 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 ac_check_lib_save_LIBS=$LIBS
8566 LIBS="-lipc $LIBS"
8567 if test x$gcc_no_link = xyes; then
8568 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8569 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8570 { (exit 1); exit 1; }; }
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8579 /* Override any gcc2 internal prototype to avoid an error. */
8580 #ifdef __cplusplus
8581 extern "C"
8582 #endif
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8585 char shmat ();
8587 main ()
8589 shmat ();
8591 return 0;
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -z "$ac_c_werror_flag"
8604 || test ! -s conftest.err'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; } &&
8610 { ac_try='test -s conftest$ac_exeext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616 ac_cv_lib_ipc_shmat=yes
8617 else
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8621 ac_cv_lib_ipc_shmat=no
8623 rm -f conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625 LIBS=$ac_check_lib_save_LIBS
8627 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8628 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8629 if test $ac_cv_lib_ipc_shmat = yes; then
8630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8636 # Check for libraries that X11R6 Xt/Xaw programs need.
8637 ac_save_LDFLAGS=$LDFLAGS
8638 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8639 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8640 # check for ICE first), but we must link in the order -lSM -lICE or
8641 # we get undefined symbols. So assume we have SM if we have ICE.
8642 # These have to be linked with before -lX11, unlike the other
8643 # libraries we check for below, so use a different variable.
8644 # John Interrante, Karl Berry
8645 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8646 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8647 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650 ac_check_lib_save_LIBS=$LIBS
8651 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8652 if test x$gcc_no_link = xyes; then
8653 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8654 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8655 { (exit 1); exit 1; }; }
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h. */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8664 /* Override any gcc2 internal prototype to avoid an error. */
8665 #ifdef __cplusplus
8666 extern "C"
8667 #endif
8668 /* We use char because int might match the return type of a gcc2
8669 builtin and then its argument prototype would still apply. */
8670 char IceConnectionNumber ();
8672 main ()
8674 IceConnectionNumber ();
8676 return 0;
8678 _ACEOF
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_cv_lib_ICE_IceConnectionNumber=yes
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_lib_ICE_IceConnectionNumber=no
8708 rm -f conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8712 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8713 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8714 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8715 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8718 LDFLAGS=$ac_save_LDFLAGS
8723 # determine whether to enable the cairo GTK Graphics2D backend
8724 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8725 if test "${enable_gtk_cairo+set}" = set; then
8726 enableval="$enable_gtk_cairo"
8731 if test "x${enable_gtk_cairo}" = xyes; then
8732 GTK_CAIRO_TRUE=
8733 GTK_CAIRO_FALSE='#'
8734 else
8735 GTK_CAIRO_TRUE='#'
8736 GTK_CAIRO_FALSE=
8739 if test "x${enable_gtk_cairo}" = xyes
8740 then
8742 succeeded=no
8744 if test -z "$PKG_CONFIG"; then
8745 # Extract the first word of "pkg-config", so it can be a program name with args.
8746 set dummy pkg-config; ac_word=$2
8747 echo "$as_me:$LINENO: checking for $ac_word" >&5
8748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8749 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752 case $PKG_CONFIG in
8753 [\\/]* | ?:[\\/]*)
8754 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8768 done
8769 done
8771 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8773 esac
8775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8777 if test -n "$PKG_CONFIG"; then
8778 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8779 echo "${ECHO_T}$PKG_CONFIG" >&6
8780 else
8781 echo "$as_me:$LINENO: result: no" >&5
8782 echo "${ECHO_T}no" >&6
8787 if test "$PKG_CONFIG" = "no" ; then
8788 echo "*** The pkg-config script could not be found. Make sure it is"
8789 echo "*** in your path, or set the PKG_CONFIG environment variable"
8790 echo "*** to the full path to pkg-config."
8791 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8792 else
8793 PKG_CONFIG_MIN_VERSION=0.9.0
8794 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8795 echo "$as_me:$LINENO: checking for cairo" >&5
8796 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8798 if $PKG_CONFIG --exists "cairo" ; then
8799 echo "$as_me:$LINENO: result: yes" >&5
8800 echo "${ECHO_T}yes" >&6
8801 succeeded=yes
8803 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8804 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8805 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8806 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8807 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8809 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8810 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8811 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8812 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8813 echo "${ECHO_T}$CAIRO_LIBS" >&6
8814 else
8815 CAIRO_CFLAGS=""
8816 CAIRO_LIBS=""
8817 ## If we have a custom action on failure, don't print errors, but
8818 ## do set a variable so people can do so.
8819 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8820 echo $CAIRO_PKG_ERRORS
8825 else
8826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8831 if test $succeeded = yes; then
8833 else
8834 { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8835 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8836 { (exit 1); exit 1; }; }
8840 succeeded=no
8842 if test -z "$PKG_CONFIG"; then
8843 # Extract the first word of "pkg-config", so it can be a program name with args.
8844 set dummy pkg-config; ac_word=$2
8845 echo "$as_me:$LINENO: checking for $ac_word" >&5
8846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 else
8850 case $PKG_CONFIG in
8851 [\\/]* | ?:[\\/]*)
8852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 for as_dir in $PATH
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 break 2
8866 done
8867 done
8869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8871 esac
8873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8875 if test -n "$PKG_CONFIG"; then
8876 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8877 echo "${ECHO_T}$PKG_CONFIG" >&6
8878 else
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8885 if test "$PKG_CONFIG" = "no" ; then
8886 echo "*** The pkg-config script could not be found. Make sure it is"
8887 echo "*** in your path, or set the PKG_CONFIG environment variable"
8888 echo "*** to the full path to pkg-config."
8889 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8890 else
8891 PKG_CONFIG_MIN_VERSION=0.9.0
8892 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8893 echo "$as_me:$LINENO: checking for pangoft2" >&5
8894 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8896 if $PKG_CONFIG --exists "pangoft2" ; then
8897 echo "$as_me:$LINENO: result: yes" >&5
8898 echo "${ECHO_T}yes" >&6
8899 succeeded=yes
8901 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8902 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8903 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8904 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8905 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8907 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8908 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8909 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8910 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8911 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8912 else
8913 PANGOFT2_CFLAGS=""
8914 PANGOFT2_LIBS=""
8915 ## If we have a custom action on failure, don't print errors, but
8916 ## do set a variable so people can do so.
8917 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8918 echo $PANGOFT2_PKG_ERRORS
8923 else
8924 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8925 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8929 if test $succeeded = yes; then
8931 else
8932 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8933 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8934 { (exit 1); exit 1; }; }
8943 # FIXME: this should be _libs on some hosts.
8944 libsubdir=.libs
8946 # extra LD Flags which are required for targets
8947 case "${host}" in
8948 *-*-darwin[0-7].*)
8949 # For now we have to disable it on darwin[8-9] because it slows down
8950 # the linking phase. A possible bug in ld?
8951 # on Darwin -single_module speeds up loading of the dynamic libraries.
8952 extra_ldflags_libjava=-Wl,-single_module
8954 esac
8957 # Allow the GC to be disabled. Can be useful when debugging.
8958 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8959 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8960 # Check whether --enable-java-gc or --disable-java-gc was given.
8961 if test "${enable_java_gc+set}" = set; then
8962 enableval="$enable_java_gc"
8963 GC=$enableval
8964 else
8965 GC=boehm
8967 GCLIBS=
8968 GCINCS=
8969 GCDEPS=
8970 GCSPEC=
8971 JC1GCSPEC=
8972 GCTESTSPEC=
8973 case "$GC" in
8974 boehm)
8975 echo "$as_me:$LINENO: result: boehm" >&5
8976 echo "${ECHO_T}boehm" >&6
8977 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8978 JC1GCSPEC='-fuse-boehm-gc'
8979 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8980 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8981 GCOBJS=boehm.lo
8982 GCHDR=boehm-gc.h
8983 # The POSIX thread support needs to know this.
8985 cat >>confdefs.h <<\_ACEOF
8986 #define HAVE_BOEHM_GC 1
8987 _ACEOF
8991 echo "$as_me:$LINENO: result: none" >&5
8992 echo "${ECHO_T}none" >&6
8993 GCHDR=no-gc.h
8996 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8997 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8998 { (exit 1); exit 1; }; }
9000 esac
9007 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9011 if test "$GC" = boehm; then
9012 USING_BOEHMGC_TRUE=
9013 USING_BOEHMGC_FALSE='#'
9014 else
9015 USING_BOEHMGC_TRUE='#'
9016 USING_BOEHMGC_FALSE=
9021 if test "$GC" = no; then
9022 USING_NOGC_TRUE=
9023 USING_NOGC_FALSE='#'
9024 else
9025 USING_NOGC_TRUE='#'
9026 USING_NOGC_FALSE=
9031 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9032 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9033 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9034 echo "$as_me:$LINENO: result: $THREADS" >&5
9035 echo "${ECHO_T}$THREADS" >&6
9037 case "$THREADS" in
9038 no | none | single)
9039 THREADS=none
9041 posix | posix95 | pthreads)
9042 THREADS=posix
9043 case "$host" in
9044 *-*-linux*)
9046 cat >>confdefs.h <<\_ACEOF
9047 #define LINUX_THREADS 1
9048 _ACEOF
9051 esac
9053 win32)
9055 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9056 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9057 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9058 { (exit 1); exit 1; }; }
9061 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9062 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9063 { (exit 1); exit 1; }; }
9065 esac
9067 THREADCXXFLAGS=
9068 THREADLDFLAGS=
9069 THREADLIBS=
9070 THREADINCS=
9071 THREADDEPS=
9072 THREADH=
9073 THREADSPEC=
9074 case "$THREADS" in
9075 posix)
9076 case "$host" in
9077 *-*-cygwin*)
9078 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9080 *-*-freebsd[1234]*)
9081 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9082 # merely adds pthread_* functions) but it does have a -pthread switch
9083 # which is required at link-time to select -lc_r *instead* of -lc.
9084 THREADLDFLAGS=-pthread
9085 # Don't set THREADSPEC here as might be expected since -pthread is
9086 # not processed when found within a spec file, it must come from
9087 # the command line. For now, the user must provide the -pthread
9088 # switch to link code compiled with gcj. In future, consider adding
9089 # support for weak references to pthread_* functions ala gthr.h API.
9090 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9092 *-*-freebsd*)
9093 # FreeBSD 5 implements a model much closer to other modern UNIX
9094 # which support threads. However, it still does not support
9095 # -lpthread.
9096 THREADLDFLAGS=-pthread
9097 THREADSPEC=-lc_r
9099 alpha*-dec-osf*)
9100 THREADCXXFLAGS=-pthread
9101 # boehm-gc needs some functions from librt, so link that too.
9102 THREADLIBS='-lpthread -lrt'
9103 THREADSPEC='-lpthread -lrt'
9106 THREADLIBS=-lpthread
9107 THREADSPEC=-lpthread
9109 esac
9110 THREADH=posix-threads.h
9111 # MIT pthreads doesn't seem to have the mutexattr functions.
9112 # But for now we don't check for it. We just assume you aren't
9113 # using MIT pthreads.
9115 cat >>confdefs.h <<\_ACEOF
9116 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9117 _ACEOF
9120 # If we're using the Boehm GC, then we happen to know that it
9121 # defines _REENTRANT, so we don't bother. Eww.
9122 if test "$GC" != boehm; then
9124 cat >>confdefs.h <<\_ACEOF
9125 #define _REENTRANT 1
9126 _ACEOF
9130 cat >>confdefs.h <<\_ACEOF
9131 #define _POSIX_PTHREAD_SEMANTICS 1
9132 _ACEOF
9136 win32)
9137 THREADH=win32-threads.h
9140 none)
9141 THREADH=no-threads.h
9143 esac
9144 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9154 if test "$THREADS" = posix; then
9155 USING_POSIX_THREADS_TRUE=
9156 USING_POSIX_THREADS_FALSE='#'
9157 else
9158 USING_POSIX_THREADS_TRUE='#'
9159 USING_POSIX_THREADS_FALSE=
9164 if test "$THREADS" = win32; then
9165 USING_WIN32_THREADS_TRUE=
9166 USING_WIN32_THREADS_FALSE='#'
9167 else
9168 USING_WIN32_THREADS_TRUE='#'
9169 USING_WIN32_THREADS_FALSE=
9174 if test "$THREADS" = none; then
9175 USING_NO_THREADS_TRUE=
9176 USING_NO_THREADS_FALSE='#'
9177 else
9178 USING_NO_THREADS_TRUE='#'
9179 USING_NO_THREADS_FALSE=
9183 if test -d sysdep; then true; else mkdir sysdep; fi
9184 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9186 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9188 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9191 HASH_SYNC_SPEC=
9192 # Hash synchronization is only useful with posix threads right now.
9193 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9194 HASH_SYNC_SPEC=-fhash-synchronization
9196 cat >>confdefs.h <<\_ACEOF
9197 #define JV_HASH_SYNCHRONIZATION 1
9198 _ACEOF
9205 if test "$GCC" = yes; then
9206 USING_GCC_TRUE=
9207 USING_GCC_FALSE='#'
9208 else
9209 USING_GCC_TRUE='#'
9210 USING_GCC_FALSE=
9214 # We're in the tree with gcc, and need to include some of its headers.
9215 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9217 if test "x${with_newlib}" = "xyes"; then
9218 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9219 # may not work correctly, because the compiler may not be able to
9220 # link executables.
9222 # We assume newlib. This lets us hard-code the functions we know
9223 # we'll have.
9225 cat >>confdefs.h <<\_ACEOF
9226 #define HAVE_MEMMOVE 1
9227 _ACEOF
9230 cat >>confdefs.h <<\_ACEOF
9231 #define HAVE_MEMCPY 1
9232 _ACEOF
9235 cat >>confdefs.h <<\_ACEOF
9236 #define HAVE_STRERROR 1
9237 _ACEOF
9240 cat >>confdefs.h <<\_ACEOF
9241 #define HAVE_TIME 1
9242 _ACEOF
9245 cat >>confdefs.h <<\_ACEOF
9246 #define HAVE_GMTIME_R 1
9247 _ACEOF
9250 cat >>confdefs.h <<\_ACEOF
9251 #define HAVE_LOCALTIME_R 1
9252 _ACEOF
9255 cat >>confdefs.h <<\_ACEOF
9256 #define HAVE_USLEEP_DECL 1
9257 _ACEOF
9259 # This is only for POSIX threads.
9261 cat >>confdefs.h <<\_ACEOF
9262 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9263 _ACEOF
9265 # We also assume we are using gcc, which provides alloca.
9266 cat >>confdefs.h <<\_ACEOF
9267 #define HAVE_ALLOCA 1
9268 _ACEOF
9271 # Assume we do not have getuid and friends.
9273 cat >>confdefs.h <<\_ACEOF
9274 #define NO_GETUID 1
9275 _ACEOF
9277 PLATFORMNET=NoNet
9278 else
9311 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9312 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9313 access stat mkdir rename rmdir unlink realpath utime chmod \
9314 nl_langinfo setlocale \
9315 inet_pton uname inet_ntoa \
9316 fork execvp pipe sigaction ftruncate
9318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9319 echo "$as_me:$LINENO: checking for $ac_func" >&5
9320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_var+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324 if test x$gcc_no_link = xyes; then
9325 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9326 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9327 { (exit 1); exit 1; }; }
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h. */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9337 #define $ac_func innocuous_$ac_func
9339 /* System header to define __stub macros and hopefully few prototypes,
9340 which can conflict with char $ac_func (); below.
9341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9342 <limits.h> exists even on freestanding compilers. */
9344 #ifdef __STDC__
9345 # include <limits.h>
9346 #else
9347 # include <assert.h>
9348 #endif
9350 #undef $ac_func
9352 /* Override any gcc2 internal prototype to avoid an error. */
9353 #ifdef __cplusplus
9354 extern "C"
9356 #endif
9357 /* We use char because int might match the return type of a gcc2
9358 builtin and then its argument prototype would still apply. */
9359 char $ac_func ();
9360 /* The GNU C library defines this for functions which it implements
9361 to always fail with ENOSYS. Some functions are actually named
9362 something starting with __ and the normal name is an alias. */
9363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9364 choke me
9365 #else
9366 char (*f) () = $ac_func;
9367 #endif
9368 #ifdef __cplusplus
9370 #endif
9373 main ()
9375 return f != $ac_func;
9377 return 0;
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_c_werror_flag"
9390 || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 eval "$as_ac_var=yes"
9403 else
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 eval "$as_ac_var=no"
9409 rm -f conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9414 if test `eval echo '${'$as_ac_var'}'` = yes; then
9415 cat >>confdefs.h <<_ACEOF
9416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9417 _ACEOF
9420 done
9424 for ac_func in inet_aton inet_addr
9426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9427 echo "$as_me:$LINENO: checking for $ac_func" >&5
9428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9429 if eval "test \"\${$as_ac_var+set}\" = set"; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 if test x$gcc_no_link = xyes; then
9433 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9435 { (exit 1); exit 1; }; }
9437 cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h. */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9445 #define $ac_func innocuous_$ac_func
9447 /* System header to define __stub macros and hopefully few prototypes,
9448 which can conflict with char $ac_func (); below.
9449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9450 <limits.h> exists even on freestanding compilers. */
9452 #ifdef __STDC__
9453 # include <limits.h>
9454 #else
9455 # include <assert.h>
9456 #endif
9458 #undef $ac_func
9460 /* Override any gcc2 internal prototype to avoid an error. */
9461 #ifdef __cplusplus
9462 extern "C"
9464 #endif
9465 /* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
9467 char $ac_func ();
9468 /* The GNU C library defines this for functions which it implements
9469 to always fail with ENOSYS. Some functions are actually named
9470 something starting with __ and the normal name is an alias. */
9471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9472 choke me
9473 #else
9474 char (*f) () = $ac_func;
9475 #endif
9476 #ifdef __cplusplus
9478 #endif
9481 main ()
9483 return f != $ac_func;
9485 return 0;
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9490 (eval $ac_link) 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag"
9498 || test ! -s conftest.err'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 (eval $ac_try) 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; } &&
9504 { ac_try='test -s conftest$ac_exeext'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 (eval $ac_try) 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
9510 eval "$as_ac_var=yes"
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 eval "$as_ac_var=no"
9517 rm -f conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9522 if test `eval echo '${'$as_ac_var'}'` = yes; then
9523 cat >>confdefs.h <<_ACEOF
9524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9525 _ACEOF
9526 break
9528 done
9530 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9531 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9532 if test "${ac_cv_header_stdc+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 #include <stdlib.h>
9542 #include <stdarg.h>
9543 #include <string.h>
9544 #include <float.h>
9547 main ()
9551 return 0;
9553 _ACEOF
9554 rm -f conftest.$ac_objext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9556 (eval $ac_compile) 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest.$ac_objext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_cv_header_stdc=yes
9577 else
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9581 ac_cv_header_stdc=no
9583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9585 if test $ac_cv_header_stdc = yes; then
9586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 #include <string.h>
9595 _ACEOF
9596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9597 $EGREP "memchr" >/dev/null 2>&1; then
9599 else
9600 ac_cv_header_stdc=no
9602 rm -f conftest*
9606 if test $ac_cv_header_stdc = yes; then
9607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h. */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 #include <stdlib.h>
9616 _ACEOF
9617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9618 $EGREP "free" >/dev/null 2>&1; then
9620 else
9621 ac_cv_header_stdc=no
9623 rm -f conftest*
9627 if test $ac_cv_header_stdc = yes; then
9628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9629 if test "$cross_compiling" = yes; then
9631 else
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h. */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638 #include <ctype.h>
9639 #if ((' ' & 0x0FF) == 0x020)
9640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9642 #else
9643 # define ISLOWER(c) \
9644 (('a' <= (c) && (c) <= 'i') \
9645 || ('j' <= (c) && (c) <= 'r') \
9646 || ('s' <= (c) && (c) <= 'z'))
9647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9648 #endif
9650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9652 main ()
9654 int i;
9655 for (i = 0; i < 256; i++)
9656 if (XOR (islower (i), ISLOWER (i))
9657 || toupper (i) != TOUPPER (i))
9658 exit(2);
9659 exit (0);
9661 _ACEOF
9662 rm -f conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
9674 else
9675 echo "$as_me: program exited with status $ac_status" >&5
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ( exit $ac_status )
9680 ac_cv_header_stdc=no
9682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9686 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9687 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9688 if test $ac_cv_header_stdc = yes; then
9690 cat >>confdefs.h <<\_ACEOF
9691 #define STDC_HEADERS 1
9692 _ACEOF
9696 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9706 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9707 inttypes.h stdint.h unistd.h
9709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710 echo "$as_me:$LINENO: checking for $ac_header" >&5
9711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 $ac_includes_default
9723 #include <$ac_header>
9724 _ACEOF
9725 rm -f conftest.$ac_objext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9727 (eval $ac_compile) 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag"
9735 || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 (eval $ac_try) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest.$ac_objext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 eval "$as_ac_Header=yes"
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 eval "$as_ac_Header=no"
9754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9759 cat >>confdefs.h <<_ACEOF
9760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9761 _ACEOF
9765 done
9771 for ac_header in execinfo.h unistd.h dlfcn.h
9773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9775 echo "$as_me:$LINENO: checking for $ac_header" >&5
9776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9782 else
9783 # Is the header compilable?
9784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $ac_includes_default
9793 #include <$ac_header>
9794 _ACEOF
9795 rm -f conftest.$ac_objext
9796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9797 (eval $ac_compile) 2>conftest.er1
9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -z "$ac_c_werror_flag"
9805 || test ! -s conftest.err'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 (eval $ac_try) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; } &&
9811 { ac_try='test -s conftest.$ac_objext'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9817 ac_header_compiler=yes
9818 else
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9822 ac_header_compiler=no
9824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9826 echo "${ECHO_T}$ac_header_compiler" >&6
9828 # Is the header present?
9829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h. */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837 #include <$ac_header>
9838 _ACEOF
9839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } >/dev/null; then
9847 if test -s conftest.err; then
9848 ac_cpp_err=$ac_c_preproc_warn_flag
9849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9850 else
9851 ac_cpp_err=
9853 else
9854 ac_cpp_err=yes
9856 if test -z "$ac_cpp_err"; then
9857 ac_header_preproc=yes
9858 else
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 ac_header_preproc=no
9864 rm -f conftest.err conftest.$ac_ext
9865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9866 echo "${ECHO_T}$ac_header_preproc" >&6
9868 # So? What about this header?
9869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9870 yes:no: )
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9875 ac_header_preproc=yes
9877 no:yes:* )
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9891 cat <<\_ASBOX
9892 ## ---------------------------------- ##
9893 ## Report this to the libjava lists. ##
9894 ## ---------------------------------- ##
9895 _ASBOX
9897 sed "s/^/$as_me: WARNING: /" >&2
9899 esac
9900 echo "$as_me:$LINENO: checking for $ac_header" >&5
9901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905 eval "$as_ac_Header=\$ac_header_preproc"
9907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9912 cat >>confdefs.h <<_ACEOF
9913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9914 _ACEOF
9918 done
9920 echo "$as_me:$LINENO: checking for backtrace" >&5
9921 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9922 if test "${ac_cv_func_backtrace+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 if test x$gcc_no_link = xyes; then
9926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9928 { (exit 1); exit 1; }; }
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9938 #define backtrace innocuous_backtrace
9940 /* System header to define __stub macros and hopefully few prototypes,
9941 which can conflict with char backtrace (); below.
9942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9943 <limits.h> exists even on freestanding compilers. */
9945 #ifdef __STDC__
9946 # include <limits.h>
9947 #else
9948 # include <assert.h>
9949 #endif
9951 #undef backtrace
9953 /* Override any gcc2 internal prototype to avoid an error. */
9954 #ifdef __cplusplus
9955 extern "C"
9957 #endif
9958 /* We use char because int might match the return type of a gcc2
9959 builtin and then its argument prototype would still apply. */
9960 char backtrace ();
9961 /* The GNU C library defines this for functions which it implements
9962 to always fail with ENOSYS. Some functions are actually named
9963 something starting with __ and the normal name is an alias. */
9964 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9965 choke me
9966 #else
9967 char (*f) () = backtrace;
9968 #endif
9969 #ifdef __cplusplus
9971 #endif
9974 main ()
9976 return f != backtrace;
9978 return 0;
9980 _ACEOF
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9983 (eval $ac_link) 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_func_backtrace=yes
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_cv_func_backtrace=no
10010 rm -f conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10013 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
10014 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
10015 if test $ac_cv_func_backtrace = yes; then
10017 case "$host" in
10018 ia64-*-linux*)
10019 # Has broken backtrace()
10021 mips*-*-linux*)
10022 # Has broken backtrace(), but we supply our own.
10023 if test -d sysdep; then true; else mkdir -p sysdep; fi
10024 supply_backtrace=yes
10026 cat >>confdefs.h <<\_ACEOF
10027 #define HAVE_BACKTRACE 1
10028 _ACEOF
10033 cat >>confdefs.h <<\_ACEOF
10034 #define HAVE_BACKTRACE 1
10035 _ACEOF
10038 esac
10040 else
10042 case "$host" in
10043 *mingw*)
10044 # Has backtrace() defined in libgcj itself
10046 cat >>confdefs.h <<\_ACEOF
10047 #define HAVE_BACKTRACE 1
10048 _ACEOF
10051 esac
10056 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10057 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10058 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061 ac_check_lib_save_LIBS=$LIBS
10062 LIBS="-ldl $LIBS"
10063 if test x$gcc_no_link = xyes; then
10064 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10066 { (exit 1); exit 1; }; }
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10075 /* Override any gcc2 internal prototype to avoid an error. */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10081 char dladdr ();
10083 main ()
10085 dladdr ();
10087 return 0;
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_lib_dl_dladdr=yes
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 ac_cv_lib_dl_dladdr=no
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 LIBS=$ac_check_lib_save_LIBS
10123 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10124 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10125 if test $ac_cv_lib_dl_dladdr = yes; then
10127 if test "x${disable_dladdr}" = "xyes"; then
10128 #Broken dladdr().
10129 true
10130 else
10132 cat >>confdefs.h <<\_ACEOF
10133 #define HAVE_DLADDR 1
10134 _ACEOF
10140 if test x"$build" = x"$host"; then
10141 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10142 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10143 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 test "$cross_compiling" = yes &&
10147 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10148 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10149 { (exit 1); exit 1; }; }
10150 if test -r "/proc/self/exe"; then
10151 ac_cv_file__proc_self_exe=yes
10152 else
10153 ac_cv_file__proc_self_exe=no
10156 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10157 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10158 if test $ac_cv_file__proc_self_exe = yes; then
10160 cat >>confdefs.h <<_ACEOF
10161 #define HAVE__PROC_SELF_EXE 1
10162 _ACEOF
10166 cat >>confdefs.h <<\_ACEOF
10167 #define HAVE_PROC_SELF_EXE 1
10168 _ACEOF
10172 else
10173 case $host in
10174 *-linux*)
10176 cat >>confdefs.h <<\_ACEOF
10177 #define HAVE_PROC_SELF_EXE 1
10178 _ACEOF
10181 esac
10185 if test "X$prefix" = "XNONE"; then
10186 acl_final_prefix="$ac_default_prefix"
10187 else
10188 acl_final_prefix="$prefix"
10190 if test "X$exec_prefix" = "XNONE"; then
10191 acl_final_exec_prefix='${prefix}'
10192 else
10193 acl_final_exec_prefix="$exec_prefix"
10195 acl_save_prefix="$prefix"
10196 prefix="$acl_final_prefix"
10197 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10198 prefix="$acl_save_prefix"
10201 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10202 if test "${with_gnu_ld+set}" = set; then
10203 withval="$with_gnu_ld"
10204 test "$withval" = no || with_gnu_ld=yes
10205 else
10206 with_gnu_ld=no
10208 # Prepare PATH_SEPARATOR.
10209 # The user is always right.
10210 if test "${PATH_SEPARATOR+set}" != set; then
10211 echo "#! /bin/sh" >conf$$.sh
10212 echo "exit 0" >>conf$$.sh
10213 chmod +x conf$$.sh
10214 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10215 PATH_SEPARATOR=';'
10216 else
10217 PATH_SEPARATOR=:
10219 rm -f conf$$.sh
10221 ac_prog=ld
10222 if test "$GCC" = yes; then
10223 # Check if gcc -print-prog-name=ld gives a path.
10224 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10225 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10226 case $host in
10227 *-*-mingw*)
10228 # gcc leaves a trailing carriage return which upsets mingw
10229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10232 esac
10233 case $ac_prog in
10234 # Accept absolute paths.
10235 [\\/]* | [A-Za-z]:[\\/]*)
10236 re_direlt='/[^/][^/]*/\.\./'
10237 # Canonicalize the path of ld
10238 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10239 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10240 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10241 done
10242 test -z "$LD" && LD="$ac_prog"
10245 # If it fails, then pretend we aren't using GCC.
10246 ac_prog=ld
10249 # If it is relative, then search for the first ld in PATH.
10250 with_gnu_ld=unknown
10252 esac
10253 elif test "$with_gnu_ld" = yes; then
10254 echo "$as_me:$LINENO: checking for GNU ld" >&5
10255 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10256 else
10257 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10258 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10260 if test "${acl_cv_path_LD+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263 if test -z "$LD"; then
10264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10265 for ac_dir in $PATH; do
10266 test -z "$ac_dir" && ac_dir=.
10267 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10268 acl_cv_path_LD="$ac_dir/$ac_prog"
10269 # Check to see if the program is GNU ld. I'd rather use --version,
10270 # but apparently some GNU ld's only accept -v.
10271 # Break only if it was the GNU/non-GNU ld that we prefer.
10272 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10273 test "$with_gnu_ld" != no && break
10274 else
10275 test "$with_gnu_ld" != yes && break
10278 done
10279 IFS="$ac_save_ifs"
10280 else
10281 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10285 LD="$acl_cv_path_LD"
10286 if test -n "$LD"; then
10287 echo "$as_me:$LINENO: result: $LD" >&5
10288 echo "${ECHO_T}$LD" >&6
10289 else
10290 echo "$as_me:$LINENO: result: no" >&5
10291 echo "${ECHO_T}no" >&6
10293 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10294 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10295 { (exit 1); exit 1; }; }
10296 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10297 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10298 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10302 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10303 acl_cv_prog_gnu_ld=yes
10304 else
10305 acl_cv_prog_gnu_ld=no
10308 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10309 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10310 with_gnu_ld=$acl_cv_prog_gnu_ld
10314 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10315 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10316 if test "${acl_cv_rpath+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10320 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10321 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10322 . ./conftest.sh
10323 rm -f ./conftest.sh
10324 acl_cv_rpath=done
10327 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10328 echo "${ECHO_T}$acl_cv_rpath" >&6
10329 wl="$acl_cv_wl"
10330 libext="$acl_cv_libext"
10331 shlibext="$acl_cv_shlibext"
10332 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10333 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10334 hardcode_direct="$acl_cv_hardcode_direct"
10335 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10336 # Check whether --enable-rpath or --disable-rpath was given.
10337 if test "${enable_rpath+set}" = set; then
10338 enableval="$enable_rpath"
10340 else
10341 enable_rpath=yes
10350 use_additional=yes
10352 acl_save_prefix="$prefix"
10353 prefix="$acl_final_prefix"
10354 acl_save_exec_prefix="$exec_prefix"
10355 exec_prefix="$acl_final_exec_prefix"
10357 eval additional_includedir=\"$includedir\"
10358 eval additional_libdir=\"$libdir\"
10360 exec_prefix="$acl_save_exec_prefix"
10361 prefix="$acl_save_prefix"
10364 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10365 if test "${with_libiconv_prefix+set}" = set; then
10366 withval="$with_libiconv_prefix"
10368 if test "X$withval" = "Xno"; then
10369 use_additional=no
10370 else
10371 if test "X$withval" = "X"; then
10373 acl_save_prefix="$prefix"
10374 prefix="$acl_final_prefix"
10375 acl_save_exec_prefix="$exec_prefix"
10376 exec_prefix="$acl_final_exec_prefix"
10378 eval additional_includedir=\"$includedir\"
10379 eval additional_libdir=\"$libdir\"
10381 exec_prefix="$acl_save_exec_prefix"
10382 prefix="$acl_save_prefix"
10384 else
10385 additional_includedir="$withval/include"
10386 additional_libdir="$withval/lib"
10391 LIBICONV=
10392 LTLIBICONV=
10393 INCICONV=
10394 rpathdirs=
10395 ltrpathdirs=
10396 names_already_handled=
10397 names_next_round='iconv '
10398 while test -n "$names_next_round"; do
10399 names_this_round="$names_next_round"
10400 names_next_round=
10401 for name in $names_this_round; do
10402 already_handled=
10403 for n in $names_already_handled; do
10404 if test "$n" = "$name"; then
10405 already_handled=yes
10406 break
10408 done
10409 if test -z "$already_handled"; then
10410 names_already_handled="$names_already_handled $name"
10411 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10412 eval value=\"\$HAVE_LIB$uppername\"
10413 if test -n "$value"; then
10414 if test "$value" = yes; then
10415 eval value=\"\$LIB$uppername\"
10416 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10417 eval value=\"\$LTLIB$uppername\"
10418 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10419 else
10422 else
10423 found_dir=
10424 found_la=
10425 found_so=
10426 found_a=
10427 if test $use_additional = yes; then
10428 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10429 found_dir="$additional_libdir"
10430 found_so="$additional_libdir/lib$name.$shlibext"
10431 if test -f "$additional_libdir/lib$name.la"; then
10432 found_la="$additional_libdir/lib$name.la"
10434 else
10435 if test -f "$additional_libdir/lib$name.$libext"; then
10436 found_dir="$additional_libdir"
10437 found_a="$additional_libdir/lib$name.$libext"
10438 if test -f "$additional_libdir/lib$name.la"; then
10439 found_la="$additional_libdir/lib$name.la"
10444 if test "X$found_dir" = "X"; then
10445 for x in $LDFLAGS $LTLIBICONV; do
10447 acl_save_prefix="$prefix"
10448 prefix="$acl_final_prefix"
10449 acl_save_exec_prefix="$exec_prefix"
10450 exec_prefix="$acl_final_exec_prefix"
10451 eval x=\"$x\"
10452 exec_prefix="$acl_save_exec_prefix"
10453 prefix="$acl_save_prefix"
10455 case "$x" in
10456 -L*)
10457 dir=`echo "X$x" | sed -e 's/^X-L//'`
10458 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10459 found_dir="$dir"
10460 found_so="$dir/lib$name.$shlibext"
10461 if test -f "$dir/lib$name.la"; then
10462 found_la="$dir/lib$name.la"
10464 else
10465 if test -f "$dir/lib$name.$libext"; then
10466 found_dir="$dir"
10467 found_a="$dir/lib$name.$libext"
10468 if test -f "$dir/lib$name.la"; then
10469 found_la="$dir/lib$name.la"
10474 esac
10475 if test "X$found_dir" != "X"; then
10476 break
10478 done
10480 if test "X$found_dir" != "X"; then
10481 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10482 if test "X$found_so" != "X"; then
10483 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10484 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10485 else
10486 haveit=
10487 for x in $ltrpathdirs; do
10488 if test "X$x" = "X$found_dir"; then
10489 haveit=yes
10490 break
10492 done
10493 if test -z "$haveit"; then
10494 ltrpathdirs="$ltrpathdirs $found_dir"
10496 if test "$hardcode_direct" = yes; then
10497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10498 else
10499 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10500 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10501 haveit=
10502 for x in $rpathdirs; do
10503 if test "X$x" = "X$found_dir"; then
10504 haveit=yes
10505 break
10507 done
10508 if test -z "$haveit"; then
10509 rpathdirs="$rpathdirs $found_dir"
10511 else
10512 haveit=
10513 for x in $LDFLAGS $LIBICONV; do
10515 acl_save_prefix="$prefix"
10516 prefix="$acl_final_prefix"
10517 acl_save_exec_prefix="$exec_prefix"
10518 exec_prefix="$acl_final_exec_prefix"
10519 eval x=\"$x\"
10520 exec_prefix="$acl_save_exec_prefix"
10521 prefix="$acl_save_prefix"
10523 if test "X$x" = "X-L$found_dir"; then
10524 haveit=yes
10525 break
10527 done
10528 if test -z "$haveit"; then
10529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10531 if test "$hardcode_minus_L" != no; then
10532 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10533 else
10534 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10539 else
10540 if test "X$found_a" != "X"; then
10541 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10542 else
10543 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10546 additional_includedir=
10547 case "$found_dir" in
10548 */lib | */lib/)
10549 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10550 additional_includedir="$basedir/include"
10552 esac
10553 if test "X$additional_includedir" != "X"; then
10554 if test "X$additional_includedir" != "X/usr/include"; then
10555 haveit=
10556 if test "X$additional_includedir" = "X/usr/local/include"; then
10557 if test -n "$GCC"; then
10558 case $host_os in
10559 linux*) haveit=yes;;
10560 esac
10563 if test -z "$haveit"; then
10564 for x in $CPPFLAGS $INCICONV; do
10566 acl_save_prefix="$prefix"
10567 prefix="$acl_final_prefix"
10568 acl_save_exec_prefix="$exec_prefix"
10569 exec_prefix="$acl_final_exec_prefix"
10570 eval x=\"$x\"
10571 exec_prefix="$acl_save_exec_prefix"
10572 prefix="$acl_save_prefix"
10574 if test "X$x" = "X-I$additional_includedir"; then
10575 haveit=yes
10576 break
10578 done
10579 if test -z "$haveit"; then
10580 if test -d "$additional_includedir"; then
10581 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10587 if test -n "$found_la"; then
10588 save_libdir="$libdir"
10589 case "$found_la" in
10590 */* | *\\*) . "$found_la" ;;
10591 *) . "./$found_la" ;;
10592 esac
10593 libdir="$save_libdir"
10594 for dep in $dependency_libs; do
10595 case "$dep" in
10596 -L*)
10597 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10598 if test "X$additional_libdir" != "X/usr/lib"; then
10599 haveit=
10600 if test "X$additional_libdir" = "X/usr/local/lib"; then
10601 if test -n "$GCC"; then
10602 case $host_os in
10603 linux*) haveit=yes;;
10604 esac
10607 if test -z "$haveit"; then
10608 haveit=
10609 for x in $LDFLAGS $LIBICONV; do
10611 acl_save_prefix="$prefix"
10612 prefix="$acl_final_prefix"
10613 acl_save_exec_prefix="$exec_prefix"
10614 exec_prefix="$acl_final_exec_prefix"
10615 eval x=\"$x\"
10616 exec_prefix="$acl_save_exec_prefix"
10617 prefix="$acl_save_prefix"
10619 if test "X$x" = "X-L$additional_libdir"; then
10620 haveit=yes
10621 break
10623 done
10624 if test -z "$haveit"; then
10625 if test -d "$additional_libdir"; then
10626 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10629 haveit=
10630 for x in $LDFLAGS $LTLIBICONV; do
10632 acl_save_prefix="$prefix"
10633 prefix="$acl_final_prefix"
10634 acl_save_exec_prefix="$exec_prefix"
10635 exec_prefix="$acl_final_exec_prefix"
10636 eval x=\"$x\"
10637 exec_prefix="$acl_save_exec_prefix"
10638 prefix="$acl_save_prefix"
10640 if test "X$x" = "X-L$additional_libdir"; then
10641 haveit=yes
10642 break
10644 done
10645 if test -z "$haveit"; then
10646 if test -d "$additional_libdir"; then
10647 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10653 -R*)
10654 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10655 if test "$enable_rpath" != no; then
10656 haveit=
10657 for x in $rpathdirs; do
10658 if test "X$x" = "X$dir"; then
10659 haveit=yes
10660 break
10662 done
10663 if test -z "$haveit"; then
10664 rpathdirs="$rpathdirs $dir"
10666 haveit=
10667 for x in $ltrpathdirs; do
10668 if test "X$x" = "X$dir"; then
10669 haveit=yes
10670 break
10672 done
10673 if test -z "$haveit"; then
10674 ltrpathdirs="$ltrpathdirs $dir"
10678 -l*)
10679 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10681 *.la)
10682 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10685 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10686 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10688 esac
10689 done
10691 else
10692 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10697 done
10698 done
10699 if test "X$rpathdirs" != "X"; then
10700 if test -n "$hardcode_libdir_separator"; then
10701 alldirs=
10702 for found_dir in $rpathdirs; do
10703 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10704 done
10705 acl_save_libdir="$libdir"
10706 libdir="$alldirs"
10707 eval flag=\"$hardcode_libdir_flag_spec\"
10708 libdir="$acl_save_libdir"
10709 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10710 else
10711 for found_dir in $rpathdirs; do
10712 acl_save_libdir="$libdir"
10713 libdir="$found_dir"
10714 eval flag=\"$hardcode_libdir_flag_spec\"
10715 libdir="$acl_save_libdir"
10716 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10717 done
10720 if test "X$ltrpathdirs" != "X"; then
10721 for found_dir in $ltrpathdirs; do
10722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10723 done
10732 am_save_CPPFLAGS="$CPPFLAGS"
10734 for element in $INCICONV; do
10735 haveit=
10736 for x in $CPPFLAGS; do
10738 acl_save_prefix="$prefix"
10739 prefix="$acl_final_prefix"
10740 acl_save_exec_prefix="$exec_prefix"
10741 exec_prefix="$acl_final_exec_prefix"
10742 eval x=\"$x\"
10743 exec_prefix="$acl_save_exec_prefix"
10744 prefix="$acl_save_prefix"
10746 if test "X$x" = "X$element"; then
10747 haveit=yes
10748 break
10750 done
10751 if test -z "$haveit"; then
10752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10754 done
10757 echo "$as_me:$LINENO: checking for iconv" >&5
10758 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10759 if test "${am_cv_func_iconv+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10763 am_cv_func_iconv="no, consider installing GNU libiconv"
10764 am_cv_lib_iconv=no
10765 if test x$gcc_no_link = xyes; then
10766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10768 { (exit 1); exit 1; }; }
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <stdlib.h>
10777 #include <iconv.h>
10779 main ()
10781 iconv_t cd = iconv_open("","");
10782 iconv(cd,NULL,NULL,NULL,NULL);
10783 iconv_close(cd);
10785 return 0;
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>conftest.er1
10791 ac_status=$?
10792 grep -v '^ *+' conftest.er1 >conftest.err
10793 rm -f conftest.er1
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -z "$ac_c_werror_flag"
10798 || test ! -s conftest.err'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try='test -s conftest$ac_exeext'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 am_cv_func_iconv=yes
10811 else
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10816 rm -f conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818 if test "$am_cv_func_iconv" != yes; then
10819 am_save_LIBS="$LIBS"
10820 LIBS="$LIBS $LIBICONV"
10821 if test x$gcc_no_link = xyes; then
10822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10824 { (exit 1); exit 1; }; }
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h. */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 #include <stdlib.h>
10833 #include <iconv.h>
10835 main ()
10837 iconv_t cd = iconv_open("","");
10838 iconv(cd,NULL,NULL,NULL,NULL);
10839 iconv_close(cd);
10841 return 0;
10843 _ACEOF
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag"
10854 || test ! -s conftest.err'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10863 ac_status=$?
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 am_cv_lib_iconv=yes
10867 am_cv_func_iconv=yes
10868 else
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10873 rm -f conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 LIBS="$am_save_LIBS"
10879 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10880 echo "${ECHO_T}$am_cv_func_iconv" >&6
10881 if test "$am_cv_func_iconv" = yes; then
10883 cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_ICONV 1
10885 _ACEOF
10888 if test "$am_cv_lib_iconv" = yes; then
10889 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10890 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10891 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10892 echo "${ECHO_T}$LIBICONV" >&6
10893 else
10894 CPPFLAGS="$am_save_CPPFLAGS"
10895 LIBICONV=
10896 LTLIBICONV=
10901 if test "$am_cv_func_iconv" = yes; then
10902 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10903 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10904 if test "${am_cv_proto_iconv+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 #include <stdlib.h>
10916 #include <iconv.h>
10917 extern
10918 #ifdef __cplusplus
10920 #endif
10921 #if defined(__STDC__) || defined(__cplusplus)
10922 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10923 #else
10924 size_t iconv();
10925 #endif
10928 main ()
10932 return 0;
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 am_cv_proto_iconv_arg1=""
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 am_cv_proto_iconv_arg1="const"
10964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965 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);"
10968 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10969 echo "$as_me:$LINENO: result: ${ac_t:-
10970 }$am_cv_proto_iconv" >&5
10971 echo "${ECHO_T}${ac_t:-
10972 }$am_cv_proto_iconv" >&6
10974 cat >>confdefs.h <<_ACEOF
10975 #define ICONV_CONST $am_cv_proto_iconv_arg1
10976 _ACEOF
10981 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10982 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10983 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 else
10986 if test x$gcc_no_link = xyes; then
10987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10989 { (exit 1); exit 1; }; }
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <locale.h>
10999 main ()
11001 return LC_MESSAGES
11003 return 0;
11005 _ACEOF
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11008 (eval $ac_link) 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag"
11016 || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest$ac_exeext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 am_cv_val_LC_MESSAGES=yes
11029 else
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 am_cv_val_LC_MESSAGES=no
11035 rm -f conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11038 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11039 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11040 if test $am_cv_val_LC_MESSAGES = yes; then
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_LC_MESSAGES 1
11044 _ACEOF
11048 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11049 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11050 if test "${ac_cv_struct_tm+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 #include <sys/types.h>
11060 #include <time.h>
11063 main ()
11065 struct tm *tp; tp->tm_sec;
11067 return 0;
11069 _ACEOF
11070 rm -f conftest.$ac_objext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -z "$ac_c_werror_flag"
11080 || test ! -s conftest.err'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; } &&
11086 { ac_try='test -s conftest.$ac_objext'
11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_struct_tm=time.h
11093 else
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11097 ac_cv_struct_tm=sys/time.h
11099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11101 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11102 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11103 if test $ac_cv_struct_tm = sys/time.h; then
11105 cat >>confdefs.h <<\_ACEOF
11106 #define TM_IN_SYS_TIME 1
11107 _ACEOF
11111 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11112 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11113 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h. */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 #include <sys/types.h>
11123 #include <$ac_cv_struct_tm>
11127 main ()
11129 static struct tm ac_aggr;
11130 if (ac_aggr.tm_zone)
11131 return 0;
11133 return 0;
11135 _ACEOF
11136 rm -f conftest.$ac_objext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11138 (eval $ac_compile) 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag"
11146 || test ! -s conftest.err'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; } &&
11152 { ac_try='test -s conftest.$ac_objext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 ac_cv_member_struct_tm_tm_zone=yes
11159 else
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 #include <sys/types.h>
11170 #include <$ac_cv_struct_tm>
11174 main ()
11176 static struct tm ac_aggr;
11177 if (sizeof ac_aggr.tm_zone)
11178 return 0;
11180 return 0;
11182 _ACEOF
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_c_werror_flag"
11193 || test ! -s conftest.err'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try='test -s conftest.$ac_objext'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_cv_member_struct_tm_tm_zone=yes
11206 else
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 ac_cv_member_struct_tm_tm_zone=no
11212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11216 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11217 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11218 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_STRUCT_TM_TM_ZONE 1
11222 _ACEOF
11227 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11229 cat >>confdefs.h <<\_ACEOF
11230 #define HAVE_TM_ZONE 1
11231 _ACEOF
11233 else
11234 echo "$as_me:$LINENO: checking for tzname" >&5
11235 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11236 if test "${ac_cv_var_tzname+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239 if test x$gcc_no_link = xyes; then
11240 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11242 { (exit 1); exit 1; }; }
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h. */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 #include <time.h>
11251 #ifndef tzname /* For SGI. */
11252 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11253 #endif
11256 main ()
11258 atoi(*tzname);
11260 return 0;
11262 _ACEOF
11263 rm -f conftest.$ac_objext conftest$ac_exeext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11265 (eval $ac_link) 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag"
11273 || test ! -s conftest.err'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest$ac_exeext'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_var_tzname=yes
11286 else
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_cv_var_tzname=no
11292 rm -f conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11295 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11296 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11297 if test $ac_cv_var_tzname = yes; then
11299 cat >>confdefs.h <<\_ACEOF
11300 #define HAVE_TZNAME 1
11301 _ACEOF
11309 for ac_func in gethostbyname_r
11311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11312 echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11314 if eval "test \"\${$as_ac_var+set}\" = set"; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317 if test x$gcc_no_link = xyes; then
11318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11320 { (exit 1); exit 1; }; }
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h. */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11330 #define $ac_func innocuous_$ac_func
11332 /* System header to define __stub macros and hopefully few prototypes,
11333 which can conflict with char $ac_func (); below.
11334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11335 <limits.h> exists even on freestanding compilers. */
11337 #ifdef __STDC__
11338 # include <limits.h>
11339 #else
11340 # include <assert.h>
11341 #endif
11343 #undef $ac_func
11345 /* Override any gcc2 internal prototype to avoid an error. */
11346 #ifdef __cplusplus
11347 extern "C"
11349 #endif
11350 /* We use char because int might match the return type of a gcc2
11351 builtin and then its argument prototype would still apply. */
11352 char $ac_func ();
11353 /* The GNU C library defines this for functions which it implements
11354 to always fail with ENOSYS. Some functions are actually named
11355 something starting with __ and the normal name is an alias. */
11356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11357 choke me
11358 #else
11359 char (*f) () = $ac_func;
11360 #endif
11361 #ifdef __cplusplus
11363 #endif
11366 main ()
11368 return f != $ac_func;
11370 return 0;
11372 _ACEOF
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 eval "$as_ac_var=yes"
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 eval "$as_ac_var=no"
11402 rm -f conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11407 if test `eval echo '${'$as_ac_var'}'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11410 _ACEOF
11413 cat >>confdefs.h <<\_ACEOF
11414 #define HAVE_GETHOSTBYNAME_R 1
11415 _ACEOF
11417 # There are two different kinds of gethostbyname_r.
11418 # We look for the one that returns `int'.
11419 # Hopefully this check is robust enough.
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <netdb.h>
11428 _ACEOF
11429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11430 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11433 cat >>confdefs.h <<\_ACEOF
11434 #define GETHOSTBYNAME_R_RETURNS_INT 1
11435 _ACEOF
11438 rm -f conftest*
11441 case " $GCINCS " in
11442 *" -D_REENTRANT "*) ;;
11444 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11445 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11446 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449 ac_ext=cc
11450 ac_cpp='$CXXCPP $CPPFLAGS'
11451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11455 cat >conftest.$ac_ext <<_ACEOF
11456 /* confdefs.h. */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 #include <netdb.h>
11463 main ()
11465 gethostbyname_r("", 0, 0);
11467 return 0;
11469 _ACEOF
11470 rm -f conftest.$ac_objext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472 (eval $ac_compile) 2>conftest.er1
11473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -z "$ac_cxx_werror_flag"
11480 || test ! -s conftest.err'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest.$ac_objext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 libjava_cv_gethostbyname_r_needs_reentrant=no
11493 else
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 CPPFLAGS_SAVE="$CPPFLAGS"
11498 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 #include <netdb.h>
11507 main ()
11509 gethostbyname_r("", 0, 0);
11511 return 0;
11513 _ACEOF
11514 rm -f conftest.$ac_objext
11515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11516 (eval $ac_compile) 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
11523 { ac_try='test -z "$ac_cxx_werror_flag"
11524 || test ! -s conftest.err'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 libjava_cv_gethostbyname_r_needs_reentrant=yes
11537 else
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 libjava_cv_gethostbyname_r_needs_reentrant=fail
11543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11544 CPPFLAGS="$CPPFLAGS_SAVE"
11547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11548 ac_ext=c
11549 ac_cpp='$CPP $CPPFLAGS'
11550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11556 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11557 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11558 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define _REENTRANT 1
11562 _ACEOF
11566 esac
11568 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11569 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11570 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11580 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11581 # define _REENTRANT 1
11582 #endif
11583 #include <netdb.h>
11585 main ()
11587 struct hostent_data data;
11589 return 0;
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594 (eval $ac_compile) 2>conftest.er1
11595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -z "$ac_c_werror_flag"
11602 || test ! -s conftest.err'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try='test -s conftest.$ac_objext'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 libjava_cv_struct_hostent_data=yes
11615 else
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 libjava_cv_struct_hostent_data=no
11621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11623 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11624 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11625 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11627 cat >>confdefs.h <<\_ACEOF
11628 #define HAVE_STRUCT_HOSTENT_DATA 1
11629 _ACEOF
11634 done
11637 # FIXME: libjava source code expects to find a prototype for
11638 # gethostbyaddr_r in netdb.h. The outer check ensures that
11639 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11640 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11641 # linkage check is enough, yet C++ code requires proper prototypes.)
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 #include <netdb.h>
11650 _ACEOF
11651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11652 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11655 for ac_func in gethostbyaddr_r
11657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11658 echo "$as_me:$LINENO: checking for $ac_func" >&5
11659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11660 if eval "test \"\${$as_ac_var+set}\" = set"; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663 if test x$gcc_no_link = xyes; then
11664 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11665 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11666 { (exit 1); exit 1; }; }
11668 cat >conftest.$ac_ext <<_ACEOF
11669 /* confdefs.h. */
11670 _ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11676 #define $ac_func innocuous_$ac_func
11678 /* System header to define __stub macros and hopefully few prototypes,
11679 which can conflict with char $ac_func (); below.
11680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11681 <limits.h> exists even on freestanding compilers. */
11683 #ifdef __STDC__
11684 # include <limits.h>
11685 #else
11686 # include <assert.h>
11687 #endif
11689 #undef $ac_func
11691 /* Override any gcc2 internal prototype to avoid an error. */
11692 #ifdef __cplusplus
11693 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char $ac_func ();
11699 /* The GNU C library defines this for functions which it implements
11700 to always fail with ENOSYS. Some functions are actually named
11701 something starting with __ and the normal name is an alias. */
11702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11703 choke me
11704 #else
11705 char (*f) () = $ac_func;
11706 #endif
11707 #ifdef __cplusplus
11709 #endif
11712 main ()
11714 return f != $ac_func;
11716 return 0;
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>conftest.er1
11722 ac_status=$?
11723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 eval "$as_ac_var=yes"
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 eval "$as_ac_var=no"
11748 rm -f conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then
11754 cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 _ACEOF
11759 cat >>confdefs.h <<\_ACEOF
11760 #define HAVE_GETHOSTBYADDR_R 1
11761 _ACEOF
11763 # There are two different kinds of gethostbyaddr_r.
11764 # We look for the one that returns `int'.
11765 # Hopefully this check is robust enough.
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h. */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 #include <netdb.h>
11774 _ACEOF
11775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11776 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11779 cat >>confdefs.h <<\_ACEOF
11780 #define GETHOSTBYADDR_R_RETURNS_INT 1
11781 _ACEOF
11784 rm -f conftest*
11787 done
11790 rm -f conftest*
11794 for ac_func in gethostname
11796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11797 echo "$as_me:$LINENO: checking for $ac_func" >&5
11798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11799 if eval "test \"\${$as_ac_var+set}\" = set"; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802 if test x$gcc_no_link = xyes; then
11803 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11804 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11805 { (exit 1); exit 1; }; }
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h. */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11815 #define $ac_func innocuous_$ac_func
11817 /* System header to define __stub macros and hopefully few prototypes,
11818 which can conflict with char $ac_func (); below.
11819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11820 <limits.h> exists even on freestanding compilers. */
11822 #ifdef __STDC__
11823 # include <limits.h>
11824 #else
11825 # include <assert.h>
11826 #endif
11828 #undef $ac_func
11830 /* Override any gcc2 internal prototype to avoid an error. */
11831 #ifdef __cplusplus
11832 extern "C"
11834 #endif
11835 /* We use char because int might match the return type of a gcc2
11836 builtin and then its argument prototype would still apply. */
11837 char $ac_func ();
11838 /* The GNU C library defines this for functions which it implements
11839 to always fail with ENOSYS. Some functions are actually named
11840 something starting with __ and the normal name is an alias. */
11841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11842 choke me
11843 #else
11844 char (*f) () = $ac_func;
11845 #endif
11846 #ifdef __cplusplus
11848 #endif
11851 main ()
11853 return f != $ac_func;
11855 return 0;
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860 (eval $ac_link) 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try='test -z "$ac_c_werror_flag"
11868 || test ! -s conftest.err'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; } &&
11874 { ac_try='test -s conftest$ac_exeext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 eval "$as_ac_var=yes"
11881 else
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 eval "$as_ac_var=no"
11887 rm -f conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11892 if test `eval echo '${'$as_ac_var'}'` = yes; then
11893 cat >>confdefs.h <<_ACEOF
11894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11895 _ACEOF
11898 cat >>confdefs.h <<\_ACEOF
11899 #define HAVE_GETHOSTNAME 1
11900 _ACEOF
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 #include <unistd.h>
11910 _ACEOF
11911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11912 $EGREP "gethostname" >/dev/null 2>&1; then
11915 cat >>confdefs.h <<\_ACEOF
11916 #define HAVE_GETHOSTNAME_DECL 1
11917 _ACEOF
11920 rm -f conftest*
11923 done
11927 for ac_func in usleep
11929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11930 echo "$as_me:$LINENO: checking for $ac_func" >&5
11931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11932 if eval "test \"\${$as_ac_var+set}\" = set"; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935 if test x$gcc_no_link = xyes; then
11936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11938 { (exit 1); exit 1; }; }
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11948 #define $ac_func innocuous_$ac_func
11950 /* System header to define __stub macros and hopefully few prototypes,
11951 which can conflict with char $ac_func (); below.
11952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11953 <limits.h> exists even on freestanding compilers. */
11955 #ifdef __STDC__
11956 # include <limits.h>
11957 #else
11958 # include <assert.h>
11959 #endif
11961 #undef $ac_func
11963 /* Override any gcc2 internal prototype to avoid an error. */
11964 #ifdef __cplusplus
11965 extern "C"
11967 #endif
11968 /* We use char because int might match the return type of a gcc2
11969 builtin and then its argument prototype would still apply. */
11970 char $ac_func ();
11971 /* The GNU C library defines this for functions which it implements
11972 to always fail with ENOSYS. Some functions are actually named
11973 something starting with __ and the normal name is an alias. */
11974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11975 choke me
11976 #else
11977 char (*f) () = $ac_func;
11978 #endif
11979 #ifdef __cplusplus
11981 #endif
11984 main ()
11986 return f != $ac_func;
11988 return 0;
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993 (eval $ac_link) 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag"
12001 || test ! -s conftest.err'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } &&
12007 { ac_try='test -s conftest$ac_exeext'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 eval "$as_ac_var=yes"
12014 else
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 eval "$as_ac_var=no"
12020 rm -f conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12025 if test `eval echo '${'$as_ac_var'}'` = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12028 _ACEOF
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 #include <unistd.h>
12038 _ACEOF
12039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12040 $EGREP "usleep" >/dev/null 2>&1; then
12043 cat >>confdefs.h <<\_ACEOF
12044 #define HAVE_USLEEP_DECL 1
12045 _ACEOF
12048 rm -f conftest*
12051 done
12054 # Look for these functions in the thread library, but only bother
12055 # if using POSIX threads.
12056 if test "$THREADS" = posix; then
12057 save_LIBS="$LIBS"
12058 LIBS="$LIBS $THREADLIBS"
12059 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12060 # E.g., Solaris.
12063 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12066 echo "$as_me:$LINENO: checking for $ac_func" >&5
12067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12068 if eval "test \"\${$as_ac_var+set}\" = set"; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071 if test x$gcc_no_link = xyes; then
12072 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12074 { (exit 1); exit 1; }; }
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h. */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12084 #define $ac_func innocuous_$ac_func
12086 /* System header to define __stub macros and hopefully few prototypes,
12087 which can conflict with char $ac_func (); below.
12088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12089 <limits.h> exists even on freestanding compilers. */
12091 #ifdef __STDC__
12092 # include <limits.h>
12093 #else
12094 # include <assert.h>
12095 #endif
12097 #undef $ac_func
12099 /* Override any gcc2 internal prototype to avoid an error. */
12100 #ifdef __cplusplus
12101 extern "C"
12103 #endif
12104 /* We use char because int might match the return type of a gcc2
12105 builtin and then its argument prototype would still apply. */
12106 char $ac_func ();
12107 /* The GNU C library defines this for functions which it implements
12108 to always fail with ENOSYS. Some functions are actually named
12109 something starting with __ and the normal name is an alias. */
12110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12111 choke me
12112 #else
12113 char (*f) () = $ac_func;
12114 #endif
12115 #ifdef __cplusplus
12117 #endif
12120 main ()
12122 return f != $ac_func;
12124 return 0;
12126 _ACEOF
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12129 (eval $ac_link) 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_c_werror_flag"
12137 || test ! -s conftest.err'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; } &&
12143 { ac_try='test -s conftest$ac_exeext'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12146 ac_status=$?
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
12149 eval "$as_ac_var=yes"
12150 else
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 eval "$as_ac_var=no"
12156 rm -f conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12161 if test `eval echo '${'$as_ac_var'}'` = yes; then
12162 cat >>confdefs.h <<_ACEOF
12163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12164 _ACEOF
12167 done
12170 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12171 # Solaris 7 the name librt is preferred.
12173 for ac_func in sched_yield
12175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12176 echo "$as_me:$LINENO: checking for $ac_func" >&5
12177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12178 if eval "test \"\${$as_ac_var+set}\" = set"; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181 if test x$gcc_no_link = xyes; then
12182 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12183 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12184 { (exit 1); exit 1; }; }
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h. */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12194 #define $ac_func innocuous_$ac_func
12196 /* System header to define __stub macros and hopefully few prototypes,
12197 which can conflict with char $ac_func (); below.
12198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12199 <limits.h> exists even on freestanding compilers. */
12201 #ifdef __STDC__
12202 # include <limits.h>
12203 #else
12204 # include <assert.h>
12205 #endif
12207 #undef $ac_func
12209 /* Override any gcc2 internal prototype to avoid an error. */
12210 #ifdef __cplusplus
12211 extern "C"
12213 #endif
12214 /* We use char because int might match the return type of a gcc2
12215 builtin and then its argument prototype would still apply. */
12216 char $ac_func ();
12217 /* The GNU C library defines this for functions which it implements
12218 to always fail with ENOSYS. Some functions are actually named
12219 something starting with __ and the normal name is an alias. */
12220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12221 choke me
12222 #else
12223 char (*f) () = $ac_func;
12224 #endif
12225 #ifdef __cplusplus
12227 #endif
12230 main ()
12232 return f != $ac_func;
12234 return 0;
12236 _ACEOF
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12239 (eval $ac_link) 2>conftest.er1
12240 ac_status=$?
12241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try='test -z "$ac_c_werror_flag"
12247 || test ! -s conftest.err'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest$ac_exeext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 eval "$as_ac_var=yes"
12260 else
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12264 eval "$as_ac_var=no"
12266 rm -f conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
12269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12271 if test `eval echo '${'$as_ac_var'}'` = yes; then
12272 cat >>confdefs.h <<_ACEOF
12273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12274 _ACEOF
12276 else
12278 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12279 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12280 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283 ac_check_lib_save_LIBS=$LIBS
12284 LIBS="-lrt $LIBS"
12285 if test x$gcc_no_link = xyes; then
12286 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12287 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12288 { (exit 1); exit 1; }; }
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12297 /* Override any gcc2 internal prototype to avoid an error. */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 /* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12303 char sched_yield ();
12305 main ()
12307 sched_yield ();
12309 return 0;
12311 _ACEOF
12312 rm -f conftest.$ac_objext conftest$ac_exeext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12314 (eval $ac_link) 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } &&
12321 { ac_try='test -z "$ac_c_werror_flag"
12322 || test ! -s conftest.err'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest$ac_exeext'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; }; then
12334 ac_cv_lib_rt_sched_yield=yes
12335 else
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12339 ac_cv_lib_rt_sched_yield=no
12341 rm -f conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12346 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12347 if test $ac_cv_lib_rt_sched_yield = yes; then
12349 cat >>confdefs.h <<\_ACEOF
12350 #define HAVE_SCHED_YIELD 1
12351 _ACEOF
12353 THREADLIBS="$THREADLIBS -lrt"
12354 THREADSPEC="$THREADSPEC -lrt"
12355 else
12357 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12358 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12359 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362 ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-lposix4 $LIBS"
12364 if test x$gcc_no_link = xyes; then
12365 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12367 { (exit 1); exit 1; }; }
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h. */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any gcc2 internal prototype to avoid an error. */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 /* We use char because int might match the return type of a gcc2
12381 builtin and then its argument prototype would still apply. */
12382 char sched_yield ();
12384 main ()
12386 sched_yield ();
12388 return 0;
12390 _ACEOF
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12393 (eval $ac_link) 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try='test -z "$ac_c_werror_flag"
12401 || test ! -s conftest.err'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try='test -s conftest$ac_exeext'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_lib_posix4_sched_yield=yes
12414 else
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ac_cv_lib_posix4_sched_yield=no
12420 rm -f conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12424 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12425 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12426 if test $ac_cv_lib_posix4_sched_yield = yes; then
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_SCHED_YIELD 1
12430 _ACEOF
12432 THREADLIBS="$THREADLIBS -lposix4"
12433 THREADSPEC="$THREADSPEC -lposix4"
12439 done
12441 LIBS="$save_LIBS"
12443 # We can save a little space at runtime if the mutex has m_count
12444 # or __m_count. This is a nice hack for Linux.
12445 cat >conftest.$ac_ext <<_ACEOF
12446 /* confdefs.h. */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12451 #include <pthread.h>
12453 main ()
12456 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12459 return 0;
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464 (eval $ac_compile) 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest.$ac_objext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12485 cat >>confdefs.h <<\_ACEOF
12486 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12487 _ACEOF
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12494 cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h. */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500 #include <pthread.h>
12502 main ()
12505 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12508 return 0;
12510 _ACEOF
12511 rm -f conftest.$ac_objext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag"
12521 || test ! -s conftest.err'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest.$ac_objext'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12534 cat >>confdefs.h <<\_ACEOF
12535 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12536 _ACEOF
12538 else
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12548 # We require a way to get the time.
12549 time_found=no
12553 for ac_func in gettimeofday time ftime
12555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12556 echo "$as_me:$LINENO: checking for $ac_func" >&5
12557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12558 if eval "test \"\${$as_ac_var+set}\" = set"; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561 if test x$gcc_no_link = xyes; then
12562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12564 { (exit 1); exit 1; }; }
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12574 #define $ac_func innocuous_$ac_func
12576 /* System header to define __stub macros and hopefully few prototypes,
12577 which can conflict with char $ac_func (); below.
12578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12579 <limits.h> exists even on freestanding compilers. */
12581 #ifdef __STDC__
12582 # include <limits.h>
12583 #else
12584 # include <assert.h>
12585 #endif
12587 #undef $ac_func
12589 /* Override any gcc2 internal prototype to avoid an error. */
12590 #ifdef __cplusplus
12591 extern "C"
12593 #endif
12594 /* We use char because int might match the return type of a gcc2
12595 builtin and then its argument prototype would still apply. */
12596 char $ac_func ();
12597 /* The GNU C library defines this for functions which it implements
12598 to always fail with ENOSYS. Some functions are actually named
12599 something starting with __ and the normal name is an alias. */
12600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12601 choke me
12602 #else
12603 char (*f) () = $ac_func;
12604 #endif
12605 #ifdef __cplusplus
12607 #endif
12610 main ()
12612 return f != $ac_func;
12614 return 0;
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12619 (eval $ac_link) 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } &&
12626 { ac_try='test -z "$ac_c_werror_flag"
12627 || test ! -s conftest.err'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; } &&
12633 { ac_try='test -s conftest$ac_exeext'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
12639 eval "$as_ac_var=yes"
12640 else
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 eval "$as_ac_var=no"
12646 rm -f conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12651 if test `eval echo '${'$as_ac_var'}'` = yes; then
12652 cat >>confdefs.h <<_ACEOF
12653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12654 _ACEOF
12655 time_found=yes
12657 done
12659 if test "$time_found" = no; then
12660 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12661 echo "$as_me: error: no function found to get the time" >&2;}
12662 { (exit 1); exit 1; }; }
12666 for ac_func in memmove
12668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12669 echo "$as_me:$LINENO: checking for $ac_func" >&5
12670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12671 if eval "test \"\${$as_ac_var+set}\" = set"; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674 if test x$gcc_no_link = xyes; then
12675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12677 { (exit 1); exit 1; }; }
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h. */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12687 #define $ac_func innocuous_$ac_func
12689 /* System header to define __stub macros and hopefully few prototypes,
12690 which can conflict with char $ac_func (); below.
12691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12692 <limits.h> exists even on freestanding compilers. */
12694 #ifdef __STDC__
12695 # include <limits.h>
12696 #else
12697 # include <assert.h>
12698 #endif
12700 #undef $ac_func
12702 /* Override any gcc2 internal prototype to avoid an error. */
12703 #ifdef __cplusplus
12704 extern "C"
12706 #endif
12707 /* We use char because int might match the return type of a gcc2
12708 builtin and then its argument prototype would still apply. */
12709 char $ac_func ();
12710 /* The GNU C library defines this for functions which it implements
12711 to always fail with ENOSYS. Some functions are actually named
12712 something starting with __ and the normal name is an alias. */
12713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12714 choke me
12715 #else
12716 char (*f) () = $ac_func;
12717 #endif
12718 #ifdef __cplusplus
12720 #endif
12723 main ()
12725 return f != $ac_func;
12727 return 0;
12729 _ACEOF
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732 (eval $ac_link) 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag"
12740 || test ! -s conftest.err'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest$ac_exeext'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 eval "$as_ac_var=yes"
12753 else
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 eval "$as_ac_var=no"
12759 rm -f conftest.err conftest.$ac_objext \
12760 conftest$ac_exeext conftest.$ac_ext
12762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12764 if test `eval echo '${'$as_ac_var'}'` = yes; then
12765 cat >>confdefs.h <<_ACEOF
12766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12767 _ACEOF
12770 done
12773 # We require memcpy.
12774 memcpy_found=no
12776 for ac_func in memcpy
12778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12779 echo "$as_me:$LINENO: checking for $ac_func" >&5
12780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12781 if eval "test \"\${$as_ac_var+set}\" = set"; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784 if test x$gcc_no_link = xyes; then
12785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12787 { (exit 1); exit 1; }; }
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h. */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12797 #define $ac_func innocuous_$ac_func
12799 /* System header to define __stub macros and hopefully few prototypes,
12800 which can conflict with char $ac_func (); below.
12801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12802 <limits.h> exists even on freestanding compilers. */
12804 #ifdef __STDC__
12805 # include <limits.h>
12806 #else
12807 # include <assert.h>
12808 #endif
12810 #undef $ac_func
12812 /* Override any gcc2 internal prototype to avoid an error. */
12813 #ifdef __cplusplus
12814 extern "C"
12816 #endif
12817 /* We use char because int might match the return type of a gcc2
12818 builtin and then its argument prototype would still apply. */
12819 char $ac_func ();
12820 /* The GNU C library defines this for functions which it implements
12821 to always fail with ENOSYS. Some functions are actually named
12822 something starting with __ and the normal name is an alias. */
12823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12824 choke me
12825 #else
12826 char (*f) () = $ac_func;
12827 #endif
12828 #ifdef __cplusplus
12830 #endif
12833 main ()
12835 return f != $ac_func;
12837 return 0;
12839 _ACEOF
12840 rm -f conftest.$ac_objext conftest$ac_exeext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842 (eval $ac_link) 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -z "$ac_c_werror_flag"
12850 || test ! -s conftest.err'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 eval "$as_ac_var=yes"
12863 else
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 eval "$as_ac_var=no"
12869 rm -f conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext conftest.$ac_ext
12872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12874 if test `eval echo '${'$as_ac_var'}'` = yes; then
12875 cat >>confdefs.h <<_ACEOF
12876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12877 _ACEOF
12878 memcpy_found=yes
12880 done
12882 if test "$memcpy_found" = no; then
12883 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12884 echo "$as_me: error: memcpy is required" >&2;}
12885 { (exit 1); exit 1; }; }
12888 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12889 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893 ac_check_lib_save_LIBS=$LIBS
12894 LIBS="-ldl $LIBS"
12895 if test x$gcc_no_link = xyes; then
12896 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12897 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12898 { (exit 1); exit 1; }; }
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h. */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12907 /* Override any gcc2 internal prototype to avoid an error. */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 /* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12913 char dlopen ();
12915 main ()
12917 dlopen ();
12919 return 0;
12921 _ACEOF
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest$ac_exeext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_lib_dl_dlopen=yes
12945 else
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ac_cv_lib_dl_dlopen=no
12951 rm -f conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953 LIBS=$ac_check_lib_save_LIBS
12955 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12957 if test $ac_cv_lib_dl_dlopen = yes; then
12960 cat >>confdefs.h <<\_ACEOF
12961 #define HAVE_DLOPEN 1
12962 _ACEOF
12967 # Some library-finding code we stole from Tcl.
12968 #--------------------------------------------------------------------
12969 # Check for the existence of the -lsocket and -lnsl libraries.
12970 # The order here is important, so that they end up in the right
12971 # order in the command line generated by make. Here are some
12972 # special considerations:
12973 # 1. Use "connect" and "accept" to check for -lsocket, and
12974 # "gethostbyname" to check for -lnsl.
12975 # 2. Use each function name only once: can't redo a check because
12976 # autoconf caches the results of the last check and won't redo it.
12977 # 3. Use -lnsl and -lsocket only if they supply procedures that
12978 # aren't already present in the normal libraries. This is because
12979 # IRIX 5.2 has libraries, but they aren't needed and they're
12980 # bogus: they goof up name resolution if used.
12981 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12982 # To get around this problem, check for both libraries together
12983 # if -lsocket doesn't work by itself.
12984 #--------------------------------------------------------------------
12986 echo "$as_me:$LINENO: checking for socket libraries" >&5
12987 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12988 if test "${gcj_cv_lib_sockets+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991 gcj_cv_lib_sockets=
12992 gcj_checkBoth=0
12993 unset ac_cv_func_connect
12994 echo "$as_me:$LINENO: checking for connect" >&5
12995 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12996 if test "${ac_cv_func_connect+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999 if test x$gcc_no_link = xyes; then
13000 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13001 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13002 { (exit 1); exit 1; }; }
13004 cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h. */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13012 #define connect innocuous_connect
13014 /* System header to define __stub macros and hopefully few prototypes,
13015 which can conflict with char connect (); below.
13016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13017 <limits.h> exists even on freestanding compilers. */
13019 #ifdef __STDC__
13020 # include <limits.h>
13021 #else
13022 # include <assert.h>
13023 #endif
13025 #undef connect
13027 /* Override any gcc2 internal prototype to avoid an error. */
13028 #ifdef __cplusplus
13029 extern "C"
13031 #endif
13032 /* We use char because int might match the return type of a gcc2
13033 builtin and then its argument prototype would still apply. */
13034 char connect ();
13035 /* The GNU C library defines this for functions which it implements
13036 to always fail with ENOSYS. Some functions are actually named
13037 something starting with __ and the normal name is an alias. */
13038 #if defined (__stub_connect) || defined (__stub___connect)
13039 choke me
13040 #else
13041 char (*f) () = connect;
13042 #endif
13043 #ifdef __cplusplus
13045 #endif
13048 main ()
13050 return f != connect;
13052 return 0;
13054 _ACEOF
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13057 (eval $ac_link) 2>conftest.er1
13058 ac_status=$?
13059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest$ac_exeext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_func_connect=yes
13078 else
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_cv_func_connect=no
13084 rm -f conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13087 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13088 echo "${ECHO_T}$ac_cv_func_connect" >&6
13089 if test $ac_cv_func_connect = yes; then
13090 gcj_checkSocket=0
13091 else
13092 gcj_checkSocket=1
13095 if test "$gcj_checkSocket" = 1; then
13096 unset ac_cv_func_connect
13097 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13098 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13099 if test "${ac_cv_lib_socket_main+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102 ac_check_lib_save_LIBS=$LIBS
13103 LIBS="-lsocket $LIBS"
13104 if test x$gcc_no_link = xyes; then
13105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13107 { (exit 1); exit 1; }; }
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h. */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13118 main ()
13120 main ();
13122 return 0;
13124 _ACEOF
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13127 (eval $ac_link) 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest$ac_exeext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_cv_lib_socket_main=yes
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_cv_lib_socket_main=no
13154 rm -f conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13158 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13159 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13160 if test $ac_cv_lib_socket_main = yes; then
13161 gcj_cv_lib_sockets="-lsocket"
13162 else
13163 gcj_checkBoth=1
13167 if test "$gcj_checkBoth" = 1; then
13168 gcj_oldLibs=$LIBS
13169 LIBS="$LIBS -lsocket -lnsl"
13170 unset ac_cv_func_accept
13171 echo "$as_me:$LINENO: checking for accept" >&5
13172 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13173 if test "${ac_cv_func_accept+set}" = set; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 else
13176 if test x$gcc_no_link = xyes; then
13177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13179 { (exit 1); exit 1; }; }
13181 cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h. */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13189 #define accept innocuous_accept
13191 /* System header to define __stub macros and hopefully few prototypes,
13192 which can conflict with char accept (); below.
13193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13194 <limits.h> exists even on freestanding compilers. */
13196 #ifdef __STDC__
13197 # include <limits.h>
13198 #else
13199 # include <assert.h>
13200 #endif
13202 #undef accept
13204 /* Override any gcc2 internal prototype to avoid an error. */
13205 #ifdef __cplusplus
13206 extern "C"
13208 #endif
13209 /* We use char because int might match the return type of a gcc2
13210 builtin and then its argument prototype would still apply. */
13211 char accept ();
13212 /* The GNU C library defines this for functions which it implements
13213 to always fail with ENOSYS. Some functions are actually named
13214 something starting with __ and the normal name is an alias. */
13215 #if defined (__stub_accept) || defined (__stub___accept)
13216 choke me
13217 #else
13218 char (*f) () = accept;
13219 #endif
13220 #ifdef __cplusplus
13222 #endif
13225 main ()
13227 return f != accept;
13229 return 0;
13231 _ACEOF
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13234 (eval $ac_link) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -z "$ac_c_werror_flag"
13242 || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_func_accept=yes
13255 else
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ac_cv_func_accept=no
13261 rm -f conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
13264 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13265 echo "${ECHO_T}$ac_cv_func_accept" >&6
13266 if test $ac_cv_func_accept = yes; then
13267 gcj_checkNsl=0
13268 gcj_cv_lib_sockets="-lsocket -lnsl"
13271 unset ac_cv_func_accept
13272 LIBS=$gcj_oldLibs
13274 unset ac_cv_func_gethostbyname
13275 gcj_oldLibs=$LIBS
13276 LIBS="$LIBS $gcj_cv_lib_sockets"
13277 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13278 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13279 if test "${ac_cv_func_gethostbyname+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282 if test x$gcc_no_link = xyes; then
13283 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13285 { (exit 1); exit 1; }; }
13287 cat >conftest.$ac_ext <<_ACEOF
13288 /* confdefs.h. */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13293 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13295 #define gethostbyname innocuous_gethostbyname
13297 /* System header to define __stub macros and hopefully few prototypes,
13298 which can conflict with char gethostbyname (); below.
13299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13300 <limits.h> exists even on freestanding compilers. */
13302 #ifdef __STDC__
13303 # include <limits.h>
13304 #else
13305 # include <assert.h>
13306 #endif
13308 #undef gethostbyname
13310 /* Override any gcc2 internal prototype to avoid an error. */
13311 #ifdef __cplusplus
13312 extern "C"
13314 #endif
13315 /* We use char because int might match the return type of a gcc2
13316 builtin and then its argument prototype would still apply. */
13317 char gethostbyname ();
13318 /* The GNU C library defines this for functions which it implements
13319 to always fail with ENOSYS. Some functions are actually named
13320 something starting with __ and the normal name is an alias. */
13321 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13322 choke me
13323 #else
13324 char (*f) () = gethostbyname;
13325 #endif
13326 #ifdef __cplusplus
13328 #endif
13331 main ()
13333 return f != gethostbyname;
13335 return 0;
13337 _ACEOF
13338 rm -f conftest.$ac_objext conftest$ac_exeext
13339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13340 (eval $ac_link) 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try='test -z "$ac_c_werror_flag"
13348 || test ! -s conftest.err'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest$ac_exeext'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_cv_func_gethostbyname=yes
13361 else
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 ac_cv_func_gethostbyname=no
13367 rm -f conftest.err conftest.$ac_objext \
13368 conftest$ac_exeext conftest.$ac_ext
13370 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13371 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13372 if test $ac_cv_func_gethostbyname = yes; then
13374 else
13375 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13376 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13377 if test "${ac_cv_lib_nsl_main+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 else
13380 ac_check_lib_save_LIBS=$LIBS
13381 LIBS="-lnsl $LIBS"
13382 if test x$gcc_no_link = xyes; then
13383 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13385 { (exit 1); exit 1; }; }
13387 cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h. */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13396 main ()
13398 main ();
13400 return 0;
13402 _ACEOF
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13405 (eval $ac_link) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag"
13413 || test ! -s conftest.err'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest$ac_exeext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_lib_nsl_main=yes
13426 else
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_cv_lib_nsl_main=no
13432 rm -f conftest.err conftest.$ac_objext \
13433 conftest$ac_exeext conftest.$ac_ext
13434 LIBS=$ac_check_lib_save_LIBS
13436 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13437 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13438 if test $ac_cv_lib_nsl_main = yes; then
13439 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13444 unset ac_cv_func_gethostbyname
13445 LIBS=$gcj_oldLIBS
13448 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13449 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13450 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13452 if test "$with_system_zlib" = yes; then
13453 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13454 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13455 if test "${ac_cv_lib_z_deflate+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458 ac_check_lib_save_LIBS=$LIBS
13459 LIBS="-lz $LIBS"
13460 if test x$gcc_no_link = xyes; then
13461 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13462 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13463 { (exit 1); exit 1; }; }
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 /* Override any gcc2 internal prototype to avoid an error. */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 /* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13478 char deflate ();
13480 main ()
13482 deflate ();
13484 return 0;
13486 _ACEOF
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag"
13497 || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try='test -s conftest$ac_exeext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_lib_z_deflate=yes
13510 else
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_cv_lib_z_deflate=no
13516 rm -f conftest.err conftest.$ac_objext \
13517 conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13520 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13521 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13522 if test $ac_cv_lib_z_deflate = yes; then
13523 ZLIBSPEC=-lz
13524 else
13525 ZLIBSPEC=
13530 # Test for Gtk stuff, if asked for.
13531 if test "$use_gtk_awt" = yes; then
13533 succeeded=no
13535 if test -z "$PKG_CONFIG"; then
13536 # Extract the first word of "pkg-config", so it can be a program name with args.
13537 set dummy pkg-config; ac_word=$2
13538 echo "$as_me:$LINENO: checking for $ac_word" >&5
13539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13540 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 else
13543 case $PKG_CONFIG in
13544 [\\/]* | ?:[\\/]*)
13545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13555 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2
13559 done
13560 done
13562 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13564 esac
13566 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13568 if test -n "$PKG_CONFIG"; then
13569 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13570 echo "${ECHO_T}$PKG_CONFIG" >&6
13571 else
13572 echo "$as_me:$LINENO: result: no" >&5
13573 echo "${ECHO_T}no" >&6
13578 if test "$PKG_CONFIG" = "no" ; then
13579 echo "*** The pkg-config script could not be found. Make sure it is"
13580 echo "*** in your path, or set the PKG_CONFIG environment variable"
13581 echo "*** to the full path to pkg-config."
13582 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13583 else
13584 PKG_CONFIG_MIN_VERSION=0.9.0
13585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13586 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13587 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13589 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13590 echo "$as_me:$LINENO: result: yes" >&5
13591 echo "${ECHO_T}yes" >&6
13592 succeeded=yes
13594 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13595 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13596 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13597 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13598 echo "${ECHO_T}$GTK_CFLAGS" >&6
13600 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13601 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13602 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13603 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13604 echo "${ECHO_T}$GTK_LIBS" >&6
13605 else
13606 GTK_CFLAGS=""
13607 GTK_LIBS=""
13608 ## If we have a custom action on failure, don't print errors, but
13609 ## do set a variable so people can do so.
13610 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13611 echo $GTK_PKG_ERRORS
13616 else
13617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13622 if test $succeeded = yes; then
13624 else
13625 { { 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
13626 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;}
13627 { (exit 1); exit 1; }; }
13634 succeeded=no
13636 if test -z "$PKG_CONFIG"; then
13637 # Extract the first word of "pkg-config", so it can be a program name with args.
13638 set dummy pkg-config; ac_word=$2
13639 echo "$as_me:$LINENO: checking for $ac_word" >&5
13640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13641 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 else
13644 case $PKG_CONFIG in
13645 [\\/]* | ?:[\\/]*)
13646 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13652 IFS=$as_save_IFS
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
13655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13656 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13658 break 2
13660 done
13661 done
13663 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13665 esac
13667 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13669 if test -n "$PKG_CONFIG"; then
13670 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13671 echo "${ECHO_T}$PKG_CONFIG" >&6
13672 else
13673 echo "$as_me:$LINENO: result: no" >&5
13674 echo "${ECHO_T}no" >&6
13679 if test "$PKG_CONFIG" = "no" ; then
13680 echo "*** The pkg-config script could not be found. Make sure it is"
13681 echo "*** in your path, or set the PKG_CONFIG environment variable"
13682 echo "*** to the full path to pkg-config."
13683 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13684 else
13685 PKG_CONFIG_MIN_VERSION=0.9.0
13686 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13687 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13688 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13690 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13691 echo "$as_me:$LINENO: result: yes" >&5
13692 echo "${ECHO_T}yes" >&6
13693 succeeded=yes
13695 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13696 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13697 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13698 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13699 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13701 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13702 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13703 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13704 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13705 echo "${ECHO_T}$GLIB_LIBS" >&6
13706 else
13707 GLIB_CFLAGS=""
13708 GLIB_LIBS=""
13709 ## If we have a custom action on failure, don't print errors, but
13710 ## do set a variable so people can do so.
13711 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13712 echo $GLIB_PKG_ERRORS
13717 else
13718 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13719 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13723 if test $succeeded = yes; then
13725 else
13726 { { 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
13727 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;}
13728 { (exit 1); exit 1; }; }
13735 succeeded=no
13737 if test -z "$PKG_CONFIG"; then
13738 # Extract the first word of "pkg-config", so it can be a program name with args.
13739 set dummy pkg-config; ac_word=$2
13740 echo "$as_me:$LINENO: checking for $ac_word" >&5
13741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13742 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745 case $PKG_CONFIG in
13746 [\\/]* | ?:[\\/]*)
13747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751 for as_dir in $PATH
13753 IFS=$as_save_IFS
13754 test -z "$as_dir" && as_dir=.
13755 for ac_exec_ext in '' $ac_executable_extensions; do
13756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13759 break 2
13761 done
13762 done
13764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13766 esac
13768 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13770 if test -n "$PKG_CONFIG"; then
13771 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13772 echo "${ECHO_T}$PKG_CONFIG" >&6
13773 else
13774 echo "$as_me:$LINENO: result: no" >&5
13775 echo "${ECHO_T}no" >&6
13780 if test "$PKG_CONFIG" = "no" ; then
13781 echo "*** The pkg-config script could not be found. Make sure it is"
13782 echo "*** in your path, or set the PKG_CONFIG environment variable"
13783 echo "*** to the full path to pkg-config."
13784 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13785 else
13786 PKG_CONFIG_MIN_VERSION=0.9.0
13787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13788 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13789 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13791 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13792 echo "$as_me:$LINENO: result: yes" >&5
13793 echo "${ECHO_T}yes" >&6
13794 succeeded=yes
13796 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13797 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13798 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13799 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13800 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13802 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13803 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13804 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13805 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13806 echo "${ECHO_T}$LIBART_LIBS" >&6
13807 else
13808 LIBART_CFLAGS=""
13809 LIBART_LIBS=""
13810 ## If we have a custom action on failure, don't print errors, but
13811 ## do set a variable so people can do so.
13812 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13813 echo $LIBART_PKG_ERRORS
13818 else
13819 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13820 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13824 if test $succeeded = yes; then
13826 else
13827 { { 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
13828 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;}
13829 { (exit 1); exit 1; }; }
13835 # We require the XTest Extension to support java.awt.Robot.
13836 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13837 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13838 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841 ac_check_lib_save_LIBS=$LIBS
13842 LIBS="-lXtst ${X_LIBS} $LIBS"
13843 if test x$gcc_no_link = xyes; then
13844 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13846 { (exit 1); exit 1; }; }
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 /* Override any gcc2 internal prototype to avoid an error. */
13856 #ifdef __cplusplus
13857 extern "C"
13858 #endif
13859 /* We use char because int might match the return type of a gcc2
13860 builtin and then its argument prototype would still apply. */
13861 char XTestQueryExtension ();
13863 main ()
13865 XTestQueryExtension ();
13867 return 0;
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872 (eval $ac_link) 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -z "$ac_c_werror_flag"
13880 || test ! -s conftest.err'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest$ac_exeext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 ac_cv_lib_Xtst_XTestQueryExtension=yes
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_cv_lib_Xtst_XTestQueryExtension=no
13899 rm -f conftest.err conftest.$ac_objext \
13900 conftest$ac_exeext conftest.$ac_ext
13901 LIBS=$ac_check_lib_save_LIBS
13903 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13904 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13905 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13906 true
13907 else
13908 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13909 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13910 { (exit 1); exit 1; }; }
13915 # On Solaris, and maybe other architectures, the Boehm collector
13916 # requires -ldl.
13917 if test "$GC" = boehm; then
13918 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13919 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13920 if test "${ac_cv_lib_dl_main+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923 ac_check_lib_save_LIBS=$LIBS
13924 LIBS="-ldl $LIBS"
13925 if test x$gcc_no_link = xyes; then
13926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13928 { (exit 1); exit 1; }; }
13930 cat >conftest.$ac_ext <<_ACEOF
13931 /* confdefs.h. */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13939 main ()
13941 main ();
13943 return 0;
13945 _ACEOF
13946 rm -f conftest.$ac_objext conftest$ac_exeext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13948 (eval $ac_link) 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag"
13956 || test ! -s conftest.err'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest$ac_exeext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_cv_lib_dl_main=yes
13969 else
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 ac_cv_lib_dl_main=no
13975 rm -f conftest.err conftest.$ac_objext \
13976 conftest$ac_exeext conftest.$ac_ext
13977 LIBS=$ac_check_lib_save_LIBS
13979 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13980 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13981 if test $ac_cv_lib_dl_main = yes; then
13982 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13989 if test "$supply_backtrace" = yes; then
13990 SUPPLY_BACKTRACE_TRUE=
13991 SUPPLY_BACKTRACE_FALSE='#'
13992 else
13993 SUPPLY_BACKTRACE_TRUE='#'
13994 SUPPLY_BACKTRACE_FALSE=
13998 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13999 case $build in
14000 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14001 *) CLASSPATH_SEPARATOR=':' ;;
14002 esac
14005 # We must search the source tree for java.lang, since we still don't
14006 # have libgcj.jar nor java/lang/*.class
14007 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14008 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14010 # Since some classes depend on this one, we need its source available
14011 # before we can do any GCJ compilation test :-(
14012 if test ! -f gnu/classpath/Configuration.java; then
14013 test -d gnu || mkdir gnu
14014 test -d gnu/classpath || mkdir gnu/classpath
14015 # Note that it is not crucial that all the values here be correct.
14016 sed -e "s,@prefix@,$prefix," \
14017 -e "s,@VERSION@,$VERSION," \
14018 -e "s,@LIBDEBUG@,false," \
14019 -e "s,@INIT_LOAD_LIBRARY@,false," \
14020 -e "s,@@,$LIBGCJDEBUG," \
14021 -e "s,@default_toolkit@,$TOOLKIT," \
14022 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14023 -e "s,@GTK_CAIRO_ENABLED@,false," \
14024 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14025 > gnu/classpath/Configuration.java
14026 # We do not want to redirect the output of the grep below to /dev/null,
14027 # but we add /dev/null to the input list so that grep will print the
14028 # filename of Configuration.java in case it finds any matches.
14029 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14030 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14031 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14032 { (exit 1); exit 1; }; }
14036 if test -n "$ac_tool_prefix"; then
14037 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14038 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14039 echo "$as_me:$LINENO: checking for $ac_word" >&5
14040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14041 if test "${ac_cv_prog_GCJ+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 if test -n "$GCJ"; then
14045 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14046 else
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14054 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14058 done
14059 done
14063 GCJ=$ac_cv_prog_GCJ
14064 if test -n "$GCJ"; then
14065 echo "$as_me:$LINENO: result: $GCJ" >&5
14066 echo "${ECHO_T}$GCJ" >&6
14067 else
14068 echo "$as_me:$LINENO: result: no" >&5
14069 echo "${ECHO_T}no" >&6
14073 if test -z "$ac_cv_prog_GCJ"; then
14074 ac_ct_GCJ=$GCJ
14075 # Extract the first word of "gcj", so it can be a program name with args.
14076 set dummy gcj; ac_word=$2
14077 echo "$as_me:$LINENO: checking for $ac_word" >&5
14078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14079 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082 if test -n "$ac_ct_GCJ"; then
14083 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14084 else
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14092 ac_cv_prog_ac_ct_GCJ="gcj"
14093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14096 done
14097 done
14099 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14102 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14103 if test -n "$ac_ct_GCJ"; then
14104 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14105 echo "${ECHO_T}$ac_ct_GCJ" >&6
14106 else
14107 echo "$as_me:$LINENO: result: no" >&5
14108 echo "${ECHO_T}no" >&6
14111 GCJ=$ac_ct_GCJ
14112 else
14113 GCJ="$ac_cv_prog_GCJ"
14116 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14121 # Now remove it.
14122 rm -f gnu/classpath/Configuration.java
14124 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14126 echo "$as_me:$LINENO: checking for void *" >&5
14127 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14128 if test "${ac_cv_type_void_p+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h. */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 $ac_includes_default
14139 main ()
14141 if ((void * *) 0)
14142 return 0;
14143 if (sizeof (void *))
14144 return 0;
14146 return 0;
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14151 (eval $ac_compile) 2>conftest.er1
14152 ac_status=$?
14153 grep -v '^ *+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -z "$ac_c_werror_flag"
14159 || test ! -s conftest.err'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; } &&
14165 { ac_try='test -s conftest.$ac_objext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_cv_type_void_p=yes
14172 else
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14176 ac_cv_type_void_p=no
14178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14180 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14181 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14183 echo "$as_me:$LINENO: checking size of void *" >&5
14184 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14185 if test "${ac_cv_sizeof_void_p+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 else
14188 if test "$ac_cv_type_void_p" = yes; then
14189 # The cast to unsigned long works around a bug in the HP C Compiler
14190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14192 # This bug is HP SR number 8606223364.
14193 if test "$cross_compiling" = yes; then
14194 # Depending upon the size, compute the lo and hi bounds.
14195 cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 $ac_includes_default
14203 main ()
14205 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14206 test_array [0] = 0
14209 return 0;
14211 _ACEOF
14212 rm -f conftest.$ac_objext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14214 (eval $ac_compile) 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -z "$ac_c_werror_flag"
14222 || test ! -s conftest.err'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest.$ac_objext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 ac_lo=0 ac_mid=0
14235 while :; do
14236 cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h. */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 $ac_includes_default
14244 main ()
14246 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14247 test_array [0] = 0
14250 return 0;
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_hi=$ac_mid; break
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_lo=`expr $ac_mid + 1`
14281 if test $ac_lo -le $ac_mid; then
14282 ac_lo= ac_hi=
14283 break
14285 ac_mid=`expr 2 '*' $ac_mid + 1`
14287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14288 done
14289 else
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h. */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 $ac_includes_default
14301 main ()
14303 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14304 test_array [0] = 0
14307 return 0;
14309 _ACEOF
14310 rm -f conftest.$ac_objext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312 (eval $ac_compile) 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag"
14320 || test ! -s conftest.err'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_hi=-1 ac_mid=-1
14333 while :; do
14334 cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h. */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 $ac_includes_default
14342 main ()
14344 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14345 test_array [0] = 0
14348 return 0;
14350 _ACEOF
14351 rm -f conftest.$ac_objext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353 (eval $ac_compile) 2>conftest.er1
14354 ac_status=$?
14355 grep -v '^ *+' conftest.er1 >conftest.err
14356 rm -f conftest.er1
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag"
14361 || test ! -s conftest.err'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; } &&
14367 { ac_try='test -s conftest.$ac_objext'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14370 ac_status=$?
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; }; then
14373 ac_lo=$ac_mid; break
14374 else
14375 echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14378 ac_hi=`expr '(' $ac_mid ')' - 1`
14379 if test $ac_mid -le $ac_hi; then
14380 ac_lo= ac_hi=
14381 break
14383 ac_mid=`expr 2 '*' $ac_mid`
14385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14386 done
14387 else
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 ac_lo= ac_hi=
14393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14396 # Binary search between lo and hi bounds.
14397 while test "x$ac_lo" != "x$ac_hi"; do
14398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h. */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 $ac_includes_default
14407 main ()
14409 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14410 test_array [0] = 0
14413 return 0;
14415 _ACEOF
14416 rm -f conftest.$ac_objext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418 (eval $ac_compile) 2>conftest.er1
14419 ac_status=$?
14420 grep -v '^ *+' conftest.er1 >conftest.err
14421 rm -f conftest.er1
14422 cat conftest.err >&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try='test -z "$ac_c_werror_flag"
14426 || test ! -s conftest.err'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 ac_hi=$ac_mid
14439 else
14440 echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14443 ac_lo=`expr '(' $ac_mid ')' + 1`
14445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14446 done
14447 case $ac_lo in
14448 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14449 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14450 See \`config.log' for more details." >&5
14451 echo "$as_me: error: cannot compute sizeof (void *), 77
14452 See \`config.log' for more details." >&2;}
14453 { (exit 1); exit 1; }; } ;;
14454 esac
14455 else
14456 if test "$cross_compiling" = yes; then
14457 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14458 See \`config.log' for more details." >&5
14459 echo "$as_me: error: cannot run test program while cross compiling
14460 See \`config.log' for more details." >&2;}
14461 { (exit 1); exit 1; }; }
14462 else
14463 cat >conftest.$ac_ext <<_ACEOF
14464 /* confdefs.h. */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14469 $ac_includes_default
14470 long longval () { return (long) (sizeof (void *)); }
14471 unsigned long ulongval () { return (long) (sizeof (void *)); }
14472 #include <stdio.h>
14473 #include <stdlib.h>
14475 main ()
14478 FILE *f = fopen ("conftest.val", "w");
14479 if (! f)
14480 exit (1);
14481 if (((long) (sizeof (void *))) < 0)
14483 long i = longval ();
14484 if (i != ((long) (sizeof (void *))))
14485 exit (1);
14486 fprintf (f, "%ld\n", i);
14488 else
14490 unsigned long i = ulongval ();
14491 if (i != ((long) (sizeof (void *))))
14492 exit (1);
14493 fprintf (f, "%lu\n", i);
14495 exit (ferror (f) || fclose (f) != 0);
14498 return 0;
14500 _ACEOF
14501 rm -f conftest$ac_exeext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14503 (eval $ac_link) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_sizeof_void_p=`cat conftest.val`
14513 else
14514 echo "$as_me: program exited with status $ac_status" >&5
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ( exit $ac_status )
14519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14520 See \`config.log' for more details." >&5
14521 echo "$as_me: error: cannot compute sizeof (void *), 77
14522 See \`config.log' for more details." >&2;}
14523 { (exit 1); exit 1; }; }
14525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14528 rm -f conftest.val
14529 else
14530 ac_cv_sizeof_void_p=0
14533 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14534 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14535 cat >>confdefs.h <<_ACEOF
14536 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14537 _ACEOF
14541 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14542 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14543 if test "${ac_cv_c_bigendian+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 else
14546 # See if sys/param.h defines the BYTE_ORDER macro.
14547 cat >conftest.$ac_ext <<_ACEOF
14548 /* confdefs.h. */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 #include <sys/types.h>
14554 #include <sys/param.h>
14557 main ()
14559 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14560 bogus endian macros
14561 #endif
14564 return 0;
14566 _ACEOF
14567 rm -f conftest.$ac_objext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14569 (eval $ac_compile) 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag"
14577 || test ! -s conftest.err'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest.$ac_objext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 # It does; now see whether it defined to BIG_ENDIAN or not.
14590 cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h. */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 #include <sys/types.h>
14597 #include <sys/param.h>
14600 main ()
14602 #if BYTE_ORDER != BIG_ENDIAN
14603 not big endian
14604 #endif
14607 return 0;
14609 _ACEOF
14610 rm -f conftest.$ac_objext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612 (eval $ac_compile) 2>conftest.er1
14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -z "$ac_c_werror_flag"
14620 || test ! -s conftest.err'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14632 ac_cv_c_bigendian=yes
14633 else
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14637 ac_cv_c_bigendian=no
14639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14640 else
14641 echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 # It does not; compile a test program.
14645 if test "$cross_compiling" = yes; then
14646 # try to guess the endianness by grepping values into an object file
14647 ac_cv_c_bigendian=unknown
14648 cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h. */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14655 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14656 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14657 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14658 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14659 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14661 main ()
14663 _ascii (); _ebcdic ();
14665 return 0;
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14670 (eval $ac_compile) 2>conftest.er1
14671 ac_status=$?
14672 grep -v '^ *+' conftest.er1 >conftest.err
14673 rm -f conftest.er1
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
14677 { ac_try='test -z "$ac_c_werror_flag"
14678 || test ! -s conftest.err'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; } &&
14684 { ac_try='test -s conftest.$ac_objext'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then
14690 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14691 ac_cv_c_bigendian=yes
14693 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14694 if test "$ac_cv_c_bigendian" = unknown; then
14695 ac_cv_c_bigendian=no
14696 else
14697 # finding both strings is unlikely to happen, but who knows?
14698 ac_cv_c_bigendian=unknown
14701 else
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14707 else
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h. */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14715 main ()
14717 /* Are we little or big endian? From Harbison&Steele. */
14718 union
14720 long l;
14721 char c[sizeof (long)];
14722 } u;
14723 u.l = 1;
14724 exit (u.c[sizeof (long) - 1] == 1);
14726 _ACEOF
14727 rm -f conftest$ac_exeext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14729 (eval $ac_link) 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_c_bigendian=no
14739 else
14740 echo "$as_me: program exited with status $ac_status" >&5
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ( exit $ac_status )
14745 ac_cv_c_bigendian=yes
14747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14753 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14754 case $ac_cv_c_bigendian in
14755 yes)
14757 cat >>confdefs.h <<\_ACEOF
14758 #define WORDS_BIGENDIAN 1
14759 _ACEOF
14764 { { echo "$as_me:$LINENO: error: unknown endianness
14765 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14766 echo "$as_me: error: unknown endianness
14767 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14768 { (exit 1); exit 1; }; } ;;
14769 esac
14772 ZLIBS=
14773 SYS_ZLIBS=
14774 ZINCS=
14776 if test -z "$ZLIBSPEC"; then
14777 # Use zlib from the GCC tree.
14778 ZINCS='-I$(top_srcdir)/../zlib'
14779 ZLIBS=../zlib/libzgcj_convenience.la
14780 else
14781 # System's zlib.
14782 SYS_ZLIBS="$ZLIBSPEC"
14795 if test "$NATIVE" = yes; then
14796 NATIVE_TRUE=
14797 NATIVE_FALSE='#'
14798 else
14799 NATIVE_TRUE='#'
14800 NATIVE_FALSE=
14805 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14806 NEEDS_DATA_START_TRUE=
14807 NEEDS_DATA_START_FALSE='#'
14808 else
14809 NEEDS_DATA_START_TRUE='#'
14810 NEEDS_DATA_START_FALSE=
14815 # Process the option "--enable-version-specific-runtime-libs"
14816 # Calculate toolexeclibdir
14817 case ${version_specific_libs} in
14818 yes)
14819 # Need the gcc compiler version to know where to install libraries
14820 # and header files if --enable-version-specific-runtime-libs option
14821 # is selected.
14822 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14823 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14824 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14825 toolexeclibdir=$toolexecmainlibdir
14828 if test -n "$with_cross_host" &&
14829 test x"$with_cross_host" != x"no"; then
14830 # Install a library built with a cross compiler in tooldir, not libdir.
14831 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14832 toolexecmainlibdir='$(toolexecdir)/lib'
14833 else
14834 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14835 toolexecmainlibdir='$(libdir)'
14837 multi_os_directory=`$CC -print-multi-os-directory`
14838 case $multi_os_directory in
14839 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14840 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14841 esac
14843 esac
14848 # Determine gcj version number.
14849 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14850 GCJVERSION=$gcjversion
14853 cat >>confdefs.h <<_ACEOF
14854 #define GCJVERSION "$GCJVERSION"
14855 _ACEOF
14859 cat >>confdefs.h <<\_ACEOF
14860 #define JV_VERSION "1.4.2"
14861 _ACEOF
14864 cat >>confdefs.h <<\_ACEOF
14865 #define JV_API_VERSION "1.4"
14866 _ACEOF
14870 case "${with_gxx_include_dir}" in
14871 yes)
14872 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14873 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14874 { (exit 1); exit 1; }; }
14876 no | "")
14877 case "${enable_version_specific_runtime_libs}" in
14878 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14880 libstdcxx_incdir='c++/$(gcc_version)'
14881 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14882 esac ;;
14883 *) gxx_include_dir=${with_gxx_include_dir} ;;
14884 esac
14889 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14890 # On that system, sys/ioctl.h will not include sys/filio.h unless
14891 # BSD_COMP is defined; just including sys/filio.h is simpler.
14892 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14893 # for now. If you change this, you also must update natFile.cc.
14914 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14915 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14916 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14917 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14918 dirent.h
14920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14922 echo "$as_me:$LINENO: checking for $ac_header" >&5
14923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14929 else
14930 # Is the header compilable?
14931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 $ac_includes_default
14940 #include <$ac_header>
14941 _ACEOF
14942 rm -f conftest.$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944 (eval $ac_compile) 2>conftest.er1
14945 ac_status=$?
14946 grep -v '^ *+' conftest.er1 >conftest.err
14947 rm -f conftest.er1
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -z "$ac_c_werror_flag"
14952 || test ! -s conftest.err'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } &&
14958 { ac_try='test -s conftest.$ac_objext'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14964 ac_header_compiler=yes
14965 else
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14969 ac_header_compiler=no
14971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14973 echo "${ECHO_T}$ac_header_compiler" >&6
14975 # Is the header present?
14976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h. */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 #include <$ac_header>
14985 _ACEOF
14986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } >/dev/null; then
14994 if test -s conftest.err; then
14995 ac_cpp_err=$ac_c_preproc_warn_flag
14996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14997 else
14998 ac_cpp_err=
15000 else
15001 ac_cpp_err=yes
15003 if test -z "$ac_cpp_err"; then
15004 ac_header_preproc=yes
15005 else
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 ac_header_preproc=no
15011 rm -f conftest.err conftest.$ac_ext
15012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15013 echo "${ECHO_T}$ac_header_preproc" >&6
15015 # So? What about this header?
15016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15017 yes:no: )
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15022 ac_header_preproc=yes
15024 no:yes:* )
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15038 cat <<\_ASBOX
15039 ## ---------------------------------- ##
15040 ## Report this to the libjava lists. ##
15041 ## ---------------------------------- ##
15042 _ASBOX
15044 sed "s/^/$as_me: WARNING: /" >&2
15046 esac
15047 echo "$as_me:$LINENO: checking for $ac_header" >&5
15048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052 eval "$as_ac_Header=\$ac_header_preproc"
15054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15059 cat >>confdefs.h <<_ACEOF
15060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15061 _ACEOF
15065 done
15068 for ac_header in inttypes.h
15070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15072 echo "$as_me:$LINENO: checking for $ac_header" >&5
15073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15079 else
15080 # Is the header compilable?
15081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 $ac_includes_default
15090 #include <$ac_header>
15091 _ACEOF
15092 rm -f conftest.$ac_objext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15094 (eval $ac_compile) 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_header_compiler=yes
15115 else
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15119 ac_header_compiler=no
15121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15123 echo "${ECHO_T}$ac_header_compiler" >&6
15125 # Is the header present?
15126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h. */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 #include <$ac_header>
15135 _ACEOF
15136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } >/dev/null; then
15144 if test -s conftest.err; then
15145 ac_cpp_err=$ac_c_preproc_warn_flag
15146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15147 else
15148 ac_cpp_err=
15150 else
15151 ac_cpp_err=yes
15153 if test -z "$ac_cpp_err"; then
15154 ac_header_preproc=yes
15155 else
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15159 ac_header_preproc=no
15161 rm -f conftest.err conftest.$ac_ext
15162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15163 echo "${ECHO_T}$ac_header_preproc" >&6
15165 # So? What about this header?
15166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15167 yes:no: )
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15172 ac_header_preproc=yes
15174 no:yes:* )
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15188 cat <<\_ASBOX
15189 ## ---------------------------------- ##
15190 ## Report this to the libjava lists. ##
15191 ## ---------------------------------- ##
15192 _ASBOX
15194 sed "s/^/$as_me: WARNING: /" >&2
15196 esac
15197 echo "$as_me:$LINENO: checking for $ac_header" >&5
15198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202 eval "$as_ac_Header=\$ac_header_preproc"
15204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15209 cat >>confdefs.h <<_ACEOF
15210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15211 _ACEOF
15214 cat >>confdefs.h <<\_ACEOF
15215 #define HAVE_INTTYPES_H 1
15216 _ACEOF
15219 cat >>confdefs.h <<\_ACEOF
15220 #define JV_HAVE_INTTYPES_H 1
15221 _ACEOF
15226 done
15228 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15229 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15230 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 else
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h. */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 #include <sys/types.h>
15240 #include <sys/wait.h>
15241 #ifndef WEXITSTATUS
15242 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15243 #endif
15244 #ifndef WIFEXITED
15245 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15246 #endif
15249 main ()
15251 int s;
15252 wait (&s);
15253 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15255 return 0;
15257 _ACEOF
15258 rm -f conftest.$ac_objext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15260 (eval $ac_compile) 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -z "$ac_c_werror_flag"
15268 || test ! -s conftest.err'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; } &&
15274 { ac_try='test -s conftest.$ac_objext'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_cv_header_sys_wait_h=yes
15281 else
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_cv_header_sys_wait_h=no
15287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15289 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15290 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15291 if test $ac_cv_header_sys_wait_h = yes; then
15293 cat >>confdefs.h <<\_ACEOF
15294 #define HAVE_SYS_WAIT_H 1
15295 _ACEOF
15300 echo "$as_me:$LINENO: checking for ssize_t" >&5
15301 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15302 if test "${ac_cv_type_ssize_t+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 else
15305 cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15313 main ()
15315 if ((ssize_t *) 0)
15316 return 0;
15317 if (sizeof (ssize_t))
15318 return 0;
15320 return 0;
15322 _ACEOF
15323 rm -f conftest.$ac_objext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325 (eval $ac_compile) 2>conftest.er1
15326 ac_status=$?
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -f conftest.er1
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag"
15333 || test ! -s conftest.err'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest.$ac_objext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 ac_cv_type_ssize_t=yes
15346 else
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 ac_cv_type_ssize_t=no
15352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15355 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15356 if test $ac_cv_type_ssize_t = yes; then
15358 else
15360 cat >>confdefs.h <<_ACEOF
15361 #define ssize_t int
15362 _ACEOF
15367 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15368 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 #include <sys/types.h>
15376 #if STDC_HEADERS
15377 #include <stdlib.h>
15378 #include <stddef.h>
15379 #endif
15380 #if HAVE_NETINET_IN_H
15381 #include <netinet/in.h>
15382 #endif
15384 main ()
15386 in_addr_t foo;
15388 return 0;
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -z "$ac_c_werror_flag"
15401 || test ! -s conftest.err'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; } &&
15407 { ac_try='test -s conftest.$ac_objext'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15410 ac_status=$?
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15414 cat >>confdefs.h <<\_ACEOF
15415 #define HAVE_IN_ADDR_T 1
15416 _ACEOF
15418 echo "$as_me:$LINENO: result: yes" >&5
15419 echo "${ECHO_T}yes" >&6
15420 else
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 echo "$as_me:$LINENO: result: no" >&5
15425 echo "${ECHO_T}no" >&6
15427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15429 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15430 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15431 cat >conftest.$ac_ext <<_ACEOF
15432 /* confdefs.h. */
15433 _ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h. */
15437 #include <netinet/in.h>
15439 main ()
15441 struct ip_mreq mreq;
15443 return 0;
15445 _ACEOF
15446 rm -f conftest.$ac_objext
15447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15448 (eval $ac_compile) 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } &&
15455 { ac_try='test -z "$ac_c_werror_flag"
15456 || test ! -s conftest.err'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; } &&
15462 { ac_try='test -s conftest.$ac_objext'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15469 cat >>confdefs.h <<\_ACEOF
15470 #define HAVE_STRUCT_IP_MREQ 1
15471 _ACEOF
15473 echo "$as_me:$LINENO: result: yes" >&5
15474 echo "${ECHO_T}yes" >&6
15475 else
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 echo "$as_me:$LINENO: result: no" >&5
15480 echo "${ECHO_T}no" >&6
15482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15484 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15485 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15486 cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h. */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 #include <netinet/in.h>
15494 main ()
15496 struct ipv6_mreq mreq6;
15498 return 0;
15500 _ACEOF
15501 rm -f conftest.$ac_objext
15502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15503 (eval $ac_compile) 2>conftest.er1
15504 ac_status=$?
15505 grep -v '^ *+' conftest.er1 >conftest.err
15506 rm -f conftest.er1
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -z "$ac_c_werror_flag"
15511 || test ! -s conftest.err'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try='test -s conftest.$ac_objext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15524 cat >>confdefs.h <<\_ACEOF
15525 #define HAVE_STRUCT_IPV6_MREQ 1
15526 _ACEOF
15528 echo "$as_me:$LINENO: result: yes" >&5
15529 echo "${ECHO_T}yes" >&6
15530 else
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 echo "$as_me:$LINENO: result: no" >&5
15535 echo "${ECHO_T}no" >&6
15537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15539 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15540 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15541 cat >conftest.$ac_ext <<_ACEOF
15542 /* confdefs.h. */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 #include <netinet/in.h>
15549 main ()
15551 struct sockaddr_in6 addr6;
15553 return 0;
15555 _ACEOF
15556 rm -f conftest.$ac_objext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15558 (eval $ac_compile) 2>conftest.er1
15559 ac_status=$?
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -z "$ac_c_werror_flag"
15566 || test ! -s conftest.err'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try='test -s conftest.$ac_objext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_INET6 1
15581 _ACEOF
15583 echo "$as_me:$LINENO: result: yes" >&5
15584 echo "${ECHO_T}yes" >&6
15585 else
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 echo "$as_me:$LINENO: result: no" >&5
15590 echo "${ECHO_T}no" >&6
15592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15594 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15595 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 #define _POSIX_PII_SOCKET
15603 #include <sys/types.h>
15604 #include <sys/socket.h>
15606 main ()
15608 socklen_t x = 5;
15610 return 0;
15612 _ACEOF
15613 rm -f conftest.$ac_objext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15615 (eval $ac_compile) 2>conftest.er1
15616 ac_status=$?
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -z "$ac_c_werror_flag"
15623 || test ! -s conftest.err'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; } &&
15629 { ac_try='test -s conftest.$ac_objext'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15636 cat >>confdefs.h <<\_ACEOF
15637 #define HAVE_SOCKLEN_T 1
15638 _ACEOF
15640 echo "$as_me:$LINENO: result: yes" >&5
15641 echo "${ECHO_T}yes" >&6
15642 else
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 echo "$as_me:$LINENO: result: no" >&5
15647 echo "${ECHO_T}no" >&6
15649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15651 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15652 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15653 cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h. */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15659 #include <time.h>
15661 main ()
15663 struct tm tim; tim.tm_gmtoff = 0;
15665 return 0;
15667 _ACEOF
15668 rm -f conftest.$ac_objext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15670 (eval $ac_compile) 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag"
15678 || test ! -s conftest.err'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest.$ac_objext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15691 cat >>confdefs.h <<\_ACEOF
15692 #define STRUCT_TM_HAS_GMTOFF 1
15693 _ACEOF
15695 echo "$as_me:$LINENO: result: yes" >&5
15696 echo "${ECHO_T}yes" >&6
15697 else
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 echo "$as_me:$LINENO: result: no" >&5
15702 echo "${ECHO_T}no" >&6
15703 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15704 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h. */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 #include <time.h>
15713 main ()
15715 void i(){long z2 = 2*timezone;}
15717 return 0;
15719 _ACEOF
15720 rm -f conftest.$ac_objext
15721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15722 (eval $ac_compile) 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try='test -z "$ac_c_werror_flag"
15730 || test ! -s conftest.err'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } &&
15736 { ac_try='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15743 cat >>confdefs.h <<\_ACEOF
15744 #define HAVE_TIMEZONE 1
15745 _ACEOF
15747 echo "$as_me:$LINENO: result: yes" >&5
15748 echo "${ECHO_T}yes" >&6
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 echo "$as_me:$LINENO: result: no" >&5
15754 echo "${ECHO_T}no" >&6
15755 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15756 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h. */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 #include <time.h>
15765 main ()
15767 long z2 = _timezone;
15769 return 0;
15771 _ACEOF
15772 rm -f conftest.$ac_objext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774 (eval $ac_compile) 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag"
15782 || test ! -s conftest.err'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest.$ac_objext'
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; }; then
15795 cat >>confdefs.h <<\_ACEOF
15796 #define HAVE_UNDERSCORE_TIMEZONE 1
15797 _ACEOF
15799 echo "$as_me:$LINENO: result: yes" >&5
15800 echo "${ECHO_T}yes" >&6
15801 else
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 echo "$as_me:$LINENO: result: no" >&5
15806 echo "${ECHO_T}no" >&6
15808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15815 # for constant arguments. Useless!
15816 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15817 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15818 if test "${ac_cv_working_alloca_h+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821 if test x$gcc_no_link = xyes; then
15822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15824 { (exit 1); exit 1; }; }
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 #include <alloca.h>
15834 main ()
15836 char *p = (char *) alloca (2 * sizeof (int));
15838 return 0;
15840 _ACEOF
15841 rm -f conftest.$ac_objext conftest$ac_exeext
15842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15843 (eval $ac_link) 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -z "$ac_c_werror_flag"
15851 || test ! -s conftest.err'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; } &&
15857 { ac_try='test -s conftest$ac_exeext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 ac_cv_working_alloca_h=yes
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_cv_working_alloca_h=no
15870 rm -f conftest.err conftest.$ac_objext \
15871 conftest$ac_exeext conftest.$ac_ext
15873 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15874 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15875 if test $ac_cv_working_alloca_h = yes; then
15877 cat >>confdefs.h <<\_ACEOF
15878 #define HAVE_ALLOCA_H 1
15879 _ACEOF
15883 echo "$as_me:$LINENO: checking for alloca" >&5
15884 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15885 if test "${ac_cv_func_alloca_works+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 else
15888 if test x$gcc_no_link = xyes; then
15889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15891 { (exit 1); exit 1; }; }
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 #ifdef __GNUC__
15900 # define alloca __builtin_alloca
15901 #else
15902 # ifdef _MSC_VER
15903 # include <malloc.h>
15904 # define alloca _alloca
15905 # else
15906 # if HAVE_ALLOCA_H
15907 # include <alloca.h>
15908 # else
15909 # ifdef _AIX
15910 #pragma alloca
15911 # else
15912 # ifndef alloca /* predefined by HP cc +Olibcalls */
15913 char *alloca ();
15914 # endif
15915 # endif
15916 # endif
15917 # endif
15918 #endif
15921 main ()
15923 char *p = (char *) alloca (1);
15925 return 0;
15927 _ACEOF
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930 (eval $ac_link) 2>conftest.er1
15931 ac_status=$?
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } &&
15937 { ac_try='test -z "$ac_c_werror_flag"
15938 || test ! -s conftest.err'
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; } &&
15944 { ac_try='test -s conftest$ac_exeext'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_cv_func_alloca_works=yes
15951 else
15952 echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15955 ac_cv_func_alloca_works=no
15957 rm -f conftest.err conftest.$ac_objext \
15958 conftest$ac_exeext conftest.$ac_ext
15960 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15961 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15963 if test $ac_cv_func_alloca_works = yes; then
15965 cat >>confdefs.h <<\_ACEOF
15966 #define HAVE_ALLOCA 1
15967 _ACEOF
15969 else
15970 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15971 # that cause trouble. Some versions do not even contain alloca or
15972 # contain a buggy version. If you still want to use their alloca,
15973 # use ar to extract alloca.o from them instead of compiling alloca.c.
15975 ALLOCA=alloca.$ac_objext
15977 cat >>confdefs.h <<\_ACEOF
15978 #define C_ALLOCA 1
15979 _ACEOF
15982 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15983 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15984 if test "${ac_cv_os_cray+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987 cat >conftest.$ac_ext <<_ACEOF
15988 /* confdefs.h. */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15993 #if defined(CRAY) && ! defined(CRAY2)
15994 webecray
15995 #else
15996 wenotbecray
15997 #endif
15999 _ACEOF
16000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16001 $EGREP "webecray" >/dev/null 2>&1; then
16002 ac_cv_os_cray=yes
16003 else
16004 ac_cv_os_cray=no
16006 rm -f conftest*
16009 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16010 echo "${ECHO_T}$ac_cv_os_cray" >&6
16011 if test $ac_cv_os_cray = yes; then
16012 for ac_func in _getb67 GETB67 getb67; do
16013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16014 echo "$as_me:$LINENO: checking for $ac_func" >&5
16015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16016 if eval "test \"\${$as_ac_var+set}\" = set"; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019 if test x$gcc_no_link = xyes; then
16020 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16022 { (exit 1); exit 1; }; }
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h. */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16032 #define $ac_func innocuous_$ac_func
16034 /* System header to define __stub macros and hopefully few prototypes,
16035 which can conflict with char $ac_func (); below.
16036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16037 <limits.h> exists even on freestanding compilers. */
16039 #ifdef __STDC__
16040 # include <limits.h>
16041 #else
16042 # include <assert.h>
16043 #endif
16045 #undef $ac_func
16047 /* Override any gcc2 internal prototype to avoid an error. */
16048 #ifdef __cplusplus
16049 extern "C"
16051 #endif
16052 /* We use char because int might match the return type of a gcc2
16053 builtin and then its argument prototype would still apply. */
16054 char $ac_func ();
16055 /* The GNU C library defines this for functions which it implements
16056 to always fail with ENOSYS. Some functions are actually named
16057 something starting with __ and the normal name is an alias. */
16058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16059 choke me
16060 #else
16061 char (*f) () = $ac_func;
16062 #endif
16063 #ifdef __cplusplus
16065 #endif
16068 main ()
16070 return f != $ac_func;
16072 return 0;
16074 _ACEOF
16075 rm -f conftest.$ac_objext conftest$ac_exeext
16076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
16084 { ac_try='test -z "$ac_c_werror_flag"
16085 || test ! -s conftest.err'
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest$ac_exeext'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 eval "$as_ac_var=yes"
16098 else
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16102 eval "$as_ac_var=no"
16104 rm -f conftest.err conftest.$ac_objext \
16105 conftest$ac_exeext conftest.$ac_ext
16107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16109 if test `eval echo '${'$as_ac_var'}'` = yes; then
16111 cat >>confdefs.h <<_ACEOF
16112 #define CRAY_STACKSEG_END $ac_func
16113 _ACEOF
16115 break
16118 done
16121 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16122 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16123 if test "${ac_cv_c_stack_direction+set}" = set; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16125 else
16126 if test "$cross_compiling" = yes; then
16127 ac_cv_c_stack_direction=0
16128 else
16129 cat >conftest.$ac_ext <<_ACEOF
16130 /* confdefs.h. */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16136 find_stack_direction ()
16138 static char *addr = 0;
16139 auto char dummy;
16140 if (addr == 0)
16142 addr = &dummy;
16143 return find_stack_direction ();
16145 else
16146 return (&dummy > addr) ? 1 : -1;
16150 main ()
16152 exit (find_stack_direction () < 0);
16154 _ACEOF
16155 rm -f conftest$ac_exeext
16156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16157 (eval $ac_link) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_cv_c_stack_direction=1
16167 else
16168 echo "$as_me: program exited with status $ac_status" >&5
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 ( exit $ac_status )
16173 ac_cv_c_stack_direction=-1
16175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16178 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16179 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16181 cat >>confdefs.h <<_ACEOF
16182 #define STACK_DIRECTION $ac_cv_c_stack_direction
16183 _ACEOF
16188 if test x$gcc_no_link = xyes; then
16189 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
16190 ac_cv_func_mmap_fixed_mapped=no
16193 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
16196 for ac_header in stdlib.h unistd.h
16198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16200 echo "$as_me:$LINENO: checking for $ac_header" >&5
16201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16207 else
16208 # Is the header compilable?
16209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16211 cat >conftest.$ac_ext <<_ACEOF
16212 /* confdefs.h. */
16213 _ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16217 $ac_includes_default
16218 #include <$ac_header>
16219 _ACEOF
16220 rm -f conftest.$ac_objext
16221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16222 (eval $ac_compile) 2>conftest.er1
16223 ac_status=$?
16224 grep -v '^ *+' conftest.er1 >conftest.err
16225 rm -f conftest.er1
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_c_werror_flag"
16230 || test ! -s conftest.err'
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; } &&
16236 { ac_try='test -s conftest.$ac_objext'
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 ac_header_compiler=yes
16243 else
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 ac_header_compiler=no
16249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251 echo "${ECHO_T}$ac_header_compiler" >&6
16253 # Is the header present?
16254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16256 cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h. */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 #include <$ac_header>
16263 _ACEOF
16264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } >/dev/null; then
16272 if test -s conftest.err; then
16273 ac_cpp_err=$ac_c_preproc_warn_flag
16274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16275 else
16276 ac_cpp_err=
16278 else
16279 ac_cpp_err=yes
16281 if test -z "$ac_cpp_err"; then
16282 ac_header_preproc=yes
16283 else
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16287 ac_header_preproc=no
16289 rm -f conftest.err conftest.$ac_ext
16290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16291 echo "${ECHO_T}$ac_header_preproc" >&6
16293 # So? What about this header?
16294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16295 yes:no: )
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16300 ac_header_preproc=yes
16302 no:yes:* )
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16316 cat <<\_ASBOX
16317 ## ---------------------------------- ##
16318 ## Report this to the libjava lists. ##
16319 ## ---------------------------------- ##
16320 _ASBOX
16322 sed "s/^/$as_me: WARNING: /" >&2
16324 esac
16325 echo "$as_me:$LINENO: checking for $ac_header" >&5
16326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 else
16330 eval "$as_ac_Header=\$ac_header_preproc"
16332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16337 cat >>confdefs.h <<_ACEOF
16338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16339 _ACEOF
16343 done
16346 for ac_func in getpagesize
16348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16349 echo "$as_me:$LINENO: checking for $ac_func" >&5
16350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16351 if eval "test \"\${$as_ac_var+set}\" = set"; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354 if test x$gcc_no_link = xyes; then
16355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16357 { (exit 1); exit 1; }; }
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h. */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16367 #define $ac_func innocuous_$ac_func
16369 /* System header to define __stub macros and hopefully few prototypes,
16370 which can conflict with char $ac_func (); below.
16371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16372 <limits.h> exists even on freestanding compilers. */
16374 #ifdef __STDC__
16375 # include <limits.h>
16376 #else
16377 # include <assert.h>
16378 #endif
16380 #undef $ac_func
16382 /* Override any gcc2 internal prototype to avoid an error. */
16383 #ifdef __cplusplus
16384 extern "C"
16386 #endif
16387 /* We use char because int might match the return type of a gcc2
16388 builtin and then its argument prototype would still apply. */
16389 char $ac_func ();
16390 /* The GNU C library defines this for functions which it implements
16391 to always fail with ENOSYS. Some functions are actually named
16392 something starting with __ and the normal name is an alias. */
16393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16394 choke me
16395 #else
16396 char (*f) () = $ac_func;
16397 #endif
16398 #ifdef __cplusplus
16400 #endif
16403 main ()
16405 return f != $ac_func;
16407 return 0;
16409 _ACEOF
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16412 (eval $ac_link) 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
16419 { ac_try='test -z "$ac_c_werror_flag"
16420 || test ! -s conftest.err'
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest$ac_exeext'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 eval "$as_ac_var=yes"
16433 else
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 eval "$as_ac_var=no"
16439 rm -f conftest.err conftest.$ac_objext \
16440 conftest$ac_exeext conftest.$ac_ext
16442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16444 if test `eval echo '${'$as_ac_var'}'` = yes; then
16445 cat >>confdefs.h <<_ACEOF
16446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16447 _ACEOF
16450 done
16452 echo "$as_me:$LINENO: checking for working mmap" >&5
16453 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16454 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 else
16457 if test "$cross_compiling" = yes; then
16458 ac_cv_func_mmap_fixed_mapped=no
16459 else
16460 cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h. */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 $ac_includes_default
16467 /* malloc might have been renamed as rpl_malloc. */
16468 #undef malloc
16470 /* Thanks to Mike Haertel and Jim Avera for this test.
16471 Here is a matrix of mmap possibilities:
16472 mmap private not fixed
16473 mmap private fixed at somewhere currently unmapped
16474 mmap private fixed at somewhere already mapped
16475 mmap shared not fixed
16476 mmap shared fixed at somewhere currently unmapped
16477 mmap shared fixed at somewhere already mapped
16478 For private mappings, we should verify that changes cannot be read()
16479 back from the file, nor mmap's back from the file at a different
16480 address. (There have been systems where private was not correctly
16481 implemented like the infamous i386 svr4.0, and systems where the
16482 VM page cache was not coherent with the file system buffer cache
16483 like early versions of FreeBSD and possibly contemporary NetBSD.)
16484 For shared mappings, we should conversely verify that changes get
16485 propagated back to all the places they're supposed to be.
16487 Grep wants private fixed already mapped.
16488 The main things grep needs to know about mmap are:
16489 * does it exist and is it safe to write into the mmap'd area
16490 * how to use it (BSD variants) */
16492 #include <fcntl.h>
16493 #include <sys/mman.h>
16495 #if !STDC_HEADERS && !HAVE_STDLIB_H
16496 char *malloc ();
16497 #endif
16499 /* This mess was copied from the GNU getpagesize.h. */
16500 #if !HAVE_GETPAGESIZE
16501 /* Assume that all systems that can run configure have sys/param.h. */
16502 # if !HAVE_SYS_PARAM_H
16503 # define HAVE_SYS_PARAM_H 1
16504 # endif
16506 # ifdef _SC_PAGESIZE
16507 # define getpagesize() sysconf(_SC_PAGESIZE)
16508 # else /* no _SC_PAGESIZE */
16509 # if HAVE_SYS_PARAM_H
16510 # include <sys/param.h>
16511 # ifdef EXEC_PAGESIZE
16512 # define getpagesize() EXEC_PAGESIZE
16513 # else /* no EXEC_PAGESIZE */
16514 # ifdef NBPG
16515 # define getpagesize() NBPG * CLSIZE
16516 # ifndef CLSIZE
16517 # define CLSIZE 1
16518 # endif /* no CLSIZE */
16519 # else /* no NBPG */
16520 # ifdef NBPC
16521 # define getpagesize() NBPC
16522 # else /* no NBPC */
16523 # ifdef PAGESIZE
16524 # define getpagesize() PAGESIZE
16525 # endif /* PAGESIZE */
16526 # endif /* no NBPC */
16527 # endif /* no NBPG */
16528 # endif /* no EXEC_PAGESIZE */
16529 # else /* no HAVE_SYS_PARAM_H */
16530 # define getpagesize() 8192 /* punt totally */
16531 # endif /* no HAVE_SYS_PARAM_H */
16532 # endif /* no _SC_PAGESIZE */
16534 #endif /* no HAVE_GETPAGESIZE */
16537 main ()
16539 char *data, *data2, *data3;
16540 int i, pagesize;
16541 int fd;
16543 pagesize = getpagesize ();
16545 /* First, make a file with some known garbage in it. */
16546 data = (char *) malloc (pagesize);
16547 if (!data)
16548 exit (1);
16549 for (i = 0; i < pagesize; ++i)
16550 *(data + i) = rand ();
16551 umask (0);
16552 fd = creat ("conftest.mmap", 0600);
16553 if (fd < 0)
16554 exit (1);
16555 if (write (fd, data, pagesize) != pagesize)
16556 exit (1);
16557 close (fd);
16559 /* Next, try to mmap the file at a fixed address which already has
16560 something else allocated at it. If we can, also make sure that
16561 we see the same garbage. */
16562 fd = open ("conftest.mmap", O_RDWR);
16563 if (fd < 0)
16564 exit (1);
16565 data2 = (char *) malloc (2 * pagesize);
16566 if (!data2)
16567 exit (1);
16568 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16569 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16570 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16571 exit (1);
16572 for (i = 0; i < pagesize; ++i)
16573 if (*(data + i) != *(data2 + i))
16574 exit (1);
16576 /* Finally, make sure that changes to the mapped area do not
16577 percolate back to the file as seen by read(). (This is a bug on
16578 some variants of i386 svr4.0.) */
16579 for (i = 0; i < pagesize; ++i)
16580 *(data2 + i) = *(data2 + i) + 1;
16581 data3 = (char *) malloc (pagesize);
16582 if (!data3)
16583 exit (1);
16584 if (read (fd, data3, pagesize) != pagesize)
16585 exit (1);
16586 for (i = 0; i < pagesize; ++i)
16587 if (*(data + i) != *(data3 + i))
16588 exit (1);
16589 close (fd);
16590 exit (0);
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 ac_cv_func_mmap_fixed_mapped=yes
16605 else
16606 echo "$as_me: program exited with status $ac_status" >&5
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ( exit $ac_status )
16611 ac_cv_func_mmap_fixed_mapped=no
16613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16616 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16617 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16618 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16620 cat >>confdefs.h <<\_ACEOF
16621 #define HAVE_MMAP 1
16622 _ACEOF
16625 rm -f conftest.mmap
16629 for ac_prog in perl
16631 # Extract the first word of "$ac_prog", so it can be a program name with args.
16632 set dummy $ac_prog; ac_word=$2
16633 echo "$as_me:$LINENO: checking for $ac_word" >&5
16634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16635 if test "${ac_cv_prog_PERL+set}" = set; then
16636 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 else
16638 if test -n "$PERL"; then
16639 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16640 else
16641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16642 for as_dir in $PATH
16644 IFS=$as_save_IFS
16645 test -z "$as_dir" && as_dir=.
16646 for ac_exec_ext in '' $ac_executable_extensions; do
16647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16648 ac_cv_prog_PERL="$ac_prog"
16649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16650 break 2
16652 done
16653 done
16657 PERL=$ac_cv_prog_PERL
16658 if test -n "$PERL"; then
16659 echo "$as_me:$LINENO: result: $PERL" >&5
16660 echo "${ECHO_T}$PERL" >&6
16661 else
16662 echo "$as_me:$LINENO: result: no" >&5
16663 echo "${ECHO_T}no" >&6
16666 test -n "$PERL" && break
16667 done
16668 test -n "$PERL" || PERL="false"
16671 SYSDEP_SOURCES=
16672 SIGNAL_HANDLER_AUX=
16674 case "${host}" in
16675 i?86-*-linux*)
16676 SIGNAL_HANDLER=include/i386-signal.h
16678 sparc*-sun-solaris*)
16679 SIGNAL_HANDLER=include/sparc-signal.h
16681 # ia64-*)
16682 # SYSDEP_SOURCES=sysdep/ia64.c
16683 # test -d sysdep || mkdir sysdep
16684 # ;;
16685 hppa*-*-linux*)
16686 SIGNAL_HANDLER=include/pa-signal.h
16688 ia64-*-linux*)
16689 SIGNAL_HANDLER=include/dwarf2-signal.h
16691 powerpc*-*-linux*)
16692 SIGNAL_HANDLER=include/powerpc-signal.h
16694 alpha*-*-linux*)
16695 SIGNAL_HANDLER=include/dwarf2-signal.h
16697 s390*-*-linux*)
16698 SIGNAL_HANDLER=include/s390-signal.h
16700 x86_64*-*-linux*)
16701 SIGNAL_HANDLER=include/x86_64-signal.h
16702 SIGNAL_HANDLER_AUX=include/i386-signal.h
16704 sparc*-*-linux*)
16705 SIGNAL_HANDLER=include/dwarf2-signal.h
16707 sh*-*-linux*)
16708 SIGNAL_HANDLER=include/sh-signal.h
16710 *mingw*)
16711 SIGNAL_HANDLER=include/win32-signal.h
16713 mips*-*-linux*)
16714 SIGNAL_HANDLER=include/mips-signal.h
16716 *-*-darwin*)
16717 SIGNAL_HANDLER=include/darwin-signal.h
16720 SIGNAL_HANDLER=include/default-signal.h
16722 esac
16724 # If we're using sjlj exceptions, forget what we just learned.
16725 if test "$enable_sjlj_exceptions" = yes; then
16726 SIGNAL_HANDLER=include/default-signal.h
16727 SIGNAL_HANDLER_AUX=
16732 if test -z "$SIGNAL_HANDLER_AUX"; then
16733 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16736 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16739 if test "${multilib}" = "yes"; then
16740 multilib_arg="--enable-multilib"
16741 else
16742 multilib_arg=
16745 # See if we support thread-local storage.
16747 # Check whether --enable-tls or --disable-tls was given.
16748 if test "${enable_tls+set}" = set; then
16749 enableval="$enable_tls"
16751 case "$enableval" in
16752 yes|no) ;;
16753 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16754 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16755 { (exit 1); exit 1; }; } ;;
16756 esac
16758 else
16759 enable_tls=yes
16762 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16763 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16764 if test "${have_tls+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16768 if test "$cross_compiling" = yes; then
16769 cat >conftest.$ac_ext <<_ACEOF
16770 __thread int foo;
16771 _ACEOF
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774 (eval $ac_compile) 2>conftest.er1
16775 ac_status=$?
16776 grep -v '^ *+' conftest.er1 >conftest.err
16777 rm -f conftest.er1
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -z "$ac_c_werror_flag"
16782 || test ! -s conftest.err'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest.$ac_objext'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 have_tls=yes
16795 else
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 have_tls=no
16801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16803 else
16804 cat >conftest.$ac_ext <<_ACEOF
16805 __thread int a; int b; int main() { return a = b; }
16806 _ACEOF
16807 rm -f conftest$ac_exeext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16809 (eval $ac_link) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 save_LDFLAGS="$LDFLAGS"
16819 LDFLAGS="-static $LDFLAGS"
16820 if test "$cross_compiling" = yes; then
16821 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16822 See \`config.log' for more details." >&5
16823 echo "$as_me: error: cannot run test program while cross compiling
16824 See \`config.log' for more details." >&2;}
16825 { (exit 1); exit 1; }; }
16826 else
16827 cat >conftest.$ac_ext <<_ACEOF
16828 __thread int a; int b; int main() { return a = b; }
16829 _ACEOF
16830 rm -f conftest$ac_exeext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16832 (eval $ac_link) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 have_tls=yes
16842 else
16843 echo "$as_me: program exited with status $ac_status" >&5
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16847 ( exit $ac_status )
16848 have_tls=no
16850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16852 LDFLAGS="$save_LDFLAGS"
16853 else
16854 echo "$as_me: program exited with status $ac_status" >&5
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 ( exit $ac_status )
16859 have_tls=no
16861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16864 echo "$as_me:$LINENO: result: $have_tls" >&5
16865 echo "${ECHO_T}$have_tls" >&6
16866 if test "$enable_tls $have_tls" = "yes yes"; then
16868 cat >>confdefs.h <<\_ACEOF
16869 #define HAVE_TLS 1
16870 _ACEOF
16875 here=`${PWDCMD-pwd}`
16878 # We get this from the environment.
16881 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16884 ac_config_commands="$ac_config_commands default"
16887 cat >confcache <<\_ACEOF
16888 # This file is a shell script that caches the results of configure
16889 # tests run on this system so they can be shared between configure
16890 # scripts and configure runs, see configure's option --config-cache.
16891 # It is not useful on other systems. If it contains results you don't
16892 # want to keep, you may remove or edit it.
16894 # config.status only pays attention to the cache file if you give it
16895 # the --recheck option to rerun configure.
16897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16899 # following values.
16901 _ACEOF
16903 # The following way of writing the cache mishandles newlines in values,
16904 # but we know of no workaround that is simple, portable, and efficient.
16905 # So, don't put newlines in cache variables' values.
16906 # Ultrix sh set writes to stderr and can't be redirected directly,
16907 # and sets the high bit in the cache file unless we assign to the vars.
16909 (set) 2>&1 |
16910 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16911 *ac_space=\ *)
16912 # `set' does not quote correctly, so add quotes (double-quote
16913 # substitution turns \\\\ into \\, and sed turns \\ into \).
16914 sed -n \
16915 "s/'/'\\\\''/g;
16916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16919 # `set' quotes correctly as required by POSIX, so do not add quotes.
16920 sed -n \
16921 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16923 esac;
16925 sed '
16926 t clear
16927 : clear
16928 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16929 t end
16930 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16931 : end' >>confcache
16932 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16933 if test -w $cache_file; then
16934 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16935 cat confcache >$cache_file
16936 else
16937 echo "not updating unwritable cache $cache_file"
16940 rm -f confcache
16942 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16943 # Let make expand exec_prefix.
16944 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16946 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16947 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16948 # trailing colons and then remove the whole line if VPATH becomes empty
16949 # (actually we leave an empty line to preserve line numbers).
16950 if test "x$srcdir" = x.; then
16951 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16952 s/:*\$(srcdir):*/:/;
16953 s/:*\${srcdir}:*/:/;
16954 s/:*@srcdir@:*/:/;
16955 s/^\([^=]*=[ ]*\):*/\1/;
16956 s/:*$//;
16957 s/^[^=]*=[ ]*$//;
16961 DEFS=-DHAVE_CONFIG_H
16963 ac_libobjs=
16964 ac_ltlibobjs=
16965 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16966 # 1. Remove the extension, and $U if already installed.
16967 ac_i=`echo "$ac_i" |
16968 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16969 # 2. Add them.
16970 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16971 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16972 done
16973 LIBOBJS=$ac_libobjs
16975 LTLIBOBJS=$ac_ltlibobjs
16978 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16979 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16980 Usually this means the macro was only invoked conditionally." >&5
16981 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16982 Usually this means the macro was only invoked conditionally." >&2;}
16983 { (exit 1); exit 1; }; }
16985 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16986 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16987 Usually this means the macro was only invoked conditionally." >&5
16988 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16989 Usually this means the macro was only invoked conditionally." >&2;}
16990 { (exit 1); exit 1; }; }
16992 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16993 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16994 Usually this means the macro was only invoked conditionally." >&5
16995 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16996 Usually this means the macro was only invoked conditionally." >&2;}
16997 { (exit 1); exit 1; }; }
16999 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17000 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17001 Usually this means the macro was only invoked conditionally." >&5
17002 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17003 Usually this means the macro was only invoked conditionally." >&2;}
17004 { (exit 1); exit 1; }; }
17006 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17007 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17008 Usually this means the macro was only invoked conditionally." >&5
17009 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17010 Usually this means the macro was only invoked conditionally." >&2;}
17011 { (exit 1); exit 1; }; }
17013 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
17014 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
17015 Usually this means the macro was only invoked conditionally." >&5
17016 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
17017 Usually this means the macro was only invoked conditionally." >&2;}
17018 { (exit 1); exit 1; }; }
17020 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
17021 { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
17022 Usually this means the macro was only invoked conditionally." >&5
17023 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
17024 Usually this means the macro was only invoked conditionally." >&2;}
17025 { (exit 1); exit 1; }; }
17027 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17028 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17029 Usually this means the macro was only invoked conditionally." >&5
17030 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17031 Usually this means the macro was only invoked conditionally." >&2;}
17032 { (exit 1); exit 1; }; }
17034 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17035 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17036 Usually this means the macro was only invoked conditionally." >&5
17037 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17038 Usually this means the macro was only invoked conditionally." >&2;}
17039 { (exit 1); exit 1; }; }
17041 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17042 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17043 Usually this means the macro was only invoked conditionally." >&5
17044 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17045 Usually this means the macro was only invoked conditionally." >&2;}
17046 { (exit 1); exit 1; }; }
17048 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17049 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17050 Usually this means the macro was only invoked conditionally." >&5
17051 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17052 Usually this means the macro was only invoked conditionally." >&2;}
17053 { (exit 1); exit 1; }; }
17055 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17056 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17057 Usually this means the macro was only invoked conditionally." >&5
17058 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17059 Usually this means the macro was only invoked conditionally." >&2;}
17060 { (exit 1); exit 1; }; }
17062 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17063 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17064 Usually this means the macro was only invoked conditionally." >&5
17065 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17066 Usually this means the macro was only invoked conditionally." >&2;}
17067 { (exit 1); exit 1; }; }
17069 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17070 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17071 Usually this means the macro was only invoked conditionally." >&5
17072 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17073 Usually this means the macro was only invoked conditionally." >&2;}
17074 { (exit 1); exit 1; }; }
17076 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17077 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17078 Usually this means the macro was only invoked conditionally." >&5
17079 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17080 Usually this means the macro was only invoked conditionally." >&2;}
17081 { (exit 1); exit 1; }; }
17083 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17084 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17085 Usually this means the macro was only invoked conditionally." >&5
17086 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17087 Usually this means the macro was only invoked conditionally." >&2;}
17088 { (exit 1); exit 1; }; }
17090 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17091 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17092 Usually this means the macro was only invoked conditionally." >&5
17093 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17094 Usually this means the macro was only invoked conditionally." >&2;}
17095 { (exit 1); exit 1; }; }
17097 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17098 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17099 Usually this means the macro was only invoked conditionally." >&5
17100 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17101 Usually this means the macro was only invoked conditionally." >&2;}
17102 { (exit 1); exit 1; }; }
17104 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17105 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17106 Usually this means the macro was only invoked conditionally." >&5
17107 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17108 Usually this means the macro was only invoked conditionally." >&2;}
17109 { (exit 1); exit 1; }; }
17111 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17112 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17113 Usually this means the macro was only invoked conditionally." >&5
17114 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17115 Usually this means the macro was only invoked conditionally." >&2;}
17116 { (exit 1); exit 1; }; }
17118 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
17119 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
17120 Usually this means the macro was only invoked conditionally." >&5
17121 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
17122 Usually this means the macro was only invoked conditionally." >&2;}
17123 { (exit 1); exit 1; }; }
17125 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17126 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17127 Usually this means the macro was only invoked conditionally." >&5
17128 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17129 Usually this means the macro was only invoked conditionally." >&2;}
17130 { (exit 1); exit 1; }; }
17132 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17133 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17134 Usually this means the macro was only invoked conditionally." >&5
17135 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17136 Usually this means the macro was only invoked conditionally." >&2;}
17137 { (exit 1); exit 1; }; }
17140 : ${CONFIG_STATUS=./config.status}
17141 ac_clean_files_save=$ac_clean_files
17142 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17143 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17144 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17145 cat >$CONFIG_STATUS <<_ACEOF
17146 #! $SHELL
17147 # Generated by $as_me.
17148 # Run this file to recreate the current configuration.
17149 # Compiler output produced by configure, useful for debugging
17150 # configure, is in config.log if it exists.
17152 debug=false
17153 ac_cs_recheck=false
17154 ac_cs_silent=false
17155 SHELL=\${CONFIG_SHELL-$SHELL}
17156 _ACEOF
17158 cat >>$CONFIG_STATUS <<\_ACEOF
17159 ## --------------------- ##
17160 ## M4sh Initialization. ##
17161 ## --------------------- ##
17163 # Be Bourne compatible
17164 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17165 emulate sh
17166 NULLCMD=:
17167 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17168 # is contrary to our usage. Disable this feature.
17169 alias -g '${1+"$@"}'='"$@"'
17170 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17171 set -o posix
17173 DUALCASE=1; export DUALCASE # for MKS sh
17175 # Support unset when possible.
17176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17177 as_unset=unset
17178 else
17179 as_unset=false
17183 # Work around bugs in pre-3.0 UWIN ksh.
17184 $as_unset ENV MAIL MAILPATH
17185 PS1='$ '
17186 PS2='> '
17187 PS4='+ '
17189 # NLS nuisances.
17190 for as_var in \
17191 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17192 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17193 LC_TELEPHONE LC_TIME
17195 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17196 eval $as_var=C; export $as_var
17197 else
17198 $as_unset $as_var
17200 done
17202 # Required to use basename.
17203 if expr a : '\(a\)' >/dev/null 2>&1; then
17204 as_expr=expr
17205 else
17206 as_expr=false
17209 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17210 as_basename=basename
17211 else
17212 as_basename=false
17216 # Name of the executable.
17217 as_me=`$as_basename "$0" ||
17218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17219 X"$0" : 'X\(//\)$' \| \
17220 X"$0" : 'X\(/\)$' \| \
17221 . : '\(.\)' 2>/dev/null ||
17222 echo X/"$0" |
17223 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17224 /^X\/\(\/\/\)$/{ s//\1/; q; }
17225 /^X\/\(\/\).*/{ s//\1/; q; }
17226 s/.*/./; q'`
17229 # PATH needs CR, and LINENO needs CR and PATH.
17230 # Avoid depending upon Character Ranges.
17231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17234 as_cr_digits='0123456789'
17235 as_cr_alnum=$as_cr_Letters$as_cr_digits
17237 # The user is always right.
17238 if test "${PATH_SEPARATOR+set}" != set; then
17239 echo "#! /bin/sh" >conf$$.sh
17240 echo "exit 0" >>conf$$.sh
17241 chmod +x conf$$.sh
17242 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17243 PATH_SEPARATOR=';'
17244 else
17245 PATH_SEPARATOR=:
17247 rm -f conf$$.sh
17251 as_lineno_1=$LINENO
17252 as_lineno_2=$LINENO
17253 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17254 test "x$as_lineno_1" != "x$as_lineno_2" &&
17255 test "x$as_lineno_3" = "x$as_lineno_2" || {
17256 # Find who we are. Look in the path if we contain no path at all
17257 # relative or not.
17258 case $0 in
17259 *[\\/]* ) as_myself=$0 ;;
17260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17263 IFS=$as_save_IFS
17264 test -z "$as_dir" && as_dir=.
17265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17266 done
17269 esac
17270 # We did not find ourselves, most probably we were run as `sh COMMAND'
17271 # in which case we are not to be found in the path.
17272 if test "x$as_myself" = x; then
17273 as_myself=$0
17275 if test ! -f "$as_myself"; then
17276 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17277 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17278 { (exit 1); exit 1; }; }
17280 case $CONFIG_SHELL in
17282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17283 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17285 IFS=$as_save_IFS
17286 test -z "$as_dir" && as_dir=.
17287 for as_base in sh bash ksh sh5; do
17288 case $as_dir in
17290 if ("$as_dir/$as_base" -c '
17291 as_lineno_1=$LINENO
17292 as_lineno_2=$LINENO
17293 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17294 test "x$as_lineno_1" != "x$as_lineno_2" &&
17295 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17296 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17297 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17298 CONFIG_SHELL=$as_dir/$as_base
17299 export CONFIG_SHELL
17300 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17301 fi;;
17302 esac
17303 done
17304 done
17306 esac
17308 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17309 # uniformly replaced by the line number. The first 'sed' inserts a
17310 # line-number line before each line; the second 'sed' does the real
17311 # work. The second script uses 'N' to pair each line-number line
17312 # with the numbered line, and appends trailing '-' during
17313 # substitution so that $LINENO is not a special case at line end.
17314 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17315 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17316 sed '=' <$as_myself |
17317 sed '
17319 s,$,-,
17320 : loop
17321 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17322 t loop
17323 s,-$,,
17324 s,^['$as_cr_digits']*\n,,
17325 ' >$as_me.lineno &&
17326 chmod +x $as_me.lineno ||
17327 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17328 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17329 { (exit 1); exit 1; }; }
17331 # Don't try to exec as it changes $[0], causing all sort of problems
17332 # (the dirname of $[0] is not the place where we might find the
17333 # original and so on. Autoconf is especially sensible to this).
17334 . ./$as_me.lineno
17335 # Exit status is that of the last command.
17336 exit
17340 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17341 *c*,-n*) ECHO_N= ECHO_C='
17342 ' ECHO_T=' ' ;;
17343 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17344 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17345 esac
17347 if expr a : '\(a\)' >/dev/null 2>&1; then
17348 as_expr=expr
17349 else
17350 as_expr=false
17353 rm -f conf$$ conf$$.exe conf$$.file
17354 echo >conf$$.file
17355 if ln -s conf$$.file conf$$ 2>/dev/null; then
17356 # We could just check for DJGPP; but this test a) works b) is more generic
17357 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17358 if test -f conf$$.exe; then
17359 # Don't use ln at all; we don't have any links
17360 as_ln_s='cp -p'
17361 else
17362 as_ln_s='ln -s'
17364 elif ln conf$$.file conf$$ 2>/dev/null; then
17365 as_ln_s=ln
17366 else
17367 as_ln_s='cp -p'
17369 rm -f conf$$ conf$$.exe conf$$.file
17371 if mkdir -p . 2>/dev/null; then
17372 as_mkdir_p=:
17373 else
17374 test -d ./-p && rmdir ./-p
17375 as_mkdir_p=false
17378 as_executable_p="test -f"
17380 # Sed expression to map a string onto a valid CPP name.
17381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17383 # Sed expression to map a string onto a valid variable name.
17384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17387 # IFS
17388 # We need space, tab and new line, in precisely that order.
17389 as_nl='
17391 IFS=" $as_nl"
17393 # CDPATH.
17394 $as_unset CDPATH
17396 exec 6>&1
17398 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17399 # report actual input values of CONFIG_FILES etc. instead of their
17400 # values after options handling. Logging --version etc. is OK.
17401 exec 5>>config.log
17403 echo
17404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17405 ## Running $as_me. ##
17406 _ASBOX
17407 } >&5
17408 cat >&5 <<_CSEOF
17410 This file was extended by libjava $as_me version-unused, which was
17411 generated by GNU Autoconf 2.59. Invocation command line was
17413 CONFIG_FILES = $CONFIG_FILES
17414 CONFIG_HEADERS = $CONFIG_HEADERS
17415 CONFIG_LINKS = $CONFIG_LINKS
17416 CONFIG_COMMANDS = $CONFIG_COMMANDS
17417 $ $0 $@
17419 _CSEOF
17420 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17421 echo >&5
17422 _ACEOF
17424 # Files that config.status was made for.
17425 if test -n "$ac_config_files"; then
17426 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17429 if test -n "$ac_config_headers"; then
17430 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17433 if test -n "$ac_config_links"; then
17434 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17437 if test -n "$ac_config_commands"; then
17438 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17441 cat >>$CONFIG_STATUS <<\_ACEOF
17443 ac_cs_usage="\
17444 \`$as_me' instantiates files from templates according to the
17445 current configuration.
17447 Usage: $0 [OPTIONS] [FILE]...
17449 -h, --help print this help, then exit
17450 -V, --version print version number, then exit
17451 -q, --quiet do not print progress messages
17452 -d, --debug don't remove temporary files
17453 --recheck update $as_me by reconfiguring in the same conditions
17454 --file=FILE[:TEMPLATE]
17455 instantiate the configuration file FILE
17456 --header=FILE[:TEMPLATE]
17457 instantiate the configuration header FILE
17459 Configuration files:
17460 $config_files
17462 Configuration headers:
17463 $config_headers
17465 Configuration links:
17466 $config_links
17468 Configuration commands:
17469 $config_commands
17471 Report bugs to <bug-autoconf@gnu.org>."
17472 _ACEOF
17474 cat >>$CONFIG_STATUS <<_ACEOF
17475 ac_cs_version="\\
17476 libjava config.status version-unused
17477 configured by $0, generated by GNU Autoconf 2.59,
17478 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17480 Copyright (C) 2003 Free Software Foundation, Inc.
17481 This config.status script is free software; the Free Software Foundation
17482 gives unlimited permission to copy, distribute and modify it."
17483 srcdir=$srcdir
17484 INSTALL="$INSTALL"
17485 _ACEOF
17487 cat >>$CONFIG_STATUS <<\_ACEOF
17488 # If no file are specified by the user, then we need to provide default
17489 # value. By we need to know if files were specified by the user.
17490 ac_need_defaults=:
17491 while test $# != 0
17493 case $1 in
17494 --*=*)
17495 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17496 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17497 ac_shift=:
17500 ac_option=$1
17501 ac_optarg=$2
17502 ac_shift=shift
17504 *) # This is not an option, so the user has probably given explicit
17505 # arguments.
17506 ac_option=$1
17507 ac_need_defaults=false;;
17508 esac
17510 case $ac_option in
17511 # Handling of the options.
17512 _ACEOF
17513 cat >>$CONFIG_STATUS <<\_ACEOF
17514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17515 ac_cs_recheck=: ;;
17516 --version | --vers* | -V )
17517 echo "$ac_cs_version"; exit 0 ;;
17518 --he | --h)
17519 # Conflict between --help and --header
17520 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17521 Try \`$0 --help' for more information." >&5
17522 echo "$as_me: error: ambiguous option: $1
17523 Try \`$0 --help' for more information." >&2;}
17524 { (exit 1); exit 1; }; };;
17525 --help | --hel | -h )
17526 echo "$ac_cs_usage"; exit 0 ;;
17527 --debug | --d* | -d )
17528 debug=: ;;
17529 --file | --fil | --fi | --f )
17530 $ac_shift
17531 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17532 ac_need_defaults=false;;
17533 --header | --heade | --head | --hea )
17534 $ac_shift
17535 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17536 ac_need_defaults=false;;
17537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17539 ac_cs_silent=: ;;
17541 # This is an error.
17542 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17543 Try \`$0 --help' for more information." >&5
17544 echo "$as_me: error: unrecognized option: $1
17545 Try \`$0 --help' for more information." >&2;}
17546 { (exit 1); exit 1; }; } ;;
17548 *) ac_config_targets="$ac_config_targets $1" ;;
17550 esac
17551 shift
17552 done
17554 ac_configure_extra_args=
17556 if $ac_cs_silent; then
17557 exec 6>/dev/null
17558 ac_configure_extra_args="$ac_configure_extra_args --silent"
17561 _ACEOF
17562 cat >>$CONFIG_STATUS <<_ACEOF
17563 if \$ac_cs_recheck; then
17564 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17565 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17568 _ACEOF
17570 cat >>$CONFIG_STATUS <<_ACEOF
17572 # INIT-COMMANDS section.
17575 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17576 srcdir=${srcdir}
17577 host=${host}
17578 target=${target}
17579 with_multisubdir=${with_multisubdir}
17580 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17581 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17582 libgcj_basedir=${libgcj_basedir}
17583 CC="${CC}"
17584 CXX="${CXX}"
17585 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17588 _ACEOF
17592 cat >>$CONFIG_STATUS <<\_ACEOF
17593 for ac_config_target in $ac_config_targets
17595 case "$ac_config_target" in
17596 # Handling of arguments.
17597 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17598 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17599 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17600 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17601 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17602 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17603 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17604 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17605 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17606 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17607 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17608 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17609 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17610 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17611 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17612 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17613 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17614 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17615 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17616 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17617 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17618 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17619 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17620 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17621 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17622 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17623 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17624 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17625 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17626 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17627 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17628 { (exit 1); exit 1; }; };;
17629 esac
17630 done
17632 # If the user did not use the arguments to specify the items to instantiate,
17633 # then the envvar interface is used. Set only those that are not.
17634 # We use the long form for the default assignment because of an extremely
17635 # bizarre bug on SunOS 4.1.3.
17636 if $ac_need_defaults; then
17637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17639 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17640 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17643 # Have a temporary directory for convenience. Make it in the build tree
17644 # simply because there is no reason to put it here, and in addition,
17645 # creating and moving files from /tmp can sometimes cause problems.
17646 # Create a temporary directory, and hook for its removal unless debugging.
17647 $debug ||
17649 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17650 trap '{ (exit 1); exit 1; }' 1 2 13 15
17653 # Create a (secure) tmp directory for tmp files.
17656 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17657 test -n "$tmp" && test -d "$tmp"
17658 } ||
17660 tmp=./confstat$$-$RANDOM
17661 (umask 077 && mkdir $tmp)
17662 } ||
17664 echo "$me: cannot create a temporary directory in ." >&2
17665 { (exit 1); exit 1; }
17668 _ACEOF
17670 cat >>$CONFIG_STATUS <<_ACEOF
17673 # CONFIG_FILES section.
17676 # No need to generate the scripts if there are no CONFIG_FILES.
17677 # This happens for instance when ./config.status config.h
17678 if test -n "\$CONFIG_FILES"; then
17679 # Protect against being on the right side of a sed subst in config.status.
17680 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17681 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17682 s,@SHELL@,$SHELL,;t t
17683 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17684 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17685 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17686 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17687 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17688 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17689 s,@exec_prefix@,$exec_prefix,;t t
17690 s,@prefix@,$prefix,;t t
17691 s,@program_transform_name@,$program_transform_name,;t t
17692 s,@bindir@,$bindir,;t t
17693 s,@sbindir@,$sbindir,;t t
17694 s,@libexecdir@,$libexecdir,;t t
17695 s,@datadir@,$datadir,;t t
17696 s,@sysconfdir@,$sysconfdir,;t t
17697 s,@sharedstatedir@,$sharedstatedir,;t t
17698 s,@localstatedir@,$localstatedir,;t t
17699 s,@libdir@,$libdir,;t t
17700 s,@includedir@,$includedir,;t t
17701 s,@oldincludedir@,$oldincludedir,;t t
17702 s,@infodir@,$infodir,;t t
17703 s,@mandir@,$mandir,;t t
17704 s,@build_alias@,$build_alias,;t t
17705 s,@host_alias@,$host_alias,;t t
17706 s,@target_alias@,$target_alias,;t t
17707 s,@DEFS@,$DEFS,;t t
17708 s,@ECHO_C@,$ECHO_C,;t t
17709 s,@ECHO_N@,$ECHO_N,;t t
17710 s,@ECHO_T@,$ECHO_T,;t t
17711 s,@LIBS@,$LIBS,;t t
17712 s,@build@,$build,;t t
17713 s,@build_cpu@,$build_cpu,;t t
17714 s,@build_vendor@,$build_vendor,;t t
17715 s,@build_os@,$build_os,;t t
17716 s,@build_subdir@,$build_subdir,;t t
17717 s,@host_subdir@,$host_subdir,;t t
17718 s,@target_subdir@,$target_subdir,;t t
17719 s,@libgcj_basedir@,$libgcj_basedir,;t t
17720 s,@host@,$host,;t t
17721 s,@host_cpu@,$host_cpu,;t t
17722 s,@host_vendor@,$host_vendor,;t t
17723 s,@host_os@,$host_os,;t t
17724 s,@target@,$target,;t t
17725 s,@target_cpu@,$target_cpu,;t t
17726 s,@target_vendor@,$target_vendor,;t t
17727 s,@target_os@,$target_os,;t t
17728 s,@target_noncanonical@,$target_noncanonical,;t t
17729 s,@LN_S@,$LN_S,;t t
17730 s,@mkinstalldirs@,$mkinstalldirs,;t t
17731 s,@CC@,$CC,;t t
17732 s,@ac_ct_CC@,$ac_ct_CC,;t t
17733 s,@EXEEXT@,$EXEEXT,;t t
17734 s,@OBJEXT@,$OBJEXT,;t t
17735 s,@CXX@,$CXX,;t t
17736 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17737 s,@CFLAGS@,$CFLAGS,;t t
17738 s,@CXXFLAGS@,$CXXFLAGS,;t t
17739 s,@LDFLAGS@,$LDFLAGS,;t t
17740 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17741 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17742 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17743 s,@CYGPATH_W@,$CYGPATH_W,;t t
17744 s,@PACKAGE@,$PACKAGE,;t t
17745 s,@VERSION@,$VERSION,;t t
17746 s,@ACLOCAL@,$ACLOCAL,;t t
17747 s,@AUTOCONF@,$AUTOCONF,;t t
17748 s,@AUTOMAKE@,$AUTOMAKE,;t t
17749 s,@AUTOHEADER@,$AUTOHEADER,;t t
17750 s,@MAKEINFO@,$MAKEINFO,;t t
17751 s,@install_sh@,$install_sh,;t t
17752 s,@STRIP@,$STRIP,;t t
17753 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17754 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17755 s,@mkdir_p@,$mkdir_p,;t t
17756 s,@AWK@,$AWK,;t t
17757 s,@SET_MAKE@,$SET_MAKE,;t t
17758 s,@am__leading_dot@,$am__leading_dot,;t t
17759 s,@AMTAR@,$AMTAR,;t t
17760 s,@am__tar@,$am__tar,;t t
17761 s,@am__untar@,$am__untar,;t t
17762 s,@DEPDIR@,$DEPDIR,;t t
17763 s,@am__include@,$am__include,;t t
17764 s,@am__quote@,$am__quote,;t t
17765 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17766 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17767 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17768 s,@CCDEPMODE@,$CCDEPMODE,;t t
17769 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17770 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17771 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17772 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17773 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17774 s,@AS@,$AS,;t t
17775 s,@ac_ct_AS@,$ac_ct_AS,;t t
17776 s,@AR@,$AR,;t t
17777 s,@ac_ct_AR@,$ac_ct_AR,;t t
17778 s,@RANLIB@,$RANLIB,;t t
17779 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17780 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17781 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17782 s,@MAINT@,$MAINT,;t t
17783 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17784 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17785 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17786 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17787 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17788 s,@TOOLKIT@,$TOOLKIT,;t t
17789 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17790 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17791 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17792 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17793 s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17794 s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17795 s,@GCJH@,$GCJH,;t t
17796 s,@ZIP@,$ZIP,;t t
17797 s,@INCLTDL@,$INCLTDL,;t t
17798 s,@LIBLTDL@,$LIBLTDL,;t t
17799 s,@DIRLTDL@,$DIRLTDL,;t t
17800 s,@LIBTOOL@,$LIBTOOL,;t t
17801 s,@CXXCPP@,$CXXCPP,;t t
17802 s,@CPPFLAGS@,$CPPFLAGS,;t t
17803 s,@GCJ@,$GCJ,;t t
17804 s,@GCJFLAGS@,$GCJFLAGS,;t t
17805 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17806 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17807 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17808 s,@subdirs@,$subdirs,;t t
17809 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17810 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17811 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17812 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17813 s,@JAVA_HOME@,$JAVA_HOME,;t t
17814 s,@INTERPRETER@,$INTERPRETER,;t t
17815 s,@LIBFFI@,$LIBFFI,;t t
17816 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17817 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17818 s,@CPP@,$CPP,;t t
17819 s,@EGREP@,$EGREP,;t t
17820 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17821 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17822 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17823 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17824 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17825 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17826 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17827 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17828 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17829 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17830 s,@X_CFLAGS@,$X_CFLAGS,;t t
17831 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17832 s,@X_LIBS@,$X_LIBS,;t t
17833 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17834 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17835 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17836 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17837 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17838 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17839 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17840 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17841 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17842 s,@GCLIBS@,$GCLIBS,;t t
17843 s,@GCINCS@,$GCINCS,;t t
17844 s,@GCDEPS@,$GCDEPS,;t t
17845 s,@GCSPEC@,$GCSPEC,;t t
17846 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17847 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17848 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17849 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17850 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17851 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17852 s,@THREADLIBS@,$THREADLIBS,;t t
17853 s,@THREADINCS@,$THREADINCS,;t t
17854 s,@THREADDEPS@,$THREADDEPS,;t t
17855 s,@THREADSPEC@,$THREADSPEC,;t t
17856 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17857 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17858 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17859 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17860 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17861 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17862 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17863 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17864 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17865 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17866 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17867 s,@LIBICONV@,$LIBICONV,;t t
17868 s,@LTLIBICONV@,$LTLIBICONV,;t t
17869 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17870 s,@GTK_LIBS@,$GTK_LIBS,;t t
17871 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17872 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17873 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17874 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17875 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17876 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17877 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17878 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17879 s,@ZLIBS@,$ZLIBS,;t t
17880 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17881 s,@ZINCS@,$ZINCS,;t t
17882 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17883 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17884 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17885 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17886 s,@IEEESPEC@,$IEEESPEC,;t t
17887 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17888 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17889 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17890 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17891 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17892 s,@toolexecdir@,$toolexecdir,;t t
17893 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17894 s,@toolexeclibdir@,$toolexeclibdir,;t t
17895 s,@GCJVERSION@,$GCJVERSION,;t t
17896 s,@gxx_include_dir@,$gxx_include_dir,;t t
17897 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17898 s,@ALLOCA@,$ALLOCA,;t t
17899 s,@PERL@,$PERL,;t t
17900 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17901 s,@here@,$here,;t t
17902 s,@LIBOBJS@,$LIBOBJS,;t t
17903 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17904 CEOF
17906 _ACEOF
17908 cat >>$CONFIG_STATUS <<\_ACEOF
17909 # Split the substitutions into bite-sized pieces for seds with
17910 # small command number limits, like on Digital OSF/1 and HP-UX.
17911 ac_max_sed_lines=48
17912 ac_sed_frag=1 # Number of current file.
17913 ac_beg=1 # First line for current file.
17914 ac_end=$ac_max_sed_lines # Line after last line for current file.
17915 ac_more_lines=:
17916 ac_sed_cmds=
17917 while $ac_more_lines; do
17918 if test $ac_beg -gt 1; then
17919 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17920 else
17921 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17923 if test ! -s $tmp/subs.frag; then
17924 ac_more_lines=false
17925 else
17926 # The purpose of the label and of the branching condition is to
17927 # speed up the sed processing (if there are no `@' at all, there
17928 # is no need to browse any of the substitutions).
17929 # These are the two extra sed commands mentioned above.
17930 (echo ':t
17931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17932 if test -z "$ac_sed_cmds"; then
17933 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17934 else
17935 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17937 ac_sed_frag=`expr $ac_sed_frag + 1`
17938 ac_beg=$ac_end
17939 ac_end=`expr $ac_end + $ac_max_sed_lines`
17941 done
17942 if test -z "$ac_sed_cmds"; then
17943 ac_sed_cmds=cat
17945 fi # test -n "$CONFIG_FILES"
17947 _ACEOF
17948 cat >>$CONFIG_STATUS <<\_ACEOF
17949 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17951 case $ac_file in
17952 - | *:- | *:-:* ) # input from stdin
17953 cat >$tmp/stdin
17954 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17956 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17958 * ) ac_file_in=$ac_file.in ;;
17959 esac
17961 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17962 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17964 X"$ac_file" : 'X\(//\)[^/]' \| \
17965 X"$ac_file" : 'X\(//\)$' \| \
17966 X"$ac_file" : 'X\(/\)' \| \
17967 . : '\(.\)' 2>/dev/null ||
17968 echo X"$ac_file" |
17969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17971 /^X\(\/\/\)$/{ s//\1/; q; }
17972 /^X\(\/\).*/{ s//\1/; q; }
17973 s/.*/./; q'`
17974 { if $as_mkdir_p; then
17975 mkdir -p "$ac_dir"
17976 else
17977 as_dir="$ac_dir"
17978 as_dirs=
17979 while test ! -d "$as_dir"; do
17980 as_dirs="$as_dir $as_dirs"
17981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17983 X"$as_dir" : 'X\(//\)[^/]' \| \
17984 X"$as_dir" : 'X\(//\)$' \| \
17985 X"$as_dir" : 'X\(/\)' \| \
17986 . : '\(.\)' 2>/dev/null ||
17987 echo X"$as_dir" |
17988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17990 /^X\(\/\/\)$/{ s//\1/; q; }
17991 /^X\(\/\).*/{ s//\1/; q; }
17992 s/.*/./; q'`
17993 done
17994 test ! -n "$as_dirs" || mkdir $as_dirs
17995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17997 { (exit 1); exit 1; }; }; }
17999 ac_builddir=.
18001 if test "$ac_dir" != .; then
18002 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18003 # A "../" for each directory in $ac_dir_suffix.
18004 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18005 else
18006 ac_dir_suffix= ac_top_builddir=
18009 case $srcdir in
18010 .) # No --srcdir option. We are building in place.
18011 ac_srcdir=.
18012 if test -z "$ac_top_builddir"; then
18013 ac_top_srcdir=.
18014 else
18015 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18016 fi ;;
18017 [\\/]* | ?:[\\/]* ) # Absolute path.
18018 ac_srcdir=$srcdir$ac_dir_suffix;
18019 ac_top_srcdir=$srcdir ;;
18020 *) # Relative path.
18021 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18022 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18023 esac
18025 # Do not use `cd foo && pwd` to compute absolute paths, because
18026 # the directories may not exist.
18027 case `pwd` in
18028 .) ac_abs_builddir="$ac_dir";;
18030 case "$ac_dir" in
18031 .) ac_abs_builddir=`pwd`;;
18032 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18033 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18034 esac;;
18035 esac
18036 case $ac_abs_builddir in
18037 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18039 case ${ac_top_builddir}. in
18040 .) ac_abs_top_builddir=$ac_abs_builddir;;
18041 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18042 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18043 esac;;
18044 esac
18045 case $ac_abs_builddir in
18046 .) ac_abs_srcdir=$ac_srcdir;;
18048 case $ac_srcdir in
18049 .) ac_abs_srcdir=$ac_abs_builddir;;
18050 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18051 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18052 esac;;
18053 esac
18054 case $ac_abs_builddir in
18055 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18057 case $ac_top_srcdir in
18058 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18059 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18060 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18061 esac;;
18062 esac
18065 case $INSTALL in
18066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18067 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18068 esac
18070 if test x"$ac_file" != x-; then
18071 { echo "$as_me:$LINENO: creating $ac_file" >&5
18072 echo "$as_me: creating $ac_file" >&6;}
18073 rm -f "$ac_file"
18075 # Let's still pretend it is `configure' which instantiates (i.e., don't
18076 # use $as_me), people would be surprised to read:
18077 # /* config.h. Generated by config.status. */
18078 if test x"$ac_file" = x-; then
18079 configure_input=
18080 else
18081 configure_input="$ac_file. "
18083 configure_input=$configure_input"Generated from `echo $ac_file_in |
18084 sed 's,.*/,,'` by configure."
18086 # First look for the input files in the build tree, otherwise in the
18087 # src tree.
18088 ac_file_inputs=`IFS=:
18089 for f in $ac_file_in; do
18090 case $f in
18091 -) echo $tmp/stdin ;;
18092 [\\/$]*)
18093 # Absolute (can't be DOS-style, as IFS=:)
18094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18095 echo "$as_me: error: cannot find input file: $f" >&2;}
18096 { (exit 1); exit 1; }; }
18097 echo "$f";;
18098 *) # Relative
18099 if test -f "$f"; then
18100 # Build tree
18101 echo "$f"
18102 elif test -f "$srcdir/$f"; then
18103 # Source tree
18104 echo "$srcdir/$f"
18105 else
18106 # /dev/null tree
18107 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18108 echo "$as_me: error: cannot find input file: $f" >&2;}
18109 { (exit 1); exit 1; }; }
18110 fi;;
18111 esac
18112 done` || { (exit 1); exit 1; }
18113 _ACEOF
18114 cat >>$CONFIG_STATUS <<_ACEOF
18115 sed "$ac_vpsub
18116 $extrasub
18117 _ACEOF
18118 cat >>$CONFIG_STATUS <<\_ACEOF
18120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18121 s,@configure_input@,$configure_input,;t t
18122 s,@srcdir@,$ac_srcdir,;t t
18123 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18124 s,@top_srcdir@,$ac_top_srcdir,;t t
18125 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18126 s,@builddir@,$ac_builddir,;t t
18127 s,@abs_builddir@,$ac_abs_builddir,;t t
18128 s,@top_builddir@,$ac_top_builddir,;t t
18129 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18130 s,@INSTALL@,$ac_INSTALL,;t t
18131 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18132 rm -f $tmp/stdin
18133 if test x"$ac_file" != x-; then
18134 mv $tmp/out $ac_file
18135 else
18136 cat $tmp/out
18137 rm -f $tmp/out
18140 done
18141 _ACEOF
18142 cat >>$CONFIG_STATUS <<\_ACEOF
18145 # CONFIG_HEADER section.
18148 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18149 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18151 # ac_d sets the value in "#define NAME VALUE" lines.
18152 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18153 ac_dB='[ ].*$,\1#\2'
18154 ac_dC=' '
18155 ac_dD=',;t'
18156 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18157 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18158 ac_uB='$,\1#\2define\3'
18159 ac_uC=' '
18160 ac_uD=',;t'
18162 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18164 case $ac_file in
18165 - | *:- | *:-:* ) # input from stdin
18166 cat >$tmp/stdin
18167 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18169 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18171 * ) ac_file_in=$ac_file.in ;;
18172 esac
18174 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18175 echo "$as_me: creating $ac_file" >&6;}
18177 # First look for the input files in the build tree, otherwise in the
18178 # src tree.
18179 ac_file_inputs=`IFS=:
18180 for f in $ac_file_in; do
18181 case $f in
18182 -) echo $tmp/stdin ;;
18183 [\\/$]*)
18184 # Absolute (can't be DOS-style, as IFS=:)
18185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18186 echo "$as_me: error: cannot find input file: $f" >&2;}
18187 { (exit 1); exit 1; }; }
18188 # Do quote $f, to prevent DOS paths from being IFS'd.
18189 echo "$f";;
18190 *) # Relative
18191 if test -f "$f"; then
18192 # Build tree
18193 echo "$f"
18194 elif test -f "$srcdir/$f"; then
18195 # Source tree
18196 echo "$srcdir/$f"
18197 else
18198 # /dev/null tree
18199 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18200 echo "$as_me: error: cannot find input file: $f" >&2;}
18201 { (exit 1); exit 1; }; }
18202 fi;;
18203 esac
18204 done` || { (exit 1); exit 1; }
18205 # Remove the trailing spaces.
18206 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18208 _ACEOF
18210 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18211 # `conftest.undefs', that substitutes the proper values into
18212 # config.h.in to produce config.h. The first handles `#define'
18213 # templates, and the second `#undef' templates.
18214 # And first: Protect against being on the right side of a sed subst in
18215 # config.status. Protect against being in an unquoted here document
18216 # in config.status.
18217 rm -f conftest.defines conftest.undefs
18218 # Using a here document instead of a string reduces the quoting nightmare.
18219 # Putting comments in sed scripts is not portable.
18221 # `end' is used to avoid that the second main sed command (meant for
18222 # 0-ary CPP macros) applies to n-ary macro definitions.
18223 # See the Autoconf documentation for `clear'.
18224 cat >confdef2sed.sed <<\_ACEOF
18225 s/[\\&,]/\\&/g
18226 s,[\\$`],\\&,g
18227 t clear
18228 : clear
18229 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18230 t end
18231 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18232 : end
18233 _ACEOF
18234 # If some macros were called several times there might be several times
18235 # the same #defines, which is useless. Nevertheless, we may not want to
18236 # sort them, since we want the *last* AC-DEFINE to be honored.
18237 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18238 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18239 rm -f confdef2sed.sed
18241 # This sed command replaces #undef with comments. This is necessary, for
18242 # example, in the case of _POSIX_SOURCE, which is predefined and required
18243 # on some systems where configure will not decide to define it.
18244 cat >>conftest.undefs <<\_ACEOF
18245 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18246 _ACEOF
18248 # Break up conftest.defines because some shells have a limit on the size
18249 # of here documents, and old seds have small limits too (100 cmds).
18250 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18251 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18252 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18253 echo ' :' >>$CONFIG_STATUS
18254 rm -f conftest.tail
18255 while grep . conftest.defines >/dev/null
18257 # Write a limited-size here document to $tmp/defines.sed.
18258 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18259 # Speed up: don't consider the non `#define' lines.
18260 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18261 # Work around the forget-to-reset-the-flag bug.
18262 echo 't clr' >>$CONFIG_STATUS
18263 echo ': clr' >>$CONFIG_STATUS
18264 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18265 echo 'CEOF
18266 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18267 rm -f $tmp/in
18268 mv $tmp/out $tmp/in
18269 ' >>$CONFIG_STATUS
18270 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18271 rm -f conftest.defines
18272 mv conftest.tail conftest.defines
18273 done
18274 rm -f conftest.defines
18275 echo ' fi # grep' >>$CONFIG_STATUS
18276 echo >>$CONFIG_STATUS
18278 # Break up conftest.undefs because some shells have a limit on the size
18279 # of here documents, and old seds have small limits too (100 cmds).
18280 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18281 rm -f conftest.tail
18282 while grep . conftest.undefs >/dev/null
18284 # Write a limited-size here document to $tmp/undefs.sed.
18285 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18286 # Speed up: don't consider the non `#undef'
18287 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18288 # Work around the forget-to-reset-the-flag bug.
18289 echo 't clr' >>$CONFIG_STATUS
18290 echo ': clr' >>$CONFIG_STATUS
18291 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18292 echo 'CEOF
18293 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18294 rm -f $tmp/in
18295 mv $tmp/out $tmp/in
18296 ' >>$CONFIG_STATUS
18297 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18298 rm -f conftest.undefs
18299 mv conftest.tail conftest.undefs
18300 done
18301 rm -f conftest.undefs
18303 cat >>$CONFIG_STATUS <<\_ACEOF
18304 # Let's still pretend it is `configure' which instantiates (i.e., don't
18305 # use $as_me), people would be surprised to read:
18306 # /* config.h. Generated by config.status. */
18307 if test x"$ac_file" = x-; then
18308 echo "/* Generated by configure. */" >$tmp/config.h
18309 else
18310 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18312 cat $tmp/in >>$tmp/config.h
18313 rm -f $tmp/in
18314 if test x"$ac_file" != x-; then
18315 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18316 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18317 echo "$as_me: $ac_file is unchanged" >&6;}
18318 else
18319 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18321 X"$ac_file" : 'X\(//\)[^/]' \| \
18322 X"$ac_file" : 'X\(//\)$' \| \
18323 X"$ac_file" : 'X\(/\)' \| \
18324 . : '\(.\)' 2>/dev/null ||
18325 echo X"$ac_file" |
18326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18328 /^X\(\/\/\)$/{ s//\1/; q; }
18329 /^X\(\/\).*/{ s//\1/; q; }
18330 s/.*/./; q'`
18331 { if $as_mkdir_p; then
18332 mkdir -p "$ac_dir"
18333 else
18334 as_dir="$ac_dir"
18335 as_dirs=
18336 while test ! -d "$as_dir"; do
18337 as_dirs="$as_dir $as_dirs"
18338 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18340 X"$as_dir" : 'X\(//\)[^/]' \| \
18341 X"$as_dir" : 'X\(//\)$' \| \
18342 X"$as_dir" : 'X\(/\)' \| \
18343 . : '\(.\)' 2>/dev/null ||
18344 echo X"$as_dir" |
18345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18347 /^X\(\/\/\)$/{ s//\1/; q; }
18348 /^X\(\/\).*/{ s//\1/; q; }
18349 s/.*/./; q'`
18350 done
18351 test ! -n "$as_dirs" || mkdir $as_dirs
18352 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18354 { (exit 1); exit 1; }; }; }
18356 rm -f $ac_file
18357 mv $tmp/config.h $ac_file
18359 else
18360 cat $tmp/config.h
18361 rm -f $tmp/config.h
18363 # Compute $ac_file's index in $config_headers.
18364 _am_stamp_count=1
18365 for _am_header in $config_headers :; do
18366 case $_am_header in
18367 $ac_file | $ac_file:* )
18368 break ;;
18370 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18371 esac
18372 done
18373 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18374 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18375 X$ac_file : 'X\(//\)[^/]' \| \
18376 X$ac_file : 'X\(//\)$' \| \
18377 X$ac_file : 'X\(/\)' \| \
18378 . : '\(.\)' 2>/dev/null ||
18379 echo X$ac_file |
18380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18382 /^X\(\/\/\)$/{ s//\1/; q; }
18383 /^X\(\/\).*/{ s//\1/; q; }
18384 s/.*/./; q'`/stamp-h$_am_stamp_count
18385 done
18386 _ACEOF
18387 cat >>$CONFIG_STATUS <<\_ACEOF
18390 # CONFIG_LINKS section.
18393 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18394 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18395 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18397 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18398 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18400 if test ! -r $srcdir/$ac_source; then
18401 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18402 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18403 { (exit 1); exit 1; }; }
18405 rm -f $ac_dest
18407 # Make relative symlinks.
18408 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18409 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18410 X"$ac_dest" : 'X\(//\)[^/]' \| \
18411 X"$ac_dest" : 'X\(//\)$' \| \
18412 X"$ac_dest" : 'X\(/\)' \| \
18413 . : '\(.\)' 2>/dev/null ||
18414 echo X"$ac_dest" |
18415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18417 /^X\(\/\/\)$/{ s//\1/; q; }
18418 /^X\(\/\).*/{ s//\1/; q; }
18419 s/.*/./; q'`
18420 { if $as_mkdir_p; then
18421 mkdir -p "$ac_dest_dir"
18422 else
18423 as_dir="$ac_dest_dir"
18424 as_dirs=
18425 while test ! -d "$as_dir"; do
18426 as_dirs="$as_dir $as_dirs"
18427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18429 X"$as_dir" : 'X\(//\)[^/]' \| \
18430 X"$as_dir" : 'X\(//\)$' \| \
18431 X"$as_dir" : 'X\(/\)' \| \
18432 . : '\(.\)' 2>/dev/null ||
18433 echo X"$as_dir" |
18434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18436 /^X\(\/\/\)$/{ s//\1/; q; }
18437 /^X\(\/\).*/{ s//\1/; q; }
18438 s/.*/./; q'`
18439 done
18440 test ! -n "$as_dirs" || mkdir $as_dirs
18441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18442 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18443 { (exit 1); exit 1; }; }; }
18445 ac_builddir=.
18447 if test "$ac_dest_dir" != .; then
18448 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18449 # A "../" for each directory in $ac_dir_suffix.
18450 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18451 else
18452 ac_dir_suffix= ac_top_builddir=
18455 case $srcdir in
18456 .) # No --srcdir option. We are building in place.
18457 ac_srcdir=.
18458 if test -z "$ac_top_builddir"; then
18459 ac_top_srcdir=.
18460 else
18461 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18462 fi ;;
18463 [\\/]* | ?:[\\/]* ) # Absolute path.
18464 ac_srcdir=$srcdir$ac_dir_suffix;
18465 ac_top_srcdir=$srcdir ;;
18466 *) # Relative path.
18467 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18468 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18469 esac
18471 # Do not use `cd foo && pwd` to compute absolute paths, because
18472 # the directories may not exist.
18473 case `pwd` in
18474 .) ac_abs_builddir="$ac_dest_dir";;
18476 case "$ac_dest_dir" in
18477 .) ac_abs_builddir=`pwd`;;
18478 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18479 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18480 esac;;
18481 esac
18482 case $ac_abs_builddir in
18483 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18485 case ${ac_top_builddir}. in
18486 .) ac_abs_top_builddir=$ac_abs_builddir;;
18487 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18488 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18489 esac;;
18490 esac
18491 case $ac_abs_builddir in
18492 .) ac_abs_srcdir=$ac_srcdir;;
18494 case $ac_srcdir in
18495 .) ac_abs_srcdir=$ac_abs_builddir;;
18496 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18497 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18498 esac;;
18499 esac
18500 case $ac_abs_builddir in
18501 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18503 case $ac_top_srcdir in
18504 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18505 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18506 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18507 esac;;
18508 esac
18511 case $srcdir in
18512 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18513 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18514 esac
18516 # Try a symlink, then a hard link, then a copy.
18517 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18518 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18519 cp -p $srcdir/$ac_source $ac_dest ||
18520 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18521 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18522 { (exit 1); exit 1; }; }
18523 done
18524 _ACEOF
18525 cat >>$CONFIG_STATUS <<\_ACEOF
18528 # CONFIG_COMMANDS section.
18530 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18531 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18532 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18533 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18534 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18535 X"$ac_dest" : 'X\(//\)[^/]' \| \
18536 X"$ac_dest" : 'X\(//\)$' \| \
18537 X"$ac_dest" : 'X\(/\)' \| \
18538 . : '\(.\)' 2>/dev/null ||
18539 echo X"$ac_dest" |
18540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18542 /^X\(\/\/\)$/{ s//\1/; q; }
18543 /^X\(\/\).*/{ s//\1/; q; }
18544 s/.*/./; q'`
18545 { if $as_mkdir_p; then
18546 mkdir -p "$ac_dir"
18547 else
18548 as_dir="$ac_dir"
18549 as_dirs=
18550 while test ! -d "$as_dir"; do
18551 as_dirs="$as_dir $as_dirs"
18552 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18554 X"$as_dir" : 'X\(//\)[^/]' \| \
18555 X"$as_dir" : 'X\(//\)$' \| \
18556 X"$as_dir" : 'X\(/\)' \| \
18557 . : '\(.\)' 2>/dev/null ||
18558 echo X"$as_dir" |
18559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18561 /^X\(\/\/\)$/{ s//\1/; q; }
18562 /^X\(\/\).*/{ s//\1/; q; }
18563 s/.*/./; q'`
18564 done
18565 test ! -n "$as_dirs" || mkdir $as_dirs
18566 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18567 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18568 { (exit 1); exit 1; }; }; }
18570 ac_builddir=.
18572 if test "$ac_dir" != .; then
18573 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18574 # A "../" for each directory in $ac_dir_suffix.
18575 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18576 else
18577 ac_dir_suffix= ac_top_builddir=
18580 case $srcdir in
18581 .) # No --srcdir option. We are building in place.
18582 ac_srcdir=.
18583 if test -z "$ac_top_builddir"; then
18584 ac_top_srcdir=.
18585 else
18586 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18587 fi ;;
18588 [\\/]* | ?:[\\/]* ) # Absolute path.
18589 ac_srcdir=$srcdir$ac_dir_suffix;
18590 ac_top_srcdir=$srcdir ;;
18591 *) # Relative path.
18592 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18593 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18594 esac
18596 # Do not use `cd foo && pwd` to compute absolute paths, because
18597 # the directories may not exist.
18598 case `pwd` in
18599 .) ac_abs_builddir="$ac_dir";;
18601 case "$ac_dir" in
18602 .) ac_abs_builddir=`pwd`;;
18603 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18604 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18605 esac;;
18606 esac
18607 case $ac_abs_builddir in
18608 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18610 case ${ac_top_builddir}. in
18611 .) ac_abs_top_builddir=$ac_abs_builddir;;
18612 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18613 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18614 esac;;
18615 esac
18616 case $ac_abs_builddir in
18617 .) ac_abs_srcdir=$ac_srcdir;;
18619 case $ac_srcdir in
18620 .) ac_abs_srcdir=$ac_abs_builddir;;
18621 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18622 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18623 esac;;
18624 esac
18625 case $ac_abs_builddir in
18626 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18628 case $ac_top_srcdir in
18629 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18630 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18631 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18632 esac;;
18633 esac
18636 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18637 echo "$as_me: executing $ac_dest commands" >&6;}
18638 case $ac_dest in
18639 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18640 # Strip MF so we end up with the name of the file.
18641 mf=`echo "$mf" | sed -e 's/:.*$//'`
18642 # Check whether this is an Automake generated Makefile or not.
18643 # We used to match only the files named `Makefile.in', but
18644 # some people rename them; so instead we look at the file content.
18645 # Grep'ing the first line is not enough: some people post-process
18646 # each Makefile.in and add a new line on top of each file to say so.
18647 # So let's grep whole file.
18648 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18649 dirpart=`(dirname "$mf") 2>/dev/null ||
18650 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18651 X"$mf" : 'X\(//\)[^/]' \| \
18652 X"$mf" : 'X\(//\)$' \| \
18653 X"$mf" : 'X\(/\)' \| \
18654 . : '\(.\)' 2>/dev/null ||
18655 echo X"$mf" |
18656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18657 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18658 /^X\(\/\/\)$/{ s//\1/; q; }
18659 /^X\(\/\).*/{ s//\1/; q; }
18660 s/.*/./; q'`
18661 else
18662 continue
18664 # Extract the definition of DEPDIR, am__include, and am__quote
18665 # from the Makefile without running `make'.
18666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18667 test -z "$DEPDIR" && continue
18668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18669 test -z "am__include" && continue
18670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18671 # When using ansi2knr, U may be empty or an underscore; expand it
18672 U=`sed -n 's/^U = //p' < "$mf"`
18673 # Find all dependency output files, they are included files with
18674 # $(DEPDIR) in their names. We invoke sed twice because it is the
18675 # simplest approach to changing $(DEPDIR) to its actual value in the
18676 # expansion.
18677 for file in `sed -n "
18678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18680 # Make sure the directory exists.
18681 test -f "$dirpart/$file" && continue
18682 fdir=`(dirname "$file") 2>/dev/null ||
18683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18684 X"$file" : 'X\(//\)[^/]' \| \
18685 X"$file" : 'X\(//\)$' \| \
18686 X"$file" : 'X\(/\)' \| \
18687 . : '\(.\)' 2>/dev/null ||
18688 echo X"$file" |
18689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18691 /^X\(\/\/\)$/{ s//\1/; q; }
18692 /^X\(\/\).*/{ s//\1/; q; }
18693 s/.*/./; q'`
18694 { if $as_mkdir_p; then
18695 mkdir -p $dirpart/$fdir
18696 else
18697 as_dir=$dirpart/$fdir
18698 as_dirs=
18699 while test ! -d "$as_dir"; do
18700 as_dirs="$as_dir $as_dirs"
18701 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18703 X"$as_dir" : 'X\(//\)[^/]' \| \
18704 X"$as_dir" : 'X\(//\)$' \| \
18705 X"$as_dir" : 'X\(/\)' \| \
18706 . : '\(.\)' 2>/dev/null ||
18707 echo X"$as_dir" |
18708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18710 /^X\(\/\/\)$/{ s//\1/; q; }
18711 /^X\(\/\).*/{ s//\1/; q; }
18712 s/.*/./; q'`
18713 done
18714 test ! -n "$as_dirs" || mkdir $as_dirs
18715 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18716 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18717 { (exit 1); exit 1; }; }; }
18719 # echo "creating $dirpart/$file"
18720 echo '# dummy' > "$dirpart/$file"
18721 done
18722 done
18724 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18725 case " $CONFIG_FILES " in
18726 *" Makefile "*)
18727 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18728 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18730 esac
18731 for ac_multi_file in $CONFIG_FILES; do
18732 case $ac_multi_file in
18733 */Makefile)
18734 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18735 esac
18736 done
18738 esac
18739 done
18740 _ACEOF
18742 cat >>$CONFIG_STATUS <<\_ACEOF
18744 { (exit 0); exit 0; }
18745 _ACEOF
18746 chmod +x $CONFIG_STATUS
18747 ac_clean_files=$ac_clean_files_save
18750 # configure is writing to config.log, and then calls config.status.
18751 # config.status does its own redirection, appending to config.log.
18752 # Unfortunately, on DOS this fails, as config.log is still kept open
18753 # by configure, so config.status won't be able to write to it; its
18754 # output is simply discarded. So we exec the FD to /dev/null,
18755 # effectively closing config.log, so it can be properly (re)opened and
18756 # appended to by config.status. When coming back to configure, we
18757 # need to make the FD available again.
18758 if test "$no_create" != yes; then
18759 ac_cs_success=:
18760 ac_config_status_args=
18761 test "$silent" = yes &&
18762 ac_config_status_args="$ac_config_status_args --quiet"
18763 exec 5>/dev/null
18764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18765 exec 5>>config.log
18766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18767 # would make configure fail if this is the last instruction.
18768 $ac_cs_success || { (exit 1); exit 1; }
18772 # CONFIG_SUBDIRS section.
18774 if test "$no_recursion" != yes; then
18776 # Remove --cache-file and --srcdir arguments so they do not pile up.
18777 ac_sub_configure_args=
18778 ac_prev=
18779 for ac_arg in $ac_configure_args; do
18780 if test -n "$ac_prev"; then
18781 ac_prev=
18782 continue
18784 case $ac_arg in
18785 -cache-file | --cache-file | --cache-fil | --cache-fi \
18786 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18787 ac_prev=cache_file ;;
18788 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18789 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18790 | --c=*)
18792 --config-cache | -C)
18794 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18795 ac_prev=srcdir ;;
18796 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18798 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18799 ac_prev=prefix ;;
18800 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18802 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18803 esac
18804 done
18806 # Always prepend --prefix to ensure using the same prefix
18807 # in subdir configurations.
18808 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18810 ac_popdir=`pwd`
18811 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18813 # Do not complain, so a configure script can configure whichever
18814 # parts of a large source tree are present.
18815 test -d $srcdir/$ac_dir || continue
18817 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18818 echo "$as_me: configuring in $ac_dir" >&6;}
18819 { if $as_mkdir_p; then
18820 mkdir -p "$ac_dir"
18821 else
18822 as_dir="$ac_dir"
18823 as_dirs=
18824 while test ! -d "$as_dir"; do
18825 as_dirs="$as_dir $as_dirs"
18826 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18828 X"$as_dir" : 'X\(//\)[^/]' \| \
18829 X"$as_dir" : 'X\(//\)$' \| \
18830 X"$as_dir" : 'X\(/\)' \| \
18831 . : '\(.\)' 2>/dev/null ||
18832 echo X"$as_dir" |
18833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18835 /^X\(\/\/\)$/{ s//\1/; q; }
18836 /^X\(\/\).*/{ s//\1/; q; }
18837 s/.*/./; q'`
18838 done
18839 test ! -n "$as_dirs" || mkdir $as_dirs
18840 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18841 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18842 { (exit 1); exit 1; }; }; }
18844 ac_builddir=.
18846 if test "$ac_dir" != .; then
18847 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18848 # A "../" for each directory in $ac_dir_suffix.
18849 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18850 else
18851 ac_dir_suffix= ac_top_builddir=
18854 case $srcdir in
18855 .) # No --srcdir option. We are building in place.
18856 ac_srcdir=.
18857 if test -z "$ac_top_builddir"; then
18858 ac_top_srcdir=.
18859 else
18860 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18861 fi ;;
18862 [\\/]* | ?:[\\/]* ) # Absolute path.
18863 ac_srcdir=$srcdir$ac_dir_suffix;
18864 ac_top_srcdir=$srcdir ;;
18865 *) # Relative path.
18866 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18867 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18868 esac
18870 # Do not use `cd foo && pwd` to compute absolute paths, because
18871 # the directories may not exist.
18872 case `pwd` in
18873 .) ac_abs_builddir="$ac_dir";;
18875 case "$ac_dir" in
18876 .) ac_abs_builddir=`pwd`;;
18877 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18878 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18879 esac;;
18880 esac
18881 case $ac_abs_builddir in
18882 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18884 case ${ac_top_builddir}. in
18885 .) ac_abs_top_builddir=$ac_abs_builddir;;
18886 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18887 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18888 esac;;
18889 esac
18890 case $ac_abs_builddir in
18891 .) ac_abs_srcdir=$ac_srcdir;;
18893 case $ac_srcdir in
18894 .) ac_abs_srcdir=$ac_abs_builddir;;
18895 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18896 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18897 esac;;
18898 esac
18899 case $ac_abs_builddir in
18900 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18902 case $ac_top_srcdir in
18903 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18904 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18905 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18906 esac;;
18907 esac
18910 cd $ac_dir
18912 # Check for guested configure; otherwise get Cygnus style configure.
18913 if test -f $ac_srcdir/configure.gnu; then
18914 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18915 elif test -f $ac_srcdir/configure; then
18916 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18917 elif test -f $ac_srcdir/configure.in; then
18918 ac_sub_configure=$ac_configure
18919 else
18920 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18921 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18922 ac_sub_configure=
18925 # The recursion is here.
18926 if test -n "$ac_sub_configure"; then
18927 # Make the cache file name correct relative to the subdirectory.
18928 case $cache_file in
18929 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18930 *) # Relative path.
18931 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18932 esac
18934 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18935 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18936 # The eval makes quoting arguments work.
18937 eval $ac_sub_configure $ac_sub_configure_args \
18938 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18939 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18940 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18941 { (exit 1); exit 1; }; }
18944 cd $ac_popdir
18945 done