Move entry to proper file.
[official-gcc.git] / libjava / configure
blob17284a822e803db26b0a64fface97900f7df2653
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 LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GCJH INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC 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 PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --enable-plugin build gcjwebplugin web browser plugin
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --enable-libgcj-debug enable runtime debugging code
862 --enable-java-awt list of AWT peer implementations to be built
863 --enable-shared=PKGS build shared libraries default=yes
864 --enable-static=PKGS build static libraries default=yes
865 --enable-fast-install=PKGS optimize for fast installation default=yes
866 --disable-libtool-lock avoid locking (might break parallel builds)
867 --disable-getenv-properties
868 don't set system properties from GCJ_PROPERTIES
869 --enable-hash-synchronization
870 use global hash table for monitor locks
871 --enable-gc-debug include full support for pointer backtracing etc.
872 --enable-interpreter enable interpreter
873 --enable-sjlj-exceptions
874 force use of builtin_setjmp for exceptions
875 --disable-java-net disable java.net
876 --disable-jvmpi disable JVMPI support
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 # Check whether --enable-plugin or --disable-plugin was given.
1612 if test "${enable_plugin+set}" = set; then
1613 enableval="$enable_plugin"
1614 case "$enableval" in
1615 yes) plugin_enabled=yes ;;
1616 no) plugin_enabled=no ;;
1617 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1618 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1619 { (exit 1); exit 1; }; };;
1620 esac
1621 else
1622 plugin_enabled=no
1626 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1629 # (1) We use an abnormal CXX (without library references), so we
1630 # must cache it under a different name.
1631 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1632 # the non-multilib-adjusted value will be used in multilibs.
1633 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1634 # (4) As another side effect, automake doesn't automatically include them
1635 # in Makefile.in.
1636 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1637 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1638 # used in later tests. This may not be necessary in libjava; I don't know.
1642 save_CXXFLAGS="$CXXFLAGS"
1643 CXXFLAGS="$CXXFLAGS -fno-builtin"
1644 ac_ext=c
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 break 2
1671 done
1672 done
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$ac_cv_prog_CC"; then
1687 ac_ct_CC=$CC
1688 # Extract the first word of "gcc", so it can be a program name with args.
1689 set dummy gcc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$ac_ct_CC"; then
1696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CC="gcc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1709 done
1710 done
1714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 CC=$ac_ct_CC
1724 else
1725 CC="$ac_cv_prog_CC"
1728 if test -z "$CC"; then
1729 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}cc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="${ac_tool_prefix}cc"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 break 2
1751 done
1752 done
1756 CC=$ac_cv_prog_CC
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1760 else
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1766 if test -z "$ac_cv_prog_CC"; then
1767 ac_ct_CC=$CC
1768 # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 if test -n "$ac_ct_CC"; then
1776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_ac_ct_CC="cc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1789 done
1790 done
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1798 else
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1803 CC=$ac_ct_CC
1804 else
1805 CC="$ac_cv_prog_CC"
1809 if test -z "$CC"; then
1810 # Extract the first word of "cc", so it can be a program name with args.
1811 set dummy cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1819 else
1820 ac_prog_rejected=no
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1829 ac_prog_rejected=yes
1830 continue
1832 ac_cv_prog_CC="cc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1836 done
1837 done
1839 if test $ac_prog_rejected = yes; then
1840 # We found a bogon in the path, so make sure we never use it.
1841 set dummy $ac_cv_prog_CC
1842 shift
1843 if test $# != 0; then
1844 # We chose a different compiler from the bogus one.
1845 # However, it has the same basename, so the bogon will be chosen
1846 # first if we set CC to just the basename; use the full file name.
1847 shift
1848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1853 CC=$ac_cv_prog_CC
1854 if test -n "$CC"; then
1855 echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1857 else
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1863 if test -z "$CC"; then
1864 if test -n "$ac_tool_prefix"; then
1865 for ac_prog in cl
1867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1893 CC=$ac_cv_prog_CC
1894 if test -n "$CC"; then
1895 echo "$as_me:$LINENO: result: $CC" >&5
1896 echo "${ECHO_T}$CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 test -n "$CC" && break
1903 done
1905 if test -z "$CC"; then
1906 ac_ct_CC=$CC
1907 for ac_prog in cl
1909 # Extract the first word of "$ac_prog", so it can be a program name with args.
1910 set dummy $ac_prog; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_CC="$ac_prog"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1930 done
1931 done
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1939 else
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1944 test -n "$ac_ct_CC" && break
1945 done
1947 CC=$ac_ct_CC
1953 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: no acceptable C compiler found in \$PATH
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1959 # Provide some information about the compiler.
1960 echo "$as_me:$LINENO:" \
1961 "checking for C compiler version" >&5
1962 ac_compiler=`set X $ac_compile; echo $2`
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964 (eval $ac_compiler --version </dev/null >&5) 2>&5
1965 ac_status=$?
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969 (eval $ac_compiler -v </dev/null >&5) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974 (eval $ac_compiler -V </dev/null >&5) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1979 cat >conftest.$ac_ext <<_ACEOF
1980 /* confdefs.h. */
1981 _ACEOF
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h. */
1987 main ()
1991 return 0;
1993 _ACEOF
1994 # FIXME: Cleanup?
1995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1996 (eval $ac_link) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; then
2000 gcc_no_link=no
2001 else
2002 gcc_no_link=yes
2005 if test x$gcc_no_link = xyes; then
2006 # Setting cross_compile will disable run tests; it will
2007 # also disable AC_CHECK_FILE but that's generally
2008 # correct if we can't link.
2009 cross_compiling=yes
2010 EXEEXT=
2011 else
2012 cat >conftest.$ac_ext <<_ACEOF
2013 /* confdefs.h. */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2020 main ()
2024 return 0;
2026 _ACEOF
2027 ac_clean_files_save=$ac_clean_files
2028 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2029 # Try to create an executable without -o first, disregard a.out.
2030 # It will help us diagnose broken compilers, and finding out an intuition
2031 # of exeext.
2032 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2033 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2034 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2035 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2036 (eval $ac_link_default) 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; then
2040 # Find the output, starting from the most likely. This scheme is
2041 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2042 # resort.
2044 # Be careful to initialize this variable, since it used to be cached.
2045 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2046 ac_cv_exeext=
2047 # b.out is created by i960 compilers.
2048 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2050 test -f "$ac_file" || continue
2051 case $ac_file in
2052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2054 conftest.$ac_ext )
2055 # This is the source file.
2057 [ab].out )
2058 # We found the default executable, but exeext='' is most
2059 # certainly right.
2060 break;;
2061 *.* )
2062 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2063 # FIXME: I believe we export ac_cv_exeext for Libtool,
2064 # but it would be cool to find out if it's true. Does anybody
2065 # maintain Libtool? --akim.
2066 export ac_cv_exeext
2067 break;;
2069 break;;
2070 esac
2071 done
2072 else
2073 echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2077 See \`config.log' for more details." >&5
2078 echo "$as_me: error: C compiler cannot create executables
2079 See \`config.log' for more details." >&2;}
2080 { (exit 77); exit 77; }; }
2083 ac_exeext=$ac_cv_exeext
2084 echo "$as_me:$LINENO: result: $ac_file" >&5
2085 echo "${ECHO_T}$ac_file" >&6
2087 # Check the compiler produces executables we can run. If not, either
2088 # the compiler is broken, or we cross compile.
2089 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2090 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2091 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2092 # If not cross compiling, check that we can run a simple program.
2093 if test "$cross_compiling" != yes; then
2094 if { ac_try='./$ac_file'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2100 cross_compiling=no
2101 else
2102 if test "$cross_compiling" = maybe; then
2103 cross_compiling=yes
2104 else
2105 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot run C compiled programs.
2109 If you meant to cross compile, use \`--host'.
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2115 echo "$as_me:$LINENO: result: yes" >&5
2116 echo "${ECHO_T}yes" >&6
2118 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2119 ac_clean_files=$ac_clean_files_save
2120 # Check the compiler produces executables we can run. If not, either
2121 # the compiler is broken, or we cross compile.
2122 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2123 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2124 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2125 echo "${ECHO_T}$cross_compiling" >&6
2127 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2128 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2130 (eval $ac_link) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2135 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2136 # work properly (i.e., refer to `conftest.exe'), while it won't with
2137 # `rm'.
2138 for ac_file in conftest.exe conftest conftest.*; do
2139 test -f "$ac_file" || continue
2140 case $ac_file in
2141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2142 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2143 export ac_cv_exeext
2144 break;;
2145 * ) break;;
2146 esac
2147 done
2148 else
2149 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2150 See \`config.log' for more details." >&5
2151 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2152 See \`config.log' for more details." >&2;}
2153 { (exit 1); exit 1; }; }
2156 rm -f conftest$ac_cv_exeext
2157 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2158 echo "${ECHO_T}$ac_cv_exeext" >&6
2160 rm -f conftest.$ac_ext
2161 EXEEXT=$ac_cv_exeext
2162 ac_exeext=$EXEEXT
2164 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2166 if test "${ac_cv_objext+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 cat >conftest.$ac_ext <<_ACEOF
2170 /* confdefs.h. */
2171 _ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2177 main ()
2181 return 0;
2183 _ACEOF
2184 rm -f conftest.o conftest.obj
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; then
2190 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2191 case $ac_file in
2192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2193 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2194 break;;
2195 esac
2196 done
2197 else
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2210 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2211 echo "${ECHO_T}$ac_cv_objext" >&6
2212 OBJEXT=$ac_cv_objext
2213 ac_objext=$OBJEXT
2214 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2215 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2216 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 cat >conftest.$ac_ext <<_ACEOF
2220 /* confdefs.h. */
2221 _ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2227 main ()
2229 #ifndef __GNUC__
2230 choke me
2231 #endif
2234 return 0;
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_compiler_gnu=yes
2260 else
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2264 ac_compiler_gnu=no
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2270 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2271 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2272 GCC=`test $ac_compiler_gnu = yes && echo yes`
2273 ac_test_CFLAGS=${CFLAGS+set}
2274 ac_save_CFLAGS=$CFLAGS
2275 CFLAGS="-g"
2276 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cc_g+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2289 main ()
2293 return 0;
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2299 ac_status=$?
2300 grep -v '^ *+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 ac_cv_prog_cc_g=yes
2319 else
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2323 ac_cv_prog_cc_g=no
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2329 if test "$ac_test_CFLAGS" = set; then
2330 CFLAGS=$ac_save_CFLAGS
2331 elif test $ac_cv_prog_cc_g = yes; then
2332 if test "$GCC" = yes; then
2333 CFLAGS="-g -O2"
2334 else
2335 CFLAGS="-g"
2337 else
2338 if test "$GCC" = yes; then
2339 CFLAGS="-O2"
2340 else
2341 CFLAGS=
2344 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2345 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2346 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 ac_cv_prog_cc_stdc=no
2350 ac_save_CC=$CC
2351 cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h. */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2357 #include <stdarg.h>
2358 #include <stdio.h>
2359 #include <sys/types.h>
2360 #include <sys/stat.h>
2361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2362 struct buf { int x; };
2363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2364 static char *e (p, i)
2365 char **p;
2366 int i;
2368 return p[i];
2370 static char *f (char * (*g) (char **, int), char **p, ...)
2372 char *s;
2373 va_list v;
2374 va_start (v,p);
2375 s = g (p, va_arg (v,int));
2376 va_end (v);
2377 return s;
2380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2381 function prototypes and stuff, but not '\xHH' hex character constants.
2382 These don't provoke an error unfortunately, instead are silently treated
2383 as 'x'. The following induces an error, until -std1 is added to get
2384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2385 array size at least. It's necessary to write '\x00'==0 to get something
2386 that's true only with -std1. */
2387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2389 int test (int i, double x);
2390 struct s1 {int (*f) (int a);};
2391 struct s2 {int (*f) (double a);};
2392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2393 int argc;
2394 char **argv;
2396 main ()
2398 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2400 return 0;
2402 _ACEOF
2403 # Don't try gcc -ansi; that turns off useful extensions and
2404 # breaks some systems' header files.
2405 # AIX -qlanglvl=ansi
2406 # Ultrix and OSF/1 -std1
2407 # HP-UX 10.20 and later -Ae
2408 # HP-UX older versions -Aa -D_HPUX_SOURCE
2409 # SVR4 -Xc -D__EXTENSIONS__
2410 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2412 CC="$ac_save_CC $ac_arg"
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2416 ac_status=$?
2417 grep -v '^ *+' conftest.er1 >conftest.err
2418 rm -f conftest.er1
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 ac_cv_prog_cc_stdc=$ac_arg
2436 break
2437 else
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext
2443 done
2444 rm -f conftest.$ac_ext conftest.$ac_objext
2445 CC=$ac_save_CC
2449 case "x$ac_cv_prog_cc_stdc" in
2450 x|xno)
2451 echo "$as_me:$LINENO: result: none needed" >&5
2452 echo "${ECHO_T}none needed" >&6 ;;
2454 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2455 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2456 CC="$CC $ac_cv_prog_cc_stdc" ;;
2457 esac
2459 # Some people use a C++ compiler to compile C. Since we use `exit',
2460 # in C++ we need to declare it. In case someone uses the same compiler
2461 # for both compiling C and C++ we need to have the C++ compiler decide
2462 # the declaration of exit, since it's the most demanding environment.
2463 cat >conftest.$ac_ext <<_ACEOF
2464 #ifndef __cplusplus
2465 choke me
2466 #endif
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>conftest.er1
2471 ac_status=$?
2472 grep -v '^ *+' conftest.er1 >conftest.err
2473 rm -f conftest.er1
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag"
2478 || test ! -s conftest.err'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 (eval $ac_try) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 for ac_declaration in \
2491 '' \
2492 'extern "C" void std::exit (int) throw (); using std::exit;' \
2493 'extern "C" void std::exit (int); using std::exit;' \
2494 'extern "C" void exit (int) throw ();' \
2495 'extern "C" void exit (int);' \
2496 'void exit (int);'
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2504 $ac_declaration
2505 #include <stdlib.h>
2507 main ()
2509 exit (42);
2511 return 0;
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2517 ac_status=$?
2518 grep -v '^ *+' conftest.er1 >conftest.err
2519 rm -f conftest.er1
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 continue
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2550 $ac_declaration
2552 main ()
2554 exit (42);
2556 return 0;
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 break
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 done
2589 rm -f conftest*
2590 if test -n "$ac_declaration"; then
2591 echo '#ifdef __cplusplus' >>confdefs.h
2592 echo $ac_declaration >>confdefs.h
2593 echo '#endif' >>confdefs.h
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 ac_ext=cc
2609 ac_cpp='$CXXCPP $CPPFLAGS'
2610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 if test -n "$CXX"; then
2624 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2637 done
2638 done
2642 CXX=$glibcxx_cv_prog_CXX
2643 if test -n "$CXX"; then
2644 echo "$as_me:$LINENO: result: $CXX" >&5
2645 echo "${ECHO_T}$CXX" >&6
2646 else
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2651 test -n "$CXX" && break
2652 done
2654 if test -z "$CXX"; then
2655 ac_ct_CXX=$CXX
2656 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 if test -n "$ac_ct_CXX"; then
2666 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_CXX="$ac_prog"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2679 done
2680 done
2684 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2685 if test -n "$ac_ct_CXX"; then
2686 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2687 echo "${ECHO_T}$ac_ct_CXX" >&6
2688 else
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2693 test -n "$ac_ct_CXX" && break
2694 done
2695 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2697 CXX=$ac_ct_CXX
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO:" \
2703 "checking for C++ compiler version" >&5
2704 ac_compiler=`set X $ac_compile; echo $2`
2705 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2706 (eval $ac_compiler --version </dev/null >&5) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2711 (eval $ac_compiler -v </dev/null >&5) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2716 (eval $ac_compiler -V </dev/null >&5) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2723 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2734 main ()
2736 #ifndef __GNUC__
2737 choke me
2738 #endif
2741 return 0;
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_cxx_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_compiler_gnu=yes
2767 else
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 ac_compiler_gnu=no
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2777 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2779 GXX=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CXXFLAGS=${CXXFLAGS+set}
2781 ac_save_CXXFLAGS=$CXXFLAGS
2782 CXXFLAGS="-g"
2783 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2784 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cxx_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2796 main ()
2800 return 0;
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_cxx_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_prog_cxx_g=yes
2826 else
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2830 ac_cv_prog_cxx_g=no
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2836 if test "$ac_test_CXXFLAGS" = set; then
2837 CXXFLAGS=$ac_save_CXXFLAGS
2838 elif test $ac_cv_prog_cxx_g = yes; then
2839 if test "$GXX" = yes; then
2840 CXXFLAGS="-g -O2"
2841 else
2842 CXXFLAGS="-g"
2844 else
2845 if test "$GXX" = yes; then
2846 CXXFLAGS="-O2"
2847 else
2848 CXXFLAGS=
2851 for ac_declaration in \
2852 '' \
2853 'extern "C" void std::exit (int) throw (); using std::exit;' \
2854 'extern "C" void std::exit (int); using std::exit;' \
2855 'extern "C" void exit (int) throw ();' \
2856 'extern "C" void exit (int);' \
2857 'void exit (int);'
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2865 $ac_declaration
2866 #include <stdlib.h>
2868 main ()
2870 exit (42);
2872 return 0;
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2878 ac_status=$?
2879 grep -v '^ *+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_cxx_werror_flag"
2885 || test ! -s conftest.err'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2898 else
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2902 continue
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h. */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911 $ac_declaration
2913 main ()
2915 exit (42);
2917 return 0;
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2923 ac_status=$?
2924 grep -v '^ *+' conftest.er1 >conftest.err
2925 rm -f conftest.er1
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_cxx_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 break
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 done
2950 rm -f conftest*
2951 if test -n "$ac_declaration"; then
2952 echo '#ifdef __cplusplus' >>confdefs.h
2953 echo $ac_declaration >>confdefs.h
2954 echo '#endif' >>confdefs.h
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 CXXFLAGS="$save_CXXFLAGS"
2969 am__api_version="1.9"
2970 # Find a good install program. We prefer a C program (faster),
2971 # so one script is as good as another. But avoid the broken or
2972 # incompatible versions:
2973 # SysV /etc/install, /usr/sbin/install
2974 # SunOS /usr/etc/install
2975 # IRIX /sbin/install
2976 # AIX /bin/install
2977 # AmigaOS /C/install, which installs bootblocks on floppy discs
2978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2981 # OS/2's system install, which has a completely different semantic
2982 # ./install, which can be erroneously created by make from ./install.sh.
2983 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2984 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2985 if test -z "$INSTALL"; then
2986 if test "${ac_cv_path_install+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 # Account for people who put trailing slashes in PATH elements.
2995 case $as_dir/ in
2996 ./ | .// | /cC/* | \
2997 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2998 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2999 /usr/ucb/* ) ;;
3001 # OSF1 and SCO ODT 3.0 have their own names for install.
3002 # Don't use installbsd from OSF since it installs stuff as root
3003 # by default.
3004 for ac_prog in ginstall scoinst install; do
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3007 if test $ac_prog = install &&
3008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3009 # AIX install. It has an incompatible calling convention.
3011 elif test $ac_prog = install &&
3012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3013 # program-specific install script used by HP pwplus--don't use.
3015 else
3016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3017 break 3
3020 done
3021 done
3023 esac
3024 done
3028 if test "${ac_cv_path_install+set}" = set; then
3029 INSTALL=$ac_cv_path_install
3030 else
3031 # As a last resort, use the slow shell script. We don't cache a
3032 # path for INSTALL within a source directory, because that will
3033 # break other packages using the cache if that directory is
3034 # removed, or if the path is relative.
3035 INSTALL=$ac_install_sh
3038 echo "$as_me:$LINENO: result: $INSTALL" >&5
3039 echo "${ECHO_T}$INSTALL" >&6
3041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3042 # It thinks the first close brace ends the variable substitution.
3043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3049 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3051 # Just in case
3052 sleep 1
3053 echo timestamp > conftest.file
3054 # Do `set' in a subshell so we don't clobber the current shell's
3055 # arguments. Must try -L first in case configure is actually a
3056 # symlink; some systems play weird games with the mod time of symlinks
3057 # (eg FreeBSD returns the mod time of the symlink's containing
3058 # directory).
3059 if (
3060 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3061 if test "$*" = "X"; then
3062 # -L didn't work.
3063 set X `ls -t $srcdir/configure conftest.file`
3065 rm -f conftest.file
3066 if test "$*" != "X $srcdir/configure conftest.file" \
3067 && test "$*" != "X conftest.file $srcdir/configure"; then
3069 # If neither matched, then we have a broken ls. This can happen
3070 # if, for instance, CONFIG_SHELL is bash and it inherits a
3071 # broken ls alias from the environment. This has actually
3072 # happened. Such a system could not be considered "sane".
3073 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3074 alias in your environment" >&5
3075 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3076 alias in your environment" >&2;}
3077 { (exit 1); exit 1; }; }
3080 test "$2" = conftest.file
3082 then
3083 # Ok.
3085 else
3086 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3087 Check your system clock" >&5
3088 echo "$as_me: error: newly created file is older than distributed files!
3089 Check your system clock" >&2;}
3090 { (exit 1); exit 1; }; }
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3094 test "$program_prefix" != NONE &&
3095 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3096 # Use a double $ so make ignores it.
3097 test "$program_suffix" != NONE &&
3098 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3099 # Double any \ or $. echo might interpret backslashes.
3100 # By default was `s,x,x', remove it if useless.
3101 cat <<\_ACEOF >conftest.sed
3102 s/[\\$]/&&/g;s/;s,x,x,$//
3103 _ACEOF
3104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3105 rm conftest.sed
3107 # expand $ac_aux_dir to an absolute path
3108 am_aux_dir=`cd $ac_aux_dir && pwd`
3110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3111 # Use eval to expand $SHELL
3112 if eval "$MISSING --run true"; then
3113 am_missing_run="$MISSING --run "
3114 else
3115 am_missing_run=
3116 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3120 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3121 # We used to keeping the `.' as first argument, in order to
3122 # allow $(mkdir_p) to be used without argument. As in
3123 # $(mkdir_p) $(somedir)
3124 # where $(somedir) is conditionally defined. However this is wrong
3125 # for two reasons:
3126 # 1. if the package is installed by a user who cannot write `.'
3127 # make install will fail,
3128 # 2. the above comment should most certainly read
3129 # $(mkdir_p) $(DESTDIR)$(somedir)
3130 # so it does not work when $(somedir) is undefined and
3131 # $(DESTDIR) is not.
3132 # To support the latter case, we have to write
3133 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3134 # so the `.' trick is pointless.
3135 mkdir_p='mkdir -p --'
3136 else
3137 # On NextStep and OpenStep, the `mkdir' command does not
3138 # recognize any option. It will interpret all options as
3139 # directories to create, and then abort because `.' already
3140 # exists.
3141 for d in ./-p ./--version;
3143 test -d $d && rmdir $d
3144 done
3145 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3146 if test -f "$ac_aux_dir/mkinstalldirs"; then
3147 mkdir_p='$(mkinstalldirs)'
3148 else
3149 mkdir_p='$(install_sh) -d'
3153 for ac_prog in gawk mawk nawk awk
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159 if test "${ac_cv_prog_AWK+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 if test -n "$AWK"; then
3163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_AWK="$ac_prog"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3176 done
3177 done
3181 AWK=$ac_cv_prog_AWK
3182 if test -n "$AWK"; then
3183 echo "$as_me:$LINENO: result: $AWK" >&5
3184 echo "${ECHO_T}$AWK" >&6
3185 else
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3190 test -n "$AWK" && break
3191 done
3193 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3194 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3195 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3196 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 cat >conftest.make <<\_ACEOF
3200 all:
3201 @echo 'ac_maketemp="$(MAKE)"'
3202 _ACEOF
3203 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3204 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3205 if test -n "$ac_maketemp"; then
3206 eval ac_cv_prog_make_${ac_make}_set=yes
3207 else
3208 eval ac_cv_prog_make_${ac_make}_set=no
3210 rm -f conftest.make
3212 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3213 echo "$as_me:$LINENO: result: yes" >&5
3214 echo "${ECHO_T}yes" >&6
3215 SET_MAKE=
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 SET_MAKE="MAKE=${MAKE-make}"
3222 rm -rf .tst 2>/dev/null
3223 mkdir .tst 2>/dev/null
3224 if test -d .tst; then
3225 am__leading_dot=.
3226 else
3227 am__leading_dot=_
3229 rmdir .tst 2>/dev/null
3231 DEPDIR="${am__leading_dot}deps"
3233 ac_config_commands="$ac_config_commands depfiles"
3236 am_make=${MAKE-make}
3237 cat > confinc << 'END'
3238 am__doit:
3239 @echo done
3240 .PHONY: am__doit
3242 # If we don't find an include directive, just comment out the code.
3243 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3244 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3245 am__include="#"
3246 am__quote=
3247 _am_result=none
3248 # First try GNU make style include.
3249 echo "include confinc" > confmf
3250 # We grep out `Entering directory' and `Leaving directory'
3251 # messages which can occur if `w' ends up in MAKEFLAGS.
3252 # In particular we don't look at `^make:' because GNU make might
3253 # be invoked under some other name (usually "gmake"), in which
3254 # case it prints its new name instead of `make'.
3255 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3256 am__include=include
3257 am__quote=
3258 _am_result=GNU
3260 # Now try BSD make style include.
3261 if test "$am__include" = "#"; then
3262 echo '.include "confinc"' > confmf
3263 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3264 am__include=.include
3265 am__quote="\""
3266 _am_result=BSD
3271 echo "$as_me:$LINENO: result: $_am_result" >&5
3272 echo "${ECHO_T}$_am_result" >&6
3273 rm -f confinc confmf
3275 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3276 if test "${enable_dependency_tracking+set}" = set; then
3277 enableval="$enable_dependency_tracking"
3280 if test "x$enable_dependency_tracking" != xno; then
3281 am_depcomp="$ac_aux_dir/depcomp"
3282 AMDEPBACKSLASH='\'
3286 if test "x$enable_dependency_tracking" != xno; then
3287 AMDEP_TRUE=
3288 AMDEP_FALSE='#'
3289 else
3290 AMDEP_TRUE='#'
3291 AMDEP_FALSE=
3296 # test to see if srcdir already configured
3297 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3298 test -f $srcdir/config.status; then
3299 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3301 { (exit 1); exit 1; }; }
3304 # test whether we have cygpath
3305 if test -z "$CYGPATH_W"; then
3306 if (cygpath --version) >/dev/null 2>/dev/null; then
3307 CYGPATH_W='cygpath -w'
3308 else
3309 CYGPATH_W=echo
3314 # Define the identity of the package.
3315 PACKAGE='libjava'
3316 VERSION='version-unused'
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE "$PACKAGE"
3321 _ACEOF
3324 cat >>confdefs.h <<_ACEOF
3325 #define VERSION "$VERSION"
3326 _ACEOF
3328 # Some tools Automake needs.
3330 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3333 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3336 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3339 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3342 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3344 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3346 # Installed binaries are usually stripped using `strip' when the user
3347 # run `make install-strip'. However `strip' might not be the right
3348 # tool to use in cross-compilation environments, therefore Automake
3349 # will honor the `STRIP' environment variable to overrule this program.
3350 if test "$cross_compiling" != no; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}strip; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_STRIP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$STRIP"; then
3360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3378 STRIP=$ac_cv_prog_STRIP
3379 if test -n "$STRIP"; then
3380 echo "$as_me:$LINENO: result: $STRIP" >&5
3381 echo "${ECHO_T}$STRIP" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_STRIP"; then
3389 ac_ct_STRIP=$STRIP
3390 # Extract the first word of "strip", so it can be a program name with args.
3391 set dummy strip; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$ac_ct_STRIP"; then
3398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_STRIP="strip"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3414 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3418 if test -n "$ac_ct_STRIP"; then
3419 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3420 echo "${ECHO_T}$ac_ct_STRIP" >&6
3421 else
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3426 STRIP=$ac_ct_STRIP
3427 else
3428 STRIP="$ac_cv_prog_STRIP"
3432 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3434 # We need awk for the "check" target. The system "awk" is bad on
3435 # some platforms.
3436 # Always define AMTAR for backward compatibility.
3438 AMTAR=${AMTAR-"${am_missing_run}tar"}
3440 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3445 depcc="$CC" am_compiler_list=
3447 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3448 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3449 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3453 # We make a subdir and do the tests there. Otherwise we can end up
3454 # making bogus files that we don't know about and never remove. For
3455 # instance it was reported that on HP-UX the gcc test will end up
3456 # making a dummy file named `D' -- because `-MD' means `put the output
3457 # in D'.
3458 mkdir conftest.dir
3459 # Copy depcomp to subdir because otherwise we won't find it if we're
3460 # using a relative directory.
3461 cp "$am_depcomp" conftest.dir
3462 cd conftest.dir
3463 # We will build objects and dependencies in a subdirectory because
3464 # it helps to detect inapplicable dependency modes. For instance
3465 # both Tru64's cc and ICC support -MD to output dependencies as a
3466 # side effect of compilation, but ICC will put the dependencies in
3467 # the current directory while Tru64 will put them in the object
3468 # directory.
3469 mkdir sub
3471 am_cv_CC_dependencies_compiler_type=none
3472 if test "$am_compiler_list" = ""; then
3473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3475 for depmode in $am_compiler_list; do
3476 # Setup a source with many dependencies, because some compilers
3477 # like to wrap large dependency lists on column 80 (with \), and
3478 # we should not choose a depcomp mode which is confused by this.
3480 # We need to recreate these files for each test, as the compiler may
3481 # overwrite some of them when testing with obscure command lines.
3482 # This happens at least with the AIX C compiler.
3483 : > sub/conftest.c
3484 for i in 1 2 3 4 5 6; do
3485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3487 # Solaris 8's {/usr,}/bin/sh.
3488 touch sub/conftst$i.h
3489 done
3490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3492 case $depmode in
3493 nosideeffect)
3494 # after this tag, mechanisms are not by side-effect, so they'll
3495 # only be used when explicitly requested
3496 if test "x$enable_dependency_tracking" = xyes; then
3497 continue
3498 else
3499 break
3502 none) break ;;
3503 esac
3504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3505 # mode. It turns out that the SunPro C++ compiler does not properly
3506 # handle `-M -o', and we need to detect this.
3507 if depmode=$depmode \
3508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3511 >/dev/null 2>conftest.err &&
3512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3513 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3515 # icc doesn't choke on unknown options, it will just issue warnings
3516 # or remarks (even with -Werror). So we grep stderr for any message
3517 # that says an option was ignored or not supported.
3518 # When given -MP, icc 7.0 and 7.1 complain thusly:
3519 # icc: Command line warning: ignoring option '-M'; no argument required
3520 # The diagnosis changed in icc 8.0:
3521 # icc: Command line remark: option '-MP' not supported
3522 if (grep 'ignoring option' conftest.err ||
3523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3524 am_cv_CC_dependencies_compiler_type=$depmode
3525 break
3528 done
3530 cd ..
3531 rm -rf conftest.dir
3532 else
3533 am_cv_CC_dependencies_compiler_type=none
3537 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3538 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3539 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3544 test "x$enable_dependency_tracking" != xno \
3545 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3546 am__fastdepCC_TRUE=
3547 am__fastdepCC_FALSE='#'
3548 else
3549 am__fastdepCC_TRUE='#'
3550 am__fastdepCC_FALSE=
3554 depcc="$CXX" am_compiler_list=
3556 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3557 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3558 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3562 # We make a subdir and do the tests there. Otherwise we can end up
3563 # making bogus files that we don't know about and never remove. For
3564 # instance it was reported that on HP-UX the gcc test will end up
3565 # making a dummy file named `D' -- because `-MD' means `put the output
3566 # in D'.
3567 mkdir conftest.dir
3568 # Copy depcomp to subdir because otherwise we won't find it if we're
3569 # using a relative directory.
3570 cp "$am_depcomp" conftest.dir
3571 cd conftest.dir
3572 # We will build objects and dependencies in a subdirectory because
3573 # it helps to detect inapplicable dependency modes. For instance
3574 # both Tru64's cc and ICC support -MD to output dependencies as a
3575 # side effect of compilation, but ICC will put the dependencies in
3576 # the current directory while Tru64 will put them in the object
3577 # directory.
3578 mkdir sub
3580 am_cv_CXX_dependencies_compiler_type=none
3581 if test "$am_compiler_list" = ""; then
3582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3584 for depmode in $am_compiler_list; do
3585 # Setup a source with many dependencies, because some compilers
3586 # like to wrap large dependency lists on column 80 (with \), and
3587 # we should not choose a depcomp mode which is confused by this.
3589 # We need to recreate these files for each test, as the compiler may
3590 # overwrite some of them when testing with obscure command lines.
3591 # This happens at least with the AIX C compiler.
3592 : > sub/conftest.c
3593 for i in 1 2 3 4 5 6; do
3594 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3595 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3596 # Solaris 8's {/usr,}/bin/sh.
3597 touch sub/conftst$i.h
3598 done
3599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3601 case $depmode in
3602 nosideeffect)
3603 # after this tag, mechanisms are not by side-effect, so they'll
3604 # only be used when explicitly requested
3605 if test "x$enable_dependency_tracking" = xyes; then
3606 continue
3607 else
3608 break
3611 none) break ;;
3612 esac
3613 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3614 # mode. It turns out that the SunPro C++ compiler does not properly
3615 # handle `-M -o', and we need to detect this.
3616 if depmode=$depmode \
3617 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3619 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3620 >/dev/null 2>conftest.err &&
3621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3622 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3624 # icc doesn't choke on unknown options, it will just issue warnings
3625 # or remarks (even with -Werror). So we grep stderr for any message
3626 # that says an option was ignored or not supported.
3627 # When given -MP, icc 7.0 and 7.1 complain thusly:
3628 # icc: Command line warning: ignoring option '-M'; no argument required
3629 # The diagnosis changed in icc 8.0:
3630 # icc: Command line remark: option '-MP' not supported
3631 if (grep 'ignoring option' conftest.err ||
3632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3633 am_cv_CXX_dependencies_compiler_type=$depmode
3634 break
3637 done
3639 cd ..
3640 rm -rf conftest.dir
3641 else
3642 am_cv_CXX_dependencies_compiler_type=none
3646 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3647 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3648 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3653 test "x$enable_dependency_tracking" != xno \
3654 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3655 am__fastdepCXX_TRUE=
3656 am__fastdepCXX_FALSE='#'
3657 else
3658 am__fastdepCXX_TRUE='#'
3659 am__fastdepCXX_FALSE=
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3667 set dummy ${ac_tool_prefix}as; ac_word=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_prog_AS+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 if test -n "$AS"; then
3674 ac_cv_prog_AS="$AS" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_AS="${ac_tool_prefix}as"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3687 done
3688 done
3692 AS=$ac_cv_prog_AS
3693 if test -n "$AS"; then
3694 echo "$as_me:$LINENO: result: $AS" >&5
3695 echo "${ECHO_T}$AS" >&6
3696 else
3697 echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6
3702 if test -z "$ac_cv_prog_AS"; then
3703 ac_ct_AS=$AS
3704 # Extract the first word of "as", so it can be a program name with args.
3705 set dummy as; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 if test -n "$ac_ct_AS"; then
3712 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_AS="as"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3725 done
3726 done
3730 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3731 if test -n "$ac_ct_AS"; then
3732 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3733 echo "${ECHO_T}$ac_ct_AS" >&6
3734 else
3735 echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3739 AS=$ac_ct_AS
3740 else
3741 AS="$ac_cv_prog_AS"
3744 if test -n "$ac_tool_prefix"; then
3745 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3746 set dummy ${ac_tool_prefix}ld; ac_word=$2
3747 echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3749 if test "${ac_cv_prog_LD+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 if test -n "$LD"; then
3753 ac_cv_prog_LD="$LD" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_LD="${ac_tool_prefix}ld"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3766 done
3767 done
3771 LD=$ac_cv_prog_LD
3772 if test -n "$LD"; then
3773 echo "$as_me:$LINENO: result: $LD" >&5
3774 echo "${ECHO_T}$LD" >&6
3775 else
3776 echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3781 if test -z "$ac_cv_prog_LD"; then
3782 ac_ct_LD=$LD
3783 # Extract the first word of "ld", so it can be a program name with args.
3784 set dummy ld; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 if test -n "$ac_ct_LD"; then
3791 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_LD="ld"
3801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3804 done
3805 done
3809 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3810 if test -n "$ac_ct_LD"; then
3811 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3812 echo "${ECHO_T}$ac_ct_LD" >&6
3813 else
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3818 LD=$ac_ct_LD
3819 else
3820 LD="$ac_cv_prog_LD"
3823 if test -n "$ac_tool_prefix"; then
3824 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3825 set dummy ${ac_tool_prefix}ar; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_prog_AR+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 if test -n "$AR"; then
3832 ac_cv_prog_AR="$AR" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_AR="${ac_tool_prefix}ar"
3842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3845 done
3846 done
3850 AR=$ac_cv_prog_AR
3851 if test -n "$AR"; then
3852 echo "$as_me:$LINENO: result: $AR" >&5
3853 echo "${ECHO_T}$AR" >&6
3854 else
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3860 if test -z "$ac_cv_prog_AR"; then
3861 ac_ct_AR=$AR
3862 # Extract the first word of "ar", so it can be a program name with args.
3863 set dummy ar; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 if test -n "$ac_ct_AR"; then
3870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_ac_ct_AR="ar"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3883 done
3884 done
3888 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3889 if test -n "$ac_ct_AR"; then
3890 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3891 echo "${ECHO_T}$ac_ct_AR" >&6
3892 else
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3897 AR=$ac_ct_AR
3898 else
3899 AR="$ac_cv_prog_AR"
3902 if test -n "$ac_tool_prefix"; then
3903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_RANLIB+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910 if test -n "$RANLIB"; then
3911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3924 done
3925 done
3929 RANLIB=$ac_cv_prog_RANLIB
3930 if test -n "$RANLIB"; then
3931 echo "$as_me:$LINENO: result: $RANLIB" >&5
3932 echo "${ECHO_T}$RANLIB" >&6
3933 else
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3939 if test -z "$ac_cv_prog_RANLIB"; then
3940 ac_ct_RANLIB=$RANLIB
3941 # Extract the first word of "ranlib", so it can be a program name with args.
3942 set dummy ranlib; ac_word=$2
3943 echo "$as_me:$LINENO: checking for $ac_word" >&5
3944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948 if test -n "$ac_ct_RANLIB"; then
3949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3950 else
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_ac_ct_RANLIB="ranlib"
3959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3962 done
3963 done
3965 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3969 if test -n "$ac_ct_RANLIB"; then
3970 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3971 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3972 else
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3977 RANLIB=$ac_ct_RANLIB
3978 else
3979 RANLIB="$ac_cv_prog_RANLIB"
3982 for ac_prog in gawk mawk nawk awk
3984 # Extract the first word of "$ac_prog", so it can be a program name with args.
3985 set dummy $ac_prog; ac_word=$2
3986 echo "$as_me:$LINENO: checking for $ac_word" >&5
3987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988 if test "${ac_cv_prog_AWK+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991 if test -n "$AWK"; then
3992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_AWK="$ac_prog"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4010 AWK=$ac_cv_prog_AWK
4011 if test -n "$AWK"; then
4012 echo "$as_me:$LINENO: result: $AWK" >&5
4013 echo "${ECHO_T}$AWK" >&6
4014 else
4015 echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4019 test -n "$AWK" && break
4020 done
4022 for ac_prog in jar fastjar
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_JAR+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test -n "$JAR"; then
4032 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_JAR="$ac_prog"
4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4050 JAR=$ac_cv_prog_JAR
4051 if test -n "$JAR"; then
4052 echo "$as_me:$LINENO: result: $JAR" >&5
4053 echo "${ECHO_T}$JAR" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 test -n "$JAR" && break
4060 done
4061 test -n "$JAR" || JAR="no"
4063 # Extract the first word of "zip", so it can be a program name with args.
4064 set dummy zip; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_ZIP+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 case $ZIP in
4071 [\\/]* | ?:[\\/]*)
4072 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4086 done
4087 done
4089 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4091 esac
4093 ZIP=$ac_cv_path_ZIP
4095 if test -n "$ZIP"; then
4096 echo "$as_me:$LINENO: result: $ZIP" >&5
4097 echo "${ECHO_T}$ZIP" >&6
4098 else
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4103 # Extract the first word of "unzip", so it can be a program name with args.
4104 set dummy unzip; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_UNZIP+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 case $UNZIP in
4111 [\\/]* | ?:[\\/]*)
4112 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4129 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4131 esac
4133 UNZIP=$ac_cv_path_UNZIP
4135 if test -n "$UNZIP"; then
4136 echo "$as_me:$LINENO: result: $UNZIP" >&5
4137 echo "${ECHO_T}$UNZIP" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4145 if test "$JAR" = no; then
4146 BASH_JAR_TRUE=
4147 BASH_JAR_FALSE='#'
4148 else
4149 BASH_JAR_TRUE='#'
4150 BASH_JAR_FALSE=
4153 if test "$ZIP" = no; then
4154 if test "$JAR" = no; then
4155 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4156 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4157 { (exit 1); exit 1; }; }
4159 else
4160 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4161 JAR=`pwd`/scripts/jar
4164 # Find a good install program. We prefer a C program (faster),
4165 # so one script is as good as another. But avoid the broken or
4166 # incompatible versions:
4167 # SysV /etc/install, /usr/sbin/install
4168 # SunOS /usr/etc/install
4169 # IRIX /sbin/install
4170 # AIX /bin/install
4171 # AmigaOS /C/install, which installs bootblocks on floppy discs
4172 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4173 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4174 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4175 # OS/2's system install, which has a completely different semantic
4176 # ./install, which can be erroneously created by make from ./install.sh.
4177 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4178 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4179 if test -z "$INSTALL"; then
4180 if test "${ac_cv_path_install+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 # Account for people who put trailing slashes in PATH elements.
4189 case $as_dir/ in
4190 ./ | .// | /cC/* | \
4191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4192 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4193 /usr/ucb/* ) ;;
4195 # OSF1 and SCO ODT 3.0 have their own names for install.
4196 # Don't use installbsd from OSF since it installs stuff as root
4197 # by default.
4198 for ac_prog in ginstall scoinst install; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4201 if test $ac_prog = install &&
4202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4203 # AIX install. It has an incompatible calling convention.
4205 elif test $ac_prog = install &&
4206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4207 # program-specific install script used by HP pwplus--don't use.
4209 else
4210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4211 break 3
4214 done
4215 done
4217 esac
4218 done
4222 if test "${ac_cv_path_install+set}" = set; then
4223 INSTALL=$ac_cv_path_install
4224 else
4225 # As a last resort, use the slow shell script. We don't cache a
4226 # path for INSTALL within a source directory, because that will
4227 # break other packages using the cache if that directory is
4228 # removed, or if the path is relative.
4229 INSTALL=$ac_install_sh
4232 echo "$as_me:$LINENO: result: $INSTALL" >&5
4233 echo "${ECHO_T}$INSTALL" >&6
4235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4236 # It thinks the first close brace ends the variable substitution.
4237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4244 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4245 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4246 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4247 if test "${enable_maintainer_mode+set}" = set; then
4248 enableval="$enable_maintainer_mode"
4249 USE_MAINTAINER_MODE=$enableval
4250 else
4251 USE_MAINTAINER_MODE=no
4253 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4254 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4257 if test $USE_MAINTAINER_MODE = yes; then
4258 MAINTAINER_MODE_TRUE=
4259 MAINTAINER_MODE_FALSE='#'
4260 else
4261 MAINTAINER_MODE_TRUE='#'
4262 MAINTAINER_MODE_FALSE=
4265 MAINT=$MAINTAINER_MODE_TRUE
4271 # configure.host sets the following important variables
4272 # libgcj_cflags - host specific C compiler flags
4273 # libgcj_cxxflags - host specific C++ compiler flags
4274 # libgcj_javaflags - host specific Java compiler flags
4276 libgcj_cflags=
4277 libgcj_cxxflags=
4278 libgcj_javaflags=
4280 . ${srcdir}/configure.host
4282 LIBGCJ_CFLAGS="${libgcj_cflags}"
4283 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4284 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4285 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4291 # Only use libltdl for non-newlib builds.
4292 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4293 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4294 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4295 library_names_spec=
4296 libname_spec='lib$name'
4297 soname_spec=
4298 shrext=".so"
4299 postinstall_cmds=
4300 postuninstall_cmds=
4301 finish_cmds=
4302 finish_eval=
4303 shlibpath_var=
4304 shlibpath_overrides_runpath=unknown
4305 version_type=none
4306 dynamic_linker="$host_os ld.so"
4307 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4308 if test "$GCC" = yes; then
4309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4310 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4311 # if the path contains ";" then we assume it to be the separator
4312 # otherwise default to the standard path separator (i.e. ":") - it is
4313 # assumed that no part of a normal pathname contains ";" but that should
4314 # okay in the real world where ";" in dirpaths is itself problematic.
4315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4316 else
4317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4319 else
4320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4322 need_lib_prefix=unknown
4323 hardcode_into_libs=no
4325 # when you set need_version to no, make sure it does not cause -set_version
4326 # flags to be left without arguments
4327 need_version=unknown
4329 case $host_os in
4330 aix3*)
4331 version_type=linux
4332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4333 shlibpath_var=LIBPATH
4335 # AIX 3 has no versioning support, so we append a major version to the name.
4336 soname_spec='${libname}${release}${shared_ext}$major'
4339 aix4* | aix5*)
4340 version_type=linux
4341 need_lib_prefix=no
4342 need_version=no
4343 hardcode_into_libs=yes
4344 if test "$host_cpu" = ia64; then
4345 # AIX 5 supports IA64
4346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4347 shlibpath_var=LD_LIBRARY_PATH
4348 else
4349 # With GCC up to 2.95.x, collect2 would create an import file
4350 # for dependence libraries. The import file would start with
4351 # the line `#! .'. This would cause the generated library to
4352 # depend on `.', always an invalid library. This was fixed in
4353 # development snapshots of GCC prior to 3.0.
4354 case $host_os in
4355 aix4 | aix4.[01] | aix4.[01].*)
4356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4357 echo ' yes '
4358 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4360 else
4361 can_build_shared=no
4364 esac
4365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4366 # soname into executable. Probably we can add versioning support to
4367 # collect2, so additional links can be useful in future.
4368 if test "$aix_use_runtimelinking" = yes; then
4369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4370 # instead of lib<name>.a to let people know that these are not
4371 # typical AIX shared libraries.
4372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4373 else
4374 # We preserve .a as extension for shared libraries through AIX4.2
4375 # and later when we are not doing run time linking.
4376 library_names_spec='${libname}${release}.a $libname.a'
4377 soname_spec='${libname}${release}${shared_ext}$major'
4379 shlibpath_var=LIBPATH
4383 amigaos*)
4384 library_names_spec='$libname.ixlibrary $libname.a'
4385 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4386 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'
4389 beos*)
4390 library_names_spec='${libname}${shared_ext}'
4391 dynamic_linker="$host_os ld.so"
4392 shlibpath_var=LIBRARY_PATH
4395 bsdi4*)
4396 version_type=linux
4397 need_version=no
4398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4399 soname_spec='${libname}${release}${shared_ext}$major'
4400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4401 shlibpath_var=LD_LIBRARY_PATH
4402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4404 # the default ld.so.conf also contains /usr/contrib/lib and
4405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4406 # libtool to hard-code these into programs
4409 cygwin* | mingw* | pw32*)
4410 version_type=windows
4411 shrext=".dll"
4412 need_version=no
4413 need_lib_prefix=no
4415 case $GCC,$host_os in
4416 yes,cygwin* | yes,mingw* | yes,pw32*)
4417 library_names_spec='$libname.dll.a'
4418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4419 postinstall_cmds='base_file=`basename \${file}`~
4420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4421 dldir=$destdir/`dirname \$dlpath`~
4422 test -d \$dldir || mkdir -p \$dldir~
4423 $install_prog $dir/$dlname \$dldir/$dlname'
4424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4425 dlpath=$dir/\$dldll~
4426 $rm \$dlpath'
4427 shlibpath_overrides_runpath=yes
4429 case $host_os in
4430 cygwin*)
4431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4433 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4435 mingw*)
4436 # MinGW DLLs use traditional 'lib' prefix
4437 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4438 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4439 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4440 # It is most probably a Windows format PATH printed by
4441 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4442 # path with ; separators, and with drive letters. We can handle the
4443 # drive letters (cygwin fileutils understands them), so leave them,
4444 # especially as we might pass files found there to a mingw objdump,
4445 # which wouldn't understand a cygwinified path. Ahh.
4446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4447 else
4448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4451 pw32*)
4452 # pw32 DLLs use 'pw' prefix rather than 'lib'
4453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4455 esac
4459 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4461 esac
4462 dynamic_linker='Win32 ld.exe'
4463 # FIXME: first we should search . and the directory the executable is in
4464 shlibpath_var=PATH
4467 darwin* | rhapsody*)
4468 dynamic_linker="$host_os dyld"
4469 version_type=darwin
4470 need_lib_prefix=no
4471 need_version=no
4472 # FIXME: Relying on posixy $() will cause problems for
4473 # cross-compilation, but unfortunately the echo tests do not
4474 # yet detect zsh echo's removal of \ escapes.
4475 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4476 soname_spec='${libname}${release}${major}$shared_ext'
4477 shlibpath_overrides_runpath=yes
4478 shlibpath_var=DYLD_LIBRARY_PATH
4479 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4480 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4481 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4482 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"`
4484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4487 dgux*)
4488 version_type=linux
4489 need_lib_prefix=no
4490 need_version=no
4491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4492 soname_spec='${libname}${release}${shared_ext}$major'
4493 shlibpath_var=LD_LIBRARY_PATH
4496 freebsd1*)
4497 dynamic_linker=no
4500 freebsd*)
4501 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4502 version_type=freebsd-$objformat
4503 case $version_type in
4504 freebsd-elf*)
4505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4506 need_version=no
4507 need_lib_prefix=no
4509 freebsd-*)
4510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4511 need_version=yes
4513 esac
4514 shlibpath_var=LD_LIBRARY_PATH
4515 case $host_os in
4516 freebsd2*)
4517 shlibpath_overrides_runpath=yes
4519 freebsd3.01* | freebsdelf3.01*)
4520 shlibpath_overrides_runpath=yes
4521 hardcode_into_libs=yes
4523 *) # from 3.2 on
4524 shlibpath_overrides_runpath=no
4525 hardcode_into_libs=yes
4527 esac
4530 gnu*)
4531 version_type=linux
4532 need_lib_prefix=no
4533 need_version=no
4534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4535 soname_spec='${libname}${release}${shared_ext}$major'
4536 shlibpath_var=LD_LIBRARY_PATH
4537 hardcode_into_libs=yes
4540 hpux9* | hpux10* | hpux11*)
4541 # Give a soname corresponding to the major version so that dld.sl refuses to
4542 # link against other versions.
4543 version_type=sunos
4544 need_lib_prefix=no
4545 need_version=no
4546 case "$host_cpu" in
4547 ia64*)
4548 shrext='.so'
4549 hardcode_into_libs=yes
4550 dynamic_linker="$host_os dld.so"
4551 shlibpath_var=LD_LIBRARY_PATH
4552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4554 soname_spec='${libname}${release}${shared_ext}$major'
4555 if test "X$HPUX_IA64_MODE" = X32; then
4556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4557 else
4558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4562 hppa*64*)
4563 shrext='.sl'
4564 hardcode_into_libs=yes
4565 dynamic_linker="$host_os dld.sl"
4566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4569 soname_spec='${libname}${release}${shared_ext}$major'
4570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4574 shrext='.sl'
4575 dynamic_linker="$host_os dld.sl"
4576 shlibpath_var=SHLIB_PATH
4577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4579 soname_spec='${libname}${release}${shared_ext}$major'
4581 esac
4582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4583 postinstall_cmds='chmod 555 $lib'
4586 irix5* | irix6* | nonstopux*)
4587 case $host_os in
4588 nonstopux*) version_type=nonstopux ;;
4590 if test "$lt_cv_prog_gnu_ld" = yes; then
4591 version_type=linux
4592 else
4593 version_type=irix
4594 fi ;;
4595 esac
4596 need_lib_prefix=no
4597 need_version=no
4598 soname_spec='${libname}${release}${shared_ext}$major'
4599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4600 case $host_os in
4601 irix5* | nonstopux*)
4602 libsuff= shlibsuff=
4605 case $LD in # libtool.m4 will add one of these switches to LD
4606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4607 libsuff= shlibsuff= libmagic=32-bit;;
4608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4609 libsuff=32 shlibsuff=N32 libmagic=N32;;
4610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4612 *) libsuff= shlibsuff= libmagic=never-match;;
4613 esac
4615 esac
4616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4617 shlibpath_overrides_runpath=no
4618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4620 hardcode_into_libs=yes
4623 # No shared lib support for Linux oldld, aout, or coff.
4624 linux*oldld* | linux*aout* | linux*coff*)
4625 dynamic_linker=no
4628 # This must be Linux ELF.
4629 linux*)
4630 version_type=linux
4631 need_lib_prefix=no
4632 need_version=no
4633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4634 soname_spec='${libname}${release}${shared_ext}$major'
4635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4636 shlibpath_var=LD_LIBRARY_PATH
4637 shlibpath_overrides_runpath=no
4638 # This implies no fast_install, which is unacceptable.
4639 # Some rework will be needed to allow for fast_install
4640 # before this can be enabled.
4641 hardcode_into_libs=yes
4643 # We used to test for /lib/ld.so.1 and disable shared libraries on
4644 # powerpc, because MkLinux only supported shared libraries with the
4645 # GNU dynamic linker. Since this was broken with cross compilers,
4646 # most powerpc-linux boxes support dynamic linking these days and
4647 # people can always --disable-shared, the test was removed, and we
4648 # assume the GNU/Linux dynamic linker is in use.
4649 dynamic_linker='GNU/Linux ld.so'
4652 netbsd*)
4653 version_type=sunos
4654 need_lib_prefix=no
4655 need_version=no
4656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4659 dynamic_linker='NetBSD (a.out) ld.so'
4660 else
4661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4662 soname_spec='${libname}${release}${shared_ext}$major'
4663 dynamic_linker='NetBSD ld.elf_so'
4665 shlibpath_var=LD_LIBRARY_PATH
4666 shlibpath_overrides_runpath=yes
4667 hardcode_into_libs=yes
4670 newsos6)
4671 version_type=linux
4672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4673 shlibpath_var=LD_LIBRARY_PATH
4674 shlibpath_overrides_runpath=yes
4677 nto-qnx)
4678 version_type=linux
4679 need_lib_prefix=no
4680 need_version=no
4681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4682 soname_spec='${libname}${release}${shared_ext}$major'
4683 shlibpath_var=LD_LIBRARY_PATH
4684 shlibpath_overrides_runpath=yes
4687 openbsd*)
4688 version_type=sunos
4689 need_lib_prefix=no
4690 need_version=no
4691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4693 shlibpath_var=LD_LIBRARY_PATH
4694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4695 case $host_os in
4696 openbsd2.[89] | openbsd2.[89].*)
4697 shlibpath_overrides_runpath=no
4700 shlibpath_overrides_runpath=yes
4702 esac
4703 else
4704 shlibpath_overrides_runpath=yes
4708 os2*)
4709 libname_spec='$name'
4710 shrext=".dll"
4711 need_lib_prefix=no
4712 library_names_spec='$libname${shared_ext} $libname.a'
4713 dynamic_linker='OS/2 ld.exe'
4714 shlibpath_var=LIBPATH
4717 osf3* | osf4* | osf5*)
4718 version_type=osf
4719 need_lib_prefix=no
4720 need_version=no
4721 soname_spec='${libname}${release}${shared_ext}$major'
4722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4723 shlibpath_var=LD_LIBRARY_PATH
4724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4728 sco3.2v5*)
4729 version_type=osf
4730 soname_spec='${libname}${release}${shared_ext}$major'
4731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4732 shlibpath_var=LD_LIBRARY_PATH
4735 solaris*)
4736 version_type=linux
4737 need_lib_prefix=no
4738 need_version=no
4739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4740 soname_spec='${libname}${release}${shared_ext}$major'
4741 shlibpath_var=LD_LIBRARY_PATH
4742 shlibpath_overrides_runpath=yes
4743 hardcode_into_libs=yes
4744 # ldd complains unless libraries are executable
4745 postinstall_cmds='chmod +x $lib'
4748 sunos4*)
4749 version_type=sunos
4750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4752 shlibpath_var=LD_LIBRARY_PATH
4753 shlibpath_overrides_runpath=yes
4754 if test "$with_gnu_ld" = yes; then
4755 need_lib_prefix=no
4757 need_version=yes
4760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4761 version_type=linux
4762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4763 soname_spec='${libname}${release}${shared_ext}$major'
4764 shlibpath_var=LD_LIBRARY_PATH
4765 case $host_vendor in
4766 sni)
4767 shlibpath_overrides_runpath=no
4768 need_lib_prefix=no
4769 export_dynamic_flag_spec='${wl}-Blargedynsym'
4770 runpath_var=LD_RUN_PATH
4772 siemens)
4773 need_lib_prefix=no
4775 motorola)
4776 need_lib_prefix=no
4777 need_version=no
4778 shlibpath_overrides_runpath=no
4779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4781 esac
4784 sysv4*MP*)
4785 if test -d /usr/nec ;then
4786 version_type=linux
4787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4788 soname_spec='$libname${shared_ext}.$major'
4789 shlibpath_var=LD_LIBRARY_PATH
4793 uts4*)
4794 version_type=linux
4795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4796 soname_spec='${libname}${release}${shared_ext}$major'
4797 shlibpath_var=LD_LIBRARY_PATH
4801 dynamic_linker=no
4803 esac
4804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4805 echo "${ECHO_T}$dynamic_linker" >&6
4806 test "$dynamic_linker" = no && can_build_shared=no
4809 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4810 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4811 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 libltdl_cv_shlibpath_var="$shlibpath_var"
4816 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4817 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4818 if test -n "$libltdl_cv_shlibpath_var"; then
4820 cat >>confdefs.h <<_ACEOF
4821 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4822 _ACEOF
4828 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4831 # See if the user has requested runtime debugging.
4832 LIBGCJDEBUG="disable"
4834 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4835 if test "${enable_libgcj_debug+set}" = set; then
4836 enableval="$enable_libgcj_debug"
4837 if test "$enable_libgcj_debug" = yes; then
4839 cat >>confdefs.h <<\_ACEOF
4840 #define DEBUG 1
4841 _ACEOF
4843 LIBGCJDEBUG="enable"
4847 # Determine which AWT peer libraries to build
4848 # Check whether --enable-java-awt or --disable-java-awt was given.
4849 if test "${enable_java_awt+set}" = set; then
4850 enableval="$enable_java_awt"
4854 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4855 use_xlib_awt=""
4856 use_gtk_awt=""
4857 use_qt_awt=""
4858 # The default toolkit to use is the first one specified.
4859 TOOLKIT=
4862 for peer in $peerlibs ; do
4863 case $peer in
4864 xlib)
4865 if test "$no_x" = yes; then
4866 echo "*** xlib peers requested but no X library available" 1>&2
4867 exit 1
4868 else
4869 use_xlib_awt="yes"
4870 if test -z "$TOOLKIT"; then
4871 TOOLKIT=gnu.awt.xlib.XToolkit
4875 gtk)
4876 if test "$no_x" = yes; then
4877 echo "*** gtk peers requested but no X library available" 1>&2
4878 exit 1
4879 else
4880 use_gtk_awt=yes
4881 if test -z "$TOOLKIT"; then
4882 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4887 if test "$no_x" = yes; then
4888 # Perhaps we should admit the possibility of embedded Qt.
4889 echo "*** Qt peers requested but no X library available" 1>&2
4890 exit 1
4891 else
4892 use_qt_awt=yes
4893 if test -z "$TOOLKIT"; then
4894 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4899 use_xlib_awt=
4900 use_gtk_awt=
4901 use_qt_awt=
4902 break
4905 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4906 exit 1
4907 esac
4908 done
4912 if test "$use_xlib_awt" = yes; then
4913 XLIB_AWT_TRUE=
4914 XLIB_AWT_FALSE='#'
4915 else
4916 XLIB_AWT_TRUE='#'
4917 XLIB_AWT_FALSE=
4921 # Create standard.omit based on decisions we just made.
4922 cp $srcdir/standard.omit.in standard.omit
4923 if test "$use_xlib_awt" != yes; then
4924 echo gnu/awt/xlib >> standard.omit
4925 echo gnu/gcj/xlib >> standard.omit
4928 if test -z "${with_multisubdir}"; then
4929 builddotdot=.
4930 else
4931 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4934 NATIVE=yes
4936 # Which gcj do we use?
4937 which_gcj=default
4938 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4939 if test -n "${with_cross_host}"; then
4940 # We are being configured with a cross compiler. We can't
4941 # use ac_exeext, because that is for the target platform.
4942 NATIVE=no
4943 cross_host_exeext=
4944 case "${with_cross_host}" in
4945 *mingw* | *cygwin*)
4946 cross_host_exeext=.exe
4948 esac
4949 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4950 if test x"$build_noncanonical" = x"$with_cross_host"; then
4951 # Ordinary cross (host!=target and host=build)
4952 which_gcj=built
4953 else
4954 # Canadian cross (host!=target and host!=build)
4955 which_gcj=cross
4957 else
4958 which_gcj=cross
4960 else
4961 # We are being configured with a native or crossed-native compiler
4962 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4963 if test x"$build" = x"$host"; then
4964 # True native build (host=target and host=build)
4965 which_gcj=built
4966 else
4967 # Crossed-native build (host=target and host!=build)
4968 which_gcj=cross
4970 else
4971 which_gcj=path
4974 case "${which_gcj}" in
4975 built)
4976 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4977 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4979 cross)
4980 if test "x${with_newlib}" = "xyes"; then
4981 # FIXME (comment): Why is this needed?
4982 GCC_UNWIND_INCLUDE=
4983 GCJ="${target_noncanonical}-gcj"
4984 else
4985 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4987 GCJH='$(target_noncanonical)-gcjh'
4989 path)
4990 GCJ="gcj -B`${PWDCMD-pwd}`/"
4991 GCJH=gcjh
4993 esac
4997 # Create it, so that compile/link tests don't fail
4998 test -f libgcj.spec || touch libgcj.spec
5002 # Set up to configure Classpath.
5003 # FIXME: no supported way to pass args in autoconf.
5004 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5005 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5006 ac_configure_args="$ac_configure_args --disable-load-library"
5007 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5008 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5009 dir1=`cd $srcdir && pwd`
5010 dir2=`pwd`
5011 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5012 ac_configure_args="$ac_configure_args --disable-core-jni"
5013 ac_configure_args="$ac_configure_args --disable-examples"
5014 ac_configure_args="$ac_configure_args --with-glibj=build"
5015 if test "$plugin_enabled" != yes; then
5016 ac_configure_args="$ac_configure_args --disable-plugin"
5018 if test "$use_gtk_awt" != yes; then
5019 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5021 if test "$use_qt_awt" != yes; then
5022 ac_configure_args="$ac_configure_args --disable-qt-peer"
5023 else
5024 # We need this as qt is disabled by default in classpath.
5025 ac_configure_args="$ac_configure_args --enable-qt-peer"
5028 # Only use libltdl for non-newlib builds.
5029 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5030 case $enable_ltdl_convenience in
5031 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5032 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5034 "") enable_ltdl_convenience=yes
5035 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5036 esac
5037 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5038 INCLTDL='-I${top_srcdir}/''libltdl'
5041 DIRLTDL=libltdl
5043 cat >>confdefs.h <<\_ACEOF
5044 #define USE_LTDL 1
5045 _ACEOF
5047 # Sigh. Libtool's macro doesn't do the right thing.
5048 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5049 # FIXME: this is a hack.
5050 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5051 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5056 # Check whether --enable-shared or --disable-shared was given.
5057 if test "${enable_shared+set}" = set; then
5058 enableval="$enable_shared"
5059 p=${PACKAGE-default}
5060 case $enableval in
5061 yes) enable_shared=yes ;;
5062 no) enable_shared=no ;;
5064 enable_shared=no
5065 # Look at the argument we got. We use all the common list separators.
5066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5067 for pkg in $enableval; do
5068 if test "X$pkg" = "X$p"; then
5069 enable_shared=yes
5071 done
5072 IFS="$ac_save_ifs"
5074 esac
5075 else
5076 enable_shared=yes
5078 # Check whether --enable-static or --disable-static was given.
5079 if test "${enable_static+set}" = set; then
5080 enableval="$enable_static"
5081 p=${PACKAGE-default}
5082 case $enableval in
5083 yes) enable_static=yes ;;
5084 no) enable_static=no ;;
5086 enable_static=no
5087 # Look at the argument we got. We use all the common list separators.
5088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5089 for pkg in $enableval; do
5090 if test "X$pkg" = "X$p"; then
5091 enable_static=yes
5093 done
5094 IFS="$ac_save_ifs"
5096 esac
5097 else
5098 enable_static=yes
5100 # Check whether --enable-fast-install or --disable-fast-install was given.
5101 if test "${enable_fast_install+set}" = set; then
5102 enableval="$enable_fast_install"
5103 p=${PACKAGE-default}
5104 case $enableval in
5105 yes) enable_fast_install=yes ;;
5106 no) enable_fast_install=no ;;
5108 enable_fast_install=no
5109 # Look at the argument we got. We use all the common list separators.
5110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5111 for pkg in $enableval; do
5112 if test "X$pkg" = "X$p"; then
5113 enable_fast_install=yes
5115 done
5116 IFS="$ac_save_ifs"
5118 esac
5119 else
5120 enable_fast_install=yes
5123 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5124 if test "${with_gnu_ld+set}" = set; then
5125 withval="$with_gnu_ld"
5126 test "$withval" = no || with_gnu_ld=yes
5127 else
5128 with_gnu_ld=no
5130 ac_prog=ld
5131 if test "$GCC" = yes; then
5132 # Check if gcc -print-prog-name=ld gives a path.
5133 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5134 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5135 case $host in
5136 *-*-mingw*)
5137 # gcc leaves a trailing carriage return which upsets mingw
5138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5141 esac
5142 case $ac_prog in
5143 # Accept absolute paths.
5144 [\\/]* | [A-Za-z]:[\\/]*)
5145 re_direlt='/[^/][^/]*/\.\./'
5146 # Canonicalize the path of ld
5147 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5149 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5150 done
5151 test -z "$LD" && LD="$ac_prog"
5154 # If it fails, then pretend we aren't using GCC.
5155 ac_prog=ld
5158 # If it is relative, then search for the first ld in PATH.
5159 with_gnu_ld=unknown
5161 esac
5162 elif test "$with_gnu_ld" = yes; then
5163 echo "$as_me:$LINENO: checking for GNU ld" >&5
5164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5165 else
5166 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5169 if test "${lt_cv_path_LD+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 if test -z "$LD"; then
5173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5174 for ac_dir in $PATH; do
5175 test -z "$ac_dir" && ac_dir=.
5176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5177 lt_cv_path_LD="$ac_dir/$ac_prog"
5178 # Check to see if the program is GNU ld. I'd rather use --version,
5179 # but apparently some GNU ld's only accept -v.
5180 # Break only if it was the GNU/non-GNU ld that we prefer.
5181 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5182 test "$with_gnu_ld" != no && break
5183 else
5184 test "$with_gnu_ld" != yes && break
5187 done
5188 IFS="$ac_save_ifs"
5189 else
5190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5194 LD="$lt_cv_path_LD"
5195 if test -n "$LD"; then
5196 echo "$as_me:$LINENO: result: $LD" >&5
5197 echo "${ECHO_T}$LD" >&6
5198 else
5199 echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5204 { (exit 1); exit 1; }; }
5205 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5211 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5212 lt_cv_prog_gnu_ld=yes
5213 else
5214 lt_cv_prog_gnu_ld=no
5217 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5219 with_gnu_ld=$lt_cv_prog_gnu_ld
5222 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5223 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5224 if test "${lt_cv_ld_reload_flag+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 lt_cv_ld_reload_flag='-r'
5229 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5230 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5231 reload_flag=$lt_cv_ld_reload_flag
5232 test -n "$reload_flag" && reload_flag=" $reload_flag"
5234 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5235 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5236 if test "${lt_cv_path_NM+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 if test -n "$NM"; then
5240 # Let the user override the test.
5241 lt_cv_path_NM="$NM"
5242 else
5243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5244 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5245 test -z "$ac_dir" && ac_dir=.
5246 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5247 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5248 # Check to see if the nm accepts a BSD-compat flag.
5249 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5250 # nm: unknown option "B" ignored
5251 # Tru64's nm complains that /dev/null is an invalid object file
5252 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5253 lt_cv_path_NM="$tmp_nm -B"
5254 break
5255 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5256 lt_cv_path_NM="$tmp_nm -p"
5257 break
5258 else
5259 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5260 continue # so that we can try to find one that supports BSD flags
5263 done
5264 IFS="$ac_save_ifs"
5265 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5269 NM="$lt_cv_path_NM"
5270 echo "$as_me:$LINENO: result: $NM" >&5
5271 echo "${ECHO_T}$NM" >&6
5273 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5274 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5275 if test "${lt_cv_deplibs_check_method+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 lt_cv_file_magic_cmd='$MAGIC_CMD'
5279 lt_cv_file_magic_test_file=
5280 lt_cv_deplibs_check_method='unknown'
5281 # Need to set the preceding variable on all platforms that support
5282 # interlibrary dependencies.
5283 # 'none' -- dependencies not supported.
5284 # `unknown' -- same as none, but documents that we really don't know.
5285 # 'pass_all' -- all dependencies passed with no checks.
5286 # 'test_compile' -- check by making test program.
5287 # 'file_magic [regex]' -- check by looking for files in library path
5288 # which responds to the $file_magic_cmd with a given egrep regex.
5289 # If you have `file' or equivalent on your system and you're not sure
5290 # whether `pass_all' will *always* work, you probably want this one.
5292 case $host_os in
5293 aix*)
5294 lt_cv_deplibs_check_method=pass_all
5297 beos*)
5298 lt_cv_deplibs_check_method=pass_all
5301 bsdi4*)
5302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5303 lt_cv_file_magic_cmd='/usr/bin/file -L'
5304 lt_cv_file_magic_test_file=/shlib/libc.so
5307 cygwin* | mingw* |pw32*)
5308 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5309 lt_cv_file_magic_cmd='$OBJDUMP -f'
5312 darwin* | rhapsody*)
5313 # this will be overwritten by pass_all, but leave it in just in case
5314 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5315 lt_cv_file_magic_cmd='/usr/bin/file -L'
5316 case "$host_os" in
5317 rhapsody* | darwin1.012)
5318 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5320 *) # Darwin 1.3 on
5321 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5323 esac
5324 lt_cv_deplibs_check_method=pass_all
5327 freebsd* | kfreebsd*-gnu)
5328 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5329 case $host_cpu in
5330 i*86 )
5331 # Not sure whether the presence of OpenBSD here was a mistake.
5332 # Let's accept both of them until this is cleared up.
5333 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5334 lt_cv_file_magic_cmd=/usr/bin/file
5335 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5337 esac
5338 else
5339 lt_cv_deplibs_check_method=pass_all
5343 gnu*)
5344 lt_cv_deplibs_check_method=pass_all
5347 hpux10.20*|hpux11*)
5348 case $host_cpu in
5349 hppa*)
5350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5351 lt_cv_file_magic_cmd=/usr/bin/file
5352 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5354 ia64*)
5355 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5356 lt_cv_file_magic_cmd=/usr/bin/file
5357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5359 esac
5362 irix5* | irix6*)
5363 case $host_os in
5364 irix5*)
5365 # this will be overridden with pass_all, but let us keep it just in case
5366 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5369 case $LD in
5370 *-32|*"-32 ") libmagic=32-bit;;
5371 *-n32|*"-n32 ") libmagic=N32;;
5372 *-64|*"-64 ") libmagic=64-bit;;
5373 *) libmagic=never-match;;
5374 esac
5375 # this will be overridden with pass_all, but let us keep it just in case
5376 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5378 esac
5379 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5380 lt_cv_deplibs_check_method=pass_all
5383 # This must be Linux ELF.
5384 linux-gnu*)
5385 lt_cv_deplibs_check_method=pass_all
5388 netbsd* | knetbsd*-gnu)
5389 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5391 else
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5396 newsos6)
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5398 lt_cv_file_magic_cmd=/usr/bin/file
5399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5402 osf3* | osf4* | osf5*)
5403 # this will be overridden with pass_all, but let us keep it just in case
5404 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5405 lt_cv_file_magic_test_file=/shlib/libc.so
5406 lt_cv_deplibs_check_method=pass_all
5409 sco3.2v5*)
5410 lt_cv_deplibs_check_method=pass_all
5413 solaris*)
5414 lt_cv_deplibs_check_method=pass_all
5415 lt_cv_file_magic_test_file=/lib/libc.so
5418 sysv5uw[78]* | sysv4*uw2*)
5419 lt_cv_deplibs_check_method=pass_all
5422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5423 case $host_vendor in
5424 ncr)
5425 lt_cv_deplibs_check_method=pass_all
5427 motorola)
5428 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]'
5429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5431 esac
5433 esac
5436 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5437 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5438 file_magic_cmd=$lt_cv_file_magic_cmd
5439 deplibs_check_method=$lt_cv_deplibs_check_method
5444 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5446 # find the maximum length of command line arguments
5447 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5448 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5449 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5453 teststring="ABCD"
5455 case $build_os in
5456 msdosdjgpp*)
5457 # On DJGPP, this test can blow up pretty badly due to problems in libc
5458 # (any single argument exceeding 2000 bytes causes a buffer overrun
5459 # during glob expansion). Even if it were fixed, the result of this
5460 # check would be larger than it should be.
5461 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5464 cygwin* | mingw*)
5465 # On Win9x/ME, this test blows up -- it succeeds, but takes
5466 # about 5 minutes as the teststring grows exponentially.
5467 # Worse, since 9x/ME are not pre-emptively multitasking,
5468 # you end up with a "frozen" computer, even though with patience
5469 # the test eventually succeeds (with a max line length of 256k).
5470 # Instead, let's just punt: use the minimum linelength reported by
5471 # all of the supported platforms: 8192 (on NT/2K/XP).
5472 lt_cv_sys_max_cmd_len=8192;
5475 amigaos*)
5476 # On AmigaOS with pdksh, this test takes hours, literally.
5477 # So we just punt and use a minimum line length of 8192.
5478 lt_cv_sys_max_cmd_len=8192;
5481 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5482 # This has been around since 386BSD, at least. Likely further.
5483 if test -x /sbin/sysctl; then
5484 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5485 elif test -x /usr/sbin/sysctl; then
5486 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5487 else
5488 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5490 # And add a safety zone
5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5494 esac
5498 if test -n "$lt_cv_sys_max_cmd_len" ; then
5499 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5500 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5501 else
5502 echo "$as_me:$LINENO: result: none" >&5
5503 echo "${ECHO_T}none" >&6
5507 # Only perform the check for file, if the check method requires it
5508 case $deplibs_check_method in
5509 file_magic*)
5510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5511 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5512 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5513 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 case $MAGIC_CMD in
5518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5520 ?:/*)
5521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5524 ac_save_MAGIC_CMD="$MAGIC_CMD"
5525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5526 ac_dummy="/usr/bin:$PATH"
5527 for ac_dir in $ac_dummy; do
5528 test -z "$ac_dir" && ac_dir=.
5529 if test -f $ac_dir/${ac_tool_prefix}file; then
5530 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5531 if test -n "$file_magic_test_file"; then
5532 case $deplibs_check_method in
5533 "file_magic "*)
5534 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5537 egrep "$file_magic_regex" > /dev/null; then
5539 else
5540 cat <<EOF 1>&2
5542 *** Warning: the command libtool uses to detect shared libraries,
5543 *** $file_magic_cmd, produces output that libtool cannot recognize.
5544 *** The result is that libtool may fail to recognize shared libraries
5545 *** as such. This will affect the creation of libtool libraries that
5546 *** depend on shared libraries, but programs linked with such libtool
5547 *** libraries will work regardless of this problem. Nevertheless, you
5548 *** may want to report the problem to your system manager and/or to
5549 *** bug-libtool@gnu.org
5552 fi ;;
5553 esac
5555 break
5557 done
5558 IFS="$ac_save_ifs"
5559 MAGIC_CMD="$ac_save_MAGIC_CMD"
5561 esac
5564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5565 if test -n "$MAGIC_CMD"; then
5566 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5567 echo "${ECHO_T}$MAGIC_CMD" >&6
5568 else
5569 echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5573 if test -z "$lt_cv_path_MAGIC_CMD"; then
5574 if test -n "$ac_tool_prefix"; then
5575 echo "$as_me:$LINENO: checking for file" >&5
5576 echo $ECHO_N "checking for file... $ECHO_C" >&6
5577 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 case $MAGIC_CMD in
5582 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5584 ?:/*)
5585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5588 ac_save_MAGIC_CMD="$MAGIC_CMD"
5589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5590 ac_dummy="/usr/bin:$PATH"
5591 for ac_dir in $ac_dummy; do
5592 test -z "$ac_dir" && ac_dir=.
5593 if test -f $ac_dir/file; then
5594 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5595 if test -n "$file_magic_test_file"; then
5596 case $deplibs_check_method in
5597 "file_magic "*)
5598 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5601 egrep "$file_magic_regex" > /dev/null; then
5603 else
5604 cat <<EOF 1>&2
5606 *** Warning: the command libtool uses to detect shared libraries,
5607 *** $file_magic_cmd, produces output that libtool cannot recognize.
5608 *** The result is that libtool may fail to recognize shared libraries
5609 *** as such. This will affect the creation of libtool libraries that
5610 *** depend on shared libraries, but programs linked with such libtool
5611 *** libraries will work regardless of this problem. Nevertheless, you
5612 *** may want to report the problem to your system manager and/or to
5613 *** bug-libtool@gnu.org
5616 fi ;;
5617 esac
5619 break
5621 done
5622 IFS="$ac_save_ifs"
5623 MAGIC_CMD="$ac_save_MAGIC_CMD"
5625 esac
5628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5629 if test -n "$MAGIC_CMD"; then
5630 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5631 echo "${ECHO_T}$MAGIC_CMD" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6
5637 else
5638 MAGIC_CMD=:
5644 esac
5646 if test -n "$ac_tool_prefix"; then
5647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_RANLIB+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 if test -n "$RANLIB"; then
5655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5673 RANLIB=$ac_cv_prog_RANLIB
5674 if test -n "$RANLIB"; then
5675 echo "$as_me:$LINENO: result: $RANLIB" >&5
5676 echo "${ECHO_T}$RANLIB" >&6
5677 else
5678 echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_RANLIB="ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5709 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5716 else
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5721 RANLIB=$ac_ct_RANLIB
5722 else
5723 RANLIB="$ac_cv_prog_RANLIB"
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_STRIP+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 if test -n "$STRIP"; then
5735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5748 done
5749 done
5753 STRIP=$ac_cv_prog_STRIP
5754 if test -n "$STRIP"; then
5755 echo "$as_me:$LINENO: result: $STRIP" >&5
5756 echo "${ECHO_T}$STRIP" >&6
5757 else
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5763 if test -z "$ac_cv_prog_STRIP"; then
5764 ac_ct_STRIP=$STRIP
5765 # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 if test -n "$ac_ct_STRIP"; then
5773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_STRIP="strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5786 done
5787 done
5789 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795 echo "${ECHO_T}$ac_ct_STRIP" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5801 STRIP=$ac_ct_STRIP
5802 else
5803 STRIP="$ac_cv_prog_STRIP"
5807 # Check for any special flags to pass to ltconfig.
5808 libtool_flags="--cache-file=$cache_file"
5809 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5810 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5811 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5812 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5813 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5816 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5817 if test "${enable_libtool_lock+set}" = set; then
5818 enableval="$enable_libtool_lock"
5821 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5822 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5825 # Check whether --with-pic or --without-pic was given.
5826 if test "${with_pic+set}" = set; then
5827 withval="$with_pic"
5828 pic_mode="$withval"
5829 else
5830 pic_mode=default
5832 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5833 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5835 # Some flags need to be propagated to the compiler or linker for good
5836 # libtool support.
5837 case $host in
5838 *-*-irix6*)
5839 # Find out which ABI we are using.
5840 echo '#line 5840 "configure"' > conftest.$ac_ext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; then
5846 if test "$lt_cv_prog_gnu_ld" = yes; then
5847 case `/usr/bin/file conftest.$ac_objext` in
5848 *32-bit*)
5849 LD="${LD-ld} -melf32bsmip"
5851 *N32*)
5852 LD="${LD-ld} -melf32bmipn32"
5854 *64-bit*)
5855 LD="${LD-ld} -melf64bmip"
5857 esac
5858 else
5859 case `/usr/bin/file conftest.$ac_objext` in
5860 *32-bit*)
5861 LD="${LD-ld} -32"
5863 *N32*)
5864 LD="${LD-ld} -n32"
5866 *64-bit*)
5867 LD="${LD-ld} -64"
5869 esac
5872 rm -rf conftest*
5875 ia64-*-hpux*)
5876 # Find out which ABI we are using.
5877 echo 'int i;' > conftest.$ac_ext
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; then
5883 case "`/usr/bin/file conftest.o`" in
5884 *ELF-32*)
5885 HPUX_IA64_MODE="32"
5887 *ELF-64*)
5888 HPUX_IA64_MODE="64"
5890 esac
5892 rm -rf conftest*
5895 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5896 # Find out which ABI we are using.
5897 echo 'int i;' > conftest.$ac_ext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899 (eval $ac_compile) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; then
5903 case "`/usr/bin/file conftest.o`" in
5904 *32-bit*)
5905 case $host in
5906 x86_64-*linux*)
5907 LD="${LD-ld} -m elf_i386"
5909 ppc64-*linux*|powerpc64-*linux*)
5910 LD="${LD-ld} -m elf32ppclinux"
5912 s390x-*linux*)
5913 LD="${LD-ld} -m elf_s390"
5915 sparc64-*linux*)
5916 LD="${LD-ld} -m elf32_sparc"
5918 esac
5920 *64-bit*)
5921 case $host in
5922 x86_64-*linux*)
5923 LD="${LD-ld} -m elf_x86_64"
5925 ppc*-*linux*|powerpc*-*linux*)
5926 LD="${LD-ld} -m elf64ppc"
5928 s390*-*linux*)
5929 LD="${LD-ld} -m elf64_s390"
5931 sparc*-*linux*)
5932 LD="${LD-ld} -m elf64_sparc"
5934 esac
5936 esac
5938 rm -rf conftest*
5941 *-*-sco3.2v5*)
5942 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5943 SAVE_CFLAGS="$CFLAGS"
5944 CFLAGS="$CFLAGS -belf"
5945 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5946 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5947 if test "${lt_cv_cc_needs_belf+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5952 ac_ext=c
5953 ac_cpp='$CPP $CPPFLAGS'
5954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958 if test x$gcc_no_link = xyes; then
5959 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5961 { (exit 1); exit 1; }; }
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5971 main ()
5975 return 0;
5977 _ACEOF
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest$ac_exeext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 lt_cv_cc_needs_belf=yes
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 lt_cv_cc_needs_belf=no
6007 rm -f conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6017 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6018 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6019 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6020 CFLAGS="$SAVE_CFLAGS"
6025 esac
6028 # Save cache, so that ltconfig can load it
6029 cat >confcache <<\_ACEOF
6030 # This file is a shell script that caches the results of configure
6031 # tests run on this system so they can be shared between configure
6032 # scripts and configure runs, see configure's option --config-cache.
6033 # It is not useful on other systems. If it contains results you don't
6034 # want to keep, you may remove or edit it.
6036 # config.status only pays attention to the cache file if you give it
6037 # the --recheck option to rerun configure.
6039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6041 # following values.
6043 _ACEOF
6045 # The following way of writing the cache mishandles newlines in values,
6046 # but we know of no workaround that is simple, portable, and efficient.
6047 # So, don't put newlines in cache variables' values.
6048 # Ultrix sh set writes to stderr and can't be redirected directly,
6049 # and sets the high bit in the cache file unless we assign to the vars.
6051 (set) 2>&1 |
6052 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6053 *ac_space=\ *)
6054 # `set' does not quote correctly, so add quotes (double-quote
6055 # substitution turns \\\\ into \\, and sed turns \\ into \).
6056 sed -n \
6057 "s/'/'\\\\''/g;
6058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6061 # `set' quotes correctly as required by POSIX, so do not add quotes.
6062 sed -n \
6063 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6065 esac;
6067 sed '
6068 t clear
6069 : clear
6070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6071 t end
6072 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6073 : end' >>confcache
6074 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6075 if test -w $cache_file; then
6076 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6077 cat confcache >$cache_file
6078 else
6079 echo "not updating unwritable cache $cache_file"
6082 rm -f confcache
6084 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6085 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6086 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6087 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6088 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6089 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6090 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6091 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6092 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6093 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6094 echo "$as_me: error: libtool configure failed" >&2;}
6095 { (exit 1); exit 1; }; }
6097 # Reload cache, that may have been modified by ltconfig
6098 if test -r "$cache_file"; then
6099 # Some versions of bash will fail to source /dev/null (special
6100 # files actually), so we avoid doing that.
6101 if test -f "$cache_file"; then
6102 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6103 echo "$as_me: loading cache $cache_file" >&6;}
6104 case $cache_file in
6105 [\\/]* | ?:[\\/]* ) . $cache_file;;
6106 *) . ./$cache_file;;
6107 esac
6109 else
6110 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6111 echo "$as_me: creating cache $cache_file" >&6;}
6112 >$cache_file
6116 # This can be used to rebuild libtool when needed
6117 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6119 # Always use our own libtool.
6120 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6122 # Redirect the config.log output again, so that the ltconfig log is not
6123 # clobbered by the next message.
6124 exec 5>>./config.log
6126 ac_ext=cc
6127 ac_cpp='$CXXCPP $CPPFLAGS'
6128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6131 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6132 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6133 if test -z "$CXXCPP"; then
6134 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 # Double quotes because CXXCPP needs to be expanded
6138 for CXXCPP in "$CXX -E" "/lib/cpp"
6140 ac_preproc_ok=false
6141 for ac_cxx_preproc_warn_flag in '' yes
6143 # Use a header file that comes with gcc, so configuring glibc
6144 # with a fresh cross-compiler works.
6145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6146 # <limits.h> exists even on freestanding compilers.
6147 # On the NeXT, cc -E runs the code through the compiler's parser,
6148 # not just through cpp. "Syntax error" is here to catch this case.
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #ifdef __STDC__
6156 # include <limits.h>
6157 #else
6158 # include <assert.h>
6159 #endif
6160 Syntax error
6161 _ACEOF
6162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } >/dev/null; then
6170 if test -s conftest.err; then
6171 ac_cpp_err=$ac_cxx_preproc_warn_flag
6172 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6173 else
6174 ac_cpp_err=
6176 else
6177 ac_cpp_err=yes
6179 if test -z "$ac_cpp_err"; then
6181 else
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 # Broken: fails on valid input.
6186 continue
6188 rm -f conftest.err conftest.$ac_ext
6190 # OK, works on sane cases. Now check whether non-existent headers
6191 # can be detected and how.
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 #include <ac_nonexistent.h>
6199 _ACEOF
6200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } >/dev/null; then
6208 if test -s conftest.err; then
6209 ac_cpp_err=$ac_cxx_preproc_warn_flag
6210 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6211 else
6212 ac_cpp_err=
6214 else
6215 ac_cpp_err=yes
6217 if test -z "$ac_cpp_err"; then
6218 # Broken: success on invalid input.
6219 continue
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 # Passes both tests.
6225 ac_preproc_ok=:
6226 break
6228 rm -f conftest.err conftest.$ac_ext
6230 done
6231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6232 rm -f conftest.err conftest.$ac_ext
6233 if $ac_preproc_ok; then
6234 break
6237 done
6238 ac_cv_prog_CXXCPP=$CXXCPP
6241 CXXCPP=$ac_cv_prog_CXXCPP
6242 else
6243 ac_cv_prog_CXXCPP=$CXXCPP
6245 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6246 echo "${ECHO_T}$CXXCPP" >&6
6247 ac_preproc_ok=false
6248 for ac_cxx_preproc_warn_flag in '' yes
6250 # Use a header file that comes with gcc, so configuring glibc
6251 # with a fresh cross-compiler works.
6252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253 # <limits.h> exists even on freestanding compilers.
6254 # On the NeXT, cc -E runs the code through the compiler's parser,
6255 # not just through cpp. "Syntax error" is here to catch this case.
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #ifdef __STDC__
6263 # include <limits.h>
6264 #else
6265 # include <assert.h>
6266 #endif
6267 Syntax error
6268 _ACEOF
6269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } >/dev/null; then
6277 if test -s conftest.err; then
6278 ac_cpp_err=$ac_cxx_preproc_warn_flag
6279 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6280 else
6281 ac_cpp_err=
6283 else
6284 ac_cpp_err=yes
6286 if test -z "$ac_cpp_err"; then
6288 else
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6292 # Broken: fails on valid input.
6293 continue
6295 rm -f conftest.err conftest.$ac_ext
6297 # OK, works on sane cases. Now check whether non-existent headers
6298 # can be detected and how.
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <ac_nonexistent.h>
6306 _ACEOF
6307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null; then
6315 if test -s conftest.err; then
6316 ac_cpp_err=$ac_cxx_preproc_warn_flag
6317 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6318 else
6319 ac_cpp_err=
6321 else
6322 ac_cpp_err=yes
6324 if test -z "$ac_cpp_err"; then
6325 # Broken: success on invalid input.
6326 continue
6327 else
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 # Passes both tests.
6332 ac_preproc_ok=:
6333 break
6335 rm -f conftest.err conftest.$ac_ext
6337 done
6338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6339 rm -f conftest.err conftest.$ac_ext
6340 if $ac_preproc_ok; then
6342 else
6343 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6344 See \`config.log' for more details." >&5
6345 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6346 See \`config.log' for more details." >&2;}
6347 { (exit 1); exit 1; }; }
6350 ac_ext=c
6351 ac_cpp='$CPP $CPPFLAGS'
6352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6359 lt_save_CC="$CC"
6360 lt_save_CFLAGS="$CFLAGS"
6361 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6362 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6363 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6364 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6365 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6366 deplibs_check_method="$deplibs_check_method" \
6367 file_magic_cmd="$file_magic_cmd" \
6368 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6369 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6370 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6371 echo "$as_me: error: libtool tag configuration failed" >&2;}
6372 { (exit 1); exit 1; }; }
6373 CC="$lt_save_CC"
6374 CFLAGS="$lt_save_CFLAGS"
6376 # Redirect the config.log output again, so that the ltconfig log is not
6377 # clobbered by the next message.
6378 exec 5>>./config.log
6386 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6388 # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6392 if test "${ac_cv_prog_GCJ+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 if test -n "$GCJ"; then
6396 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_GCJ="$ac_prog"
6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6409 done
6410 done
6414 GCJ=$ac_cv_prog_GCJ
6415 if test -n "$GCJ"; then
6416 echo "$as_me:$LINENO: result: $GCJ" >&5
6417 echo "${ECHO_T}$GCJ" >&6
6418 else
6419 echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6
6423 test -n "$GCJ" && break
6424 done
6425 test -n "$GCJ" || GCJ="gcj"
6427 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6428 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6429 { (exit 1); exit 1; }; }
6430 if test "x${GCJFLAGS-unset}" = xunset; then
6431 GCJFLAGS="-g -O2"
6435 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6437 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6438 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6439 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6443 # We make a subdir and do the tests there. Otherwise we can end up
6444 # making bogus files that we don't know about and never remove. For
6445 # instance it was reported that on HP-UX the gcc test will end up
6446 # making a dummy file named `D' -- because `-MD' means `put the output
6447 # in D'.
6448 mkdir conftest.dir
6449 # Copy depcomp to subdir because otherwise we won't find it if we're
6450 # using a relative directory.
6451 cp "$am_depcomp" conftest.dir
6452 cd conftest.dir
6453 # We will build objects and dependencies in a subdirectory because
6454 # it helps to detect inapplicable dependency modes. For instance
6455 # both Tru64's cc and ICC support -MD to output dependencies as a
6456 # side effect of compilation, but ICC will put the dependencies in
6457 # the current directory while Tru64 will put them in the object
6458 # directory.
6459 mkdir sub
6461 am_cv_GCJ_dependencies_compiler_type=none
6462 if test "$am_compiler_list" = ""; then
6463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6465 for depmode in $am_compiler_list; do
6466 # Setup a source with many dependencies, because some compilers
6467 # like to wrap large dependency lists on column 80 (with \), and
6468 # we should not choose a depcomp mode which is confused by this.
6470 # We need to recreate these files for each test, as the compiler may
6471 # overwrite some of them when testing with obscure command lines.
6472 # This happens at least with the AIX C compiler.
6473 : > sub/conftest.c
6474 for i in 1 2 3 4 5 6; do
6475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6476 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6477 # Solaris 8's {/usr,}/bin/sh.
6478 touch sub/conftst$i.h
6479 done
6480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6482 case $depmode in
6483 nosideeffect)
6484 # after this tag, mechanisms are not by side-effect, so they'll
6485 # only be used when explicitly requested
6486 if test "x$enable_dependency_tracking" = xyes; then
6487 continue
6488 else
6489 break
6492 none) break ;;
6493 esac
6494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6495 # mode. It turns out that the SunPro C++ compiler does not properly
6496 # handle `-M -o', and we need to detect this.
6497 if depmode=$depmode \
6498 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6500 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6501 >/dev/null 2>conftest.err &&
6502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6503 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6505 # icc doesn't choke on unknown options, it will just issue warnings
6506 # or remarks (even with -Werror). So we grep stderr for any message
6507 # that says an option was ignored or not supported.
6508 # When given -MP, icc 7.0 and 7.1 complain thusly:
6509 # icc: Command line warning: ignoring option '-M'; no argument required
6510 # The diagnosis changed in icc 8.0:
6511 # icc: Command line remark: option '-MP' not supported
6512 if (grep 'ignoring option' conftest.err ||
6513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6514 am_cv_GCJ_dependencies_compiler_type=$depmode
6515 break
6518 done
6520 cd ..
6521 rm -rf conftest.dir
6522 else
6523 am_cv_GCJ_dependencies_compiler_type=none
6527 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6528 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6529 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6534 test "x$enable_dependency_tracking" != xno \
6535 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6536 am__fastdepGCJ_TRUE=
6537 am__fastdepGCJ_FALSE='#'
6538 else
6539 am__fastdepGCJ_TRUE='#'
6540 am__fastdepGCJ_FALSE=
6546 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6547 lt_save_CC="$CC"
6548 lt_save_CFLAGS="$CFLAGS"
6549 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6550 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6551 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6552 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6553 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6554 deplibs_check_method="$deplibs_check_method" \
6555 file_magic_cmd="$file_magic_cmd" \
6556 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6557 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6558 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6559 echo "$as_me: error: libtool tag configuration failed" >&2;}
6560 { (exit 1); exit 1; }; }
6561 CC="$lt_save_CC"
6562 CFLAGS="$lt_save_CFLAGS"
6564 # Redirect the config.log output again, so that the ltconfig log is not
6565 # clobbered by the next message.
6566 exec 5>>./config.log
6570 if test "x$CC" != xcc; then
6571 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6572 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6573 else
6574 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6575 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6577 set dummy $CC; ac_cc=`echo $2 |
6578 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6579 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6590 main ()
6594 return 0;
6596 _ACEOF
6597 # Make sure it works both with $CC and with simple cc.
6598 # We do the test twice because some compilers refuse to overwrite an
6599 # existing .o file with -o, though they will create one.
6600 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6601 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); };
6611 then
6612 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6613 if test "x$CC" != xcc; then
6614 # Test first that cc exists at all.
6615 if { ac_try='cc -c conftest.$ac_ext >&5'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6622 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 (eval $ac_try) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); };
6632 then
6633 # cc works too.
6635 else
6636 # cc exists but doesn't like -o.
6637 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6641 else
6642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6644 rm -f conftest*
6647 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6648 echo "$as_me:$LINENO: result: yes" >&5
6649 echo "${ECHO_T}yes" >&6
6650 else
6651 echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6654 cat >>confdefs.h <<\_ACEOF
6655 #define NO_MINUS_C_MINUS_O 1
6656 _ACEOF
6660 # FIXME: we rely on the cache variable name because
6661 # there is no other way.
6662 set dummy $CC
6663 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6664 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6665 # Losing compiler, so override with the script.
6666 # FIXME: It is wrong to rewrite CC.
6667 # But if we don't then we get into trouble of one sort or another.
6668 # A longer-term fix would be to have automake use am__CC in this case,
6669 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6670 CC="$am_aux_dir/compile $CC"
6676 subdirs="$subdirs classpath libltdl"
6679 # The -no-testsuite modules omit the test subdir.
6682 if test -d $srcdir/testsuite; then
6683 TESTSUBDIR_TRUE=
6684 TESTSUBDIR_FALSE='#'
6685 else
6686 TESTSUBDIR_TRUE='#'
6687 TESTSUBDIR_FALSE=
6691 # Should the runtime set system properties by examining the
6692 # environment variable GCJ_PROPERTIES?
6693 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6694 if test "${enable_getenv_properties+set}" = set; then
6695 enableval="$enable_getenv_properties"
6699 # Whether GCJ_PROPERTIES is used depends on the target.
6700 if test -z "$enable_getenv_properties"; then
6701 enable_getenv_properties=${enable_getenv_properties_default-yes}
6703 if test "$enable_getenv_properties" = no; then
6705 cat >>confdefs.h <<\_ACEOF
6706 #define DISABLE_GETENV_PROPERTIES 1
6707 _ACEOF
6711 # Whether we should use arguments to main()
6712 if test -z "$enable_main_args"; then
6713 enable_main_args=${enable_main_args_default-yes}
6715 if test "$enable_main_args" = no; then
6717 cat >>confdefs.h <<\_ACEOF
6718 #define DISABLE_MAIN_ARGS 1
6719 _ACEOF
6724 # Should we use hashtable-based synchronization?
6725 # Currently works only for Linux X86/ia64
6726 # Typically faster and more space-efficient
6727 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6728 if test "${enable_hash_synchronization+set}" = set; then
6729 enableval="$enable_hash_synchronization"
6733 if test -z "$enable_hash_synchronization"; then
6734 enable_hash_synchronization=$enable_hash_synchronization_default
6738 # Check whether --with-java-home or --without-java-home was given.
6739 if test "${with_java_home+set}" = set; then
6740 withval="$with_java_home"
6741 JAVA_HOME="${withval}"
6742 else
6743 JAVA_HOME=""
6747 if test ! -z "$JAVA_HOME"; then
6748 JAVA_HOME_SET_TRUE=
6749 JAVA_HOME_SET_FALSE='#'
6750 else
6751 JAVA_HOME_SET_TRUE='#'
6752 JAVA_HOME_SET_FALSE=
6757 # What is the native OS API for MinGW?
6759 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6760 if test "${with_win32_nlsapi+set}" = set; then
6761 withval="$with_win32_nlsapi"
6762 case "${withval}" in
6763 ansi) with_win32_nlsapi=ansi ;;
6764 unicows) with_win32_nlsapi=unicows ;;
6765 unicode) with_win32_nlsapi=unicode ;;
6766 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6767 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6768 { (exit 1); exit 1; }; } ;;
6769 esac
6770 else
6771 with_win32_nlsapi=ansi
6774 case "${with_win32_nlsapi}" in
6775 unicows | unicode)
6777 cat >>confdefs.h <<\_ACEOF
6778 #define MINGW_LIBGCJ_UNICODE 1
6779 _ACEOF
6782 esac
6784 # configure.host sets slow_pthread_self if the synchronization code should
6785 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6786 if test "${slow_pthread_self}" = "yes"; then
6788 cat >>confdefs.h <<\_ACEOF
6789 #define SLOW_PTHREAD_SELF 1
6790 _ACEOF
6794 # Check for gc debugging. This option is handled both here and in the GC.
6795 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6796 if test "${enable_gc_debug+set}" = set; then
6797 enableval="$enable_gc_debug"
6798 if test "$enable_gc_debug" = "yes"; then
6800 cat >>confdefs.h <<\_ACEOF
6801 #define LIBGCJ_GC_DEBUG 1
6802 _ACEOF
6807 # See if the user has the interpreter included.
6808 # Check whether --enable-interpreter or --disable-interpreter was given.
6809 if test "${enable_interpreter+set}" = set; then
6810 enableval="$enable_interpreter"
6811 if test "$enable_interpreter" = yes; then
6812 # This can also be set in configure.host.
6813 libgcj_interpreter=yes
6814 elif test "$enable_interpreter" = no; then
6815 libgcj_interpreter=no
6819 if test "$libgcj_interpreter" = yes; then
6821 cat >>confdefs.h <<\_ACEOF
6822 #define INTERPRETER 1
6823 _ACEOF
6826 INTERPRETER="$libgcj_interpreter"
6829 echo "$as_me:$LINENO: checking for exception model to use" >&5
6830 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6831 ac_ext=cc
6832 ac_cpp='$CXXCPP $CPPFLAGS'
6833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6837 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6838 if test "${enable_sjlj_exceptions+set}" = set; then
6839 enableval="$enable_sjlj_exceptions"
6841 else
6842 cat > conftest.$ac_ext << EOF
6843 #line 6843 "configure"
6844 struct S { ~S(); };
6845 void bar();
6846 void foo()
6848 S s;
6849 bar();
6852 old_CXXFLAGS="$CXXFLAGS"
6853 CXXFLAGS=-S
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; then
6859 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6860 enable_sjlj_exceptions=yes
6861 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6862 enable_sjlj_exceptions=no
6865 CXXFLAGS="$old_CXXFLAGS"
6866 rm -f conftest*
6868 if test x$enable_sjlj_exceptions = xyes; then
6870 cat >>confdefs.h <<\_ACEOF
6871 #define SJLJ_EXCEPTIONS 1
6872 _ACEOF
6874 ac_exception_model_name=sjlj
6875 elif test x$enable_sjlj_exceptions = xno; then
6876 ac_exception_model_name="call frame"
6877 else
6878 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6879 echo "$as_me: error: unable to detect exception model" >&2;}
6880 { (exit 1); exit 1; }; }
6882 ac_ext=c
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6889 echo "${ECHO_T}$ac_exception_model_name" >&6
6891 # If we are non using SJLJ exceptions, and this host does not have support
6892 # for unwinding from a signal handler, enable checked dereferences and divides.
6893 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6894 CHECKREFSPEC=-fcheck-references
6895 DIVIDESPEC=-fuse-divide-subroutine
6896 EXCEPTIONSPEC=
6899 # See if the user wants to disable java.net. This is the mildly
6900 # ugly way that we admit that target-side configuration sucks.
6901 # Check whether --enable-java-net or --disable-java-net was given.
6902 if test "${enable_java_net+set}" = set; then
6903 enableval="$enable_java_net"
6907 # Whether java.net is built by default can depend on the target.
6908 if test -z "$enable_java_net"; then
6909 enable_java_net=${enable_java_net_default-yes}
6911 if test "$enable_java_net" = no; then
6913 cat >>confdefs.h <<\_ACEOF
6914 #define DISABLE_JAVA_NET 1
6915 _ACEOF
6919 # See if the user wants to configure without libffi. Some
6920 # architectures don't support it, and default values are set in
6921 # configure.host.
6923 # Check whether --with-libffi or --without-libffi was given.
6924 if test "${with_libffi+set}" = set; then
6925 withval="$with_libffi"
6927 else
6928 with_libffi=${with_libffi_default-yes}
6931 LIBFFI=
6932 LIBFFIINCS=
6933 if test "$with_libffi" != no; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define USE_LIBFFI 1
6937 _ACEOF
6939 LIBFFI=../libffi/libffi_convenience.la
6940 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6945 # See if the user wants to disable JVMPI support.
6946 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6947 if test "${enable_jvmpi+set}" = set; then
6948 enableval="$enable_jvmpi"
6952 if test "$enable_jvmpi" != no; then
6954 cat >>confdefs.h <<\_ACEOF
6955 #define ENABLE_JVMPI 1
6956 _ACEOF
6960 # If the target is an eCos system, use the appropriate eCos
6961 # I/O routines.
6962 # FIXME: this should not be a local option but a global target
6963 # system; at present there is no eCos target.
6964 TARGET_ECOS=${PROCESS-"no"}
6966 # Check whether --with-ecos or --without-ecos was given.
6967 if test "${with_ecos+set}" = set; then
6968 withval="$with_ecos"
6969 TARGET_ECOS="$with_ecos"
6973 PLATFORM_INNER_NAT_HDRS=
6974 case "$TARGET_ECOS" in
6975 no) case "$host" in
6976 *mingw*)
6977 PLATFORM=Win32
6978 PLATFORMNET=Win32
6979 PLATFORMH=win32.h
6981 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6982 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6983 LD_PROG=`$CC --print-prog-name=ld`
6984 LD_VERSION=`$LD_PROG --version`
6985 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6986 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6987 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6988 LD_OK="ok"
6989 else
6990 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6991 LD_OK="ok"
6994 if test "x$LD_OK" != x; then
6995 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6996 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6997 else
6998 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6999 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7000 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7001 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7003 cat >>confdefs.h <<\_ACEOF
7004 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7005 _ACEOF
7010 PLATFORM=Posix
7011 PLATFORMNET=Posix
7012 PLATFORMH=posix.h
7013 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7015 esac
7018 PLATFORM=Ecos
7019 PLATFORMNET=NoNet
7021 cat >>confdefs.h <<\_ACEOF
7022 #define ECOS 1
7023 _ACEOF
7025 PLATFORMH=posix.h
7027 esac
7029 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7032 ac_ext=c
7033 ac_cpp='$CPP $CPPFLAGS'
7034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7039 # On Suns, sometimes $CPP names a directory.
7040 if test -n "$CPP" && test -d "$CPP"; then
7041 CPP=
7043 if test -z "$CPP"; then
7044 if test "${ac_cv_prog_CPP+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 # Double quotes because CPP needs to be expanded
7048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7050 ac_preproc_ok=false
7051 for ac_c_preproc_warn_flag in '' yes
7053 # Use a header file that comes with gcc, so configuring glibc
7054 # with a fresh cross-compiler works.
7055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7056 # <limits.h> exists even on freestanding compilers.
7057 # On the NeXT, cc -E runs the code through the compiler's parser,
7058 # not just through cpp. "Syntax error" is here to catch this case.
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #ifdef __STDC__
7066 # include <limits.h>
7067 #else
7068 # include <assert.h>
7069 #endif
7070 Syntax error
7071 _ACEOF
7072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } >/dev/null; then
7080 if test -s conftest.err; then
7081 ac_cpp_err=$ac_c_preproc_warn_flag
7082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7083 else
7084 ac_cpp_err=
7086 else
7087 ac_cpp_err=yes
7089 if test -z "$ac_cpp_err"; then
7091 else
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7095 # Broken: fails on valid input.
7096 continue
7098 rm -f conftest.err conftest.$ac_ext
7100 # OK, works on sane cases. Now check whether non-existent headers
7101 # can be detected and how.
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <ac_nonexistent.h>
7109 _ACEOF
7110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null; then
7118 if test -s conftest.err; then
7119 ac_cpp_err=$ac_c_preproc_warn_flag
7120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7121 else
7122 ac_cpp_err=
7124 else
7125 ac_cpp_err=yes
7127 if test -z "$ac_cpp_err"; then
7128 # Broken: success on invalid input.
7129 continue
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 # Passes both tests.
7135 ac_preproc_ok=:
7136 break
7138 rm -f conftest.err conftest.$ac_ext
7140 done
7141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7142 rm -f conftest.err conftest.$ac_ext
7143 if $ac_preproc_ok; then
7144 break
7147 done
7148 ac_cv_prog_CPP=$CPP
7151 CPP=$ac_cv_prog_CPP
7152 else
7153 ac_cv_prog_CPP=$CPP
7155 echo "$as_me:$LINENO: result: $CPP" >&5
7156 echo "${ECHO_T}$CPP" >&6
7157 ac_preproc_ok=false
7158 for ac_c_preproc_warn_flag in '' yes
7160 # Use a header file that comes with gcc, so configuring glibc
7161 # with a fresh cross-compiler works.
7162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7163 # <limits.h> exists even on freestanding compilers.
7164 # On the NeXT, cc -E runs the code through the compiler's parser,
7165 # not just through cpp. "Syntax error" is here to catch this case.
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef __STDC__
7173 # include <limits.h>
7174 #else
7175 # include <assert.h>
7176 #endif
7177 Syntax error
7178 _ACEOF
7179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } >/dev/null; then
7187 if test -s conftest.err; then
7188 ac_cpp_err=$ac_c_preproc_warn_flag
7189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7190 else
7191 ac_cpp_err=
7193 else
7194 ac_cpp_err=yes
7196 if test -z "$ac_cpp_err"; then
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 # Broken: fails on valid input.
7203 continue
7205 rm -f conftest.err conftest.$ac_ext
7207 # OK, works on sane cases. Now check whether non-existent headers
7208 # can be detected and how.
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 #include <ac_nonexistent.h>
7216 _ACEOF
7217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } >/dev/null; then
7225 if test -s conftest.err; then
7226 ac_cpp_err=$ac_c_preproc_warn_flag
7227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7228 else
7229 ac_cpp_err=
7231 else
7232 ac_cpp_err=yes
7234 if test -z "$ac_cpp_err"; then
7235 # Broken: success on invalid input.
7236 continue
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 # Passes both tests.
7242 ac_preproc_ok=:
7243 break
7245 rm -f conftest.err conftest.$ac_ext
7247 done
7248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7249 rm -f conftest.err conftest.$ac_ext
7250 if $ac_preproc_ok; then
7252 else
7253 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7254 See \`config.log' for more details." >&5
7255 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7256 See \`config.log' for more details." >&2;}
7257 { (exit 1); exit 1; }; }
7260 ac_ext=c
7261 ac_cpp='$CPP $CPPFLAGS'
7262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267 echo "$as_me:$LINENO: checking for egrep" >&5
7268 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7269 if test "${ac_cv_prog_egrep+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7273 then ac_cv_prog_egrep='grep -E'
7274 else ac_cv_prog_egrep='egrep'
7277 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7278 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7279 EGREP=$ac_cv_prog_egrep
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 #include <stdint.h>
7290 _ACEOF
7291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7292 $EGREP "uint32_t" >/dev/null 2>&1; then
7294 cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_INT32_DEFINED 1
7296 _ACEOF
7299 rm -f conftest*
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <inttypes.h>
7309 _ACEOF
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 $EGREP "uint32_t" >/dev/null 2>&1; then
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_INT32_DEFINED 1
7315 _ACEOF
7318 rm -f conftest*
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h. */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 #include <sys/types.h>
7328 _ACEOF
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330 $EGREP "u_int32_t" >/dev/null 2>&1; then
7332 cat >>confdefs.h <<\_ACEOF
7333 #define HAVE_BSD_INT32_DEFINED 1
7334 _ACEOF
7337 rm -f conftest*
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 #include <sys/config.h>
7347 _ACEOF
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "u_int32_t" >/dev/null 2>&1; then
7351 cat >>confdefs.h <<\_ACEOF
7352 #define HAVE_BSD_INT32_DEFINED 1
7353 _ACEOF
7356 rm -f conftest*
7361 if test "$PLATFORM" = Win32; then
7362 USING_WIN32_PLATFORM_TRUE=
7363 USING_WIN32_PLATFORM_FALSE='#'
7364 else
7365 USING_WIN32_PLATFORM_TRUE='#'
7366 USING_WIN32_PLATFORM_FALSE=
7371 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7372 USING_POSIX_PLATFORM_TRUE=
7373 USING_POSIX_PLATFORM_FALSE='#'
7374 else
7375 USING_POSIX_PLATFORM_TRUE='#'
7376 USING_POSIX_PLATFORM_FALSE=
7380 case "$host" in
7381 *-darwin*) DARWIN_CRT=true ;;
7382 *) DARWIN_CRT=false ;;
7383 esac
7386 if $DARWIN_CRT; then
7387 USING_DARWIN_CRT_TRUE=
7388 USING_DARWIN_CRT_FALSE='#'
7389 else
7390 USING_DARWIN_CRT_TRUE='#'
7391 USING_DARWIN_CRT_FALSE=
7395 # These may not be defined in a non-ANS conformant embedded system.
7396 # FIXME: Should these case a runtime exception in that case?
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 #include <time.h>
7405 _ACEOF
7406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7407 $EGREP "mktime" >/dev/null 2>&1; then
7409 cat >>confdefs.h <<\_ACEOF
7410 #define HAVE_MKTIME 1
7411 _ACEOF
7414 rm -f conftest*
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 #include <time.h>
7424 _ACEOF
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426 $EGREP "localtime" >/dev/null 2>&1; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_LOCALTIME 1
7430 _ACEOF
7433 rm -f conftest*
7436 # Create the subdirectory for natFile.cc, or the attempt
7437 # to create the link will fail.
7438 test -d java || mkdir java
7439 test -d java/io || mkdir java/io
7440 test -d gnu || mkdir gnu
7441 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7444 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7445 test -d java/lang || mkdir java/lang
7446 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7448 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7451 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7452 test -d java/net || mkdir java/net
7453 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7455 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7458 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7459 test -d gnu/java || mkdir gnu/java
7460 test -d gnu/java/net || mkdir gnu/java/net
7461 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7463 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7466 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7467 test -d gnu/java/nio || mkdir gnu/java/nio
7468 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7470 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7472 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7473 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7476 case "${host}" in
7477 *mingw*)
7478 SYSTEMSPEC="-lgdi32 -lws2_32"
7479 if test "${with_win32_nlsapi}" = "unicows"; then
7480 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7484 SYSTEMSPEC=
7486 esac
7489 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7493 # Check whether --with-system-zlib or --without-system-zlib was given.
7494 if test "${with_system_zlib+set}" = set; then
7495 withval="$with_system_zlib"
7498 ZLIBSPEC=
7500 ZLIBTESTSPEC=
7503 echo "$as_me:$LINENO: checking for X" >&5
7504 echo $ECHO_N "checking for X... $ECHO_C" >&6
7507 # Check whether --with-x or --without-x was given.
7508 if test "${with_x+set}" = set; then
7509 withval="$with_x"
7512 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7513 if test "x$with_x" = xno; then
7514 # The user explicitly disabled X.
7515 have_x=disabled
7516 else
7517 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7518 # Both variables are already set.
7519 have_x=yes
7520 else
7521 if test "${ac_cv_have_x+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 # One or both of the vars are not set, and there is no cached value.
7525 ac_x_includes=no ac_x_libraries=no
7526 rm -fr conftest.dir
7527 if mkdir conftest.dir; then
7528 cd conftest.dir
7529 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7530 cat >Imakefile <<'_ACEOF'
7531 acfindx:
7532 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7533 _ACEOF
7534 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7535 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7536 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7537 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7538 for ac_extension in a so sl; do
7539 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7540 test -f $ac_im_libdir/libX11.$ac_extension; then
7541 ac_im_usrlibdir=$ac_im_libdir; break
7543 done
7544 # Screen out bogus values from the imake configuration. They are
7545 # bogus both because they are the default anyway, and because
7546 # using them would break gcc on systems where it needs fixed includes.
7547 case $ac_im_incroot in
7548 /usr/include) ;;
7549 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7550 esac
7551 case $ac_im_usrlibdir in
7552 /usr/lib | /lib) ;;
7553 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7554 esac
7556 cd ..
7557 rm -fr conftest.dir
7560 # Standard set of common directories for X headers.
7561 # Check X11 before X11Rn because it is often a symlink to the current release.
7562 ac_x_header_dirs='
7563 /usr/X11/include
7564 /usr/X11R6/include
7565 /usr/X11R5/include
7566 /usr/X11R4/include
7568 /usr/include/X11
7569 /usr/include/X11R6
7570 /usr/include/X11R5
7571 /usr/include/X11R4
7573 /usr/local/X11/include
7574 /usr/local/X11R6/include
7575 /usr/local/X11R5/include
7576 /usr/local/X11R4/include
7578 /usr/local/include/X11
7579 /usr/local/include/X11R6
7580 /usr/local/include/X11R5
7581 /usr/local/include/X11R4
7583 /usr/X386/include
7584 /usr/x386/include
7585 /usr/XFree86/include/X11
7587 /usr/include
7588 /usr/local/include
7589 /usr/unsupported/include
7590 /usr/athena/include
7591 /usr/local/x11r5/include
7592 /usr/lpp/Xamples/include
7594 /usr/openwin/include
7595 /usr/openwin/share/include'
7597 if test "$ac_x_includes" = no; then
7598 # Guess where to find include files, by looking for Xlib.h.
7599 # First, try using that file with no special directory specified.
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 #include <X11/Xlib.h>
7607 _ACEOF
7608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7610 ac_status=$?
7611 grep -v '^ *+' conftest.er1 >conftest.err
7612 rm -f conftest.er1
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } >/dev/null; then
7616 if test -s conftest.err; then
7617 ac_cpp_err=$ac_c_preproc_warn_flag
7618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7619 else
7620 ac_cpp_err=
7622 else
7623 ac_cpp_err=yes
7625 if test -z "$ac_cpp_err"; then
7626 # We can compile using X headers with no special include directory.
7627 ac_x_includes=
7628 else
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7632 for ac_dir in $ac_x_header_dirs; do
7633 if test -r "$ac_dir/X11/Xlib.h"; then
7634 ac_x_includes=$ac_dir
7635 break
7637 done
7639 rm -f conftest.err conftest.$ac_ext
7640 fi # $ac_x_includes = no
7642 if test "$ac_x_libraries" = no; then
7643 # Check for the libraries.
7644 # See if we find them without any special options.
7645 # Don't add to $LIBS permanently.
7646 ac_save_LIBS=$LIBS
7647 LIBS="-lXt $LIBS"
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. */
7659 #include <X11/Xlib.h>
7661 main ()
7663 XrmInitialize ()
7665 return 0;
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag"
7678 || test ! -s conftest.err'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } &&
7684 { ac_try='test -s conftest$ac_exeext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 LIBS=$ac_save_LIBS
7691 # We can link X programs with no special library path.
7692 ac_x_libraries=
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 LIBS=$ac_save_LIBS
7698 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7700 # Don't even attempt the hair of trying to link an X program!
7701 for ac_extension in a so sl; do
7702 if test -r $ac_dir/libXt.$ac_extension; then
7703 ac_x_libraries=$ac_dir
7704 break 2
7706 done
7707 done
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 fi # $ac_x_libraries = no
7713 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7714 # Didn't find X anywhere. Cache the known absence of X.
7715 ac_cv_have_x="have_x=no"
7716 else
7717 # Record where we found X for the cache.
7718 ac_cv_have_x="have_x=yes \
7719 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7724 eval "$ac_cv_have_x"
7725 fi # $with_x != no
7727 if test "$have_x" != yes; then
7728 echo "$as_me:$LINENO: result: $have_x" >&5
7729 echo "${ECHO_T}$have_x" >&6
7730 no_x=yes
7731 else
7732 # If each of the values was on the command line, it overrides each guess.
7733 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7734 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7735 # Update the cache value to reflect the command line values.
7736 ac_cv_have_x="have_x=yes \
7737 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7738 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7739 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7742 if test "$no_x" = yes; then
7743 # Not all programs may use this symbol, but it does not hurt to define it.
7745 cat >>confdefs.h <<\_ACEOF
7746 #define X_DISPLAY_MISSING 1
7747 _ACEOF
7749 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7750 else
7751 if test -n "$x_includes"; then
7752 X_CFLAGS="$X_CFLAGS -I$x_includes"
7755 # It would also be nice to do this for all -L options, not just this one.
7756 if test -n "$x_libraries"; then
7757 X_LIBS="$X_LIBS -L$x_libraries"
7758 # For Solaris; some versions of Sun CC require a space after -R and
7759 # others require no space. Words are not sufficient . . . .
7760 case `(uname -sr) 2>/dev/null` in
7761 "SunOS 5"*)
7762 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7763 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7764 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7765 if test x$gcc_no_link = xyes; then
7766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7768 { (exit 1); exit 1; }; }
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7778 main ()
7782 return 0;
7784 _ACEOF
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>conftest.er1
7788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag"
7795 || test ! -s conftest.err'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 (eval $ac_try) 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; } &&
7801 { ac_try='test -s conftest$ac_exeext'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 (eval $ac_try) 2>&5
7804 ac_status=$?
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7807 ac_R_nospace=yes
7808 else
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_R_nospace=no
7814 rm -f conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7816 if test $ac_R_nospace = yes; then
7817 echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6
7819 X_LIBS="$X_LIBS -R$x_libraries"
7820 else
7821 LIBS="$ac_xsave_LIBS -R $x_libraries"
7822 if test x$gcc_no_link = xyes; then
7823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7825 { (exit 1); exit 1; }; }
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7835 main ()
7839 return 0;
7841 _ACEOF
7842 rm -f conftest.$ac_objext conftest$ac_exeext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7844 (eval $ac_link) 2>conftest.er1
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -z "$ac_c_werror_flag"
7852 || test ! -s conftest.err'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 (eval $ac_try) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; } &&
7858 { ac_try='test -s conftest$ac_exeext'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 (eval $ac_try) 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_R_space=yes
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_R_space=no
7871 rm -f conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7873 if test $ac_R_space = yes; then
7874 echo "$as_me:$LINENO: result: yes" >&5
7875 echo "${ECHO_T}yes" >&6
7876 X_LIBS="$X_LIBS -R $x_libraries"
7877 else
7878 echo "$as_me:$LINENO: result: neither works" >&5
7879 echo "${ECHO_T}neither works" >&6
7882 LIBS=$ac_xsave_LIBS
7883 esac
7886 # Check for system-dependent libraries X programs must link with.
7887 # Do this before checking for the system-independent R6 libraries
7888 # (-lICE), since we may need -lsocket or whatever for X linking.
7890 if test "$ISC" = yes; then
7891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7892 else
7893 # Martyn Johnson says this is needed for Ultrix, if the X
7894 # libraries were built with DECnet support. And Karl Berry says
7895 # the Alpha needs dnet_stub (dnet does not exist).
7896 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7897 if test x$gcc_no_link = xyes; then
7898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7900 { (exit 1); exit 1; }; }
7902 cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h. */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 #ifdef __cplusplus
7911 extern "C"
7912 #endif
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7915 char XOpenDisplay ();
7917 main ()
7919 XOpenDisplay ();
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
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7952 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7953 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 ac_check_lib_save_LIBS=$LIBS
7957 LIBS="-ldnet $LIBS"
7958 if test x$gcc_no_link = xyes; then
7959 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7961 { (exit 1); exit 1; }; }
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h. */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7970 /* Override any gcc2 internal prototype to avoid an error. */
7971 #ifdef __cplusplus
7972 extern "C"
7973 #endif
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7976 char dnet_ntoa ();
7978 main ()
7980 dnet_ntoa ();
7982 return 0;
7984 _ACEOF
7985 rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7987 (eval $ac_link) 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag"
7995 || test ! -s conftest.err'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest$ac_exeext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_cv_lib_dnet_dnet_ntoa=yes
8008 else
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 ac_cv_lib_dnet_dnet_ntoa=no
8014 rm -f conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016 LIBS=$ac_check_lib_save_LIBS
8018 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8019 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8020 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8021 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8024 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8025 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8026 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8027 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 ac_check_lib_save_LIBS=$LIBS
8031 LIBS="-ldnet_stub $LIBS"
8032 if test x$gcc_no_link = xyes; then
8033 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8035 { (exit 1); exit 1; }; }
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8044 /* Override any gcc2 internal prototype to avoid an error. */
8045 #ifdef __cplusplus
8046 extern "C"
8047 #endif
8048 /* We use char because int might match the return type of a gcc2
8049 builtin and then its argument prototype would still apply. */
8050 char dnet_ntoa ();
8052 main ()
8054 dnet_ntoa ();
8056 return 0;
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag"
8069 || test ! -s conftest.err'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8082 else
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8086 ac_cv_lib_dnet_stub_dnet_ntoa=no
8088 rm -f conftest.err conftest.$ac_objext \
8089 conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8092 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8093 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8094 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8095 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8100 rm -f conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102 LIBS="$ac_xsave_LIBS"
8104 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8105 # to get the SysV transport functions.
8106 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8107 # needs -lnsl.
8108 # The nsl library prevents programs from opening the X display
8109 # on Irix 5.2, according to T.E. Dickey.
8110 # The functions gethostbyname, getservbyname, and inet_addr are
8111 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8112 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8113 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8114 if test "${ac_cv_func_gethostbyname+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117 if test x$gcc_no_link = xyes; then
8118 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8120 { (exit 1); exit 1; }; }
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8130 #define gethostbyname innocuous_gethostbyname
8132 /* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char gethostbyname (); below.
8134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135 <limits.h> exists even on freestanding compilers. */
8137 #ifdef __STDC__
8138 # include <limits.h>
8139 #else
8140 # include <assert.h>
8141 #endif
8143 #undef gethostbyname
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 #ifdef __cplusplus
8147 extern "C"
8149 #endif
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152 char gethostbyname ();
8153 /* The GNU C library defines this for functions which it implements
8154 to always fail with ENOSYS. Some functions are actually named
8155 something starting with __ and the normal name is an alias. */
8156 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8157 choke me
8158 #else
8159 char (*f) () = gethostbyname;
8160 #endif
8161 #ifdef __cplusplus
8163 #endif
8166 main ()
8168 return f != gethostbyname;
8170 return 0;
8172 _ACEOF
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag"
8183 || test ! -s conftest.err'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest$ac_exeext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_func_gethostbyname=yes
8196 else
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8200 ac_cv_func_gethostbyname=no
8202 rm -f conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8205 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8206 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8208 if test $ac_cv_func_gethostbyname = no; then
8209 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8210 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8211 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 ac_check_lib_save_LIBS=$LIBS
8215 LIBS="-lnsl $LIBS"
8216 if test x$gcc_no_link = xyes; then
8217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8219 { (exit 1); exit 1; }; }
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8228 /* Override any gcc2 internal prototype to avoid an error. */
8229 #ifdef __cplusplus
8230 extern "C"
8231 #endif
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8234 char gethostbyname ();
8236 main ()
8238 gethostbyname ();
8240 return 0;
8242 _ACEOF
8243 rm -f conftest.$ac_objext conftest$ac_exeext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag"
8253 || test ! -s conftest.err'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; } &&
8259 { ac_try='test -s conftest$ac_exeext'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_lib_nsl_gethostbyname=yes
8266 else
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8270 ac_cv_lib_nsl_gethostbyname=no
8272 rm -f conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274 LIBS=$ac_check_lib_save_LIBS
8276 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8277 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8278 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8282 if test $ac_cv_lib_nsl_gethostbyname = no; then
8283 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8284 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8285 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 ac_check_lib_save_LIBS=$LIBS
8289 LIBS="-lbsd $LIBS"
8290 if test x$gcc_no_link = xyes; then
8291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8293 { (exit 1); exit 1; }; }
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 /* Override any gcc2 internal prototype to avoid an error. */
8303 #ifdef __cplusplus
8304 extern "C"
8305 #endif
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8308 char gethostbyname ();
8310 main ()
8312 gethostbyname ();
8314 return 0;
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_lib_bsd_gethostbyname=yes
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_lib_bsd_gethostbyname=no
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 LIBS=$ac_check_lib_save_LIBS
8350 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8351 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8352 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8359 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8360 # socket/setsockopt and other routines are undefined under SCO ODT
8361 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8362 # on later versions), says Simon Leinen: it contains gethostby*
8363 # variants that don't use the name server (or something). -lsocket
8364 # must be given before -lnsl if both are needed. We assume that
8365 # if connect needs -lnsl, so does gethostbyname.
8366 echo "$as_me:$LINENO: checking for connect" >&5
8367 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8368 if test "${ac_cv_func_connect+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371 if test x$gcc_no_link = xyes; then
8372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8374 { (exit 1); exit 1; }; }
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8384 #define connect innocuous_connect
8386 /* System header to define __stub macros and hopefully few prototypes,
8387 which can conflict with char connect (); below.
8388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389 <limits.h> exists even on freestanding compilers. */
8391 #ifdef __STDC__
8392 # include <limits.h>
8393 #else
8394 # include <assert.h>
8395 #endif
8397 #undef connect
8399 /* Override any gcc2 internal prototype to avoid an error. */
8400 #ifdef __cplusplus
8401 extern "C"
8403 #endif
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8406 char connect ();
8407 /* The GNU C library defines this for functions which it implements
8408 to always fail with ENOSYS. Some functions are actually named
8409 something starting with __ and the normal name is an alias. */
8410 #if defined (__stub_connect) || defined (__stub___connect)
8411 choke me
8412 #else
8413 char (*f) () = connect;
8414 #endif
8415 #ifdef __cplusplus
8417 #endif
8420 main ()
8422 return f != connect;
8424 return 0;
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
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); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_func_connect=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_cv_func_connect=no
8456 rm -f conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8460 echo "${ECHO_T}$ac_cv_func_connect" >&6
8462 if test $ac_cv_func_connect = no; then
8463 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8464 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8465 if test "${ac_cv_lib_socket_connect+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 ac_check_lib_save_LIBS=$LIBS
8469 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8470 if test x$gcc_no_link = xyes; then
8471 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8472 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8473 { (exit 1); exit 1; }; }
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h. */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8482 /* Override any gcc2 internal prototype to avoid an error. */
8483 #ifdef __cplusplus
8484 extern "C"
8485 #endif
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8488 char connect ();
8490 main ()
8492 connect ();
8494 return 0;
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>conftest.er1
8500 ac_status=$?
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag"
8507 || test ! -s conftest.err'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; } &&
8513 { ac_try='test -s conftest$ac_exeext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 (eval $ac_try) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_lib_socket_connect=yes
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_cv_lib_socket_connect=no
8526 rm -f conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8528 LIBS=$ac_check_lib_save_LIBS
8530 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8531 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8532 if test $ac_cv_lib_socket_connect = yes; then
8533 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8538 # Guillermo Gomez says -lposix is necessary on A/UX.
8539 echo "$as_me:$LINENO: checking for remove" >&5
8540 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8541 if test "${ac_cv_func_remove+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544 if test x$gcc_no_link = xyes; then
8545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8547 { (exit 1); exit 1; }; }
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8557 #define remove innocuous_remove
8559 /* System header to define __stub macros and hopefully few prototypes,
8560 which can conflict with char remove (); below.
8561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8562 <limits.h> exists even on freestanding compilers. */
8564 #ifdef __STDC__
8565 # include <limits.h>
8566 #else
8567 # include <assert.h>
8568 #endif
8570 #undef remove
8572 /* Override any gcc2 internal prototype to avoid an error. */
8573 #ifdef __cplusplus
8574 extern "C"
8576 #endif
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8579 char remove ();
8580 /* The GNU C library defines this for functions which it implements
8581 to always fail with ENOSYS. Some functions are actually named
8582 something starting with __ and the normal name is an alias. */
8583 #if defined (__stub_remove) || defined (__stub___remove)
8584 choke me
8585 #else
8586 char (*f) () = remove;
8587 #endif
8588 #ifdef __cplusplus
8590 #endif
8593 main ()
8595 return f != remove;
8597 return 0;
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
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); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_func_remove=yes
8623 else
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_cv_func_remove=no
8629 rm -f conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8632 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8633 echo "${ECHO_T}$ac_cv_func_remove" >&6
8635 if test $ac_cv_func_remove = no; then
8636 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8637 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8638 if test "${ac_cv_lib_posix_remove+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641 ac_check_lib_save_LIBS=$LIBS
8642 LIBS="-lposix $LIBS"
8643 if test x$gcc_no_link = xyes; then
8644 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8646 { (exit 1); exit 1; }; }
8648 cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h. */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 #ifdef __cplusplus
8657 extern "C"
8658 #endif
8659 /* We use char because int might match the return type of a gcc2
8660 builtin and then its argument prototype would still apply. */
8661 char remove ();
8663 main ()
8665 remove ();
8667 return 0;
8669 _ACEOF
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>conftest.er1
8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest$ac_exeext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_lib_posix_remove=yes
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_cv_lib_posix_remove=no
8699 rm -f conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8703 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8704 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8705 if test $ac_cv_lib_posix_remove = yes; then
8706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8711 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8712 echo "$as_me:$LINENO: checking for shmat" >&5
8713 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8714 if test "${ac_cv_func_shmat+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717 if test x$gcc_no_link = xyes; then
8718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8720 { (exit 1); exit 1; }; }
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8730 #define shmat innocuous_shmat
8732 /* System header to define __stub macros and hopefully few prototypes,
8733 which can conflict with char shmat (); below.
8734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8735 <limits.h> exists even on freestanding compilers. */
8737 #ifdef __STDC__
8738 # include <limits.h>
8739 #else
8740 # include <assert.h>
8741 #endif
8743 #undef shmat
8745 /* Override any gcc2 internal prototype to avoid an error. */
8746 #ifdef __cplusplus
8747 extern "C"
8749 #endif
8750 /* We use char because int might match the return type of a gcc2
8751 builtin and then its argument prototype would still apply. */
8752 char shmat ();
8753 /* The GNU C library defines this for functions which it implements
8754 to always fail with ENOSYS. Some functions are actually named
8755 something starting with __ and the normal name is an alias. */
8756 #if defined (__stub_shmat) || defined (__stub___shmat)
8757 choke me
8758 #else
8759 char (*f) () = shmat;
8760 #endif
8761 #ifdef __cplusplus
8763 #endif
8766 main ()
8768 return f != shmat;
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext conftest$ac_exeext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8775 (eval $ac_link) 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_c_werror_flag"
8783 || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest$ac_exeext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_cv_func_shmat=yes
8796 else
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_func_shmat=no
8802 rm -f conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8805 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8806 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8808 if test $ac_cv_func_shmat = no; then
8809 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8810 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8811 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-lipc $LIBS"
8816 if test x$gcc_no_link = xyes; then
8817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8819 { (exit 1); exit 1; }; }
8821 cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h. */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8828 /* Override any gcc2 internal prototype to avoid an error. */
8829 #ifdef __cplusplus
8830 extern "C"
8831 #endif
8832 /* We use char because int might match the return type of a gcc2
8833 builtin and then its argument prototype would still apply. */
8834 char shmat ();
8836 main ()
8838 shmat ();
8840 return 0;
8842 _ACEOF
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845 (eval $ac_link) 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_lib_ipc_shmat=yes
8866 else
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_cv_lib_ipc_shmat=no
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 LIBS=$ac_check_lib_save_LIBS
8876 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8877 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8878 if test $ac_cv_lib_ipc_shmat = yes; then
8879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8885 # Check for libraries that X11R6 Xt/Xaw programs need.
8886 ac_save_LDFLAGS=$LDFLAGS
8887 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8888 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8889 # check for ICE first), but we must link in the order -lSM -lICE or
8890 # we get undefined symbols. So assume we have SM if we have ICE.
8891 # These have to be linked with before -lX11, unlike the other
8892 # libraries we check for below, so use a different variable.
8893 # John Interrante, Karl Berry
8894 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8895 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8896 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8901 if test x$gcc_no_link = xyes; then
8902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8904 { (exit 1); exit 1; }; }
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 /* Override any gcc2 internal prototype to avoid an error. */
8914 #ifdef __cplusplus
8915 extern "C"
8916 #endif
8917 /* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8919 char IceConnectionNumber ();
8921 main ()
8923 IceConnectionNumber ();
8925 return 0;
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930 (eval $ac_link) 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag"
8938 || test ! -s conftest.err'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; } &&
8944 { ac_try='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_lib_ICE_IceConnectionNumber=yes
8951 else
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8955 ac_cv_lib_ICE_IceConnectionNumber=no
8957 rm -f conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 LIBS=$ac_check_lib_save_LIBS
8961 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8962 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8963 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8964 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8967 LDFLAGS=$ac_save_LDFLAGS
8972 # FIXME: this should be _libs on some hosts.
8973 libsubdir=.libs
8975 # extra LD Flags which are required for targets
8976 case "${host}" in
8977 *-*-darwin[0-7].*)
8978 # For now we have to disable it on darwin[8-9] because it slows down
8979 # the linking phase. A possible bug in ld?
8980 # on Darwin -single_module speeds up loading of the dynamic libraries.
8981 extra_ldflags_libjava=-Wl,-single_module
8983 esac
8986 # Allow the GC to be disabled. Can be useful when debugging.
8987 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8988 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8989 # Check whether --enable-java-gc or --disable-java-gc was given.
8990 if test "${enable_java_gc+set}" = set; then
8991 enableval="$enable_java_gc"
8992 GC=$enableval
8993 else
8994 GC=boehm
8996 GCLIBS=
8997 GCINCS=
8998 GCDEPS=
8999 GCSPEC=
9000 JC1GCSPEC=
9001 GCTESTSPEC=
9002 case "$GC" in
9003 boehm)
9004 echo "$as_me:$LINENO: result: boehm" >&5
9005 echo "${ECHO_T}boehm" >&6
9006 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9007 JC1GCSPEC='-fuse-boehm-gc'
9008 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9009 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9010 GCOBJS=boehm.lo
9011 GCHDR=boehm-gc.h
9012 # The POSIX thread support needs to know this.
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_BOEHM_GC 1
9016 _ACEOF
9020 echo "$as_me:$LINENO: result: none" >&5
9021 echo "${ECHO_T}none" >&6
9022 GCHDR=no-gc.h
9025 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9026 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9027 { (exit 1); exit 1; }; }
9029 esac
9036 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9040 if test "$GC" = boehm; then
9041 USING_BOEHMGC_TRUE=
9042 USING_BOEHMGC_FALSE='#'
9043 else
9044 USING_BOEHMGC_TRUE='#'
9045 USING_BOEHMGC_FALSE=
9050 if test "$GC" = no; then
9051 USING_NOGC_TRUE=
9052 USING_NOGC_FALSE='#'
9053 else
9054 USING_NOGC_TRUE='#'
9055 USING_NOGC_FALSE=
9060 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9061 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9062 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9063 echo "$as_me:$LINENO: result: $THREADS" >&5
9064 echo "${ECHO_T}$THREADS" >&6
9066 case "$THREADS" in
9067 no | none | single)
9068 THREADS=none
9070 posix | posix95 | pthreads)
9071 THREADS=posix
9072 case "$host" in
9073 *-*-linux*)
9075 cat >>confdefs.h <<\_ACEOF
9076 #define LINUX_THREADS 1
9077 _ACEOF
9080 esac
9082 win32)
9084 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9085 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9086 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9087 { (exit 1); exit 1; }; }
9090 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9091 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9092 { (exit 1); exit 1; }; }
9094 esac
9096 THREADCXXFLAGS=
9097 THREADLDFLAGS=
9098 THREADLIBS=
9099 THREADINCS=
9100 THREADDEPS=
9101 THREADH=
9102 THREADSPEC=
9103 case "$THREADS" in
9104 posix)
9105 case "$host" in
9106 *-*-cygwin*)
9107 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9109 *-*-freebsd[1234]*)
9110 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9111 # merely adds pthread_* functions) but it does have a -pthread switch
9112 # which is required at link-time to select -lc_r *instead* of -lc.
9113 THREADLDFLAGS=-pthread
9114 # Don't set THREADSPEC here as might be expected since -pthread is
9115 # not processed when found within a spec file, it must come from
9116 # the command line. For now, the user must provide the -pthread
9117 # switch to link code compiled with gcj. In future, consider adding
9118 # support for weak references to pthread_* functions ala gthr.h API.
9119 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9121 *-*-freebsd*)
9122 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9123 # systems which support threads and -lpthread.
9124 THREADLDFLAGS=-pthread
9125 THREADSPEC=-lpthread
9127 alpha*-dec-osf* | hppa*-hp-hpux*)
9128 THREADCXXFLAGS=-pthread
9129 # boehm-gc needs some functions from librt, so link that too.
9130 THREADLIBS='-lpthread -lrt'
9131 THREADSPEC='-lpthread -lrt'
9134 THREADLIBS=-lpthread
9135 THREADSPEC=-lpthread
9137 esac
9138 THREADH=posix-threads.h
9139 # MIT pthreads doesn't seem to have the mutexattr functions.
9140 # But for now we don't check for it. We just assume you aren't
9141 # using MIT pthreads.
9143 cat >>confdefs.h <<\_ACEOF
9144 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9145 _ACEOF
9148 # If we're using the Boehm GC, then we happen to know that it
9149 # defines _REENTRANT, so we don't bother. Eww.
9150 if test "$GC" != boehm; then
9152 cat >>confdefs.h <<\_ACEOF
9153 #define _REENTRANT 1
9154 _ACEOF
9158 cat >>confdefs.h <<\_ACEOF
9159 #define _POSIX_PTHREAD_SEMANTICS 1
9160 _ACEOF
9164 win32)
9165 THREADH=win32-threads.h
9168 none)
9169 THREADH=no-threads.h
9171 esac
9172 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9182 if test "$THREADS" = posix; then
9183 USING_POSIX_THREADS_TRUE=
9184 USING_POSIX_THREADS_FALSE='#'
9185 else
9186 USING_POSIX_THREADS_TRUE='#'
9187 USING_POSIX_THREADS_FALSE=
9192 if test "$THREADS" = win32; then
9193 USING_WIN32_THREADS_TRUE=
9194 USING_WIN32_THREADS_FALSE='#'
9195 else
9196 USING_WIN32_THREADS_TRUE='#'
9197 USING_WIN32_THREADS_FALSE=
9202 if test "$THREADS" = none; then
9203 USING_NO_THREADS_TRUE=
9204 USING_NO_THREADS_FALSE='#'
9205 else
9206 USING_NO_THREADS_TRUE='#'
9207 USING_NO_THREADS_FALSE=
9211 if test -d sysdep; then true; else mkdir sysdep; fi
9212 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9214 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9216 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9219 HASH_SYNC_SPEC=
9220 # Hash synchronization is only useful with posix threads right now.
9221 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9222 HASH_SYNC_SPEC=-fhash-synchronization
9224 cat >>confdefs.h <<\_ACEOF
9225 #define JV_HASH_SYNCHRONIZATION 1
9226 _ACEOF
9233 if test "$GCC" = yes; then
9234 USING_GCC_TRUE=
9235 USING_GCC_FALSE='#'
9236 else
9237 USING_GCC_TRUE='#'
9238 USING_GCC_FALSE=
9242 # We're in the tree with gcc, and need to include some of its headers.
9243 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9245 if test "x${with_newlib}" = "xyes"; then
9246 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9247 # may not work correctly, because the compiler may not be able to
9248 # link executables.
9250 # We assume newlib. This lets us hard-code the functions we know
9251 # we'll have.
9253 cat >>confdefs.h <<\_ACEOF
9254 #define HAVE_MEMMOVE 1
9255 _ACEOF
9258 cat >>confdefs.h <<\_ACEOF
9259 #define HAVE_MEMCPY 1
9260 _ACEOF
9263 cat >>confdefs.h <<\_ACEOF
9264 #define HAVE_STRERROR 1
9265 _ACEOF
9268 cat >>confdefs.h <<\_ACEOF
9269 #define HAVE_TIME 1
9270 _ACEOF
9273 cat >>confdefs.h <<\_ACEOF
9274 #define HAVE_GMTIME_R 1
9275 _ACEOF
9278 cat >>confdefs.h <<\_ACEOF
9279 #define HAVE_LOCALTIME_R 1
9280 _ACEOF
9283 cat >>confdefs.h <<\_ACEOF
9284 #define HAVE_USLEEP_DECL 1
9285 _ACEOF
9287 # This is only for POSIX threads.
9289 cat >>confdefs.h <<\_ACEOF
9290 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9291 _ACEOF
9293 # We also assume we are using gcc, which provides alloca.
9294 cat >>confdefs.h <<\_ACEOF
9295 #define HAVE_ALLOCA 1
9296 _ACEOF
9299 # Assume we do not have getuid and friends.
9301 cat >>confdefs.h <<\_ACEOF
9302 #define NO_GETUID 1
9303 _ACEOF
9305 PLATFORMNET=NoNet
9306 else
9341 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9342 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9343 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9344 nl_langinfo setlocale \
9345 inet_pton uname inet_ntoa \
9346 fork execvp pipe sigaction ftruncate mmap
9348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9349 echo "$as_me:$LINENO: checking for $ac_func" >&5
9350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9351 if eval "test \"\${$as_ac_var+set}\" = set"; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354 if test x$gcc_no_link = xyes; then
9355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9357 { (exit 1); exit 1; }; }
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9367 #define $ac_func innocuous_$ac_func
9369 /* System header to define __stub macros and hopefully few prototypes,
9370 which can conflict with char $ac_func (); below.
9371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9372 <limits.h> exists even on freestanding compilers. */
9374 #ifdef __STDC__
9375 # include <limits.h>
9376 #else
9377 # include <assert.h>
9378 #endif
9380 #undef $ac_func
9382 /* Override any gcc2 internal prototype to avoid an error. */
9383 #ifdef __cplusplus
9384 extern "C"
9386 #endif
9387 /* We use char because int might match the return type of a gcc2
9388 builtin and then its argument prototype would still apply. */
9389 char $ac_func ();
9390 /* The GNU C library defines this for functions which it implements
9391 to always fail with ENOSYS. Some functions are actually named
9392 something starting with __ and the normal name is an alias. */
9393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9394 choke me
9395 #else
9396 char (*f) () = $ac_func;
9397 #endif
9398 #ifdef __cplusplus
9400 #endif
9403 main ()
9405 return f != $ac_func;
9407 return 0;
9409 _ACEOF
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag"
9420 || test ! -s conftest.err'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 eval "$as_ac_var=yes"
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 eval "$as_ac_var=no"
9439 rm -f conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9444 if test `eval echo '${'$as_ac_var'}'` = yes; then
9445 cat >>confdefs.h <<_ACEOF
9446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9447 _ACEOF
9450 done
9454 for ac_func in inet_aton inet_addr
9456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9457 echo "$as_me:$LINENO: checking for $ac_func" >&5
9458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9459 if eval "test \"\${$as_ac_var+set}\" = set"; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 if test x$gcc_no_link = xyes; then
9463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9464 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9465 { (exit 1); exit 1; }; }
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h. */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9475 #define $ac_func innocuous_$ac_func
9477 /* System header to define __stub macros and hopefully few prototypes,
9478 which can conflict with char $ac_func (); below.
9479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9480 <limits.h> exists even on freestanding compilers. */
9482 #ifdef __STDC__
9483 # include <limits.h>
9484 #else
9485 # include <assert.h>
9486 #endif
9488 #undef $ac_func
9490 /* Override any gcc2 internal prototype to avoid an error. */
9491 #ifdef __cplusplus
9492 extern "C"
9494 #endif
9495 /* We use char because int might match the return type of a gcc2
9496 builtin and then its argument prototype would still apply. */
9497 char $ac_func ();
9498 /* The GNU C library defines this for functions which it implements
9499 to always fail with ENOSYS. Some functions are actually named
9500 something starting with __ and the normal name is an alias. */
9501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9502 choke me
9503 #else
9504 char (*f) () = $ac_func;
9505 #endif
9506 #ifdef __cplusplus
9508 #endif
9511 main ()
9513 return f != $ac_func;
9515 return 0;
9517 _ACEOF
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9520 (eval $ac_link) 2>conftest.er1
9521 ac_status=$?
9522 grep -v '^ *+' conftest.er1 >conftest.err
9523 rm -f conftest.er1
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } &&
9527 { ac_try='test -z "$ac_c_werror_flag"
9528 || test ! -s conftest.err'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; } &&
9534 { ac_try='test -s conftest$ac_exeext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 eval "$as_ac_var=yes"
9541 else
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9545 eval "$as_ac_var=no"
9547 rm -f conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
9550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9552 if test `eval echo '${'$as_ac_var'}'` = yes; then
9553 cat >>confdefs.h <<_ACEOF
9554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9555 _ACEOF
9556 break
9558 done
9560 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9561 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9562 if test "${ac_cv_header_stdc+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h. */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9571 #include <stdlib.h>
9572 #include <stdarg.h>
9573 #include <string.h>
9574 #include <float.h>
9577 main ()
9581 return 0;
9583 _ACEOF
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag"
9594 || test ! -s conftest.err'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 ac_cv_header_stdc=yes
9607 else
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 ac_cv_header_stdc=no
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9615 if test $ac_cv_header_stdc = yes; then
9616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h. */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 #include <string.h>
9625 _ACEOF
9626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9627 $EGREP "memchr" >/dev/null 2>&1; then
9629 else
9630 ac_cv_header_stdc=no
9632 rm -f conftest*
9636 if test $ac_cv_header_stdc = yes; then
9637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 #include <stdlib.h>
9646 _ACEOF
9647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9648 $EGREP "free" >/dev/null 2>&1; then
9650 else
9651 ac_cv_header_stdc=no
9653 rm -f conftest*
9657 if test $ac_cv_header_stdc = yes; then
9658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9659 if test "$cross_compiling" = yes; then
9661 else
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 #include <ctype.h>
9669 #if ((' ' & 0x0FF) == 0x020)
9670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9672 #else
9673 # define ISLOWER(c) \
9674 (('a' <= (c) && (c) <= 'i') \
9675 || ('j' <= (c) && (c) <= 'r') \
9676 || ('s' <= (c) && (c) <= 'z'))
9677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9678 #endif
9680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9682 main ()
9684 int i;
9685 for (i = 0; i < 256; i++)
9686 if (XOR (islower (i), ISLOWER (i))
9687 || toupper (i) != TOUPPER (i))
9688 exit(2);
9689 exit (0);
9691 _ACEOF
9692 rm -f conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9704 else
9705 echo "$as_me: program exited with status $ac_status" >&5
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9709 ( exit $ac_status )
9710 ac_cv_header_stdc=no
9712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9716 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9717 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9718 if test $ac_cv_header_stdc = yes; then
9720 cat >>confdefs.h <<\_ACEOF
9721 #define STDC_HEADERS 1
9722 _ACEOF
9726 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9736 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9737 inttypes.h stdint.h unistd.h
9739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9740 echo "$as_me:$LINENO: checking for $ac_header" >&5
9741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 $ac_includes_default
9753 #include <$ac_header>
9754 _ACEOF
9755 rm -f conftest.$ac_objext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757 (eval $ac_compile) 2>conftest.er1
9758 ac_status=$?
9759 grep -v '^ *+' conftest.er1 >conftest.err
9760 rm -f conftest.er1
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -z "$ac_c_werror_flag"
9765 || test ! -s conftest.err'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest.$ac_objext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 eval "$as_ac_Header=yes"
9778 else
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 eval "$as_ac_Header=no"
9784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9791 _ACEOF
9795 done
9801 for ac_header in execinfo.h unistd.h dlfcn.h
9803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9805 echo "$as_me:$LINENO: checking for $ac_header" >&5
9806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9812 else
9813 # Is the header compilable?
9814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9823 #include <$ac_header>
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827 (eval $ac_compile) 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag"
9835 || test ! -s conftest.err'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest.$ac_objext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_header_compiler=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_header_compiler=no
9854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9856 echo "${ECHO_T}$ac_header_compiler" >&6
9858 # Is the header present?
9859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9861 cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h. */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867 #include <$ac_header>
9868 _ACEOF
9869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } >/dev/null; then
9877 if test -s conftest.err; then
9878 ac_cpp_err=$ac_c_preproc_warn_flag
9879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9880 else
9881 ac_cpp_err=
9883 else
9884 ac_cpp_err=yes
9886 if test -z "$ac_cpp_err"; then
9887 ac_header_preproc=yes
9888 else
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 ac_header_preproc=no
9894 rm -f conftest.err conftest.$ac_ext
9895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9896 echo "${ECHO_T}$ac_header_preproc" >&6
9898 # So? What about this header?
9899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9900 yes:no: )
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9905 ac_header_preproc=yes
9907 no:yes:* )
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9921 cat <<\_ASBOX
9922 ## ---------------------------------- ##
9923 ## Report this to the libjava lists. ##
9924 ## ---------------------------------- ##
9925 _ASBOX
9927 sed "s/^/$as_me: WARNING: /" >&2
9929 esac
9930 echo "$as_me:$LINENO: checking for $ac_header" >&5
9931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935 eval "$as_ac_Header=\$ac_header_preproc"
9937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9942 cat >>confdefs.h <<_ACEOF
9943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9944 _ACEOF
9948 done
9950 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
9951 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9952 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9953 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956 ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-ldl $LIBS"
9958 if test x$gcc_no_link = xyes; then
9959 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9961 { (exit 1); exit 1; }; }
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 /* Override any gcc2 internal prototype to avoid an error. */
9971 #ifdef __cplusplus
9972 extern "C"
9973 #endif
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9976 char dladdr ();
9978 main ()
9980 dladdr ();
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_lib_dl_dladdr=yes
10008 else
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_cv_lib_dl_dladdr=no
10014 rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LIBS=$ac_check_lib_save_LIBS
10018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10019 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10020 if test $ac_cv_lib_dl_dladdr = yes; then
10023 cat >>confdefs.h <<\_ACEOF
10024 #define HAVE_DLADDR 1
10025 _ACEOF
10027 else
10029 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10030 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10031 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-ldld $LIBS"
10036 if test x$gcc_no_link = xyes; then
10037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10039 { (exit 1); exit 1; }; }
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10048 /* Override any gcc2 internal prototype to avoid an error. */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10054 char dladdr ();
10056 main ()
10058 dladdr ();
10060 return 0;
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065 (eval $ac_link) 2>conftest.er1
10066 ac_status=$?
10067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -f conftest.er1
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } &&
10072 { ac_try='test -z "$ac_c_werror_flag"
10073 || test ! -s conftest.err'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_lib_dld_dladdr=yes
10086 else
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_cv_lib_dld_dladdr=no
10092 rm -f conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10096 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10097 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10098 if test $ac_cv_lib_dld_dladdr = yes; then
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_DLADDR 1
10103 _ACEOF
10110 if test x"$build" = x"$host"; then
10111 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10112 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10113 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116 test "$cross_compiling" = yes &&
10117 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10118 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10119 { (exit 1); exit 1; }; }
10120 if test -r "/proc/self/exe"; then
10121 ac_cv_file__proc_self_exe=yes
10122 else
10123 ac_cv_file__proc_self_exe=no
10126 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10127 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10128 if test $ac_cv_file__proc_self_exe = yes; then
10130 cat >>confdefs.h <<_ACEOF
10131 #define HAVE__PROC_SELF_EXE 1
10132 _ACEOF
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_PROC_SELF_EXE 1
10138 _ACEOF
10142 else
10143 case $host in
10144 *-linux*)
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_PROC_SELF_EXE 1
10148 _ACEOF
10151 esac
10155 if test "X$prefix" = "XNONE"; then
10156 acl_final_prefix="$ac_default_prefix"
10157 else
10158 acl_final_prefix="$prefix"
10160 if test "X$exec_prefix" = "XNONE"; then
10161 acl_final_exec_prefix='${prefix}'
10162 else
10163 acl_final_exec_prefix="$exec_prefix"
10165 acl_save_prefix="$prefix"
10166 prefix="$acl_final_prefix"
10167 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10168 prefix="$acl_save_prefix"
10171 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10172 if test "${with_gnu_ld+set}" = set; then
10173 withval="$with_gnu_ld"
10174 test "$withval" = no || with_gnu_ld=yes
10175 else
10176 with_gnu_ld=no
10178 # Prepare PATH_SEPARATOR.
10179 # The user is always right.
10180 if test "${PATH_SEPARATOR+set}" != set; then
10181 echo "#! /bin/sh" >conf$$.sh
10182 echo "exit 0" >>conf$$.sh
10183 chmod +x conf$$.sh
10184 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10185 PATH_SEPARATOR=';'
10186 else
10187 PATH_SEPARATOR=:
10189 rm -f conf$$.sh
10191 ac_prog=ld
10192 if test "$GCC" = yes; then
10193 # Check if gcc -print-prog-name=ld gives a path.
10194 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10195 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10196 case $host in
10197 *-*-mingw*)
10198 # gcc leaves a trailing carriage return which upsets mingw
10199 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10201 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10202 esac
10203 case $ac_prog in
10204 # Accept absolute paths.
10205 [\\/]* | [A-Za-z]:[\\/]*)
10206 re_direlt='/[^/][^/]*/\.\./'
10207 # Canonicalize the path of ld
10208 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10209 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10210 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10211 done
10212 test -z "$LD" && LD="$ac_prog"
10215 # If it fails, then pretend we aren't using GCC.
10216 ac_prog=ld
10219 # If it is relative, then search for the first ld in PATH.
10220 with_gnu_ld=unknown
10222 esac
10223 elif test "$with_gnu_ld" = yes; then
10224 echo "$as_me:$LINENO: checking for GNU ld" >&5
10225 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10226 else
10227 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10228 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10230 if test "${acl_cv_path_LD+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233 if test -z "$LD"; then
10234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10235 for ac_dir in $PATH; do
10236 test -z "$ac_dir" && ac_dir=.
10237 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10238 acl_cv_path_LD="$ac_dir/$ac_prog"
10239 # Check to see if the program is GNU ld. I'd rather use --version,
10240 # but apparently some GNU ld's only accept -v.
10241 # Break only if it was the GNU/non-GNU ld that we prefer.
10242 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10243 test "$with_gnu_ld" != no && break
10244 else
10245 test "$with_gnu_ld" != yes && break
10248 done
10249 IFS="$ac_save_ifs"
10250 else
10251 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10255 LD="$acl_cv_path_LD"
10256 if test -n "$LD"; then
10257 echo "$as_me:$LINENO: result: $LD" >&5
10258 echo "${ECHO_T}$LD" >&6
10259 else
10260 echo "$as_me:$LINENO: result: no" >&5
10261 echo "${ECHO_T}no" >&6
10263 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10264 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10265 { (exit 1); exit 1; }; }
10266 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10267 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10268 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10272 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10273 acl_cv_prog_gnu_ld=yes
10274 else
10275 acl_cv_prog_gnu_ld=no
10278 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10279 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10280 with_gnu_ld=$acl_cv_prog_gnu_ld
10284 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10285 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10286 if test "${acl_cv_rpath+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10290 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10291 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10292 . ./conftest.sh
10293 rm -f ./conftest.sh
10294 acl_cv_rpath=done
10297 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10298 echo "${ECHO_T}$acl_cv_rpath" >&6
10299 wl="$acl_cv_wl"
10300 libext="$acl_cv_libext"
10301 shlibext="$acl_cv_shlibext"
10302 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10303 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10304 hardcode_direct="$acl_cv_hardcode_direct"
10305 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10306 # Check whether --enable-rpath or --disable-rpath was given.
10307 if test "${enable_rpath+set}" = set; then
10308 enableval="$enable_rpath"
10310 else
10311 enable_rpath=yes
10320 use_additional=yes
10322 acl_save_prefix="$prefix"
10323 prefix="$acl_final_prefix"
10324 acl_save_exec_prefix="$exec_prefix"
10325 exec_prefix="$acl_final_exec_prefix"
10327 eval additional_includedir=\"$includedir\"
10328 eval additional_libdir=\"$libdir\"
10330 exec_prefix="$acl_save_exec_prefix"
10331 prefix="$acl_save_prefix"
10334 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10335 if test "${with_libiconv_prefix+set}" = set; then
10336 withval="$with_libiconv_prefix"
10338 if test "X$withval" = "Xno"; then
10339 use_additional=no
10340 else
10341 if test "X$withval" = "X"; then
10343 acl_save_prefix="$prefix"
10344 prefix="$acl_final_prefix"
10345 acl_save_exec_prefix="$exec_prefix"
10346 exec_prefix="$acl_final_exec_prefix"
10348 eval additional_includedir=\"$includedir\"
10349 eval additional_libdir=\"$libdir\"
10351 exec_prefix="$acl_save_exec_prefix"
10352 prefix="$acl_save_prefix"
10354 else
10355 additional_includedir="$withval/include"
10356 additional_libdir="$withval/lib"
10361 LIBICONV=
10362 LTLIBICONV=
10363 INCICONV=
10364 rpathdirs=
10365 ltrpathdirs=
10366 names_already_handled=
10367 names_next_round='iconv '
10368 while test -n "$names_next_round"; do
10369 names_this_round="$names_next_round"
10370 names_next_round=
10371 for name in $names_this_round; do
10372 already_handled=
10373 for n in $names_already_handled; do
10374 if test "$n" = "$name"; then
10375 already_handled=yes
10376 break
10378 done
10379 if test -z "$already_handled"; then
10380 names_already_handled="$names_already_handled $name"
10381 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10382 eval value=\"\$HAVE_LIB$uppername\"
10383 if test -n "$value"; then
10384 if test "$value" = yes; then
10385 eval value=\"\$LIB$uppername\"
10386 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10387 eval value=\"\$LTLIB$uppername\"
10388 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10389 else
10392 else
10393 found_dir=
10394 found_la=
10395 found_so=
10396 found_a=
10397 if test $use_additional = yes; then
10398 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10399 found_dir="$additional_libdir"
10400 found_so="$additional_libdir/lib$name.$shlibext"
10401 if test -f "$additional_libdir/lib$name.la"; then
10402 found_la="$additional_libdir/lib$name.la"
10404 else
10405 if test -f "$additional_libdir/lib$name.$libext"; then
10406 found_dir="$additional_libdir"
10407 found_a="$additional_libdir/lib$name.$libext"
10408 if test -f "$additional_libdir/lib$name.la"; then
10409 found_la="$additional_libdir/lib$name.la"
10414 if test "X$found_dir" = "X"; then
10415 for x in $LDFLAGS $LTLIBICONV; do
10417 acl_save_prefix="$prefix"
10418 prefix="$acl_final_prefix"
10419 acl_save_exec_prefix="$exec_prefix"
10420 exec_prefix="$acl_final_exec_prefix"
10421 eval x=\"$x\"
10422 exec_prefix="$acl_save_exec_prefix"
10423 prefix="$acl_save_prefix"
10425 case "$x" in
10426 -L*)
10427 dir=`echo "X$x" | sed -e 's/^X-L//'`
10428 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10429 found_dir="$dir"
10430 found_so="$dir/lib$name.$shlibext"
10431 if test -f "$dir/lib$name.la"; then
10432 found_la="$dir/lib$name.la"
10434 else
10435 if test -f "$dir/lib$name.$libext"; then
10436 found_dir="$dir"
10437 found_a="$dir/lib$name.$libext"
10438 if test -f "$dir/lib$name.la"; then
10439 found_la="$dir/lib$name.la"
10444 esac
10445 if test "X$found_dir" != "X"; then
10446 break
10448 done
10450 if test "X$found_dir" != "X"; then
10451 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10452 if test "X$found_so" != "X"; then
10453 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10454 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10455 else
10456 haveit=
10457 for x in $ltrpathdirs; do
10458 if test "X$x" = "X$found_dir"; then
10459 haveit=yes
10460 break
10462 done
10463 if test -z "$haveit"; then
10464 ltrpathdirs="$ltrpathdirs $found_dir"
10466 if test "$hardcode_direct" = yes; then
10467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10468 else
10469 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10471 haveit=
10472 for x in $rpathdirs; do
10473 if test "X$x" = "X$found_dir"; then
10474 haveit=yes
10475 break
10477 done
10478 if test -z "$haveit"; then
10479 rpathdirs="$rpathdirs $found_dir"
10481 else
10482 haveit=
10483 for x in $LDFLAGS $LIBICONV; do
10485 acl_save_prefix="$prefix"
10486 prefix="$acl_final_prefix"
10487 acl_save_exec_prefix="$exec_prefix"
10488 exec_prefix="$acl_final_exec_prefix"
10489 eval x=\"$x\"
10490 exec_prefix="$acl_save_exec_prefix"
10491 prefix="$acl_save_prefix"
10493 if test "X$x" = "X-L$found_dir"; then
10494 haveit=yes
10495 break
10497 done
10498 if test -z "$haveit"; then
10499 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10501 if test "$hardcode_minus_L" != no; then
10502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10503 else
10504 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10509 else
10510 if test "X$found_a" != "X"; then
10511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10512 else
10513 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10516 additional_includedir=
10517 case "$found_dir" in
10518 */lib | */lib/)
10519 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10520 additional_includedir="$basedir/include"
10522 esac
10523 if test "X$additional_includedir" != "X"; then
10524 if test "X$additional_includedir" != "X/usr/include"; then
10525 haveit=
10526 if test "X$additional_includedir" = "X/usr/local/include"; then
10527 if test -n "$GCC"; then
10528 case $host_os in
10529 linux*) haveit=yes;;
10530 esac
10533 if test -z "$haveit"; then
10534 for x in $CPPFLAGS $INCICONV; do
10536 acl_save_prefix="$prefix"
10537 prefix="$acl_final_prefix"
10538 acl_save_exec_prefix="$exec_prefix"
10539 exec_prefix="$acl_final_exec_prefix"
10540 eval x=\"$x\"
10541 exec_prefix="$acl_save_exec_prefix"
10542 prefix="$acl_save_prefix"
10544 if test "X$x" = "X-I$additional_includedir"; then
10545 haveit=yes
10546 break
10548 done
10549 if test -z "$haveit"; then
10550 if test -d "$additional_includedir"; then
10551 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10557 if test -n "$found_la"; then
10558 save_libdir="$libdir"
10559 case "$found_la" in
10560 */* | *\\*) . "$found_la" ;;
10561 *) . "./$found_la" ;;
10562 esac
10563 libdir="$save_libdir"
10564 for dep in $dependency_libs; do
10565 case "$dep" in
10566 -L*)
10567 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10568 if test "X$additional_libdir" != "X/usr/lib"; then
10569 haveit=
10570 if test "X$additional_libdir" = "X/usr/local/lib"; then
10571 if test -n "$GCC"; then
10572 case $host_os in
10573 linux*) haveit=yes;;
10574 esac
10577 if test -z "$haveit"; then
10578 haveit=
10579 for x in $LDFLAGS $LIBICONV; do
10581 acl_save_prefix="$prefix"
10582 prefix="$acl_final_prefix"
10583 acl_save_exec_prefix="$exec_prefix"
10584 exec_prefix="$acl_final_exec_prefix"
10585 eval x=\"$x\"
10586 exec_prefix="$acl_save_exec_prefix"
10587 prefix="$acl_save_prefix"
10589 if test "X$x" = "X-L$additional_libdir"; then
10590 haveit=yes
10591 break
10593 done
10594 if test -z "$haveit"; then
10595 if test -d "$additional_libdir"; then
10596 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10599 haveit=
10600 for x in $LDFLAGS $LTLIBICONV; do
10602 acl_save_prefix="$prefix"
10603 prefix="$acl_final_prefix"
10604 acl_save_exec_prefix="$exec_prefix"
10605 exec_prefix="$acl_final_exec_prefix"
10606 eval x=\"$x\"
10607 exec_prefix="$acl_save_exec_prefix"
10608 prefix="$acl_save_prefix"
10610 if test "X$x" = "X-L$additional_libdir"; then
10611 haveit=yes
10612 break
10614 done
10615 if test -z "$haveit"; then
10616 if test -d "$additional_libdir"; then
10617 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10623 -R*)
10624 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10625 if test "$enable_rpath" != no; then
10626 haveit=
10627 for x in $rpathdirs; do
10628 if test "X$x" = "X$dir"; then
10629 haveit=yes
10630 break
10632 done
10633 if test -z "$haveit"; then
10634 rpathdirs="$rpathdirs $dir"
10636 haveit=
10637 for x in $ltrpathdirs; do
10638 if test "X$x" = "X$dir"; then
10639 haveit=yes
10640 break
10642 done
10643 if test -z "$haveit"; then
10644 ltrpathdirs="$ltrpathdirs $dir"
10648 -l*)
10649 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10651 *.la)
10652 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10655 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10656 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10658 esac
10659 done
10661 else
10662 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10663 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10667 done
10668 done
10669 if test "X$rpathdirs" != "X"; then
10670 if test -n "$hardcode_libdir_separator"; then
10671 alldirs=
10672 for found_dir in $rpathdirs; do
10673 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10674 done
10675 acl_save_libdir="$libdir"
10676 libdir="$alldirs"
10677 eval flag=\"$hardcode_libdir_flag_spec\"
10678 libdir="$acl_save_libdir"
10679 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10680 else
10681 for found_dir in $rpathdirs; do
10682 acl_save_libdir="$libdir"
10683 libdir="$found_dir"
10684 eval flag=\"$hardcode_libdir_flag_spec\"
10685 libdir="$acl_save_libdir"
10686 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10687 done
10690 if test "X$ltrpathdirs" != "X"; then
10691 for found_dir in $ltrpathdirs; do
10692 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10693 done
10702 am_save_CPPFLAGS="$CPPFLAGS"
10704 for element in $INCICONV; do
10705 haveit=
10706 for x in $CPPFLAGS; do
10708 acl_save_prefix="$prefix"
10709 prefix="$acl_final_prefix"
10710 acl_save_exec_prefix="$exec_prefix"
10711 exec_prefix="$acl_final_exec_prefix"
10712 eval x=\"$x\"
10713 exec_prefix="$acl_save_exec_prefix"
10714 prefix="$acl_save_prefix"
10716 if test "X$x" = "X$element"; then
10717 haveit=yes
10718 break
10720 done
10721 if test -z "$haveit"; then
10722 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10724 done
10727 echo "$as_me:$LINENO: checking for iconv" >&5
10728 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10729 if test "${am_cv_func_iconv+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10733 am_cv_func_iconv="no, consider installing GNU libiconv"
10734 am_cv_lib_iconv=no
10735 if test x$gcc_no_link = xyes; then
10736 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10738 { (exit 1); exit 1; }; }
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <stdlib.h>
10747 #include <iconv.h>
10749 main ()
10751 iconv_t cd = iconv_open("","");
10752 iconv(cd,NULL,NULL,NULL,NULL);
10753 iconv_close(cd);
10755 return 0;
10757 _ACEOF
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10760 (eval $ac_link) 2>conftest.er1
10761 ac_status=$?
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } &&
10767 { ac_try='test -z "$ac_c_werror_flag"
10768 || test ! -s conftest.err'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; } &&
10774 { ac_try='test -s conftest$ac_exeext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 am_cv_func_iconv=yes
10781 else
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10786 rm -f conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 if test "$am_cv_func_iconv" != yes; then
10789 am_save_LIBS="$LIBS"
10790 LIBS="$LIBS $LIBICONV"
10791 if test x$gcc_no_link = xyes; then
10792 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10794 { (exit 1); exit 1; }; }
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 #include <stdlib.h>
10803 #include <iconv.h>
10805 main ()
10807 iconv_t cd = iconv_open("","");
10808 iconv(cd,NULL,NULL,NULL,NULL);
10809 iconv_close(cd);
10811 return 0;
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag"
10824 || test ! -s conftest.err'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; } &&
10830 { ac_try='test -s conftest$ac_exeext'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 am_cv_lib_iconv=yes
10837 am_cv_func_iconv=yes
10838 else
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10843 rm -f conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LIBS="$am_save_LIBS"
10849 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10850 echo "${ECHO_T}$am_cv_func_iconv" >&6
10851 if test "$am_cv_func_iconv" = yes; then
10853 cat >>confdefs.h <<\_ACEOF
10854 #define HAVE_ICONV 1
10855 _ACEOF
10858 if test "$am_cv_lib_iconv" = yes; then
10859 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10860 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10861 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10862 echo "${ECHO_T}$LIBICONV" >&6
10863 else
10864 CPPFLAGS="$am_save_CPPFLAGS"
10865 LIBICONV=
10866 LTLIBICONV=
10871 if test "$am_cv_func_iconv" = yes; then
10872 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10873 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10874 if test "${am_cv_proto_iconv+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h. */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10885 #include <stdlib.h>
10886 #include <iconv.h>
10887 extern
10888 #ifdef __cplusplus
10890 #endif
10891 #if defined(__STDC__) || defined(__cplusplus)
10892 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10893 #else
10894 size_t iconv();
10895 #endif
10898 main ()
10902 return 0;
10904 _ACEOF
10905 rm -f conftest.$ac_objext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10907 (eval $ac_compile) 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } &&
10914 { ac_try='test -z "$ac_c_werror_flag"
10915 || test ! -s conftest.err'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; } &&
10921 { ac_try='test -s conftest.$ac_objext'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; }; then
10927 am_cv_proto_iconv_arg1=""
10928 else
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 am_cv_proto_iconv_arg1="const"
10934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10935 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);"
10938 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10939 echo "$as_me:$LINENO: result: ${ac_t:-
10940 }$am_cv_proto_iconv" >&5
10941 echo "${ECHO_T}${ac_t:-
10942 }$am_cv_proto_iconv" >&6
10944 cat >>confdefs.h <<_ACEOF
10945 #define ICONV_CONST $am_cv_proto_iconv_arg1
10946 _ACEOF
10951 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10952 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10953 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956 if test x$gcc_no_link = xyes; then
10957 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10959 { (exit 1); exit 1; }; }
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 #include <locale.h>
10969 main ()
10971 return LC_MESSAGES
10973 return 0;
10975 _ACEOF
10976 rm -f conftest.$ac_objext conftest$ac_exeext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10978 (eval $ac_link) 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -z "$ac_c_werror_flag"
10986 || test ! -s conftest.err'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; } &&
10992 { ac_try='test -s conftest$ac_exeext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 am_cv_val_LC_MESSAGES=yes
10999 else
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 am_cv_val_LC_MESSAGES=no
11005 rm -f conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11008 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11009 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11010 if test $am_cv_val_LC_MESSAGES = yes; then
11012 cat >>confdefs.h <<\_ACEOF
11013 #define HAVE_LC_MESSAGES 1
11014 _ACEOF
11018 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11019 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11020 if test "${ac_cv_struct_tm+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <sys/types.h>
11030 #include <time.h>
11033 main ()
11035 struct tm *tp; tp->tm_sec;
11037 return 0;
11039 _ACEOF
11040 rm -f conftest.$ac_objext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>conftest.er1
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag"
11050 || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_struct_tm=time.h
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_cv_struct_tm=sys/time.h
11069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11071 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11072 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11073 if test $ac_cv_struct_tm = sys/time.h; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define TM_IN_SYS_TIME 1
11077 _ACEOF
11081 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11082 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11083 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <sys/types.h>
11093 #include <$ac_cv_struct_tm>
11097 main ()
11099 static struct tm ac_aggr;
11100 if (ac_aggr.tm_zone)
11101 return 0;
11103 return 0;
11105 _ACEOF
11106 rm -f conftest.$ac_objext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11108 (eval $ac_compile) 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -z "$ac_c_werror_flag"
11116 || test ! -s conftest.err'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; } &&
11122 { ac_try='test -s conftest.$ac_objext'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
11128 ac_cv_member_struct_tm_tm_zone=yes
11129 else
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 #include <sys/types.h>
11140 #include <$ac_cv_struct_tm>
11144 main ()
11146 static struct tm ac_aggr;
11147 if (sizeof ac_aggr.tm_zone)
11148 return 0;
11150 return 0;
11152 _ACEOF
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155 (eval $ac_compile) 2>conftest.er1
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag"
11163 || test ! -s conftest.err'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 ac_cv_member_struct_tm_tm_zone=yes
11176 else
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11180 ac_cv_member_struct_tm_tm_zone=no
11182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11186 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11187 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11188 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_STRUCT_TM_TM_ZONE 1
11192 _ACEOF
11197 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11199 cat >>confdefs.h <<\_ACEOF
11200 #define HAVE_TM_ZONE 1
11201 _ACEOF
11203 else
11204 echo "$as_me:$LINENO: checking for tzname" >&5
11205 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11206 if test "${ac_cv_var_tzname+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209 if test x$gcc_no_link = xyes; then
11210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11212 { (exit 1); exit 1; }; }
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 #include <time.h>
11221 #ifndef tzname /* For SGI. */
11222 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11223 #endif
11226 main ()
11228 atoi(*tzname);
11230 return 0;
11232 _ACEOF
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11235 (eval $ac_link) 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -z "$ac_c_werror_flag"
11243 || test ! -s conftest.err'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; } &&
11249 { ac_try='test -s conftest$ac_exeext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 ac_cv_var_tzname=yes
11256 else
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 ac_cv_var_tzname=no
11262 rm -f conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11265 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11266 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11267 if test $ac_cv_var_tzname = yes; then
11269 cat >>confdefs.h <<\_ACEOF
11270 #define HAVE_TZNAME 1
11271 _ACEOF
11279 for ac_func in gethostbyname_r
11281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11282 echo "$as_me:$LINENO: checking for $ac_func" >&5
11283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11284 if eval "test \"\${$as_ac_var+set}\" = set"; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287 if test x$gcc_no_link = xyes; then
11288 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11290 { (exit 1); exit 1; }; }
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11300 #define $ac_func innocuous_$ac_func
11302 /* System header to define __stub macros and hopefully few prototypes,
11303 which can conflict with char $ac_func (); below.
11304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305 <limits.h> exists even on freestanding compilers. */
11307 #ifdef __STDC__
11308 # include <limits.h>
11309 #else
11310 # include <assert.h>
11311 #endif
11313 #undef $ac_func
11315 /* Override any gcc2 internal prototype to avoid an error. */
11316 #ifdef __cplusplus
11317 extern "C"
11319 #endif
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11322 char $ac_func ();
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11327 choke me
11328 #else
11329 char (*f) () = $ac_func;
11330 #endif
11331 #ifdef __cplusplus
11333 #endif
11336 main ()
11338 return f != $ac_func;
11340 return 0;
11342 _ACEOF
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345 (eval $ac_link) 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } &&
11352 { ac_try='test -z "$ac_c_werror_flag"
11353 || test ! -s conftest.err'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest$ac_exeext'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 eval "$as_ac_var=yes"
11366 else
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 eval "$as_ac_var=no"
11372 rm -f conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11377 if test `eval echo '${'$as_ac_var'}'` = yes; then
11378 cat >>confdefs.h <<_ACEOF
11379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380 _ACEOF
11383 cat >>confdefs.h <<\_ACEOF
11384 #define HAVE_GETHOSTBYNAME_R 1
11385 _ACEOF
11387 # There are two different kinds of gethostbyname_r.
11388 # We look for the one that returns `int'.
11389 # Hopefully this check is robust enough.
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 #include <netdb.h>
11398 _ACEOF
11399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11400 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11403 cat >>confdefs.h <<\_ACEOF
11404 #define GETHOSTBYNAME_R_RETURNS_INT 1
11405 _ACEOF
11408 rm -f conftest*
11411 case " $GCINCS " in
11412 *" -D_REENTRANT "*) ;;
11414 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11415 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11416 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419 ac_ext=cc
11420 ac_cpp='$CXXCPP $CPPFLAGS'
11421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h. */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 #include <netdb.h>
11433 main ()
11435 gethostbyname_r("", 0, 0);
11437 return 0;
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11442 (eval $ac_compile) 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -z "$ac_cxx_werror_flag"
11450 || test ! -s conftest.err'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 libjava_cv_gethostbyname_r_needs_reentrant=no
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 CPPFLAGS_SAVE="$CPPFLAGS"
11468 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 #include <netdb.h>
11477 main ()
11479 gethostbyname_r("", 0, 0);
11481 return 0;
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486 (eval $ac_compile) 2>conftest.er1
11487 ac_status=$?
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_cxx_werror_flag"
11494 || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 libjava_cv_gethostbyname_r_needs_reentrant=yes
11507 else
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 libjava_cv_gethostbyname_r_needs_reentrant=fail
11513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11514 CPPFLAGS="$CPPFLAGS_SAVE"
11517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11518 ac_ext=c
11519 ac_cpp='$CPP $CPPFLAGS'
11520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11526 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11527 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11528 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11530 cat >>confdefs.h <<\_ACEOF
11531 #define _REENTRANT 1
11532 _ACEOF
11536 esac
11538 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11539 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11540 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11550 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11551 # define _REENTRANT 1
11552 #endif
11553 #include <netdb.h>
11555 main ()
11557 struct hostent_data data;
11559 return 0;
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>conftest.er1
11565 ac_status=$?
11566 grep -v '^ *+' conftest.er1 >conftest.err
11567 rm -f conftest.er1
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -z "$ac_c_werror_flag"
11572 || test ! -s conftest.err'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; } &&
11578 { ac_try='test -s conftest.$ac_objext'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11584 libjava_cv_struct_hostent_data=yes
11585 else
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 libjava_cv_struct_hostent_data=no
11591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11593 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11594 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11595 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11597 cat >>confdefs.h <<\_ACEOF
11598 #define HAVE_STRUCT_HOSTENT_DATA 1
11599 _ACEOF
11604 done
11607 # FIXME: libjava source code expects to find a prototype for
11608 # gethostbyaddr_r in netdb.h. The outer check ensures that
11609 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11610 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11611 # linkage check is enough, yet C++ code requires proper prototypes.)
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h. */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 #include <netdb.h>
11620 _ACEOF
11621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11622 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11625 for ac_func in gethostbyaddr_r
11627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11628 echo "$as_me:$LINENO: checking for $ac_func" >&5
11629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11630 if eval "test \"\${$as_ac_var+set}\" = set"; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 if test x$gcc_no_link = xyes; then
11634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11636 { (exit 1); exit 1; }; }
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h. */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11646 #define $ac_func innocuous_$ac_func
11648 /* System header to define __stub macros and hopefully few prototypes,
11649 which can conflict with char $ac_func (); below.
11650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11651 <limits.h> exists even on freestanding compilers. */
11653 #ifdef __STDC__
11654 # include <limits.h>
11655 #else
11656 # include <assert.h>
11657 #endif
11659 #undef $ac_func
11661 /* Override any gcc2 internal prototype to avoid an error. */
11662 #ifdef __cplusplus
11663 extern "C"
11665 #endif
11666 /* We use char because int might match the return type of a gcc2
11667 builtin and then its argument prototype would still apply. */
11668 char $ac_func ();
11669 /* The GNU C library defines this for functions which it implements
11670 to always fail with ENOSYS. Some functions are actually named
11671 something starting with __ and the normal name is an alias. */
11672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11673 choke me
11674 #else
11675 char (*f) () = $ac_func;
11676 #endif
11677 #ifdef __cplusplus
11679 #endif
11682 main ()
11684 return f != $ac_func;
11686 return 0;
11688 _ACEOF
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -z "$ac_c_werror_flag"
11699 || test ! -s conftest.err'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 eval "$as_ac_var=yes"
11712 else
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 eval "$as_ac_var=no"
11718 rm -f conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11723 if test `eval echo '${'$as_ac_var'}'` = yes; then
11724 cat >>confdefs.h <<_ACEOF
11725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11726 _ACEOF
11729 cat >>confdefs.h <<\_ACEOF
11730 #define HAVE_GETHOSTBYADDR_R 1
11731 _ACEOF
11733 # There are two different kinds of gethostbyaddr_r.
11734 # We look for the one that returns `int'.
11735 # Hopefully this check is robust enough.
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h. */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 #include <netdb.h>
11744 _ACEOF
11745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11746 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11749 cat >>confdefs.h <<\_ACEOF
11750 #define GETHOSTBYADDR_R_RETURNS_INT 1
11751 _ACEOF
11754 rm -f conftest*
11757 done
11760 rm -f conftest*
11764 for ac_func in gethostname
11766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11767 echo "$as_me:$LINENO: checking for $ac_func" >&5
11768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11769 if eval "test \"\${$as_ac_var+set}\" = set"; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772 if test x$gcc_no_link = xyes; then
11773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11775 { (exit 1); exit 1; }; }
11777 cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h. */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11785 #define $ac_func innocuous_$ac_func
11787 /* System header to define __stub macros and hopefully few prototypes,
11788 which can conflict with char $ac_func (); below.
11789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11790 <limits.h> exists even on freestanding compilers. */
11792 #ifdef __STDC__
11793 # include <limits.h>
11794 #else
11795 # include <assert.h>
11796 #endif
11798 #undef $ac_func
11800 /* Override any gcc2 internal prototype to avoid an error. */
11801 #ifdef __cplusplus
11802 extern "C"
11804 #endif
11805 /* We use char because int might match the return type of a gcc2
11806 builtin and then its argument prototype would still apply. */
11807 char $ac_func ();
11808 /* The GNU C library defines this for functions which it implements
11809 to always fail with ENOSYS. Some functions are actually named
11810 something starting with __ and the normal name is an alias. */
11811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11812 choke me
11813 #else
11814 char (*f) () = $ac_func;
11815 #endif
11816 #ifdef __cplusplus
11818 #endif
11821 main ()
11823 return f != $ac_func;
11825 return 0;
11827 _ACEOF
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830 (eval $ac_link) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag"
11838 || test ! -s conftest.err'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } &&
11844 { ac_try='test -s conftest$ac_exeext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 eval "$as_ac_var=yes"
11851 else
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 eval "$as_ac_var=no"
11857 rm -f conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11862 if test `eval echo '${'$as_ac_var'}'` = yes; then
11863 cat >>confdefs.h <<_ACEOF
11864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865 _ACEOF
11868 cat >>confdefs.h <<\_ACEOF
11869 #define HAVE_GETHOSTNAME 1
11870 _ACEOF
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h. */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <unistd.h>
11880 _ACEOF
11881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11882 $EGREP "gethostname" >/dev/null 2>&1; then
11885 cat >>confdefs.h <<\_ACEOF
11886 #define HAVE_GETHOSTNAME_DECL 1
11887 _ACEOF
11890 rm -f conftest*
11893 done
11897 for ac_func in usleep
11899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11900 echo "$as_me:$LINENO: checking for $ac_func" >&5
11901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11902 if eval "test \"\${$as_ac_var+set}\" = set"; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 if test x$gcc_no_link = xyes; then
11906 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11907 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11908 { (exit 1); exit 1; }; }
11910 cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h. */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11918 #define $ac_func innocuous_$ac_func
11920 /* System header to define __stub macros and hopefully few prototypes,
11921 which can conflict with char $ac_func (); below.
11922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11923 <limits.h> exists even on freestanding compilers. */
11925 #ifdef __STDC__
11926 # include <limits.h>
11927 #else
11928 # include <assert.h>
11929 #endif
11931 #undef $ac_func
11933 /* Override any gcc2 internal prototype to avoid an error. */
11934 #ifdef __cplusplus
11935 extern "C"
11937 #endif
11938 /* We use char because int might match the return type of a gcc2
11939 builtin and then its argument prototype would still apply. */
11940 char $ac_func ();
11941 /* The GNU C library defines this for functions which it implements
11942 to always fail with ENOSYS. Some functions are actually named
11943 something starting with __ and the normal name is an alias. */
11944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11945 choke me
11946 #else
11947 char (*f) () = $ac_func;
11948 #endif
11949 #ifdef __cplusplus
11951 #endif
11954 main ()
11956 return f != $ac_func;
11958 return 0;
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963 (eval $ac_link) 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -z "$ac_c_werror_flag"
11971 || test ! -s conftest.err'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 eval "$as_ac_var=yes"
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 eval "$as_ac_var=no"
11990 rm -f conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11995 if test `eval echo '${'$as_ac_var'}'` = yes; then
11996 cat >>confdefs.h <<_ACEOF
11997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11998 _ACEOF
12000 cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h. */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 #include <unistd.h>
12008 _ACEOF
12009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12010 $EGREP "usleep" >/dev/null 2>&1; then
12013 cat >>confdefs.h <<\_ACEOF
12014 #define HAVE_USLEEP_DECL 1
12015 _ACEOF
12018 rm -f conftest*
12021 done
12024 # Look for these functions in the thread library, but only bother
12025 # if using POSIX threads.
12026 if test "$THREADS" = posix; then
12027 save_LIBS="$LIBS"
12028 LIBS="$LIBS $THREADLIBS"
12029 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12030 # E.g., Solaris.
12033 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12036 echo "$as_me:$LINENO: checking for $ac_func" >&5
12037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12038 if eval "test \"\${$as_ac_var+set}\" = set"; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041 if test x$gcc_no_link = xyes; then
12042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12044 { (exit 1); exit 1; }; }
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12054 #define $ac_func innocuous_$ac_func
12056 /* System header to define __stub macros and hopefully few prototypes,
12057 which can conflict with char $ac_func (); below.
12058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12059 <limits.h> exists even on freestanding compilers. */
12061 #ifdef __STDC__
12062 # include <limits.h>
12063 #else
12064 # include <assert.h>
12065 #endif
12067 #undef $ac_func
12069 /* Override any gcc2 internal prototype to avoid an error. */
12070 #ifdef __cplusplus
12071 extern "C"
12073 #endif
12074 /* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12076 char $ac_func ();
12077 /* The GNU C library defines this for functions which it implements
12078 to always fail with ENOSYS. Some functions are actually named
12079 something starting with __ and the normal name is an alias. */
12080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12081 choke me
12082 #else
12083 char (*f) () = $ac_func;
12084 #endif
12085 #ifdef __cplusplus
12087 #endif
12090 main ()
12092 return f != $ac_func;
12094 return 0;
12096 _ACEOF
12097 rm -f conftest.$ac_objext conftest$ac_exeext
12098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag"
12107 || test ! -s conftest.err'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest$ac_exeext'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 eval "$as_ac_var=yes"
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 eval "$as_ac_var=no"
12126 rm -f conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12131 if test `eval echo '${'$as_ac_var'}'` = yes; then
12132 cat >>confdefs.h <<_ACEOF
12133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12134 _ACEOF
12137 done
12140 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12141 # Solaris 7 the name librt is preferred.
12143 for ac_func in sched_yield
12145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12146 echo "$as_me:$LINENO: checking for $ac_func" >&5
12147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12148 if eval "test \"\${$as_ac_var+set}\" = set"; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151 if test x$gcc_no_link = xyes; then
12152 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12154 { (exit 1); exit 1; }; }
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12164 #define $ac_func innocuous_$ac_func
12166 /* System header to define __stub macros and hopefully few prototypes,
12167 which can conflict with char $ac_func (); below.
12168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169 <limits.h> exists even on freestanding compilers. */
12171 #ifdef __STDC__
12172 # include <limits.h>
12173 #else
12174 # include <assert.h>
12175 #endif
12177 #undef $ac_func
12179 /* Override any gcc2 internal prototype to avoid an error. */
12180 #ifdef __cplusplus
12181 extern "C"
12183 #endif
12184 /* We use char because int might match the return type of a gcc2
12185 builtin and then its argument prototype would still apply. */
12186 char $ac_func ();
12187 /* The GNU C library defines this for functions which it implements
12188 to always fail with ENOSYS. Some functions are actually named
12189 something starting with __ and the normal name is an alias. */
12190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12191 choke me
12192 #else
12193 char (*f) () = $ac_func;
12194 #endif
12195 #ifdef __cplusplus
12197 #endif
12200 main ()
12202 return f != $ac_func;
12204 return 0;
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209 (eval $ac_link) 2>conftest.er1
12210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
12216 { ac_try='test -z "$ac_c_werror_flag"
12217 || test ! -s conftest.err'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 eval "$as_ac_var=yes"
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 eval "$as_ac_var=no"
12236 rm -f conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12241 if test `eval echo '${'$as_ac_var'}'` = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 _ACEOF
12246 else
12248 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12249 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12250 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253 ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-lrt $LIBS"
12255 if test x$gcc_no_link = xyes; then
12256 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12258 { (exit 1); exit 1; }; }
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12267 /* Override any gcc2 internal prototype to avoid an error. */
12268 #ifdef __cplusplus
12269 extern "C"
12270 #endif
12271 /* We use char because int might match the return type of a gcc2
12272 builtin and then its argument prototype would still apply. */
12273 char sched_yield ();
12275 main ()
12277 sched_yield ();
12279 return 0;
12281 _ACEOF
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12284 (eval $ac_link) 2>conftest.er1
12285 ac_status=$?
12286 grep -v '^ *+' conftest.er1 >conftest.err
12287 rm -f conftest.er1
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -z "$ac_c_werror_flag"
12292 || test ! -s conftest.err'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_lib_rt_sched_yield=yes
12305 else
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_cv_lib_rt_sched_yield=no
12311 rm -f conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12315 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12316 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12317 if test $ac_cv_lib_rt_sched_yield = yes; then
12319 cat >>confdefs.h <<\_ACEOF
12320 #define HAVE_SCHED_YIELD 1
12321 _ACEOF
12323 THREADLIBS="$THREADLIBS -lrt"
12324 THREADSPEC="$THREADSPEC -lrt"
12325 else
12327 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12328 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12329 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332 ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-lposix4 $LIBS"
12334 if test x$gcc_no_link = xyes; then
12335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12337 { (exit 1); exit 1; }; }
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12346 /* Override any gcc2 internal prototype to avoid an error. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 /* We use char because int might match the return type of a gcc2
12351 builtin and then its argument prototype would still apply. */
12352 char sched_yield ();
12354 main ()
12356 sched_yield ();
12358 return 0;
12360 _ACEOF
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest$ac_exeext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_lib_posix4_sched_yield=yes
12384 else
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ac_cv_lib_posix4_sched_yield=no
12390 rm -f conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS=$ac_check_lib_save_LIBS
12394 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12395 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12396 if test $ac_cv_lib_posix4_sched_yield = yes; then
12398 cat >>confdefs.h <<\_ACEOF
12399 #define HAVE_SCHED_YIELD 1
12400 _ACEOF
12402 THREADLIBS="$THREADLIBS -lposix4"
12403 THREADSPEC="$THREADSPEC -lposix4"
12409 done
12412 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12413 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12414 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417 ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-lrt $LIBS"
12419 if test x$gcc_no_link = xyes; then
12420 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12421 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12422 { (exit 1); exit 1; }; }
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12431 /* Override any gcc2 internal prototype to avoid an error. */
12432 #ifdef __cplusplus
12433 extern "C"
12434 #endif
12435 /* We use char because int might match the return type of a gcc2
12436 builtin and then its argument prototype would still apply. */
12437 char clock_gettime ();
12439 main ()
12441 clock_gettime ();
12443 return 0;
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448 (eval $ac_link) 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag"
12456 || test ! -s conftest.err'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest$ac_exeext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_lib_rt_clock_gettime=yes
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_cv_lib_rt_clock_gettime=no
12475 rm -f conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12477 LIBS=$ac_check_lib_save_LIBS
12479 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12480 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12481 if test $ac_cv_lib_rt_clock_gettime = yes; then
12484 cat >>confdefs.h <<\_ACEOF
12485 #define HAVE_CLOCK_GETTIME 1
12486 _ACEOF
12488 case "$THREADSPEC" in
12489 *-lrt*) ;;
12491 THREADSPEC="$THREADSPEC -lrt"
12492 THREADLIBS="$THREADLIBS -lrt"
12494 esac
12498 LIBS="$save_LIBS"
12500 # We can save a little space at runtime if the mutex has m_count
12501 # or __m_count. This is a nice hack for Linux.
12502 cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h. */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 #include <pthread.h>
12510 main ()
12513 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12516 return 0;
12518 _ACEOF
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12542 cat >>confdefs.h <<\_ACEOF
12543 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12544 _ACEOF
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 #include <pthread.h>
12559 main ()
12562 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12565 return 0;
12567 _ACEOF
12568 rm -f conftest.$ac_objext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570 (eval $ac_compile) 2>conftest.er1
12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag"
12578 || test ! -s conftest.err'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12591 cat >>confdefs.h <<\_ACEOF
12592 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12593 _ACEOF
12595 else
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12605 # We require a way to get the time.
12606 time_found=no
12610 for ac_func in gettimeofday time ftime
12612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12613 echo "$as_me:$LINENO: checking for $ac_func" >&5
12614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12615 if eval "test \"\${$as_ac_var+set}\" = set"; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618 if test x$gcc_no_link = xyes; then
12619 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12621 { (exit 1); exit 1; }; }
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h. */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12631 #define $ac_func innocuous_$ac_func
12633 /* System header to define __stub macros and hopefully few prototypes,
12634 which can conflict with char $ac_func (); below.
12635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12636 <limits.h> exists even on freestanding compilers. */
12638 #ifdef __STDC__
12639 # include <limits.h>
12640 #else
12641 # include <assert.h>
12642 #endif
12644 #undef $ac_func
12646 /* Override any gcc2 internal prototype to avoid an error. */
12647 #ifdef __cplusplus
12648 extern "C"
12650 #endif
12651 /* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */
12653 char $ac_func ();
12654 /* The GNU C library defines this for functions which it implements
12655 to always fail with ENOSYS. Some functions are actually named
12656 something starting with __ and the normal name is an alias. */
12657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12658 choke me
12659 #else
12660 char (*f) () = $ac_func;
12661 #endif
12662 #ifdef __cplusplus
12664 #endif
12667 main ()
12669 return f != $ac_func;
12671 return 0;
12673 _ACEOF
12674 rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12676 (eval $ac_link) 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try='test -z "$ac_c_werror_flag"
12684 || test ! -s conftest.err'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; } &&
12690 { ac_try='test -s conftest$ac_exeext'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 eval "$as_ac_var=yes"
12697 else
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 eval "$as_ac_var=no"
12703 rm -f conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12708 if test `eval echo '${'$as_ac_var'}'` = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12711 _ACEOF
12712 time_found=yes
12714 done
12716 if test "$time_found" = no; then
12717 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12718 echo "$as_me: error: no function found to get the time" >&2;}
12719 { (exit 1); exit 1; }; }
12723 for ac_func in memmove
12725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12726 echo "$as_me:$LINENO: checking for $ac_func" >&5
12727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12728 if eval "test \"\${$as_ac_var+set}\" = set"; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731 if test x$gcc_no_link = xyes; then
12732 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12733 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12734 { (exit 1); exit 1; }; }
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h. */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12744 #define $ac_func innocuous_$ac_func
12746 /* System header to define __stub macros and hopefully few prototypes,
12747 which can conflict with char $ac_func (); below.
12748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12749 <limits.h> exists even on freestanding compilers. */
12751 #ifdef __STDC__
12752 # include <limits.h>
12753 #else
12754 # include <assert.h>
12755 #endif
12757 #undef $ac_func
12759 /* Override any gcc2 internal prototype to avoid an error. */
12760 #ifdef __cplusplus
12761 extern "C"
12763 #endif
12764 /* We use char because int might match the return type of a gcc2
12765 builtin and then its argument prototype would still apply. */
12766 char $ac_func ();
12767 /* The GNU C library defines this for functions which it implements
12768 to always fail with ENOSYS. Some functions are actually named
12769 something starting with __ and the normal name is an alias. */
12770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12771 choke me
12772 #else
12773 char (*f) () = $ac_func;
12774 #endif
12775 #ifdef __cplusplus
12777 #endif
12780 main ()
12782 return f != $ac_func;
12784 return 0;
12786 _ACEOF
12787 rm -f conftest.$ac_objext conftest$ac_exeext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } &&
12796 { ac_try='test -z "$ac_c_werror_flag"
12797 || test ! -s conftest.err'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest$ac_exeext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 eval "$as_ac_var=yes"
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 eval "$as_ac_var=no"
12816 rm -f conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12821 if test `eval echo '${'$as_ac_var'}'` = yes; then
12822 cat >>confdefs.h <<_ACEOF
12823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12824 _ACEOF
12827 done
12830 # We require memcpy.
12831 memcpy_found=no
12833 for ac_func in memcpy
12835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12836 echo "$as_me:$LINENO: checking for $ac_func" >&5
12837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12838 if eval "test \"\${$as_ac_var+set}\" = set"; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841 if test x$gcc_no_link = xyes; then
12842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12844 { (exit 1); exit 1; }; }
12846 cat >conftest.$ac_ext <<_ACEOF
12847 /* confdefs.h. */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12854 #define $ac_func innocuous_$ac_func
12856 /* System header to define __stub macros and hopefully few prototypes,
12857 which can conflict with char $ac_func (); below.
12858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12859 <limits.h> exists even on freestanding compilers. */
12861 #ifdef __STDC__
12862 # include <limits.h>
12863 #else
12864 # include <assert.h>
12865 #endif
12867 #undef $ac_func
12869 /* Override any gcc2 internal prototype to avoid an error. */
12870 #ifdef __cplusplus
12871 extern "C"
12873 #endif
12874 /* We use char because int might match the return type of a gcc2
12875 builtin and then its argument prototype would still apply. */
12876 char $ac_func ();
12877 /* The GNU C library defines this for functions which it implements
12878 to always fail with ENOSYS. Some functions are actually named
12879 something starting with __ and the normal name is an alias. */
12880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12881 choke me
12882 #else
12883 char (*f) () = $ac_func;
12884 #endif
12885 #ifdef __cplusplus
12887 #endif
12890 main ()
12892 return f != $ac_func;
12894 return 0;
12896 _ACEOF
12897 rm -f conftest.$ac_objext conftest$ac_exeext
12898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12899 (eval $ac_link) 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -z "$ac_c_werror_flag"
12907 || test ! -s conftest.err'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest$ac_exeext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 eval "$as_ac_var=yes"
12920 else
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 eval "$as_ac_var=no"
12926 rm -f conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12931 if test `eval echo '${'$as_ac_var'}'` = yes; then
12932 cat >>confdefs.h <<_ACEOF
12933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934 _ACEOF
12935 memcpy_found=yes
12937 done
12939 if test "$memcpy_found" = no; then
12940 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12941 echo "$as_me: error: memcpy is required" >&2;}
12942 { (exit 1); exit 1; }; }
12944 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
12945 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12946 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950 ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-ldl $LIBS"
12952 if test x$gcc_no_link = xyes; then
12953 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12954 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12955 { (exit 1); exit 1; }; }
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12964 /* Override any gcc2 internal prototype to avoid an error. */
12965 #ifdef __cplusplus
12966 extern "C"
12967 #endif
12968 /* We use char because int might match the return type of a gcc2
12969 builtin and then its argument prototype would still apply. */
12970 char dlopen ();
12972 main ()
12974 dlopen ();
12976 return 0;
12978 _ACEOF
12979 rm -f conftest.$ac_objext conftest$ac_exeext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12981 (eval $ac_link) 2>conftest.er1
12982 ac_status=$?
12983 grep -v '^ *+' conftest.er1 >conftest.err
12984 rm -f conftest.er1
12985 cat conftest.err >&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -z "$ac_c_werror_flag"
12989 || test ! -s conftest.err'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest$ac_exeext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_lib_dl_dlopen=yes
13002 else
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_cv_lib_dl_dlopen=no
13008 rm -f conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 LIBS=$ac_check_lib_save_LIBS
13012 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13013 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13014 if test $ac_cv_lib_dl_dlopen = yes; then
13017 cat >>confdefs.h <<\_ACEOF
13018 #define HAVE_DLOPEN 1
13019 _ACEOF
13021 else
13023 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13024 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13025 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-ldld $LIBS"
13030 if test x$gcc_no_link = xyes; then
13031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13033 { (exit 1); exit 1; }; }
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13042 /* Override any gcc2 internal prototype to avoid an error. */
13043 #ifdef __cplusplus
13044 extern "C"
13045 #endif
13046 /* We use char because int might match the return type of a gcc2
13047 builtin and then its argument prototype would still apply. */
13048 char dlopen ();
13050 main ()
13052 dlopen ();
13054 return 0;
13056 _ACEOF
13057 rm -f conftest.$ac_objext conftest$ac_exeext
13058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13059 (eval $ac_link) 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try='test -z "$ac_c_werror_flag"
13067 || test ! -s conftest.err'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 ac_cv_lib_dld_dlopen=yes
13080 else
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 ac_cv_lib_dld_dlopen=no
13086 rm -f conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088 LIBS=$ac_check_lib_save_LIBS
13090 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13091 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13092 if test $ac_cv_lib_dld_dlopen = yes; then
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_DLOPEN 1
13097 _ACEOF
13104 # Some library-finding code we stole from Tcl.
13105 #--------------------------------------------------------------------
13106 # Check for the existence of the -lsocket and -lnsl libraries.
13107 # The order here is important, so that they end up in the right
13108 # order in the command line generated by make. Here are some
13109 # special considerations:
13110 # 1. Use "connect" and "accept" to check for -lsocket, and
13111 # "gethostbyname" to check for -lnsl.
13112 # 2. Use each function name only once: can't redo a check because
13113 # autoconf caches the results of the last check and won't redo it.
13114 # 3. Use -lnsl and -lsocket only if they supply procedures that
13115 # aren't already present in the normal libraries. This is because
13116 # IRIX 5.2 has libraries, but they aren't needed and they're
13117 # bogus: they goof up name resolution if used.
13118 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13119 # To get around this problem, check for both libraries together
13120 # if -lsocket doesn't work by itself.
13121 #--------------------------------------------------------------------
13123 echo "$as_me:$LINENO: checking for socket libraries" >&5
13124 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13125 if test "${gcj_cv_lib_sockets+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 gcj_cv_lib_sockets=
13129 gcj_checkBoth=0
13130 unset ac_cv_func_connect
13131 echo "$as_me:$LINENO: checking for connect" >&5
13132 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13133 if test "${ac_cv_func_connect+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136 if test x$gcc_no_link = xyes; then
13137 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13139 { (exit 1); exit 1; }; }
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13149 #define connect innocuous_connect
13151 /* System header to define __stub macros and hopefully few prototypes,
13152 which can conflict with char connect (); below.
13153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13154 <limits.h> exists even on freestanding compilers. */
13156 #ifdef __STDC__
13157 # include <limits.h>
13158 #else
13159 # include <assert.h>
13160 #endif
13162 #undef connect
13164 /* Override any gcc2 internal prototype to avoid an error. */
13165 #ifdef __cplusplus
13166 extern "C"
13168 #endif
13169 /* We use char because int might match the return type of a gcc2
13170 builtin and then its argument prototype would still apply. */
13171 char connect ();
13172 /* The GNU C library defines this for functions which it implements
13173 to always fail with ENOSYS. Some functions are actually named
13174 something starting with __ and the normal name is an alias. */
13175 #if defined (__stub_connect) || defined (__stub___connect)
13176 choke me
13177 #else
13178 char (*f) () = connect;
13179 #endif
13180 #ifdef __cplusplus
13182 #endif
13185 main ()
13187 return f != connect;
13189 return 0;
13191 _ACEOF
13192 rm -f conftest.$ac_objext conftest$ac_exeext
13193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13194 (eval $ac_link) 2>conftest.er1
13195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try='test -z "$ac_c_werror_flag"
13202 || test ! -s conftest.err'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; } &&
13208 { ac_try='test -s conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 ac_cv_func_connect=yes
13215 else
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ac_cv_func_connect=no
13221 rm -f conftest.err conftest.$ac_objext \
13222 conftest$ac_exeext conftest.$ac_ext
13224 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13225 echo "${ECHO_T}$ac_cv_func_connect" >&6
13226 if test $ac_cv_func_connect = yes; then
13227 gcj_checkSocket=0
13228 else
13229 gcj_checkSocket=1
13232 if test "$gcj_checkSocket" = 1; then
13233 unset ac_cv_func_connect
13234 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13235 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13236 if test "${ac_cv_lib_socket_main+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239 ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-lsocket $LIBS"
13241 if test x$gcc_no_link = xyes; then
13242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13244 { (exit 1); exit 1; }; }
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13255 main ()
13257 main ();
13259 return 0;
13261 _ACEOF
13262 rm -f conftest.$ac_objext conftest$ac_exeext
13263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13264 (eval $ac_link) 2>conftest.er1
13265 ac_status=$?
13266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -z "$ac_c_werror_flag"
13272 || test ! -s conftest.err'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; } &&
13278 { ac_try='test -s conftest$ac_exeext'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_lib_socket_main=yes
13285 else
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ac_cv_lib_socket_main=no
13291 rm -f conftest.err conftest.$ac_objext \
13292 conftest$ac_exeext conftest.$ac_ext
13293 LIBS=$ac_check_lib_save_LIBS
13295 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13296 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13297 if test $ac_cv_lib_socket_main = yes; then
13298 gcj_cv_lib_sockets="-lsocket"
13299 else
13300 gcj_checkBoth=1
13304 if test "$gcj_checkBoth" = 1; then
13305 gcj_oldLibs=$LIBS
13306 LIBS="$LIBS -lsocket -lnsl"
13307 unset ac_cv_func_accept
13308 echo "$as_me:$LINENO: checking for accept" >&5
13309 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13310 if test "${ac_cv_func_accept+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 else
13313 if test x$gcc_no_link = xyes; then
13314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13316 { (exit 1); exit 1; }; }
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h. */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13326 #define accept innocuous_accept
13328 /* System header to define __stub macros and hopefully few prototypes,
13329 which can conflict with char accept (); below.
13330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13331 <limits.h> exists even on freestanding compilers. */
13333 #ifdef __STDC__
13334 # include <limits.h>
13335 #else
13336 # include <assert.h>
13337 #endif
13339 #undef accept
13341 /* Override any gcc2 internal prototype to avoid an error. */
13342 #ifdef __cplusplus
13343 extern "C"
13345 #endif
13346 /* We use char because int might match the return type of a gcc2
13347 builtin and then its argument prototype would still apply. */
13348 char accept ();
13349 /* The GNU C library defines this for functions which it implements
13350 to always fail with ENOSYS. Some functions are actually named
13351 something starting with __ and the normal name is an alias. */
13352 #if defined (__stub_accept) || defined (__stub___accept)
13353 choke me
13354 #else
13355 char (*f) () = accept;
13356 #endif
13357 #ifdef __cplusplus
13359 #endif
13362 main ()
13364 return f != accept;
13366 return 0;
13368 _ACEOF
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag"
13379 || test ! -s conftest.err'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest$ac_exeext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_func_accept=yes
13392 else
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13396 ac_cv_func_accept=no
13398 rm -f conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13401 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13402 echo "${ECHO_T}$ac_cv_func_accept" >&6
13403 if test $ac_cv_func_accept = yes; then
13404 gcj_checkNsl=0
13405 gcj_cv_lib_sockets="-lsocket -lnsl"
13408 unset ac_cv_func_accept
13409 LIBS=$gcj_oldLibs
13411 unset ac_cv_func_gethostbyname
13412 gcj_oldLibs=$LIBS
13413 LIBS="$LIBS $gcj_cv_lib_sockets"
13414 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13415 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13416 if test "${ac_cv_func_gethostbyname+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419 if test x$gcc_no_link = xyes; then
13420 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13421 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13422 { (exit 1); exit 1; }; }
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13432 #define gethostbyname innocuous_gethostbyname
13434 /* System header to define __stub macros and hopefully few prototypes,
13435 which can conflict with char gethostbyname (); below.
13436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13437 <limits.h> exists even on freestanding compilers. */
13439 #ifdef __STDC__
13440 # include <limits.h>
13441 #else
13442 # include <assert.h>
13443 #endif
13445 #undef gethostbyname
13447 /* Override any gcc2 internal prototype to avoid an error. */
13448 #ifdef __cplusplus
13449 extern "C"
13451 #endif
13452 /* We use char because int might match the return type of a gcc2
13453 builtin and then its argument prototype would still apply. */
13454 char gethostbyname ();
13455 /* The GNU C library defines this for functions which it implements
13456 to always fail with ENOSYS. Some functions are actually named
13457 something starting with __ and the normal name is an alias. */
13458 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13459 choke me
13460 #else
13461 char (*f) () = gethostbyname;
13462 #endif
13463 #ifdef __cplusplus
13465 #endif
13468 main ()
13470 return f != gethostbyname;
13472 return 0;
13474 _ACEOF
13475 rm -f conftest.$ac_objext conftest$ac_exeext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13477 (eval $ac_link) 2>conftest.er1
13478 ac_status=$?
13479 grep -v '^ *+' conftest.er1 >conftest.err
13480 rm -f conftest.er1
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -z "$ac_c_werror_flag"
13485 || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest$ac_exeext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 ac_cv_func_gethostbyname=yes
13498 else
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 ac_cv_func_gethostbyname=no
13504 rm -f conftest.err conftest.$ac_objext \
13505 conftest$ac_exeext conftest.$ac_ext
13507 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13508 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13509 if test $ac_cv_func_gethostbyname = yes; then
13511 else
13512 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13513 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13514 if test "${ac_cv_lib_nsl_main+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517 ac_check_lib_save_LIBS=$LIBS
13518 LIBS="-lnsl $LIBS"
13519 if test x$gcc_no_link = xyes; then
13520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13522 { (exit 1); exit 1; }; }
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h. */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13533 main ()
13535 main ();
13537 return 0;
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_lib_nsl_main=yes
13563 else
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ac_cv_lib_nsl_main=no
13569 rm -f conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
13571 LIBS=$ac_check_lib_save_LIBS
13573 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13574 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13575 if test $ac_cv_lib_nsl_main = yes; then
13576 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13581 unset ac_cv_func_gethostbyname
13582 LIBS=$gcj_oldLIBS
13585 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13586 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13587 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13589 if test "$with_system_zlib" = yes; then
13590 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13591 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13592 if test "${ac_cv_lib_z_deflate+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 ac_check_lib_save_LIBS=$LIBS
13596 LIBS="-lz $LIBS"
13597 if test x$gcc_no_link = xyes; then
13598 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13599 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13600 { (exit 1); exit 1; }; }
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13609 /* Override any gcc2 internal prototype to avoid an error. */
13610 #ifdef __cplusplus
13611 extern "C"
13612 #endif
13613 /* We use char because int might match the return type of a gcc2
13614 builtin and then its argument prototype would still apply. */
13615 char deflate ();
13617 main ()
13619 deflate ();
13621 return 0;
13623 _ACEOF
13624 rm -f conftest.$ac_objext conftest$ac_exeext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13626 (eval $ac_link) 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest$ac_exeext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_lib_z_deflate=yes
13647 else
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_cv_lib_z_deflate=no
13653 rm -f conftest.err conftest.$ac_objext \
13654 conftest$ac_exeext conftest.$ac_ext
13655 LIBS=$ac_check_lib_save_LIBS
13657 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13658 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13659 if test $ac_cv_lib_z_deflate = yes; then
13660 ZLIBSPEC=-lz
13661 else
13662 ZLIBSPEC=
13667 # Test for Gtk stuff, if asked for.
13668 if test "$use_gtk_awt" = yes; then
13670 succeeded=no
13672 if test -z "$PKG_CONFIG"; then
13673 # Extract the first word of "pkg-config", so it can be a program name with args.
13674 set dummy pkg-config; ac_word=$2
13675 echo "$as_me:$LINENO: checking for $ac_word" >&5
13676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13677 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680 case $PKG_CONFIG in
13681 [\\/]* | ?:[\\/]*)
13682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13686 for as_dir in $PATH
13688 IFS=$as_save_IFS
13689 test -z "$as_dir" && as_dir=.
13690 for ac_exec_ext in '' $ac_executable_extensions; do
13691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13694 break 2
13696 done
13697 done
13699 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13701 esac
13703 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13705 if test -n "$PKG_CONFIG"; then
13706 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13707 echo "${ECHO_T}$PKG_CONFIG" >&6
13708 else
13709 echo "$as_me:$LINENO: result: no" >&5
13710 echo "${ECHO_T}no" >&6
13715 if test "$PKG_CONFIG" = "no" ; then
13716 echo "*** The pkg-config script could not be found. Make sure it is"
13717 echo "*** in your path, or set the PKG_CONFIG environment variable"
13718 echo "*** to the full path to pkg-config."
13719 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13720 else
13721 PKG_CONFIG_MIN_VERSION=0.9.0
13722 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13723 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13724 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13726 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13727 echo "$as_me:$LINENO: result: yes" >&5
13728 echo "${ECHO_T}yes" >&6
13729 succeeded=yes
13731 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13732 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13733 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13734 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13735 echo "${ECHO_T}$GTK_CFLAGS" >&6
13737 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13738 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13739 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13740 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13741 echo "${ECHO_T}$GTK_LIBS" >&6
13742 else
13743 GTK_CFLAGS=""
13744 GTK_LIBS=""
13745 ## If we have a custom action on failure, don't print errors, but
13746 ## do set a variable so people can do so.
13747 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13748 echo $GTK_PKG_ERRORS
13753 else
13754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13759 if test $succeeded = yes; then
13761 else
13762 { { 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
13763 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;}
13764 { (exit 1); exit 1; }; }
13771 succeeded=no
13773 if test -z "$PKG_CONFIG"; then
13774 # Extract the first word of "pkg-config", so it can be a program name with args.
13775 set dummy pkg-config; ac_word=$2
13776 echo "$as_me:$LINENO: checking for $ac_word" >&5
13777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13778 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781 case $PKG_CONFIG in
13782 [\\/]* | ?:[\\/]*)
13783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13793 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13797 done
13798 done
13800 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13802 esac
13804 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13806 if test -n "$PKG_CONFIG"; then
13807 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13808 echo "${ECHO_T}$PKG_CONFIG" >&6
13809 else
13810 echo "$as_me:$LINENO: result: no" >&5
13811 echo "${ECHO_T}no" >&6
13816 if test "$PKG_CONFIG" = "no" ; then
13817 echo "*** The pkg-config script could not be found. Make sure it is"
13818 echo "*** in your path, or set the PKG_CONFIG environment variable"
13819 echo "*** to the full path to pkg-config."
13820 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13821 else
13822 PKG_CONFIG_MIN_VERSION=0.9.0
13823 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13824 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13825 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13827 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13828 echo "$as_me:$LINENO: result: yes" >&5
13829 echo "${ECHO_T}yes" >&6
13830 succeeded=yes
13832 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13833 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13834 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13835 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13836 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13838 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13839 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13840 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13841 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13842 echo "${ECHO_T}$GLIB_LIBS" >&6
13843 else
13844 GLIB_CFLAGS=""
13845 GLIB_LIBS=""
13846 ## If we have a custom action on failure, don't print errors, but
13847 ## do set a variable so people can do so.
13848 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13849 echo $GLIB_PKG_ERRORS
13854 else
13855 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13856 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13860 if test $succeeded = yes; then
13862 else
13863 { { 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
13864 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;}
13865 { (exit 1); exit 1; }; }
13872 succeeded=no
13874 if test -z "$PKG_CONFIG"; then
13875 # Extract the first word of "pkg-config", so it can be a program name with args.
13876 set dummy pkg-config; ac_word=$2
13877 echo "$as_me:$LINENO: checking for $ac_word" >&5
13878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13879 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 else
13882 case $PKG_CONFIG in
13883 [\\/]* | ?:[\\/]*)
13884 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13890 IFS=$as_save_IFS
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
13893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13894 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13896 break 2
13898 done
13899 done
13901 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13903 esac
13905 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13907 if test -n "$PKG_CONFIG"; then
13908 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13909 echo "${ECHO_T}$PKG_CONFIG" >&6
13910 else
13911 echo "$as_me:$LINENO: result: no" >&5
13912 echo "${ECHO_T}no" >&6
13917 if test "$PKG_CONFIG" = "no" ; then
13918 echo "*** The pkg-config script could not be found. Make sure it is"
13919 echo "*** in your path, or set the PKG_CONFIG environment variable"
13920 echo "*** to the full path to pkg-config."
13921 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13922 else
13923 PKG_CONFIG_MIN_VERSION=0.9.0
13924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13925 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13926 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13928 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13929 echo "$as_me:$LINENO: result: yes" >&5
13930 echo "${ECHO_T}yes" >&6
13931 succeeded=yes
13933 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13934 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13935 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13936 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13937 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13939 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13940 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13941 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13942 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13943 echo "${ECHO_T}$LIBART_LIBS" >&6
13944 else
13945 LIBART_CFLAGS=""
13946 LIBART_LIBS=""
13947 ## If we have a custom action on failure, don't print errors, but
13948 ## do set a variable so people can do so.
13949 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13950 echo $LIBART_PKG_ERRORS
13955 else
13956 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13957 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13961 if test $succeeded = yes; then
13963 else
13964 { { 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
13965 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;}
13966 { (exit 1); exit 1; }; }
13972 # We require the XTest Extension to support java.awt.Robot.
13973 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13974 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13975 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978 ac_check_lib_save_LIBS=$LIBS
13979 LIBS="-lXtst ${X_LIBS} $LIBS"
13980 if test x$gcc_no_link = xyes; then
13981 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13983 { (exit 1); exit 1; }; }
13985 cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h. */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13992 /* Override any gcc2 internal prototype to avoid an error. */
13993 #ifdef __cplusplus
13994 extern "C"
13995 #endif
13996 /* We use char because int might match the return type of a gcc2
13997 builtin and then its argument prototype would still apply. */
13998 char XTestQueryExtension ();
14000 main ()
14002 XTestQueryExtension ();
14004 return 0;
14006 _ACEOF
14007 rm -f conftest.$ac_objext conftest$ac_exeext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14009 (eval $ac_link) 2>conftest.er1
14010 ac_status=$?
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -z "$ac_c_werror_flag"
14017 || test ! -s conftest.err'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try='test -s conftest$ac_exeext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 ac_cv_lib_Xtst_XTestQueryExtension=yes
14030 else
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 ac_cv_lib_Xtst_XTestQueryExtension=no
14036 rm -f conftest.err conftest.$ac_objext \
14037 conftest$ac_exeext conftest.$ac_ext
14038 LIBS=$ac_check_lib_save_LIBS
14040 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14041 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14042 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14043 true
14044 else
14045 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14046 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14047 { (exit 1); exit 1; }; }
14052 # On Solaris, and maybe other architectures, the Boehm collector
14053 # requires -ldl.
14054 if test "$GC" = boehm; then
14055 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14056 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14057 if test "${ac_cv_lib_dl_main+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-ldl $LIBS"
14062 if test x$gcc_no_link = xyes; then
14063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14065 { (exit 1); exit 1; }; }
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14076 main ()
14078 main ();
14080 return 0;
14082 _ACEOF
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14085 (eval $ac_link) 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest$ac_exeext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_lib_dl_main=yes
14106 else
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_cv_lib_dl_main=no
14112 rm -f conftest.err conftest.$ac_objext \
14113 conftest$ac_exeext conftest.$ac_ext
14114 LIBS=$ac_check_lib_save_LIBS
14116 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14117 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14118 if test $ac_cv_lib_dl_main = yes; then
14119 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14125 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14126 case $build in
14127 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14128 *) CLASSPATH_SEPARATOR=':' ;;
14129 esac
14132 # We must search the source tree for java.lang, since we still don't
14133 # have libgcj.jar nor java/lang/*.class
14134 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14135 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14137 # Since some classes depend on this one, we need its source available
14138 # before we can do any GCJ compilation test :-(
14139 if test ! -f gnu/classpath/Configuration.java; then
14140 test -d gnu || mkdir gnu
14141 test -d gnu/classpath || mkdir gnu/classpath
14142 # Note that it is not crucial that all the values here be correct.
14143 sed -e "s,@prefix@,$prefix," \
14144 -e "s,@VERSION@,$VERSION," \
14145 -e "s,@LIBDEBUG@,false," \
14146 -e "s,@INIT_LOAD_LIBRARY@,false," \
14147 -e "s,@@,$LIBGCJDEBUG," \
14148 -e "s,@default_toolkit@,$TOOLKIT," \
14149 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14150 -e "s,@GTK_CAIRO_ENABLED@,false," \
14151 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14152 > gnu/classpath/Configuration.java
14153 # We do not want to redirect the output of the grep below to /dev/null,
14154 # but we add /dev/null to the input list so that grep will print the
14155 # filename of Configuration.java in case it finds any matches.
14156 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14157 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14158 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14159 { (exit 1); exit 1; }; }
14163 if test -n "$ac_tool_prefix"; then
14164 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14165 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14166 echo "$as_me:$LINENO: checking for $ac_word" >&5
14167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14168 if test "${ac_cv_prog_GCJ+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171 if test -n "$GCJ"; then
14172 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14173 else
14174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14175 for as_dir in $PATH
14177 IFS=$as_save_IFS
14178 test -z "$as_dir" && as_dir=.
14179 for ac_exec_ext in '' $ac_executable_extensions; do
14180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14181 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14183 break 2
14185 done
14186 done
14190 GCJ=$ac_cv_prog_GCJ
14191 if test -n "$GCJ"; then
14192 echo "$as_me:$LINENO: result: $GCJ" >&5
14193 echo "${ECHO_T}$GCJ" >&6
14194 else
14195 echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6
14200 if test -z "$ac_cv_prog_GCJ"; then
14201 ac_ct_GCJ=$GCJ
14202 # Extract the first word of "gcj", so it can be a program name with args.
14203 set dummy gcj; ac_word=$2
14204 echo "$as_me:$LINENO: checking for $ac_word" >&5
14205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14206 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209 if test -n "$ac_ct_GCJ"; then
14210 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14211 else
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14215 IFS=$as_save_IFS
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14219 ac_cv_prog_ac_ct_GCJ="gcj"
14220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14221 break 2
14223 done
14224 done
14226 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14229 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14230 if test -n "$ac_ct_GCJ"; then
14231 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14232 echo "${ECHO_T}$ac_ct_GCJ" >&6
14233 else
14234 echo "$as_me:$LINENO: result: no" >&5
14235 echo "${ECHO_T}no" >&6
14238 GCJ=$ac_ct_GCJ
14239 else
14240 GCJ="$ac_cv_prog_GCJ"
14243 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14248 # Now remove it.
14249 rm -f gnu/classpath/Configuration.java
14251 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14253 echo "$as_me:$LINENO: checking for void *" >&5
14254 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14255 if test "${ac_cv_type_void_p+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258 cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 $ac_includes_default
14266 main ()
14268 if ((void * *) 0)
14269 return 0;
14270 if (sizeof (void *))
14271 return 0;
14273 return 0;
14275 _ACEOF
14276 rm -f conftest.$ac_objext
14277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14278 (eval $ac_compile) 2>conftest.er1
14279 ac_status=$?
14280 grep -v '^ *+' conftest.er1 >conftest.err
14281 rm -f conftest.er1
14282 cat conftest.err >&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try='test -z "$ac_c_werror_flag"
14286 || test ! -s conftest.err'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; } &&
14292 { ac_try='test -s conftest.$ac_objext'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14298 ac_cv_type_void_p=yes
14299 else
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_cv_type_void_p=no
14305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14307 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14308 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14310 echo "$as_me:$LINENO: checking size of void *" >&5
14311 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14312 if test "${ac_cv_sizeof_void_p+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 if test "$ac_cv_type_void_p" = yes; then
14316 # The cast to unsigned long works around a bug in the HP C Compiler
14317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14319 # This bug is HP SR number 8606223364.
14320 if test "$cross_compiling" = yes; then
14321 # Depending upon the size, compute the lo and hi bounds.
14322 cat >conftest.$ac_ext <<_ACEOF
14323 /* confdefs.h. */
14324 _ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h. */
14328 $ac_includes_default
14330 main ()
14332 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14333 test_array [0] = 0
14336 return 0;
14338 _ACEOF
14339 rm -f conftest.$ac_objext
14340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14341 (eval $ac_compile) 2>conftest.er1
14342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -z "$ac_c_werror_flag"
14349 || test ! -s conftest.err'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest.$ac_objext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_lo=0 ac_mid=0
14362 while :; do
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h. */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 $ac_includes_default
14371 main ()
14373 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14374 test_array [0] = 0
14377 return 0;
14379 _ACEOF
14380 rm -f conftest.$ac_objext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -z "$ac_c_werror_flag"
14390 || test ! -s conftest.err'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_hi=$ac_mid; break
14403 else
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_lo=`expr $ac_mid + 1`
14408 if test $ac_lo -le $ac_mid; then
14409 ac_lo= ac_hi=
14410 break
14412 ac_mid=`expr 2 '*' $ac_mid + 1`
14414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14415 done
14416 else
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h. */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 $ac_includes_default
14428 main ()
14430 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14431 test_array [0] = 0
14434 return 0;
14436 _ACEOF
14437 rm -f conftest.$ac_objext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439 (eval $ac_compile) 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_c_werror_flag"
14447 || test ! -s conftest.err'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14450 ac_status=$?
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; } &&
14453 { ac_try='test -s conftest.$ac_objext'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }; then
14459 ac_hi=-1 ac_mid=-1
14460 while :; do
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h. */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 $ac_includes_default
14469 main ()
14471 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14472 test_array [0] = 0
14475 return 0;
14477 _ACEOF
14478 rm -f conftest.$ac_objext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480 (eval $ac_compile) 2>conftest.er1
14481 ac_status=$?
14482 grep -v '^ *+' conftest.er1 >conftest.err
14483 rm -f conftest.er1
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_c_werror_flag"
14488 || test ! -s conftest.err'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_lo=$ac_mid; break
14501 else
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_hi=`expr '(' $ac_mid ')' - 1`
14506 if test $ac_mid -le $ac_hi; then
14507 ac_lo= ac_hi=
14508 break
14510 ac_mid=`expr 2 '*' $ac_mid`
14512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14513 done
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ac_lo= ac_hi=
14520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14523 # Binary search between lo and hi bounds.
14524 while test "x$ac_lo" != "x$ac_hi"; do
14525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h. */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 $ac_includes_default
14534 main ()
14536 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14537 test_array [0] = 0
14540 return 0;
14542 _ACEOF
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545 (eval $ac_compile) 2>conftest.er1
14546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try='test -z "$ac_c_werror_flag"
14553 || test ! -s conftest.err'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; } &&
14559 { ac_try='test -s conftest.$ac_objext'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
14565 ac_hi=$ac_mid
14566 else
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14570 ac_lo=`expr '(' $ac_mid ')' + 1`
14572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14573 done
14574 case $ac_lo in
14575 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14576 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14577 See \`config.log' for more details." >&5
14578 echo "$as_me: error: cannot compute sizeof (void *), 77
14579 See \`config.log' for more details." >&2;}
14580 { (exit 1); exit 1; }; } ;;
14581 esac
14582 else
14583 if test "$cross_compiling" = yes; then
14584 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14585 See \`config.log' for more details." >&5
14586 echo "$as_me: error: cannot run test program while cross compiling
14587 See \`config.log' for more details." >&2;}
14588 { (exit 1); exit 1; }; }
14589 else
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 $ac_includes_default
14597 long longval () { return (long) (sizeof (void *)); }
14598 unsigned long ulongval () { return (long) (sizeof (void *)); }
14599 #include <stdio.h>
14600 #include <stdlib.h>
14602 main ()
14605 FILE *f = fopen ("conftest.val", "w");
14606 if (! f)
14607 exit (1);
14608 if (((long) (sizeof (void *))) < 0)
14610 long i = longval ();
14611 if (i != ((long) (sizeof (void *))))
14612 exit (1);
14613 fprintf (f, "%ld\n", i);
14615 else
14617 unsigned long i = ulongval ();
14618 if (i != ((long) (sizeof (void *))))
14619 exit (1);
14620 fprintf (f, "%lu\n", i);
14622 exit (ferror (f) || fclose (f) != 0);
14625 return 0;
14627 _ACEOF
14628 rm -f conftest$ac_exeext
14629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14630 (eval $ac_link) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; }; then
14639 ac_cv_sizeof_void_p=`cat conftest.val`
14640 else
14641 echo "$as_me: program exited with status $ac_status" >&5
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 ( exit $ac_status )
14646 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14647 See \`config.log' for more details." >&5
14648 echo "$as_me: error: cannot compute sizeof (void *), 77
14649 See \`config.log' for more details." >&2;}
14650 { (exit 1); exit 1; }; }
14652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14655 rm -f conftest.val
14656 else
14657 ac_cv_sizeof_void_p=0
14660 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14661 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14662 cat >>confdefs.h <<_ACEOF
14663 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14664 _ACEOF
14668 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14669 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14670 if test "${ac_cv_c_bigendian+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673 # See if sys/param.h defines the BYTE_ORDER macro.
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h. */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 #include <sys/types.h>
14681 #include <sys/param.h>
14684 main ()
14686 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14687 bogus endian macros
14688 #endif
14691 return 0;
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 # It does; now see whether it defined to BIG_ENDIAN or not.
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <sys/types.h>
14724 #include <sys/param.h>
14727 main ()
14729 #if BYTE_ORDER != BIG_ENDIAN
14730 not big endian
14731 #endif
14734 return 0;
14736 _ACEOF
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag"
14747 || test ! -s conftest.err'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; } &&
14753 { ac_try='test -s conftest.$ac_objext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_c_bigendian=yes
14760 else
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 ac_cv_c_bigendian=no
14766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14767 else
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 # It does not; compile a test program.
14772 if test "$cross_compiling" = yes; then
14773 # try to guess the endianness by grepping values into an object file
14774 ac_cv_c_bigendian=unknown
14775 cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h. */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14782 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14783 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14784 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14785 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14786 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14788 main ()
14790 _ascii (); _ebcdic ();
14792 return 0;
14794 _ACEOF
14795 rm -f conftest.$ac_objext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797 (eval $ac_compile) 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -z "$ac_c_werror_flag"
14805 || test ! -s conftest.err'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest.$ac_objext'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14818 ac_cv_c_bigendian=yes
14820 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14821 if test "$ac_cv_c_bigendian" = unknown; then
14822 ac_cv_c_bigendian=no
14823 else
14824 # finding both strings is unlikely to happen, but who knows?
14825 ac_cv_c_bigendian=unknown
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14834 else
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14842 main ()
14844 /* Are we little or big endian? From Harbison&Steele. */
14845 union
14847 long l;
14848 char c[sizeof (long)];
14849 } u;
14850 u.l = 1;
14851 exit (u.c[sizeof (long) - 1] == 1);
14853 _ACEOF
14854 rm -f conftest$ac_exeext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14856 (eval $ac_link) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_cv_c_bigendian=no
14866 else
14867 echo "$as_me: program exited with status $ac_status" >&5
14868 echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14871 ( exit $ac_status )
14872 ac_cv_c_bigendian=yes
14874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14879 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14880 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14881 case $ac_cv_c_bigendian in
14882 yes)
14884 cat >>confdefs.h <<\_ACEOF
14885 #define WORDS_BIGENDIAN 1
14886 _ACEOF
14891 { { echo "$as_me:$LINENO: error: unknown endianness
14892 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14893 echo "$as_me: error: unknown endianness
14894 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14895 { (exit 1); exit 1; }; } ;;
14896 esac
14899 ZLIBS=
14900 SYS_ZLIBS=
14901 ZINCS=
14903 if test -z "$ZLIBSPEC"; then
14904 # Use zlib from the GCC tree.
14905 ZINCS='-I$(top_srcdir)/../zlib'
14906 ZLIBS=../zlib/libzgcj_convenience.la
14907 else
14908 # System's zlib.
14909 SYS_ZLIBS="$ZLIBSPEC"
14922 if test "$NATIVE" = yes; then
14923 NATIVE_TRUE=
14924 NATIVE_FALSE='#'
14925 else
14926 NATIVE_TRUE='#'
14927 NATIVE_FALSE=
14932 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14933 NEEDS_DATA_START_TRUE=
14934 NEEDS_DATA_START_FALSE='#'
14935 else
14936 NEEDS_DATA_START_TRUE='#'
14937 NEEDS_DATA_START_FALSE=
14942 # Process the option "--enable-version-specific-runtime-libs"
14943 # Calculate toolexeclibdir
14944 case ${version_specific_libs} in
14945 yes)
14946 # Need the gcc compiler version to know where to install libraries
14947 # and header files if --enable-version-specific-runtime-libs option
14948 # is selected.
14949 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14950 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14951 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14952 toolexeclibdir=$toolexecmainlibdir
14955 if test -n "$with_cross_host" &&
14956 test x"$with_cross_host" != x"no"; then
14957 # Install a library built with a cross compiler in tooldir, not libdir.
14958 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14959 toolexecmainlibdir='$(toolexecdir)/lib'
14960 else
14961 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14962 toolexecmainlibdir='$(libdir)'
14964 multi_os_directory=`$CC -print-multi-os-directory`
14965 case $multi_os_directory in
14966 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14967 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14968 esac
14970 esac
14975 # Determine where the standard .db file is found.
14976 multi_os_directory=`$CC -print-multi-os-directory`
14977 case $multi_os_directory in
14978 .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
14979 *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
14980 esac
14983 # Determine gcj version number.
14984 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14985 GCJVERSION=$gcjversion
14988 cat >>confdefs.h <<_ACEOF
14989 #define GCJVERSION "$GCJVERSION"
14990 _ACEOF
14994 cat >>confdefs.h <<\_ACEOF
14995 #define JV_VERSION "1.4.2"
14996 _ACEOF
14999 cat >>confdefs.h <<\_ACEOF
15000 #define JV_API_VERSION "1.4"
15001 _ACEOF
15005 case "${with_gxx_include_dir}" in
15006 yes)
15007 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15008 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15009 { (exit 1); exit 1; }; }
15011 no | "")
15012 case "${enable_version_specific_runtime_libs}" in
15013 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15015 libstdcxx_incdir='c++/$(gcc_version)'
15016 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
15017 esac ;;
15018 *) gxx_include_dir=${with_gxx_include_dir} ;;
15019 esac
15024 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15025 # On that system, sys/ioctl.h will not include sys/filio.h unless
15026 # BSD_COMP is defined; just including sys/filio.h is simpler.
15027 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15028 # for now. If you change this, you also must update natFile.cc.
15050 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15051 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15052 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15053 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15054 dirent.h sys/rw_lock.h
15056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15058 echo "$as_me:$LINENO: checking for $ac_header" >&5
15059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15065 else
15066 # Is the header compilable?
15067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15069 cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h. */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 $ac_includes_default
15076 #include <$ac_header>
15077 _ACEOF
15078 rm -f conftest.$ac_objext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080 (eval $ac_compile) 2>conftest.er1
15081 ac_status=$?
15082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
15087 { ac_try='test -z "$ac_c_werror_flag"
15088 || test ! -s conftest.err'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest.$ac_objext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_header_compiler=yes
15101 else
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_header_compiler=no
15107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15109 echo "${ECHO_T}$ac_header_compiler" >&6
15111 # Is the header present?
15112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15114 cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h. */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 #include <$ac_header>
15121 _ACEOF
15122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } >/dev/null; then
15130 if test -s conftest.err; then
15131 ac_cpp_err=$ac_c_preproc_warn_flag
15132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15133 else
15134 ac_cpp_err=
15136 else
15137 ac_cpp_err=yes
15139 if test -z "$ac_cpp_err"; then
15140 ac_header_preproc=yes
15141 else
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_header_preproc=no
15147 rm -f conftest.err conftest.$ac_ext
15148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15149 echo "${ECHO_T}$ac_header_preproc" >&6
15151 # So? What about this header?
15152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15153 yes:no: )
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15158 ac_header_preproc=yes
15160 no:yes:* )
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15174 cat <<\_ASBOX
15175 ## ---------------------------------- ##
15176 ## Report this to the libjava lists. ##
15177 ## ---------------------------------- ##
15178 _ASBOX
15180 sed "s/^/$as_me: WARNING: /" >&2
15182 esac
15183 echo "$as_me:$LINENO: checking for $ac_header" >&5
15184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188 eval "$as_ac_Header=\$ac_header_preproc"
15190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15195 cat >>confdefs.h <<_ACEOF
15196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15197 _ACEOF
15201 done
15204 for ac_header in inttypes.h
15206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15208 echo "$as_me:$LINENO: checking for $ac_header" >&5
15209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15215 else
15216 # Is the header compilable?
15217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15219 cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h. */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 $ac_includes_default
15226 #include <$ac_header>
15227 _ACEOF
15228 rm -f conftest.$ac_objext
15229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230 (eval $ac_compile) 2>conftest.er1
15231 ac_status=$?
15232 grep -v '^ *+' conftest.er1 >conftest.err
15233 rm -f conftest.er1
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try='test -z "$ac_c_werror_flag"
15238 || test ! -s conftest.err'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_header_compiler=yes
15251 else
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_header_compiler=no
15257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15259 echo "${ECHO_T}$ac_header_compiler" >&6
15261 # Is the header present?
15262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15264 cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h. */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 #include <$ac_header>
15271 _ACEOF
15272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15274 ac_status=$?
15275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } >/dev/null; then
15280 if test -s conftest.err; then
15281 ac_cpp_err=$ac_c_preproc_warn_flag
15282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15283 else
15284 ac_cpp_err=
15286 else
15287 ac_cpp_err=yes
15289 if test -z "$ac_cpp_err"; then
15290 ac_header_preproc=yes
15291 else
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15295 ac_header_preproc=no
15297 rm -f conftest.err conftest.$ac_ext
15298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15299 echo "${ECHO_T}$ac_header_preproc" >&6
15301 # So? What about this header?
15302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15303 yes:no: )
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15308 ac_header_preproc=yes
15310 no:yes:* )
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15324 cat <<\_ASBOX
15325 ## ---------------------------------- ##
15326 ## Report this to the libjava lists. ##
15327 ## ---------------------------------- ##
15328 _ASBOX
15330 sed "s/^/$as_me: WARNING: /" >&2
15332 esac
15333 echo "$as_me:$LINENO: checking for $ac_header" >&5
15334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338 eval "$as_ac_Header=\$ac_header_preproc"
15340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15345 cat >>confdefs.h <<_ACEOF
15346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15347 _ACEOF
15350 cat >>confdefs.h <<\_ACEOF
15351 #define HAVE_INTTYPES_H 1
15352 _ACEOF
15355 cat >>confdefs.h <<\_ACEOF
15356 #define JV_HAVE_INTTYPES_H 1
15357 _ACEOF
15362 done
15364 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15365 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15366 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
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 #include <sys/wait.h>
15377 #ifndef WEXITSTATUS
15378 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15379 #endif
15380 #ifndef WIFEXITED
15381 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15382 #endif
15385 main ()
15387 int s;
15388 wait (&s);
15389 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15391 return 0;
15393 _ACEOF
15394 rm -f conftest.$ac_objext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15396 (eval $ac_compile) 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -z "$ac_c_werror_flag"
15404 || test ! -s conftest.err'
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; } &&
15410 { ac_try='test -s conftest.$ac_objext'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416 ac_cv_header_sys_wait_h=yes
15417 else
15418 echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15421 ac_cv_header_sys_wait_h=no
15423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15425 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15426 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15427 if test $ac_cv_header_sys_wait_h = yes; then
15429 cat >>confdefs.h <<\_ACEOF
15430 #define HAVE_SYS_WAIT_H 1
15431 _ACEOF
15436 echo "$as_me:$LINENO: checking for ssize_t" >&5
15437 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15438 if test "${ac_cv_type_ssize_t+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 $ac_includes_default
15449 main ()
15451 if ((ssize_t *) 0)
15452 return 0;
15453 if (sizeof (ssize_t))
15454 return 0;
15456 return 0;
15458 _ACEOF
15459 rm -f conftest.$ac_objext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461 (eval $ac_compile) 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest.$ac_objext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_cv_type_ssize_t=yes
15482 else
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_cv_type_ssize_t=no
15488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15490 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15491 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15492 if test $ac_cv_type_ssize_t = yes; then
15494 else
15496 cat >>confdefs.h <<_ACEOF
15497 #define ssize_t int
15498 _ACEOF
15503 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15504 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15505 cat >conftest.$ac_ext <<_ACEOF
15506 /* confdefs.h. */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 #include <sys/types.h>
15512 #if STDC_HEADERS
15513 #include <stdlib.h>
15514 #include <stddef.h>
15515 #endif
15516 #if HAVE_NETINET_IN_H
15517 #include <netinet/in.h>
15518 #endif
15520 main ()
15522 in_addr_t foo;
15524 return 0;
15526 _ACEOF
15527 rm -f conftest.$ac_objext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15529 (eval $ac_compile) 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
15536 { ac_try='test -z "$ac_c_werror_flag"
15537 || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest.$ac_objext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15550 cat >>confdefs.h <<\_ACEOF
15551 #define HAVE_IN_ADDR_T 1
15552 _ACEOF
15554 echo "$as_me:$LINENO: result: yes" >&5
15555 echo "${ECHO_T}yes" >&6
15556 else
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 echo "$as_me:$LINENO: result: no" >&5
15561 echo "${ECHO_T}no" >&6
15563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15565 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15566 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h. */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 #include <netinet/in.h>
15575 main ()
15577 struct ip_mreq mreq;
15579 return 0;
15581 _ACEOF
15582 rm -f conftest.$ac_objext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15605 cat >>confdefs.h <<\_ACEOF
15606 #define HAVE_STRUCT_IP_MREQ 1
15607 _ACEOF
15609 echo "$as_me:$LINENO: result: yes" >&5
15610 echo "${ECHO_T}yes" >&6
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 echo "$as_me:$LINENO: result: no" >&5
15616 echo "${ECHO_T}no" >&6
15618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15620 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15621 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h. */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 #include <netinet/in.h>
15630 main ()
15632 struct ipv6_mreq mreq6;
15634 return 0;
15636 _ACEOF
15637 rm -f conftest.$ac_objext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15639 (eval $ac_compile) 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
15646 { ac_try='test -z "$ac_c_werror_flag"
15647 || test ! -s conftest.err'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; } &&
15653 { ac_try='test -s conftest.$ac_objext'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15660 cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_STRUCT_IPV6_MREQ 1
15662 _ACEOF
15664 echo "$as_me:$LINENO: result: yes" >&5
15665 echo "${ECHO_T}yes" >&6
15666 else
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 echo "$as_me:$LINENO: result: no" >&5
15671 echo "${ECHO_T}no" >&6
15673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15675 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15676 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 #include <netinet/in.h>
15685 main ()
15687 struct sockaddr_in6 addr6;
15689 return 0;
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694 (eval $ac_compile) 2>conftest.er1
15695 ac_status=$?
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -z "$ac_c_werror_flag"
15702 || test ! -s conftest.err'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15715 cat >>confdefs.h <<\_ACEOF
15716 #define HAVE_INET6 1
15717 _ACEOF
15719 echo "$as_me:$LINENO: result: yes" >&5
15720 echo "${ECHO_T}yes" >&6
15721 else
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 echo "$as_me:$LINENO: result: no" >&5
15726 echo "${ECHO_T}no" >&6
15728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15730 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15731 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #define _POSIX_PII_SOCKET
15739 #include <sys/types.h>
15740 #include <sys/socket.h>
15742 main ()
15744 socklen_t x = 5;
15746 return 0;
15748 _ACEOF
15749 rm -f conftest.$ac_objext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15751 (eval $ac_compile) 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15772 cat >>confdefs.h <<\_ACEOF
15773 #define HAVE_SOCKLEN_T 1
15774 _ACEOF
15776 echo "$as_me:$LINENO: result: yes" >&5
15777 echo "${ECHO_T}yes" >&6
15778 else
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15782 echo "$as_me:$LINENO: result: no" >&5
15783 echo "${ECHO_T}no" >&6
15785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15787 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15788 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h. */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 #include <time.h>
15797 main ()
15799 struct tm tim; tim.tm_gmtoff = 0;
15801 return 0;
15803 _ACEOF
15804 rm -f conftest.$ac_objext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15806 (eval $ac_compile) 2>conftest.er1
15807 ac_status=$?
15808 grep -v '^ *+' conftest.er1 >conftest.err
15809 rm -f conftest.er1
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
15813 { ac_try='test -z "$ac_c_werror_flag"
15814 || test ! -s conftest.err'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15817 ac_status=$?
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; } &&
15820 { ac_try='test -s conftest.$ac_objext'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15827 cat >>confdefs.h <<\_ACEOF
15828 #define STRUCT_TM_HAS_GMTOFF 1
15829 _ACEOF
15831 echo "$as_me:$LINENO: result: yes" >&5
15832 echo "${ECHO_T}yes" >&6
15833 else
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 echo "$as_me:$LINENO: result: no" >&5
15838 echo "${ECHO_T}no" >&6
15839 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15840 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15841 cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h. */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 #include <time.h>
15849 main ()
15851 void i(){long z2 = 2*timezone;}
15853 return 0;
15855 _ACEOF
15856 rm -f conftest.$ac_objext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15858 (eval $ac_compile) 2>conftest.er1
15859 ac_status=$?
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
15865 { ac_try='test -z "$ac_c_werror_flag"
15866 || test ! -s conftest.err'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; } &&
15872 { ac_try='test -s conftest.$ac_objext'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15879 cat >>confdefs.h <<\_ACEOF
15880 #define HAVE_TIMEZONE 1
15881 _ACEOF
15883 echo "$as_me:$LINENO: result: yes" >&5
15884 echo "${ECHO_T}yes" >&6
15885 else
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 echo "$as_me:$LINENO: result: no" >&5
15890 echo "${ECHO_T}no" >&6
15891 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15892 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
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 #include <time.h>
15901 main ()
15903 long z2 = _timezone;
15905 return 0;
15907 _ACEOF
15908 rm -f conftest.$ac_objext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910 (eval $ac_compile) 2>conftest.er1
15911 ac_status=$?
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try='test -z "$ac_c_werror_flag"
15918 || test ! -s conftest.err'
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; } &&
15924 { ac_try='test -s conftest.$ac_objext'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15931 cat >>confdefs.h <<\_ACEOF
15932 #define HAVE_UNDERSCORE_TIMEZONE 1
15933 _ACEOF
15935 echo "$as_me:$LINENO: result: yes" >&5
15936 echo "${ECHO_T}yes" >&6
15937 else
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 echo "$as_me:$LINENO: result: no" >&5
15942 echo "${ECHO_T}no" >&6
15944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15950 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15951 # for constant arguments. Useless!
15952 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15953 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15954 if test "${ac_cv_working_alloca_h+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957 if test x$gcc_no_link = xyes; then
15958 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15960 { (exit 1); exit 1; }; }
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h. */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <alloca.h>
15970 main ()
15972 char *p = (char *) alloca (2 * sizeof (int));
15974 return 0;
15976 _ACEOF
15977 rm -f conftest.$ac_objext conftest$ac_exeext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15979 (eval $ac_link) 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
15986 { ac_try='test -z "$ac_c_werror_flag"
15987 || test ! -s conftest.err'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest$ac_exeext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_cv_working_alloca_h=yes
16000 else
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 ac_cv_working_alloca_h=no
16006 rm -f conftest.err conftest.$ac_objext \
16007 conftest$ac_exeext conftest.$ac_ext
16009 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16010 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16011 if test $ac_cv_working_alloca_h = yes; then
16013 cat >>confdefs.h <<\_ACEOF
16014 #define HAVE_ALLOCA_H 1
16015 _ACEOF
16019 echo "$as_me:$LINENO: checking for alloca" >&5
16020 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16021 if test "${ac_cv_func_alloca_works+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024 if test x$gcc_no_link = xyes; then
16025 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16026 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16027 { (exit 1); exit 1; }; }
16029 cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h. */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 #ifdef __GNUC__
16036 # define alloca __builtin_alloca
16037 #else
16038 # ifdef _MSC_VER
16039 # include <malloc.h>
16040 # define alloca _alloca
16041 # else
16042 # if HAVE_ALLOCA_H
16043 # include <alloca.h>
16044 # else
16045 # ifdef _AIX
16046 #pragma alloca
16047 # else
16048 # ifndef alloca /* predefined by HP cc +Olibcalls */
16049 char *alloca ();
16050 # endif
16051 # endif
16052 # endif
16053 # endif
16054 #endif
16057 main ()
16059 char *p = (char *) alloca (1);
16061 return 0;
16063 _ACEOF
16064 rm -f conftest.$ac_objext conftest$ac_exeext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066 (eval $ac_link) 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
16073 { ac_try='test -z "$ac_c_werror_flag"
16074 || test ! -s conftest.err'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_func_alloca_works=yes
16087 else
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_cv_func_alloca_works=no
16093 rm -f conftest.err conftest.$ac_objext \
16094 conftest$ac_exeext conftest.$ac_ext
16096 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16097 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16099 if test $ac_cv_func_alloca_works = yes; then
16101 cat >>confdefs.h <<\_ACEOF
16102 #define HAVE_ALLOCA 1
16103 _ACEOF
16105 else
16106 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16107 # that cause trouble. Some versions do not even contain alloca or
16108 # contain a buggy version. If you still want to use their alloca,
16109 # use ar to extract alloca.o from them instead of compiling alloca.c.
16111 ALLOCA=alloca.$ac_objext
16113 cat >>confdefs.h <<\_ACEOF
16114 #define C_ALLOCA 1
16115 _ACEOF
16118 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16119 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16120 if test "${ac_cv_os_cray+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 else
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #if defined(CRAY) && ! defined(CRAY2)
16130 webecray
16131 #else
16132 wenotbecray
16133 #endif
16135 _ACEOF
16136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16137 $EGREP "webecray" >/dev/null 2>&1; then
16138 ac_cv_os_cray=yes
16139 else
16140 ac_cv_os_cray=no
16142 rm -f conftest*
16145 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16146 echo "${ECHO_T}$ac_cv_os_cray" >&6
16147 if test $ac_cv_os_cray = yes; then
16148 for ac_func in _getb67 GETB67 getb67; do
16149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16150 echo "$as_me:$LINENO: checking for $ac_func" >&5
16151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16152 if eval "test \"\${$as_ac_var+set}\" = set"; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155 if test x$gcc_no_link = xyes; then
16156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16158 { (exit 1); exit 1; }; }
16160 cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h. */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16168 #define $ac_func innocuous_$ac_func
16170 /* System header to define __stub macros and hopefully few prototypes,
16171 which can conflict with char $ac_func (); below.
16172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16173 <limits.h> exists even on freestanding compilers. */
16175 #ifdef __STDC__
16176 # include <limits.h>
16177 #else
16178 # include <assert.h>
16179 #endif
16181 #undef $ac_func
16183 /* Override any gcc2 internal prototype to avoid an error. */
16184 #ifdef __cplusplus
16185 extern "C"
16187 #endif
16188 /* We use char because int might match the return type of a gcc2
16189 builtin and then its argument prototype would still apply. */
16190 char $ac_func ();
16191 /* The GNU C library defines this for functions which it implements
16192 to always fail with ENOSYS. Some functions are actually named
16193 something starting with __ and the normal name is an alias. */
16194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16195 choke me
16196 #else
16197 char (*f) () = $ac_func;
16198 #endif
16199 #ifdef __cplusplus
16201 #endif
16204 main ()
16206 return f != $ac_func;
16208 return 0;
16210 _ACEOF
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16213 (eval $ac_link) 2>conftest.er1
16214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
16220 { ac_try='test -z "$ac_c_werror_flag"
16221 || test ! -s conftest.err'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest$ac_exeext'
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
16233 eval "$as_ac_var=yes"
16234 else
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16238 eval "$as_ac_var=no"
16240 rm -f conftest.err conftest.$ac_objext \
16241 conftest$ac_exeext conftest.$ac_ext
16243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16245 if test `eval echo '${'$as_ac_var'}'` = yes; then
16247 cat >>confdefs.h <<_ACEOF
16248 #define CRAY_STACKSEG_END $ac_func
16249 _ACEOF
16251 break
16254 done
16257 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16258 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16259 if test "${ac_cv_c_stack_direction+set}" = set; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262 if test "$cross_compiling" = yes; then
16263 ac_cv_c_stack_direction=0
16264 else
16265 cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h. */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16272 find_stack_direction ()
16274 static char *addr = 0;
16275 auto char dummy;
16276 if (addr == 0)
16278 addr = &dummy;
16279 return find_stack_direction ();
16281 else
16282 return (&dummy > addr) ? 1 : -1;
16286 main ()
16288 exit (find_stack_direction () < 0);
16290 _ACEOF
16291 rm -f conftest$ac_exeext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16293 (eval $ac_link) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_cv_c_stack_direction=1
16303 else
16304 echo "$as_me: program exited with status $ac_status" >&5
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 ( exit $ac_status )
16309 ac_cv_c_stack_direction=-1
16311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16314 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16315 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16317 cat >>confdefs.h <<_ACEOF
16318 #define STACK_DIRECTION $ac_cv_c_stack_direction
16319 _ACEOF
16325 for ac_prog in perl
16327 # Extract the first word of "$ac_prog", so it can be a program name with args.
16328 set dummy $ac_prog; ac_word=$2
16329 echo "$as_me:$LINENO: checking for $ac_word" >&5
16330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16331 if test "${ac_cv_prog_PERL+set}" = set; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 else
16334 if test -n "$PERL"; then
16335 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16336 else
16337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16338 for as_dir in $PATH
16340 IFS=$as_save_IFS
16341 test -z "$as_dir" && as_dir=.
16342 for ac_exec_ext in '' $ac_executable_extensions; do
16343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16344 ac_cv_prog_PERL="$ac_prog"
16345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16346 break 2
16348 done
16349 done
16353 PERL=$ac_cv_prog_PERL
16354 if test -n "$PERL"; then
16355 echo "$as_me:$LINENO: result: $PERL" >&5
16356 echo "${ECHO_T}$PERL" >&6
16357 else
16358 echo "$as_me:$LINENO: result: no" >&5
16359 echo "${ECHO_T}no" >&6
16362 test -n "$PERL" && break
16363 done
16364 test -n "$PERL" || PERL="false"
16367 SYSDEP_SOURCES=
16368 SIGNAL_HANDLER_AUX=
16370 case "${host}" in
16371 i?86-*-linux*)
16372 SIGNAL_HANDLER=include/i386-signal.h
16374 sparc*-sun-solaris*)
16375 SIGNAL_HANDLER=include/sparc-signal.h
16377 # ia64-*)
16378 # SYSDEP_SOURCES=sysdep/ia64.c
16379 # test -d sysdep || mkdir sysdep
16380 # ;;
16381 hppa*-*-linux*)
16382 SIGNAL_HANDLER=include/pa-signal.h
16384 hppa*-hp-hpux*)
16385 SIGNAL_HANDLER=include/hppa-signal.h
16387 ia64-*-linux*)
16388 SIGNAL_HANDLER=include/dwarf2-signal.h
16390 powerpc*-*-linux*)
16391 SIGNAL_HANDLER=include/powerpc-signal.h
16393 alpha*-*-linux*)
16394 SIGNAL_HANDLER=include/dwarf2-signal.h
16396 s390*-*-linux*)
16397 SIGNAL_HANDLER=include/s390-signal.h
16399 x86_64*-*-linux*)
16400 SIGNAL_HANDLER=include/x86_64-signal.h
16401 SIGNAL_HANDLER_AUX=include/i386-signal.h
16403 sparc*-*-linux*)
16404 SIGNAL_HANDLER=include/dwarf2-signal.h
16406 sh*-*-linux*)
16407 SIGNAL_HANDLER=include/sh-signal.h
16409 *mingw*)
16410 SIGNAL_HANDLER=include/win32-signal.h
16412 mips*-*-linux*)
16413 SIGNAL_HANDLER=include/mips-signal.h
16415 *-*-darwin*)
16416 SIGNAL_HANDLER=include/darwin-signal.h
16419 SIGNAL_HANDLER=include/default-signal.h
16421 esac
16423 # If we're using sjlj exceptions, forget what we just learned.
16424 if test "$enable_sjlj_exceptions" = yes; then
16425 SIGNAL_HANDLER=include/default-signal.h
16426 SIGNAL_HANDLER_AUX=
16431 if test -z "$SIGNAL_HANDLER_AUX"; then
16432 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16435 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16438 if test "${multilib}" = "yes"; then
16439 multilib_arg="--enable-multilib"
16440 else
16441 multilib_arg=
16444 # See if we support thread-local storage.
16446 # Check whether --enable-tls or --disable-tls was given.
16447 if test "${enable_tls+set}" = set; then
16448 enableval="$enable_tls"
16450 case "$enableval" in
16451 yes|no) ;;
16452 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16453 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16454 { (exit 1); exit 1; }; } ;;
16455 esac
16457 else
16458 enable_tls=yes
16461 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16462 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16463 if test "${have_tls+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16467 if test "$cross_compiling" = yes; then
16468 cat >conftest.$ac_ext <<_ACEOF
16469 __thread int foo;
16470 _ACEOF
16471 rm -f conftest.$ac_objext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -z "$ac_c_werror_flag"
16481 || test ! -s conftest.err'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 have_tls=yes
16494 else
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 have_tls=no
16500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16502 else
16503 cat >conftest.$ac_ext <<_ACEOF
16504 __thread int a; int b; int main() { return a = b; }
16505 _ACEOF
16506 rm -f conftest$ac_exeext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 save_LDFLAGS="$LDFLAGS"
16518 LDFLAGS="-static $LDFLAGS"
16519 if test "$cross_compiling" = yes; then
16520 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16521 See \`config.log' for more details." >&5
16522 echo "$as_me: error: cannot run test program while cross compiling
16523 See \`config.log' for more details." >&2;}
16524 { (exit 1); exit 1; }; }
16525 else
16526 cat >conftest.$ac_ext <<_ACEOF
16527 __thread int a; int b; int main() { return a = b; }
16528 _ACEOF
16529 rm -f conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 have_tls=yes
16541 else
16542 echo "$as_me: program exited with status $ac_status" >&5
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ( exit $ac_status )
16547 have_tls=no
16549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16551 LDFLAGS="$save_LDFLAGS"
16552 else
16553 echo "$as_me: program exited with status $ac_status" >&5
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ( exit $ac_status )
16558 have_tls=no
16560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16563 echo "$as_me:$LINENO: result: $have_tls" >&5
16564 echo "${ECHO_T}$have_tls" >&6
16565 if test "$enable_tls $have_tls" = "yes yes"; then
16567 cat >>confdefs.h <<\_ACEOF
16568 #define HAVE_TLS 1
16569 _ACEOF
16573 # Check if linker supports static linking on a per library basis
16574 LD_START_STATIC_SPEC=
16575 LD_FINISH_STATIC_SPEC=
16576 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16577 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16578 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16579 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16585 here=`${PWDCMD-pwd}`
16588 # We get this from the environment.
16591 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16594 ac_config_files="$ac_config_files scripts/jar"
16597 ac_config_commands="$ac_config_commands default"
16600 cat >confcache <<\_ACEOF
16601 # This file is a shell script that caches the results of configure
16602 # tests run on this system so they can be shared between configure
16603 # scripts and configure runs, see configure's option --config-cache.
16604 # It is not useful on other systems. If it contains results you don't
16605 # want to keep, you may remove or edit it.
16607 # config.status only pays attention to the cache file if you give it
16608 # the --recheck option to rerun configure.
16610 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16611 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16612 # following values.
16614 _ACEOF
16616 # The following way of writing the cache mishandles newlines in values,
16617 # but we know of no workaround that is simple, portable, and efficient.
16618 # So, don't put newlines in cache variables' values.
16619 # Ultrix sh set writes to stderr and can't be redirected directly,
16620 # and sets the high bit in the cache file unless we assign to the vars.
16622 (set) 2>&1 |
16623 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16624 *ac_space=\ *)
16625 # `set' does not quote correctly, so add quotes (double-quote
16626 # substitution turns \\\\ into \\, and sed turns \\ into \).
16627 sed -n \
16628 "s/'/'\\\\''/g;
16629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16632 # `set' quotes correctly as required by POSIX, so do not add quotes.
16633 sed -n \
16634 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16636 esac;
16638 sed '
16639 t clear
16640 : clear
16641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16642 t end
16643 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16644 : end' >>confcache
16645 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16646 if test -w $cache_file; then
16647 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16648 cat confcache >$cache_file
16649 else
16650 echo "not updating unwritable cache $cache_file"
16653 rm -f confcache
16655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16656 # Let make expand exec_prefix.
16657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16661 # trailing colons and then remove the whole line if VPATH becomes empty
16662 # (actually we leave an empty line to preserve line numbers).
16663 if test "x$srcdir" = x.; then
16664 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16665 s/:*\$(srcdir):*/:/;
16666 s/:*\${srcdir}:*/:/;
16667 s/:*@srcdir@:*/:/;
16668 s/^\([^=]*=[ ]*\):*/\1/;
16669 s/:*$//;
16670 s/^[^=]*=[ ]*$//;
16674 DEFS=-DHAVE_CONFIG_H
16676 ac_libobjs=
16677 ac_ltlibobjs=
16678 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16679 # 1. Remove the extension, and $U if already installed.
16680 ac_i=`echo "$ac_i" |
16681 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16682 # 2. Add them.
16683 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16684 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16685 done
16686 LIBOBJS=$ac_libobjs
16688 LTLIBOBJS=$ac_ltlibobjs
16691 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16692 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16693 Usually this means the macro was only invoked conditionally." >&5
16694 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16695 Usually this means the macro was only invoked conditionally." >&2;}
16696 { (exit 1); exit 1; }; }
16698 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16699 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16700 Usually this means the macro was only invoked conditionally." >&5
16701 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16702 Usually this means the macro was only invoked conditionally." >&2;}
16703 { (exit 1); exit 1; }; }
16705 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16706 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16707 Usually this means the macro was only invoked conditionally." >&5
16708 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16709 Usually this means the macro was only invoked conditionally." >&2;}
16710 { (exit 1); exit 1; }; }
16712 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16713 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16714 Usually this means the macro was only invoked conditionally." >&5
16715 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16716 Usually this means the macro was only invoked conditionally." >&2;}
16717 { (exit 1); exit 1; }; }
16719 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16720 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16721 Usually this means the macro was only invoked conditionally." >&5
16722 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16723 Usually this means the macro was only invoked conditionally." >&2;}
16724 { (exit 1); exit 1; }; }
16726 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16727 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16728 Usually this means the macro was only invoked conditionally." >&5
16729 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16730 Usually this means the macro was only invoked conditionally." >&2;}
16731 { (exit 1); exit 1; }; }
16733 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16734 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16735 Usually this means the macro was only invoked conditionally." >&5
16736 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16737 Usually this means the macro was only invoked conditionally." >&2;}
16738 { (exit 1); exit 1; }; }
16740 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16741 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16742 Usually this means the macro was only invoked conditionally." >&5
16743 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16744 Usually this means the macro was only invoked conditionally." >&2;}
16745 { (exit 1); exit 1; }; }
16747 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16748 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16749 Usually this means the macro was only invoked conditionally." >&5
16750 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16751 Usually this means the macro was only invoked conditionally." >&2;}
16752 { (exit 1); exit 1; }; }
16754 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16755 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16756 Usually this means the macro was only invoked conditionally." >&5
16757 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16758 Usually this means the macro was only invoked conditionally." >&2;}
16759 { (exit 1); exit 1; }; }
16761 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16762 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16763 Usually this means the macro was only invoked conditionally." >&5
16764 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16765 Usually this means the macro was only invoked conditionally." >&2;}
16766 { (exit 1); exit 1; }; }
16768 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16769 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16770 Usually this means the macro was only invoked conditionally." >&5
16771 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16772 Usually this means the macro was only invoked conditionally." >&2;}
16773 { (exit 1); exit 1; }; }
16775 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16776 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16777 Usually this means the macro was only invoked conditionally." >&5
16778 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16779 Usually this means the macro was only invoked conditionally." >&2;}
16780 { (exit 1); exit 1; }; }
16782 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16783 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16784 Usually this means the macro was only invoked conditionally." >&5
16785 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16786 Usually this means the macro was only invoked conditionally." >&2;}
16787 { (exit 1); exit 1; }; }
16789 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16790 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16791 Usually this means the macro was only invoked conditionally." >&5
16792 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16793 Usually this means the macro was only invoked conditionally." >&2;}
16794 { (exit 1); exit 1; }; }
16796 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16797 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16798 Usually this means the macro was only invoked conditionally." >&5
16799 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16800 Usually this means the macro was only invoked conditionally." >&2;}
16801 { (exit 1); exit 1; }; }
16803 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16804 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16805 Usually this means the macro was only invoked conditionally." >&5
16806 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16807 Usually this means the macro was only invoked conditionally." >&2;}
16808 { (exit 1); exit 1; }; }
16810 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16811 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16812 Usually this means the macro was only invoked conditionally." >&5
16813 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16814 Usually this means the macro was only invoked conditionally." >&2;}
16815 { (exit 1); exit 1; }; }
16817 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16818 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16819 Usually this means the macro was only invoked conditionally." >&5
16820 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16821 Usually this means the macro was only invoked conditionally." >&2;}
16822 { (exit 1); exit 1; }; }
16824 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16825 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16826 Usually this means the macro was only invoked conditionally." >&5
16827 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16828 Usually this means the macro was only invoked conditionally." >&2;}
16829 { (exit 1); exit 1; }; }
16832 : ${CONFIG_STATUS=./config.status}
16833 ac_clean_files_save=$ac_clean_files
16834 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16835 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16836 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16837 cat >$CONFIG_STATUS <<_ACEOF
16838 #! $SHELL
16839 # Generated by $as_me.
16840 # Run this file to recreate the current configuration.
16841 # Compiler output produced by configure, useful for debugging
16842 # configure, is in config.log if it exists.
16844 debug=false
16845 ac_cs_recheck=false
16846 ac_cs_silent=false
16847 SHELL=\${CONFIG_SHELL-$SHELL}
16848 _ACEOF
16850 cat >>$CONFIG_STATUS <<\_ACEOF
16851 ## --------------------- ##
16852 ## M4sh Initialization. ##
16853 ## --------------------- ##
16855 # Be Bourne compatible
16856 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16857 emulate sh
16858 NULLCMD=:
16859 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16860 # is contrary to our usage. Disable this feature.
16861 alias -g '${1+"$@"}'='"$@"'
16862 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16863 set -o posix
16865 DUALCASE=1; export DUALCASE # for MKS sh
16867 # Support unset when possible.
16868 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16869 as_unset=unset
16870 else
16871 as_unset=false
16875 # Work around bugs in pre-3.0 UWIN ksh.
16876 $as_unset ENV MAIL MAILPATH
16877 PS1='$ '
16878 PS2='> '
16879 PS4='+ '
16881 # NLS nuisances.
16882 for as_var in \
16883 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16884 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16885 LC_TELEPHONE LC_TIME
16887 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16888 eval $as_var=C; export $as_var
16889 else
16890 $as_unset $as_var
16892 done
16894 # Required to use basename.
16895 if expr a : '\(a\)' >/dev/null 2>&1; then
16896 as_expr=expr
16897 else
16898 as_expr=false
16901 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16902 as_basename=basename
16903 else
16904 as_basename=false
16908 # Name of the executable.
16909 as_me=`$as_basename "$0" ||
16910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16911 X"$0" : 'X\(//\)$' \| \
16912 X"$0" : 'X\(/\)$' \| \
16913 . : '\(.\)' 2>/dev/null ||
16914 echo X/"$0" |
16915 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16916 /^X\/\(\/\/\)$/{ s//\1/; q; }
16917 /^X\/\(\/\).*/{ s//\1/; q; }
16918 s/.*/./; q'`
16921 # PATH needs CR, and LINENO needs CR and PATH.
16922 # Avoid depending upon Character Ranges.
16923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16926 as_cr_digits='0123456789'
16927 as_cr_alnum=$as_cr_Letters$as_cr_digits
16929 # The user is always right.
16930 if test "${PATH_SEPARATOR+set}" != set; then
16931 echo "#! /bin/sh" >conf$$.sh
16932 echo "exit 0" >>conf$$.sh
16933 chmod +x conf$$.sh
16934 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16935 PATH_SEPARATOR=';'
16936 else
16937 PATH_SEPARATOR=:
16939 rm -f conf$$.sh
16943 as_lineno_1=$LINENO
16944 as_lineno_2=$LINENO
16945 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16946 test "x$as_lineno_1" != "x$as_lineno_2" &&
16947 test "x$as_lineno_3" = "x$as_lineno_2" || {
16948 # Find who we are. Look in the path if we contain no path at all
16949 # relative or not.
16950 case $0 in
16951 *[\\/]* ) as_myself=$0 ;;
16952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16953 for as_dir in $PATH
16955 IFS=$as_save_IFS
16956 test -z "$as_dir" && as_dir=.
16957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16958 done
16961 esac
16962 # We did not find ourselves, most probably we were run as `sh COMMAND'
16963 # in which case we are not to be found in the path.
16964 if test "x$as_myself" = x; then
16965 as_myself=$0
16967 if test ! -f "$as_myself"; then
16968 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16969 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16970 { (exit 1); exit 1; }; }
16972 case $CONFIG_SHELL in
16974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16975 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16977 IFS=$as_save_IFS
16978 test -z "$as_dir" && as_dir=.
16979 for as_base in sh bash ksh sh5; do
16980 case $as_dir in
16982 if ("$as_dir/$as_base" -c '
16983 as_lineno_1=$LINENO
16984 as_lineno_2=$LINENO
16985 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16986 test "x$as_lineno_1" != "x$as_lineno_2" &&
16987 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16988 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16989 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16990 CONFIG_SHELL=$as_dir/$as_base
16991 export CONFIG_SHELL
16992 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16993 fi;;
16994 esac
16995 done
16996 done
16998 esac
17000 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17001 # uniformly replaced by the line number. The first 'sed' inserts a
17002 # line-number line before each line; the second 'sed' does the real
17003 # work. The second script uses 'N' to pair each line-number line
17004 # with the numbered line, and appends trailing '-' during
17005 # substitution so that $LINENO is not a special case at line end.
17006 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17007 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17008 sed '=' <$as_myself |
17009 sed '
17011 s,$,-,
17012 : loop
17013 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17014 t loop
17015 s,-$,,
17016 s,^['$as_cr_digits']*\n,,
17017 ' >$as_me.lineno &&
17018 chmod +x $as_me.lineno ||
17019 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17020 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17021 { (exit 1); exit 1; }; }
17023 # Don't try to exec as it changes $[0], causing all sort of problems
17024 # (the dirname of $[0] is not the place where we might find the
17025 # original and so on. Autoconf is especially sensible to this).
17026 . ./$as_me.lineno
17027 # Exit status is that of the last command.
17028 exit
17032 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17033 *c*,-n*) ECHO_N= ECHO_C='
17034 ' ECHO_T=' ' ;;
17035 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17036 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17037 esac
17039 if expr a : '\(a\)' >/dev/null 2>&1; then
17040 as_expr=expr
17041 else
17042 as_expr=false
17045 rm -f conf$$ conf$$.exe conf$$.file
17046 echo >conf$$.file
17047 if ln -s conf$$.file conf$$ 2>/dev/null; then
17048 # We could just check for DJGPP; but this test a) works b) is more generic
17049 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17050 if test -f conf$$.exe; then
17051 # Don't use ln at all; we don't have any links
17052 as_ln_s='cp -p'
17053 else
17054 as_ln_s='ln -s'
17056 elif ln conf$$.file conf$$ 2>/dev/null; then
17057 as_ln_s=ln
17058 else
17059 as_ln_s='cp -p'
17061 rm -f conf$$ conf$$.exe conf$$.file
17063 if mkdir -p . 2>/dev/null; then
17064 as_mkdir_p=:
17065 else
17066 test -d ./-p && rmdir ./-p
17067 as_mkdir_p=false
17070 as_executable_p="test -f"
17072 # Sed expression to map a string onto a valid CPP name.
17073 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17075 # Sed expression to map a string onto a valid variable name.
17076 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17079 # IFS
17080 # We need space, tab and new line, in precisely that order.
17081 as_nl='
17083 IFS=" $as_nl"
17085 # CDPATH.
17086 $as_unset CDPATH
17088 exec 6>&1
17090 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17091 # report actual input values of CONFIG_FILES etc. instead of their
17092 # values after options handling. Logging --version etc. is OK.
17093 exec 5>>config.log
17095 echo
17096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17097 ## Running $as_me. ##
17098 _ASBOX
17099 } >&5
17100 cat >&5 <<_CSEOF
17102 This file was extended by libjava $as_me version-unused, which was
17103 generated by GNU Autoconf 2.59. Invocation command line was
17105 CONFIG_FILES = $CONFIG_FILES
17106 CONFIG_HEADERS = $CONFIG_HEADERS
17107 CONFIG_LINKS = $CONFIG_LINKS
17108 CONFIG_COMMANDS = $CONFIG_COMMANDS
17109 $ $0 $@
17111 _CSEOF
17112 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17113 echo >&5
17114 _ACEOF
17116 # Files that config.status was made for.
17117 if test -n "$ac_config_files"; then
17118 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17121 if test -n "$ac_config_headers"; then
17122 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17125 if test -n "$ac_config_links"; then
17126 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17129 if test -n "$ac_config_commands"; then
17130 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17133 cat >>$CONFIG_STATUS <<\_ACEOF
17135 ac_cs_usage="\
17136 \`$as_me' instantiates files from templates according to the
17137 current configuration.
17139 Usage: $0 [OPTIONS] [FILE]...
17141 -h, --help print this help, then exit
17142 -V, --version print version number, then exit
17143 -q, --quiet do not print progress messages
17144 -d, --debug don't remove temporary files
17145 --recheck update $as_me by reconfiguring in the same conditions
17146 --file=FILE[:TEMPLATE]
17147 instantiate the configuration file FILE
17148 --header=FILE[:TEMPLATE]
17149 instantiate the configuration header FILE
17151 Configuration files:
17152 $config_files
17154 Configuration headers:
17155 $config_headers
17157 Configuration links:
17158 $config_links
17160 Configuration commands:
17161 $config_commands
17163 Report bugs to <bug-autoconf@gnu.org>."
17164 _ACEOF
17166 cat >>$CONFIG_STATUS <<_ACEOF
17167 ac_cs_version="\\
17168 libjava config.status version-unused
17169 configured by $0, generated by GNU Autoconf 2.59,
17170 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17172 Copyright (C) 2003 Free Software Foundation, Inc.
17173 This config.status script is free software; the Free Software Foundation
17174 gives unlimited permission to copy, distribute and modify it."
17175 srcdir=$srcdir
17176 INSTALL="$INSTALL"
17177 _ACEOF
17179 cat >>$CONFIG_STATUS <<\_ACEOF
17180 # If no file are specified by the user, then we need to provide default
17181 # value. By we need to know if files were specified by the user.
17182 ac_need_defaults=:
17183 while test $# != 0
17185 case $1 in
17186 --*=*)
17187 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17188 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17189 ac_shift=:
17192 ac_option=$1
17193 ac_optarg=$2
17194 ac_shift=shift
17196 *) # This is not an option, so the user has probably given explicit
17197 # arguments.
17198 ac_option=$1
17199 ac_need_defaults=false;;
17200 esac
17202 case $ac_option in
17203 # Handling of the options.
17204 _ACEOF
17205 cat >>$CONFIG_STATUS <<\_ACEOF
17206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17207 ac_cs_recheck=: ;;
17208 --version | --vers* | -V )
17209 echo "$ac_cs_version"; exit 0 ;;
17210 --he | --h)
17211 # Conflict between --help and --header
17212 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17213 Try \`$0 --help' for more information." >&5
17214 echo "$as_me: error: ambiguous option: $1
17215 Try \`$0 --help' for more information." >&2;}
17216 { (exit 1); exit 1; }; };;
17217 --help | --hel | -h )
17218 echo "$ac_cs_usage"; exit 0 ;;
17219 --debug | --d* | -d )
17220 debug=: ;;
17221 --file | --fil | --fi | --f )
17222 $ac_shift
17223 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17224 ac_need_defaults=false;;
17225 --header | --heade | --head | --hea )
17226 $ac_shift
17227 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17228 ac_need_defaults=false;;
17229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17230 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17231 ac_cs_silent=: ;;
17233 # This is an error.
17234 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17235 Try \`$0 --help' for more information." >&5
17236 echo "$as_me: error: unrecognized option: $1
17237 Try \`$0 --help' for more information." >&2;}
17238 { (exit 1); exit 1; }; } ;;
17240 *) ac_config_targets="$ac_config_targets $1" ;;
17242 esac
17243 shift
17244 done
17246 ac_configure_extra_args=
17248 if $ac_cs_silent; then
17249 exec 6>/dev/null
17250 ac_configure_extra_args="$ac_configure_extra_args --silent"
17253 _ACEOF
17254 cat >>$CONFIG_STATUS <<_ACEOF
17255 if \$ac_cs_recheck; then
17256 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17257 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17260 _ACEOF
17262 cat >>$CONFIG_STATUS <<_ACEOF
17264 # INIT-COMMANDS section.
17267 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17268 srcdir=${srcdir}
17269 host=${host}
17270 target=${target}
17271 with_multisubdir=${with_multisubdir}
17272 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17273 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17274 libgcj_basedir=${libgcj_basedir}
17275 CC="${CC}"
17276 CXX="${CXX}"
17277 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17280 _ACEOF
17284 cat >>$CONFIG_STATUS <<\_ACEOF
17285 for ac_config_target in $ac_config_targets
17287 case "$ac_config_target" in
17288 # Handling of arguments.
17289 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17290 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17291 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17292 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17293 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17294 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17295 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17296 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17297 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17298 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17299 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17300 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17301 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17302 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17303 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17304 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17305 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17306 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17307 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17308 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17309 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17310 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17311 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17312 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17313 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17314 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17315 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17316 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17317 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17318 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17319 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17320 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17321 { (exit 1); exit 1; }; };;
17322 esac
17323 done
17325 # If the user did not use the arguments to specify the items to instantiate,
17326 # then the envvar interface is used. Set only those that are not.
17327 # We use the long form for the default assignment because of an extremely
17328 # bizarre bug on SunOS 4.1.3.
17329 if $ac_need_defaults; then
17330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17332 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17336 # Have a temporary directory for convenience. Make it in the build tree
17337 # simply because there is no reason to put it here, and in addition,
17338 # creating and moving files from /tmp can sometimes cause problems.
17339 # Create a temporary directory, and hook for its removal unless debugging.
17340 $debug ||
17342 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17343 trap '{ (exit 1); exit 1; }' 1 2 13 15
17346 # Create a (secure) tmp directory for tmp files.
17349 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17350 test -n "$tmp" && test -d "$tmp"
17351 } ||
17353 tmp=./confstat$$-$RANDOM
17354 (umask 077 && mkdir $tmp)
17355 } ||
17357 echo "$me: cannot create a temporary directory in ." >&2
17358 { (exit 1); exit 1; }
17361 _ACEOF
17363 cat >>$CONFIG_STATUS <<_ACEOF
17366 # CONFIG_FILES section.
17369 # No need to generate the scripts if there are no CONFIG_FILES.
17370 # This happens for instance when ./config.status config.h
17371 if test -n "\$CONFIG_FILES"; then
17372 # Protect against being on the right side of a sed subst in config.status.
17373 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17374 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17375 s,@SHELL@,$SHELL,;t t
17376 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17377 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17378 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17379 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17380 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17381 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17382 s,@exec_prefix@,$exec_prefix,;t t
17383 s,@prefix@,$prefix,;t t
17384 s,@program_transform_name@,$program_transform_name,;t t
17385 s,@bindir@,$bindir,;t t
17386 s,@sbindir@,$sbindir,;t t
17387 s,@libexecdir@,$libexecdir,;t t
17388 s,@datadir@,$datadir,;t t
17389 s,@sysconfdir@,$sysconfdir,;t t
17390 s,@sharedstatedir@,$sharedstatedir,;t t
17391 s,@localstatedir@,$localstatedir,;t t
17392 s,@libdir@,$libdir,;t t
17393 s,@includedir@,$includedir,;t t
17394 s,@oldincludedir@,$oldincludedir,;t t
17395 s,@infodir@,$infodir,;t t
17396 s,@mandir@,$mandir,;t t
17397 s,@build_alias@,$build_alias,;t t
17398 s,@host_alias@,$host_alias,;t t
17399 s,@target_alias@,$target_alias,;t t
17400 s,@DEFS@,$DEFS,;t t
17401 s,@ECHO_C@,$ECHO_C,;t t
17402 s,@ECHO_N@,$ECHO_N,;t t
17403 s,@ECHO_T@,$ECHO_T,;t t
17404 s,@LIBS@,$LIBS,;t t
17405 s,@build@,$build,;t t
17406 s,@build_cpu@,$build_cpu,;t t
17407 s,@build_vendor@,$build_vendor,;t t
17408 s,@build_os@,$build_os,;t t
17409 s,@build_subdir@,$build_subdir,;t t
17410 s,@host_subdir@,$host_subdir,;t t
17411 s,@target_subdir@,$target_subdir,;t t
17412 s,@libgcj_basedir@,$libgcj_basedir,;t t
17413 s,@host@,$host,;t t
17414 s,@host_cpu@,$host_cpu,;t t
17415 s,@host_vendor@,$host_vendor,;t t
17416 s,@host_os@,$host_os,;t t
17417 s,@target@,$target,;t t
17418 s,@target_cpu@,$target_cpu,;t t
17419 s,@target_vendor@,$target_vendor,;t t
17420 s,@target_os@,$target_os,;t t
17421 s,@target_noncanonical@,$target_noncanonical,;t t
17422 s,@LN_S@,$LN_S,;t t
17423 s,@mkinstalldirs@,$mkinstalldirs,;t t
17424 s,@CC@,$CC,;t t
17425 s,@ac_ct_CC@,$ac_ct_CC,;t t
17426 s,@EXEEXT@,$EXEEXT,;t t
17427 s,@OBJEXT@,$OBJEXT,;t t
17428 s,@CXX@,$CXX,;t t
17429 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17430 s,@CFLAGS@,$CFLAGS,;t t
17431 s,@CXXFLAGS@,$CXXFLAGS,;t t
17432 s,@LDFLAGS@,$LDFLAGS,;t t
17433 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17434 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17435 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17436 s,@CYGPATH_W@,$CYGPATH_W,;t t
17437 s,@PACKAGE@,$PACKAGE,;t t
17438 s,@VERSION@,$VERSION,;t t
17439 s,@ACLOCAL@,$ACLOCAL,;t t
17440 s,@AUTOCONF@,$AUTOCONF,;t t
17441 s,@AUTOMAKE@,$AUTOMAKE,;t t
17442 s,@AUTOHEADER@,$AUTOHEADER,;t t
17443 s,@MAKEINFO@,$MAKEINFO,;t t
17444 s,@install_sh@,$install_sh,;t t
17445 s,@STRIP@,$STRIP,;t t
17446 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17447 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17448 s,@mkdir_p@,$mkdir_p,;t t
17449 s,@AWK@,$AWK,;t t
17450 s,@SET_MAKE@,$SET_MAKE,;t t
17451 s,@am__leading_dot@,$am__leading_dot,;t t
17452 s,@AMTAR@,$AMTAR,;t t
17453 s,@am__tar@,$am__tar,;t t
17454 s,@am__untar@,$am__untar,;t t
17455 s,@DEPDIR@,$DEPDIR,;t t
17456 s,@am__include@,$am__include,;t t
17457 s,@am__quote@,$am__quote,;t t
17458 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17459 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17460 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17461 s,@CCDEPMODE@,$CCDEPMODE,;t t
17462 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17463 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17464 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17465 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17466 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17467 s,@AS@,$AS,;t t
17468 s,@ac_ct_AS@,$ac_ct_AS,;t t
17469 s,@LD@,$LD,;t t
17470 s,@ac_ct_LD@,$ac_ct_LD,;t t
17471 s,@AR@,$AR,;t t
17472 s,@ac_ct_AR@,$ac_ct_AR,;t t
17473 s,@RANLIB@,$RANLIB,;t t
17474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17475 s,@JAR@,$JAR,;t t
17476 s,@ZIP@,$ZIP,;t t
17477 s,@UNZIP@,$UNZIP,;t t
17478 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17479 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17480 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17481 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17482 s,@MAINT@,$MAINT,;t t
17483 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17484 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17485 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17486 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17487 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17488 s,@TOOLKIT@,$TOOLKIT,;t t
17489 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17490 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17491 s,@GCJH@,$GCJH,;t t
17492 s,@INCLTDL@,$INCLTDL,;t t
17493 s,@LIBLTDL@,$LIBLTDL,;t t
17494 s,@DIRLTDL@,$DIRLTDL,;t t
17495 s,@LIBTOOL@,$LIBTOOL,;t t
17496 s,@CXXCPP@,$CXXCPP,;t t
17497 s,@CPPFLAGS@,$CPPFLAGS,;t t
17498 s,@GCJ@,$GCJ,;t t
17499 s,@GCJFLAGS@,$GCJFLAGS,;t t
17500 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17501 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17502 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17503 s,@subdirs@,$subdirs,;t t
17504 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17505 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17506 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17507 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17508 s,@JAVA_HOME@,$JAVA_HOME,;t t
17509 s,@INTERPRETER@,$INTERPRETER,;t t
17510 s,@LIBFFI@,$LIBFFI,;t t
17511 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17512 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17513 s,@CPP@,$CPP,;t t
17514 s,@EGREP@,$EGREP,;t t
17515 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17516 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17517 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17518 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17519 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17520 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17521 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17522 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17523 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17524 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17525 s,@X_CFLAGS@,$X_CFLAGS,;t t
17526 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17527 s,@X_LIBS@,$X_LIBS,;t t
17528 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17529 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17530 s,@GCLIBS@,$GCLIBS,;t t
17531 s,@GCINCS@,$GCINCS,;t t
17532 s,@GCDEPS@,$GCDEPS,;t t
17533 s,@GCSPEC@,$GCSPEC,;t t
17534 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17535 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17536 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17537 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17538 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17539 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17540 s,@THREADLIBS@,$THREADLIBS,;t t
17541 s,@THREADINCS@,$THREADINCS,;t t
17542 s,@THREADDEPS@,$THREADDEPS,;t t
17543 s,@THREADSPEC@,$THREADSPEC,;t t
17544 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17545 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17546 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17547 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17548 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17549 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17550 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17551 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17552 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17553 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17554 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17555 s,@LIBICONV@,$LIBICONV,;t t
17556 s,@LTLIBICONV@,$LTLIBICONV,;t t
17557 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17558 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17559 s,@GTK_LIBS@,$GTK_LIBS,;t t
17560 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17561 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17562 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17563 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17564 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17565 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17566 s,@ZLIBS@,$ZLIBS,;t t
17567 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17568 s,@ZINCS@,$ZINCS,;t t
17569 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17570 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17571 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17572 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17573 s,@IEEESPEC@,$IEEESPEC,;t t
17574 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17575 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17576 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17577 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17578 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17579 s,@toolexecdir@,$toolexecdir,;t t
17580 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17581 s,@toolexeclibdir@,$toolexeclibdir,;t t
17582 s,@dbexecdir@,$dbexecdir,;t t
17583 s,@GCJVERSION@,$GCJVERSION,;t t
17584 s,@gxx_include_dir@,$gxx_include_dir,;t t
17585 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17586 s,@ALLOCA@,$ALLOCA,;t t
17587 s,@PERL@,$PERL,;t t
17588 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17589 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17590 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17591 s,@here@,$here,;t t
17592 s,@LIBOBJS@,$LIBOBJS,;t t
17593 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17594 CEOF
17596 _ACEOF
17598 cat >>$CONFIG_STATUS <<\_ACEOF
17599 # Split the substitutions into bite-sized pieces for seds with
17600 # small command number limits, like on Digital OSF/1 and HP-UX.
17601 ac_max_sed_lines=48
17602 ac_sed_frag=1 # Number of current file.
17603 ac_beg=1 # First line for current file.
17604 ac_end=$ac_max_sed_lines # Line after last line for current file.
17605 ac_more_lines=:
17606 ac_sed_cmds=
17607 while $ac_more_lines; do
17608 if test $ac_beg -gt 1; then
17609 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17610 else
17611 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17613 if test ! -s $tmp/subs.frag; then
17614 ac_more_lines=false
17615 else
17616 # The purpose of the label and of the branching condition is to
17617 # speed up the sed processing (if there are no `@' at all, there
17618 # is no need to browse any of the substitutions).
17619 # These are the two extra sed commands mentioned above.
17620 (echo ':t
17621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17622 if test -z "$ac_sed_cmds"; then
17623 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17624 else
17625 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17627 ac_sed_frag=`expr $ac_sed_frag + 1`
17628 ac_beg=$ac_end
17629 ac_end=`expr $ac_end + $ac_max_sed_lines`
17631 done
17632 if test -z "$ac_sed_cmds"; then
17633 ac_sed_cmds=cat
17635 fi # test -n "$CONFIG_FILES"
17637 _ACEOF
17638 cat >>$CONFIG_STATUS <<\_ACEOF
17639 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17640 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17641 case $ac_file in
17642 - | *:- | *:-:* ) # input from stdin
17643 cat >$tmp/stdin
17644 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17646 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17648 * ) ac_file_in=$ac_file.in ;;
17649 esac
17651 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17652 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17654 X"$ac_file" : 'X\(//\)[^/]' \| \
17655 X"$ac_file" : 'X\(//\)$' \| \
17656 X"$ac_file" : 'X\(/\)' \| \
17657 . : '\(.\)' 2>/dev/null ||
17658 echo X"$ac_file" |
17659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17661 /^X\(\/\/\)$/{ s//\1/; q; }
17662 /^X\(\/\).*/{ s//\1/; q; }
17663 s/.*/./; q'`
17664 { if $as_mkdir_p; then
17665 mkdir -p "$ac_dir"
17666 else
17667 as_dir="$ac_dir"
17668 as_dirs=
17669 while test ! -d "$as_dir"; do
17670 as_dirs="$as_dir $as_dirs"
17671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17673 X"$as_dir" : 'X\(//\)[^/]' \| \
17674 X"$as_dir" : 'X\(//\)$' \| \
17675 X"$as_dir" : 'X\(/\)' \| \
17676 . : '\(.\)' 2>/dev/null ||
17677 echo X"$as_dir" |
17678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17680 /^X\(\/\/\)$/{ s//\1/; q; }
17681 /^X\(\/\).*/{ s//\1/; q; }
17682 s/.*/./; q'`
17683 done
17684 test ! -n "$as_dirs" || mkdir $as_dirs
17685 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17686 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17687 { (exit 1); exit 1; }; }; }
17689 ac_builddir=.
17691 if test "$ac_dir" != .; then
17692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17693 # A "../" for each directory in $ac_dir_suffix.
17694 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17695 else
17696 ac_dir_suffix= ac_top_builddir=
17699 case $srcdir in
17700 .) # No --srcdir option. We are building in place.
17701 ac_srcdir=.
17702 if test -z "$ac_top_builddir"; then
17703 ac_top_srcdir=.
17704 else
17705 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17706 fi ;;
17707 [\\/]* | ?:[\\/]* ) # Absolute path.
17708 ac_srcdir=$srcdir$ac_dir_suffix;
17709 ac_top_srcdir=$srcdir ;;
17710 *) # Relative path.
17711 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17712 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17713 esac
17715 # Do not use `cd foo && pwd` to compute absolute paths, because
17716 # the directories may not exist.
17717 case `pwd` in
17718 .) ac_abs_builddir="$ac_dir";;
17720 case "$ac_dir" in
17721 .) ac_abs_builddir=`pwd`;;
17722 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17723 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17724 esac;;
17725 esac
17726 case $ac_abs_builddir in
17727 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17729 case ${ac_top_builddir}. in
17730 .) ac_abs_top_builddir=$ac_abs_builddir;;
17731 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17732 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17733 esac;;
17734 esac
17735 case $ac_abs_builddir in
17736 .) ac_abs_srcdir=$ac_srcdir;;
17738 case $ac_srcdir in
17739 .) ac_abs_srcdir=$ac_abs_builddir;;
17740 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17741 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17742 esac;;
17743 esac
17744 case $ac_abs_builddir in
17745 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17747 case $ac_top_srcdir in
17748 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17749 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17750 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17751 esac;;
17752 esac
17755 case $INSTALL in
17756 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17757 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17758 esac
17760 if test x"$ac_file" != x-; then
17761 { echo "$as_me:$LINENO: creating $ac_file" >&5
17762 echo "$as_me: creating $ac_file" >&6;}
17763 rm -f "$ac_file"
17765 # Let's still pretend it is `configure' which instantiates (i.e., don't
17766 # use $as_me), people would be surprised to read:
17767 # /* config.h. Generated by config.status. */
17768 if test x"$ac_file" = x-; then
17769 configure_input=
17770 else
17771 configure_input="$ac_file. "
17773 configure_input=$configure_input"Generated from `echo $ac_file_in |
17774 sed 's,.*/,,'` by configure."
17776 # First look for the input files in the build tree, otherwise in the
17777 # src tree.
17778 ac_file_inputs=`IFS=:
17779 for f in $ac_file_in; do
17780 case $f in
17781 -) echo $tmp/stdin ;;
17782 [\\/$]*)
17783 # Absolute (can't be DOS-style, as IFS=:)
17784 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17785 echo "$as_me: error: cannot find input file: $f" >&2;}
17786 { (exit 1); exit 1; }; }
17787 echo "$f";;
17788 *) # Relative
17789 if test -f "$f"; then
17790 # Build tree
17791 echo "$f"
17792 elif test -f "$srcdir/$f"; then
17793 # Source tree
17794 echo "$srcdir/$f"
17795 else
17796 # /dev/null tree
17797 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17798 echo "$as_me: error: cannot find input file: $f" >&2;}
17799 { (exit 1); exit 1; }; }
17800 fi;;
17801 esac
17802 done` || { (exit 1); exit 1; }
17803 _ACEOF
17804 cat >>$CONFIG_STATUS <<_ACEOF
17805 sed "$ac_vpsub
17806 $extrasub
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<\_ACEOF
17810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17811 s,@configure_input@,$configure_input,;t t
17812 s,@srcdir@,$ac_srcdir,;t t
17813 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17814 s,@top_srcdir@,$ac_top_srcdir,;t t
17815 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17816 s,@builddir@,$ac_builddir,;t t
17817 s,@abs_builddir@,$ac_abs_builddir,;t t
17818 s,@top_builddir@,$ac_top_builddir,;t t
17819 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17820 s,@INSTALL@,$ac_INSTALL,;t t
17821 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17822 rm -f $tmp/stdin
17823 if test x"$ac_file" != x-; then
17824 mv $tmp/out $ac_file
17825 else
17826 cat $tmp/out
17827 rm -f $tmp/out
17830 # Run the commands associated with the file.
17831 case $ac_file in
17832 scripts/jar ) chmod +x scripts/jar ;;
17833 esac
17834 done
17835 _ACEOF
17836 cat >>$CONFIG_STATUS <<\_ACEOF
17839 # CONFIG_HEADER section.
17842 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17843 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17845 # ac_d sets the value in "#define NAME VALUE" lines.
17846 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17847 ac_dB='[ ].*$,\1#\2'
17848 ac_dC=' '
17849 ac_dD=',;t'
17850 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17851 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17852 ac_uB='$,\1#\2define\3'
17853 ac_uC=' '
17854 ac_uD=',;t'
17856 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17858 case $ac_file in
17859 - | *:- | *:-:* ) # input from stdin
17860 cat >$tmp/stdin
17861 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17862 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17863 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17864 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17865 * ) ac_file_in=$ac_file.in ;;
17866 esac
17868 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17869 echo "$as_me: creating $ac_file" >&6;}
17871 # First look for the input files in the build tree, otherwise in the
17872 # src tree.
17873 ac_file_inputs=`IFS=:
17874 for f in $ac_file_in; do
17875 case $f in
17876 -) echo $tmp/stdin ;;
17877 [\\/$]*)
17878 # Absolute (can't be DOS-style, as IFS=:)
17879 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17880 echo "$as_me: error: cannot find input file: $f" >&2;}
17881 { (exit 1); exit 1; }; }
17882 # Do quote $f, to prevent DOS paths from being IFS'd.
17883 echo "$f";;
17884 *) # Relative
17885 if test -f "$f"; then
17886 # Build tree
17887 echo "$f"
17888 elif test -f "$srcdir/$f"; then
17889 # Source tree
17890 echo "$srcdir/$f"
17891 else
17892 # /dev/null tree
17893 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17894 echo "$as_me: error: cannot find input file: $f" >&2;}
17895 { (exit 1); exit 1; }; }
17896 fi;;
17897 esac
17898 done` || { (exit 1); exit 1; }
17899 # Remove the trailing spaces.
17900 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17902 _ACEOF
17904 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17905 # `conftest.undefs', that substitutes the proper values into
17906 # config.h.in to produce config.h. The first handles `#define'
17907 # templates, and the second `#undef' templates.
17908 # And first: Protect against being on the right side of a sed subst in
17909 # config.status. Protect against being in an unquoted here document
17910 # in config.status.
17911 rm -f conftest.defines conftest.undefs
17912 # Using a here document instead of a string reduces the quoting nightmare.
17913 # Putting comments in sed scripts is not portable.
17915 # `end' is used to avoid that the second main sed command (meant for
17916 # 0-ary CPP macros) applies to n-ary macro definitions.
17917 # See the Autoconf documentation for `clear'.
17918 cat >confdef2sed.sed <<\_ACEOF
17919 s/[\\&,]/\\&/g
17920 s,[\\$`],\\&,g
17921 t clear
17922 : clear
17923 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17924 t end
17925 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17926 : end
17927 _ACEOF
17928 # If some macros were called several times there might be several times
17929 # the same #defines, which is useless. Nevertheless, we may not want to
17930 # sort them, since we want the *last* AC-DEFINE to be honored.
17931 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17932 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17933 rm -f confdef2sed.sed
17935 # This sed command replaces #undef with comments. This is necessary, for
17936 # example, in the case of _POSIX_SOURCE, which is predefined and required
17937 # on some systems where configure will not decide to define it.
17938 cat >>conftest.undefs <<\_ACEOF
17939 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17940 _ACEOF
17942 # Break up conftest.defines because some shells have a limit on the size
17943 # of here documents, and old seds have small limits too (100 cmds).
17944 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17945 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17946 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17947 echo ' :' >>$CONFIG_STATUS
17948 rm -f conftest.tail
17949 while grep . conftest.defines >/dev/null
17951 # Write a limited-size here document to $tmp/defines.sed.
17952 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17953 # Speed up: don't consider the non `#define' lines.
17954 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17955 # Work around the forget-to-reset-the-flag bug.
17956 echo 't clr' >>$CONFIG_STATUS
17957 echo ': clr' >>$CONFIG_STATUS
17958 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17959 echo 'CEOF
17960 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17961 rm -f $tmp/in
17962 mv $tmp/out $tmp/in
17963 ' >>$CONFIG_STATUS
17964 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17965 rm -f conftest.defines
17966 mv conftest.tail conftest.defines
17967 done
17968 rm -f conftest.defines
17969 echo ' fi # grep' >>$CONFIG_STATUS
17970 echo >>$CONFIG_STATUS
17972 # Break up conftest.undefs because some shells have a limit on the size
17973 # of here documents, and old seds have small limits too (100 cmds).
17974 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17975 rm -f conftest.tail
17976 while grep . conftest.undefs >/dev/null
17978 # Write a limited-size here document to $tmp/undefs.sed.
17979 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17980 # Speed up: don't consider the non `#undef'
17981 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17982 # Work around the forget-to-reset-the-flag bug.
17983 echo 't clr' >>$CONFIG_STATUS
17984 echo ': clr' >>$CONFIG_STATUS
17985 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17986 echo 'CEOF
17987 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17988 rm -f $tmp/in
17989 mv $tmp/out $tmp/in
17990 ' >>$CONFIG_STATUS
17991 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17992 rm -f conftest.undefs
17993 mv conftest.tail conftest.undefs
17994 done
17995 rm -f conftest.undefs
17997 cat >>$CONFIG_STATUS <<\_ACEOF
17998 # Let's still pretend it is `configure' which instantiates (i.e., don't
17999 # use $as_me), people would be surprised to read:
18000 # /* config.h. Generated by config.status. */
18001 if test x"$ac_file" = x-; then
18002 echo "/* Generated by configure. */" >$tmp/config.h
18003 else
18004 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18006 cat $tmp/in >>$tmp/config.h
18007 rm -f $tmp/in
18008 if test x"$ac_file" != x-; then
18009 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18010 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18011 echo "$as_me: $ac_file is unchanged" >&6;}
18012 else
18013 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18015 X"$ac_file" : 'X\(//\)[^/]' \| \
18016 X"$ac_file" : 'X\(//\)$' \| \
18017 X"$ac_file" : 'X\(/\)' \| \
18018 . : '\(.\)' 2>/dev/null ||
18019 echo X"$ac_file" |
18020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18022 /^X\(\/\/\)$/{ s//\1/; q; }
18023 /^X\(\/\).*/{ s//\1/; q; }
18024 s/.*/./; q'`
18025 { if $as_mkdir_p; then
18026 mkdir -p "$ac_dir"
18027 else
18028 as_dir="$ac_dir"
18029 as_dirs=
18030 while test ! -d "$as_dir"; do
18031 as_dirs="$as_dir $as_dirs"
18032 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18034 X"$as_dir" : 'X\(//\)[^/]' \| \
18035 X"$as_dir" : 'X\(//\)$' \| \
18036 X"$as_dir" : 'X\(/\)' \| \
18037 . : '\(.\)' 2>/dev/null ||
18038 echo X"$as_dir" |
18039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18041 /^X\(\/\/\)$/{ s//\1/; q; }
18042 /^X\(\/\).*/{ s//\1/; q; }
18043 s/.*/./; q'`
18044 done
18045 test ! -n "$as_dirs" || mkdir $as_dirs
18046 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18047 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18048 { (exit 1); exit 1; }; }; }
18050 rm -f $ac_file
18051 mv $tmp/config.h $ac_file
18053 else
18054 cat $tmp/config.h
18055 rm -f $tmp/config.h
18057 # Compute $ac_file's index in $config_headers.
18058 _am_stamp_count=1
18059 for _am_header in $config_headers :; do
18060 case $_am_header in
18061 $ac_file | $ac_file:* )
18062 break ;;
18064 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18065 esac
18066 done
18067 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18068 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18069 X$ac_file : 'X\(//\)[^/]' \| \
18070 X$ac_file : 'X\(//\)$' \| \
18071 X$ac_file : 'X\(/\)' \| \
18072 . : '\(.\)' 2>/dev/null ||
18073 echo X$ac_file |
18074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18076 /^X\(\/\/\)$/{ s//\1/; q; }
18077 /^X\(\/\).*/{ s//\1/; q; }
18078 s/.*/./; q'`/stamp-h$_am_stamp_count
18079 done
18080 _ACEOF
18081 cat >>$CONFIG_STATUS <<\_ACEOF
18084 # CONFIG_LINKS section.
18087 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18088 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18089 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18091 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18092 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18094 if test ! -r $srcdir/$ac_source; then
18095 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18096 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18097 { (exit 1); exit 1; }; }
18099 rm -f $ac_dest
18101 # Make relative symlinks.
18102 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18103 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18104 X"$ac_dest" : 'X\(//\)[^/]' \| \
18105 X"$ac_dest" : 'X\(//\)$' \| \
18106 X"$ac_dest" : 'X\(/\)' \| \
18107 . : '\(.\)' 2>/dev/null ||
18108 echo X"$ac_dest" |
18109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18111 /^X\(\/\/\)$/{ s//\1/; q; }
18112 /^X\(\/\).*/{ s//\1/; q; }
18113 s/.*/./; q'`
18114 { if $as_mkdir_p; then
18115 mkdir -p "$ac_dest_dir"
18116 else
18117 as_dir="$ac_dest_dir"
18118 as_dirs=
18119 while test ! -d "$as_dir"; do
18120 as_dirs="$as_dir $as_dirs"
18121 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18123 X"$as_dir" : 'X\(//\)[^/]' \| \
18124 X"$as_dir" : 'X\(//\)$' \| \
18125 X"$as_dir" : 'X\(/\)' \| \
18126 . : '\(.\)' 2>/dev/null ||
18127 echo X"$as_dir" |
18128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18130 /^X\(\/\/\)$/{ s//\1/; q; }
18131 /^X\(\/\).*/{ s//\1/; q; }
18132 s/.*/./; q'`
18133 done
18134 test ! -n "$as_dirs" || mkdir $as_dirs
18135 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18136 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18137 { (exit 1); exit 1; }; }; }
18139 ac_builddir=.
18141 if test "$ac_dest_dir" != .; then
18142 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18143 # A "../" for each directory in $ac_dir_suffix.
18144 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18145 else
18146 ac_dir_suffix= ac_top_builddir=
18149 case $srcdir in
18150 .) # No --srcdir option. We are building in place.
18151 ac_srcdir=.
18152 if test -z "$ac_top_builddir"; then
18153 ac_top_srcdir=.
18154 else
18155 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18156 fi ;;
18157 [\\/]* | ?:[\\/]* ) # Absolute path.
18158 ac_srcdir=$srcdir$ac_dir_suffix;
18159 ac_top_srcdir=$srcdir ;;
18160 *) # Relative path.
18161 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18162 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18163 esac
18165 # Do not use `cd foo && pwd` to compute absolute paths, because
18166 # the directories may not exist.
18167 case `pwd` in
18168 .) ac_abs_builddir="$ac_dest_dir";;
18170 case "$ac_dest_dir" in
18171 .) ac_abs_builddir=`pwd`;;
18172 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18173 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18174 esac;;
18175 esac
18176 case $ac_abs_builddir in
18177 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18179 case ${ac_top_builddir}. in
18180 .) ac_abs_top_builddir=$ac_abs_builddir;;
18181 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18182 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18183 esac;;
18184 esac
18185 case $ac_abs_builddir in
18186 .) ac_abs_srcdir=$ac_srcdir;;
18188 case $ac_srcdir in
18189 .) ac_abs_srcdir=$ac_abs_builddir;;
18190 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18191 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18192 esac;;
18193 esac
18194 case $ac_abs_builddir in
18195 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18197 case $ac_top_srcdir in
18198 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18199 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18200 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18201 esac;;
18202 esac
18205 case $srcdir in
18206 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18207 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18208 esac
18210 # Try a symlink, then a hard link, then a copy.
18211 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18212 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18213 cp -p $srcdir/$ac_source $ac_dest ||
18214 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18215 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18216 { (exit 1); exit 1; }; }
18217 done
18218 _ACEOF
18219 cat >>$CONFIG_STATUS <<\_ACEOF
18222 # CONFIG_COMMANDS section.
18224 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18225 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18226 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18227 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18228 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18229 X"$ac_dest" : 'X\(//\)[^/]' \| \
18230 X"$ac_dest" : 'X\(//\)$' \| \
18231 X"$ac_dest" : 'X\(/\)' \| \
18232 . : '\(.\)' 2>/dev/null ||
18233 echo X"$ac_dest" |
18234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18236 /^X\(\/\/\)$/{ s//\1/; q; }
18237 /^X\(\/\).*/{ s//\1/; q; }
18238 s/.*/./; q'`
18239 { if $as_mkdir_p; then
18240 mkdir -p "$ac_dir"
18241 else
18242 as_dir="$ac_dir"
18243 as_dirs=
18244 while test ! -d "$as_dir"; do
18245 as_dirs="$as_dir $as_dirs"
18246 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18248 X"$as_dir" : 'X\(//\)[^/]' \| \
18249 X"$as_dir" : 'X\(//\)$' \| \
18250 X"$as_dir" : 'X\(/\)' \| \
18251 . : '\(.\)' 2>/dev/null ||
18252 echo X"$as_dir" |
18253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18255 /^X\(\/\/\)$/{ s//\1/; q; }
18256 /^X\(\/\).*/{ s//\1/; q; }
18257 s/.*/./; q'`
18258 done
18259 test ! -n "$as_dirs" || mkdir $as_dirs
18260 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18261 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18262 { (exit 1); exit 1; }; }; }
18264 ac_builddir=.
18266 if test "$ac_dir" != .; then
18267 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18268 # A "../" for each directory in $ac_dir_suffix.
18269 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18270 else
18271 ac_dir_suffix= ac_top_builddir=
18274 case $srcdir in
18275 .) # No --srcdir option. We are building in place.
18276 ac_srcdir=.
18277 if test -z "$ac_top_builddir"; then
18278 ac_top_srcdir=.
18279 else
18280 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18281 fi ;;
18282 [\\/]* | ?:[\\/]* ) # Absolute path.
18283 ac_srcdir=$srcdir$ac_dir_suffix;
18284 ac_top_srcdir=$srcdir ;;
18285 *) # Relative path.
18286 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18287 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18288 esac
18290 # Do not use `cd foo && pwd` to compute absolute paths, because
18291 # the directories may not exist.
18292 case `pwd` in
18293 .) ac_abs_builddir="$ac_dir";;
18295 case "$ac_dir" in
18296 .) ac_abs_builddir=`pwd`;;
18297 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18298 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18299 esac;;
18300 esac
18301 case $ac_abs_builddir in
18302 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18304 case ${ac_top_builddir}. in
18305 .) ac_abs_top_builddir=$ac_abs_builddir;;
18306 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18307 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18308 esac;;
18309 esac
18310 case $ac_abs_builddir in
18311 .) ac_abs_srcdir=$ac_srcdir;;
18313 case $ac_srcdir in
18314 .) ac_abs_srcdir=$ac_abs_builddir;;
18315 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18316 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18317 esac;;
18318 esac
18319 case $ac_abs_builddir in
18320 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18322 case $ac_top_srcdir in
18323 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18324 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18325 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18326 esac;;
18327 esac
18330 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18331 echo "$as_me: executing $ac_dest commands" >&6;}
18332 case $ac_dest in
18333 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18334 # Strip MF so we end up with the name of the file.
18335 mf=`echo "$mf" | sed -e 's/:.*$//'`
18336 # Check whether this is an Automake generated Makefile or not.
18337 # We used to match only the files named `Makefile.in', but
18338 # some people rename them; so instead we look at the file content.
18339 # Grep'ing the first line is not enough: some people post-process
18340 # each Makefile.in and add a new line on top of each file to say so.
18341 # So let's grep whole file.
18342 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18343 dirpart=`(dirname "$mf") 2>/dev/null ||
18344 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18345 X"$mf" : 'X\(//\)[^/]' \| \
18346 X"$mf" : 'X\(//\)$' \| \
18347 X"$mf" : 'X\(/\)' \| \
18348 . : '\(.\)' 2>/dev/null ||
18349 echo X"$mf" |
18350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18352 /^X\(\/\/\)$/{ s//\1/; q; }
18353 /^X\(\/\).*/{ s//\1/; q; }
18354 s/.*/./; q'`
18355 else
18356 continue
18358 # Extract the definition of DEPDIR, am__include, and am__quote
18359 # from the Makefile without running `make'.
18360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18361 test -z "$DEPDIR" && continue
18362 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18363 test -z "am__include" && continue
18364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18365 # When using ansi2knr, U may be empty or an underscore; expand it
18366 U=`sed -n 's/^U = //p' < "$mf"`
18367 # Find all dependency output files, they are included files with
18368 # $(DEPDIR) in their names. We invoke sed twice because it is the
18369 # simplest approach to changing $(DEPDIR) to its actual value in the
18370 # expansion.
18371 for file in `sed -n "
18372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18374 # Make sure the directory exists.
18375 test -f "$dirpart/$file" && continue
18376 fdir=`(dirname "$file") 2>/dev/null ||
18377 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18378 X"$file" : 'X\(//\)[^/]' \| \
18379 X"$file" : 'X\(//\)$' \| \
18380 X"$file" : 'X\(/\)' \| \
18381 . : '\(.\)' 2>/dev/null ||
18382 echo X"$file" |
18383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18385 /^X\(\/\/\)$/{ s//\1/; q; }
18386 /^X\(\/\).*/{ s//\1/; q; }
18387 s/.*/./; q'`
18388 { if $as_mkdir_p; then
18389 mkdir -p $dirpart/$fdir
18390 else
18391 as_dir=$dirpart/$fdir
18392 as_dirs=
18393 while test ! -d "$as_dir"; do
18394 as_dirs="$as_dir $as_dirs"
18395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18397 X"$as_dir" : 'X\(//\)[^/]' \| \
18398 X"$as_dir" : 'X\(//\)$' \| \
18399 X"$as_dir" : 'X\(/\)' \| \
18400 . : '\(.\)' 2>/dev/null ||
18401 echo X"$as_dir" |
18402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18404 /^X\(\/\/\)$/{ s//\1/; q; }
18405 /^X\(\/\).*/{ s//\1/; q; }
18406 s/.*/./; q'`
18407 done
18408 test ! -n "$as_dirs" || mkdir $as_dirs
18409 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18410 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18411 { (exit 1); exit 1; }; }; }
18413 # echo "creating $dirpart/$file"
18414 echo '# dummy' > "$dirpart/$file"
18415 done
18416 done
18418 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18419 case " $CONFIG_FILES " in
18420 *" Makefile "*)
18421 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18422 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18424 esac
18425 for ac_multi_file in $CONFIG_FILES; do
18426 case $ac_multi_file in
18427 */Makefile)
18428 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18429 esac
18430 done
18432 esac
18433 done
18434 _ACEOF
18436 cat >>$CONFIG_STATUS <<\_ACEOF
18438 { (exit 0); exit 0; }
18439 _ACEOF
18440 chmod +x $CONFIG_STATUS
18441 ac_clean_files=$ac_clean_files_save
18444 # configure is writing to config.log, and then calls config.status.
18445 # config.status does its own redirection, appending to config.log.
18446 # Unfortunately, on DOS this fails, as config.log is still kept open
18447 # by configure, so config.status won't be able to write to it; its
18448 # output is simply discarded. So we exec the FD to /dev/null,
18449 # effectively closing config.log, so it can be properly (re)opened and
18450 # appended to by config.status. When coming back to configure, we
18451 # need to make the FD available again.
18452 if test "$no_create" != yes; then
18453 ac_cs_success=:
18454 ac_config_status_args=
18455 test "$silent" = yes &&
18456 ac_config_status_args="$ac_config_status_args --quiet"
18457 exec 5>/dev/null
18458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18459 exec 5>>config.log
18460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18461 # would make configure fail if this is the last instruction.
18462 $ac_cs_success || { (exit 1); exit 1; }
18466 # CONFIG_SUBDIRS section.
18468 if test "$no_recursion" != yes; then
18470 # Remove --cache-file and --srcdir arguments so they do not pile up.
18471 ac_sub_configure_args=
18472 ac_prev=
18473 for ac_arg in $ac_configure_args; do
18474 if test -n "$ac_prev"; then
18475 ac_prev=
18476 continue
18478 case $ac_arg in
18479 -cache-file | --cache-file | --cache-fil | --cache-fi \
18480 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18481 ac_prev=cache_file ;;
18482 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18483 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18484 | --c=*)
18486 --config-cache | -C)
18488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18489 ac_prev=srcdir ;;
18490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18492 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18493 ac_prev=prefix ;;
18494 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18496 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18497 esac
18498 done
18500 # Always prepend --prefix to ensure using the same prefix
18501 # in subdir configurations.
18502 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18504 ac_popdir=`pwd`
18505 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18507 # Do not complain, so a configure script can configure whichever
18508 # parts of a large source tree are present.
18509 test -d $srcdir/$ac_dir || continue
18511 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18512 echo "$as_me: configuring in $ac_dir" >&6;}
18513 { if $as_mkdir_p; then
18514 mkdir -p "$ac_dir"
18515 else
18516 as_dir="$ac_dir"
18517 as_dirs=
18518 while test ! -d "$as_dir"; do
18519 as_dirs="$as_dir $as_dirs"
18520 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18522 X"$as_dir" : 'X\(//\)[^/]' \| \
18523 X"$as_dir" : 'X\(//\)$' \| \
18524 X"$as_dir" : 'X\(/\)' \| \
18525 . : '\(.\)' 2>/dev/null ||
18526 echo X"$as_dir" |
18527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18529 /^X\(\/\/\)$/{ s//\1/; q; }
18530 /^X\(\/\).*/{ s//\1/; q; }
18531 s/.*/./; q'`
18532 done
18533 test ! -n "$as_dirs" || mkdir $as_dirs
18534 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18535 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18536 { (exit 1); exit 1; }; }; }
18538 ac_builddir=.
18540 if test "$ac_dir" != .; then
18541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18542 # A "../" for each directory in $ac_dir_suffix.
18543 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18544 else
18545 ac_dir_suffix= ac_top_builddir=
18548 case $srcdir in
18549 .) # No --srcdir option. We are building in place.
18550 ac_srcdir=.
18551 if test -z "$ac_top_builddir"; then
18552 ac_top_srcdir=.
18553 else
18554 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18555 fi ;;
18556 [\\/]* | ?:[\\/]* ) # Absolute path.
18557 ac_srcdir=$srcdir$ac_dir_suffix;
18558 ac_top_srcdir=$srcdir ;;
18559 *) # Relative path.
18560 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18561 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18562 esac
18564 # Do not use `cd foo && pwd` to compute absolute paths, because
18565 # the directories may not exist.
18566 case `pwd` in
18567 .) ac_abs_builddir="$ac_dir";;
18569 case "$ac_dir" in
18570 .) ac_abs_builddir=`pwd`;;
18571 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18572 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18573 esac;;
18574 esac
18575 case $ac_abs_builddir in
18576 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18578 case ${ac_top_builddir}. in
18579 .) ac_abs_top_builddir=$ac_abs_builddir;;
18580 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18581 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18582 esac;;
18583 esac
18584 case $ac_abs_builddir in
18585 .) ac_abs_srcdir=$ac_srcdir;;
18587 case $ac_srcdir in
18588 .) ac_abs_srcdir=$ac_abs_builddir;;
18589 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18590 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18591 esac;;
18592 esac
18593 case $ac_abs_builddir in
18594 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18596 case $ac_top_srcdir in
18597 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18598 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18599 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18600 esac;;
18601 esac
18604 cd $ac_dir
18606 # Check for guested configure; otherwise get Cygnus style configure.
18607 if test -f $ac_srcdir/configure.gnu; then
18608 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18609 elif test -f $ac_srcdir/configure; then
18610 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18611 elif test -f $ac_srcdir/configure.in; then
18612 ac_sub_configure=$ac_configure
18613 else
18614 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18615 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18616 ac_sub_configure=
18619 # The recursion is here.
18620 if test -n "$ac_sub_configure"; then
18621 # Make the cache file name correct relative to the subdirectory.
18622 case $cache_file in
18623 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18624 *) # Relative path.
18625 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18626 esac
18628 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18629 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18630 # The eval makes quoting arguments work.
18631 eval $ac_sub_configure $ac_sub_configure_args \
18632 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18633 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18634 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18635 { (exit 1); exit 1; }; }
18638 cd $ac_popdir
18639 done