PR target/27829
[official-gcc.git] / libjava / configure
blob53a3c838102a92f31b6a42c5a4d40865e94b8f20
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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE QT_AWT_TRUE QT_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 GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS 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 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-libgcj-debug enable runtime debugging code
861 --enable-java-awt list of AWT peer implementations to be built
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --disable-getenv-properties
867 don't set system properties from GCJ_PROPERTIES
868 --enable-hash-synchronization
869 use global hash table for monitor locks
870 --enable-gc-debug include full support for pointer backtracing etc.
871 --enable-interpreter enable interpreter
872 --enable-sjlj-exceptions
873 force use of builtin_setjmp for exceptions
874 --disable-java-net disable java.net
875 --disable-jvmpi disable JVMPI support
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
879 _g_switchUse thread-local storage
880 [default=yes]
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-target-subdir=SUBDIR
886 configure in a subdirectory
887 --with-cross-host=HOST configure with a cross compiler from HOST
888 --with-newlib configure with newlib
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-pic try to use only PIC/non-PIC objects default=use both
891 --with-java-home=DIRECTORY
892 value of java.home system property
893 --with-win32-nlsapi=ansi or unicows or unicode
894 native MinGW libgcj Win32 OS API (default is ansi)
895 --without-libffi don't use libffi
896 --with-ecos enable runtime eCos target support
897 --with-system-zlib use installed libz
898 --with-x use the X Window System
899 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
900 --without-libiconv-prefix don't search for libiconv in includedir and libdir
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CXX C++ compiler command
910 CXXFLAGS C++ compiler flags
911 CXXCPP C++ preprocessor
912 CPP C preprocessor
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
917 _ACEOF
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
922 ac_popdir=`pwd`
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
925 ac_builddir=.
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932 ac_dir_suffix= ac_top_builddir=
935 case $srcdir in
936 .) # No --srcdir option. We are building in place.
937 ac_srcdir=.
938 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=.
940 else
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 fi ;;
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
946 *) # Relative path.
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
956 case "$ac_dir" in
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
974 case $ac_srcdir in
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 esac;;
988 esac
990 cd $ac_dir
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
993 echo
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
996 echo
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1000 echo
1001 $ac_configure --help
1002 else
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 cd $ac_popdir
1006 done
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011 cat <<\_ACEOF
1012 libjava configure version-unused
1013 generated by GNU Autoconf 2.59
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1018 _ACEOF
1019 exit 0
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by libjava $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1029 $ $0 $@
1031 _ACEOF
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 _ASUNAME
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1060 IFS=$as_save_IFS
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1063 done
1065 } >&5
1067 cat >&5 <<_ACEOF
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1074 _ACEOF
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1089 for ac_arg
1091 case $ac_arg in
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 continue ;;
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 esac
1099 case $ac_pass in
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1105 else
1106 case $ac_arg in
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 esac
1115 -* ) ac_must_keep_next=true ;;
1116 esac
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1120 ac_sep=" "
1122 esac
1123 done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1136 echo
1138 cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143 echo
1144 # The following way of writing the cache mishandles newlines in values,
1146 (set) 2>&1 |
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 *ac_space=\ *)
1149 sed -n \
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 sed -n \
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 esac;
1159 echo
1161 cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166 echo
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1174 if test -n "$ac_subst_files"; then
1175 cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180 echo
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1185 done | sort
1186 echo
1189 if test -s confdefs.h; then
1190 cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195 echo
1196 sed "/^$/d" confdefs.h | sort
1197 echo
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1202 } >&5
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 exit $exit_status
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 else
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1258 . "$ac_site_file"
1260 done
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1268 case $cache_file in
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1271 esac
1273 else
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1276 >$cache_file
1279 # Check that the precious variables saved in the cache have kept the same
1280 # value.
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1289 set,)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,set)
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1297 ,);;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1307 fi;;
1308 esac
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1311 case $ac_new_val in
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1315 esac
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319 esac
1321 done
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 ac_aux_dir=
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367 if test -f $ac_dir/install-sh; then
1368 ac_aux_dir=$ac_dir
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1370 break
1371 elif test -f $ac_dir/install.sh; then
1372 ac_aux_dir=$ac_dir
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1374 break
1375 elif test -f $ac_dir/shtool; then
1376 ac_aux_dir=$ac_dir
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1378 break
1380 done
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403 ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407 { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1416 build=$ac_cv_build
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 case ${build_alias} in
1423 "") build_noncanonical=${build} ;;
1424 *) build_noncanonical=${build_alias} ;;
1425 esac
1427 case ${host_alias} in
1428 "") host_noncanonical=${build_noncanonical} ;;
1429 *) host_noncanonical=${host_alias} ;;
1430 esac
1432 case ${target_alias} in
1433 "") target_noncanonical=${host_noncanonical} ;;
1434 *) target_noncanonical=${target_alias} ;;
1435 esac
1437 # Prefix 'build-' so this never conflicts with target_subdir.
1438 build_subdir="build-${build_noncanonical}"
1439 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440 if ( test $srcdir = . && test -d gcc ) \
1441 || test -d $srcdir/../host-${host_noncanonical}; then
1442 host_subdir="host-${host_noncanonical}"
1443 else
1444 host_subdir=.
1446 # No prefix.
1447 target_subdir=${target_noncanonical}
1450 # We use these options to decide which functions to include.
1452 # Check whether --with-target-subdir or --without-target-subdir was given.
1453 if test "${with_target_subdir+set}" = set; then
1454 withval="$with_target_subdir"
1458 # We may get other options which we don't document:
1459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461 # When building with srcdir == objdir, links to the source files will
1462 # be created in directories within the target_subdir. We have to
1463 # adjust toplevel_srcdir accordingly, so that configure finds
1464 # install-sh and other auxiliary files that live in the top-level
1465 # source directory.
1466 if test "${srcdir}" = "."; then
1467 if test -z "${with_target_subdir}"; then
1468 toprel=".."
1469 else
1470 if test "${with_target_subdir}" != "."; then
1471 toprel="${with_multisrctop}../.."
1472 else
1473 toprel="${with_multisrctop}.."
1476 else
1477 toprel=".."
1480 libgcj_basedir=$srcdir/$toprel/./libjava
1483 echo "$as_me:$LINENO: checking host system type" >&5
1484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485 if test "${ac_cv_host+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 ac_cv_host_alias=$host_alias
1489 test -z "$ac_cv_host_alias" &&
1490 ac_cv_host_alias=$ac_cv_build_alias
1491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494 { (exit 1); exit 1; }; }
1497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498 echo "${ECHO_T}$ac_cv_host" >&6
1499 host=$ac_cv_host
1500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 echo "$as_me:$LINENO: checking target system type" >&5
1506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507 if test "${ac_cv_target+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 ac_cv_target_alias=$target_alias
1511 test "x$ac_cv_target_alias" = "x" &&
1512 ac_cv_target_alias=$ac_cv_host_alias
1513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520 echo "${ECHO_T}$ac_cv_target" >&6
1521 target=$ac_cv_target
1522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 # The aliases save the names the user supplied, while $host etc.
1528 # will get canonicalized.
1529 test -n "$target_alias" &&
1530 test "$program_prefix$program_suffix$program_transform_name" = \
1531 NONENONEs,x,x, &&
1532 program_prefix=${target_alias}-
1533 case ${build_alias} in
1534 "") build_noncanonical=${build} ;;
1535 *) build_noncanonical=${build_alias} ;;
1536 esac
1538 case ${target_alias} in
1539 "") target_noncanonical=${host_noncanonical} ;;
1540 *) target_noncanonical=${target_alias} ;;
1541 esac
1546 # This works around the fact that libtool configuration may change LD
1547 # for this particular configuration, but some shells, instead of
1548 # keeping the changes in LD private, export them just because LD is
1549 # exported.
1550 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1554 LN_S=$as_ln_s
1555 if test "$LN_S" = "ln -s"; then
1556 echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560 echo "${ECHO_T}no, using $LN_S" >&6
1564 # This works around an automake problem.
1565 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1569 # Check whether --with-cross-host or --without-cross-host was given.
1570 if test "${with_cross_host+set}" = set; then
1571 withval="$with_cross_host"
1576 # Check whether --with-newlib or --without-newlib was given.
1577 if test "${with_newlib+set}" = set; then
1578 withval="$with_newlib"
1582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583 if test "${enable_version_specific_runtime_libs+set}" = set; then
1584 enableval="$enable_version_specific_runtime_libs"
1585 case "$enableval" in
1586 yes) version_specific_libs=yes ;;
1587 no) version_specific_libs=no ;;
1588 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590 { (exit 1); exit 1; }; };;
1591 esac
1592 else
1593 version_specific_libs=no
1597 # Default to --enable-multilib
1598 # Check whether --enable-multilib or --disable-multilib was given.
1599 if test "${enable_multilib+set}" = set; then
1600 enableval="$enable_multilib"
1601 case "${enableval}" in
1602 yes) multilib=yes ;;
1603 no) multilib=no ;;
1604 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606 { (exit 1); exit 1; }; } ;;
1607 esac
1608 else
1609 multilib=yes
1611 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1614 # (1) We use an abnormal CXX (without library references), so we
1615 # must cache it under a different name.
1616 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1617 # the non-multilib-adjusted value will be used in multilibs.
1618 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1619 # (4) As another side effect, automake doesn't automatically include them
1620 # in Makefile.in.
1621 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1622 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1623 # used in later tests. This may not be necessary in libjava; I don't know.
1627 save_CXXFLAGS="$CXXFLAGS"
1628 CXXFLAGS="$CXXFLAGS -fno-builtin"
1629 ac_ext=c
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1656 done
1657 done
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1671 if test -z "$ac_cv_prog_CC"; then
1672 ac_ct_CC=$CC
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 if test -n "$ac_ct_CC"; then
1681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_ac_ct_CC="gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 break 2
1694 done
1695 done
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1703 else
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1708 CC=$ac_ct_CC
1709 else
1710 CC="$ac_cv_prog_CC"
1713 if test -z "$CC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 break 2
1736 done
1737 done
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1752 ac_ct_CC=$CC
1753 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1766 IFS=$as_save_IFS
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1774 done
1775 done
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1788 CC=$ac_ct_CC
1789 else
1790 CC="$ac_cv_prog_CC"
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805 ac_prog_rejected=no
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1809 IFS=$as_save_IFS
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1815 continue
1817 ac_cv_prog_CC="cc"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1821 done
1822 done
1824 if test $ac_prog_rejected = yes; then
1825 # We found a bogon in the path, so make sure we never use it.
1826 set dummy $ac_cv_prog_CC
1827 shift
1828 if test $# != 0; then
1829 # We chose a different compiler from the bogus one.
1830 # However, it has the same basename, so the bogon will be chosen
1831 # first if we set CC to just the basename; use the full file name.
1832 shift
1833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1850 for ac_prog in cl
1852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1873 done
1874 done
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$CC" && break
1888 done
1890 if test -z "$CC"; then
1891 ac_ct_CC=$CC
1892 for ac_prog in cl
1894 # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1915 done
1916 done
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$ac_ct_CC" && break
1930 done
1932 CC=$ac_ct_CC
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946 "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949 (eval $ac_compiler --version </dev/null >&5) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954 (eval $ac_compiler -v </dev/null >&5) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959 (eval $ac_compiler -V </dev/null >&5) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h. */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1972 main ()
1976 return 0;
1978 _ACEOF
1979 # FIXME: Cleanup?
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1981 (eval $ac_link) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 gcc_no_link=no
1986 else
1987 gcc_no_link=yes
1990 if test x$gcc_no_link = xyes; then
1991 # Setting cross_compile will disable run tests; it will
1992 # also disable AC_CHECK_FILE but that's generally
1993 # correct if we can't link.
1994 cross_compiling=yes
1995 EXEEXT=
1996 else
1997 cat >conftest.$ac_ext <<_ACEOF
1998 /* confdefs.h. */
1999 _ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h. */
2005 main ()
2009 return 0;
2011 _ACEOF
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2016 # of exeext.
2017 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021 (eval $ac_link_default) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; then
2025 # Find the output, starting from the most likely. This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # resort.
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031 ac_cv_exeext=
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 test -f "$ac_file" || continue
2036 case $ac_file in
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2039 conftest.$ac_ext )
2040 # This is the source file.
2042 [ab].out )
2043 # We found the default executable, but exeext='' is most
2044 # certainly right.
2045 break;;
2046 *.* )
2047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 # FIXME: I believe we export ac_cv_exeext for Libtool,
2049 # but it would be cool to find out if it's true. Does anybody
2050 # maintain Libtool? --akim.
2051 export ac_cv_exeext
2052 break;;
2054 break;;
2055 esac
2056 done
2057 else
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065 { (exit 77); exit 77; }; }
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079 if { ac_try='./$ac_file'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 (eval $ac_try) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2085 cross_compiling=no
2086 else
2087 if test "$cross_compiling" = maybe; then
2088 cross_compiling=yes
2089 else
2090 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run. If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115 (eval $ac_link) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2122 # `rm'.
2123 for ac_file in conftest.exe conftest conftest.*; do
2124 test -f "$ac_file" || continue
2125 case $ac_file in
2126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 export ac_cv_exeext
2129 break;;
2130 * ) break;;
2131 esac
2132 done
2133 else
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2147 ac_exeext=$EXEEXT
2149 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2150 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2151 if test "${ac_cv_objext+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h. */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2162 main ()
2166 return 0;
2168 _ACEOF
2169 rm -f conftest.o conftest.obj
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179 break;;
2180 esac
2181 done
2182 else
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196 echo "${ECHO_T}$ac_cv_objext" >&6
2197 OBJEXT=$ac_cv_objext
2198 ac_objext=$OBJEXT
2199 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2201 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h. */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2212 main ()
2214 #ifndef __GNUC__
2215 choke me
2216 #endif
2219 return 0;
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 ac_compiler_gnu=yes
2245 else
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2249 ac_compiler_gnu=no
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257 GCC=`test $ac_compiler_gnu = yes && echo yes`
2258 ac_test_CFLAGS=${CFLAGS+set}
2259 ac_save_CFLAGS=$CFLAGS
2260 CFLAGS="-g"
2261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263 if test "${ac_cv_prog_cc_g+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h. */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2274 main ()
2278 return 0;
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2284 ac_status=$?
2285 grep -v '^ *+' conftest.er1 >conftest.err
2286 rm -f conftest.er1
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_c_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_cv_prog_cc_g=yes
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 ac_cv_prog_cc_g=no
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2313 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2314 if test "$ac_test_CFLAGS" = set; then
2315 CFLAGS=$ac_save_CFLAGS
2316 elif test $ac_cv_prog_cc_g = yes; then
2317 if test "$GCC" = yes; then
2318 CFLAGS="-g -O2"
2319 else
2320 CFLAGS="-g"
2322 else
2323 if test "$GCC" = yes; then
2324 CFLAGS="-O2"
2325 else
2326 CFLAGS=
2329 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2330 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334 ac_cv_prog_cc_stdc=no
2335 ac_save_CC=$CC
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342 #include <stdarg.h>
2343 #include <stdio.h>
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2350 char **p;
2351 int i;
2353 return p[i];
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2357 char *s;
2358 va_list v;
2359 va_start (v,p);
2360 s = g (p, va_arg (v,int));
2361 va_end (v);
2362 return s;
2365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2366 function prototypes and stuff, but not '\xHH' hex character constants.
2367 These don't provoke an error unfortunately, instead are silently treated
2368 as 'x'. The following induces an error, until -std1 is added to get
2369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2370 array size at least. It's necessary to write '\x00'==0 to get something
2371 that's true only with -std1. */
2372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374 int test (int i, double x);
2375 struct s1 {int (*f) (int a);};
2376 struct s2 {int (*f) (double a);};
2377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2378 int argc;
2379 char **argv;
2381 main ()
2383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2385 return 0;
2387 _ACEOF
2388 # Don't try gcc -ansi; that turns off useful extensions and
2389 # breaks some systems' header files.
2390 # AIX -qlanglvl=ansi
2391 # Ultrix and OSF/1 -std1
2392 # HP-UX 10.20 and later -Ae
2393 # HP-UX older versions -Aa -D_HPUX_SOURCE
2394 # SVR4 -Xc -D__EXTENSIONS__
2395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397 CC="$ac_save_CC $ac_arg"
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_cv_prog_cc_stdc=$ac_arg
2421 break
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext
2428 done
2429 rm -f conftest.$ac_ext conftest.$ac_objext
2430 CC=$ac_save_CC
2434 case "x$ac_cv_prog_cc_stdc" in
2435 x|xno)
2436 echo "$as_me:$LINENO: result: none needed" >&5
2437 echo "${ECHO_T}none needed" >&6 ;;
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2441 CC="$CC $ac_cv_prog_cc_stdc" ;;
2442 esac
2444 # Some people use a C++ compiler to compile C. Since we use `exit',
2445 # in C++ we need to declare it. In case someone uses the same compiler
2446 # for both compiling C and C++ we need to have the C++ compiler decide
2447 # the declaration of exit, since it's the most demanding environment.
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #ifndef __cplusplus
2450 choke me
2451 #endif
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 for ac_declaration in \
2476 '' \
2477 'extern "C" void std::exit (int) throw (); using std::exit;' \
2478 'extern "C" void std::exit (int); using std::exit;' \
2479 'extern "C" void exit (int) throw ();' \
2480 'extern "C" void exit (int);' \
2481 'void exit (int);'
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 $ac_declaration
2490 #include <stdlib.h>
2492 main ()
2494 exit (42);
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 continue
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 $ac_declaration
2537 main ()
2539 exit (42);
2541 return 0;
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 break
2567 else
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 done
2574 rm -f conftest*
2575 if test -n "$ac_declaration"; then
2576 echo '#ifdef __cplusplus' >>confdefs.h
2577 echo $ac_declaration >>confdefs.h
2578 echo '#endif' >>confdefs.h
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593 ac_ext=cc
2594 ac_cpp='$CXXCPP $CPPFLAGS'
2595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2598 if test -n "$ac_tool_prefix"; then
2599 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603 echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$CXX"; then
2609 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2627 CXX=$glibcxx_cv_prog_CXX
2628 if test -n "$CXX"; then
2629 echo "$as_me:$LINENO: result: $CXX" >&5
2630 echo "${ECHO_T}$CXX" >&6
2631 else
2632 echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6
2636 test -n "$CXX" && break
2637 done
2639 if test -z "$CXX"; then
2640 ac_ct_CXX=$CXX
2641 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 if test -n "$ac_ct_CXX"; then
2651 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_ac_ct_CXX="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2664 done
2665 done
2669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2670 if test -n "$ac_ct_CXX"; then
2671 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2672 echo "${ECHO_T}$ac_ct_CXX" >&6
2673 else
2674 echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2678 test -n "$ac_ct_CXX" && break
2679 done
2680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2682 CXX=$ac_ct_CXX
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO:" \
2688 "checking for C++ compiler version" >&5
2689 ac_compiler=`set X $ac_compile; echo $2`
2690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2691 (eval $ac_compiler --version </dev/null >&5) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2696 (eval $ac_compiler -v </dev/null >&5) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2701 (eval $ac_compiler -V </dev/null >&5) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h. */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2719 main ()
2721 #ifndef __GNUC__
2722 choke me
2723 #endif
2726 return 0;
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_cxx_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_compiler_gnu=yes
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_compiler_gnu=no
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764 GXX=`test $ac_compiler_gnu = yes && echo yes`
2765 ac_test_CXXFLAGS=${CXXFLAGS+set}
2766 ac_save_CXXFLAGS=$CXXFLAGS
2767 CXXFLAGS="-g"
2768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cxx_g+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2781 main ()
2785 return 0;
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_cxx_werror_flag"
2798 || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 ac_cv_prog_cxx_g=yes
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 ac_cv_prog_cxx_g=no
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2821 if test "$ac_test_CXXFLAGS" = set; then
2822 CXXFLAGS=$ac_save_CXXFLAGS
2823 elif test $ac_cv_prog_cxx_g = yes; then
2824 if test "$GXX" = yes; then
2825 CXXFLAGS="-g -O2"
2826 else
2827 CXXFLAGS="-g"
2829 else
2830 if test "$GXX" = yes; then
2831 CXXFLAGS="-O2"
2832 else
2833 CXXFLAGS=
2836 for ac_declaration in \
2837 '' \
2838 'extern "C" void std::exit (int) throw (); using std::exit;' \
2839 'extern "C" void std::exit (int); using std::exit;' \
2840 'extern "C" void exit (int) throw ();' \
2841 'extern "C" void exit (int);' \
2842 'void exit (int);'
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h. */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 $ac_declaration
2851 #include <stdlib.h>
2853 main ()
2855 exit (42);
2857 return 0;
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_cxx_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2883 else
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 continue
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890 cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896 $ac_declaration
2898 main ()
2900 exit (42);
2902 return 0;
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -z "$ac_cxx_werror_flag"
2915 || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 break
2928 else
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 done
2935 rm -f conftest*
2936 if test -n "$ac_declaration"; then
2937 echo '#ifdef __cplusplus' >>confdefs.h
2938 echo $ac_declaration >>confdefs.h
2939 echo '#endif' >>confdefs.h
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 CXXFLAGS="$save_CXXFLAGS"
2954 am__api_version="1.9"
2955 # Find a good install program. We prefer a C program (faster),
2956 # so one script is as good as another. But avoid the broken or
2957 # incompatible versions:
2958 # SysV /etc/install, /usr/sbin/install
2959 # SunOS /usr/etc/install
2960 # IRIX /sbin/install
2961 # AIX /bin/install
2962 # AmigaOS /C/install, which installs bootblocks on floppy discs
2963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2966 # OS/2's system install, which has a completely different semantic
2967 # ./install, which can be erroneously created by make from ./install.sh.
2968 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2970 if test -z "$INSTALL"; then
2971 if test "${ac_cv_path_install+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 # Account for people who put trailing slashes in PATH elements.
2980 case $as_dir/ in
2981 ./ | .// | /cC/* | \
2982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984 /usr/ucb/* ) ;;
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2988 # by default.
2989 for ac_prog in ginstall scoinst install; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992 if test $ac_prog = install &&
2993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # AIX install. It has an incompatible calling convention.
2996 elif test $ac_prog = install &&
2997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # program-specific install script used by HP pwplus--don't use.
3000 else
3001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3002 break 3
3005 done
3006 done
3008 esac
3009 done
3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL=$ac_cv_path_install
3015 else
3016 # As a last resort, use the slow shell script. We don't cache a
3017 # path for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the path is relative.
3020 INSTALL=$ac_install_sh
3023 echo "$as_me:$LINENO: result: $INSTALL" >&5
3024 echo "${ECHO_T}$INSTALL" >&6
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3036 # Just in case
3037 sleep 1
3038 echo timestamp > conftest.file
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments. Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3043 # directory).
3044 if (
3045 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046 if test "$*" = "X"; then
3047 # -L didn't work.
3048 set X `ls -t $srcdir/configure conftest.file`
3050 rm -f conftest.file
3051 if test "$*" != "X $srcdir/configure conftest.file" \
3052 && test "$*" != "X conftest.file $srcdir/configure"; then
3054 # If neither matched, then we have a broken ls. This can happen
3055 # if, for instance, CONFIG_SHELL is bash and it inherits a
3056 # broken ls alias from the environment. This has actually
3057 # happened. Such a system could not be considered "sane".
3058 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&5
3060 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3061 alias in your environment" >&2;}
3062 { (exit 1); exit 1; }; }
3065 test "$2" = conftest.file
3067 then
3068 # Ok.
3070 else
3071 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3072 Check your system clock" >&5
3073 echo "$as_me: error: newly created file is older than distributed files!
3074 Check your system clock" >&2;}
3075 { (exit 1); exit 1; }; }
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3079 test "$program_prefix" != NONE &&
3080 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3084 # Double any \ or $. echo might interpret backslashes.
3085 # By default was `s,x,x', remove it if useless.
3086 cat <<\_ACEOF >conftest.sed
3087 s/[\\$]/&&/g;s/;s,x,x,$//
3088 _ACEOF
3089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3090 rm conftest.sed
3092 # expand $ac_aux_dir to an absolute path
3093 am_aux_dir=`cd $ac_aux_dir && pwd`
3095 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3096 # Use eval to expand $SHELL
3097 if eval "$MISSING --run true"; then
3098 am_missing_run="$MISSING --run "
3099 else
3100 am_missing_run=
3101 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3102 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3105 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3106 # We used to keeping the `.' as first argument, in order to
3107 # allow $(mkdir_p) to be used without argument. As in
3108 # $(mkdir_p) $(somedir)
3109 # where $(somedir) is conditionally defined. However this is wrong
3110 # for two reasons:
3111 # 1. if the package is installed by a user who cannot write `.'
3112 # make install will fail,
3113 # 2. the above comment should most certainly read
3114 # $(mkdir_p) $(DESTDIR)$(somedir)
3115 # so it does not work when $(somedir) is undefined and
3116 # $(DESTDIR) is not.
3117 # To support the latter case, we have to write
3118 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3119 # so the `.' trick is pointless.
3120 mkdir_p='mkdir -p --'
3121 else
3122 # On NextStep and OpenStep, the `mkdir' command does not
3123 # recognize any option. It will interpret all options as
3124 # directories to create, and then abort because `.' already
3125 # exists.
3126 for d in ./-p ./--version;
3128 test -d $d && rmdir $d
3129 done
3130 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3131 if test -f "$ac_aux_dir/mkinstalldirs"; then
3132 mkdir_p='$(mkinstalldirs)'
3133 else
3134 mkdir_p='$(install_sh) -d'
3138 for ac_prog in gawk mawk nawk awk
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_AWK+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 if test -n "$AWK"; then
3148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_AWK="$ac_prog"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3166 AWK=$ac_cv_prog_AWK
3167 if test -n "$AWK"; then
3168 echo "$as_me:$LINENO: result: $AWK" >&5
3169 echo "${ECHO_T}$AWK" >&6
3170 else
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3175 test -n "$AWK" && break
3176 done
3178 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3181 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 cat >conftest.make <<\_ACEOF
3185 all:
3186 @echo 'ac_maketemp="$(MAKE)"'
3187 _ACEOF
3188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3189 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3190 if test -n "$ac_maketemp"; then
3191 eval ac_cv_prog_make_${ac_make}_set=yes
3192 else
3193 eval ac_cv_prog_make_${ac_make}_set=no
3195 rm -f conftest.make
3197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3200 SET_MAKE=
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 SET_MAKE="MAKE=${MAKE-make}"
3207 rm -rf .tst 2>/dev/null
3208 mkdir .tst 2>/dev/null
3209 if test -d .tst; then
3210 am__leading_dot=.
3211 else
3212 am__leading_dot=_
3214 rmdir .tst 2>/dev/null
3216 DEPDIR="${am__leading_dot}deps"
3218 ac_config_commands="$ac_config_commands depfiles"
3221 am_make=${MAKE-make}
3222 cat > confinc << 'END'
3223 am__doit:
3224 @echo done
3225 .PHONY: am__doit
3227 # If we don't find an include directive, just comment out the code.
3228 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3229 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3230 am__include="#"
3231 am__quote=
3232 _am_result=none
3233 # First try GNU make style include.
3234 echo "include confinc" > confmf
3235 # We grep out `Entering directory' and `Leaving directory'
3236 # messages which can occur if `w' ends up in MAKEFLAGS.
3237 # In particular we don't look at `^make:' because GNU make might
3238 # be invoked under some other name (usually "gmake"), in which
3239 # case it prints its new name instead of `make'.
3240 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3241 am__include=include
3242 am__quote=
3243 _am_result=GNU
3245 # Now try BSD make style include.
3246 if test "$am__include" = "#"; then
3247 echo '.include "confinc"' > confmf
3248 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3249 am__include=.include
3250 am__quote="\""
3251 _am_result=BSD
3256 echo "$as_me:$LINENO: result: $_am_result" >&5
3257 echo "${ECHO_T}$_am_result" >&6
3258 rm -f confinc confmf
3260 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3261 if test "${enable_dependency_tracking+set}" = set; then
3262 enableval="$enable_dependency_tracking"
3265 if test "x$enable_dependency_tracking" != xno; then
3266 am_depcomp="$ac_aux_dir/depcomp"
3267 AMDEPBACKSLASH='\'
3271 if test "x$enable_dependency_tracking" != xno; then
3272 AMDEP_TRUE=
3273 AMDEP_FALSE='#'
3274 else
3275 AMDEP_TRUE='#'
3276 AMDEP_FALSE=
3281 # test to see if srcdir already configured
3282 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3283 test -f $srcdir/config.status; then
3284 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3285 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3286 { (exit 1); exit 1; }; }
3289 # test whether we have cygpath
3290 if test -z "$CYGPATH_W"; then
3291 if (cygpath --version) >/dev/null 2>/dev/null; then
3292 CYGPATH_W='cygpath -w'
3293 else
3294 CYGPATH_W=echo
3299 # Define the identity of the package.
3300 PACKAGE='libjava'
3301 VERSION='version-unused'
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE "$PACKAGE"
3306 _ACEOF
3309 cat >>confdefs.h <<_ACEOF
3310 #define VERSION "$VERSION"
3311 _ACEOF
3313 # Some tools Automake needs.
3315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3331 # Installed binaries are usually stripped using `strip' when the user
3332 # run `make install-strip'. However `strip' might not be the right
3333 # tool to use in cross-compilation environments, therefore Automake
3334 # will honor the `STRIP' environment variable to overrule this program.
3335 if test "$cross_compiling" != no; then
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}strip; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_STRIP+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 if test -n "$STRIP"; then
3345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3363 STRIP=$ac_cv_prog_STRIP
3364 if test -n "$STRIP"; then
3365 echo "$as_me:$LINENO: result: $STRIP" >&5
3366 echo "${ECHO_T}$STRIP" >&6
3367 else
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3373 if test -z "$ac_cv_prog_STRIP"; then
3374 ac_ct_STRIP=$STRIP
3375 # Extract the first word of "strip", so it can be a program name with args.
3376 set dummy strip; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 if test -n "$ac_ct_STRIP"; then
3383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_STRIP="strip"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3396 done
3397 done
3399 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3403 if test -n "$ac_ct_STRIP"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3405 echo "${ECHO_T}$ac_ct_STRIP" >&6
3406 else
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3411 STRIP=$ac_ct_STRIP
3412 else
3413 STRIP="$ac_cv_prog_STRIP"
3417 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3419 # We need awk for the "check" target. The system "awk" is bad on
3420 # some platforms.
3421 # Always define AMTAR for backward compatibility.
3423 AMTAR=${AMTAR-"${am_missing_run}tar"}
3425 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3430 depcc="$CC" am_compiler_list=
3432 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3433 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3434 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3438 # We make a subdir and do the tests there. Otherwise we can end up
3439 # making bogus files that we don't know about and never remove. For
3440 # instance it was reported that on HP-UX the gcc test will end up
3441 # making a dummy file named `D' -- because `-MD' means `put the output
3442 # in D'.
3443 mkdir conftest.dir
3444 # Copy depcomp to subdir because otherwise we won't find it if we're
3445 # using a relative directory.
3446 cp "$am_depcomp" conftest.dir
3447 cd conftest.dir
3448 # We will build objects and dependencies in a subdirectory because
3449 # it helps to detect inapplicable dependency modes. For instance
3450 # both Tru64's cc and ICC support -MD to output dependencies as a
3451 # side effect of compilation, but ICC will put the dependencies in
3452 # the current directory while Tru64 will put them in the object
3453 # directory.
3454 mkdir sub
3456 am_cv_CC_dependencies_compiler_type=none
3457 if test "$am_compiler_list" = ""; then
3458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3460 for depmode in $am_compiler_list; do
3461 # Setup a source with many dependencies, because some compilers
3462 # like to wrap large dependency lists on column 80 (with \), and
3463 # we should not choose a depcomp mode which is confused by this.
3465 # We need to recreate these files for each test, as the compiler may
3466 # overwrite some of them when testing with obscure command lines.
3467 # This happens at least with the AIX C compiler.
3468 : > sub/conftest.c
3469 for i in 1 2 3 4 5 6; do
3470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3472 # Solaris 8's {/usr,}/bin/sh.
3473 touch sub/conftst$i.h
3474 done
3475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3477 case $depmode in
3478 nosideeffect)
3479 # after this tag, mechanisms are not by side-effect, so they'll
3480 # only be used when explicitly requested
3481 if test "x$enable_dependency_tracking" = xyes; then
3482 continue
3483 else
3484 break
3487 none) break ;;
3488 esac
3489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3490 # mode. It turns out that the SunPro C++ compiler does not properly
3491 # handle `-M -o', and we need to detect this.
3492 if depmode=$depmode \
3493 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3495 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3496 >/dev/null 2>conftest.err &&
3497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500 # icc doesn't choke on unknown options, it will just issue warnings
3501 # or remarks (even with -Werror). So we grep stderr for any message
3502 # that says an option was ignored or not supported.
3503 # When given -MP, icc 7.0 and 7.1 complain thusly:
3504 # icc: Command line warning: ignoring option '-M'; no argument required
3505 # The diagnosis changed in icc 8.0:
3506 # icc: Command line remark: option '-MP' not supported
3507 if (grep 'ignoring option' conftest.err ||
3508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509 am_cv_CC_dependencies_compiler_type=$depmode
3510 break
3513 done
3515 cd ..
3516 rm -rf conftest.dir
3517 else
3518 am_cv_CC_dependencies_compiler_type=none
3522 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3523 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3524 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529 test "x$enable_dependency_tracking" != xno \
3530 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3531 am__fastdepCC_TRUE=
3532 am__fastdepCC_FALSE='#'
3533 else
3534 am__fastdepCC_TRUE='#'
3535 am__fastdepCC_FALSE=
3539 depcc="$CXX" am_compiler_list=
3541 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3543 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547 # We make a subdir and do the tests there. Otherwise we can end up
3548 # making bogus files that we don't know about and never remove. For
3549 # instance it was reported that on HP-UX the gcc test will end up
3550 # making a dummy file named `D' -- because `-MD' means `put the output
3551 # in D'.
3552 mkdir conftest.dir
3553 # Copy depcomp to subdir because otherwise we won't find it if we're
3554 # using a relative directory.
3555 cp "$am_depcomp" conftest.dir
3556 cd conftest.dir
3557 # We will build objects and dependencies in a subdirectory because
3558 # it helps to detect inapplicable dependency modes. For instance
3559 # both Tru64's cc and ICC support -MD to output dependencies as a
3560 # side effect of compilation, but ICC will put the dependencies in
3561 # the current directory while Tru64 will put them in the object
3562 # directory.
3563 mkdir sub
3565 am_cv_CXX_dependencies_compiler_type=none
3566 if test "$am_compiler_list" = ""; then
3567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569 for depmode in $am_compiler_list; do
3570 # Setup a source with many dependencies, because some compilers
3571 # like to wrap large dependency lists on column 80 (with \), and
3572 # we should not choose a depcomp mode which is confused by this.
3574 # We need to recreate these files for each test, as the compiler may
3575 # overwrite some of them when testing with obscure command lines.
3576 # This happens at least with the AIX C compiler.
3577 : > sub/conftest.c
3578 for i in 1 2 3 4 5 6; do
3579 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581 # Solaris 8's {/usr,}/bin/sh.
3582 touch sub/conftst$i.h
3583 done
3584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586 case $depmode in
3587 nosideeffect)
3588 # after this tag, mechanisms are not by side-effect, so they'll
3589 # only be used when explicitly requested
3590 if test "x$enable_dependency_tracking" = xyes; then
3591 continue
3592 else
3593 break
3596 none) break ;;
3597 esac
3598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599 # mode. It turns out that the SunPro C++ compiler does not properly
3600 # handle `-M -o', and we need to detect this.
3601 if depmode=$depmode \
3602 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605 >/dev/null 2>conftest.err &&
3606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609 # icc doesn't choke on unknown options, it will just issue warnings
3610 # or remarks (even with -Werror). So we grep stderr for any message
3611 # that says an option was ignored or not supported.
3612 # When given -MP, icc 7.0 and 7.1 complain thusly:
3613 # icc: Command line warning: ignoring option '-M'; no argument required
3614 # The diagnosis changed in icc 8.0:
3615 # icc: Command line remark: option '-MP' not supported
3616 if (grep 'ignoring option' conftest.err ||
3617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618 am_cv_CXX_dependencies_compiler_type=$depmode
3619 break
3622 done
3624 cd ..
3625 rm -rf conftest.dir
3626 else
3627 am_cv_CXX_dependencies_compiler_type=none
3631 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3632 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3633 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3638 test "x$enable_dependency_tracking" != xno \
3639 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3640 am__fastdepCXX_TRUE=
3641 am__fastdepCXX_FALSE='#'
3642 else
3643 am__fastdepCXX_TRUE='#'
3644 am__fastdepCXX_FALSE=
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}as; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_AS+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 if test -n "$AS"; then
3659 ac_cv_prog_AS="$AS" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_AS="${ac_tool_prefix}as"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3677 AS=$ac_cv_prog_AS
3678 if test -n "$AS"; then
3679 echo "$as_me:$LINENO: result: $AS" >&5
3680 echo "${ECHO_T}$AS" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$ac_cv_prog_AS"; then
3688 ac_ct_AS=$AS
3689 # Extract the first word of "as", so it can be a program name with args.
3690 set dummy as; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test -n "$ac_ct_AS"; then
3697 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_ac_ct_AS="as"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3715 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3716 if test -n "$ac_ct_AS"; then
3717 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3718 echo "${ECHO_T}$ac_ct_AS" >&6
3719 else
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3724 AS=$ac_ct_AS
3725 else
3726 AS="$ac_cv_prog_AS"
3729 if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ld; ac_word=$2
3732 echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_LD+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 if test -n "$LD"; then
3738 ac_cv_prog_LD="$LD" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_LD="${ac_tool_prefix}ld"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3756 LD=$ac_cv_prog_LD
3757 if test -n "$LD"; then
3758 echo "$as_me:$LINENO: result: $LD" >&5
3759 echo "${ECHO_T}$LD" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3766 if test -z "$ac_cv_prog_LD"; then
3767 ac_ct_LD=$LD
3768 # Extract the first word of "ld", so it can be a program name with args.
3769 set dummy ld; ac_word=$2
3770 echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 if test -n "$ac_ct_LD"; then
3776 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785 ac_cv_prog_ac_ct_LD="ld"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3794 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3795 if test -n "$ac_ct_LD"; then
3796 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3797 echo "${ECHO_T}$ac_ct_LD" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 LD=$ac_ct_LD
3804 else
3805 LD="$ac_cv_prog_LD"
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ar; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_AR+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 if test -n "$AR"; then
3817 ac_cv_prog_AR="$AR" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_AR="${ac_tool_prefix}ar"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3830 done
3831 done
3835 AR=$ac_cv_prog_AR
3836 if test -n "$AR"; then
3837 echo "$as_me:$LINENO: result: $AR" >&5
3838 echo "${ECHO_T}$AR" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3845 if test -z "$ac_cv_prog_AR"; then
3846 ac_ct_AR=$AR
3847 # Extract the first word of "ar", so it can be a program name with args.
3848 set dummy ar; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 if test -n "$ac_ct_AR"; then
3855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_AR="ar"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3874 if test -n "$ac_ct_AR"; then
3875 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3876 echo "${ECHO_T}$ac_ct_AR" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3882 AR=$ac_ct_AR
3883 else
3884 AR="$ac_cv_prog_AR"
3887 if test -n "$ac_tool_prefix"; then
3888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_RANLIB+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -n "$RANLIB"; then
3896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3909 done
3910 done
3914 RANLIB=$ac_cv_prog_RANLIB
3915 if test -n "$RANLIB"; then
3916 echo "$as_me:$LINENO: result: $RANLIB" >&5
3917 echo "${ECHO_T}$RANLIB" >&6
3918 else
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3924 if test -z "$ac_cv_prog_RANLIB"; then
3925 ac_ct_RANLIB=$RANLIB
3926 # Extract the first word of "ranlib", so it can be a program name with args.
3927 set dummy ranlib; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933 if test -n "$ac_ct_RANLIB"; then
3934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_RANLIB="ranlib"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3947 done
3948 done
3950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3954 if test -n "$ac_ct_RANLIB"; then
3955 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3956 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3957 else
3958 echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3962 RANLIB=$ac_ct_RANLIB
3963 else
3964 RANLIB="$ac_cv_prog_RANLIB"
3967 for ac_prog in jar fastjar
3969 # Extract the first word of "$ac_prog", so it can be a program name with args.
3970 set dummy $ac_prog; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_JAR+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 if test -n "$JAR"; then
3977 ac_cv_prog_JAR="$JAR" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986 ac_cv_prog_JAR="$ac_prog"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3990 done
3991 done
3995 JAR=$ac_cv_prog_JAR
3996 if test -n "$JAR"; then
3997 echo "$as_me:$LINENO: result: $JAR" >&5
3998 echo "${ECHO_T}$JAR" >&6
3999 else
4000 echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4004 test -n "$JAR" && break
4005 done
4006 test -n "$JAR" || JAR="false"
4008 if test "$JAR" = false; then
4009 { { echo "$as_me:$LINENO: error: jar program not found" >&5
4010 echo "$as_me: error: jar program not found" >&2;}
4011 { (exit 1); exit 1; }; }
4014 # Find a good install program. We prefer a C program (faster),
4015 # so one script is as good as another. But avoid the broken or
4016 # incompatible versions:
4017 # SysV /etc/install, /usr/sbin/install
4018 # SunOS /usr/etc/install
4019 # IRIX /sbin/install
4020 # AIX /bin/install
4021 # AmigaOS /C/install, which installs bootblocks on floppy discs
4022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4025 # OS/2's system install, which has a completely different semantic
4026 # ./install, which can be erroneously created by make from ./install.sh.
4027 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4028 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4029 if test -z "$INSTALL"; then
4030 if test "${ac_cv_path_install+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 # Account for people who put trailing slashes in PATH elements.
4039 case $as_dir/ in
4040 ./ | .// | /cC/* | \
4041 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4042 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4043 /usr/ucb/* ) ;;
4045 # OSF1 and SCO ODT 3.0 have their own names for install.
4046 # Don't use installbsd from OSF since it installs stuff as root
4047 # by default.
4048 for ac_prog in ginstall scoinst install; do
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4051 if test $ac_prog = install &&
4052 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4053 # AIX install. It has an incompatible calling convention.
4055 elif test $ac_prog = install &&
4056 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4057 # program-specific install script used by HP pwplus--don't use.
4059 else
4060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4061 break 3
4064 done
4065 done
4067 esac
4068 done
4072 if test "${ac_cv_path_install+set}" = set; then
4073 INSTALL=$ac_cv_path_install
4074 else
4075 # As a last resort, use the slow shell script. We don't cache a
4076 # path for INSTALL within a source directory, because that will
4077 # break other packages using the cache if that directory is
4078 # removed, or if the path is relative.
4079 INSTALL=$ac_install_sh
4082 echo "$as_me:$LINENO: result: $INSTALL" >&5
4083 echo "${ECHO_T}$INSTALL" >&6
4085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4086 # It thinks the first close brace ends the variable substitution.
4087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4094 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4095 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4096 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4097 if test "${enable_maintainer_mode+set}" = set; then
4098 enableval="$enable_maintainer_mode"
4099 USE_MAINTAINER_MODE=$enableval
4100 else
4101 USE_MAINTAINER_MODE=no
4103 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4104 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4107 if test $USE_MAINTAINER_MODE = yes; then
4108 MAINTAINER_MODE_TRUE=
4109 MAINTAINER_MODE_FALSE='#'
4110 else
4111 MAINTAINER_MODE_TRUE='#'
4112 MAINTAINER_MODE_FALSE=
4115 MAINT=$MAINTAINER_MODE_TRUE
4121 # configure.host sets the following important variables
4122 # libgcj_cflags - host specific C compiler flags
4123 # libgcj_cxxflags - host specific C++ compiler flags
4124 # libgcj_javaflags - host specific Java compiler flags
4126 libgcj_cflags=
4127 libgcj_cxxflags=
4128 libgcj_javaflags=
4130 . ${srcdir}/configure.host
4132 LIBGCJ_CFLAGS="${libgcj_cflags}"
4133 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4134 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4135 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4141 # Only use libltdl for non-newlib builds.
4142 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4143 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4144 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4145 library_names_spec=
4146 libname_spec='lib$name'
4147 soname_spec=
4148 shrext=".so"
4149 postinstall_cmds=
4150 postuninstall_cmds=
4151 finish_cmds=
4152 finish_eval=
4153 shlibpath_var=
4154 shlibpath_overrides_runpath=unknown
4155 version_type=none
4156 dynamic_linker="$host_os ld.so"
4157 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4158 if test "$GCC" = yes; then
4159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4160 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4161 # if the path contains ";" then we assume it to be the separator
4162 # otherwise default to the standard path separator (i.e. ":") - it is
4163 # assumed that no part of a normal pathname contains ";" but that should
4164 # okay in the real world where ";" in dirpaths is itself problematic.
4165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4166 else
4167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4169 else
4170 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4172 need_lib_prefix=unknown
4173 hardcode_into_libs=no
4175 # when you set need_version to no, make sure it does not cause -set_version
4176 # flags to be left without arguments
4177 need_version=unknown
4179 case $host_os in
4180 aix3*)
4181 version_type=linux
4182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4183 shlibpath_var=LIBPATH
4185 # AIX 3 has no versioning support, so we append a major version to the name.
4186 soname_spec='${libname}${release}${shared_ext}$major'
4189 aix4* | aix5*)
4190 version_type=linux
4191 need_lib_prefix=no
4192 need_version=no
4193 hardcode_into_libs=yes
4194 if test "$host_cpu" = ia64; then
4195 # AIX 5 supports IA64
4196 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4197 shlibpath_var=LD_LIBRARY_PATH
4198 else
4199 # With GCC up to 2.95.x, collect2 would create an import file
4200 # for dependence libraries. The import file would start with
4201 # the line `#! .'. This would cause the generated library to
4202 # depend on `.', always an invalid library. This was fixed in
4203 # development snapshots of GCC prior to 3.0.
4204 case $host_os in
4205 aix4 | aix4.[01] | aix4.[01].*)
4206 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4207 echo ' yes '
4208 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4210 else
4211 can_build_shared=no
4214 esac
4215 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4216 # soname into executable. Probably we can add versioning support to
4217 # collect2, so additional links can be useful in future.
4218 if test "$aix_use_runtimelinking" = yes; then
4219 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4220 # instead of lib<name>.a to let people know that these are not
4221 # typical AIX shared libraries.
4222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4223 else
4224 # We preserve .a as extension for shared libraries through AIX4.2
4225 # and later when we are not doing run time linking.
4226 library_names_spec='${libname}${release}.a $libname.a'
4227 soname_spec='${libname}${release}${shared_ext}$major'
4229 shlibpath_var=LIBPATH
4233 amigaos*)
4234 library_names_spec='$libname.ixlibrary $libname.a'
4235 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4236 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'
4239 beos*)
4240 library_names_spec='${libname}${shared_ext}'
4241 dynamic_linker="$host_os ld.so"
4242 shlibpath_var=LIBRARY_PATH
4245 bsdi4*)
4246 version_type=linux
4247 need_version=no
4248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4249 soname_spec='${libname}${release}${shared_ext}$major'
4250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4251 shlibpath_var=LD_LIBRARY_PATH
4252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4254 # the default ld.so.conf also contains /usr/contrib/lib and
4255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4256 # libtool to hard-code these into programs
4259 cygwin* | mingw* | pw32*)
4260 version_type=windows
4261 shrext=".dll"
4262 need_version=no
4263 need_lib_prefix=no
4265 case $GCC,$host_os in
4266 yes,cygwin* | yes,mingw* | yes,pw32*)
4267 library_names_spec='$libname.dll.a'
4268 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4269 postinstall_cmds='base_file=`basename \${file}`~
4270 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4271 dldir=$destdir/`dirname \$dlpath`~
4272 test -d \$dldir || mkdir -p \$dldir~
4273 $install_prog $dir/$dlname \$dldir/$dlname'
4274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4275 dlpath=$dir/\$dldll~
4276 $rm \$dlpath'
4277 shlibpath_overrides_runpath=yes
4279 case $host_os in
4280 cygwin*)
4281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4282 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4283 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4285 mingw*)
4286 # MinGW DLLs use traditional 'lib' prefix
4287 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4289 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4290 # It is most probably a Windows format PATH printed by
4291 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4292 # path with ; separators, and with drive letters. We can handle the
4293 # drive letters (cygwin fileutils understands them), so leave them,
4294 # especially as we might pass files found there to a mingw objdump,
4295 # which wouldn't understand a cygwinified path. Ahh.
4296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4297 else
4298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4301 pw32*)
4302 # pw32 DLLs use 'pw' prefix rather than 'lib'
4303 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4305 esac
4309 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4311 esac
4312 dynamic_linker='Win32 ld.exe'
4313 # FIXME: first we should search . and the directory the executable is in
4314 shlibpath_var=PATH
4317 darwin* | rhapsody*)
4318 dynamic_linker="$host_os dyld"
4319 version_type=darwin
4320 need_lib_prefix=no
4321 need_version=no
4322 # FIXME: Relying on posixy $() will cause problems for
4323 # cross-compilation, but unfortunately the echo tests do not
4324 # yet detect zsh echo's removal of \ escapes.
4325 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4326 soname_spec='${libname}${release}${major}$shared_ext'
4327 shlibpath_overrides_runpath=yes
4328 shlibpath_var=DYLD_LIBRARY_PATH
4329 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4330 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4331 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4332 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"`
4334 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4337 dgux*)
4338 version_type=linux
4339 need_lib_prefix=no
4340 need_version=no
4341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4342 soname_spec='${libname}${release}${shared_ext}$major'
4343 shlibpath_var=LD_LIBRARY_PATH
4346 freebsd1*)
4347 dynamic_linker=no
4350 freebsd*)
4351 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4352 version_type=freebsd-$objformat
4353 case $version_type in
4354 freebsd-elf*)
4355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4356 need_version=no
4357 need_lib_prefix=no
4359 freebsd-*)
4360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4361 need_version=yes
4363 esac
4364 shlibpath_var=LD_LIBRARY_PATH
4365 case $host_os in
4366 freebsd2*)
4367 shlibpath_overrides_runpath=yes
4369 freebsd3.01* | freebsdelf3.01*)
4370 shlibpath_overrides_runpath=yes
4371 hardcode_into_libs=yes
4373 *) # from 3.2 on
4374 shlibpath_overrides_runpath=no
4375 hardcode_into_libs=yes
4377 esac
4380 gnu*)
4381 version_type=linux
4382 need_lib_prefix=no
4383 need_version=no
4384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4385 soname_spec='${libname}${release}${shared_ext}$major'
4386 shlibpath_var=LD_LIBRARY_PATH
4387 hardcode_into_libs=yes
4390 hpux9* | hpux10* | hpux11*)
4391 # Give a soname corresponding to the major version so that dld.sl refuses to
4392 # link against other versions.
4393 version_type=sunos
4394 need_lib_prefix=no
4395 need_version=no
4396 case "$host_cpu" in
4397 ia64*)
4398 shrext='.so'
4399 hardcode_into_libs=yes
4400 dynamic_linker="$host_os dld.so"
4401 shlibpath_var=LD_LIBRARY_PATH
4402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4404 soname_spec='${libname}${release}${shared_ext}$major'
4405 if test "X$HPUX_IA64_MODE" = X32; then
4406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4407 else
4408 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4412 hppa*64*)
4413 shrext='.sl'
4414 hardcode_into_libs=yes
4415 dynamic_linker="$host_os dld.sl"
4416 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4419 soname_spec='${libname}${release}${shared_ext}$major'
4420 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4424 shrext='.sl'
4425 dynamic_linker="$host_os dld.sl"
4426 shlibpath_var=SHLIB_PATH
4427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4429 soname_spec='${libname}${release}${shared_ext}$major'
4431 esac
4432 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4433 postinstall_cmds='chmod 555 $lib'
4436 irix5* | irix6* | nonstopux*)
4437 case $host_os in
4438 nonstopux*) version_type=nonstopux ;;
4440 if test "$lt_cv_prog_gnu_ld" = yes; then
4441 version_type=linux
4442 else
4443 version_type=irix
4444 fi ;;
4445 esac
4446 need_lib_prefix=no
4447 need_version=no
4448 soname_spec='${libname}${release}${shared_ext}$major'
4449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4450 case $host_os in
4451 irix5* | nonstopux*)
4452 libsuff= shlibsuff=
4455 case $LD in # libtool.m4 will add one of these switches to LD
4456 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4457 libsuff= shlibsuff= libmagic=32-bit;;
4458 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4459 libsuff=32 shlibsuff=N32 libmagic=N32;;
4460 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4461 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4462 *) libsuff= shlibsuff= libmagic=never-match;;
4463 esac
4465 esac
4466 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4467 shlibpath_overrides_runpath=no
4468 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4469 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4470 hardcode_into_libs=yes
4473 # No shared lib support for Linux oldld, aout, or coff.
4474 linux*oldld* | linux*aout* | linux*coff*)
4475 dynamic_linker=no
4478 # This must be Linux ELF.
4479 linux*)
4480 version_type=linux
4481 need_lib_prefix=no
4482 need_version=no
4483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4484 soname_spec='${libname}${release}${shared_ext}$major'
4485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4486 shlibpath_var=LD_LIBRARY_PATH
4487 shlibpath_overrides_runpath=no
4488 # This implies no fast_install, which is unacceptable.
4489 # Some rework will be needed to allow for fast_install
4490 # before this can be enabled.
4491 hardcode_into_libs=yes
4493 # We used to test for /lib/ld.so.1 and disable shared libraries on
4494 # powerpc, because MkLinux only supported shared libraries with the
4495 # GNU dynamic linker. Since this was broken with cross compilers,
4496 # most powerpc-linux boxes support dynamic linking these days and
4497 # people can always --disable-shared, the test was removed, and we
4498 # assume the GNU/Linux dynamic linker is in use.
4499 dynamic_linker='GNU/Linux ld.so'
4502 netbsd*)
4503 version_type=sunos
4504 need_lib_prefix=no
4505 need_version=no
4506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4509 dynamic_linker='NetBSD (a.out) ld.so'
4510 else
4511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4512 soname_spec='${libname}${release}${shared_ext}$major'
4513 dynamic_linker='NetBSD ld.elf_so'
4515 shlibpath_var=LD_LIBRARY_PATH
4516 shlibpath_overrides_runpath=yes
4517 hardcode_into_libs=yes
4520 newsos6)
4521 version_type=linux
4522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4523 shlibpath_var=LD_LIBRARY_PATH
4524 shlibpath_overrides_runpath=yes
4527 nto-qnx)
4528 version_type=linux
4529 need_lib_prefix=no
4530 need_version=no
4531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4532 soname_spec='${libname}${release}${shared_ext}$major'
4533 shlibpath_var=LD_LIBRARY_PATH
4534 shlibpath_overrides_runpath=yes
4537 openbsd*)
4538 version_type=sunos
4539 need_lib_prefix=no
4540 need_version=no
4541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4543 shlibpath_var=LD_LIBRARY_PATH
4544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4545 case $host_os in
4546 openbsd2.[89] | openbsd2.[89].*)
4547 shlibpath_overrides_runpath=no
4550 shlibpath_overrides_runpath=yes
4552 esac
4553 else
4554 shlibpath_overrides_runpath=yes
4558 os2*)
4559 libname_spec='$name'
4560 shrext=".dll"
4561 need_lib_prefix=no
4562 library_names_spec='$libname${shared_ext} $libname.a'
4563 dynamic_linker='OS/2 ld.exe'
4564 shlibpath_var=LIBPATH
4567 osf3* | osf4* | osf5*)
4568 version_type=osf
4569 need_lib_prefix=no
4570 need_version=no
4571 soname_spec='${libname}${release}${shared_ext}$major'
4572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4573 shlibpath_var=LD_LIBRARY_PATH
4574 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4575 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4578 sco3.2v5*)
4579 version_type=osf
4580 soname_spec='${libname}${release}${shared_ext}$major'
4581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4582 shlibpath_var=LD_LIBRARY_PATH
4585 solaris*)
4586 version_type=linux
4587 need_lib_prefix=no
4588 need_version=no
4589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4590 soname_spec='${libname}${release}${shared_ext}$major'
4591 shlibpath_var=LD_LIBRARY_PATH
4592 shlibpath_overrides_runpath=yes
4593 hardcode_into_libs=yes
4594 # ldd complains unless libraries are executable
4595 postinstall_cmds='chmod +x $lib'
4598 sunos4*)
4599 version_type=sunos
4600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4601 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4602 shlibpath_var=LD_LIBRARY_PATH
4603 shlibpath_overrides_runpath=yes
4604 if test "$with_gnu_ld" = yes; then
4605 need_lib_prefix=no
4607 need_version=yes
4610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4611 version_type=linux
4612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4613 soname_spec='${libname}${release}${shared_ext}$major'
4614 shlibpath_var=LD_LIBRARY_PATH
4615 case $host_vendor in
4616 sni)
4617 shlibpath_overrides_runpath=no
4618 need_lib_prefix=no
4619 export_dynamic_flag_spec='${wl}-Blargedynsym'
4620 runpath_var=LD_RUN_PATH
4622 siemens)
4623 need_lib_prefix=no
4625 motorola)
4626 need_lib_prefix=no
4627 need_version=no
4628 shlibpath_overrides_runpath=no
4629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4631 esac
4634 sysv4*MP*)
4635 if test -d /usr/nec ;then
4636 version_type=linux
4637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4638 soname_spec='$libname${shared_ext}.$major'
4639 shlibpath_var=LD_LIBRARY_PATH
4643 uts4*)
4644 version_type=linux
4645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4646 soname_spec='${libname}${release}${shared_ext}$major'
4647 shlibpath_var=LD_LIBRARY_PATH
4651 dynamic_linker=no
4653 esac
4654 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4655 echo "${ECHO_T}$dynamic_linker" >&6
4656 test "$dynamic_linker" = no && can_build_shared=no
4659 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4660 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4661 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664 libltdl_cv_shlibpath_var="$shlibpath_var"
4666 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4667 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4668 if test -n "$libltdl_cv_shlibpath_var"; then
4670 cat >>confdefs.h <<_ACEOF
4671 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4672 _ACEOF
4678 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4681 # See if the user has requested runtime debugging.
4682 LIBGCJDEBUG="disable"
4684 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4685 if test "${enable_libgcj_debug+set}" = set; then
4686 enableval="$enable_libgcj_debug"
4687 if test "$enable_libgcj_debug" = yes; then
4689 cat >>confdefs.h <<\_ACEOF
4690 #define DEBUG 1
4691 _ACEOF
4693 LIBGCJDEBUG="enable"
4697 # Determine which AWT peer libraries to build
4698 # Check whether --enable-java-awt or --disable-java-awt was given.
4699 if test "${enable_java_awt+set}" = set; then
4700 enableval="$enable_java_awt"
4704 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4705 use_xlib_awt=""
4706 use_gtk_awt=""
4707 use_qt_awt=""
4708 # The default toolkit to use is the first one specified.
4709 TOOLKIT=
4712 for peer in $peerlibs ; do
4713 case $peer in
4714 xlib)
4715 if test "$no_x" = yes; then
4716 echo "*** xlib peers requested but no X library available" 1>&2
4717 exit 1
4718 else
4719 use_xlib_awt="yes"
4720 if test -z "$TOOLKIT"; then
4721 TOOLKIT=gnu.awt.xlib.XToolkit
4725 gtk)
4726 if test "$no_x" = yes; then
4727 echo "*** gtk peers requested but no X library available" 1>&2
4728 exit 1
4729 else
4730 use_gtk_awt=yes
4731 if test -z "$TOOLKIT"; then
4732 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4737 if test "$no_x" = yes; then
4738 # Perhaps we should admit the possibility of embedded Qt.
4739 echo "*** Qt peers requested but no X library available" 1>&2
4740 exit 1
4741 else
4742 use_qt_awt=yes
4743 if test -z "$TOOLKIT"; then
4744 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4749 use_xlib_awt=
4750 use_gtk_awt=
4751 use_qt_awt=
4752 break
4755 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4756 exit 1
4757 esac
4758 done
4762 if test "$use_xlib_awt" = yes; then
4763 XLIB_AWT_TRUE=
4764 XLIB_AWT_FALSE='#'
4765 else
4766 XLIB_AWT_TRUE='#'
4767 XLIB_AWT_FALSE=
4772 if test "$use_qt_awt" = yes; then
4773 QT_AWT_TRUE=
4774 QT_AWT_FALSE='#'
4775 else
4776 QT_AWT_TRUE='#'
4777 QT_AWT_FALSE=
4781 # Create standard.omit based on decisions we just made.
4782 cp $srcdir/standard.omit.in standard.omit
4783 if test "$use_xlib_awt" != yes; then
4784 echo gnu/awt/xlib >> standard.omit
4785 echo gnu/gcj/xlib >> standard.omit
4787 if test "$use_qt_awt" != yes; then
4788 echo gnu/java/awt/peer/qt >> standard.omit
4791 if test -z "${with_multisubdir}"; then
4792 builddotdot=.
4793 else
4794 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4797 NATIVE=yes
4799 # Which gcj do we use?
4800 which_gcj=default
4801 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4802 if test -n "${with_cross_host}"; then
4803 # We are being configured with a cross compiler. We can't
4804 # use ac_exeext, because that is for the target platform.
4805 NATIVE=no
4806 cross_host_exeext=
4807 case "${with_cross_host}" in
4808 *mingw* | *cygwin*)
4809 cross_host_exeext=.exe
4811 esac
4812 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4813 if test x"$build_noncanonical" = x"$with_cross_host"; then
4814 # Ordinary cross (host!=target and host=build)
4815 which_gcj=built
4816 else
4817 # Canadian cross (host!=target and host!=build)
4818 which_gcj=cross
4820 else
4821 which_gcj=cross
4823 else
4824 # We are being configured with a native or crossed-native compiler
4825 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4826 if test x"$build" = x"$host"; then
4827 # True native build (host=target and host=build)
4828 which_gcj=built
4829 else
4830 # Crossed-native build (host=target and host!=build)
4831 which_gcj=cross
4833 else
4834 which_gcj=path
4837 case "${which_gcj}" in
4838 built)
4839 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4840 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4842 cross)
4843 if test "x${with_newlib}" = "xyes"; then
4844 # FIXME (comment): Why is this needed?
4845 GCC_UNWIND_INCLUDE=
4846 GCJ="${target_noncanonical}-gcj"
4847 else
4848 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4850 GCJH='$(target_noncanonical)-gcjh'
4852 path)
4853 GCJ="gcj -B`${PWDCMD-pwd}`/"
4854 GCJH=gcjh
4856 esac
4860 # Create it, so that compile/link tests don't fail
4861 test -f libgcj.spec || touch libgcj.spec
4865 # Set up to configure Classpath.
4866 # FIXME: no supported way to pass args in autoconf.
4867 ac_configure_args="$ac_configure_args --disable-load-library"
4868 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4869 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4870 dir1=`cd $srcdir && pwd`
4871 dir2=`pwd`
4872 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4873 ac_configure_args="$ac_configure_args --disable-core-jni"
4874 ac_configure_args="$ac_configure_args --disable-examples"
4875 ac_configure_args="$ac_configure_args --with-glibj=build"
4876 if test "$use_gtk_awt" != yes; then
4877 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4879 if test "$use_qt_awt" != yes; then
4880 ac_configure_args="$ac_configure_args --disable-qt-peer"
4881 else
4882 # We need this as qt is disabled by default in classpath.
4883 ac_configure_args="$ac_configure_args --enable-qt-peer"
4886 # Only use libltdl for non-newlib builds.
4887 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4888 case $enable_ltdl_convenience in
4889 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4890 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4891 { (exit 1); exit 1; }; } ;;
4892 "") enable_ltdl_convenience=yes
4893 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4894 esac
4895 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4896 INCLTDL='-I${top_srcdir}/''libltdl'
4899 DIRLTDL=libltdl
4901 cat >>confdefs.h <<\_ACEOF
4902 #define USE_LTDL 1
4903 _ACEOF
4905 # Sigh. Libtool's macro doesn't do the right thing.
4906 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4907 # FIXME: this is a hack.
4908 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4909 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4914 # Check whether --enable-shared or --disable-shared was given.
4915 if test "${enable_shared+set}" = set; then
4916 enableval="$enable_shared"
4917 p=${PACKAGE-default}
4918 case $enableval in
4919 yes) enable_shared=yes ;;
4920 no) enable_shared=no ;;
4922 enable_shared=no
4923 # Look at the argument we got. We use all the common list separators.
4924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4925 for pkg in $enableval; do
4926 if test "X$pkg" = "X$p"; then
4927 enable_shared=yes
4929 done
4930 IFS="$ac_save_ifs"
4932 esac
4933 else
4934 enable_shared=yes
4936 # Check whether --enable-static or --disable-static was given.
4937 if test "${enable_static+set}" = set; then
4938 enableval="$enable_static"
4939 p=${PACKAGE-default}
4940 case $enableval in
4941 yes) enable_static=yes ;;
4942 no) enable_static=no ;;
4944 enable_static=no
4945 # Look at the argument we got. We use all the common list separators.
4946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4947 for pkg in $enableval; do
4948 if test "X$pkg" = "X$p"; then
4949 enable_static=yes
4951 done
4952 IFS="$ac_save_ifs"
4954 esac
4955 else
4956 enable_static=yes
4958 # Check whether --enable-fast-install or --disable-fast-install was given.
4959 if test "${enable_fast_install+set}" = set; then
4960 enableval="$enable_fast_install"
4961 p=${PACKAGE-default}
4962 case $enableval in
4963 yes) enable_fast_install=yes ;;
4964 no) enable_fast_install=no ;;
4966 enable_fast_install=no
4967 # Look at the argument we got. We use all the common list separators.
4968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4969 for pkg in $enableval; do
4970 if test "X$pkg" = "X$p"; then
4971 enable_fast_install=yes
4973 done
4974 IFS="$ac_save_ifs"
4976 esac
4977 else
4978 enable_fast_install=yes
4981 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4982 if test "${with_gnu_ld+set}" = set; then
4983 withval="$with_gnu_ld"
4984 test "$withval" = no || with_gnu_ld=yes
4985 else
4986 with_gnu_ld=no
4988 ac_prog=ld
4989 if test "$GCC" = yes; then
4990 # Check if gcc -print-prog-name=ld gives a path.
4991 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4992 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4993 case $host in
4994 *-*-mingw*)
4995 # gcc leaves a trailing carriage return which upsets mingw
4996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4999 esac
5000 case $ac_prog in
5001 # Accept absolute paths.
5002 [\\/]* | [A-Za-z]:[\\/]*)
5003 re_direlt='/[^/][^/]*/\.\./'
5004 # Canonicalize the path of ld
5005 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5006 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5007 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5008 done
5009 test -z "$LD" && LD="$ac_prog"
5012 # If it fails, then pretend we aren't using GCC.
5013 ac_prog=ld
5016 # If it is relative, then search for the first ld in PATH.
5017 with_gnu_ld=unknown
5019 esac
5020 elif test "$with_gnu_ld" = yes; then
5021 echo "$as_me:$LINENO: checking for GNU ld" >&5
5022 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5023 else
5024 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5025 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5027 if test "${lt_cv_path_LD+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 if test -z "$LD"; then
5031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5032 for ac_dir in $PATH; do
5033 test -z "$ac_dir" && ac_dir=.
5034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5035 lt_cv_path_LD="$ac_dir/$ac_prog"
5036 # Check to see if the program is GNU ld. I'd rather use --version,
5037 # but apparently some GNU ld's only accept -v.
5038 # Break only if it was the GNU/non-GNU ld that we prefer.
5039 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5040 test "$with_gnu_ld" != no && break
5041 else
5042 test "$with_gnu_ld" != yes && break
5045 done
5046 IFS="$ac_save_ifs"
5047 else
5048 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5052 LD="$lt_cv_path_LD"
5053 if test -n "$LD"; then
5054 echo "$as_me:$LINENO: result: $LD" >&5
5055 echo "${ECHO_T}$LD" >&6
5056 else
5057 echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5060 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5061 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5062 { (exit 1); exit 1; }; }
5063 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5064 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5065 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5069 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5070 lt_cv_prog_gnu_ld=yes
5071 else
5072 lt_cv_prog_gnu_ld=no
5075 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5076 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5077 with_gnu_ld=$lt_cv_prog_gnu_ld
5080 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5081 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5082 if test "${lt_cv_ld_reload_flag+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 lt_cv_ld_reload_flag='-r'
5087 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5088 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5089 reload_flag=$lt_cv_ld_reload_flag
5090 test -n "$reload_flag" && reload_flag=" $reload_flag"
5092 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5093 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5094 if test "${lt_cv_path_NM+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097 if test -n "$NM"; then
5098 # Let the user override the test.
5099 lt_cv_path_NM="$NM"
5100 else
5101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5102 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5103 test -z "$ac_dir" && ac_dir=.
5104 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5105 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5106 # Check to see if the nm accepts a BSD-compat flag.
5107 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5108 # nm: unknown option "B" ignored
5109 # Tru64's nm complains that /dev/null is an invalid object file
5110 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5111 lt_cv_path_NM="$tmp_nm -B"
5112 break
5113 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5114 lt_cv_path_NM="$tmp_nm -p"
5115 break
5116 else
5117 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5118 continue # so that we can try to find one that supports BSD flags
5121 done
5122 IFS="$ac_save_ifs"
5123 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5127 NM="$lt_cv_path_NM"
5128 echo "$as_me:$LINENO: result: $NM" >&5
5129 echo "${ECHO_T}$NM" >&6
5131 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5132 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5133 if test "${lt_cv_deplibs_check_method+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 lt_cv_file_magic_cmd='$MAGIC_CMD'
5137 lt_cv_file_magic_test_file=
5138 lt_cv_deplibs_check_method='unknown'
5139 # Need to set the preceding variable on all platforms that support
5140 # interlibrary dependencies.
5141 # 'none' -- dependencies not supported.
5142 # `unknown' -- same as none, but documents that we really don't know.
5143 # 'pass_all' -- all dependencies passed with no checks.
5144 # 'test_compile' -- check by making test program.
5145 # 'file_magic [regex]' -- check by looking for files in library path
5146 # which responds to the $file_magic_cmd with a given egrep regex.
5147 # If you have `file' or equivalent on your system and you're not sure
5148 # whether `pass_all' will *always* work, you probably want this one.
5150 case $host_os in
5151 aix*)
5152 lt_cv_deplibs_check_method=pass_all
5155 beos*)
5156 lt_cv_deplibs_check_method=pass_all
5159 bsdi4*)
5160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5161 lt_cv_file_magic_cmd='/usr/bin/file -L'
5162 lt_cv_file_magic_test_file=/shlib/libc.so
5165 cygwin* | mingw* |pw32*)
5166 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5167 lt_cv_file_magic_cmd='$OBJDUMP -f'
5170 darwin* | rhapsody*)
5171 # this will be overwritten by pass_all, but leave it in just in case
5172 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5173 lt_cv_file_magic_cmd='/usr/bin/file -L'
5174 case "$host_os" in
5175 rhapsody* | darwin1.012)
5176 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5178 *) # Darwin 1.3 on
5179 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5181 esac
5182 lt_cv_deplibs_check_method=pass_all
5185 freebsd* | kfreebsd*-gnu)
5186 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5187 case $host_cpu in
5188 i*86 )
5189 # Not sure whether the presence of OpenBSD here was a mistake.
5190 # Let's accept both of them until this is cleared up.
5191 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5192 lt_cv_file_magic_cmd=/usr/bin/file
5193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5195 esac
5196 else
5197 lt_cv_deplibs_check_method=pass_all
5201 gnu*)
5202 lt_cv_deplibs_check_method=pass_all
5205 hpux10.20*|hpux11*)
5206 case $host_cpu in
5207 hppa*)
5208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5209 lt_cv_file_magic_cmd=/usr/bin/file
5210 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5212 ia64*)
5213 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5214 lt_cv_file_magic_cmd=/usr/bin/file
5215 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5217 esac
5220 irix5* | irix6*)
5221 case $host_os in
5222 irix5*)
5223 # this will be overridden with pass_all, but let us keep it just in case
5224 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5227 case $LD in
5228 *-32|*"-32 ") libmagic=32-bit;;
5229 *-n32|*"-n32 ") libmagic=N32;;
5230 *-64|*"-64 ") libmagic=64-bit;;
5231 *) libmagic=never-match;;
5232 esac
5233 # this will be overridden with pass_all, but let us keep it just in case
5234 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5236 esac
5237 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5238 lt_cv_deplibs_check_method=pass_all
5241 # This must be Linux ELF.
5242 linux-gnu*)
5243 lt_cv_deplibs_check_method=pass_all
5246 netbsd* | knetbsd*-gnu)
5247 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5248 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5249 else
5250 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5254 newsos6)
5255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5256 lt_cv_file_magic_cmd=/usr/bin/file
5257 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5260 osf3* | osf4* | osf5*)
5261 # this will be overridden with pass_all, but let us keep it just in case
5262 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5263 lt_cv_file_magic_test_file=/shlib/libc.so
5264 lt_cv_deplibs_check_method=pass_all
5267 sco3.2v5*)
5268 lt_cv_deplibs_check_method=pass_all
5271 solaris*)
5272 lt_cv_deplibs_check_method=pass_all
5273 lt_cv_file_magic_test_file=/lib/libc.so
5276 sysv5uw[78]* | sysv4*uw2*)
5277 lt_cv_deplibs_check_method=pass_all
5280 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5281 case $host_vendor in
5282 ncr)
5283 lt_cv_deplibs_check_method=pass_all
5285 motorola)
5286 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]'
5287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5289 esac
5291 esac
5294 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5295 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5296 file_magic_cmd=$lt_cv_file_magic_cmd
5297 deplibs_check_method=$lt_cv_deplibs_check_method
5302 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5304 # find the maximum length of command line arguments
5305 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5306 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5307 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5311 teststring="ABCD"
5313 case $build_os in
5314 msdosdjgpp*)
5315 # On DJGPP, this test can blow up pretty badly due to problems in libc
5316 # (any single argument exceeding 2000 bytes causes a buffer overrun
5317 # during glob expansion). Even if it were fixed, the result of this
5318 # check would be larger than it should be.
5319 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5322 cygwin* | mingw*)
5323 # On Win9x/ME, this test blows up -- it succeeds, but takes
5324 # about 5 minutes as the teststring grows exponentially.
5325 # Worse, since 9x/ME are not pre-emptively multitasking,
5326 # you end up with a "frozen" computer, even though with patience
5327 # the test eventually succeeds (with a max line length of 256k).
5328 # Instead, let's just punt: use the minimum linelength reported by
5329 # all of the supported platforms: 8192 (on NT/2K/XP).
5330 lt_cv_sys_max_cmd_len=8192;
5333 amigaos*)
5334 # On AmigaOS with pdksh, this test takes hours, literally.
5335 # So we just punt and use a minimum line length of 8192.
5336 lt_cv_sys_max_cmd_len=8192;
5339 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5340 # This has been around since 386BSD, at least. Likely further.
5341 if test -x /sbin/sysctl; then
5342 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5343 elif test -x /usr/sbin/sysctl; then
5344 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5345 else
5346 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5348 # And add a safety zone
5349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5352 esac
5356 if test -n "$lt_cv_sys_max_cmd_len" ; then
5357 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5358 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5359 else
5360 echo "$as_me:$LINENO: result: none" >&5
5361 echo "${ECHO_T}none" >&6
5365 # Only perform the check for file, if the check method requires it
5366 case $deplibs_check_method in
5367 file_magic*)
5368 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5369 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5370 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 case $MAGIC_CMD in
5376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5378 ?:/*)
5379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5382 ac_save_MAGIC_CMD="$MAGIC_CMD"
5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5384 ac_dummy="/usr/bin:$PATH"
5385 for ac_dir in $ac_dummy; do
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f $ac_dir/${ac_tool_prefix}file; then
5388 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5389 if test -n "$file_magic_test_file"; then
5390 case $deplibs_check_method in
5391 "file_magic "*)
5392 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5395 egrep "$file_magic_regex" > /dev/null; then
5397 else
5398 cat <<EOF 1>&2
5400 *** Warning: the command libtool uses to detect shared libraries,
5401 *** $file_magic_cmd, produces output that libtool cannot recognize.
5402 *** The result is that libtool may fail to recognize shared libraries
5403 *** as such. This will affect the creation of libtool libraries that
5404 *** depend on shared libraries, but programs linked with such libtool
5405 *** libraries will work regardless of this problem. Nevertheless, you
5406 *** may want to report the problem to your system manager and/or to
5407 *** bug-libtool@gnu.org
5410 fi ;;
5411 esac
5413 break
5415 done
5416 IFS="$ac_save_ifs"
5417 MAGIC_CMD="$ac_save_MAGIC_CMD"
5419 esac
5422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5423 if test -n "$MAGIC_CMD"; then
5424 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5425 echo "${ECHO_T}$MAGIC_CMD" >&6
5426 else
5427 echo "$as_me:$LINENO: result: no" >&5
5428 echo "${ECHO_T}no" >&6
5431 if test -z "$lt_cv_path_MAGIC_CMD"; then
5432 if test -n "$ac_tool_prefix"; then
5433 echo "$as_me:$LINENO: checking for file" >&5
5434 echo $ECHO_N "checking for file... $ECHO_C" >&6
5435 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 case $MAGIC_CMD in
5440 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5442 ?:/*)
5443 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5446 ac_save_MAGIC_CMD="$MAGIC_CMD"
5447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5448 ac_dummy="/usr/bin:$PATH"
5449 for ac_dir in $ac_dummy; do
5450 test -z "$ac_dir" && ac_dir=.
5451 if test -f $ac_dir/file; then
5452 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5453 if test -n "$file_magic_test_file"; then
5454 case $deplibs_check_method in
5455 "file_magic "*)
5456 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5459 egrep "$file_magic_regex" > /dev/null; then
5461 else
5462 cat <<EOF 1>&2
5464 *** Warning: the command libtool uses to detect shared libraries,
5465 *** $file_magic_cmd, produces output that libtool cannot recognize.
5466 *** The result is that libtool may fail to recognize shared libraries
5467 *** as such. This will affect the creation of libtool libraries that
5468 *** depend on shared libraries, but programs linked with such libtool
5469 *** libraries will work regardless of this problem. Nevertheless, you
5470 *** may want to report the problem to your system manager and/or to
5471 *** bug-libtool@gnu.org
5474 fi ;;
5475 esac
5477 break
5479 done
5480 IFS="$ac_save_ifs"
5481 MAGIC_CMD="$ac_save_MAGIC_CMD"
5483 esac
5486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5487 if test -n "$MAGIC_CMD"; then
5488 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5489 echo "${ECHO_T}$MAGIC_CMD" >&6
5490 else
5491 echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6
5495 else
5496 MAGIC_CMD=:
5502 esac
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_prog_RANLIB+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 if test -n "$RANLIB"; then
5513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5526 done
5527 done
5531 RANLIB=$ac_cv_prog_RANLIB
5532 if test -n "$RANLIB"; then
5533 echo "$as_me:$LINENO: result: $RANLIB" >&5
5534 echo "${ECHO_T}$RANLIB" >&6
5535 else
5536 echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6
5541 if test -z "$ac_cv_prog_RANLIB"; then
5542 ac_ct_RANLIB=$RANLIB
5543 # Extract the first word of "ranlib", so it can be a program name with args.
5544 set dummy ranlib; ac_word=$2
5545 echo "$as_me:$LINENO: checking for $ac_word" >&5
5546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5547 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 if test -n "$ac_ct_RANLIB"; then
5551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_ac_ct_RANLIB="ranlib"
5561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5564 done
5565 done
5567 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5571 if test -n "$ac_ct_RANLIB"; then
5572 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5573 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5574 else
5575 echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6
5579 RANLIB=$ac_ct_RANLIB
5580 else
5581 RANLIB="$ac_cv_prog_RANLIB"
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}strip; ac_word=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_prog_STRIP+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592 if test -n "$STRIP"; then
5593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5611 STRIP=$ac_cv_prog_STRIP
5612 if test -n "$STRIP"; then
5613 echo "$as_me:$LINENO: result: $STRIP" >&5
5614 echo "${ECHO_T}$STRIP" >&6
5615 else
5616 echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5621 if test -z "$ac_cv_prog_STRIP"; then
5622 ac_ct_STRIP=$STRIP
5623 # Extract the first word of "strip", so it can be a program name with args.
5624 set dummy strip; ac_word=$2
5625 echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 if test -n "$ac_ct_STRIP"; then
5631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_STRIP="strip"
5641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5647 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5651 if test -n "$ac_ct_STRIP"; then
5652 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5653 echo "${ECHO_T}$ac_ct_STRIP" >&6
5654 else
5655 echo "$as_me:$LINENO: result: no" >&5
5656 echo "${ECHO_T}no" >&6
5659 STRIP=$ac_ct_STRIP
5660 else
5661 STRIP="$ac_cv_prog_STRIP"
5665 # Check for any special flags to pass to ltconfig.
5666 libtool_flags="--cache-file=$cache_file"
5667 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5668 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5669 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5670 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5671 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5674 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5675 if test "${enable_libtool_lock+set}" = set; then
5676 enableval="$enable_libtool_lock"
5679 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5680 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5683 # Check whether --with-pic or --without-pic was given.
5684 if test "${with_pic+set}" = set; then
5685 withval="$with_pic"
5686 pic_mode="$withval"
5687 else
5688 pic_mode=default
5690 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5691 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5693 # Some flags need to be propagated to the compiler or linker for good
5694 # libtool support.
5695 case $host in
5696 *-*-irix6*)
5697 # Find out which ABI we are using.
5698 echo '#line 5698 "configure"' > conftest.$ac_ext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700 (eval $ac_compile) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; then
5704 if test "$lt_cv_prog_gnu_ld" = yes; then
5705 case `/usr/bin/file conftest.$ac_objext` in
5706 *32-bit*)
5707 LD="${LD-ld} -melf32bsmip"
5709 *N32*)
5710 LD="${LD-ld} -melf32bmipn32"
5712 *64-bit*)
5713 LD="${LD-ld} -melf64bmip"
5715 esac
5716 else
5717 case `/usr/bin/file conftest.$ac_objext` in
5718 *32-bit*)
5719 LD="${LD-ld} -32"
5721 *N32*)
5722 LD="${LD-ld} -n32"
5724 *64-bit*)
5725 LD="${LD-ld} -64"
5727 esac
5730 rm -rf conftest*
5733 ia64-*-hpux*)
5734 # Find out which ABI we are using.
5735 echo 'int i;' > conftest.$ac_ext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737 (eval $ac_compile) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; then
5741 case "`/usr/bin/file conftest.o`" in
5742 *ELF-32*)
5743 HPUX_IA64_MODE="32"
5745 *ELF-64*)
5746 HPUX_IA64_MODE="64"
5748 esac
5750 rm -rf conftest*
5753 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5754 # Find out which ABI we are using.
5755 echo 'int i;' > conftest.$ac_ext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; then
5761 case "`/usr/bin/file conftest.o`" in
5762 *32-bit*)
5763 case $host in
5764 x86_64-*linux*)
5765 LD="${LD-ld} -m elf_i386"
5767 ppc64-*linux*|powerpc64-*linux*)
5768 LD="${LD-ld} -m elf32ppclinux"
5770 s390x-*linux*)
5771 LD="${LD-ld} -m elf_s390"
5773 sparc64-*linux*)
5774 LD="${LD-ld} -m elf32_sparc"
5776 esac
5778 *64-bit*)
5779 case $host in
5780 x86_64-*linux*)
5781 LD="${LD-ld} -m elf_x86_64"
5783 ppc*-*linux*|powerpc*-*linux*)
5784 LD="${LD-ld} -m elf64ppc"
5786 s390*-*linux*)
5787 LD="${LD-ld} -m elf64_s390"
5789 sparc*-*linux*)
5790 LD="${LD-ld} -m elf64_sparc"
5792 esac
5794 esac
5796 rm -rf conftest*
5799 *-*-sco3.2v5*)
5800 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5801 SAVE_CFLAGS="$CFLAGS"
5802 CFLAGS="$CFLAGS -belf"
5803 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5804 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5805 if test "${lt_cv_cc_needs_belf+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5810 ac_ext=c
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5816 if test x$gcc_no_link = xyes; then
5817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5819 { (exit 1); exit 1; }; }
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5829 main ()
5833 return 0;
5835 _ACEOF
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 (eval $ac_try) 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest$ac_exeext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 (eval $ac_try) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 lt_cv_cc_needs_belf=yes
5859 else
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 lt_cv_cc_needs_belf=no
5865 rm -f conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5867 ac_ext=c
5868 ac_cpp='$CPP $CPPFLAGS'
5869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5875 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5876 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5877 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5878 CFLAGS="$SAVE_CFLAGS"
5883 esac
5886 # Save cache, so that ltconfig can load it
5887 cat >confcache <<\_ACEOF
5888 # This file is a shell script that caches the results of configure
5889 # tests run on this system so they can be shared between configure
5890 # scripts and configure runs, see configure's option --config-cache.
5891 # It is not useful on other systems. If it contains results you don't
5892 # want to keep, you may remove or edit it.
5894 # config.status only pays attention to the cache file if you give it
5895 # the --recheck option to rerun configure.
5897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5899 # following values.
5901 _ACEOF
5903 # The following way of writing the cache mishandles newlines in values,
5904 # but we know of no workaround that is simple, portable, and efficient.
5905 # So, don't put newlines in cache variables' values.
5906 # Ultrix sh set writes to stderr and can't be redirected directly,
5907 # and sets the high bit in the cache file unless we assign to the vars.
5909 (set) 2>&1 |
5910 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5911 *ac_space=\ *)
5912 # `set' does not quote correctly, so add quotes (double-quote
5913 # substitution turns \\\\ into \\, and sed turns \\ into \).
5914 sed -n \
5915 "s/'/'\\\\''/g;
5916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5919 # `set' quotes correctly as required by POSIX, so do not add quotes.
5920 sed -n \
5921 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5923 esac;
5925 sed '
5926 t clear
5927 : clear
5928 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5929 t end
5930 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5931 : end' >>confcache
5932 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5933 if test -w $cache_file; then
5934 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5935 cat confcache >$cache_file
5936 else
5937 echo "not updating unwritable cache $cache_file"
5940 rm -f confcache
5942 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5943 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5944 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5945 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5946 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5947 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5948 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5949 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5950 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5951 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5952 echo "$as_me: error: libtool configure failed" >&2;}
5953 { (exit 1); exit 1; }; }
5955 # Reload cache, that may have been modified by ltconfig
5956 if test -r "$cache_file"; then
5957 # Some versions of bash will fail to source /dev/null (special
5958 # files actually), so we avoid doing that.
5959 if test -f "$cache_file"; then
5960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5961 echo "$as_me: loading cache $cache_file" >&6;}
5962 case $cache_file in
5963 [\\/]* | ?:[\\/]* ) . $cache_file;;
5964 *) . ./$cache_file;;
5965 esac
5967 else
5968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5969 echo "$as_me: creating cache $cache_file" >&6;}
5970 >$cache_file
5974 # This can be used to rebuild libtool when needed
5975 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5977 # Always use our own libtool.
5978 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5980 # Redirect the config.log output again, so that the ltconfig log is not
5981 # clobbered by the next message.
5982 exec 5>>./config.log
5984 ac_ext=cc
5985 ac_cpp='$CXXCPP $CPPFLAGS'
5986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5989 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5990 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5991 if test -z "$CXXCPP"; then
5992 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 # Double quotes because CXXCPP needs to be expanded
5996 for CXXCPP in "$CXX -E" "/lib/cpp"
5998 ac_preproc_ok=false
5999 for ac_cxx_preproc_warn_flag in '' yes
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #ifdef __STDC__
6014 # include <limits.h>
6015 #else
6016 # include <assert.h>
6017 #endif
6018 Syntax error
6019 _ACEOF
6020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } >/dev/null; then
6028 if test -s conftest.err; then
6029 ac_cpp_err=$ac_cxx_preproc_warn_flag
6030 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6031 else
6032 ac_cpp_err=
6034 else
6035 ac_cpp_err=yes
6037 if test -z "$ac_cpp_err"; then
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 # Broken: fails on valid input.
6044 continue
6046 rm -f conftest.err conftest.$ac_ext
6048 # OK, works on sane cases. Now check whether non-existent headers
6049 # can be detected and how.
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <ac_nonexistent.h>
6057 _ACEOF
6058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } >/dev/null; then
6066 if test -s conftest.err; then
6067 ac_cpp_err=$ac_cxx_preproc_warn_flag
6068 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6069 else
6070 ac_cpp_err=
6072 else
6073 ac_cpp_err=yes
6075 if test -z "$ac_cpp_err"; then
6076 # Broken: success on invalid input.
6077 continue
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6082 # Passes both tests.
6083 ac_preproc_ok=:
6084 break
6086 rm -f conftest.err conftest.$ac_ext
6088 done
6089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6090 rm -f conftest.err conftest.$ac_ext
6091 if $ac_preproc_ok; then
6092 break
6095 done
6096 ac_cv_prog_CXXCPP=$CXXCPP
6099 CXXCPP=$ac_cv_prog_CXXCPP
6100 else
6101 ac_cv_prog_CXXCPP=$CXXCPP
6103 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6104 echo "${ECHO_T}$CXXCPP" >&6
6105 ac_preproc_ok=false
6106 for ac_cxx_preproc_warn_flag in '' yes
6108 # Use a header file that comes with gcc, so configuring glibc
6109 # with a fresh cross-compiler works.
6110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111 # <limits.h> exists even on freestanding compilers.
6112 # On the NeXT, cc -E runs the code through the compiler's parser,
6113 # not just through cpp. "Syntax error" is here to catch this case.
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h. */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 #ifdef __STDC__
6121 # include <limits.h>
6122 #else
6123 # include <assert.h>
6124 #endif
6125 Syntax error
6126 _ACEOF
6127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } >/dev/null; then
6135 if test -s conftest.err; then
6136 ac_cpp_err=$ac_cxx_preproc_warn_flag
6137 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6138 else
6139 ac_cpp_err=
6141 else
6142 ac_cpp_err=yes
6144 if test -z "$ac_cpp_err"; then
6146 else
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 # Broken: fails on valid input.
6151 continue
6153 rm -f conftest.err conftest.$ac_ext
6155 # OK, works on sane cases. Now check whether non-existent headers
6156 # can be detected and how.
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <ac_nonexistent.h>
6164 _ACEOF
6165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } >/dev/null; then
6173 if test -s conftest.err; then
6174 ac_cpp_err=$ac_cxx_preproc_warn_flag
6175 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6176 else
6177 ac_cpp_err=
6179 else
6180 ac_cpp_err=yes
6182 if test -z "$ac_cpp_err"; then
6183 # Broken: success on invalid input.
6184 continue
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 # Passes both tests.
6190 ac_preproc_ok=:
6191 break
6193 rm -f conftest.err conftest.$ac_ext
6195 done
6196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6197 rm -f conftest.err conftest.$ac_ext
6198 if $ac_preproc_ok; then
6200 else
6201 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6202 See \`config.log' for more details." >&5
6203 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6204 See \`config.log' for more details." >&2;}
6205 { (exit 1); exit 1; }; }
6208 ac_ext=c
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6217 lt_save_CC="$CC"
6218 lt_save_CFLAGS="$CFLAGS"
6219 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6220 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6221 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6222 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6223 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6224 deplibs_check_method="$deplibs_check_method" \
6225 file_magic_cmd="$file_magic_cmd" \
6226 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6227 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6228 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6229 echo "$as_me: error: libtool tag configuration failed" >&2;}
6230 { (exit 1); exit 1; }; }
6231 CC="$lt_save_CC"
6232 CFLAGS="$lt_save_CFLAGS"
6234 # Redirect the config.log output again, so that the ltconfig log is not
6235 # clobbered by the next message.
6236 exec 5>>./config.log
6244 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6246 # Extract the first word of "$ac_prog", so it can be a program name with args.
6247 set dummy $ac_prog; ac_word=$2
6248 echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250 if test "${ac_cv_prog_GCJ+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 if test -n "$GCJ"; then
6254 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_GCJ="$ac_prog"
6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6267 done
6268 done
6272 GCJ=$ac_cv_prog_GCJ
6273 if test -n "$GCJ"; then
6274 echo "$as_me:$LINENO: result: $GCJ" >&5
6275 echo "${ECHO_T}$GCJ" >&6
6276 else
6277 echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6
6281 test -n "$GCJ" && break
6282 done
6283 test -n "$GCJ" || GCJ="gcj"
6285 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6286 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6287 { (exit 1); exit 1; }; }
6288 if test "x${GCJFLAGS-unset}" = xunset; then
6289 GCJFLAGS="-g -O2"
6293 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6295 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6296 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6297 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6301 # We make a subdir and do the tests there. Otherwise we can end up
6302 # making bogus files that we don't know about and never remove. For
6303 # instance it was reported that on HP-UX the gcc test will end up
6304 # making a dummy file named `D' -- because `-MD' means `put the output
6305 # in D'.
6306 mkdir conftest.dir
6307 # Copy depcomp to subdir because otherwise we won't find it if we're
6308 # using a relative directory.
6309 cp "$am_depcomp" conftest.dir
6310 cd conftest.dir
6311 # We will build objects and dependencies in a subdirectory because
6312 # it helps to detect inapplicable dependency modes. For instance
6313 # both Tru64's cc and ICC support -MD to output dependencies as a
6314 # side effect of compilation, but ICC will put the dependencies in
6315 # the current directory while Tru64 will put them in the object
6316 # directory.
6317 mkdir sub
6319 am_cv_GCJ_dependencies_compiler_type=none
6320 if test "$am_compiler_list" = ""; then
6321 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6323 for depmode in $am_compiler_list; do
6324 # Setup a source with many dependencies, because some compilers
6325 # like to wrap large dependency lists on column 80 (with \), and
6326 # we should not choose a depcomp mode which is confused by this.
6328 # We need to recreate these files for each test, as the compiler may
6329 # overwrite some of them when testing with obscure command lines.
6330 # This happens at least with the AIX C compiler.
6331 : > sub/conftest.c
6332 for i in 1 2 3 4 5 6; do
6333 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6334 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6335 # Solaris 8's {/usr,}/bin/sh.
6336 touch sub/conftst$i.h
6337 done
6338 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6340 case $depmode in
6341 nosideeffect)
6342 # after this tag, mechanisms are not by side-effect, so they'll
6343 # only be used when explicitly requested
6344 if test "x$enable_dependency_tracking" = xyes; then
6345 continue
6346 else
6347 break
6350 none) break ;;
6351 esac
6352 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6353 # mode. It turns out that the SunPro C++ compiler does not properly
6354 # handle `-M -o', and we need to detect this.
6355 if depmode=$depmode \
6356 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6357 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6358 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6359 >/dev/null 2>conftest.err &&
6360 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6361 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6362 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6363 # icc doesn't choke on unknown options, it will just issue warnings
6364 # or remarks (even with -Werror). So we grep stderr for any message
6365 # that says an option was ignored or not supported.
6366 # When given -MP, icc 7.0 and 7.1 complain thusly:
6367 # icc: Command line warning: ignoring option '-M'; no argument required
6368 # The diagnosis changed in icc 8.0:
6369 # icc: Command line remark: option '-MP' not supported
6370 if (grep 'ignoring option' conftest.err ||
6371 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6372 am_cv_GCJ_dependencies_compiler_type=$depmode
6373 break
6376 done
6378 cd ..
6379 rm -rf conftest.dir
6380 else
6381 am_cv_GCJ_dependencies_compiler_type=none
6385 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6386 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6387 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6392 test "x$enable_dependency_tracking" != xno \
6393 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6394 am__fastdepGCJ_TRUE=
6395 am__fastdepGCJ_FALSE='#'
6396 else
6397 am__fastdepGCJ_TRUE='#'
6398 am__fastdepGCJ_FALSE=
6404 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6405 lt_save_CC="$CC"
6406 lt_save_CFLAGS="$CFLAGS"
6407 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6408 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6409 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6410 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6411 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6412 deplibs_check_method="$deplibs_check_method" \
6413 file_magic_cmd="$file_magic_cmd" \
6414 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6415 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6416 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6417 echo "$as_me: error: libtool tag configuration failed" >&2;}
6418 { (exit 1); exit 1; }; }
6419 CC="$lt_save_CC"
6420 CFLAGS="$lt_save_CFLAGS"
6422 # Redirect the config.log output again, so that the ltconfig log is not
6423 # clobbered by the next message.
6424 exec 5>>./config.log
6428 if test "x$CC" != xcc; then
6429 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6430 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6431 else
6432 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6433 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6435 set dummy $CC; ac_cc=`echo $2 |
6436 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6437 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6448 main ()
6452 return 0;
6454 _ACEOF
6455 # Make sure it works both with $CC and with simple cc.
6456 # We do the test twice because some compilers refuse to overwrite an
6457 # existing .o file with -o, though they will create one.
6458 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6459 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); };
6469 then
6470 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6471 if test "x$CC" != xcc; then
6472 # Test first that cc exists at all.
6473 if { ac_try='cc -c conftest.$ac_ext >&5'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6480 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); };
6490 then
6491 # cc works too.
6493 else
6494 # cc exists but doesn't like -o.
6495 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6499 else
6500 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6502 rm -f conftest*
6505 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6506 echo "$as_me:$LINENO: result: yes" >&5
6507 echo "${ECHO_T}yes" >&6
6508 else
6509 echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6
6512 cat >>confdefs.h <<\_ACEOF
6513 #define NO_MINUS_C_MINUS_O 1
6514 _ACEOF
6518 # FIXME: we rely on the cache variable name because
6519 # there is no other way.
6520 set dummy $CC
6521 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6522 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6523 # Losing compiler, so override with the script.
6524 # FIXME: It is wrong to rewrite CC.
6525 # But if we don't then we get into trouble of one sort or another.
6526 # A longer-term fix would be to have automake use am__CC in this case,
6527 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6528 CC="$am_aux_dir/compile $CC"
6534 subdirs="$subdirs classpath libltdl"
6537 # The -no-testsuite modules omit the test subdir.
6540 if test -d $srcdir/testsuite; then
6541 TESTSUBDIR_TRUE=
6542 TESTSUBDIR_FALSE='#'
6543 else
6544 TESTSUBDIR_TRUE='#'
6545 TESTSUBDIR_FALSE=
6549 # Should the runtime set system properties by examining the
6550 # environment variable GCJ_PROPERTIES?
6551 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6552 if test "${enable_getenv_properties+set}" = set; then
6553 enableval="$enable_getenv_properties"
6557 # Whether GCJ_PROPERTIES is used depends on the target.
6558 if test -z "$enable_getenv_properties"; then
6559 enable_getenv_properties=${enable_getenv_properties_default-yes}
6561 if test "$enable_getenv_properties" = no; then
6563 cat >>confdefs.h <<\_ACEOF
6564 #define DISABLE_GETENV_PROPERTIES 1
6565 _ACEOF
6569 # Whether we should use arguments to main()
6570 if test -z "$enable_main_args"; then
6571 enable_main_args=${enable_main_args_default-yes}
6573 if test "$enable_main_args" = no; then
6575 cat >>confdefs.h <<\_ACEOF
6576 #define DISABLE_MAIN_ARGS 1
6577 _ACEOF
6582 # Should we use hashtable-based synchronization?
6583 # Currently works only for Linux X86/ia64
6584 # Typically faster and more space-efficient
6585 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6586 if test "${enable_hash_synchronization+set}" = set; then
6587 enableval="$enable_hash_synchronization"
6591 if test -z "$enable_hash_synchronization"; then
6592 enable_hash_synchronization=$enable_hash_synchronization_default
6596 # Check whether --with-java-home or --without-java-home was given.
6597 if test "${with_java_home+set}" = set; then
6598 withval="$with_java_home"
6599 JAVA_HOME="${withval}"
6600 else
6601 JAVA_HOME=""
6605 if test ! -z "$JAVA_HOME"; then
6606 JAVA_HOME_SET_TRUE=
6607 JAVA_HOME_SET_FALSE='#'
6608 else
6609 JAVA_HOME_SET_TRUE='#'
6610 JAVA_HOME_SET_FALSE=
6615 # What is the native OS API for MinGW?
6617 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6618 if test "${with_win32_nlsapi+set}" = set; then
6619 withval="$with_win32_nlsapi"
6620 case "${withval}" in
6621 ansi) with_win32_nlsapi=ansi ;;
6622 unicows) with_win32_nlsapi=unicows ;;
6623 unicode) with_win32_nlsapi=unicode ;;
6624 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6625 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6626 { (exit 1); exit 1; }; } ;;
6627 esac
6628 else
6629 with_win32_nlsapi=ansi
6632 case "${with_win32_nlsapi}" in
6633 unicows | unicode)
6635 cat >>confdefs.h <<\_ACEOF
6636 #define MINGW_LIBGCJ_UNICODE 1
6637 _ACEOF
6640 esac
6642 # configure.host sets slow_pthread_self if the synchronization code should
6643 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6644 if test "${slow_pthread_self}" = "yes"; then
6646 cat >>confdefs.h <<\_ACEOF
6647 #define SLOW_PTHREAD_SELF 1
6648 _ACEOF
6652 # Check for gc debugging. This option is handled both here and in the GC.
6653 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6654 if test "${enable_gc_debug+set}" = set; then
6655 enableval="$enable_gc_debug"
6656 if test "$enable_gc_debug" = "yes"; then
6658 cat >>confdefs.h <<\_ACEOF
6659 #define LIBGCJ_GC_DEBUG 1
6660 _ACEOF
6665 # See if the user has the interpreter included.
6666 # Check whether --enable-interpreter or --disable-interpreter was given.
6667 if test "${enable_interpreter+set}" = set; then
6668 enableval="$enable_interpreter"
6669 if test "$enable_interpreter" = yes; then
6670 # This can also be set in configure.host.
6671 libgcj_interpreter=yes
6672 elif test "$enable_interpreter" = no; then
6673 libgcj_interpreter=no
6677 if test "$libgcj_interpreter" = yes; then
6679 cat >>confdefs.h <<\_ACEOF
6680 #define INTERPRETER 1
6681 _ACEOF
6684 INTERPRETER="$libgcj_interpreter"
6687 echo "$as_me:$LINENO: checking for exception model to use" >&5
6688 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6689 ac_ext=cc
6690 ac_cpp='$CXXCPP $CPPFLAGS'
6691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6695 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6696 if test "${enable_sjlj_exceptions+set}" = set; then
6697 enableval="$enable_sjlj_exceptions"
6699 else
6700 cat > conftest.$ac_ext << EOF
6701 #line 6701 "configure"
6702 struct S { ~S(); };
6703 void bar();
6704 void foo()
6706 S s;
6707 bar();
6710 old_CXXFLAGS="$CXXFLAGS"
6711 CXXFLAGS=-S
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; then
6717 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6718 enable_sjlj_exceptions=yes
6719 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6720 enable_sjlj_exceptions=no
6723 CXXFLAGS="$old_CXXFLAGS"
6724 rm -f conftest*
6726 if test x$enable_sjlj_exceptions = xyes; then
6728 cat >>confdefs.h <<\_ACEOF
6729 #define SJLJ_EXCEPTIONS 1
6730 _ACEOF
6732 ac_exception_model_name=sjlj
6733 elif test x$enable_sjlj_exceptions = xno; then
6734 ac_exception_model_name="call frame"
6735 else
6736 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6737 echo "$as_me: error: unable to detect exception model" >&2;}
6738 { (exit 1); exit 1; }; }
6740 ac_ext=c
6741 ac_cpp='$CPP $CPPFLAGS'
6742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6747 echo "${ECHO_T}$ac_exception_model_name" >&6
6749 # If we are non using SJLJ exceptions, and this host does not have support
6750 # for unwinding from a signal handler, enable checked dereferences and divides.
6751 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6752 CHECKREFSPEC=-fcheck-references
6753 DIVIDESPEC=-fuse-divide-subroutine
6754 EXCEPTIONSPEC=
6757 # See if the user wants to disable java.net. This is the mildly
6758 # ugly way that we admit that target-side configuration sucks.
6759 # Check whether --enable-java-net or --disable-java-net was given.
6760 if test "${enable_java_net+set}" = set; then
6761 enableval="$enable_java_net"
6765 # Whether java.net is built by default can depend on the target.
6766 if test -z "$enable_java_net"; then
6767 enable_java_net=${enable_java_net_default-yes}
6769 if test "$enable_java_net" = no; then
6771 cat >>confdefs.h <<\_ACEOF
6772 #define DISABLE_JAVA_NET 1
6773 _ACEOF
6777 # See if the user wants to configure without libffi. Some
6778 # architectures don't support it, and default values are set in
6779 # configure.host.
6781 # Check whether --with-libffi or --without-libffi was given.
6782 if test "${with_libffi+set}" = set; then
6783 withval="$with_libffi"
6785 else
6786 with_libffi=${with_libffi_default-yes}
6789 LIBFFI=
6790 LIBFFIINCS=
6791 if test "$with_libffi" != no; then
6793 cat >>confdefs.h <<\_ACEOF
6794 #define USE_LIBFFI 1
6795 _ACEOF
6797 LIBFFI=../libffi/libffi_convenience.la
6798 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6803 # See if the user wants to disable JVMPI support.
6804 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6805 if test "${enable_jvmpi+set}" = set; then
6806 enableval="$enable_jvmpi"
6810 if test "$enable_jvmpi" != no; then
6812 cat >>confdefs.h <<\_ACEOF
6813 #define ENABLE_JVMPI 1
6814 _ACEOF
6818 # If the target is an eCos system, use the appropriate eCos
6819 # I/O routines.
6820 # FIXME: this should not be a local option but a global target
6821 # system; at present there is no eCos target.
6822 TARGET_ECOS=${PROCESS-"no"}
6824 # Check whether --with-ecos or --without-ecos was given.
6825 if test "${with_ecos+set}" = set; then
6826 withval="$with_ecos"
6827 TARGET_ECOS="$with_ecos"
6831 PLATFORM_INNER_NAT_HDRS=
6832 case "$TARGET_ECOS" in
6833 no) case "$host" in
6834 *mingw*)
6835 PLATFORM=Win32
6836 PLATFORMNET=Win32
6837 PLATFORMH=win32.h
6839 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6840 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6841 LD_PROG=`$CC --print-prog-name=ld`
6842 LD_VERSION=`$LD_PROG --version`
6843 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6844 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6845 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6846 LD_OK="ok"
6847 else
6848 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6849 LD_OK="ok"
6852 if test "x$LD_OK" != x; then
6853 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6854 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6855 else
6856 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6857 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6858 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6859 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6861 cat >>confdefs.h <<\_ACEOF
6862 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6863 _ACEOF
6868 PLATFORM=Posix
6869 PLATFORMNET=Posix
6870 PLATFORMH=posix.h
6871 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6873 esac
6876 PLATFORM=Ecos
6877 PLATFORMNET=NoNet
6879 cat >>confdefs.h <<\_ACEOF
6880 #define ECOS 1
6881 _ACEOF
6883 PLATFORMH=posix.h
6885 esac
6887 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6890 ac_ext=c
6891 ac_cpp='$CPP $CPPFLAGS'
6892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6895 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6897 # On Suns, sometimes $CPP names a directory.
6898 if test -n "$CPP" && test -d "$CPP"; then
6899 CPP=
6901 if test -z "$CPP"; then
6902 if test "${ac_cv_prog_CPP+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905 # Double quotes because CPP needs to be expanded
6906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6908 ac_preproc_ok=false
6909 for ac_c_preproc_warn_flag in '' yes
6911 # Use a header file that comes with gcc, so configuring glibc
6912 # with a fresh cross-compiler works.
6913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6914 # <limits.h> exists even on freestanding compilers.
6915 # On the NeXT, cc -E runs the code through the compiler's parser,
6916 # not just through cpp. "Syntax error" is here to catch this case.
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 #ifdef __STDC__
6924 # include <limits.h>
6925 #else
6926 # include <assert.h>
6927 #endif
6928 Syntax error
6929 _ACEOF
6930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev/null; then
6938 if test -s conftest.err; then
6939 ac_cpp_err=$ac_c_preproc_warn_flag
6940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6941 else
6942 ac_cpp_err=
6944 else
6945 ac_cpp_err=yes
6947 if test -z "$ac_cpp_err"; then
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 # Broken: fails on valid input.
6954 continue
6956 rm -f conftest.err conftest.$ac_ext
6958 # OK, works on sane cases. Now check whether non-existent headers
6959 # can be detected and how.
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #include <ac_nonexistent.h>
6967 _ACEOF
6968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } >/dev/null; then
6976 if test -s conftest.err; then
6977 ac_cpp_err=$ac_c_preproc_warn_flag
6978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6979 else
6980 ac_cpp_err=
6982 else
6983 ac_cpp_err=yes
6985 if test -z "$ac_cpp_err"; then
6986 # Broken: success on invalid input.
6987 continue
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 # Passes both tests.
6993 ac_preproc_ok=:
6994 break
6996 rm -f conftest.err conftest.$ac_ext
6998 done
6999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7000 rm -f conftest.err conftest.$ac_ext
7001 if $ac_preproc_ok; then
7002 break
7005 done
7006 ac_cv_prog_CPP=$CPP
7009 CPP=$ac_cv_prog_CPP
7010 else
7011 ac_cv_prog_CPP=$CPP
7013 echo "$as_me:$LINENO: result: $CPP" >&5
7014 echo "${ECHO_T}$CPP" >&6
7015 ac_preproc_ok=false
7016 for ac_c_preproc_warn_flag in '' yes
7018 # Use a header file that comes with gcc, so configuring glibc
7019 # with a fresh cross-compiler works.
7020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7021 # <limits.h> exists even on freestanding compilers.
7022 # On the NeXT, cc -E runs the code through the compiler's parser,
7023 # not just through cpp. "Syntax error" is here to catch this case.
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #ifdef __STDC__
7031 # include <limits.h>
7032 #else
7033 # include <assert.h>
7034 #endif
7035 Syntax error
7036 _ACEOF
7037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } >/dev/null; then
7045 if test -s conftest.err; then
7046 ac_cpp_err=$ac_c_preproc_warn_flag
7047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7048 else
7049 ac_cpp_err=
7051 else
7052 ac_cpp_err=yes
7054 if test -z "$ac_cpp_err"; then
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 # Broken: fails on valid input.
7061 continue
7063 rm -f conftest.err conftest.$ac_ext
7065 # OK, works on sane cases. Now check whether non-existent headers
7066 # can be detected and how.
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 #include <ac_nonexistent.h>
7074 _ACEOF
7075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7077 ac_status=$?
7078 grep -v '^ *+' conftest.er1 >conftest.err
7079 rm -f conftest.er1
7080 cat conftest.err >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } >/dev/null; then
7083 if test -s conftest.err; then
7084 ac_cpp_err=$ac_c_preproc_warn_flag
7085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7086 else
7087 ac_cpp_err=
7089 else
7090 ac_cpp_err=yes
7092 if test -z "$ac_cpp_err"; then
7093 # Broken: success on invalid input.
7094 continue
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 # Passes both tests.
7100 ac_preproc_ok=:
7101 break
7103 rm -f conftest.err conftest.$ac_ext
7105 done
7106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7107 rm -f conftest.err conftest.$ac_ext
7108 if $ac_preproc_ok; then
7110 else
7111 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7112 See \`config.log' for more details." >&5
7113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7114 See \`config.log' for more details." >&2;}
7115 { (exit 1); exit 1; }; }
7118 ac_ext=c
7119 ac_cpp='$CPP $CPPFLAGS'
7120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125 echo "$as_me:$LINENO: checking for egrep" >&5
7126 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7127 if test "${ac_cv_prog_egrep+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7131 then ac_cv_prog_egrep='grep -E'
7132 else ac_cv_prog_egrep='egrep'
7135 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7136 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7137 EGREP=$ac_cv_prog_egrep
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 #include <stdint.h>
7148 _ACEOF
7149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150 $EGREP "uint32_t" >/dev/null 2>&1; then
7152 cat >>confdefs.h <<\_ACEOF
7153 #define HAVE_INT32_DEFINED 1
7154 _ACEOF
7157 rm -f conftest*
7159 cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 #include <inttypes.h>
7167 _ACEOF
7168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169 $EGREP "uint32_t" >/dev/null 2>&1; then
7171 cat >>confdefs.h <<\_ACEOF
7172 #define HAVE_INT32_DEFINED 1
7173 _ACEOF
7176 rm -f conftest*
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h. */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 #include <sys/types.h>
7186 _ACEOF
7187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7188 $EGREP "u_int32_t" >/dev/null 2>&1; then
7190 cat >>confdefs.h <<\_ACEOF
7191 #define HAVE_BSD_INT32_DEFINED 1
7192 _ACEOF
7195 rm -f conftest*
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 #include <sys/config.h>
7205 _ACEOF
7206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7207 $EGREP "u_int32_t" >/dev/null 2>&1; then
7209 cat >>confdefs.h <<\_ACEOF
7210 #define HAVE_BSD_INT32_DEFINED 1
7211 _ACEOF
7214 rm -f conftest*
7219 if test "$PLATFORM" = Win32; then
7220 USING_WIN32_PLATFORM_TRUE=
7221 USING_WIN32_PLATFORM_FALSE='#'
7222 else
7223 USING_WIN32_PLATFORM_TRUE='#'
7224 USING_WIN32_PLATFORM_FALSE=
7229 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7230 USING_POSIX_PLATFORM_TRUE=
7231 USING_POSIX_PLATFORM_FALSE='#'
7232 else
7233 USING_POSIX_PLATFORM_TRUE='#'
7234 USING_POSIX_PLATFORM_FALSE=
7238 case "$host" in
7239 *-darwin*) DARWIN_CRT=true ;;
7240 *) DARWIN_CRT=false ;;
7241 esac
7244 if $DARWIN_CRT; then
7245 USING_DARWIN_CRT_TRUE=
7246 USING_DARWIN_CRT_FALSE='#'
7247 else
7248 USING_DARWIN_CRT_TRUE='#'
7249 USING_DARWIN_CRT_FALSE=
7253 # These may not be defined in a non-ANS conformant embedded system.
7254 # FIXME: Should these case a runtime exception in that case?
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 #include <time.h>
7263 _ACEOF
7264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7265 $EGREP "mktime" >/dev/null 2>&1; then
7267 cat >>confdefs.h <<\_ACEOF
7268 #define HAVE_MKTIME 1
7269 _ACEOF
7272 rm -f conftest*
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 #include <time.h>
7282 _ACEOF
7283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284 $EGREP "localtime" >/dev/null 2>&1; then
7286 cat >>confdefs.h <<\_ACEOF
7287 #define HAVE_LOCALTIME 1
7288 _ACEOF
7291 rm -f conftest*
7294 # Create the subdirectory for natFile.cc, or the attempt
7295 # to create the link will fail.
7296 test -d java || mkdir java
7297 test -d java/io || mkdir java/io
7298 test -d gnu || mkdir gnu
7299 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7302 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7303 test -d java/lang || mkdir java/lang
7304 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7306 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7309 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7310 test -d java/net || mkdir java/net
7311 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7313 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7316 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7317 test -d gnu/java || mkdir gnu/java
7318 test -d gnu/java/net || mkdir gnu/java/net
7319 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7321 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7324 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7325 test -d gnu/java/nio || mkdir gnu/java/nio
7326 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7328 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7330 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7331 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7334 case "${host}" in
7335 *mingw*)
7336 SYSTEMSPEC="-lgdi32 -lws2_32"
7337 if test "${with_win32_nlsapi}" = "unicows"; then
7338 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7342 SYSTEMSPEC=
7344 esac
7347 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7351 # Check whether --with-system-zlib or --without-system-zlib was given.
7352 if test "${with_system_zlib+set}" = set; then
7353 withval="$with_system_zlib"
7356 ZLIBSPEC=
7358 ZLIBTESTSPEC=
7361 echo "$as_me:$LINENO: checking for X" >&5
7362 echo $ECHO_N "checking for X... $ECHO_C" >&6
7365 # Check whether --with-x or --without-x was given.
7366 if test "${with_x+set}" = set; then
7367 withval="$with_x"
7370 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7371 if test "x$with_x" = xno; then
7372 # The user explicitly disabled X.
7373 have_x=disabled
7374 else
7375 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7376 # Both variables are already set.
7377 have_x=yes
7378 else
7379 if test "${ac_cv_have_x+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 # One or both of the vars are not set, and there is no cached value.
7383 ac_x_includes=no ac_x_libraries=no
7384 rm -fr conftest.dir
7385 if mkdir conftest.dir; then
7386 cd conftest.dir
7387 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7388 cat >Imakefile <<'_ACEOF'
7389 acfindx:
7390 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7391 _ACEOF
7392 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7393 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7394 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7395 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7396 for ac_extension in a so sl; do
7397 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7398 test -f $ac_im_libdir/libX11.$ac_extension; then
7399 ac_im_usrlibdir=$ac_im_libdir; break
7401 done
7402 # Screen out bogus values from the imake configuration. They are
7403 # bogus both because they are the default anyway, and because
7404 # using them would break gcc on systems where it needs fixed includes.
7405 case $ac_im_incroot in
7406 /usr/include) ;;
7407 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7408 esac
7409 case $ac_im_usrlibdir in
7410 /usr/lib | /lib) ;;
7411 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7412 esac
7414 cd ..
7415 rm -fr conftest.dir
7418 # Standard set of common directories for X headers.
7419 # Check X11 before X11Rn because it is often a symlink to the current release.
7420 ac_x_header_dirs='
7421 /usr/X11/include
7422 /usr/X11R6/include
7423 /usr/X11R5/include
7424 /usr/X11R4/include
7426 /usr/include/X11
7427 /usr/include/X11R6
7428 /usr/include/X11R5
7429 /usr/include/X11R4
7431 /usr/local/X11/include
7432 /usr/local/X11R6/include
7433 /usr/local/X11R5/include
7434 /usr/local/X11R4/include
7436 /usr/local/include/X11
7437 /usr/local/include/X11R6
7438 /usr/local/include/X11R5
7439 /usr/local/include/X11R4
7441 /usr/X386/include
7442 /usr/x386/include
7443 /usr/XFree86/include/X11
7445 /usr/include
7446 /usr/local/include
7447 /usr/unsupported/include
7448 /usr/athena/include
7449 /usr/local/x11r5/include
7450 /usr/lpp/Xamples/include
7452 /usr/openwin/include
7453 /usr/openwin/share/include'
7455 if test "$ac_x_includes" = no; then
7456 # Guess where to find include files, by looking for Xlib.h.
7457 # First, try using that file with no special directory specified.
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 #include <X11/Xlib.h>
7465 _ACEOF
7466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7468 ac_status=$?
7469 grep -v '^ *+' conftest.er1 >conftest.err
7470 rm -f conftest.er1
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } >/dev/null; then
7474 if test -s conftest.err; then
7475 ac_cpp_err=$ac_c_preproc_warn_flag
7476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7477 else
7478 ac_cpp_err=
7480 else
7481 ac_cpp_err=yes
7483 if test -z "$ac_cpp_err"; then
7484 # We can compile using X headers with no special include directory.
7485 ac_x_includes=
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 for ac_dir in $ac_x_header_dirs; do
7491 if test -r "$ac_dir/X11/Xlib.h"; then
7492 ac_x_includes=$ac_dir
7493 break
7495 done
7497 rm -f conftest.err conftest.$ac_ext
7498 fi # $ac_x_includes = no
7500 if test "$ac_x_libraries" = no; then
7501 # Check for the libraries.
7502 # See if we find them without any special options.
7503 # Don't add to $LIBS permanently.
7504 ac_save_LIBS=$LIBS
7505 LIBS="-lXt $LIBS"
7506 if test x$gcc_no_link = xyes; then
7507 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7509 { (exit 1); exit 1; }; }
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 #include <X11/Xlib.h>
7519 main ()
7521 XrmInitialize ()
7523 return 0;
7525 _ACEOF
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528 (eval $ac_link) 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -z "$ac_c_werror_flag"
7536 || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 (eval $ac_try) 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 LIBS=$ac_save_LIBS
7549 # We can link X programs with no special library path.
7550 ac_x_libraries=
7551 else
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7555 LIBS=$ac_save_LIBS
7556 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7558 # Don't even attempt the hair of trying to link an X program!
7559 for ac_extension in a so sl; do
7560 if test -r $ac_dir/libXt.$ac_extension; then
7561 ac_x_libraries=$ac_dir
7562 break 2
7564 done
7565 done
7567 rm -f conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7569 fi # $ac_x_libraries = no
7571 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7572 # Didn't find X anywhere. Cache the known absence of X.
7573 ac_cv_have_x="have_x=no"
7574 else
7575 # Record where we found X for the cache.
7576 ac_cv_have_x="have_x=yes \
7577 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7582 eval "$ac_cv_have_x"
7583 fi # $with_x != no
7585 if test "$have_x" != yes; then
7586 echo "$as_me:$LINENO: result: $have_x" >&5
7587 echo "${ECHO_T}$have_x" >&6
7588 no_x=yes
7589 else
7590 # If each of the values was on the command line, it overrides each guess.
7591 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7592 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7593 # Update the cache value to reflect the command line values.
7594 ac_cv_have_x="have_x=yes \
7595 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7596 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7597 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7600 if test "$no_x" = yes; then
7601 # Not all programs may use this symbol, but it does not hurt to define it.
7603 cat >>confdefs.h <<\_ACEOF
7604 #define X_DISPLAY_MISSING 1
7605 _ACEOF
7607 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7608 else
7609 if test -n "$x_includes"; then
7610 X_CFLAGS="$X_CFLAGS -I$x_includes"
7613 # It would also be nice to do this for all -L options, not just this one.
7614 if test -n "$x_libraries"; then
7615 X_LIBS="$X_LIBS -L$x_libraries"
7616 # For Solaris; some versions of Sun CC require a space after -R and
7617 # others require no space. Words are not sufficient . . . .
7618 case `(uname -sr) 2>/dev/null` in
7619 "SunOS 5"*)
7620 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7621 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7622 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7623 if test x$gcc_no_link = xyes; then
7624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7626 { (exit 1); exit 1; }; }
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7636 main ()
7640 return 0;
7642 _ACEOF
7643 rm -f conftest.$ac_objext conftest$ac_exeext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7645 (eval $ac_link) 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest$ac_exeext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 ac_R_nospace=yes
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_R_nospace=no
7672 rm -f conftest.err conftest.$ac_objext \
7673 conftest$ac_exeext conftest.$ac_ext
7674 if test $ac_R_nospace = yes; then
7675 echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6
7677 X_LIBS="$X_LIBS -R$x_libraries"
7678 else
7679 LIBS="$ac_xsave_LIBS -R $x_libraries"
7680 if test x$gcc_no_link = xyes; then
7681 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7683 { (exit 1); exit 1; }; }
7685 cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h. */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7693 main ()
7697 return 0;
7699 _ACEOF
7700 rm -f conftest.$ac_objext conftest$ac_exeext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7702 (eval $ac_link) 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } &&
7709 { ac_try='test -z "$ac_c_werror_flag"
7710 || test ! -s conftest.err'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 (eval $ac_try) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; } &&
7716 { ac_try='test -s conftest$ac_exeext'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; }; then
7722 ac_R_space=yes
7723 else
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7727 ac_R_space=no
7729 rm -f conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731 if test $ac_R_space = yes; then
7732 echo "$as_me:$LINENO: result: yes" >&5
7733 echo "${ECHO_T}yes" >&6
7734 X_LIBS="$X_LIBS -R $x_libraries"
7735 else
7736 echo "$as_me:$LINENO: result: neither works" >&5
7737 echo "${ECHO_T}neither works" >&6
7740 LIBS=$ac_xsave_LIBS
7741 esac
7744 # Check for system-dependent libraries X programs must link with.
7745 # Do this before checking for the system-independent R6 libraries
7746 # (-lICE), since we may need -lsocket or whatever for X linking.
7748 if test "$ISC" = yes; then
7749 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7750 else
7751 # Martyn Johnson says this is needed for Ultrix, if the X
7752 # libraries were built with DECnet support. And Karl Berry says
7753 # the Alpha needs dnet_stub (dnet does not exist).
7754 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7755 if test x$gcc_no_link = xyes; then
7756 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7758 { (exit 1); exit 1; }; }
7760 cat >conftest.$ac_ext <<_ACEOF
7761 /* confdefs.h. */
7762 _ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 #ifdef __cplusplus
7769 extern "C"
7770 #endif
7771 /* We use char because int might match the return type of a gcc2
7772 builtin and then its argument prototype would still apply. */
7773 char XOpenDisplay ();
7775 main ()
7777 XOpenDisplay ();
7779 return 0;
7781 _ACEOF
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7784 (eval $ac_link) 2>conftest.er1
7785 ac_status=$?
7786 grep -v '^ *+' conftest.er1 >conftest.err
7787 rm -f conftest.er1
7788 cat conftest.err >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try='test -z "$ac_c_werror_flag"
7792 || test ! -s conftest.err'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try='test -s conftest$ac_exeext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7805 else
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7810 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7811 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 ac_check_lib_save_LIBS=$LIBS
7815 LIBS="-ldnet $LIBS"
7816 if test x$gcc_no_link = xyes; then
7817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7819 { (exit 1); exit 1; }; }
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 #ifdef __cplusplus
7830 extern "C"
7831 #endif
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7834 char dnet_ntoa ();
7836 main ()
7838 dnet_ntoa ();
7840 return 0;
7842 _ACEOF
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7845 (eval $ac_link) 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag"
7853 || test ! -s conftest.err'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; } &&
7859 { ac_try='test -s conftest$ac_exeext'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 (eval $ac_try) 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865 ac_cv_lib_dnet_dnet_ntoa=yes
7866 else
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 ac_cv_lib_dnet_dnet_ntoa=no
7872 rm -f conftest.err conftest.$ac_objext \
7873 conftest$ac_exeext conftest.$ac_ext
7874 LIBS=$ac_check_lib_save_LIBS
7876 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7877 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7878 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7879 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7882 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7883 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7884 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7885 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 ac_check_lib_save_LIBS=$LIBS
7889 LIBS="-ldnet_stub $LIBS"
7890 if test x$gcc_no_link = xyes; then
7891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7893 { (exit 1); exit 1; }; }
7895 cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h. */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 #ifdef __cplusplus
7904 extern "C"
7905 #endif
7906 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7908 char dnet_ntoa ();
7910 main ()
7912 dnet_ntoa ();
7914 return 0;
7916 _ACEOF
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7940 else
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 ac_cv_lib_dnet_stub_dnet_ntoa=no
7946 rm -f conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 LIBS=$ac_check_lib_save_LIBS
7950 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7951 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7952 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7958 rm -f conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 LIBS="$ac_xsave_LIBS"
7962 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7963 # to get the SysV transport functions.
7964 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7965 # needs -lnsl.
7966 # The nsl library prevents programs from opening the X display
7967 # on Irix 5.2, according to T.E. Dickey.
7968 # The functions gethostbyname, getservbyname, and inet_addr are
7969 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7970 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7971 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7972 if test "${ac_cv_func_gethostbyname+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975 if test x$gcc_no_link = xyes; then
7976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7978 { (exit 1); exit 1; }; }
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7988 #define gethostbyname innocuous_gethostbyname
7990 /* System header to define __stub macros and hopefully few prototypes,
7991 which can conflict with char gethostbyname (); below.
7992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7993 <limits.h> exists even on freestanding compilers. */
7995 #ifdef __STDC__
7996 # include <limits.h>
7997 #else
7998 # include <assert.h>
7999 #endif
8001 #undef gethostbyname
8003 /* Override any gcc2 internal prototype to avoid an error. */
8004 #ifdef __cplusplus
8005 extern "C"
8007 #endif
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8010 char gethostbyname ();
8011 /* The GNU C library defines this for functions which it implements
8012 to always fail with ENOSYS. Some functions are actually named
8013 something starting with __ and the normal name is an alias. */
8014 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8015 choke me
8016 #else
8017 char (*f) () = gethostbyname;
8018 #endif
8019 #ifdef __cplusplus
8021 #endif
8024 main ()
8026 return f != gethostbyname;
8028 return 0;
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033 (eval $ac_link) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_func_gethostbyname=yes
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_cv_func_gethostbyname=no
8060 rm -f conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8063 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8064 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8066 if test $ac_cv_func_gethostbyname = no; then
8067 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8068 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8069 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072 ac_check_lib_save_LIBS=$LIBS
8073 LIBS="-lnsl $LIBS"
8074 if test x$gcc_no_link = xyes; then
8075 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8076 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8077 { (exit 1); exit 1; }; }
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8086 /* Override any gcc2 internal prototype to avoid an error. */
8087 #ifdef __cplusplus
8088 extern "C"
8089 #endif
8090 /* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8092 char gethostbyname ();
8094 main ()
8096 gethostbyname ();
8098 return 0;
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>conftest.er1
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -z "$ac_c_werror_flag"
8111 || test ! -s conftest.err'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 (eval $ac_try) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest$ac_exeext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 ac_cv_lib_nsl_gethostbyname=yes
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_cv_lib_nsl_gethostbyname=no
8130 rm -f conftest.err conftest.$ac_objext \
8131 conftest$ac_exeext conftest.$ac_ext
8132 LIBS=$ac_check_lib_save_LIBS
8134 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8135 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8136 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8137 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8140 if test $ac_cv_lib_nsl_gethostbyname = no; then
8141 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8142 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8143 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 ac_check_lib_save_LIBS=$LIBS
8147 LIBS="-lbsd $LIBS"
8148 if test x$gcc_no_link = xyes; then
8149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8151 { (exit 1); exit 1; }; }
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8160 /* Override any gcc2 internal prototype to avoid an error. */
8161 #ifdef __cplusplus
8162 extern "C"
8163 #endif
8164 /* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */
8166 char gethostbyname ();
8168 main ()
8170 gethostbyname ();
8172 return 0;
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -z "$ac_c_werror_flag"
8185 || test ! -s conftest.err'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_cv_lib_bsd_gethostbyname=yes
8198 else
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ac_cv_lib_bsd_gethostbyname=no
8204 rm -f conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206 LIBS=$ac_check_lib_save_LIBS
8208 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8209 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8210 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8217 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8218 # socket/setsockopt and other routines are undefined under SCO ODT
8219 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8220 # on later versions), says Simon Leinen: it contains gethostby*
8221 # variants that don't use the name server (or something). -lsocket
8222 # must be given before -lnsl if both are needed. We assume that
8223 # if connect needs -lnsl, so does gethostbyname.
8224 echo "$as_me:$LINENO: checking for connect" >&5
8225 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8226 if test "${ac_cv_func_connect+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 if test x$gcc_no_link = xyes; then
8230 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8232 { (exit 1); exit 1; }; }
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8242 #define connect innocuous_connect
8244 /* System header to define __stub macros and hopefully few prototypes,
8245 which can conflict with char connect (); below.
8246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8247 <limits.h> exists even on freestanding compilers. */
8249 #ifdef __STDC__
8250 # include <limits.h>
8251 #else
8252 # include <assert.h>
8253 #endif
8255 #undef connect
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 #ifdef __cplusplus
8259 extern "C"
8261 #endif
8262 /* We use char because int might match the return type of a gcc2
8263 builtin and then its argument prototype would still apply. */
8264 char connect ();
8265 /* The GNU C library defines this for functions which it implements
8266 to always fail with ENOSYS. Some functions are actually named
8267 something starting with __ and the normal name is an alias. */
8268 #if defined (__stub_connect) || defined (__stub___connect)
8269 choke me
8270 #else
8271 char (*f) () = connect;
8272 #endif
8273 #ifdef __cplusplus
8275 #endif
8278 main ()
8280 return f != connect;
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_func_connect=yes
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 ac_cv_func_connect=no
8314 rm -f conftest.err conftest.$ac_objext \
8315 conftest$ac_exeext conftest.$ac_ext
8317 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8318 echo "${ECHO_T}$ac_cv_func_connect" >&6
8320 if test $ac_cv_func_connect = no; then
8321 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8322 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8323 if test "${ac_cv_lib_socket_connect+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 ac_check_lib_save_LIBS=$LIBS
8327 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8328 if test x$gcc_no_link = xyes; then
8329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8331 { (exit 1); exit 1; }; }
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8340 /* Override any gcc2 internal prototype to avoid an error. */
8341 #ifdef __cplusplus
8342 extern "C"
8343 #endif
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8346 char connect ();
8348 main ()
8350 connect ();
8352 return 0;
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag"
8365 || test ! -s conftest.err'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 (eval $ac_try) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_lib_socket_connect=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_lib_socket_connect=no
8384 rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8389 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8390 if test $ac_cv_lib_socket_connect = yes; then
8391 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8396 # Guillermo Gomez says -lposix is necessary on A/UX.
8397 echo "$as_me:$LINENO: checking for remove" >&5
8398 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8399 if test "${ac_cv_func_remove+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402 if test x$gcc_no_link = xyes; then
8403 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8404 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8405 { (exit 1); exit 1; }; }
8407 cat >conftest.$ac_ext <<_ACEOF
8408 /* confdefs.h. */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8413 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8415 #define remove innocuous_remove
8417 /* System header to define __stub macros and hopefully few prototypes,
8418 which can conflict with char remove (); below.
8419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8420 <limits.h> exists even on freestanding compilers. */
8422 #ifdef __STDC__
8423 # include <limits.h>
8424 #else
8425 # include <assert.h>
8426 #endif
8428 #undef remove
8430 /* Override any gcc2 internal prototype to avoid an error. */
8431 #ifdef __cplusplus
8432 extern "C"
8434 #endif
8435 /* We use char because int might match the return type of a gcc2
8436 builtin and then its argument prototype would still apply. */
8437 char remove ();
8438 /* The GNU C library defines this for functions which it implements
8439 to always fail with ENOSYS. Some functions are actually named
8440 something starting with __ and the normal name is an alias. */
8441 #if defined (__stub_remove) || defined (__stub___remove)
8442 choke me
8443 #else
8444 char (*f) () = remove;
8445 #endif
8446 #ifdef __cplusplus
8448 #endif
8451 main ()
8453 return f != remove;
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460 (eval $ac_link) 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag"
8468 || test ! -s conftest.err'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest$ac_exeext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_func_remove=yes
8481 else
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 ac_cv_func_remove=no
8487 rm -f conftest.err conftest.$ac_objext \
8488 conftest$ac_exeext conftest.$ac_ext
8490 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8491 echo "${ECHO_T}$ac_cv_func_remove" >&6
8493 if test $ac_cv_func_remove = no; then
8494 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8495 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8496 if test "${ac_cv_lib_posix_remove+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 ac_check_lib_save_LIBS=$LIBS
8500 LIBS="-lposix $LIBS"
8501 if test x$gcc_no_link = xyes; then
8502 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8504 { (exit 1); exit 1; }; }
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8513 /* Override any gcc2 internal prototype to avoid an error. */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 /* We use char because int might match the return type of a gcc2
8518 builtin and then its argument prototype would still apply. */
8519 char remove ();
8521 main ()
8523 remove ();
8525 return 0;
8527 _ACEOF
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530 (eval $ac_link) 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
8537 { ac_try='test -z "$ac_c_werror_flag"
8538 || test ! -s conftest.err'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; } &&
8544 { ac_try='test -s conftest$ac_exeext'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 (eval $ac_try) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 ac_cv_lib_posix_remove=yes
8551 else
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 ac_cv_lib_posix_remove=no
8557 rm -f conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
8559 LIBS=$ac_check_lib_save_LIBS
8561 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8562 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8563 if test $ac_cv_lib_posix_remove = yes; then
8564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8569 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8570 echo "$as_me:$LINENO: checking for shmat" >&5
8571 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8572 if test "${ac_cv_func_shmat+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 if test x$gcc_no_link = xyes; then
8576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8578 { (exit 1); exit 1; }; }
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h. */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8588 #define shmat innocuous_shmat
8590 /* System header to define __stub macros and hopefully few prototypes,
8591 which can conflict with char shmat (); below.
8592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8593 <limits.h> exists even on freestanding compilers. */
8595 #ifdef __STDC__
8596 # include <limits.h>
8597 #else
8598 # include <assert.h>
8599 #endif
8601 #undef shmat
8603 /* Override any gcc2 internal prototype to avoid an error. */
8604 #ifdef __cplusplus
8605 extern "C"
8607 #endif
8608 /* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8610 char shmat ();
8611 /* The GNU C library defines this for functions which it implements
8612 to always fail with ENOSYS. Some functions are actually named
8613 something starting with __ and the normal name is an alias. */
8614 #if defined (__stub_shmat) || defined (__stub___shmat)
8615 choke me
8616 #else
8617 char (*f) () = shmat;
8618 #endif
8619 #ifdef __cplusplus
8621 #endif
8624 main ()
8626 return f != shmat;
8628 return 0;
8630 _ACEOF
8631 rm -f conftest.$ac_objext conftest$ac_exeext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633 (eval $ac_link) 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_func_shmat=yes
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_cv_func_shmat=no
8660 rm -f conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8664 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8666 if test $ac_cv_func_shmat = no; then
8667 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8668 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8669 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672 ac_check_lib_save_LIBS=$LIBS
8673 LIBS="-lipc $LIBS"
8674 if test x$gcc_no_link = xyes; then
8675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8677 { (exit 1); exit 1; }; }
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8686 /* Override any gcc2 internal prototype to avoid an error. */
8687 #ifdef __cplusplus
8688 extern "C"
8689 #endif
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692 char shmat ();
8694 main ()
8696 shmat ();
8698 return 0;
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_lib_ipc_shmat=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_cv_lib_ipc_shmat=no
8730 rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 LIBS=$ac_check_lib_save_LIBS
8734 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8735 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8736 if test $ac_cv_lib_ipc_shmat = yes; then
8737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8743 # Check for libraries that X11R6 Xt/Xaw programs need.
8744 ac_save_LDFLAGS=$LDFLAGS
8745 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8746 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8747 # check for ICE first), but we must link in the order -lSM -lICE or
8748 # we get undefined symbols. So assume we have SM if we have ICE.
8749 # These have to be linked with before -lX11, unlike the other
8750 # libraries we check for below, so use a different variable.
8751 # John Interrante, Karl Berry
8752 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8753 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8754 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 ac_check_lib_save_LIBS=$LIBS
8758 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8759 if test x$gcc_no_link = xyes; then
8760 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8761 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8762 { (exit 1); exit 1; }; }
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h. */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8771 /* Override any gcc2 internal prototype to avoid an error. */
8772 #ifdef __cplusplus
8773 extern "C"
8774 #endif
8775 /* We use char because int might match the return type of a gcc2
8776 builtin and then its argument prototype would still apply. */
8777 char IceConnectionNumber ();
8779 main ()
8781 IceConnectionNumber ();
8783 return 0;
8785 _ACEOF
8786 rm -f conftest.$ac_objext conftest$ac_exeext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788 (eval $ac_link) 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try='test -z "$ac_c_werror_flag"
8796 || test ! -s conftest.err'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_lib_ICE_IceConnectionNumber=yes
8809 else
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_cv_lib_ICE_IceConnectionNumber=no
8815 rm -f conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LIBS=$ac_check_lib_save_LIBS
8819 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8820 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8821 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8822 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8825 LDFLAGS=$ac_save_LDFLAGS
8830 # determine whether to enable the cairo GTK Graphics2D backend
8831 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8832 if test "${enable_gtk_cairo+set}" = set; then
8833 enableval="$enable_gtk_cairo"
8838 if test "x${enable_gtk_cairo}" = xyes; then
8839 GTK_CAIRO_TRUE=
8840 GTK_CAIRO_FALSE='#'
8841 else
8842 GTK_CAIRO_TRUE='#'
8843 GTK_CAIRO_FALSE=
8846 if test "x${enable_gtk_cairo}" = xyes
8847 then
8849 succeeded=no
8851 if test -z "$PKG_CONFIG"; then
8852 # Extract the first word of "pkg-config", so it can be a program name with args.
8853 set dummy pkg-config; ac_word=$2
8854 echo "$as_me:$LINENO: checking for $ac_word" >&5
8855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8856 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859 case $PKG_CONFIG in
8860 [\\/]* | ?:[\\/]*)
8861 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 break 2
8875 done
8876 done
8878 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8880 esac
8882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8884 if test -n "$PKG_CONFIG"; then
8885 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8886 echo "${ECHO_T}$PKG_CONFIG" >&6
8887 else
8888 echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8894 if test "$PKG_CONFIG" = "no" ; then
8895 echo "*** The pkg-config script could not be found. Make sure it is"
8896 echo "*** in your path, or set the PKG_CONFIG environment variable"
8897 echo "*** to the full path to pkg-config."
8898 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8899 else
8900 PKG_CONFIG_MIN_VERSION=0.9.0
8901 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8902 echo "$as_me:$LINENO: checking for cairo" >&5
8903 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8905 if $PKG_CONFIG --exists "cairo" ; then
8906 echo "$as_me:$LINENO: result: yes" >&5
8907 echo "${ECHO_T}yes" >&6
8908 succeeded=yes
8910 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8911 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8912 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8913 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8914 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8916 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8917 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8918 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8919 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8920 echo "${ECHO_T}$CAIRO_LIBS" >&6
8921 else
8922 CAIRO_CFLAGS=""
8923 CAIRO_LIBS=""
8924 ## If we have a custom action on failure, don't print errors, but
8925 ## do set a variable so people can do so.
8926 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8927 echo $CAIRO_PKG_ERRORS
8932 else
8933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8938 if test $succeeded = yes; then
8940 else
8941 { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8942 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8943 { (exit 1); exit 1; }; }
8947 succeeded=no
8949 if test -z "$PKG_CONFIG"; then
8950 # Extract the first word of "pkg-config", so it can be a program name with args.
8951 set dummy pkg-config; ac_word=$2
8952 echo "$as_me:$LINENO: checking for $ac_word" >&5
8953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8954 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957 case $PKG_CONFIG in
8958 [\\/]* | ?:[\\/]*)
8959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $PATH
8965 IFS=$as_save_IFS
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8969 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8971 break 2
8973 done
8974 done
8976 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8978 esac
8980 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8982 if test -n "$PKG_CONFIG"; then
8983 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8984 echo "${ECHO_T}$PKG_CONFIG" >&6
8985 else
8986 echo "$as_me:$LINENO: result: no" >&5
8987 echo "${ECHO_T}no" >&6
8992 if test "$PKG_CONFIG" = "no" ; then
8993 echo "*** The pkg-config script could not be found. Make sure it is"
8994 echo "*** in your path, or set the PKG_CONFIG environment variable"
8995 echo "*** to the full path to pkg-config."
8996 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8997 else
8998 PKG_CONFIG_MIN_VERSION=0.9.0
8999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9000 echo "$as_me:$LINENO: checking for pangoft2" >&5
9001 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
9003 if $PKG_CONFIG --exists "pangoft2" ; then
9004 echo "$as_me:$LINENO: result: yes" >&5
9005 echo "${ECHO_T}yes" >&6
9006 succeeded=yes
9008 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
9009 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
9010 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
9011 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
9012 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
9014 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
9015 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
9016 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
9017 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
9018 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
9019 else
9020 PANGOFT2_CFLAGS=""
9021 PANGOFT2_LIBS=""
9022 ## If we have a custom action on failure, don't print errors, but
9023 ## do set a variable so people can do so.
9024 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
9025 echo $PANGOFT2_PKG_ERRORS
9030 else
9031 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9032 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9036 if test $succeeded = yes; then
9038 else
9039 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9040 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9041 { (exit 1); exit 1; }; }
9050 # FIXME: this should be _libs on some hosts.
9051 libsubdir=.libs
9053 # extra LD Flags which are required for targets
9054 case "${host}" in
9055 *-*-darwin[0-7].*)
9056 # For now we have to disable it on darwin[8-9] because it slows down
9057 # the linking phase. A possible bug in ld?
9058 # on Darwin -single_module speeds up loading of the dynamic libraries.
9059 extra_ldflags_libjava=-Wl,-single_module
9061 esac
9064 # Allow the GC to be disabled. Can be useful when debugging.
9065 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9066 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9067 # Check whether --enable-java-gc or --disable-java-gc was given.
9068 if test "${enable_java_gc+set}" = set; then
9069 enableval="$enable_java_gc"
9070 GC=$enableval
9071 else
9072 GC=boehm
9074 GCLIBS=
9075 GCINCS=
9076 GCDEPS=
9077 GCSPEC=
9078 JC1GCSPEC=
9079 GCTESTSPEC=
9080 case "$GC" in
9081 boehm)
9082 echo "$as_me:$LINENO: result: boehm" >&5
9083 echo "${ECHO_T}boehm" >&6
9084 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9085 JC1GCSPEC='-fuse-boehm-gc'
9086 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9087 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9088 GCOBJS=boehm.lo
9089 GCHDR=boehm-gc.h
9090 # The POSIX thread support needs to know this.
9092 cat >>confdefs.h <<\_ACEOF
9093 #define HAVE_BOEHM_GC 1
9094 _ACEOF
9098 echo "$as_me:$LINENO: result: none" >&5
9099 echo "${ECHO_T}none" >&6
9100 GCHDR=no-gc.h
9103 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9104 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9105 { (exit 1); exit 1; }; }
9107 esac
9114 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9118 if test "$GC" = boehm; then
9119 USING_BOEHMGC_TRUE=
9120 USING_BOEHMGC_FALSE='#'
9121 else
9122 USING_BOEHMGC_TRUE='#'
9123 USING_BOEHMGC_FALSE=
9128 if test "$GC" = no; then
9129 USING_NOGC_TRUE=
9130 USING_NOGC_FALSE='#'
9131 else
9132 USING_NOGC_TRUE='#'
9133 USING_NOGC_FALSE=
9138 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9139 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9140 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9141 echo "$as_me:$LINENO: result: $THREADS" >&5
9142 echo "${ECHO_T}$THREADS" >&6
9144 case "$THREADS" in
9145 no | none | single)
9146 THREADS=none
9148 posix | posix95 | pthreads)
9149 THREADS=posix
9150 case "$host" in
9151 *-*-linux*)
9153 cat >>confdefs.h <<\_ACEOF
9154 #define LINUX_THREADS 1
9155 _ACEOF
9158 esac
9160 win32)
9162 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9163 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9164 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9165 { (exit 1); exit 1; }; }
9168 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9169 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9170 { (exit 1); exit 1; }; }
9172 esac
9174 THREADCXXFLAGS=
9175 THREADLDFLAGS=
9176 THREADLIBS=
9177 THREADINCS=
9178 THREADDEPS=
9179 THREADH=
9180 THREADSPEC=
9181 case "$THREADS" in
9182 posix)
9183 case "$host" in
9184 *-*-cygwin*)
9185 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9187 *-*-freebsd[1234]*)
9188 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9189 # merely adds pthread_* functions) but it does have a -pthread switch
9190 # which is required at link-time to select -lc_r *instead* of -lc.
9191 THREADLDFLAGS=-pthread
9192 # Don't set THREADSPEC here as might be expected since -pthread is
9193 # not processed when found within a spec file, it must come from
9194 # the command line. For now, the user must provide the -pthread
9195 # switch to link code compiled with gcj. In future, consider adding
9196 # support for weak references to pthread_* functions ala gthr.h API.
9197 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9199 *-*-freebsd*)
9200 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9201 # systems which support threads and -lpthread.
9202 THREADLDFLAGS=-pthread
9203 THREADSPEC=-lpthread
9205 alpha*-dec-osf* | hppa*-hp-hpux*)
9206 THREADCXXFLAGS=-pthread
9207 # boehm-gc needs some functions from librt, so link that too.
9208 THREADLIBS='-lpthread -lrt'
9209 THREADSPEC='-lpthread -lrt'
9212 THREADLIBS=-lpthread
9213 THREADSPEC=-lpthread
9215 esac
9216 THREADH=posix-threads.h
9217 # MIT pthreads doesn't seem to have the mutexattr functions.
9218 # But for now we don't check for it. We just assume you aren't
9219 # using MIT pthreads.
9221 cat >>confdefs.h <<\_ACEOF
9222 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9223 _ACEOF
9226 # If we're using the Boehm GC, then we happen to know that it
9227 # defines _REENTRANT, so we don't bother. Eww.
9228 if test "$GC" != boehm; then
9230 cat >>confdefs.h <<\_ACEOF
9231 #define _REENTRANT 1
9232 _ACEOF
9236 cat >>confdefs.h <<\_ACEOF
9237 #define _POSIX_PTHREAD_SEMANTICS 1
9238 _ACEOF
9242 win32)
9243 THREADH=win32-threads.h
9246 none)
9247 THREADH=no-threads.h
9249 esac
9250 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9260 if test "$THREADS" = posix; then
9261 USING_POSIX_THREADS_TRUE=
9262 USING_POSIX_THREADS_FALSE='#'
9263 else
9264 USING_POSIX_THREADS_TRUE='#'
9265 USING_POSIX_THREADS_FALSE=
9270 if test "$THREADS" = win32; then
9271 USING_WIN32_THREADS_TRUE=
9272 USING_WIN32_THREADS_FALSE='#'
9273 else
9274 USING_WIN32_THREADS_TRUE='#'
9275 USING_WIN32_THREADS_FALSE=
9280 if test "$THREADS" = none; then
9281 USING_NO_THREADS_TRUE=
9282 USING_NO_THREADS_FALSE='#'
9283 else
9284 USING_NO_THREADS_TRUE='#'
9285 USING_NO_THREADS_FALSE=
9289 if test -d sysdep; then true; else mkdir sysdep; fi
9290 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9292 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9294 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9297 HASH_SYNC_SPEC=
9298 # Hash synchronization is only useful with posix threads right now.
9299 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9300 HASH_SYNC_SPEC=-fhash-synchronization
9302 cat >>confdefs.h <<\_ACEOF
9303 #define JV_HASH_SYNCHRONIZATION 1
9304 _ACEOF
9311 if test "$GCC" = yes; then
9312 USING_GCC_TRUE=
9313 USING_GCC_FALSE='#'
9314 else
9315 USING_GCC_TRUE='#'
9316 USING_GCC_FALSE=
9320 # We're in the tree with gcc, and need to include some of its headers.
9321 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9323 if test "x${with_newlib}" = "xyes"; then
9324 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9325 # may not work correctly, because the compiler may not be able to
9326 # link executables.
9328 # We assume newlib. This lets us hard-code the functions we know
9329 # we'll have.
9331 cat >>confdefs.h <<\_ACEOF
9332 #define HAVE_MEMMOVE 1
9333 _ACEOF
9336 cat >>confdefs.h <<\_ACEOF
9337 #define HAVE_MEMCPY 1
9338 _ACEOF
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_STRERROR 1
9343 _ACEOF
9346 cat >>confdefs.h <<\_ACEOF
9347 #define HAVE_TIME 1
9348 _ACEOF
9351 cat >>confdefs.h <<\_ACEOF
9352 #define HAVE_GMTIME_R 1
9353 _ACEOF
9356 cat >>confdefs.h <<\_ACEOF
9357 #define HAVE_LOCALTIME_R 1
9358 _ACEOF
9361 cat >>confdefs.h <<\_ACEOF
9362 #define HAVE_USLEEP_DECL 1
9363 _ACEOF
9365 # This is only for POSIX threads.
9367 cat >>confdefs.h <<\_ACEOF
9368 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9369 _ACEOF
9371 # We also assume we are using gcc, which provides alloca.
9372 cat >>confdefs.h <<\_ACEOF
9373 #define HAVE_ALLOCA 1
9374 _ACEOF
9377 # Assume we do not have getuid and friends.
9379 cat >>confdefs.h <<\_ACEOF
9380 #define NO_GETUID 1
9381 _ACEOF
9383 PLATFORMNET=NoNet
9384 else
9418 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9419 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9420 access stat mkdir rename rmdir unlink realpath utime chmod \
9421 nl_langinfo setlocale \
9422 inet_pton uname inet_ntoa \
9423 fork execvp pipe sigaction ftruncate mmap
9425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9426 echo "$as_me:$LINENO: checking for $ac_func" >&5
9427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9428 if eval "test \"\${$as_ac_var+set}\" = set"; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431 if test x$gcc_no_link = xyes; then
9432 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9433 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9434 { (exit 1); exit 1; }; }
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h. */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9444 #define $ac_func innocuous_$ac_func
9446 /* System header to define __stub macros and hopefully few prototypes,
9447 which can conflict with char $ac_func (); below.
9448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9449 <limits.h> exists even on freestanding compilers. */
9451 #ifdef __STDC__
9452 # include <limits.h>
9453 #else
9454 # include <assert.h>
9455 #endif
9457 #undef $ac_func
9459 /* Override any gcc2 internal prototype to avoid an error. */
9460 #ifdef __cplusplus
9461 extern "C"
9463 #endif
9464 /* We use char because int might match the return type of a gcc2
9465 builtin and then its argument prototype would still apply. */
9466 char $ac_func ();
9467 /* The GNU C library defines this for functions which it implements
9468 to always fail with ENOSYS. Some functions are actually named
9469 something starting with __ and the normal name is an alias. */
9470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9471 choke me
9472 #else
9473 char (*f) () = $ac_func;
9474 #endif
9475 #ifdef __cplusplus
9477 #endif
9480 main ()
9482 return f != $ac_func;
9484 return 0;
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try='test -z "$ac_c_werror_flag"
9497 || test ! -s conftest.err'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 eval "$as_ac_var=yes"
9510 else
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 eval "$as_ac_var=no"
9516 rm -f conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9521 if test `eval echo '${'$as_ac_var'}'` = yes; then
9522 cat >>confdefs.h <<_ACEOF
9523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9524 _ACEOF
9527 done
9531 for ac_func in inet_aton inet_addr
9533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9534 echo "$as_me:$LINENO: checking for $ac_func" >&5
9535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9536 if eval "test \"\${$as_ac_var+set}\" = set"; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539 if test x$gcc_no_link = xyes; then
9540 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9541 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9542 { (exit 1); exit 1; }; }
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9552 #define $ac_func innocuous_$ac_func
9554 /* System header to define __stub macros and hopefully few prototypes,
9555 which can conflict with char $ac_func (); below.
9556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9557 <limits.h> exists even on freestanding compilers. */
9559 #ifdef __STDC__
9560 # include <limits.h>
9561 #else
9562 # include <assert.h>
9563 #endif
9565 #undef $ac_func
9567 /* Override any gcc2 internal prototype to avoid an error. */
9568 #ifdef __cplusplus
9569 extern "C"
9571 #endif
9572 /* We use char because int might match the return type of a gcc2
9573 builtin and then its argument prototype would still apply. */
9574 char $ac_func ();
9575 /* The GNU C library defines this for functions which it implements
9576 to always fail with ENOSYS. Some functions are actually named
9577 something starting with __ and the normal name is an alias. */
9578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9579 choke me
9580 #else
9581 char (*f) () = $ac_func;
9582 #endif
9583 #ifdef __cplusplus
9585 #endif
9588 main ()
9590 return f != $ac_func;
9592 return 0;
9594 _ACEOF
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597 (eval $ac_link) 2>conftest.er1
9598 ac_status=$?
9599 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_c_werror_flag"
9605 || test ! -s conftest.err'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; } &&
9611 { ac_try='test -s conftest$ac_exeext'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; }; then
9617 eval "$as_ac_var=yes"
9618 else
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 eval "$as_ac_var=no"
9624 rm -f conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9629 if test `eval echo '${'$as_ac_var'}'` = yes; then
9630 cat >>confdefs.h <<_ACEOF
9631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9632 _ACEOF
9633 break
9635 done
9637 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9638 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9639 if test "${ac_cv_header_stdc+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h. */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 #include <stdlib.h>
9649 #include <stdarg.h>
9650 #include <string.h>
9651 #include <float.h>
9654 main ()
9658 return 0;
9660 _ACEOF
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663 (eval $ac_compile) 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag"
9671 || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_header_stdc=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_cv_header_stdc=no
9690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9692 if test $ac_cv_header_stdc = yes; then
9693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h. */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 #include <string.h>
9702 _ACEOF
9703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9704 $EGREP "memchr" >/dev/null 2>&1; then
9706 else
9707 ac_cv_header_stdc=no
9709 rm -f conftest*
9713 if test $ac_cv_header_stdc = yes; then
9714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 #include <stdlib.h>
9723 _ACEOF
9724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9725 $EGREP "free" >/dev/null 2>&1; then
9727 else
9728 ac_cv_header_stdc=no
9730 rm -f conftest*
9734 if test $ac_cv_header_stdc = yes; then
9735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9736 if test "$cross_compiling" = yes; then
9738 else
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h. */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745 #include <ctype.h>
9746 #if ((' ' & 0x0FF) == 0x020)
9747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9749 #else
9750 # define ISLOWER(c) \
9751 (('a' <= (c) && (c) <= 'i') \
9752 || ('j' <= (c) && (c) <= 'r') \
9753 || ('s' <= (c) && (c) <= 'z'))
9754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9755 #endif
9757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9759 main ()
9761 int i;
9762 for (i = 0; i < 256; i++)
9763 if (XOR (islower (i), ISLOWER (i))
9764 || toupper (i) != TOUPPER (i))
9765 exit(2);
9766 exit (0);
9768 _ACEOF
9769 rm -f conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9781 else
9782 echo "$as_me: program exited with status $ac_status" >&5
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ( exit $ac_status )
9787 ac_cv_header_stdc=no
9789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9793 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9794 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9795 if test $ac_cv_header_stdc = yes; then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define STDC_HEADERS 1
9799 _ACEOF
9803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9814 inttypes.h stdint.h unistd.h
9816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9817 echo "$as_me:$LINENO: checking for $ac_header" >&5
9818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h. */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 $ac_includes_default
9830 #include <$ac_header>
9831 _ACEOF
9832 rm -f conftest.$ac_objext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834 (eval $ac_compile) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag"
9842 || test ! -s conftest.err'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; } &&
9848 { ac_try='test -s conftest.$ac_objext'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 (eval $ac_try) 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 eval "$as_ac_Header=yes"
9855 else
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 eval "$as_ac_Header=no"
9861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9868 _ACEOF
9872 done
9878 for ac_header in execinfo.h unistd.h dlfcn.h
9880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9882 echo "$as_me:$LINENO: checking for $ac_header" >&5
9883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9889 else
9890 # Is the header compilable?
9891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 $ac_includes_default
9900 #include <$ac_header>
9901 _ACEOF
9902 rm -f conftest.$ac_objext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904 (eval $ac_compile) 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag"
9912 || test ! -s conftest.err'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 (eval $ac_try) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; } &&
9918 { ac_try='test -s conftest.$ac_objext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_header_compiler=yes
9925 else
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ac_header_compiler=no
9931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9933 echo "${ECHO_T}$ac_header_compiler" >&6
9935 # Is the header present?
9936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h. */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9944 #include <$ac_header>
9945 _ACEOF
9946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } >/dev/null; then
9954 if test -s conftest.err; then
9955 ac_cpp_err=$ac_c_preproc_warn_flag
9956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9957 else
9958 ac_cpp_err=
9960 else
9961 ac_cpp_err=yes
9963 if test -z "$ac_cpp_err"; then
9964 ac_header_preproc=yes
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9969 ac_header_preproc=no
9971 rm -f conftest.err conftest.$ac_ext
9972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9973 echo "${ECHO_T}$ac_header_preproc" >&6
9975 # So? What about this header?
9976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9977 yes:no: )
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9982 ac_header_preproc=yes
9984 no:yes:* )
9985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9998 cat <<\_ASBOX
9999 ## ---------------------------------- ##
10000 ## Report this to the libjava lists. ##
10001 ## ---------------------------------- ##
10002 _ASBOX
10004 sed "s/^/$as_me: WARNING: /" >&2
10006 esac
10007 echo "$as_me:$LINENO: checking for $ac_header" >&5
10008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012 eval "$as_ac_Header=\$ac_header_preproc"
10014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10019 cat >>confdefs.h <<_ACEOF
10020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10021 _ACEOF
10025 done
10027 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10028 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10029 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10030 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033 ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-ldl $LIBS"
10035 if test x$gcc_no_link = xyes; then
10036 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10038 { (exit 1); exit 1; }; }
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10047 /* Override any gcc2 internal prototype to avoid an error. */
10048 #ifdef __cplusplus
10049 extern "C"
10050 #endif
10051 /* We use char because int might match the return type of a gcc2
10052 builtin and then its argument prototype would still apply. */
10053 char dladdr ();
10055 main ()
10057 dladdr ();
10059 return 0;
10061 _ACEOF
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064 (eval $ac_link) 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag"
10072 || test ! -s conftest.err'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest$ac_exeext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_lib_dl_dladdr=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_cv_lib_dl_dladdr=no
10091 rm -f conftest.err conftest.$ac_objext \
10092 conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10095 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10096 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10097 if test $ac_cv_lib_dl_dladdr = yes; then
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_DLADDR 1
10102 _ACEOF
10104 else
10106 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10107 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10108 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-ldld $LIBS"
10113 if test x$gcc_no_link = xyes; then
10114 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10116 { (exit 1); exit 1; }; }
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h. */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10125 /* Override any gcc2 internal prototype to avoid an error. */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 /* We use char because int might match the return type of a gcc2
10130 builtin and then its argument prototype would still apply. */
10131 char dladdr ();
10133 main ()
10135 dladdr ();
10137 return 0;
10139 _ACEOF
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag"
10150 || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_lib_dld_dladdr=yes
10163 else
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_cv_lib_dld_dladdr=no
10169 rm -f conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10173 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10174 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10175 if test $ac_cv_lib_dld_dladdr = yes; then
10178 cat >>confdefs.h <<\_ACEOF
10179 #define HAVE_DLADDR 1
10180 _ACEOF
10187 if test x"$build" = x"$host"; then
10188 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10189 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10190 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193 test "$cross_compiling" = yes &&
10194 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10195 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10196 { (exit 1); exit 1; }; }
10197 if test -r "/proc/self/exe"; then
10198 ac_cv_file__proc_self_exe=yes
10199 else
10200 ac_cv_file__proc_self_exe=no
10203 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10204 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10205 if test $ac_cv_file__proc_self_exe = yes; then
10207 cat >>confdefs.h <<_ACEOF
10208 #define HAVE__PROC_SELF_EXE 1
10209 _ACEOF
10213 cat >>confdefs.h <<\_ACEOF
10214 #define HAVE_PROC_SELF_EXE 1
10215 _ACEOF
10219 else
10220 case $host in
10221 *-linux*)
10223 cat >>confdefs.h <<\_ACEOF
10224 #define HAVE_PROC_SELF_EXE 1
10225 _ACEOF
10228 esac
10232 if test "X$prefix" = "XNONE"; then
10233 acl_final_prefix="$ac_default_prefix"
10234 else
10235 acl_final_prefix="$prefix"
10237 if test "X$exec_prefix" = "XNONE"; then
10238 acl_final_exec_prefix='${prefix}'
10239 else
10240 acl_final_exec_prefix="$exec_prefix"
10242 acl_save_prefix="$prefix"
10243 prefix="$acl_final_prefix"
10244 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10245 prefix="$acl_save_prefix"
10248 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10249 if test "${with_gnu_ld+set}" = set; then
10250 withval="$with_gnu_ld"
10251 test "$withval" = no || with_gnu_ld=yes
10252 else
10253 with_gnu_ld=no
10255 # Prepare PATH_SEPARATOR.
10256 # The user is always right.
10257 if test "${PATH_SEPARATOR+set}" != set; then
10258 echo "#! /bin/sh" >conf$$.sh
10259 echo "exit 0" >>conf$$.sh
10260 chmod +x conf$$.sh
10261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10262 PATH_SEPARATOR=';'
10263 else
10264 PATH_SEPARATOR=:
10266 rm -f conf$$.sh
10268 ac_prog=ld
10269 if test "$GCC" = yes; then
10270 # Check if gcc -print-prog-name=ld gives a path.
10271 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10272 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10273 case $host in
10274 *-*-mingw*)
10275 # gcc leaves a trailing carriage return which upsets mingw
10276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10279 esac
10280 case $ac_prog in
10281 # Accept absolute paths.
10282 [\\/]* | [A-Za-z]:[\\/]*)
10283 re_direlt='/[^/][^/]*/\.\./'
10284 # Canonicalize the path of ld
10285 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10286 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10287 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10288 done
10289 test -z "$LD" && LD="$ac_prog"
10292 # If it fails, then pretend we aren't using GCC.
10293 ac_prog=ld
10296 # If it is relative, then search for the first ld in PATH.
10297 with_gnu_ld=unknown
10299 esac
10300 elif test "$with_gnu_ld" = yes; then
10301 echo "$as_me:$LINENO: checking for GNU ld" >&5
10302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10303 else
10304 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10307 if test "${acl_cv_path_LD+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310 if test -z "$LD"; then
10311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10312 for ac_dir in $PATH; do
10313 test -z "$ac_dir" && ac_dir=.
10314 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10315 acl_cv_path_LD="$ac_dir/$ac_prog"
10316 # Check to see if the program is GNU ld. I'd rather use --version,
10317 # but apparently some GNU ld's only accept -v.
10318 # Break only if it was the GNU/non-GNU ld that we prefer.
10319 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10320 test "$with_gnu_ld" != no && break
10321 else
10322 test "$with_gnu_ld" != yes && break
10325 done
10326 IFS="$ac_save_ifs"
10327 else
10328 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10332 LD="$acl_cv_path_LD"
10333 if test -n "$LD"; then
10334 echo "$as_me:$LINENO: result: $LD" >&5
10335 echo "${ECHO_T}$LD" >&6
10336 else
10337 echo "$as_me:$LINENO: result: no" >&5
10338 echo "${ECHO_T}no" >&6
10340 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10341 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10342 { (exit 1); exit 1; }; }
10343 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10344 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10345 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10349 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10350 acl_cv_prog_gnu_ld=yes
10351 else
10352 acl_cv_prog_gnu_ld=no
10355 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10356 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10357 with_gnu_ld=$acl_cv_prog_gnu_ld
10361 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10362 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10363 if test "${acl_cv_rpath+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10367 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10368 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10369 . ./conftest.sh
10370 rm -f ./conftest.sh
10371 acl_cv_rpath=done
10374 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10375 echo "${ECHO_T}$acl_cv_rpath" >&6
10376 wl="$acl_cv_wl"
10377 libext="$acl_cv_libext"
10378 shlibext="$acl_cv_shlibext"
10379 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10380 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10381 hardcode_direct="$acl_cv_hardcode_direct"
10382 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10383 # Check whether --enable-rpath or --disable-rpath was given.
10384 if test "${enable_rpath+set}" = set; then
10385 enableval="$enable_rpath"
10387 else
10388 enable_rpath=yes
10397 use_additional=yes
10399 acl_save_prefix="$prefix"
10400 prefix="$acl_final_prefix"
10401 acl_save_exec_prefix="$exec_prefix"
10402 exec_prefix="$acl_final_exec_prefix"
10404 eval additional_includedir=\"$includedir\"
10405 eval additional_libdir=\"$libdir\"
10407 exec_prefix="$acl_save_exec_prefix"
10408 prefix="$acl_save_prefix"
10411 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10412 if test "${with_libiconv_prefix+set}" = set; then
10413 withval="$with_libiconv_prefix"
10415 if test "X$withval" = "Xno"; then
10416 use_additional=no
10417 else
10418 if test "X$withval" = "X"; then
10420 acl_save_prefix="$prefix"
10421 prefix="$acl_final_prefix"
10422 acl_save_exec_prefix="$exec_prefix"
10423 exec_prefix="$acl_final_exec_prefix"
10425 eval additional_includedir=\"$includedir\"
10426 eval additional_libdir=\"$libdir\"
10428 exec_prefix="$acl_save_exec_prefix"
10429 prefix="$acl_save_prefix"
10431 else
10432 additional_includedir="$withval/include"
10433 additional_libdir="$withval/lib"
10438 LIBICONV=
10439 LTLIBICONV=
10440 INCICONV=
10441 rpathdirs=
10442 ltrpathdirs=
10443 names_already_handled=
10444 names_next_round='iconv '
10445 while test -n "$names_next_round"; do
10446 names_this_round="$names_next_round"
10447 names_next_round=
10448 for name in $names_this_round; do
10449 already_handled=
10450 for n in $names_already_handled; do
10451 if test "$n" = "$name"; then
10452 already_handled=yes
10453 break
10455 done
10456 if test -z "$already_handled"; then
10457 names_already_handled="$names_already_handled $name"
10458 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10459 eval value=\"\$HAVE_LIB$uppername\"
10460 if test -n "$value"; then
10461 if test "$value" = yes; then
10462 eval value=\"\$LIB$uppername\"
10463 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10464 eval value=\"\$LTLIB$uppername\"
10465 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10466 else
10469 else
10470 found_dir=
10471 found_la=
10472 found_so=
10473 found_a=
10474 if test $use_additional = yes; then
10475 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10476 found_dir="$additional_libdir"
10477 found_so="$additional_libdir/lib$name.$shlibext"
10478 if test -f "$additional_libdir/lib$name.la"; then
10479 found_la="$additional_libdir/lib$name.la"
10481 else
10482 if test -f "$additional_libdir/lib$name.$libext"; then
10483 found_dir="$additional_libdir"
10484 found_a="$additional_libdir/lib$name.$libext"
10485 if test -f "$additional_libdir/lib$name.la"; then
10486 found_la="$additional_libdir/lib$name.la"
10491 if test "X$found_dir" = "X"; then
10492 for x in $LDFLAGS $LTLIBICONV; do
10494 acl_save_prefix="$prefix"
10495 prefix="$acl_final_prefix"
10496 acl_save_exec_prefix="$exec_prefix"
10497 exec_prefix="$acl_final_exec_prefix"
10498 eval x=\"$x\"
10499 exec_prefix="$acl_save_exec_prefix"
10500 prefix="$acl_save_prefix"
10502 case "$x" in
10503 -L*)
10504 dir=`echo "X$x" | sed -e 's/^X-L//'`
10505 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10506 found_dir="$dir"
10507 found_so="$dir/lib$name.$shlibext"
10508 if test -f "$dir/lib$name.la"; then
10509 found_la="$dir/lib$name.la"
10511 else
10512 if test -f "$dir/lib$name.$libext"; then
10513 found_dir="$dir"
10514 found_a="$dir/lib$name.$libext"
10515 if test -f "$dir/lib$name.la"; then
10516 found_la="$dir/lib$name.la"
10521 esac
10522 if test "X$found_dir" != "X"; then
10523 break
10525 done
10527 if test "X$found_dir" != "X"; then
10528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10529 if test "X$found_so" != "X"; then
10530 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10531 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10532 else
10533 haveit=
10534 for x in $ltrpathdirs; do
10535 if test "X$x" = "X$found_dir"; then
10536 haveit=yes
10537 break
10539 done
10540 if test -z "$haveit"; then
10541 ltrpathdirs="$ltrpathdirs $found_dir"
10543 if test "$hardcode_direct" = yes; then
10544 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10545 else
10546 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10547 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10548 haveit=
10549 for x in $rpathdirs; do
10550 if test "X$x" = "X$found_dir"; then
10551 haveit=yes
10552 break
10554 done
10555 if test -z "$haveit"; then
10556 rpathdirs="$rpathdirs $found_dir"
10558 else
10559 haveit=
10560 for x in $LDFLAGS $LIBICONV; do
10562 acl_save_prefix="$prefix"
10563 prefix="$acl_final_prefix"
10564 acl_save_exec_prefix="$exec_prefix"
10565 exec_prefix="$acl_final_exec_prefix"
10566 eval x=\"$x\"
10567 exec_prefix="$acl_save_exec_prefix"
10568 prefix="$acl_save_prefix"
10570 if test "X$x" = "X-L$found_dir"; then
10571 haveit=yes
10572 break
10574 done
10575 if test -z "$haveit"; then
10576 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10578 if test "$hardcode_minus_L" != no; then
10579 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10580 else
10581 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10586 else
10587 if test "X$found_a" != "X"; then
10588 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10589 else
10590 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10593 additional_includedir=
10594 case "$found_dir" in
10595 */lib | */lib/)
10596 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10597 additional_includedir="$basedir/include"
10599 esac
10600 if test "X$additional_includedir" != "X"; then
10601 if test "X$additional_includedir" != "X/usr/include"; then
10602 haveit=
10603 if test "X$additional_includedir" = "X/usr/local/include"; then
10604 if test -n "$GCC"; then
10605 case $host_os in
10606 linux*) haveit=yes;;
10607 esac
10610 if test -z "$haveit"; then
10611 for x in $CPPFLAGS $INCICONV; do
10613 acl_save_prefix="$prefix"
10614 prefix="$acl_final_prefix"
10615 acl_save_exec_prefix="$exec_prefix"
10616 exec_prefix="$acl_final_exec_prefix"
10617 eval x=\"$x\"
10618 exec_prefix="$acl_save_exec_prefix"
10619 prefix="$acl_save_prefix"
10621 if test "X$x" = "X-I$additional_includedir"; then
10622 haveit=yes
10623 break
10625 done
10626 if test -z "$haveit"; then
10627 if test -d "$additional_includedir"; then
10628 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10634 if test -n "$found_la"; then
10635 save_libdir="$libdir"
10636 case "$found_la" in
10637 */* | *\\*) . "$found_la" ;;
10638 *) . "./$found_la" ;;
10639 esac
10640 libdir="$save_libdir"
10641 for dep in $dependency_libs; do
10642 case "$dep" in
10643 -L*)
10644 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10645 if test "X$additional_libdir" != "X/usr/lib"; then
10646 haveit=
10647 if test "X$additional_libdir" = "X/usr/local/lib"; then
10648 if test -n "$GCC"; then
10649 case $host_os in
10650 linux*) haveit=yes;;
10651 esac
10654 if test -z "$haveit"; then
10655 haveit=
10656 for x in $LDFLAGS $LIBICONV; do
10658 acl_save_prefix="$prefix"
10659 prefix="$acl_final_prefix"
10660 acl_save_exec_prefix="$exec_prefix"
10661 exec_prefix="$acl_final_exec_prefix"
10662 eval x=\"$x\"
10663 exec_prefix="$acl_save_exec_prefix"
10664 prefix="$acl_save_prefix"
10666 if test "X$x" = "X-L$additional_libdir"; then
10667 haveit=yes
10668 break
10670 done
10671 if test -z "$haveit"; then
10672 if test -d "$additional_libdir"; then
10673 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10676 haveit=
10677 for x in $LDFLAGS $LTLIBICONV; do
10679 acl_save_prefix="$prefix"
10680 prefix="$acl_final_prefix"
10681 acl_save_exec_prefix="$exec_prefix"
10682 exec_prefix="$acl_final_exec_prefix"
10683 eval x=\"$x\"
10684 exec_prefix="$acl_save_exec_prefix"
10685 prefix="$acl_save_prefix"
10687 if test "X$x" = "X-L$additional_libdir"; then
10688 haveit=yes
10689 break
10691 done
10692 if test -z "$haveit"; then
10693 if test -d "$additional_libdir"; then
10694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10700 -R*)
10701 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10702 if test "$enable_rpath" != no; then
10703 haveit=
10704 for x in $rpathdirs; do
10705 if test "X$x" = "X$dir"; then
10706 haveit=yes
10707 break
10709 done
10710 if test -z "$haveit"; then
10711 rpathdirs="$rpathdirs $dir"
10713 haveit=
10714 for x in $ltrpathdirs; do
10715 if test "X$x" = "X$dir"; then
10716 haveit=yes
10717 break
10719 done
10720 if test -z "$haveit"; then
10721 ltrpathdirs="$ltrpathdirs $dir"
10725 -l*)
10726 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10728 *.la)
10729 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10732 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10733 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10735 esac
10736 done
10738 else
10739 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10740 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10744 done
10745 done
10746 if test "X$rpathdirs" != "X"; then
10747 if test -n "$hardcode_libdir_separator"; then
10748 alldirs=
10749 for found_dir in $rpathdirs; do
10750 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10751 done
10752 acl_save_libdir="$libdir"
10753 libdir="$alldirs"
10754 eval flag=\"$hardcode_libdir_flag_spec\"
10755 libdir="$acl_save_libdir"
10756 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10757 else
10758 for found_dir in $rpathdirs; do
10759 acl_save_libdir="$libdir"
10760 libdir="$found_dir"
10761 eval flag=\"$hardcode_libdir_flag_spec\"
10762 libdir="$acl_save_libdir"
10763 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10764 done
10767 if test "X$ltrpathdirs" != "X"; then
10768 for found_dir in $ltrpathdirs; do
10769 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10770 done
10779 am_save_CPPFLAGS="$CPPFLAGS"
10781 for element in $INCICONV; do
10782 haveit=
10783 for x in $CPPFLAGS; do
10785 acl_save_prefix="$prefix"
10786 prefix="$acl_final_prefix"
10787 acl_save_exec_prefix="$exec_prefix"
10788 exec_prefix="$acl_final_exec_prefix"
10789 eval x=\"$x\"
10790 exec_prefix="$acl_save_exec_prefix"
10791 prefix="$acl_save_prefix"
10793 if test "X$x" = "X$element"; then
10794 haveit=yes
10795 break
10797 done
10798 if test -z "$haveit"; then
10799 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10801 done
10804 echo "$as_me:$LINENO: checking for iconv" >&5
10805 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10806 if test "${am_cv_func_iconv+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10810 am_cv_func_iconv="no, consider installing GNU libiconv"
10811 am_cv_lib_iconv=no
10812 if test x$gcc_no_link = xyes; then
10813 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10815 { (exit 1); exit 1; }; }
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 #include <stdlib.h>
10824 #include <iconv.h>
10826 main ()
10828 iconv_t cd = iconv_open("","");
10829 iconv(cd,NULL,NULL,NULL,NULL);
10830 iconv_close(cd);
10832 return 0;
10834 _ACEOF
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 am_cv_func_iconv=yes
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10863 rm -f conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 if test "$am_cv_func_iconv" != yes; then
10866 am_save_LIBS="$LIBS"
10867 LIBS="$LIBS $LIBICONV"
10868 if test x$gcc_no_link = xyes; then
10869 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10870 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10871 { (exit 1); exit 1; }; }
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h. */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 #include <stdlib.h>
10880 #include <iconv.h>
10882 main ()
10884 iconv_t cd = iconv_open("","");
10885 iconv(cd,NULL,NULL,NULL,NULL);
10886 iconv_close(cd);
10888 return 0;
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -z "$ac_c_werror_flag"
10901 || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 am_cv_lib_iconv=yes
10914 am_cv_func_iconv=yes
10915 else
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10920 rm -f conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 LIBS="$am_save_LIBS"
10926 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10927 echo "${ECHO_T}$am_cv_func_iconv" >&6
10928 if test "$am_cv_func_iconv" = yes; then
10930 cat >>confdefs.h <<\_ACEOF
10931 #define HAVE_ICONV 1
10932 _ACEOF
10935 if test "$am_cv_lib_iconv" = yes; then
10936 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10937 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10938 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10939 echo "${ECHO_T}$LIBICONV" >&6
10940 else
10941 CPPFLAGS="$am_save_CPPFLAGS"
10942 LIBICONV=
10943 LTLIBICONV=
10948 if test "$am_cv_func_iconv" = yes; then
10949 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10950 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10951 if test "${am_cv_proto_iconv+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 #include <stdlib.h>
10963 #include <iconv.h>
10964 extern
10965 #ifdef __cplusplus
10967 #endif
10968 #if defined(__STDC__) || defined(__cplusplus)
10969 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10970 #else
10971 size_t iconv();
10972 #endif
10975 main ()
10979 return 0;
10981 _ACEOF
10982 rm -f conftest.$ac_objext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984 (eval $ac_compile) 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try='test -z "$ac_c_werror_flag"
10992 || test ! -s conftest.err'
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); }; } &&
10998 { ac_try='test -s conftest.$ac_objext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 am_cv_proto_iconv_arg1=""
11005 else
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 am_cv_proto_iconv_arg1="const"
11011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11012 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);"
11015 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11016 echo "$as_me:$LINENO: result: ${ac_t:-
11017 }$am_cv_proto_iconv" >&5
11018 echo "${ECHO_T}${ac_t:-
11019 }$am_cv_proto_iconv" >&6
11021 cat >>confdefs.h <<_ACEOF
11022 #define ICONV_CONST $am_cv_proto_iconv_arg1
11023 _ACEOF
11028 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11029 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11030 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033 if test x$gcc_no_link = xyes; then
11034 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11036 { (exit 1); exit 1; }; }
11038 cat >conftest.$ac_ext <<_ACEOF
11039 /* confdefs.h. */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 #include <locale.h>
11046 main ()
11048 return LC_MESSAGES
11050 return 0;
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 am_cv_val_LC_MESSAGES=yes
11076 else
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 am_cv_val_LC_MESSAGES=no
11082 rm -f conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11085 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11086 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11087 if test $am_cv_val_LC_MESSAGES = yes; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_LC_MESSAGES 1
11091 _ACEOF
11095 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11096 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11097 if test "${ac_cv_struct_tm+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h. */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 #include <sys/types.h>
11107 #include <time.h>
11110 main ()
11112 struct tm *tp; tp->tm_sec;
11114 return 0;
11116 _ACEOF
11117 rm -f conftest.$ac_objext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } &&
11126 { ac_try='test -z "$ac_c_werror_flag"
11127 || test ! -s conftest.err'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; } &&
11133 { ac_try='test -s conftest.$ac_objext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_struct_tm=time.h
11140 else
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ac_cv_struct_tm=sys/time.h
11146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11148 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11149 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11150 if test $ac_cv_struct_tm = sys/time.h; then
11152 cat >>confdefs.h <<\_ACEOF
11153 #define TM_IN_SYS_TIME 1
11154 _ACEOF
11158 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11159 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11160 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 #include <sys/types.h>
11170 #include <$ac_cv_struct_tm>
11174 main ()
11176 static struct tm ac_aggr;
11177 if (ac_aggr.tm_zone)
11178 return 0;
11180 return 0;
11182 _ACEOF
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_c_werror_flag"
11193 || test ! -s conftest.err'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try='test -s conftest.$ac_objext'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_cv_member_struct_tm_tm_zone=yes
11206 else
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 #include <sys/types.h>
11217 #include <$ac_cv_struct_tm>
11221 main ()
11223 static struct tm ac_aggr;
11224 if (sizeof ac_aggr.tm_zone)
11225 return 0;
11227 return 0;
11229 _ACEOF
11230 rm -f conftest.$ac_objext
11231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11232 (eval $ac_compile) 2>conftest.er1
11233 ac_status=$?
11234 grep -v '^ *+' conftest.er1 >conftest.err
11235 rm -f conftest.er1
11236 cat conftest.err >&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } &&
11239 { ac_try='test -z "$ac_c_werror_flag"
11240 || test ! -s conftest.err'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest.$ac_objext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 ac_cv_member_struct_tm_tm_zone=yes
11253 else
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_cv_member_struct_tm_tm_zone=no
11259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11264 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11265 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11267 cat >>confdefs.h <<_ACEOF
11268 #define HAVE_STRUCT_TM_TM_ZONE 1
11269 _ACEOF
11274 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11276 cat >>confdefs.h <<\_ACEOF
11277 #define HAVE_TM_ZONE 1
11278 _ACEOF
11280 else
11281 echo "$as_me:$LINENO: checking for tzname" >&5
11282 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11283 if test "${ac_cv_var_tzname+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 else
11286 if test x$gcc_no_link = xyes; then
11287 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11288 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11289 { (exit 1); exit 1; }; }
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h. */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 #include <time.h>
11298 #ifndef tzname /* For SGI. */
11299 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11300 #endif
11303 main ()
11305 atoi(*tzname);
11307 return 0;
11309 _ACEOF
11310 rm -f conftest.$ac_objext conftest$ac_exeext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11312 (eval $ac_link) 2>conftest.er1
11313 ac_status=$?
11314 grep -v '^ *+' conftest.er1 >conftest.err
11315 rm -f conftest.er1
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -z "$ac_c_werror_flag"
11320 || test ! -s conftest.err'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try='test -s conftest$ac_exeext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_var_tzname=yes
11333 else
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_cv_var_tzname=no
11339 rm -f conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
11342 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11343 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11344 if test $ac_cv_var_tzname = yes; then
11346 cat >>confdefs.h <<\_ACEOF
11347 #define HAVE_TZNAME 1
11348 _ACEOF
11356 for ac_func in gethostbyname_r
11358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11359 echo "$as_me:$LINENO: checking for $ac_func" >&5
11360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11361 if eval "test \"\${$as_ac_var+set}\" = set"; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364 if test x$gcc_no_link = xyes; then
11365 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11367 { (exit 1); exit 1; }; }
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11377 #define $ac_func innocuous_$ac_func
11379 /* System header to define __stub macros and hopefully few prototypes,
11380 which can conflict with char $ac_func (); below.
11381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11382 <limits.h> exists even on freestanding compilers. */
11384 #ifdef __STDC__
11385 # include <limits.h>
11386 #else
11387 # include <assert.h>
11388 #endif
11390 #undef $ac_func
11392 /* Override any gcc2 internal prototype to avoid an error. */
11393 #ifdef __cplusplus
11394 extern "C"
11396 #endif
11397 /* We use char because int might match the return type of a gcc2
11398 builtin and then its argument prototype would still apply. */
11399 char $ac_func ();
11400 /* The GNU C library defines this for functions which it implements
11401 to always fail with ENOSYS. Some functions are actually named
11402 something starting with __ and the normal name is an alias. */
11403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11404 choke me
11405 #else
11406 char (*f) () = $ac_func;
11407 #endif
11408 #ifdef __cplusplus
11410 #endif
11413 main ()
11415 return f != $ac_func;
11417 return 0;
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_c_werror_flag"
11430 || test ! -s conftest.err'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 eval "$as_ac_var=yes"
11443 else
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11447 eval "$as_ac_var=no"
11449 rm -f conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11454 if test `eval echo '${'$as_ac_var'}'` = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11457 _ACEOF
11460 cat >>confdefs.h <<\_ACEOF
11461 #define HAVE_GETHOSTBYNAME_R 1
11462 _ACEOF
11464 # There are two different kinds of gethostbyname_r.
11465 # We look for the one that returns `int'.
11466 # Hopefully this check is robust enough.
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 #include <netdb.h>
11475 _ACEOF
11476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11477 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11480 cat >>confdefs.h <<\_ACEOF
11481 #define GETHOSTBYNAME_R_RETURNS_INT 1
11482 _ACEOF
11485 rm -f conftest*
11488 case " $GCINCS " in
11489 *" -D_REENTRANT "*) ;;
11491 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11492 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11493 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496 ac_ext=cc
11497 ac_cpp='$CXXCPP $CPPFLAGS'
11498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 #include <netdb.h>
11510 main ()
11512 gethostbyname_r("", 0, 0);
11514 return 0;
11516 _ACEOF
11517 rm -f conftest.$ac_objext
11518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11519 (eval $ac_compile) 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
11526 { ac_try='test -z "$ac_cxx_werror_flag"
11527 || test ! -s conftest.err'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest.$ac_objext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 libjava_cv_gethostbyname_r_needs_reentrant=no
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 CPPFLAGS_SAVE="$CPPFLAGS"
11545 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h. */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 #include <netdb.h>
11554 main ()
11556 gethostbyname_r("", 0, 0);
11558 return 0;
11560 _ACEOF
11561 rm -f conftest.$ac_objext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11563 (eval $ac_compile) 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_cxx_werror_flag"
11571 || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 libjava_cv_gethostbyname_r_needs_reentrant=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 libjava_cv_gethostbyname_r_needs_reentrant=fail
11590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11591 CPPFLAGS="$CPPFLAGS_SAVE"
11594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11595 ac_ext=c
11596 ac_cpp='$CPP $CPPFLAGS'
11597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11603 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11604 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11605 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11607 cat >>confdefs.h <<\_ACEOF
11608 #define _REENTRANT 1
11609 _ACEOF
11613 esac
11615 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11616 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11617 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11627 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11628 # define _REENTRANT 1
11629 #endif
11630 #include <netdb.h>
11632 main ()
11634 struct hostent_data data;
11636 return 0;
11638 _ACEOF
11639 rm -f conftest.$ac_objext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11641 (eval $ac_compile) 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -z "$ac_c_werror_flag"
11649 || test ! -s conftest.err'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest.$ac_objext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 libjava_cv_struct_hostent_data=yes
11662 else
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 libjava_cv_struct_hostent_data=no
11668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11670 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11671 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11672 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11674 cat >>confdefs.h <<\_ACEOF
11675 #define HAVE_STRUCT_HOSTENT_DATA 1
11676 _ACEOF
11681 done
11684 # FIXME: libjava source code expects to find a prototype for
11685 # gethostbyaddr_r in netdb.h. The outer check ensures that
11686 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11687 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11688 # linkage check is enough, yet C++ code requires proper prototypes.)
11689 cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h. */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 #include <netdb.h>
11697 _ACEOF
11698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11699 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11702 for ac_func in gethostbyaddr_r
11704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11705 echo "$as_me:$LINENO: checking for $ac_func" >&5
11706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11707 if eval "test \"\${$as_ac_var+set}\" = set"; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710 if test x$gcc_no_link = xyes; then
11711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11713 { (exit 1); exit 1; }; }
11715 cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h. */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11723 #define $ac_func innocuous_$ac_func
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char $ac_func (); below.
11727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728 <limits.h> exists even on freestanding compilers. */
11730 #ifdef __STDC__
11731 # include <limits.h>
11732 #else
11733 # include <assert.h>
11734 #endif
11736 #undef $ac_func
11738 /* Override any gcc2 internal prototype to avoid an error. */
11739 #ifdef __cplusplus
11740 extern "C"
11742 #endif
11743 /* We use char because int might match the return type of a gcc2
11744 builtin and then its argument prototype would still apply. */
11745 char $ac_func ();
11746 /* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
11749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11750 choke me
11751 #else
11752 char (*f) () = $ac_func;
11753 #endif
11754 #ifdef __cplusplus
11756 #endif
11759 main ()
11761 return f != $ac_func;
11763 return 0;
11765 _ACEOF
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag"
11776 || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest$ac_exeext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 eval "$as_ac_var=yes"
11789 else
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 eval "$as_ac_var=no"
11795 rm -f conftest.err conftest.$ac_objext \
11796 conftest$ac_exeext conftest.$ac_ext
11798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11800 if test `eval echo '${'$as_ac_var'}'` = yes; then
11801 cat >>confdefs.h <<_ACEOF
11802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11803 _ACEOF
11806 cat >>confdefs.h <<\_ACEOF
11807 #define HAVE_GETHOSTBYADDR_R 1
11808 _ACEOF
11810 # There are two different kinds of gethostbyaddr_r.
11811 # We look for the one that returns `int'.
11812 # Hopefully this check is robust enough.
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <netdb.h>
11821 _ACEOF
11822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11823 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11826 cat >>confdefs.h <<\_ACEOF
11827 #define GETHOSTBYADDR_R_RETURNS_INT 1
11828 _ACEOF
11831 rm -f conftest*
11834 done
11837 rm -f conftest*
11841 for ac_func in gethostname
11843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11844 echo "$as_me:$LINENO: checking for $ac_func" >&5
11845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11846 if eval "test \"\${$as_ac_var+set}\" = set"; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849 if test x$gcc_no_link = xyes; then
11850 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11851 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11852 { (exit 1); exit 1; }; }
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862 #define $ac_func innocuous_$ac_func
11864 /* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11869 #ifdef __STDC__
11870 # include <limits.h>
11871 #else
11872 # include <assert.h>
11873 #endif
11875 #undef $ac_func
11877 /* Override any gcc2 internal prototype to avoid an error. */
11878 #ifdef __cplusplus
11879 extern "C"
11881 #endif
11882 /* We use char because int might match the return type of a gcc2
11883 builtin and then its argument prototype would still apply. */
11884 char $ac_func ();
11885 /* The GNU C library defines this for functions which it implements
11886 to always fail with ENOSYS. Some functions are actually named
11887 something starting with __ and the normal name is an alias. */
11888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11889 choke me
11890 #else
11891 char (*f) () = $ac_func;
11892 #endif
11893 #ifdef __cplusplus
11895 #endif
11898 main ()
11900 return f != $ac_func;
11902 return 0;
11904 _ACEOF
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907 (eval $ac_link) 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } &&
11914 { ac_try='test -z "$ac_c_werror_flag"
11915 || test ! -s conftest.err'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; } &&
11921 { ac_try='test -s conftest$ac_exeext'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 eval "$as_ac_var=yes"
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 eval "$as_ac_var=no"
11934 rm -f conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11939 if test `eval echo '${'$as_ac_var'}'` = yes; then
11940 cat >>confdefs.h <<_ACEOF
11941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11942 _ACEOF
11945 cat >>confdefs.h <<\_ACEOF
11946 #define HAVE_GETHOSTNAME 1
11947 _ACEOF
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955 #include <unistd.h>
11957 _ACEOF
11958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11959 $EGREP "gethostname" >/dev/null 2>&1; then
11962 cat >>confdefs.h <<\_ACEOF
11963 #define HAVE_GETHOSTNAME_DECL 1
11964 _ACEOF
11967 rm -f conftest*
11970 done
11974 for ac_func in usleep
11976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11977 echo "$as_me:$LINENO: checking for $ac_func" >&5
11978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11979 if eval "test \"\${$as_ac_var+set}\" = set"; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 if test x$gcc_no_link = xyes; then
11983 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11984 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11985 { (exit 1); exit 1; }; }
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h. */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11995 #define $ac_func innocuous_$ac_func
11997 /* System header to define __stub macros and hopefully few prototypes,
11998 which can conflict with char $ac_func (); below.
11999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12000 <limits.h> exists even on freestanding compilers. */
12002 #ifdef __STDC__
12003 # include <limits.h>
12004 #else
12005 # include <assert.h>
12006 #endif
12008 #undef $ac_func
12010 /* Override any gcc2 internal prototype to avoid an error. */
12011 #ifdef __cplusplus
12012 extern "C"
12014 #endif
12015 /* We use char because int might match the return type of a gcc2
12016 builtin and then its argument prototype would still apply. */
12017 char $ac_func ();
12018 /* The GNU C library defines this for functions which it implements
12019 to always fail with ENOSYS. Some functions are actually named
12020 something starting with __ and the normal name is an alias. */
12021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12022 choke me
12023 #else
12024 char (*f) () = $ac_func;
12025 #endif
12026 #ifdef __cplusplus
12028 #endif
12031 main ()
12033 return f != $ac_func;
12035 return 0;
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040 (eval $ac_link) 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag"
12048 || test ! -s conftest.err'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 eval "$as_ac_var=yes"
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 eval "$as_ac_var=no"
12067 rm -f conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12072 if test `eval echo '${'$as_ac_var'}'` = yes; then
12073 cat >>confdefs.h <<_ACEOF
12074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12075 _ACEOF
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h. */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <unistd.h>
12085 _ACEOF
12086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12087 $EGREP "usleep" >/dev/null 2>&1; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_USLEEP_DECL 1
12092 _ACEOF
12095 rm -f conftest*
12098 done
12101 # Look for these functions in the thread library, but only bother
12102 # if using POSIX threads.
12103 if test "$THREADS" = posix; then
12104 save_LIBS="$LIBS"
12105 LIBS="$LIBS $THREADLIBS"
12106 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12107 # E.g., Solaris.
12110 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12113 echo "$as_me:$LINENO: checking for $ac_func" >&5
12114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12115 if eval "test \"\${$as_ac_var+set}\" = set"; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118 if test x$gcc_no_link = xyes; then
12119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12121 { (exit 1); exit 1; }; }
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h. */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12131 #define $ac_func innocuous_$ac_func
12133 /* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char $ac_func (); below.
12135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12136 <limits.h> exists even on freestanding compilers. */
12138 #ifdef __STDC__
12139 # include <limits.h>
12140 #else
12141 # include <assert.h>
12142 #endif
12144 #undef $ac_func
12146 /* Override any gcc2 internal prototype to avoid an error. */
12147 #ifdef __cplusplus
12148 extern "C"
12150 #endif
12151 /* We use char because int might match the return type of a gcc2
12152 builtin and then its argument prototype would still apply. */
12153 char $ac_func ();
12154 /* The GNU C library defines this for functions which it implements
12155 to always fail with ENOSYS. Some functions are actually named
12156 something starting with __ and the normal name is an alias. */
12157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12158 choke me
12159 #else
12160 char (*f) () = $ac_func;
12161 #endif
12162 #ifdef __cplusplus
12164 #endif
12167 main ()
12169 return f != $ac_func;
12171 return 0;
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12176 (eval $ac_link) 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag"
12184 || test ! -s conftest.err'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; } &&
12190 { ac_try='test -s conftest$ac_exeext'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12196 eval "$as_ac_var=yes"
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 eval "$as_ac_var=no"
12203 rm -f conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12208 if test `eval echo '${'$as_ac_var'}'` = yes; then
12209 cat >>confdefs.h <<_ACEOF
12210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12211 _ACEOF
12214 done
12217 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12218 # Solaris 7 the name librt is preferred.
12220 for ac_func in sched_yield
12222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 echo "$as_me:$LINENO: checking for $ac_func" >&5
12224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12225 if eval "test \"\${$as_ac_var+set}\" = set"; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228 if test x$gcc_no_link = xyes; then
12229 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12230 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12231 { (exit 1); exit 1; }; }
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12241 #define $ac_func innocuous_$ac_func
12243 /* System header to define __stub macros and hopefully few prototypes,
12244 which can conflict with char $ac_func (); below.
12245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12246 <limits.h> exists even on freestanding compilers. */
12248 #ifdef __STDC__
12249 # include <limits.h>
12250 #else
12251 # include <assert.h>
12252 #endif
12254 #undef $ac_func
12256 /* Override any gcc2 internal prototype to avoid an error. */
12257 #ifdef __cplusplus
12258 extern "C"
12260 #endif
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263 char $ac_func ();
12264 /* The GNU C library defines this for functions which it implements
12265 to always fail with ENOSYS. Some functions are actually named
12266 something starting with __ and the normal name is an alias. */
12267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12268 choke me
12269 #else
12270 char (*f) () = $ac_func;
12271 #endif
12272 #ifdef __cplusplus
12274 #endif
12277 main ()
12279 return f != $ac_func;
12281 return 0;
12283 _ACEOF
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286 (eval $ac_link) 2>conftest.er1
12287 ac_status=$?
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -z "$ac_c_werror_flag"
12294 || test ! -s conftest.err'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest$ac_exeext'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 eval "$as_ac_var=yes"
12307 else
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 eval "$as_ac_var=no"
12313 rm -f conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12318 if test `eval echo '${'$as_ac_var'}'` = yes; then
12319 cat >>confdefs.h <<_ACEOF
12320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12321 _ACEOF
12323 else
12325 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12326 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12327 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 else
12330 ac_check_lib_save_LIBS=$LIBS
12331 LIBS="-lrt $LIBS"
12332 if test x$gcc_no_link = xyes; then
12333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12335 { (exit 1); exit 1; }; }
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12344 /* Override any gcc2 internal prototype to avoid an error. */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 /* We use char because int might match the return type of a gcc2
12349 builtin and then its argument prototype would still apply. */
12350 char sched_yield ();
12352 main ()
12354 sched_yield ();
12356 return 0;
12358 _ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12361 (eval $ac_link) 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest$ac_exeext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_lib_rt_sched_yield=yes
12382 else
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_cv_lib_rt_sched_yield=no
12388 rm -f conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390 LIBS=$ac_check_lib_save_LIBS
12392 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12393 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12394 if test $ac_cv_lib_rt_sched_yield = yes; then
12396 cat >>confdefs.h <<\_ACEOF
12397 #define HAVE_SCHED_YIELD 1
12398 _ACEOF
12400 THREADLIBS="$THREADLIBS -lrt"
12401 THREADSPEC="$THREADSPEC -lrt"
12402 else
12404 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12405 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12406 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409 ac_check_lib_save_LIBS=$LIBS
12410 LIBS="-lposix4 $LIBS"
12411 if test x$gcc_no_link = xyes; then
12412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12414 { (exit 1); exit 1; }; }
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h. */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12423 /* Override any gcc2 internal prototype to avoid an error. */
12424 #ifdef __cplusplus
12425 extern "C"
12426 #endif
12427 /* We use char because int might match the return type of a gcc2
12428 builtin and then its argument prototype would still apply. */
12429 char sched_yield ();
12431 main ()
12433 sched_yield ();
12435 return 0;
12437 _ACEOF
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440 (eval $ac_link) 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_lib_posix4_sched_yield=yes
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 ac_cv_lib_posix4_sched_yield=no
12467 rm -f conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12471 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12472 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12473 if test $ac_cv_lib_posix4_sched_yield = yes; then
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_SCHED_YIELD 1
12477 _ACEOF
12479 THREADLIBS="$THREADLIBS -lposix4"
12480 THREADSPEC="$THREADSPEC -lposix4"
12486 done
12489 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12490 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12491 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-lrt $LIBS"
12496 if test x$gcc_no_link = xyes; then
12497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12499 { (exit 1); exit 1; }; }
12501 cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h. */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12508 /* Override any gcc2 internal prototype to avoid an error. */
12509 #ifdef __cplusplus
12510 extern "C"
12511 #endif
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12514 char clock_gettime ();
12516 main ()
12518 clock_gettime ();
12520 return 0;
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_cv_lib_rt_clock_gettime=yes
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_cv_lib_rt_clock_gettime=no
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12554 LIBS=$ac_check_lib_save_LIBS
12556 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12557 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12558 if test $ac_cv_lib_rt_clock_gettime = yes; then
12561 cat >>confdefs.h <<\_ACEOF
12562 #define HAVE_CLOCK_GETTIME 1
12563 _ACEOF
12565 case "$THREADSPEC" in
12566 *-lrt*) ;;
12568 THREADSPEC="$THREADSPEC -lrt"
12569 THREADLIBS="$THREADLIBS -lrt"
12571 esac
12575 LIBS="$save_LIBS"
12577 # We can save a little space at runtime if the mutex has m_count
12578 # or __m_count. This is a nice hack for Linux.
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h. */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 #include <pthread.h>
12587 main ()
12590 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12593 return 0;
12595 _ACEOF
12596 rm -f conftest.$ac_objext
12597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12598 (eval $ac_compile) 2>conftest.er1
12599 ac_status=$?
12600 grep -v '^ *+' conftest.er1 >conftest.err
12601 rm -f conftest.er1
12602 cat conftest.err >&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } &&
12605 { ac_try='test -z "$ac_c_werror_flag"
12606 || test ! -s conftest.err'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; } &&
12612 { ac_try='test -s conftest.$ac_objext'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12619 cat >>confdefs.h <<\_ACEOF
12620 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12621 _ACEOF
12623 else
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12628 cat >conftest.$ac_ext <<_ACEOF
12629 /* confdefs.h. */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12634 #include <pthread.h>
12636 main ()
12639 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12642 return 0;
12644 _ACEOF
12645 rm -f conftest.$ac_objext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647 (eval $ac_compile) 2>conftest.er1
12648 ac_status=$?
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -z "$ac_c_werror_flag"
12655 || test ! -s conftest.err'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest.$ac_objext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12668 cat >>confdefs.h <<\_ACEOF
12669 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12670 _ACEOF
12672 else
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12682 # We require a way to get the time.
12683 time_found=no
12687 for ac_func in gettimeofday time ftime
12689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12690 echo "$as_me:$LINENO: checking for $ac_func" >&5
12691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12692 if eval "test \"\${$as_ac_var+set}\" = set"; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695 if test x$gcc_no_link = xyes; then
12696 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12698 { (exit 1); exit 1; }; }
12700 cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h. */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12708 #define $ac_func innocuous_$ac_func
12710 /* System header to define __stub macros and hopefully few prototypes,
12711 which can conflict with char $ac_func (); below.
12712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12713 <limits.h> exists even on freestanding compilers. */
12715 #ifdef __STDC__
12716 # include <limits.h>
12717 #else
12718 # include <assert.h>
12719 #endif
12721 #undef $ac_func
12723 /* Override any gcc2 internal prototype to avoid an error. */
12724 #ifdef __cplusplus
12725 extern "C"
12727 #endif
12728 /* We use char because int might match the return type of a gcc2
12729 builtin and then its argument prototype would still apply. */
12730 char $ac_func ();
12731 /* The GNU C library defines this for functions which it implements
12732 to always fail with ENOSYS. Some functions are actually named
12733 something starting with __ and the normal name is an alias. */
12734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12735 choke me
12736 #else
12737 char (*f) () = $ac_func;
12738 #endif
12739 #ifdef __cplusplus
12741 #endif
12744 main ()
12746 return f != $ac_func;
12748 return 0;
12750 _ACEOF
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753 (eval $ac_link) 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag"
12761 || test ! -s conftest.err'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest$ac_exeext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 eval "$as_ac_var=yes"
12774 else
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12778 eval "$as_ac_var=no"
12780 rm -f conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12785 if test `eval echo '${'$as_ac_var'}'` = yes; then
12786 cat >>confdefs.h <<_ACEOF
12787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12788 _ACEOF
12789 time_found=yes
12791 done
12793 if test "$time_found" = no; then
12794 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12795 echo "$as_me: error: no function found to get the time" >&2;}
12796 { (exit 1); exit 1; }; }
12800 for ac_func in memmove
12802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12803 echo "$as_me:$LINENO: checking for $ac_func" >&5
12804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12805 if eval "test \"\${$as_ac_var+set}\" = set"; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808 if test x$gcc_no_link = xyes; then
12809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12811 { (exit 1); exit 1; }; }
12813 cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h. */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12821 #define $ac_func innocuous_$ac_func
12823 /* System header to define __stub macros and hopefully few prototypes,
12824 which can conflict with char $ac_func (); below.
12825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12826 <limits.h> exists even on freestanding compilers. */
12828 #ifdef __STDC__
12829 # include <limits.h>
12830 #else
12831 # include <assert.h>
12832 #endif
12834 #undef $ac_func
12836 /* Override any gcc2 internal prototype to avoid an error. */
12837 #ifdef __cplusplus
12838 extern "C"
12840 #endif
12841 /* We use char because int might match the return type of a gcc2
12842 builtin and then its argument prototype would still apply. */
12843 char $ac_func ();
12844 /* The GNU C library defines this for functions which it implements
12845 to always fail with ENOSYS. Some functions are actually named
12846 something starting with __ and the normal name is an alias. */
12847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12848 choke me
12849 #else
12850 char (*f) () = $ac_func;
12851 #endif
12852 #ifdef __cplusplus
12854 #endif
12857 main ()
12859 return f != $ac_func;
12861 return 0;
12863 _ACEOF
12864 rm -f conftest.$ac_objext conftest$ac_exeext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866 (eval $ac_link) 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag"
12874 || test ! -s conftest.err'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest$ac_exeext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 eval "$as_ac_var=yes"
12887 else
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12891 eval "$as_ac_var=no"
12893 rm -f conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12898 if test `eval echo '${'$as_ac_var'}'` = yes; then
12899 cat >>confdefs.h <<_ACEOF
12900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12901 _ACEOF
12904 done
12907 # We require memcpy.
12908 memcpy_found=no
12910 for ac_func in memcpy
12912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12913 echo "$as_me:$LINENO: checking for $ac_func" >&5
12914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12915 if eval "test \"\${$as_ac_var+set}\" = set"; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918 if test x$gcc_no_link = xyes; then
12919 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12921 { (exit 1); exit 1; }; }
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12931 #define $ac_func innocuous_$ac_func
12933 /* System header to define __stub macros and hopefully few prototypes,
12934 which can conflict with char $ac_func (); below.
12935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12936 <limits.h> exists even on freestanding compilers. */
12938 #ifdef __STDC__
12939 # include <limits.h>
12940 #else
12941 # include <assert.h>
12942 #endif
12944 #undef $ac_func
12946 /* Override any gcc2 internal prototype to avoid an error. */
12947 #ifdef __cplusplus
12948 extern "C"
12950 #endif
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12953 char $ac_func ();
12954 /* The GNU C library defines this for functions which it implements
12955 to always fail with ENOSYS. Some functions are actually named
12956 something starting with __ and the normal name is an alias. */
12957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12958 choke me
12959 #else
12960 char (*f) () = $ac_func;
12961 #endif
12962 #ifdef __cplusplus
12964 #endif
12967 main ()
12969 return f != $ac_func;
12971 return 0;
12973 _ACEOF
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976 (eval $ac_link) 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -z "$ac_c_werror_flag"
12984 || test ! -s conftest.err'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest$ac_exeext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 eval "$as_ac_var=yes"
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 eval "$as_ac_var=no"
13003 rm -f conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13008 if test `eval echo '${'$as_ac_var'}'` = yes; then
13009 cat >>confdefs.h <<_ACEOF
13010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13011 _ACEOF
13012 memcpy_found=yes
13014 done
13016 if test "$memcpy_found" = no; then
13017 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13018 echo "$as_me: error: memcpy is required" >&2;}
13019 { (exit 1); exit 1; }; }
13021 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13022 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13023 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13024 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027 ac_check_lib_save_LIBS=$LIBS
13028 LIBS="-ldl $LIBS"
13029 if test x$gcc_no_link = xyes; then
13030 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13032 { (exit 1); exit 1; }; }
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13041 /* Override any gcc2 internal prototype to avoid an error. */
13042 #ifdef __cplusplus
13043 extern "C"
13044 #endif
13045 /* We use char because int might match the return type of a gcc2
13046 builtin and then its argument prototype would still apply. */
13047 char dlopen ();
13049 main ()
13051 dlopen ();
13053 return 0;
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
13065 { ac_try='test -z "$ac_c_werror_flag"
13066 || test ! -s conftest.err'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; } &&
13072 { ac_try='test -s conftest$ac_exeext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 ac_cv_lib_dl_dlopen=yes
13079 else
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13083 ac_cv_lib_dl_dlopen=no
13085 rm -f conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
13087 LIBS=$ac_check_lib_save_LIBS
13089 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13090 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13091 if test $ac_cv_lib_dl_dlopen = yes; then
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_DLOPEN 1
13096 _ACEOF
13098 else
13100 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13101 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13102 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105 ac_check_lib_save_LIBS=$LIBS
13106 LIBS="-ldld $LIBS"
13107 if test x$gcc_no_link = xyes; then
13108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13110 { (exit 1); exit 1; }; }
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13119 /* Override any gcc2 internal prototype to avoid an error. */
13120 #ifdef __cplusplus
13121 extern "C"
13122 #endif
13123 /* We use char because int might match the return type of a gcc2
13124 builtin and then its argument prototype would still apply. */
13125 char dlopen ();
13127 main ()
13129 dlopen ();
13131 return 0;
13133 _ACEOF
13134 rm -f conftest.$ac_objext conftest$ac_exeext
13135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13136 (eval $ac_link) 2>conftest.er1
13137 ac_status=$?
13138 grep -v '^ *+' conftest.er1 >conftest.err
13139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -z "$ac_c_werror_flag"
13144 || test ! -s conftest.err'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest$ac_exeext'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_lib_dld_dlopen=yes
13157 else
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 ac_cv_lib_dld_dlopen=no
13163 rm -f conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext conftest.$ac_ext
13165 LIBS=$ac_check_lib_save_LIBS
13167 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13168 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13169 if test $ac_cv_lib_dld_dlopen = yes; then
13172 cat >>confdefs.h <<\_ACEOF
13173 #define HAVE_DLOPEN 1
13174 _ACEOF
13181 # Some library-finding code we stole from Tcl.
13182 #--------------------------------------------------------------------
13183 # Check for the existence of the -lsocket and -lnsl libraries.
13184 # The order here is important, so that they end up in the right
13185 # order in the command line generated by make. Here are some
13186 # special considerations:
13187 # 1. Use "connect" and "accept" to check for -lsocket, and
13188 # "gethostbyname" to check for -lnsl.
13189 # 2. Use each function name only once: can't redo a check because
13190 # autoconf caches the results of the last check and won't redo it.
13191 # 3. Use -lnsl and -lsocket only if they supply procedures that
13192 # aren't already present in the normal libraries. This is because
13193 # IRIX 5.2 has libraries, but they aren't needed and they're
13194 # bogus: they goof up name resolution if used.
13195 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13196 # To get around this problem, check for both libraries together
13197 # if -lsocket doesn't work by itself.
13198 #--------------------------------------------------------------------
13200 echo "$as_me:$LINENO: checking for socket libraries" >&5
13201 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13202 if test "${gcj_cv_lib_sockets+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 else
13205 gcj_cv_lib_sockets=
13206 gcj_checkBoth=0
13207 unset ac_cv_func_connect
13208 echo "$as_me:$LINENO: checking for connect" >&5
13209 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13210 if test "${ac_cv_func_connect+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213 if test x$gcc_no_link = xyes; then
13214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13216 { (exit 1); exit 1; }; }
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h. */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13224 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13226 #define connect innocuous_connect
13228 /* System header to define __stub macros and hopefully few prototypes,
13229 which can conflict with char connect (); below.
13230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13231 <limits.h> exists even on freestanding compilers. */
13233 #ifdef __STDC__
13234 # include <limits.h>
13235 #else
13236 # include <assert.h>
13237 #endif
13239 #undef connect
13241 /* Override any gcc2 internal prototype to avoid an error. */
13242 #ifdef __cplusplus
13243 extern "C"
13245 #endif
13246 /* We use char because int might match the return type of a gcc2
13247 builtin and then its argument prototype would still apply. */
13248 char connect ();
13249 /* The GNU C library defines this for functions which it implements
13250 to always fail with ENOSYS. Some functions are actually named
13251 something starting with __ and the normal name is an alias. */
13252 #if defined (__stub_connect) || defined (__stub___connect)
13253 choke me
13254 #else
13255 char (*f) () = connect;
13256 #endif
13257 #ifdef __cplusplus
13259 #endif
13262 main ()
13264 return f != connect;
13266 return 0;
13268 _ACEOF
13269 rm -f conftest.$ac_objext conftest$ac_exeext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271 (eval $ac_link) 2>conftest.er1
13272 ac_status=$?
13273 grep -v '^ *+' conftest.er1 >conftest.err
13274 rm -f conftest.er1
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
13278 { ac_try='test -z "$ac_c_werror_flag"
13279 || test ! -s conftest.err'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; } &&
13285 { ac_try='test -s conftest$ac_exeext'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291 ac_cv_func_connect=yes
13292 else
13293 echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13296 ac_cv_func_connect=no
13298 rm -f conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13301 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13302 echo "${ECHO_T}$ac_cv_func_connect" >&6
13303 if test $ac_cv_func_connect = yes; then
13304 gcj_checkSocket=0
13305 else
13306 gcj_checkSocket=1
13309 if test "$gcj_checkSocket" = 1; then
13310 unset ac_cv_func_connect
13311 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13312 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13313 if test "${ac_cv_lib_socket_main+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316 ac_check_lib_save_LIBS=$LIBS
13317 LIBS="-lsocket $LIBS"
13318 if test x$gcc_no_link = xyes; then
13319 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13320 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13321 { (exit 1); exit 1; }; }
13323 cat >conftest.$ac_ext <<_ACEOF
13324 /* confdefs.h. */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13332 main ()
13334 main ();
13336 return 0;
13338 _ACEOF
13339 rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13341 (eval $ac_link) 2>conftest.er1
13342 ac_status=$?
13343 grep -v '^ *+' conftest.er1 >conftest.err
13344 rm -f conftest.er1
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -z "$ac_c_werror_flag"
13349 || test ! -s conftest.err'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest$ac_exeext'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_cv_lib_socket_main=yes
13362 else
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ac_cv_lib_socket_main=no
13368 rm -f conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13370 LIBS=$ac_check_lib_save_LIBS
13372 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13373 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13374 if test $ac_cv_lib_socket_main = yes; then
13375 gcj_cv_lib_sockets="-lsocket"
13376 else
13377 gcj_checkBoth=1
13381 if test "$gcj_checkBoth" = 1; then
13382 gcj_oldLibs=$LIBS
13383 LIBS="$LIBS -lsocket -lnsl"
13384 unset ac_cv_func_accept
13385 echo "$as_me:$LINENO: checking for accept" >&5
13386 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13387 if test "${ac_cv_func_accept+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 if test x$gcc_no_link = xyes; then
13391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13393 { (exit 1); exit 1; }; }
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13403 #define accept innocuous_accept
13405 /* System header to define __stub macros and hopefully few prototypes,
13406 which can conflict with char accept (); below.
13407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13408 <limits.h> exists even on freestanding compilers. */
13410 #ifdef __STDC__
13411 # include <limits.h>
13412 #else
13413 # include <assert.h>
13414 #endif
13416 #undef accept
13418 /* Override any gcc2 internal prototype to avoid an error. */
13419 #ifdef __cplusplus
13420 extern "C"
13422 #endif
13423 /* We use char because int might match the return type of a gcc2
13424 builtin and then its argument prototype would still apply. */
13425 char accept ();
13426 /* The GNU C library defines this for functions which it implements
13427 to always fail with ENOSYS. Some functions are actually named
13428 something starting with __ and the normal name is an alias. */
13429 #if defined (__stub_accept) || defined (__stub___accept)
13430 choke me
13431 #else
13432 char (*f) () = accept;
13433 #endif
13434 #ifdef __cplusplus
13436 #endif
13439 main ()
13441 return f != accept;
13443 return 0;
13445 _ACEOF
13446 rm -f conftest.$ac_objext conftest$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448 (eval $ac_link) 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest$ac_exeext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_func_accept=yes
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_cv_func_accept=no
13475 rm -f conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13478 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13479 echo "${ECHO_T}$ac_cv_func_accept" >&6
13480 if test $ac_cv_func_accept = yes; then
13481 gcj_checkNsl=0
13482 gcj_cv_lib_sockets="-lsocket -lnsl"
13485 unset ac_cv_func_accept
13486 LIBS=$gcj_oldLibs
13488 unset ac_cv_func_gethostbyname
13489 gcj_oldLibs=$LIBS
13490 LIBS="$LIBS $gcj_cv_lib_sockets"
13491 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13492 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13493 if test "${ac_cv_func_gethostbyname+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496 if test x$gcc_no_link = xyes; then
13497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13499 { (exit 1); exit 1; }; }
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h. */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13507 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13509 #define gethostbyname innocuous_gethostbyname
13511 /* System header to define __stub macros and hopefully few prototypes,
13512 which can conflict with char gethostbyname (); below.
13513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13514 <limits.h> exists even on freestanding compilers. */
13516 #ifdef __STDC__
13517 # include <limits.h>
13518 #else
13519 # include <assert.h>
13520 #endif
13522 #undef gethostbyname
13524 /* Override any gcc2 internal prototype to avoid an error. */
13525 #ifdef __cplusplus
13526 extern "C"
13528 #endif
13529 /* We use char because int might match the return type of a gcc2
13530 builtin and then its argument prototype would still apply. */
13531 char gethostbyname ();
13532 /* The GNU C library defines this for functions which it implements
13533 to always fail with ENOSYS. Some functions are actually named
13534 something starting with __ and the normal name is an alias. */
13535 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13536 choke me
13537 #else
13538 char (*f) () = gethostbyname;
13539 #endif
13540 #ifdef __cplusplus
13542 #endif
13545 main ()
13547 return f != gethostbyname;
13549 return 0;
13551 _ACEOF
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13554 (eval $ac_link) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -z "$ac_c_werror_flag"
13562 || test ! -s conftest.err'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try='test -s conftest$ac_exeext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_cv_func_gethostbyname=yes
13575 else
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 ac_cv_func_gethostbyname=no
13581 rm -f conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13584 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13585 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13586 if test $ac_cv_func_gethostbyname = yes; then
13588 else
13589 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13590 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13591 if test "${ac_cv_lib_nsl_main+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 else
13594 ac_check_lib_save_LIBS=$LIBS
13595 LIBS="-lnsl $LIBS"
13596 if test x$gcc_no_link = xyes; then
13597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13599 { (exit 1); exit 1; }; }
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h. */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13610 main ()
13612 main ();
13614 return 0;
13616 _ACEOF
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_c_werror_flag"
13627 || test ! -s conftest.err'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest$ac_exeext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_cv_lib_nsl_main=yes
13640 else
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13644 ac_cv_lib_nsl_main=no
13646 rm -f conftest.err conftest.$ac_objext \
13647 conftest$ac_exeext conftest.$ac_ext
13648 LIBS=$ac_check_lib_save_LIBS
13650 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13651 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13652 if test $ac_cv_lib_nsl_main = yes; then
13653 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13658 unset ac_cv_func_gethostbyname
13659 LIBS=$gcj_oldLIBS
13662 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13663 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13664 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13666 if test "$with_system_zlib" = yes; then
13667 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13668 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13669 if test "${ac_cv_lib_z_deflate+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672 ac_check_lib_save_LIBS=$LIBS
13673 LIBS="-lz $LIBS"
13674 if test x$gcc_no_link = xyes; then
13675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13677 { (exit 1); exit 1; }; }
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h. */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13686 /* Override any gcc2 internal prototype to avoid an error. */
13687 #ifdef __cplusplus
13688 extern "C"
13689 #endif
13690 /* We use char because int might match the return type of a gcc2
13691 builtin and then its argument prototype would still apply. */
13692 char deflate ();
13694 main ()
13696 deflate ();
13698 return 0;
13700 _ACEOF
13701 rm -f conftest.$ac_objext conftest$ac_exeext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703 (eval $ac_link) 2>conftest.er1
13704 ac_status=$?
13705 grep -v '^ *+' conftest.er1 >conftest.err
13706 rm -f conftest.er1
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -z "$ac_c_werror_flag"
13711 || test ! -s conftest.err'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; } &&
13717 { ac_try='test -s conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_lib_z_deflate=yes
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_cv_lib_z_deflate=no
13730 rm -f conftest.err conftest.$ac_objext \
13731 conftest$ac_exeext conftest.$ac_ext
13732 LIBS=$ac_check_lib_save_LIBS
13734 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13735 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13736 if test $ac_cv_lib_z_deflate = yes; then
13737 ZLIBSPEC=-lz
13738 else
13739 ZLIBSPEC=
13744 # Test for Gtk stuff, if asked for.
13745 if test "$use_gtk_awt" = yes; then
13747 succeeded=no
13749 if test -z "$PKG_CONFIG"; then
13750 # Extract the first word of "pkg-config", so it can be a program name with args.
13751 set dummy pkg-config; ac_word=$2
13752 echo "$as_me:$LINENO: checking for $ac_word" >&5
13753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13754 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757 case $PKG_CONFIG in
13758 [\\/]* | ?:[\\/]*)
13759 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763 for as_dir in $PATH
13765 IFS=$as_save_IFS
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
13768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13769 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13771 break 2
13773 done
13774 done
13776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13778 esac
13780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13782 if test -n "$PKG_CONFIG"; then
13783 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13784 echo "${ECHO_T}$PKG_CONFIG" >&6
13785 else
13786 echo "$as_me:$LINENO: result: no" >&5
13787 echo "${ECHO_T}no" >&6
13792 if test "$PKG_CONFIG" = "no" ; then
13793 echo "*** The pkg-config script could not be found. Make sure it is"
13794 echo "*** in your path, or set the PKG_CONFIG environment variable"
13795 echo "*** to the full path to pkg-config."
13796 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13797 else
13798 PKG_CONFIG_MIN_VERSION=0.9.0
13799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13800 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13801 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13803 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13804 echo "$as_me:$LINENO: result: yes" >&5
13805 echo "${ECHO_T}yes" >&6
13806 succeeded=yes
13808 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13809 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13810 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13811 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13812 echo "${ECHO_T}$GTK_CFLAGS" >&6
13814 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13815 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13816 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13817 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13818 echo "${ECHO_T}$GTK_LIBS" >&6
13819 else
13820 GTK_CFLAGS=""
13821 GTK_LIBS=""
13822 ## If we have a custom action on failure, don't print errors, but
13823 ## do set a variable so people can do so.
13824 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13825 echo $GTK_PKG_ERRORS
13830 else
13831 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13832 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13836 if test $succeeded = yes; then
13838 else
13839 { { 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
13840 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;}
13841 { (exit 1); exit 1; }; }
13848 succeeded=no
13850 if test -z "$PKG_CONFIG"; then
13851 # Extract the first word of "pkg-config", so it can be a program name with args.
13852 set dummy pkg-config; ac_word=$2
13853 echo "$as_me:$LINENO: checking for $ac_word" >&5
13854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13855 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858 case $PKG_CONFIG in
13859 [\\/]* | ?:[\\/]*)
13860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13864 for as_dir in $PATH
13866 IFS=$as_save_IFS
13867 test -z "$as_dir" && as_dir=.
13868 for ac_exec_ext in '' $ac_executable_extensions; do
13869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13872 break 2
13874 done
13875 done
13877 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13879 esac
13881 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13883 if test -n "$PKG_CONFIG"; then
13884 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13885 echo "${ECHO_T}$PKG_CONFIG" >&6
13886 else
13887 echo "$as_me:$LINENO: result: no" >&5
13888 echo "${ECHO_T}no" >&6
13893 if test "$PKG_CONFIG" = "no" ; then
13894 echo "*** The pkg-config script could not be found. Make sure it is"
13895 echo "*** in your path, or set the PKG_CONFIG environment variable"
13896 echo "*** to the full path to pkg-config."
13897 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13898 else
13899 PKG_CONFIG_MIN_VERSION=0.9.0
13900 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13901 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13902 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13904 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13905 echo "$as_me:$LINENO: result: yes" >&5
13906 echo "${ECHO_T}yes" >&6
13907 succeeded=yes
13909 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13910 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13911 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13912 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13913 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13915 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13916 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13917 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13918 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13919 echo "${ECHO_T}$GLIB_LIBS" >&6
13920 else
13921 GLIB_CFLAGS=""
13922 GLIB_LIBS=""
13923 ## If we have a custom action on failure, don't print errors, but
13924 ## do set a variable so people can do so.
13925 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13926 echo $GLIB_PKG_ERRORS
13931 else
13932 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13933 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13937 if test $succeeded = yes; then
13939 else
13940 { { 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
13941 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;}
13942 { (exit 1); exit 1; }; }
13949 succeeded=no
13951 if test -z "$PKG_CONFIG"; then
13952 # Extract the first word of "pkg-config", so it can be a program name with args.
13953 set dummy pkg-config; ac_word=$2
13954 echo "$as_me:$LINENO: checking for $ac_word" >&5
13955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13956 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 case $PKG_CONFIG in
13960 [\\/]* | ?:[\\/]*)
13961 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13965 for as_dir in $PATH
13967 IFS=$as_save_IFS
13968 test -z "$as_dir" && as_dir=.
13969 for ac_exec_ext in '' $ac_executable_extensions; do
13970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13971 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13973 break 2
13975 done
13976 done
13978 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13980 esac
13982 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13984 if test -n "$PKG_CONFIG"; then
13985 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13986 echo "${ECHO_T}$PKG_CONFIG" >&6
13987 else
13988 echo "$as_me:$LINENO: result: no" >&5
13989 echo "${ECHO_T}no" >&6
13994 if test "$PKG_CONFIG" = "no" ; then
13995 echo "*** The pkg-config script could not be found. Make sure it is"
13996 echo "*** in your path, or set the PKG_CONFIG environment variable"
13997 echo "*** to the full path to pkg-config."
13998 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13999 else
14000 PKG_CONFIG_MIN_VERSION=0.9.0
14001 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14002 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14003 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14005 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14006 echo "$as_me:$LINENO: result: yes" >&5
14007 echo "${ECHO_T}yes" >&6
14008 succeeded=yes
14010 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14011 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14012 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14013 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14014 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14016 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14017 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14018 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14019 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14020 echo "${ECHO_T}$LIBART_LIBS" >&6
14021 else
14022 LIBART_CFLAGS=""
14023 LIBART_LIBS=""
14024 ## If we have a custom action on failure, don't print errors, but
14025 ## do set a variable so people can do so.
14026 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14027 echo $LIBART_PKG_ERRORS
14032 else
14033 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14034 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14038 if test $succeeded = yes; then
14040 else
14041 { { 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
14042 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;}
14043 { (exit 1); exit 1; }; }
14049 # We require the XTest Extension to support java.awt.Robot.
14050 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14051 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14052 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055 ac_check_lib_save_LIBS=$LIBS
14056 LIBS="-lXtst ${X_LIBS} $LIBS"
14057 if test x$gcc_no_link = xyes; then
14058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14059 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14060 { (exit 1); exit 1; }; }
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h. */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any gcc2 internal prototype to avoid an error. */
14070 #ifdef __cplusplus
14071 extern "C"
14072 #endif
14073 /* We use char because int might match the return type of a gcc2
14074 builtin and then its argument prototype would still apply. */
14075 char XTestQueryExtension ();
14077 main ()
14079 XTestQueryExtension ();
14081 return 0;
14083 _ACEOF
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -z "$ac_c_werror_flag"
14094 || test ! -s conftest.err'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; } &&
14100 { ac_try='test -s conftest$ac_exeext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_cv_lib_Xtst_XTestQueryExtension=yes
14107 else
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ac_cv_lib_Xtst_XTestQueryExtension=no
14113 rm -f conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 LIBS=$ac_check_lib_save_LIBS
14117 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14118 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14119 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14120 true
14121 else
14122 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14123 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14124 { (exit 1); exit 1; }; }
14129 # On Solaris, and maybe other architectures, the Boehm collector
14130 # requires -ldl.
14131 if test "$GC" = boehm; then
14132 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14133 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14134 if test "${ac_cv_lib_dl_main+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 ac_check_lib_save_LIBS=$LIBS
14138 LIBS="-ldl $LIBS"
14139 if test x$gcc_no_link = xyes; then
14140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14142 { (exit 1); exit 1; }; }
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14153 main ()
14155 main ();
14157 return 0;
14159 _ACEOF
14160 rm -f conftest.$ac_objext conftest$ac_exeext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14162 (eval $ac_link) 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag"
14170 || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_cv_lib_dl_main=yes
14183 else
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 ac_cv_lib_dl_main=no
14189 rm -f conftest.err conftest.$ac_objext \
14190 conftest$ac_exeext conftest.$ac_ext
14191 LIBS=$ac_check_lib_save_LIBS
14193 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14194 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14195 if test $ac_cv_lib_dl_main = yes; then
14196 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14202 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14203 case $build in
14204 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14205 *) CLASSPATH_SEPARATOR=':' ;;
14206 esac
14209 # We must search the source tree for java.lang, since we still don't
14210 # have libgcj.jar nor java/lang/*.class
14211 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14212 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14214 # Since some classes depend on this one, we need its source available
14215 # before we can do any GCJ compilation test :-(
14216 if test ! -f gnu/classpath/Configuration.java; then
14217 test -d gnu || mkdir gnu
14218 test -d gnu/classpath || mkdir gnu/classpath
14219 # Note that it is not crucial that all the values here be correct.
14220 sed -e "s,@prefix@,$prefix," \
14221 -e "s,@VERSION@,$VERSION," \
14222 -e "s,@LIBDEBUG@,false," \
14223 -e "s,@INIT_LOAD_LIBRARY@,false," \
14224 -e "s,@@,$LIBGCJDEBUG," \
14225 -e "s,@default_toolkit@,$TOOLKIT," \
14226 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14227 -e "s,@GTK_CAIRO_ENABLED@,false," \
14228 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14229 > gnu/classpath/Configuration.java
14230 # We do not want to redirect the output of the grep below to /dev/null,
14231 # but we add /dev/null to the input list so that grep will print the
14232 # filename of Configuration.java in case it finds any matches.
14233 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14234 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14235 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14236 { (exit 1); exit 1; }; }
14240 if test -n "$ac_tool_prefix"; then
14241 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14242 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14243 echo "$as_me:$LINENO: checking for $ac_word" >&5
14244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14245 if test "${ac_cv_prog_GCJ+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 if test -n "$GCJ"; then
14249 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14250 else
14251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14252 for as_dir in $PATH
14254 IFS=$as_save_IFS
14255 test -z "$as_dir" && as_dir=.
14256 for ac_exec_ext in '' $ac_executable_extensions; do
14257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14258 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14260 break 2
14262 done
14263 done
14267 GCJ=$ac_cv_prog_GCJ
14268 if test -n "$GCJ"; then
14269 echo "$as_me:$LINENO: result: $GCJ" >&5
14270 echo "${ECHO_T}$GCJ" >&6
14271 else
14272 echo "$as_me:$LINENO: result: no" >&5
14273 echo "${ECHO_T}no" >&6
14277 if test -z "$ac_cv_prog_GCJ"; then
14278 ac_ct_GCJ=$GCJ
14279 # Extract the first word of "gcj", so it can be a program name with args.
14280 set dummy gcj; ac_word=$2
14281 echo "$as_me:$LINENO: checking for $ac_word" >&5
14282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14283 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286 if test -n "$ac_ct_GCJ"; then
14287 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14288 else
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14292 IFS=$as_save_IFS
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_ac_ct_GCJ="gcj"
14297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 break 2
14300 done
14301 done
14303 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14306 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14307 if test -n "$ac_ct_GCJ"; then
14308 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14309 echo "${ECHO_T}$ac_ct_GCJ" >&6
14310 else
14311 echo "$as_me:$LINENO: result: no" >&5
14312 echo "${ECHO_T}no" >&6
14315 GCJ=$ac_ct_GCJ
14316 else
14317 GCJ="$ac_cv_prog_GCJ"
14320 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14325 # Now remove it.
14326 rm -f gnu/classpath/Configuration.java
14328 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14330 echo "$as_me:$LINENO: checking for void *" >&5
14331 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14332 if test "${ac_cv_type_void_p+set}" = set; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 else
14335 cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h. */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14341 $ac_includes_default
14343 main ()
14345 if ((void * *) 0)
14346 return 0;
14347 if (sizeof (void *))
14348 return 0;
14350 return 0;
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355 (eval $ac_compile) 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -z "$ac_c_werror_flag"
14363 || test ! -s conftest.err'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; } &&
14369 { ac_try='test -s conftest.$ac_objext'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }; then
14375 ac_cv_type_void_p=yes
14376 else
14377 echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14380 ac_cv_type_void_p=no
14382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14384 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14385 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14387 echo "$as_me:$LINENO: checking size of void *" >&5
14388 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14389 if test "${ac_cv_sizeof_void_p+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 else
14392 if test "$ac_cv_type_void_p" = yes; then
14393 # The cast to unsigned long works around a bug in the HP C Compiler
14394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14396 # This bug is HP SR number 8606223364.
14397 if test "$cross_compiling" = yes; then
14398 # Depending upon the size, compute the lo and hi bounds.
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h. */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 $ac_includes_default
14407 main ()
14409 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14410 test_array [0] = 0
14413 return 0;
14415 _ACEOF
14416 rm -f conftest.$ac_objext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418 (eval $ac_compile) 2>conftest.er1
14419 ac_status=$?
14420 grep -v '^ *+' conftest.er1 >conftest.err
14421 rm -f conftest.er1
14422 cat conftest.err >&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try='test -z "$ac_c_werror_flag"
14426 || test ! -s conftest.err'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 ac_lo=0 ac_mid=0
14439 while :; do
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h. */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 $ac_includes_default
14448 main ()
14450 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14451 test_array [0] = 0
14454 return 0;
14456 _ACEOF
14457 rm -f conftest.$ac_objext
14458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14459 (eval $ac_compile) 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -z "$ac_c_werror_flag"
14467 || test ! -s conftest.err'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14479 ac_hi=$ac_mid; break
14480 else
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 ac_lo=`expr $ac_mid + 1`
14485 if test $ac_lo -le $ac_mid; then
14486 ac_lo= ac_hi=
14487 break
14489 ac_mid=`expr 2 '*' $ac_mid + 1`
14491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14492 done
14493 else
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h. */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 $ac_includes_default
14505 main ()
14507 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14508 test_array [0] = 0
14511 return 0;
14513 _ACEOF
14514 rm -f conftest.$ac_objext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14516 (eval $ac_compile) 2>conftest.er1
14517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } &&
14523 { ac_try='test -z "$ac_c_werror_flag"
14524 || test ! -s conftest.err'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest.$ac_objext'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 ac_hi=-1 ac_mid=-1
14537 while :; do
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 $ac_includes_default
14546 main ()
14548 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14549 test_array [0] = 0
14552 return 0;
14554 _ACEOF
14555 rm -f conftest.$ac_objext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14557 (eval $ac_compile) 2>conftest.er1
14558 ac_status=$?
14559 grep -v '^ *+' conftest.er1 >conftest.err
14560 rm -f conftest.er1
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } &&
14564 { ac_try='test -z "$ac_c_werror_flag"
14565 || test ! -s conftest.err'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; } &&
14571 { ac_try='test -s conftest.$ac_objext'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14577 ac_lo=$ac_mid; break
14578 else
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14582 ac_hi=`expr '(' $ac_mid ')' - 1`
14583 if test $ac_mid -le $ac_hi; then
14584 ac_lo= ac_hi=
14585 break
14587 ac_mid=`expr 2 '*' $ac_mid`
14589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14590 done
14591 else
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_lo= ac_hi=
14597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14600 # Binary search between lo and hi bounds.
14601 while test "x$ac_lo" != "x$ac_hi"; do
14602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h. */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 $ac_includes_default
14611 main ()
14613 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14614 test_array [0] = 0
14617 return 0;
14619 _ACEOF
14620 rm -f conftest.$ac_objext
14621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14622 (eval $ac_compile) 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -z "$ac_c_werror_flag"
14630 || test ! -s conftest.err'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; } &&
14636 { ac_try='test -s conftest.$ac_objext'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 ac_hi=$ac_mid
14643 else
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_lo=`expr '(' $ac_mid ')' + 1`
14649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14650 done
14651 case $ac_lo in
14652 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14653 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14654 See \`config.log' for more details." >&5
14655 echo "$as_me: error: cannot compute sizeof (void *), 77
14656 See \`config.log' for more details." >&2;}
14657 { (exit 1); exit 1; }; } ;;
14658 esac
14659 else
14660 if test "$cross_compiling" = yes; then
14661 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14662 See \`config.log' for more details." >&5
14663 echo "$as_me: error: cannot run test program while cross compiling
14664 See \`config.log' for more details." >&2;}
14665 { (exit 1); exit 1; }; }
14666 else
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h. */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 $ac_includes_default
14674 long longval () { return (long) (sizeof (void *)); }
14675 unsigned long ulongval () { return (long) (sizeof (void *)); }
14676 #include <stdio.h>
14677 #include <stdlib.h>
14679 main ()
14682 FILE *f = fopen ("conftest.val", "w");
14683 if (! f)
14684 exit (1);
14685 if (((long) (sizeof (void *))) < 0)
14687 long i = longval ();
14688 if (i != ((long) (sizeof (void *))))
14689 exit (1);
14690 fprintf (f, "%ld\n", i);
14692 else
14694 unsigned long i = ulongval ();
14695 if (i != ((long) (sizeof (void *))))
14696 exit (1);
14697 fprintf (f, "%lu\n", i);
14699 exit (ferror (f) || fclose (f) != 0);
14702 return 0;
14704 _ACEOF
14705 rm -f conftest$ac_exeext
14706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14707 (eval $ac_link) 2>&5
14708 ac_status=$?
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ac_cv_sizeof_void_p=`cat conftest.val`
14717 else
14718 echo "$as_me: program exited with status $ac_status" >&5
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 ( exit $ac_status )
14723 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14724 See \`config.log' for more details." >&5
14725 echo "$as_me: error: cannot compute sizeof (void *), 77
14726 See \`config.log' for more details." >&2;}
14727 { (exit 1); exit 1; }; }
14729 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14732 rm -f conftest.val
14733 else
14734 ac_cv_sizeof_void_p=0
14737 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14738 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14739 cat >>confdefs.h <<_ACEOF
14740 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14741 _ACEOF
14745 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14747 if test "${ac_cv_c_bigendian+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 else
14750 # See if sys/param.h defines the BYTE_ORDER macro.
14751 cat >conftest.$ac_ext <<_ACEOF
14752 /* confdefs.h. */
14753 _ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14757 #include <sys/types.h>
14758 #include <sys/param.h>
14761 main ()
14763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14764 bogus endian macros
14765 #endif
14768 return 0;
14770 _ACEOF
14771 rm -f conftest.$ac_objext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14773 (eval $ac_compile) 2>conftest.er1
14774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -z "$ac_c_werror_flag"
14781 || test ! -s conftest.err'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14784 ac_status=$?
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; } &&
14787 { ac_try='test -s conftest.$ac_objext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 # It does; now see whether it defined to BIG_ENDIAN or not.
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h. */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 #include <sys/types.h>
14801 #include <sys/param.h>
14804 main ()
14806 #if BYTE_ORDER != BIG_ENDIAN
14807 not big endian
14808 #endif
14811 return 0;
14813 _ACEOF
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_cv_c_bigendian=yes
14837 else
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841 ac_cv_c_bigendian=no
14843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14844 else
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 # It does not; compile a test program.
14849 if test "$cross_compiling" = yes; then
14850 # try to guess the endianness by grepping values into an object file
14851 ac_cv_c_bigendian=unknown
14852 cat >conftest.$ac_ext <<_ACEOF
14853 /* confdefs.h. */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14865 main ()
14867 _ascii (); _ebcdic ();
14869 return 0;
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -z "$ac_c_werror_flag"
14882 || test ! -s conftest.err'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest.$ac_objext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14895 ac_cv_c_bigendian=yes
14897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14898 if test "$ac_cv_c_bigendian" = unknown; then
14899 ac_cv_c_bigendian=no
14900 else
14901 # finding both strings is unlikely to happen, but who knows?
14902 ac_cv_c_bigendian=unknown
14905 else
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14911 else
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14919 main ()
14921 /* Are we little or big endian? From Harbison&Steele. */
14922 union
14924 long l;
14925 char c[sizeof (long)];
14926 } u;
14927 u.l = 1;
14928 exit (u.c[sizeof (long) - 1] == 1);
14930 _ACEOF
14931 rm -f conftest$ac_exeext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14933 (eval $ac_link) 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 ac_cv_c_bigendian=no
14943 else
14944 echo "$as_me: program exited with status $ac_status" >&5
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 ( exit $ac_status )
14949 ac_cv_c_bigendian=yes
14951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14958 case $ac_cv_c_bigendian in
14959 yes)
14961 cat >>confdefs.h <<\_ACEOF
14962 #define WORDS_BIGENDIAN 1
14963 _ACEOF
14968 { { echo "$as_me:$LINENO: error: unknown endianness
14969 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14970 echo "$as_me: error: unknown endianness
14971 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14972 { (exit 1); exit 1; }; } ;;
14973 esac
14976 ZLIBS=
14977 SYS_ZLIBS=
14978 ZINCS=
14980 if test -z "$ZLIBSPEC"; then
14981 # Use zlib from the GCC tree.
14982 ZINCS='-I$(top_srcdir)/../zlib'
14983 ZLIBS=../zlib/libzgcj_convenience.la
14984 else
14985 # System's zlib.
14986 SYS_ZLIBS="$ZLIBSPEC"
14999 if test "$NATIVE" = yes; then
15000 NATIVE_TRUE=
15001 NATIVE_FALSE='#'
15002 else
15003 NATIVE_TRUE='#'
15004 NATIVE_FALSE=
15009 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15010 NEEDS_DATA_START_TRUE=
15011 NEEDS_DATA_START_FALSE='#'
15012 else
15013 NEEDS_DATA_START_TRUE='#'
15014 NEEDS_DATA_START_FALSE=
15019 # Process the option "--enable-version-specific-runtime-libs"
15020 # Calculate toolexeclibdir
15021 case ${version_specific_libs} in
15022 yes)
15023 # Need the gcc compiler version to know where to install libraries
15024 # and header files if --enable-version-specific-runtime-libs option
15025 # is selected.
15026 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15027 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15028 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15029 toolexeclibdir=$toolexecmainlibdir
15032 if test -n "$with_cross_host" &&
15033 test x"$with_cross_host" != x"no"; then
15034 # Install a library built with a cross compiler in tooldir, not libdir.
15035 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15036 toolexecmainlibdir='$(toolexecdir)/lib'
15037 else
15038 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15039 toolexecmainlibdir='$(libdir)'
15041 multi_os_directory=`$CC -print-multi-os-directory`
15042 case $multi_os_directory in
15043 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15044 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15045 esac
15047 esac
15052 # Determine where the standard .db file is found.
15053 multi_os_directory=`$CC -print-multi-os-directory`
15054 case $multi_os_directory in
15055 .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
15056 *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
15057 esac
15060 # Determine gcj version number.
15061 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15062 GCJVERSION=$gcjversion
15065 cat >>confdefs.h <<_ACEOF
15066 #define GCJVERSION "$GCJVERSION"
15067 _ACEOF
15071 cat >>confdefs.h <<\_ACEOF
15072 #define JV_VERSION "1.4.2"
15073 _ACEOF
15076 cat >>confdefs.h <<\_ACEOF
15077 #define JV_API_VERSION "1.4"
15078 _ACEOF
15082 case "${with_gxx_include_dir}" in
15083 yes)
15084 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15085 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15086 { (exit 1); exit 1; }; }
15088 no | "")
15089 case "${enable_version_specific_runtime_libs}" in
15090 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15092 libstdcxx_incdir='c++/$(gcc_version)'
15093 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
15094 esac ;;
15095 *) gxx_include_dir=${with_gxx_include_dir} ;;
15096 esac
15101 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15102 # On that system, sys/ioctl.h will not include sys/filio.h unless
15103 # BSD_COMP is defined; just including sys/filio.h is simpler.
15104 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15105 # for now. If you change this, you also must update natFile.cc.
15127 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15128 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15129 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15130 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15131 dirent.h sys/rw_lock.h
15133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15135 echo "$as_me:$LINENO: checking for $ac_header" >&5
15136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15142 else
15143 # Is the header compilable?
15144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15146 cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h. */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 $ac_includes_default
15153 #include <$ac_header>
15154 _ACEOF
15155 rm -f conftest.$ac_objext
15156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15157 (eval $ac_compile) 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -z "$ac_c_werror_flag"
15165 || test ! -s conftest.err'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; } &&
15171 { ac_try='test -s conftest.$ac_objext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_header_compiler=yes
15178 else
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15182 ac_header_compiler=no
15184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15186 echo "${ECHO_T}$ac_header_compiler" >&6
15188 # Is the header present?
15189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 #include <$ac_header>
15198 _ACEOF
15199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } >/dev/null; then
15207 if test -s conftest.err; then
15208 ac_cpp_err=$ac_c_preproc_warn_flag
15209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15210 else
15211 ac_cpp_err=
15213 else
15214 ac_cpp_err=yes
15216 if test -z "$ac_cpp_err"; then
15217 ac_header_preproc=yes
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_header_preproc=no
15224 rm -f conftest.err conftest.$ac_ext
15225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15226 echo "${ECHO_T}$ac_header_preproc" >&6
15228 # So? What about this header?
15229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15230 yes:no: )
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15235 ac_header_preproc=yes
15237 no:yes:* )
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15251 cat <<\_ASBOX
15252 ## ---------------------------------- ##
15253 ## Report this to the libjava lists. ##
15254 ## ---------------------------------- ##
15255 _ASBOX
15257 sed "s/^/$as_me: WARNING: /" >&2
15259 esac
15260 echo "$as_me:$LINENO: checking for $ac_header" >&5
15261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265 eval "$as_ac_Header=\$ac_header_preproc"
15267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15272 cat >>confdefs.h <<_ACEOF
15273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15274 _ACEOF
15278 done
15281 for ac_header in inttypes.h
15283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15285 echo "$as_me:$LINENO: checking for $ac_header" >&5
15286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15292 else
15293 # Is the header compilable?
15294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15296 cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h. */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15302 $ac_includes_default
15303 #include <$ac_header>
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15307 (eval $ac_compile) 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
15314 { ac_try='test -z "$ac_c_werror_flag"
15315 || test ! -s conftest.err'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_header_compiler=yes
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_header_compiler=no
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15336 echo "${ECHO_T}$ac_header_compiler" >&6
15338 # Is the header present?
15339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 #include <$ac_header>
15348 _ACEOF
15349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15351 ac_status=$?
15352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } >/dev/null; then
15357 if test -s conftest.err; then
15358 ac_cpp_err=$ac_c_preproc_warn_flag
15359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15360 else
15361 ac_cpp_err=
15363 else
15364 ac_cpp_err=yes
15366 if test -z "$ac_cpp_err"; then
15367 ac_header_preproc=yes
15368 else
15369 echo "$as_me: failed program was:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15372 ac_header_preproc=no
15374 rm -f conftest.err conftest.$ac_ext
15375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15376 echo "${ECHO_T}$ac_header_preproc" >&6
15378 # So? What about this header?
15379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15380 yes:no: )
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15385 ac_header_preproc=yes
15387 no:yes:* )
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15401 cat <<\_ASBOX
15402 ## ---------------------------------- ##
15403 ## Report this to the libjava lists. ##
15404 ## ---------------------------------- ##
15405 _ASBOX
15407 sed "s/^/$as_me: WARNING: /" >&2
15409 esac
15410 echo "$as_me:$LINENO: checking for $ac_header" >&5
15411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415 eval "$as_ac_Header=\$ac_header_preproc"
15417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15422 cat >>confdefs.h <<_ACEOF
15423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15424 _ACEOF
15427 cat >>confdefs.h <<\_ACEOF
15428 #define HAVE_INTTYPES_H 1
15429 _ACEOF
15432 cat >>confdefs.h <<\_ACEOF
15433 #define JV_HAVE_INTTYPES_H 1
15434 _ACEOF
15439 done
15441 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15442 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15443 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446 cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h. */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 #include <sys/types.h>
15453 #include <sys/wait.h>
15454 #ifndef WEXITSTATUS
15455 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15456 #endif
15457 #ifndef WIFEXITED
15458 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15459 #endif
15462 main ()
15464 int s;
15465 wait (&s);
15466 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15468 return 0;
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473 (eval $ac_compile) 2>conftest.er1
15474 ac_status=$?
15475 grep -v '^ *+' conftest.er1 >conftest.err
15476 rm -f conftest.er1
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_c_werror_flag"
15481 || test ! -s conftest.err'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; } &&
15487 { ac_try='test -s conftest.$ac_objext'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 ac_cv_header_sys_wait_h=yes
15494 else
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ac_cv_header_sys_wait_h=no
15500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15502 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15503 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15504 if test $ac_cv_header_sys_wait_h = yes; then
15506 cat >>confdefs.h <<\_ACEOF
15507 #define HAVE_SYS_WAIT_H 1
15508 _ACEOF
15513 echo "$as_me:$LINENO: checking for ssize_t" >&5
15514 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15515 if test "${ac_cv_type_ssize_t+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 else
15518 cat >conftest.$ac_ext <<_ACEOF
15519 /* confdefs.h. */
15520 _ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15524 $ac_includes_default
15526 main ()
15528 if ((ssize_t *) 0)
15529 return 0;
15530 if (sizeof (ssize_t))
15531 return 0;
15533 return 0;
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try='test -s conftest.$ac_objext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_cv_type_ssize_t=yes
15559 else
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ac_cv_type_ssize_t=no
15565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15567 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15568 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15569 if test $ac_cv_type_ssize_t = yes; then
15571 else
15573 cat >>confdefs.h <<_ACEOF
15574 #define ssize_t int
15575 _ACEOF
15580 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15581 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15582 cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h. */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15588 #include <sys/types.h>
15589 #if STDC_HEADERS
15590 #include <stdlib.h>
15591 #include <stddef.h>
15592 #endif
15593 #if HAVE_NETINET_IN_H
15594 #include <netinet/in.h>
15595 #endif
15597 main ()
15599 in_addr_t foo;
15601 return 0;
15603 _ACEOF
15604 rm -f conftest.$ac_objext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15606 (eval $ac_compile) 2>conftest.er1
15607 ac_status=$?
15608 grep -v '^ *+' conftest.er1 >conftest.err
15609 rm -f conftest.er1
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -z "$ac_c_werror_flag"
15614 || test ! -s conftest.err'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest.$ac_objext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15627 cat >>confdefs.h <<\_ACEOF
15628 #define HAVE_IN_ADDR_T 1
15629 _ACEOF
15631 echo "$as_me:$LINENO: result: yes" >&5
15632 echo "${ECHO_T}yes" >&6
15633 else
15634 echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15637 echo "$as_me:$LINENO: result: no" >&5
15638 echo "${ECHO_T}no" >&6
15640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15642 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15643 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15644 cat >conftest.$ac_ext <<_ACEOF
15645 /* confdefs.h. */
15646 _ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15650 #include <netinet/in.h>
15652 main ()
15654 struct ip_mreq mreq;
15656 return 0;
15658 _ACEOF
15659 rm -f conftest.$ac_objext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15661 (eval $ac_compile) 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try='test -z "$ac_c_werror_flag"
15669 || test ! -s conftest.err'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; } &&
15675 { ac_try='test -s conftest.$ac_objext'
15676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5
15678 ac_status=$?
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }; }; then
15682 cat >>confdefs.h <<\_ACEOF
15683 #define HAVE_STRUCT_IP_MREQ 1
15684 _ACEOF
15686 echo "$as_me:$LINENO: result: yes" >&5
15687 echo "${ECHO_T}yes" >&6
15688 else
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 echo "$as_me:$LINENO: result: no" >&5
15693 echo "${ECHO_T}no" >&6
15695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15697 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15698 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h. */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 #include <netinet/in.h>
15707 main ()
15709 struct ipv6_mreq mreq6;
15711 return 0;
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716 (eval $ac_compile) 2>conftest.er1
15717 ac_status=$?
15718 grep -v '^ *+' conftest.er1 >conftest.err
15719 rm -f conftest.er1
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
15723 { ac_try='test -z "$ac_c_werror_flag"
15724 || test ! -s conftest.err'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15737 cat >>confdefs.h <<\_ACEOF
15738 #define HAVE_STRUCT_IPV6_MREQ 1
15739 _ACEOF
15741 echo "$as_me:$LINENO: result: yes" >&5
15742 echo "${ECHO_T}yes" >&6
15743 else
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15747 echo "$as_me:$LINENO: result: no" >&5
15748 echo "${ECHO_T}no" >&6
15750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15752 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15753 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h. */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 #include <netinet/in.h>
15762 main ()
15764 struct sockaddr_in6 addr6;
15766 return 0;
15768 _ACEOF
15769 rm -f conftest.$ac_objext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15771 (eval $ac_compile) 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag"
15779 || test ! -s conftest.err'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest.$ac_objext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15792 cat >>confdefs.h <<\_ACEOF
15793 #define HAVE_INET6 1
15794 _ACEOF
15796 echo "$as_me:$LINENO: result: yes" >&5
15797 echo "${ECHO_T}yes" >&6
15798 else
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 echo "$as_me:$LINENO: result: no" >&5
15803 echo "${ECHO_T}no" >&6
15805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15807 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15808 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15809 cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h. */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15815 #define _POSIX_PII_SOCKET
15816 #include <sys/types.h>
15817 #include <sys/socket.h>
15819 main ()
15821 socklen_t x = 5;
15823 return 0;
15825 _ACEOF
15826 rm -f conftest.$ac_objext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828 (eval $ac_compile) 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -z "$ac_c_werror_flag"
15836 || test ! -s conftest.err'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest.$ac_objext'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15849 cat >>confdefs.h <<\_ACEOF
15850 #define HAVE_SOCKLEN_T 1
15851 _ACEOF
15853 echo "$as_me:$LINENO: result: yes" >&5
15854 echo "${ECHO_T}yes" >&6
15855 else
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 echo "$as_me:$LINENO: result: no" >&5
15860 echo "${ECHO_T}no" >&6
15862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15864 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15865 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15866 cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h. */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 #include <time.h>
15874 main ()
15876 struct tm tim; tim.tm_gmtoff = 0;
15878 return 0;
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15904 cat >>confdefs.h <<\_ACEOF
15905 #define STRUCT_TM_HAS_GMTOFF 1
15906 _ACEOF
15908 echo "$as_me:$LINENO: result: yes" >&5
15909 echo "${ECHO_T}yes" >&6
15910 else
15911 echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15914 echo "$as_me:$LINENO: result: no" >&5
15915 echo "${ECHO_T}no" >&6
15916 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15917 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15918 cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h. */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 #include <time.h>
15926 main ()
15928 void i(){long z2 = 2*timezone;}
15930 return 0;
15932 _ACEOF
15933 rm -f conftest.$ac_objext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935 (eval $ac_compile) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag"
15943 || test ! -s conftest.err'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest.$ac_objext'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15956 cat >>confdefs.h <<\_ACEOF
15957 #define HAVE_TIMEZONE 1
15958 _ACEOF
15960 echo "$as_me:$LINENO: result: yes" >&5
15961 echo "${ECHO_T}yes" >&6
15962 else
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 echo "$as_me:$LINENO: result: no" >&5
15967 echo "${ECHO_T}no" >&6
15968 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15969 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h. */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <time.h>
15978 main ()
15980 long z2 = _timezone;
15982 return 0;
15984 _ACEOF
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987 (eval $ac_compile) 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_c_werror_flag"
15995 || test ! -s conftest.err'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16008 cat >>confdefs.h <<\_ACEOF
16009 #define HAVE_UNDERSCORE_TIMEZONE 1
16010 _ACEOF
16012 echo "$as_me:$LINENO: result: yes" >&5
16013 echo "${ECHO_T}yes" >&6
16014 else
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 echo "$as_me:$LINENO: result: no" >&5
16019 echo "${ECHO_T}no" >&6
16021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16027 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16028 # for constant arguments. Useless!
16029 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16030 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16031 if test "${ac_cv_working_alloca_h+set}" = set; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 else
16034 if test x$gcc_no_link = xyes; then
16035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16037 { (exit 1); exit 1; }; }
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h. */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 #include <alloca.h>
16047 main ()
16049 char *p = (char *) alloca (2 * sizeof (int));
16051 return 0;
16053 _ACEOF
16054 rm -f conftest.$ac_objext conftest$ac_exeext
16055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16056 (eval $ac_link) 2>conftest.er1
16057 ac_status=$?
16058 grep -v '^ *+' conftest.er1 >conftest.err
16059 rm -f conftest.er1
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } &&
16063 { ac_try='test -z "$ac_c_werror_flag"
16064 || test ! -s conftest.err'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; } &&
16070 { ac_try='test -s conftest$ac_exeext'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; }; then
16076 ac_cv_working_alloca_h=yes
16077 else
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 ac_cv_working_alloca_h=no
16083 rm -f conftest.err conftest.$ac_objext \
16084 conftest$ac_exeext conftest.$ac_ext
16086 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16087 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16088 if test $ac_cv_working_alloca_h = yes; then
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_ALLOCA_H 1
16092 _ACEOF
16096 echo "$as_me:$LINENO: checking for alloca" >&5
16097 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16098 if test "${ac_cv_func_alloca_works+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101 if test x$gcc_no_link = xyes; then
16102 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16104 { (exit 1); exit 1; }; }
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #ifdef __GNUC__
16113 # define alloca __builtin_alloca
16114 #else
16115 # ifdef _MSC_VER
16116 # include <malloc.h>
16117 # define alloca _alloca
16118 # else
16119 # if HAVE_ALLOCA_H
16120 # include <alloca.h>
16121 # else
16122 # ifdef _AIX
16123 #pragma alloca
16124 # else
16125 # ifndef alloca /* predefined by HP cc +Olibcalls */
16126 char *alloca ();
16127 # endif
16128 # endif
16129 # endif
16130 # endif
16131 #endif
16134 main ()
16136 char *p = (char *) alloca (1);
16138 return 0;
16140 _ACEOF
16141 rm -f conftest.$ac_objext conftest$ac_exeext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16143 (eval $ac_link) 2>conftest.er1
16144 ac_status=$?
16145 grep -v '^ *+' conftest.er1 >conftest.err
16146 rm -f conftest.er1
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try='test -z "$ac_c_werror_flag"
16151 || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try='test -s conftest$ac_exeext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163 ac_cv_func_alloca_works=yes
16164 else
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 ac_cv_func_alloca_works=no
16170 rm -f conftest.err conftest.$ac_objext \
16171 conftest$ac_exeext conftest.$ac_ext
16173 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16174 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16176 if test $ac_cv_func_alloca_works = yes; then
16178 cat >>confdefs.h <<\_ACEOF
16179 #define HAVE_ALLOCA 1
16180 _ACEOF
16182 else
16183 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16184 # that cause trouble. Some versions do not even contain alloca or
16185 # contain a buggy version. If you still want to use their alloca,
16186 # use ar to extract alloca.o from them instead of compiling alloca.c.
16188 ALLOCA=alloca.$ac_objext
16190 cat >>confdefs.h <<\_ACEOF
16191 #define C_ALLOCA 1
16192 _ACEOF
16195 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16196 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16197 if test "${ac_cv_os_cray+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 else
16200 cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h. */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h. */
16206 #if defined(CRAY) && ! defined(CRAY2)
16207 webecray
16208 #else
16209 wenotbecray
16210 #endif
16212 _ACEOF
16213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16214 $EGREP "webecray" >/dev/null 2>&1; then
16215 ac_cv_os_cray=yes
16216 else
16217 ac_cv_os_cray=no
16219 rm -f conftest*
16222 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16223 echo "${ECHO_T}$ac_cv_os_cray" >&6
16224 if test $ac_cv_os_cray = yes; then
16225 for ac_func in _getb67 GETB67 getb67; do
16226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16227 echo "$as_me:$LINENO: checking for $ac_func" >&5
16228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16229 if eval "test \"\${$as_ac_var+set}\" = set"; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 else
16232 if test x$gcc_no_link = xyes; then
16233 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16235 { (exit 1); exit 1; }; }
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16245 #define $ac_func innocuous_$ac_func
16247 /* System header to define __stub macros and hopefully few prototypes,
16248 which can conflict with char $ac_func (); below.
16249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250 <limits.h> exists even on freestanding compilers. */
16252 #ifdef __STDC__
16253 # include <limits.h>
16254 #else
16255 # include <assert.h>
16256 #endif
16258 #undef $ac_func
16260 /* Override any gcc2 internal prototype to avoid an error. */
16261 #ifdef __cplusplus
16262 extern "C"
16264 #endif
16265 /* We use char because int might match the return type of a gcc2
16266 builtin and then its argument prototype would still apply. */
16267 char $ac_func ();
16268 /* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
16271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16272 choke me
16273 #else
16274 char (*f) () = $ac_func;
16275 #endif
16276 #ifdef __cplusplus
16278 #endif
16281 main ()
16283 return f != $ac_func;
16285 return 0;
16287 _ACEOF
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>conftest.er1
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -z "$ac_c_werror_flag"
16298 || test ! -s conftest.err'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; } &&
16304 { ac_try='test -s conftest$ac_exeext'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }; then
16310 eval "$as_ac_var=yes"
16311 else
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 eval "$as_ac_var=no"
16317 rm -f conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16322 if test `eval echo '${'$as_ac_var'}'` = yes; then
16324 cat >>confdefs.h <<_ACEOF
16325 #define CRAY_STACKSEG_END $ac_func
16326 _ACEOF
16328 break
16331 done
16334 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16335 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16336 if test "${ac_cv_c_stack_direction+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339 if test "$cross_compiling" = yes; then
16340 ac_cv_c_stack_direction=0
16341 else
16342 cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h. */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16349 find_stack_direction ()
16351 static char *addr = 0;
16352 auto char dummy;
16353 if (addr == 0)
16355 addr = &dummy;
16356 return find_stack_direction ();
16358 else
16359 return (&dummy > addr) ? 1 : -1;
16363 main ()
16365 exit (find_stack_direction () < 0);
16367 _ACEOF
16368 rm -f conftest$ac_exeext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16370 (eval $ac_link) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_cv_c_stack_direction=1
16380 else
16381 echo "$as_me: program exited with status $ac_status" >&5
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 ( exit $ac_status )
16386 ac_cv_c_stack_direction=-1
16388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16391 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16392 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16394 cat >>confdefs.h <<_ACEOF
16395 #define STACK_DIRECTION $ac_cv_c_stack_direction
16396 _ACEOF
16402 for ac_prog in perl
16404 # Extract the first word of "$ac_prog", so it can be a program name with args.
16405 set dummy $ac_prog; ac_word=$2
16406 echo "$as_me:$LINENO: checking for $ac_word" >&5
16407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16408 if test "${ac_cv_prog_PERL+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411 if test -n "$PERL"; then
16412 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16413 else
16414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16415 for as_dir in $PATH
16417 IFS=$as_save_IFS
16418 test -z "$as_dir" && as_dir=.
16419 for ac_exec_ext in '' $ac_executable_extensions; do
16420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16421 ac_cv_prog_PERL="$ac_prog"
16422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16423 break 2
16425 done
16426 done
16430 PERL=$ac_cv_prog_PERL
16431 if test -n "$PERL"; then
16432 echo "$as_me:$LINENO: result: $PERL" >&5
16433 echo "${ECHO_T}$PERL" >&6
16434 else
16435 echo "$as_me:$LINENO: result: no" >&5
16436 echo "${ECHO_T}no" >&6
16439 test -n "$PERL" && break
16440 done
16441 test -n "$PERL" || PERL="false"
16444 SYSDEP_SOURCES=
16445 SIGNAL_HANDLER_AUX=
16447 case "${host}" in
16448 i?86-*-linux*)
16449 SIGNAL_HANDLER=include/i386-signal.h
16451 sparc*-sun-solaris*)
16452 SIGNAL_HANDLER=include/sparc-signal.h
16454 # ia64-*)
16455 # SYSDEP_SOURCES=sysdep/ia64.c
16456 # test -d sysdep || mkdir sysdep
16457 # ;;
16458 hppa*-*-linux*)
16459 SIGNAL_HANDLER=include/pa-signal.h
16461 hppa*-hp-hpux*)
16462 SIGNAL_HANDLER=include/hppa-signal.h
16464 ia64-*-linux*)
16465 SIGNAL_HANDLER=include/dwarf2-signal.h
16467 powerpc*-*-linux*)
16468 SIGNAL_HANDLER=include/powerpc-signal.h
16470 alpha*-*-linux*)
16471 SIGNAL_HANDLER=include/dwarf2-signal.h
16473 s390*-*-linux*)
16474 SIGNAL_HANDLER=include/s390-signal.h
16476 x86_64*-*-linux*)
16477 SIGNAL_HANDLER=include/x86_64-signal.h
16478 SIGNAL_HANDLER_AUX=include/i386-signal.h
16480 sparc*-*-linux*)
16481 SIGNAL_HANDLER=include/dwarf2-signal.h
16483 sh*-*-linux*)
16484 SIGNAL_HANDLER=include/sh-signal.h
16486 *mingw*)
16487 SIGNAL_HANDLER=include/win32-signal.h
16489 mips*-*-linux*)
16490 SIGNAL_HANDLER=include/mips-signal.h
16492 *-*-darwin*)
16493 SIGNAL_HANDLER=include/darwin-signal.h
16496 SIGNAL_HANDLER=include/default-signal.h
16498 esac
16500 # If we're using sjlj exceptions, forget what we just learned.
16501 if test "$enable_sjlj_exceptions" = yes; then
16502 SIGNAL_HANDLER=include/default-signal.h
16503 SIGNAL_HANDLER_AUX=
16508 if test -z "$SIGNAL_HANDLER_AUX"; then
16509 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16512 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16515 if test "${multilib}" = "yes"; then
16516 multilib_arg="--enable-multilib"
16517 else
16518 multilib_arg=
16521 # See if we support thread-local storage.
16523 # Check whether --enable-tls or --disable-tls was given.
16524 if test "${enable_tls+set}" = set; then
16525 enableval="$enable_tls"
16527 case "$enableval" in
16528 yes|no) ;;
16529 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16530 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16531 { (exit 1); exit 1; }; } ;;
16532 esac
16534 else
16535 enable_tls=yes
16538 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16539 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16540 if test "${have_tls+set}" = set; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16544 if test "$cross_compiling" = yes; then
16545 cat >conftest.$ac_ext <<_ACEOF
16546 __thread int foo;
16547 _ACEOF
16548 rm -f conftest.$ac_objext
16549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16550 (eval $ac_compile) 2>conftest.er1
16551 ac_status=$?
16552 grep -v '^ *+' conftest.er1 >conftest.err
16553 rm -f conftest.er1
16554 cat conftest.err >&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } &&
16557 { ac_try='test -z "$ac_c_werror_flag"
16558 || test ! -s conftest.err'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; } &&
16564 { ac_try='test -s conftest.$ac_objext'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 have_tls=yes
16571 else
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 have_tls=no
16577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16579 else
16580 cat >conftest.$ac_ext <<_ACEOF
16581 __thread int a; int b; int main() { return a = b; }
16582 _ACEOF
16583 rm -f conftest$ac_exeext
16584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 save_LDFLAGS="$LDFLAGS"
16595 LDFLAGS="-static $LDFLAGS"
16596 if test "$cross_compiling" = yes; then
16597 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16598 See \`config.log' for more details." >&5
16599 echo "$as_me: error: cannot run test program while cross compiling
16600 See \`config.log' for more details." >&2;}
16601 { (exit 1); exit 1; }; }
16602 else
16603 cat >conftest.$ac_ext <<_ACEOF
16604 __thread int a; int b; int main() { return a = b; }
16605 _ACEOF
16606 rm -f conftest$ac_exeext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16608 (eval $ac_link) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 have_tls=yes
16618 else
16619 echo "$as_me: program exited with status $ac_status" >&5
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 ( exit $ac_status )
16624 have_tls=no
16626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16628 LDFLAGS="$save_LDFLAGS"
16629 else
16630 echo "$as_me: program exited with status $ac_status" >&5
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 ( exit $ac_status )
16635 have_tls=no
16637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16640 echo "$as_me:$LINENO: result: $have_tls" >&5
16641 echo "${ECHO_T}$have_tls" >&6
16642 if test "$enable_tls $have_tls" = "yes yes"; then
16644 cat >>confdefs.h <<\_ACEOF
16645 #define HAVE_TLS 1
16646 _ACEOF
16650 # Check if linker supports static linking on a per library basis
16651 LD_START_STATIC_SPEC=
16652 LD_FINISH_STATIC_SPEC=
16653 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16654 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16655 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16656 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16662 here=`${PWDCMD-pwd}`
16665 # We get this from the environment.
16668 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16671 ac_config_commands="$ac_config_commands default"
16674 cat >confcache <<\_ACEOF
16675 # This file is a shell script that caches the results of configure
16676 # tests run on this system so they can be shared between configure
16677 # scripts and configure runs, see configure's option --config-cache.
16678 # It is not useful on other systems. If it contains results you don't
16679 # want to keep, you may remove or edit it.
16681 # config.status only pays attention to the cache file if you give it
16682 # the --recheck option to rerun configure.
16684 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16685 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16686 # following values.
16688 _ACEOF
16690 # The following way of writing the cache mishandles newlines in values,
16691 # but we know of no workaround that is simple, portable, and efficient.
16692 # So, don't put newlines in cache variables' values.
16693 # Ultrix sh set writes to stderr and can't be redirected directly,
16694 # and sets the high bit in the cache file unless we assign to the vars.
16696 (set) 2>&1 |
16697 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16698 *ac_space=\ *)
16699 # `set' does not quote correctly, so add quotes (double-quote
16700 # substitution turns \\\\ into \\, and sed turns \\ into \).
16701 sed -n \
16702 "s/'/'\\\\''/g;
16703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16706 # `set' quotes correctly as required by POSIX, so do not add quotes.
16707 sed -n \
16708 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16710 esac;
16712 sed '
16713 t clear
16714 : clear
16715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16716 t end
16717 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16718 : end' >>confcache
16719 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16720 if test -w $cache_file; then
16721 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16722 cat confcache >$cache_file
16723 else
16724 echo "not updating unwritable cache $cache_file"
16727 rm -f confcache
16729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16730 # Let make expand exec_prefix.
16731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16733 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16734 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16735 # trailing colons and then remove the whole line if VPATH becomes empty
16736 # (actually we leave an empty line to preserve line numbers).
16737 if test "x$srcdir" = x.; then
16738 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16739 s/:*\$(srcdir):*/:/;
16740 s/:*\${srcdir}:*/:/;
16741 s/:*@srcdir@:*/:/;
16742 s/^\([^=]*=[ ]*\):*/\1/;
16743 s/:*$//;
16744 s/^[^=]*=[ ]*$//;
16748 DEFS=-DHAVE_CONFIG_H
16750 ac_libobjs=
16751 ac_ltlibobjs=
16752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16753 # 1. Remove the extension, and $U if already installed.
16754 ac_i=`echo "$ac_i" |
16755 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16756 # 2. Add them.
16757 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16758 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16759 done
16760 LIBOBJS=$ac_libobjs
16762 LTLIBOBJS=$ac_ltlibobjs
16765 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16766 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16767 Usually this means the macro was only invoked conditionally." >&5
16768 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16769 Usually this means the macro was only invoked conditionally." >&2;}
16770 { (exit 1); exit 1; }; }
16772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16773 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16774 Usually this means the macro was only invoked conditionally." >&5
16775 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16776 Usually this means the macro was only invoked conditionally." >&2;}
16777 { (exit 1); exit 1; }; }
16779 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16780 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16781 Usually this means the macro was only invoked conditionally." >&5
16782 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16783 Usually this means the macro was only invoked conditionally." >&2;}
16784 { (exit 1); exit 1; }; }
16786 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16787 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16788 Usually this means the macro was only invoked conditionally." >&5
16789 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16790 Usually this means the macro was only invoked conditionally." >&2;}
16791 { (exit 1); exit 1; }; }
16793 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16794 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16795 Usually this means the macro was only invoked conditionally." >&5
16796 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16797 Usually this means the macro was only invoked conditionally." >&2;}
16798 { (exit 1); exit 1; }; }
16800 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
16801 { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
16802 Usually this means the macro was only invoked conditionally." >&5
16803 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
16804 Usually this means the macro was only invoked conditionally." >&2;}
16805 { (exit 1); exit 1; }; }
16807 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16808 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16809 Usually this means the macro was only invoked conditionally." >&5
16810 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16811 Usually this means the macro was only invoked conditionally." >&2;}
16812 { (exit 1); exit 1; }; }
16814 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16815 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16816 Usually this means the macro was only invoked conditionally." >&5
16817 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16818 Usually this means the macro was only invoked conditionally." >&2;}
16819 { (exit 1); exit 1; }; }
16821 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16822 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16823 Usually this means the macro was only invoked conditionally." >&5
16824 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16825 Usually this means the macro was only invoked conditionally." >&2;}
16826 { (exit 1); exit 1; }; }
16828 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16829 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16830 Usually this means the macro was only invoked conditionally." >&5
16831 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16832 Usually this means the macro was only invoked conditionally." >&2;}
16833 { (exit 1); exit 1; }; }
16835 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16836 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16837 Usually this means the macro was only invoked conditionally." >&5
16838 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16839 Usually this means the macro was only invoked conditionally." >&2;}
16840 { (exit 1); exit 1; }; }
16842 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16843 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16844 Usually this means the macro was only invoked conditionally." >&5
16845 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16846 Usually this means the macro was only invoked conditionally." >&2;}
16847 { (exit 1); exit 1; }; }
16849 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16850 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16851 Usually this means the macro was only invoked conditionally." >&5
16852 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16853 Usually this means the macro was only invoked conditionally." >&2;}
16854 { (exit 1); exit 1; }; }
16856 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16857 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16858 Usually this means the macro was only invoked conditionally." >&5
16859 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16860 Usually this means the macro was only invoked conditionally." >&2;}
16861 { (exit 1); exit 1; }; }
16863 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16864 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16865 Usually this means the macro was only invoked conditionally." >&5
16866 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16867 Usually this means the macro was only invoked conditionally." >&2;}
16868 { (exit 1); exit 1; }; }
16870 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16871 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16872 Usually this means the macro was only invoked conditionally." >&5
16873 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16874 Usually this means the macro was only invoked conditionally." >&2;}
16875 { (exit 1); exit 1; }; }
16877 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16878 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16879 Usually this means the macro was only invoked conditionally." >&5
16880 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16881 Usually this means the macro was only invoked conditionally." >&2;}
16882 { (exit 1); exit 1; }; }
16884 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16885 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16886 Usually this means the macro was only invoked conditionally." >&5
16887 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16888 Usually this means the macro was only invoked conditionally." >&2;}
16889 { (exit 1); exit 1; }; }
16891 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16892 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16893 Usually this means the macro was only invoked conditionally." >&5
16894 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16895 Usually this means the macro was only invoked conditionally." >&2;}
16896 { (exit 1); exit 1; }; }
16898 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16899 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16900 Usually this means the macro was only invoked conditionally." >&5
16901 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16902 Usually this means the macro was only invoked conditionally." >&2;}
16903 { (exit 1); exit 1; }; }
16905 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16906 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16907 Usually this means the macro was only invoked conditionally." >&5
16908 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16909 Usually this means the macro was only invoked conditionally." >&2;}
16910 { (exit 1); exit 1; }; }
16913 : ${CONFIG_STATUS=./config.status}
16914 ac_clean_files_save=$ac_clean_files
16915 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16916 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16917 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16918 cat >$CONFIG_STATUS <<_ACEOF
16919 #! $SHELL
16920 # Generated by $as_me.
16921 # Run this file to recreate the current configuration.
16922 # Compiler output produced by configure, useful for debugging
16923 # configure, is in config.log if it exists.
16925 debug=false
16926 ac_cs_recheck=false
16927 ac_cs_silent=false
16928 SHELL=\${CONFIG_SHELL-$SHELL}
16929 _ACEOF
16931 cat >>$CONFIG_STATUS <<\_ACEOF
16932 ## --------------------- ##
16933 ## M4sh Initialization. ##
16934 ## --------------------- ##
16936 # Be Bourne compatible
16937 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16938 emulate sh
16939 NULLCMD=:
16940 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16941 # is contrary to our usage. Disable this feature.
16942 alias -g '${1+"$@"}'='"$@"'
16943 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16944 set -o posix
16946 DUALCASE=1; export DUALCASE # for MKS sh
16948 # Support unset when possible.
16949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16950 as_unset=unset
16951 else
16952 as_unset=false
16956 # Work around bugs in pre-3.0 UWIN ksh.
16957 $as_unset ENV MAIL MAILPATH
16958 PS1='$ '
16959 PS2='> '
16960 PS4='+ '
16962 # NLS nuisances.
16963 for as_var in \
16964 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16965 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16966 LC_TELEPHONE LC_TIME
16968 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16969 eval $as_var=C; export $as_var
16970 else
16971 $as_unset $as_var
16973 done
16975 # Required to use basename.
16976 if expr a : '\(a\)' >/dev/null 2>&1; then
16977 as_expr=expr
16978 else
16979 as_expr=false
16982 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16983 as_basename=basename
16984 else
16985 as_basename=false
16989 # Name of the executable.
16990 as_me=`$as_basename "$0" ||
16991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16992 X"$0" : 'X\(//\)$' \| \
16993 X"$0" : 'X\(/\)$' \| \
16994 . : '\(.\)' 2>/dev/null ||
16995 echo X/"$0" |
16996 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16997 /^X\/\(\/\/\)$/{ s//\1/; q; }
16998 /^X\/\(\/\).*/{ s//\1/; q; }
16999 s/.*/./; q'`
17002 # PATH needs CR, and LINENO needs CR and PATH.
17003 # Avoid depending upon Character Ranges.
17004 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17005 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17006 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17007 as_cr_digits='0123456789'
17008 as_cr_alnum=$as_cr_Letters$as_cr_digits
17010 # The user is always right.
17011 if test "${PATH_SEPARATOR+set}" != set; then
17012 echo "#! /bin/sh" >conf$$.sh
17013 echo "exit 0" >>conf$$.sh
17014 chmod +x conf$$.sh
17015 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17016 PATH_SEPARATOR=';'
17017 else
17018 PATH_SEPARATOR=:
17020 rm -f conf$$.sh
17024 as_lineno_1=$LINENO
17025 as_lineno_2=$LINENO
17026 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17027 test "x$as_lineno_1" != "x$as_lineno_2" &&
17028 test "x$as_lineno_3" = "x$as_lineno_2" || {
17029 # Find who we are. Look in the path if we contain no path at all
17030 # relative or not.
17031 case $0 in
17032 *[\\/]* ) as_myself=$0 ;;
17033 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17034 for as_dir in $PATH
17036 IFS=$as_save_IFS
17037 test -z "$as_dir" && as_dir=.
17038 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17039 done
17042 esac
17043 # We did not find ourselves, most probably we were run as `sh COMMAND'
17044 # in which case we are not to be found in the path.
17045 if test "x$as_myself" = x; then
17046 as_myself=$0
17048 if test ! -f "$as_myself"; then
17049 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17050 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17051 { (exit 1); exit 1; }; }
17053 case $CONFIG_SHELL in
17055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17056 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17058 IFS=$as_save_IFS
17059 test -z "$as_dir" && as_dir=.
17060 for as_base in sh bash ksh sh5; do
17061 case $as_dir in
17063 if ("$as_dir/$as_base" -c '
17064 as_lineno_1=$LINENO
17065 as_lineno_2=$LINENO
17066 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17067 test "x$as_lineno_1" != "x$as_lineno_2" &&
17068 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17069 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17070 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17071 CONFIG_SHELL=$as_dir/$as_base
17072 export CONFIG_SHELL
17073 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17074 fi;;
17075 esac
17076 done
17077 done
17079 esac
17081 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17082 # uniformly replaced by the line number. The first 'sed' inserts a
17083 # line-number line before each line; the second 'sed' does the real
17084 # work. The second script uses 'N' to pair each line-number line
17085 # with the numbered line, and appends trailing '-' during
17086 # substitution so that $LINENO is not a special case at line end.
17087 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17088 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17089 sed '=' <$as_myself |
17090 sed '
17092 s,$,-,
17093 : loop
17094 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17095 t loop
17096 s,-$,,
17097 s,^['$as_cr_digits']*\n,,
17098 ' >$as_me.lineno &&
17099 chmod +x $as_me.lineno ||
17100 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17101 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17102 { (exit 1); exit 1; }; }
17104 # Don't try to exec as it changes $[0], causing all sort of problems
17105 # (the dirname of $[0] is not the place where we might find the
17106 # original and so on. Autoconf is especially sensible to this).
17107 . ./$as_me.lineno
17108 # Exit status is that of the last command.
17109 exit
17113 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17114 *c*,-n*) ECHO_N= ECHO_C='
17115 ' ECHO_T=' ' ;;
17116 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17117 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17118 esac
17120 if expr a : '\(a\)' >/dev/null 2>&1; then
17121 as_expr=expr
17122 else
17123 as_expr=false
17126 rm -f conf$$ conf$$.exe conf$$.file
17127 echo >conf$$.file
17128 if ln -s conf$$.file conf$$ 2>/dev/null; then
17129 # We could just check for DJGPP; but this test a) works b) is more generic
17130 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17131 if test -f conf$$.exe; then
17132 # Don't use ln at all; we don't have any links
17133 as_ln_s='cp -p'
17134 else
17135 as_ln_s='ln -s'
17137 elif ln conf$$.file conf$$ 2>/dev/null; then
17138 as_ln_s=ln
17139 else
17140 as_ln_s='cp -p'
17142 rm -f conf$$ conf$$.exe conf$$.file
17144 if mkdir -p . 2>/dev/null; then
17145 as_mkdir_p=:
17146 else
17147 test -d ./-p && rmdir ./-p
17148 as_mkdir_p=false
17151 as_executable_p="test -f"
17153 # Sed expression to map a string onto a valid CPP name.
17154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17156 # Sed expression to map a string onto a valid variable name.
17157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17160 # IFS
17161 # We need space, tab and new line, in precisely that order.
17162 as_nl='
17164 IFS=" $as_nl"
17166 # CDPATH.
17167 $as_unset CDPATH
17169 exec 6>&1
17171 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17172 # report actual input values of CONFIG_FILES etc. instead of their
17173 # values after options handling. Logging --version etc. is OK.
17174 exec 5>>config.log
17176 echo
17177 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17178 ## Running $as_me. ##
17179 _ASBOX
17180 } >&5
17181 cat >&5 <<_CSEOF
17183 This file was extended by libjava $as_me version-unused, which was
17184 generated by GNU Autoconf 2.59. Invocation command line was
17186 CONFIG_FILES = $CONFIG_FILES
17187 CONFIG_HEADERS = $CONFIG_HEADERS
17188 CONFIG_LINKS = $CONFIG_LINKS
17189 CONFIG_COMMANDS = $CONFIG_COMMANDS
17190 $ $0 $@
17192 _CSEOF
17193 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17194 echo >&5
17195 _ACEOF
17197 # Files that config.status was made for.
17198 if test -n "$ac_config_files"; then
17199 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17202 if test -n "$ac_config_headers"; then
17203 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17206 if test -n "$ac_config_links"; then
17207 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17210 if test -n "$ac_config_commands"; then
17211 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17214 cat >>$CONFIG_STATUS <<\_ACEOF
17216 ac_cs_usage="\
17217 \`$as_me' instantiates files from templates according to the
17218 current configuration.
17220 Usage: $0 [OPTIONS] [FILE]...
17222 -h, --help print this help, then exit
17223 -V, --version print version number, then exit
17224 -q, --quiet do not print progress messages
17225 -d, --debug don't remove temporary files
17226 --recheck update $as_me by reconfiguring in the same conditions
17227 --file=FILE[:TEMPLATE]
17228 instantiate the configuration file FILE
17229 --header=FILE[:TEMPLATE]
17230 instantiate the configuration header FILE
17232 Configuration files:
17233 $config_files
17235 Configuration headers:
17236 $config_headers
17238 Configuration links:
17239 $config_links
17241 Configuration commands:
17242 $config_commands
17244 Report bugs to <bug-autoconf@gnu.org>."
17245 _ACEOF
17247 cat >>$CONFIG_STATUS <<_ACEOF
17248 ac_cs_version="\\
17249 libjava config.status version-unused
17250 configured by $0, generated by GNU Autoconf 2.59,
17251 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17253 Copyright (C) 2003 Free Software Foundation, Inc.
17254 This config.status script is free software; the Free Software Foundation
17255 gives unlimited permission to copy, distribute and modify it."
17256 srcdir=$srcdir
17257 INSTALL="$INSTALL"
17258 _ACEOF
17260 cat >>$CONFIG_STATUS <<\_ACEOF
17261 # If no file are specified by the user, then we need to provide default
17262 # value. By we need to know if files were specified by the user.
17263 ac_need_defaults=:
17264 while test $# != 0
17266 case $1 in
17267 --*=*)
17268 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17269 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17270 ac_shift=:
17273 ac_option=$1
17274 ac_optarg=$2
17275 ac_shift=shift
17277 *) # This is not an option, so the user has probably given explicit
17278 # arguments.
17279 ac_option=$1
17280 ac_need_defaults=false;;
17281 esac
17283 case $ac_option in
17284 # Handling of the options.
17285 _ACEOF
17286 cat >>$CONFIG_STATUS <<\_ACEOF
17287 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17288 ac_cs_recheck=: ;;
17289 --version | --vers* | -V )
17290 echo "$ac_cs_version"; exit 0 ;;
17291 --he | --h)
17292 # Conflict between --help and --header
17293 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17294 Try \`$0 --help' for more information." >&5
17295 echo "$as_me: error: ambiguous option: $1
17296 Try \`$0 --help' for more information." >&2;}
17297 { (exit 1); exit 1; }; };;
17298 --help | --hel | -h )
17299 echo "$ac_cs_usage"; exit 0 ;;
17300 --debug | --d* | -d )
17301 debug=: ;;
17302 --file | --fil | --fi | --f )
17303 $ac_shift
17304 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17305 ac_need_defaults=false;;
17306 --header | --heade | --head | --hea )
17307 $ac_shift
17308 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17309 ac_need_defaults=false;;
17310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17311 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17312 ac_cs_silent=: ;;
17314 # This is an error.
17315 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17316 Try \`$0 --help' for more information." >&5
17317 echo "$as_me: error: unrecognized option: $1
17318 Try \`$0 --help' for more information." >&2;}
17319 { (exit 1); exit 1; }; } ;;
17321 *) ac_config_targets="$ac_config_targets $1" ;;
17323 esac
17324 shift
17325 done
17327 ac_configure_extra_args=
17329 if $ac_cs_silent; then
17330 exec 6>/dev/null
17331 ac_configure_extra_args="$ac_configure_extra_args --silent"
17334 _ACEOF
17335 cat >>$CONFIG_STATUS <<_ACEOF
17336 if \$ac_cs_recheck; then
17337 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17338 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17341 _ACEOF
17343 cat >>$CONFIG_STATUS <<_ACEOF
17345 # INIT-COMMANDS section.
17348 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17349 srcdir=${srcdir}
17350 host=${host}
17351 target=${target}
17352 with_multisubdir=${with_multisubdir}
17353 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17354 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17355 libgcj_basedir=${libgcj_basedir}
17356 CC="${CC}"
17357 CXX="${CXX}"
17358 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17361 _ACEOF
17365 cat >>$CONFIG_STATUS <<\_ACEOF
17366 for ac_config_target in $ac_config_targets
17368 case "$ac_config_target" in
17369 # Handling of arguments.
17370 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17371 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17372 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17373 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17374 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17375 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17376 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17377 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17378 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17379 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17380 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17381 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17382 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17383 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17384 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17385 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17386 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17387 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17388 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17389 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17390 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17391 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17392 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17393 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17394 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17395 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17396 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17397 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17398 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17399 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17400 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17401 { (exit 1); exit 1; }; };;
17402 esac
17403 done
17405 # If the user did not use the arguments to specify the items to instantiate,
17406 # then the envvar interface is used. Set only those that are not.
17407 # We use the long form for the default assignment because of an extremely
17408 # bizarre bug on SunOS 4.1.3.
17409 if $ac_need_defaults; then
17410 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17411 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17412 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17413 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17416 # Have a temporary directory for convenience. Make it in the build tree
17417 # simply because there is no reason to put it here, and in addition,
17418 # creating and moving files from /tmp can sometimes cause problems.
17419 # Create a temporary directory, and hook for its removal unless debugging.
17420 $debug ||
17422 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17423 trap '{ (exit 1); exit 1; }' 1 2 13 15
17426 # Create a (secure) tmp directory for tmp files.
17429 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17430 test -n "$tmp" && test -d "$tmp"
17431 } ||
17433 tmp=./confstat$$-$RANDOM
17434 (umask 077 && mkdir $tmp)
17435 } ||
17437 echo "$me: cannot create a temporary directory in ." >&2
17438 { (exit 1); exit 1; }
17441 _ACEOF
17443 cat >>$CONFIG_STATUS <<_ACEOF
17446 # CONFIG_FILES section.
17449 # No need to generate the scripts if there are no CONFIG_FILES.
17450 # This happens for instance when ./config.status config.h
17451 if test -n "\$CONFIG_FILES"; then
17452 # Protect against being on the right side of a sed subst in config.status.
17453 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17454 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17455 s,@SHELL@,$SHELL,;t t
17456 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17457 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17458 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17459 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17460 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17461 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17462 s,@exec_prefix@,$exec_prefix,;t t
17463 s,@prefix@,$prefix,;t t
17464 s,@program_transform_name@,$program_transform_name,;t t
17465 s,@bindir@,$bindir,;t t
17466 s,@sbindir@,$sbindir,;t t
17467 s,@libexecdir@,$libexecdir,;t t
17468 s,@datadir@,$datadir,;t t
17469 s,@sysconfdir@,$sysconfdir,;t t
17470 s,@sharedstatedir@,$sharedstatedir,;t t
17471 s,@localstatedir@,$localstatedir,;t t
17472 s,@libdir@,$libdir,;t t
17473 s,@includedir@,$includedir,;t t
17474 s,@oldincludedir@,$oldincludedir,;t t
17475 s,@infodir@,$infodir,;t t
17476 s,@mandir@,$mandir,;t t
17477 s,@build_alias@,$build_alias,;t t
17478 s,@host_alias@,$host_alias,;t t
17479 s,@target_alias@,$target_alias,;t t
17480 s,@DEFS@,$DEFS,;t t
17481 s,@ECHO_C@,$ECHO_C,;t t
17482 s,@ECHO_N@,$ECHO_N,;t t
17483 s,@ECHO_T@,$ECHO_T,;t t
17484 s,@LIBS@,$LIBS,;t t
17485 s,@build@,$build,;t t
17486 s,@build_cpu@,$build_cpu,;t t
17487 s,@build_vendor@,$build_vendor,;t t
17488 s,@build_os@,$build_os,;t t
17489 s,@build_subdir@,$build_subdir,;t t
17490 s,@host_subdir@,$host_subdir,;t t
17491 s,@target_subdir@,$target_subdir,;t t
17492 s,@libgcj_basedir@,$libgcj_basedir,;t t
17493 s,@host@,$host,;t t
17494 s,@host_cpu@,$host_cpu,;t t
17495 s,@host_vendor@,$host_vendor,;t t
17496 s,@host_os@,$host_os,;t t
17497 s,@target@,$target,;t t
17498 s,@target_cpu@,$target_cpu,;t t
17499 s,@target_vendor@,$target_vendor,;t t
17500 s,@target_os@,$target_os,;t t
17501 s,@target_noncanonical@,$target_noncanonical,;t t
17502 s,@LN_S@,$LN_S,;t t
17503 s,@mkinstalldirs@,$mkinstalldirs,;t t
17504 s,@CC@,$CC,;t t
17505 s,@ac_ct_CC@,$ac_ct_CC,;t t
17506 s,@EXEEXT@,$EXEEXT,;t t
17507 s,@OBJEXT@,$OBJEXT,;t t
17508 s,@CXX@,$CXX,;t t
17509 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17510 s,@CFLAGS@,$CFLAGS,;t t
17511 s,@CXXFLAGS@,$CXXFLAGS,;t t
17512 s,@LDFLAGS@,$LDFLAGS,;t t
17513 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17514 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17515 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17516 s,@CYGPATH_W@,$CYGPATH_W,;t t
17517 s,@PACKAGE@,$PACKAGE,;t t
17518 s,@VERSION@,$VERSION,;t t
17519 s,@ACLOCAL@,$ACLOCAL,;t t
17520 s,@AUTOCONF@,$AUTOCONF,;t t
17521 s,@AUTOMAKE@,$AUTOMAKE,;t t
17522 s,@AUTOHEADER@,$AUTOHEADER,;t t
17523 s,@MAKEINFO@,$MAKEINFO,;t t
17524 s,@install_sh@,$install_sh,;t t
17525 s,@STRIP@,$STRIP,;t t
17526 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17527 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17528 s,@mkdir_p@,$mkdir_p,;t t
17529 s,@AWK@,$AWK,;t t
17530 s,@SET_MAKE@,$SET_MAKE,;t t
17531 s,@am__leading_dot@,$am__leading_dot,;t t
17532 s,@AMTAR@,$AMTAR,;t t
17533 s,@am__tar@,$am__tar,;t t
17534 s,@am__untar@,$am__untar,;t t
17535 s,@DEPDIR@,$DEPDIR,;t t
17536 s,@am__include@,$am__include,;t t
17537 s,@am__quote@,$am__quote,;t t
17538 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17539 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17540 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17541 s,@CCDEPMODE@,$CCDEPMODE,;t t
17542 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17543 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17544 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17545 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17546 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17547 s,@AS@,$AS,;t t
17548 s,@ac_ct_AS@,$ac_ct_AS,;t t
17549 s,@LD@,$LD,;t t
17550 s,@ac_ct_LD@,$ac_ct_LD,;t t
17551 s,@AR@,$AR,;t t
17552 s,@ac_ct_AR@,$ac_ct_AR,;t t
17553 s,@RANLIB@,$RANLIB,;t t
17554 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17555 s,@JAR@,$JAR,;t t
17556 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17557 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17558 s,@MAINT@,$MAINT,;t t
17559 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17560 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17561 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17562 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17563 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17564 s,@TOOLKIT@,$TOOLKIT,;t t
17565 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17566 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17567 s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17568 s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17569 s,@GCJH@,$GCJH,;t t
17570 s,@INCLTDL@,$INCLTDL,;t t
17571 s,@LIBLTDL@,$LIBLTDL,;t t
17572 s,@DIRLTDL@,$DIRLTDL,;t t
17573 s,@LIBTOOL@,$LIBTOOL,;t t
17574 s,@CXXCPP@,$CXXCPP,;t t
17575 s,@CPPFLAGS@,$CPPFLAGS,;t t
17576 s,@GCJ@,$GCJ,;t t
17577 s,@GCJFLAGS@,$GCJFLAGS,;t t
17578 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17579 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17580 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17581 s,@subdirs@,$subdirs,;t t
17582 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17583 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17584 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17585 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17586 s,@JAVA_HOME@,$JAVA_HOME,;t t
17587 s,@INTERPRETER@,$INTERPRETER,;t t
17588 s,@LIBFFI@,$LIBFFI,;t t
17589 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17590 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17591 s,@CPP@,$CPP,;t t
17592 s,@EGREP@,$EGREP,;t t
17593 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17594 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17595 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17596 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17597 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17598 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17599 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17600 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17601 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17602 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17603 s,@X_CFLAGS@,$X_CFLAGS,;t t
17604 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17605 s,@X_LIBS@,$X_LIBS,;t t
17606 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17607 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17608 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17609 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17610 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17611 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17612 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17613 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17614 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17615 s,@GCLIBS@,$GCLIBS,;t t
17616 s,@GCINCS@,$GCINCS,;t t
17617 s,@GCDEPS@,$GCDEPS,;t t
17618 s,@GCSPEC@,$GCSPEC,;t t
17619 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17620 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17621 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17622 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17623 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17624 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17625 s,@THREADLIBS@,$THREADLIBS,;t t
17626 s,@THREADINCS@,$THREADINCS,;t t
17627 s,@THREADDEPS@,$THREADDEPS,;t t
17628 s,@THREADSPEC@,$THREADSPEC,;t t
17629 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17630 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17631 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17632 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17633 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17634 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17635 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17636 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17637 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17638 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17639 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17640 s,@LIBICONV@,$LIBICONV,;t t
17641 s,@LTLIBICONV@,$LTLIBICONV,;t t
17642 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17643 s,@GTK_LIBS@,$GTK_LIBS,;t t
17644 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17645 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17646 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17647 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17648 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17649 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17650 s,@ZLIBS@,$ZLIBS,;t t
17651 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17652 s,@ZINCS@,$ZINCS,;t t
17653 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17654 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17655 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17656 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17657 s,@IEEESPEC@,$IEEESPEC,;t t
17658 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17659 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17660 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17661 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17662 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17663 s,@toolexecdir@,$toolexecdir,;t t
17664 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17665 s,@toolexeclibdir@,$toolexeclibdir,;t t
17666 s,@dbexecdir@,$dbexecdir,;t t
17667 s,@GCJVERSION@,$GCJVERSION,;t t
17668 s,@gxx_include_dir@,$gxx_include_dir,;t t
17669 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17670 s,@ALLOCA@,$ALLOCA,;t t
17671 s,@PERL@,$PERL,;t t
17672 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17673 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17674 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17675 s,@here@,$here,;t t
17676 s,@LIBOBJS@,$LIBOBJS,;t t
17677 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17678 CEOF
17680 _ACEOF
17682 cat >>$CONFIG_STATUS <<\_ACEOF
17683 # Split the substitutions into bite-sized pieces for seds with
17684 # small command number limits, like on Digital OSF/1 and HP-UX.
17685 ac_max_sed_lines=48
17686 ac_sed_frag=1 # Number of current file.
17687 ac_beg=1 # First line for current file.
17688 ac_end=$ac_max_sed_lines # Line after last line for current file.
17689 ac_more_lines=:
17690 ac_sed_cmds=
17691 while $ac_more_lines; do
17692 if test $ac_beg -gt 1; then
17693 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17694 else
17695 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17697 if test ! -s $tmp/subs.frag; then
17698 ac_more_lines=false
17699 else
17700 # The purpose of the label and of the branching condition is to
17701 # speed up the sed processing (if there are no `@' at all, there
17702 # is no need to browse any of the substitutions).
17703 # These are the two extra sed commands mentioned above.
17704 (echo ':t
17705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17706 if test -z "$ac_sed_cmds"; then
17707 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17708 else
17709 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17711 ac_sed_frag=`expr $ac_sed_frag + 1`
17712 ac_beg=$ac_end
17713 ac_end=`expr $ac_end + $ac_max_sed_lines`
17715 done
17716 if test -z "$ac_sed_cmds"; then
17717 ac_sed_cmds=cat
17719 fi # test -n "$CONFIG_FILES"
17721 _ACEOF
17722 cat >>$CONFIG_STATUS <<\_ACEOF
17723 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17725 case $ac_file in
17726 - | *:- | *:-:* ) # input from stdin
17727 cat >$tmp/stdin
17728 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17729 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17730 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17731 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17732 * ) ac_file_in=$ac_file.in ;;
17733 esac
17735 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17736 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17737 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17738 X"$ac_file" : 'X\(//\)[^/]' \| \
17739 X"$ac_file" : 'X\(//\)$' \| \
17740 X"$ac_file" : 'X\(/\)' \| \
17741 . : '\(.\)' 2>/dev/null ||
17742 echo X"$ac_file" |
17743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17745 /^X\(\/\/\)$/{ s//\1/; q; }
17746 /^X\(\/\).*/{ s//\1/; q; }
17747 s/.*/./; q'`
17748 { if $as_mkdir_p; then
17749 mkdir -p "$ac_dir"
17750 else
17751 as_dir="$ac_dir"
17752 as_dirs=
17753 while test ! -d "$as_dir"; do
17754 as_dirs="$as_dir $as_dirs"
17755 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17756 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17757 X"$as_dir" : 'X\(//\)[^/]' \| \
17758 X"$as_dir" : 'X\(//\)$' \| \
17759 X"$as_dir" : 'X\(/\)' \| \
17760 . : '\(.\)' 2>/dev/null ||
17761 echo X"$as_dir" |
17762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17764 /^X\(\/\/\)$/{ s//\1/; q; }
17765 /^X\(\/\).*/{ s//\1/; q; }
17766 s/.*/./; q'`
17767 done
17768 test ! -n "$as_dirs" || mkdir $as_dirs
17769 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17770 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17771 { (exit 1); exit 1; }; }; }
17773 ac_builddir=.
17775 if test "$ac_dir" != .; then
17776 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17777 # A "../" for each directory in $ac_dir_suffix.
17778 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17779 else
17780 ac_dir_suffix= ac_top_builddir=
17783 case $srcdir in
17784 .) # No --srcdir option. We are building in place.
17785 ac_srcdir=.
17786 if test -z "$ac_top_builddir"; then
17787 ac_top_srcdir=.
17788 else
17789 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17790 fi ;;
17791 [\\/]* | ?:[\\/]* ) # Absolute path.
17792 ac_srcdir=$srcdir$ac_dir_suffix;
17793 ac_top_srcdir=$srcdir ;;
17794 *) # Relative path.
17795 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17796 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17797 esac
17799 # Do not use `cd foo && pwd` to compute absolute paths, because
17800 # the directories may not exist.
17801 case `pwd` in
17802 .) ac_abs_builddir="$ac_dir";;
17804 case "$ac_dir" in
17805 .) ac_abs_builddir=`pwd`;;
17806 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17807 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17808 esac;;
17809 esac
17810 case $ac_abs_builddir in
17811 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17813 case ${ac_top_builddir}. in
17814 .) ac_abs_top_builddir=$ac_abs_builddir;;
17815 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17816 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17817 esac;;
17818 esac
17819 case $ac_abs_builddir in
17820 .) ac_abs_srcdir=$ac_srcdir;;
17822 case $ac_srcdir in
17823 .) ac_abs_srcdir=$ac_abs_builddir;;
17824 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17825 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17826 esac;;
17827 esac
17828 case $ac_abs_builddir in
17829 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17831 case $ac_top_srcdir in
17832 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17833 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17834 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17835 esac;;
17836 esac
17839 case $INSTALL in
17840 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17841 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17842 esac
17844 if test x"$ac_file" != x-; then
17845 { echo "$as_me:$LINENO: creating $ac_file" >&5
17846 echo "$as_me: creating $ac_file" >&6;}
17847 rm -f "$ac_file"
17849 # Let's still pretend it is `configure' which instantiates (i.e., don't
17850 # use $as_me), people would be surprised to read:
17851 # /* config.h. Generated by config.status. */
17852 if test x"$ac_file" = x-; then
17853 configure_input=
17854 else
17855 configure_input="$ac_file. "
17857 configure_input=$configure_input"Generated from `echo $ac_file_in |
17858 sed 's,.*/,,'` by configure."
17860 # First look for the input files in the build tree, otherwise in the
17861 # src tree.
17862 ac_file_inputs=`IFS=:
17863 for f in $ac_file_in; do
17864 case $f in
17865 -) echo $tmp/stdin ;;
17866 [\\/$]*)
17867 # Absolute (can't be DOS-style, as IFS=:)
17868 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17869 echo "$as_me: error: cannot find input file: $f" >&2;}
17870 { (exit 1); exit 1; }; }
17871 echo "$f";;
17872 *) # Relative
17873 if test -f "$f"; then
17874 # Build tree
17875 echo "$f"
17876 elif test -f "$srcdir/$f"; then
17877 # Source tree
17878 echo "$srcdir/$f"
17879 else
17880 # /dev/null tree
17881 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17882 echo "$as_me: error: cannot find input file: $f" >&2;}
17883 { (exit 1); exit 1; }; }
17884 fi;;
17885 esac
17886 done` || { (exit 1); exit 1; }
17887 _ACEOF
17888 cat >>$CONFIG_STATUS <<_ACEOF
17889 sed "$ac_vpsub
17890 $extrasub
17891 _ACEOF
17892 cat >>$CONFIG_STATUS <<\_ACEOF
17894 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17895 s,@configure_input@,$configure_input,;t t
17896 s,@srcdir@,$ac_srcdir,;t t
17897 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17898 s,@top_srcdir@,$ac_top_srcdir,;t t
17899 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17900 s,@builddir@,$ac_builddir,;t t
17901 s,@abs_builddir@,$ac_abs_builddir,;t t
17902 s,@top_builddir@,$ac_top_builddir,;t t
17903 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17904 s,@INSTALL@,$ac_INSTALL,;t t
17905 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17906 rm -f $tmp/stdin
17907 if test x"$ac_file" != x-; then
17908 mv $tmp/out $ac_file
17909 else
17910 cat $tmp/out
17911 rm -f $tmp/out
17914 done
17915 _ACEOF
17916 cat >>$CONFIG_STATUS <<\_ACEOF
17919 # CONFIG_HEADER section.
17922 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17923 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17925 # ac_d sets the value in "#define NAME VALUE" lines.
17926 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17927 ac_dB='[ ].*$,\1#\2'
17928 ac_dC=' '
17929 ac_dD=',;t'
17930 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17931 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17932 ac_uB='$,\1#\2define\3'
17933 ac_uC=' '
17934 ac_uD=',;t'
17936 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17938 case $ac_file in
17939 - | *:- | *:-:* ) # input from stdin
17940 cat >$tmp/stdin
17941 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17943 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17945 * ) ac_file_in=$ac_file.in ;;
17946 esac
17948 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17949 echo "$as_me: creating $ac_file" >&6;}
17951 # First look for the input files in the build tree, otherwise in the
17952 # src tree.
17953 ac_file_inputs=`IFS=:
17954 for f in $ac_file_in; do
17955 case $f in
17956 -) echo $tmp/stdin ;;
17957 [\\/$]*)
17958 # Absolute (can't be DOS-style, as IFS=:)
17959 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17960 echo "$as_me: error: cannot find input file: $f" >&2;}
17961 { (exit 1); exit 1; }; }
17962 # Do quote $f, to prevent DOS paths from being IFS'd.
17963 echo "$f";;
17964 *) # Relative
17965 if test -f "$f"; then
17966 # Build tree
17967 echo "$f"
17968 elif test -f "$srcdir/$f"; then
17969 # Source tree
17970 echo "$srcdir/$f"
17971 else
17972 # /dev/null tree
17973 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17974 echo "$as_me: error: cannot find input file: $f" >&2;}
17975 { (exit 1); exit 1; }; }
17976 fi;;
17977 esac
17978 done` || { (exit 1); exit 1; }
17979 # Remove the trailing spaces.
17980 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17982 _ACEOF
17984 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17985 # `conftest.undefs', that substitutes the proper values into
17986 # config.h.in to produce config.h. The first handles `#define'
17987 # templates, and the second `#undef' templates.
17988 # And first: Protect against being on the right side of a sed subst in
17989 # config.status. Protect against being in an unquoted here document
17990 # in config.status.
17991 rm -f conftest.defines conftest.undefs
17992 # Using a here document instead of a string reduces the quoting nightmare.
17993 # Putting comments in sed scripts is not portable.
17995 # `end' is used to avoid that the second main sed command (meant for
17996 # 0-ary CPP macros) applies to n-ary macro definitions.
17997 # See the Autoconf documentation for `clear'.
17998 cat >confdef2sed.sed <<\_ACEOF
17999 s/[\\&,]/\\&/g
18000 s,[\\$`],\\&,g
18001 t clear
18002 : clear
18003 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18004 t end
18005 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18006 : end
18007 _ACEOF
18008 # If some macros were called several times there might be several times
18009 # the same #defines, which is useless. Nevertheless, we may not want to
18010 # sort them, since we want the *last* AC-DEFINE to be honored.
18011 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18012 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18013 rm -f confdef2sed.sed
18015 # This sed command replaces #undef with comments. This is necessary, for
18016 # example, in the case of _POSIX_SOURCE, which is predefined and required
18017 # on some systems where configure will not decide to define it.
18018 cat >>conftest.undefs <<\_ACEOF
18019 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18020 _ACEOF
18022 # Break up conftest.defines because some shells have a limit on the size
18023 # of here documents, and old seds have small limits too (100 cmds).
18024 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18025 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18026 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18027 echo ' :' >>$CONFIG_STATUS
18028 rm -f conftest.tail
18029 while grep . conftest.defines >/dev/null
18031 # Write a limited-size here document to $tmp/defines.sed.
18032 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18033 # Speed up: don't consider the non `#define' lines.
18034 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18035 # Work around the forget-to-reset-the-flag bug.
18036 echo 't clr' >>$CONFIG_STATUS
18037 echo ': clr' >>$CONFIG_STATUS
18038 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18039 echo 'CEOF
18040 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18041 rm -f $tmp/in
18042 mv $tmp/out $tmp/in
18043 ' >>$CONFIG_STATUS
18044 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18045 rm -f conftest.defines
18046 mv conftest.tail conftest.defines
18047 done
18048 rm -f conftest.defines
18049 echo ' fi # grep' >>$CONFIG_STATUS
18050 echo >>$CONFIG_STATUS
18052 # Break up conftest.undefs because some shells have a limit on the size
18053 # of here documents, and old seds have small limits too (100 cmds).
18054 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18055 rm -f conftest.tail
18056 while grep . conftest.undefs >/dev/null
18058 # Write a limited-size here document to $tmp/undefs.sed.
18059 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18060 # Speed up: don't consider the non `#undef'
18061 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18062 # Work around the forget-to-reset-the-flag bug.
18063 echo 't clr' >>$CONFIG_STATUS
18064 echo ': clr' >>$CONFIG_STATUS
18065 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18066 echo 'CEOF
18067 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18068 rm -f $tmp/in
18069 mv $tmp/out $tmp/in
18070 ' >>$CONFIG_STATUS
18071 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18072 rm -f conftest.undefs
18073 mv conftest.tail conftest.undefs
18074 done
18075 rm -f conftest.undefs
18077 cat >>$CONFIG_STATUS <<\_ACEOF
18078 # Let's still pretend it is `configure' which instantiates (i.e., don't
18079 # use $as_me), people would be surprised to read:
18080 # /* config.h. Generated by config.status. */
18081 if test x"$ac_file" = x-; then
18082 echo "/* Generated by configure. */" >$tmp/config.h
18083 else
18084 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18086 cat $tmp/in >>$tmp/config.h
18087 rm -f $tmp/in
18088 if test x"$ac_file" != x-; then
18089 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18090 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18091 echo "$as_me: $ac_file is unchanged" >&6;}
18092 else
18093 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18094 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18095 X"$ac_file" : 'X\(//\)[^/]' \| \
18096 X"$ac_file" : 'X\(//\)$' \| \
18097 X"$ac_file" : 'X\(/\)' \| \
18098 . : '\(.\)' 2>/dev/null ||
18099 echo X"$ac_file" |
18100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18101 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18102 /^X\(\/\/\)$/{ s//\1/; q; }
18103 /^X\(\/\).*/{ s//\1/; q; }
18104 s/.*/./; q'`
18105 { if $as_mkdir_p; then
18106 mkdir -p "$ac_dir"
18107 else
18108 as_dir="$ac_dir"
18109 as_dirs=
18110 while test ! -d "$as_dir"; do
18111 as_dirs="$as_dir $as_dirs"
18112 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18114 X"$as_dir" : 'X\(//\)[^/]' \| \
18115 X"$as_dir" : 'X\(//\)$' \| \
18116 X"$as_dir" : 'X\(/\)' \| \
18117 . : '\(.\)' 2>/dev/null ||
18118 echo X"$as_dir" |
18119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18121 /^X\(\/\/\)$/{ s//\1/; q; }
18122 /^X\(\/\).*/{ s//\1/; q; }
18123 s/.*/./; q'`
18124 done
18125 test ! -n "$as_dirs" || mkdir $as_dirs
18126 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18127 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18128 { (exit 1); exit 1; }; }; }
18130 rm -f $ac_file
18131 mv $tmp/config.h $ac_file
18133 else
18134 cat $tmp/config.h
18135 rm -f $tmp/config.h
18137 # Compute $ac_file's index in $config_headers.
18138 _am_stamp_count=1
18139 for _am_header in $config_headers :; do
18140 case $_am_header in
18141 $ac_file | $ac_file:* )
18142 break ;;
18144 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18145 esac
18146 done
18147 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18148 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18149 X$ac_file : 'X\(//\)[^/]' \| \
18150 X$ac_file : 'X\(//\)$' \| \
18151 X$ac_file : 'X\(/\)' \| \
18152 . : '\(.\)' 2>/dev/null ||
18153 echo X$ac_file |
18154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18156 /^X\(\/\/\)$/{ s//\1/; q; }
18157 /^X\(\/\).*/{ s//\1/; q; }
18158 s/.*/./; q'`/stamp-h$_am_stamp_count
18159 done
18160 _ACEOF
18161 cat >>$CONFIG_STATUS <<\_ACEOF
18164 # CONFIG_LINKS section.
18167 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18168 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18169 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18171 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18172 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18174 if test ! -r $srcdir/$ac_source; then
18175 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18176 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18177 { (exit 1); exit 1; }; }
18179 rm -f $ac_dest
18181 # Make relative symlinks.
18182 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18183 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18184 X"$ac_dest" : 'X\(//\)[^/]' \| \
18185 X"$ac_dest" : 'X\(//\)$' \| \
18186 X"$ac_dest" : 'X\(/\)' \| \
18187 . : '\(.\)' 2>/dev/null ||
18188 echo X"$ac_dest" |
18189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18191 /^X\(\/\/\)$/{ s//\1/; q; }
18192 /^X\(\/\).*/{ s//\1/; q; }
18193 s/.*/./; q'`
18194 { if $as_mkdir_p; then
18195 mkdir -p "$ac_dest_dir"
18196 else
18197 as_dir="$ac_dest_dir"
18198 as_dirs=
18199 while test ! -d "$as_dir"; do
18200 as_dirs="$as_dir $as_dirs"
18201 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18203 X"$as_dir" : 'X\(//\)[^/]' \| \
18204 X"$as_dir" : 'X\(//\)$' \| \
18205 X"$as_dir" : 'X\(/\)' \| \
18206 . : '\(.\)' 2>/dev/null ||
18207 echo X"$as_dir" |
18208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18210 /^X\(\/\/\)$/{ s//\1/; q; }
18211 /^X\(\/\).*/{ s//\1/; q; }
18212 s/.*/./; q'`
18213 done
18214 test ! -n "$as_dirs" || mkdir $as_dirs
18215 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18216 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18217 { (exit 1); exit 1; }; }; }
18219 ac_builddir=.
18221 if test "$ac_dest_dir" != .; then
18222 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18223 # A "../" for each directory in $ac_dir_suffix.
18224 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18225 else
18226 ac_dir_suffix= ac_top_builddir=
18229 case $srcdir in
18230 .) # No --srcdir option. We are building in place.
18231 ac_srcdir=.
18232 if test -z "$ac_top_builddir"; then
18233 ac_top_srcdir=.
18234 else
18235 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18236 fi ;;
18237 [\\/]* | ?:[\\/]* ) # Absolute path.
18238 ac_srcdir=$srcdir$ac_dir_suffix;
18239 ac_top_srcdir=$srcdir ;;
18240 *) # Relative path.
18241 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18242 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18243 esac
18245 # Do not use `cd foo && pwd` to compute absolute paths, because
18246 # the directories may not exist.
18247 case `pwd` in
18248 .) ac_abs_builddir="$ac_dest_dir";;
18250 case "$ac_dest_dir" in
18251 .) ac_abs_builddir=`pwd`;;
18252 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18253 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18254 esac;;
18255 esac
18256 case $ac_abs_builddir in
18257 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18259 case ${ac_top_builddir}. in
18260 .) ac_abs_top_builddir=$ac_abs_builddir;;
18261 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18262 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18263 esac;;
18264 esac
18265 case $ac_abs_builddir in
18266 .) ac_abs_srcdir=$ac_srcdir;;
18268 case $ac_srcdir in
18269 .) ac_abs_srcdir=$ac_abs_builddir;;
18270 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18271 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18272 esac;;
18273 esac
18274 case $ac_abs_builddir in
18275 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18277 case $ac_top_srcdir in
18278 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18279 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18280 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18281 esac;;
18282 esac
18285 case $srcdir in
18286 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18287 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18288 esac
18290 # Try a symlink, then a hard link, then a copy.
18291 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18292 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18293 cp -p $srcdir/$ac_source $ac_dest ||
18294 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18295 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18296 { (exit 1); exit 1; }; }
18297 done
18298 _ACEOF
18299 cat >>$CONFIG_STATUS <<\_ACEOF
18302 # CONFIG_COMMANDS section.
18304 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18305 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18306 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18307 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18308 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18309 X"$ac_dest" : 'X\(//\)[^/]' \| \
18310 X"$ac_dest" : 'X\(//\)$' \| \
18311 X"$ac_dest" : 'X\(/\)' \| \
18312 . : '\(.\)' 2>/dev/null ||
18313 echo X"$ac_dest" |
18314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18316 /^X\(\/\/\)$/{ s//\1/; q; }
18317 /^X\(\/\).*/{ s//\1/; q; }
18318 s/.*/./; q'`
18319 { if $as_mkdir_p; then
18320 mkdir -p "$ac_dir"
18321 else
18322 as_dir="$ac_dir"
18323 as_dirs=
18324 while test ! -d "$as_dir"; do
18325 as_dirs="$as_dir $as_dirs"
18326 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18328 X"$as_dir" : 'X\(//\)[^/]' \| \
18329 X"$as_dir" : 'X\(//\)$' \| \
18330 X"$as_dir" : 'X\(/\)' \| \
18331 . : '\(.\)' 2>/dev/null ||
18332 echo X"$as_dir" |
18333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18335 /^X\(\/\/\)$/{ s//\1/; q; }
18336 /^X\(\/\).*/{ s//\1/; q; }
18337 s/.*/./; q'`
18338 done
18339 test ! -n "$as_dirs" || mkdir $as_dirs
18340 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18341 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18342 { (exit 1); exit 1; }; }; }
18344 ac_builddir=.
18346 if test "$ac_dir" != .; then
18347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18348 # A "../" for each directory in $ac_dir_suffix.
18349 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18350 else
18351 ac_dir_suffix= ac_top_builddir=
18354 case $srcdir in
18355 .) # No --srcdir option. We are building in place.
18356 ac_srcdir=.
18357 if test -z "$ac_top_builddir"; then
18358 ac_top_srcdir=.
18359 else
18360 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18361 fi ;;
18362 [\\/]* | ?:[\\/]* ) # Absolute path.
18363 ac_srcdir=$srcdir$ac_dir_suffix;
18364 ac_top_srcdir=$srcdir ;;
18365 *) # Relative path.
18366 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18367 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18368 esac
18370 # Do not use `cd foo && pwd` to compute absolute paths, because
18371 # the directories may not exist.
18372 case `pwd` in
18373 .) ac_abs_builddir="$ac_dir";;
18375 case "$ac_dir" in
18376 .) ac_abs_builddir=`pwd`;;
18377 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18378 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18379 esac;;
18380 esac
18381 case $ac_abs_builddir in
18382 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18384 case ${ac_top_builddir}. in
18385 .) ac_abs_top_builddir=$ac_abs_builddir;;
18386 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18387 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18388 esac;;
18389 esac
18390 case $ac_abs_builddir in
18391 .) ac_abs_srcdir=$ac_srcdir;;
18393 case $ac_srcdir in
18394 .) ac_abs_srcdir=$ac_abs_builddir;;
18395 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18396 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18397 esac;;
18398 esac
18399 case $ac_abs_builddir in
18400 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18402 case $ac_top_srcdir in
18403 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18404 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18405 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18406 esac;;
18407 esac
18410 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18411 echo "$as_me: executing $ac_dest commands" >&6;}
18412 case $ac_dest in
18413 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18414 # Strip MF so we end up with the name of the file.
18415 mf=`echo "$mf" | sed -e 's/:.*$//'`
18416 # Check whether this is an Automake generated Makefile or not.
18417 # We used to match only the files named `Makefile.in', but
18418 # some people rename them; so instead we look at the file content.
18419 # Grep'ing the first line is not enough: some people post-process
18420 # each Makefile.in and add a new line on top of each file to say so.
18421 # So let's grep whole file.
18422 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18423 dirpart=`(dirname "$mf") 2>/dev/null ||
18424 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18425 X"$mf" : 'X\(//\)[^/]' \| \
18426 X"$mf" : 'X\(//\)$' \| \
18427 X"$mf" : 'X\(/\)' \| \
18428 . : '\(.\)' 2>/dev/null ||
18429 echo X"$mf" |
18430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18432 /^X\(\/\/\)$/{ s//\1/; q; }
18433 /^X\(\/\).*/{ s//\1/; q; }
18434 s/.*/./; q'`
18435 else
18436 continue
18438 # Extract the definition of DEPDIR, am__include, and am__quote
18439 # from the Makefile without running `make'.
18440 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18441 test -z "$DEPDIR" && continue
18442 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18443 test -z "am__include" && continue
18444 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18445 # When using ansi2knr, U may be empty or an underscore; expand it
18446 U=`sed -n 's/^U = //p' < "$mf"`
18447 # Find all dependency output files, they are included files with
18448 # $(DEPDIR) in their names. We invoke sed twice because it is the
18449 # simplest approach to changing $(DEPDIR) to its actual value in the
18450 # expansion.
18451 for file in `sed -n "
18452 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18453 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18454 # Make sure the directory exists.
18455 test -f "$dirpart/$file" && continue
18456 fdir=`(dirname "$file") 2>/dev/null ||
18457 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18458 X"$file" : 'X\(//\)[^/]' \| \
18459 X"$file" : 'X\(//\)$' \| \
18460 X"$file" : 'X\(/\)' \| \
18461 . : '\(.\)' 2>/dev/null ||
18462 echo X"$file" |
18463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18465 /^X\(\/\/\)$/{ s//\1/; q; }
18466 /^X\(\/\).*/{ s//\1/; q; }
18467 s/.*/./; q'`
18468 { if $as_mkdir_p; then
18469 mkdir -p $dirpart/$fdir
18470 else
18471 as_dir=$dirpart/$fdir
18472 as_dirs=
18473 while test ! -d "$as_dir"; do
18474 as_dirs="$as_dir $as_dirs"
18475 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18477 X"$as_dir" : 'X\(//\)[^/]' \| \
18478 X"$as_dir" : 'X\(//\)$' \| \
18479 X"$as_dir" : 'X\(/\)' \| \
18480 . : '\(.\)' 2>/dev/null ||
18481 echo X"$as_dir" |
18482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18484 /^X\(\/\/\)$/{ s//\1/; q; }
18485 /^X\(\/\).*/{ s//\1/; q; }
18486 s/.*/./; q'`
18487 done
18488 test ! -n "$as_dirs" || mkdir $as_dirs
18489 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18490 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18491 { (exit 1); exit 1; }; }; }
18493 # echo "creating $dirpart/$file"
18494 echo '# dummy' > "$dirpart/$file"
18495 done
18496 done
18498 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18499 case " $CONFIG_FILES " in
18500 *" Makefile "*)
18501 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18502 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18504 esac
18505 for ac_multi_file in $CONFIG_FILES; do
18506 case $ac_multi_file in
18507 */Makefile)
18508 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18509 esac
18510 done
18512 esac
18513 done
18514 _ACEOF
18516 cat >>$CONFIG_STATUS <<\_ACEOF
18518 { (exit 0); exit 0; }
18519 _ACEOF
18520 chmod +x $CONFIG_STATUS
18521 ac_clean_files=$ac_clean_files_save
18524 # configure is writing to config.log, and then calls config.status.
18525 # config.status does its own redirection, appending to config.log.
18526 # Unfortunately, on DOS this fails, as config.log is still kept open
18527 # by configure, so config.status won't be able to write to it; its
18528 # output is simply discarded. So we exec the FD to /dev/null,
18529 # effectively closing config.log, so it can be properly (re)opened and
18530 # appended to by config.status. When coming back to configure, we
18531 # need to make the FD available again.
18532 if test "$no_create" != yes; then
18533 ac_cs_success=:
18534 ac_config_status_args=
18535 test "$silent" = yes &&
18536 ac_config_status_args="$ac_config_status_args --quiet"
18537 exec 5>/dev/null
18538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18539 exec 5>>config.log
18540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18541 # would make configure fail if this is the last instruction.
18542 $ac_cs_success || { (exit 1); exit 1; }
18546 # CONFIG_SUBDIRS section.
18548 if test "$no_recursion" != yes; then
18550 # Remove --cache-file and --srcdir arguments so they do not pile up.
18551 ac_sub_configure_args=
18552 ac_prev=
18553 for ac_arg in $ac_configure_args; do
18554 if test -n "$ac_prev"; then
18555 ac_prev=
18556 continue
18558 case $ac_arg in
18559 -cache-file | --cache-file | --cache-fil | --cache-fi \
18560 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18561 ac_prev=cache_file ;;
18562 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18563 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18564 | --c=*)
18566 --config-cache | -C)
18568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18569 ac_prev=srcdir ;;
18570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18572 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18573 ac_prev=prefix ;;
18574 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18576 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18577 esac
18578 done
18580 # Always prepend --prefix to ensure using the same prefix
18581 # in subdir configurations.
18582 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18584 ac_popdir=`pwd`
18585 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18587 # Do not complain, so a configure script can configure whichever
18588 # parts of a large source tree are present.
18589 test -d $srcdir/$ac_dir || continue
18591 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18592 echo "$as_me: configuring in $ac_dir" >&6;}
18593 { if $as_mkdir_p; then
18594 mkdir -p "$ac_dir"
18595 else
18596 as_dir="$ac_dir"
18597 as_dirs=
18598 while test ! -d "$as_dir"; do
18599 as_dirs="$as_dir $as_dirs"
18600 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18602 X"$as_dir" : 'X\(//\)[^/]' \| \
18603 X"$as_dir" : 'X\(//\)$' \| \
18604 X"$as_dir" : 'X\(/\)' \| \
18605 . : '\(.\)' 2>/dev/null ||
18606 echo X"$as_dir" |
18607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18609 /^X\(\/\/\)$/{ s//\1/; q; }
18610 /^X\(\/\).*/{ s//\1/; q; }
18611 s/.*/./; q'`
18612 done
18613 test ! -n "$as_dirs" || mkdir $as_dirs
18614 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18615 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18616 { (exit 1); exit 1; }; }; }
18618 ac_builddir=.
18620 if test "$ac_dir" != .; then
18621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18622 # A "../" for each directory in $ac_dir_suffix.
18623 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18624 else
18625 ac_dir_suffix= ac_top_builddir=
18628 case $srcdir in
18629 .) # No --srcdir option. We are building in place.
18630 ac_srcdir=.
18631 if test -z "$ac_top_builddir"; then
18632 ac_top_srcdir=.
18633 else
18634 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18635 fi ;;
18636 [\\/]* | ?:[\\/]* ) # Absolute path.
18637 ac_srcdir=$srcdir$ac_dir_suffix;
18638 ac_top_srcdir=$srcdir ;;
18639 *) # Relative path.
18640 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18641 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18642 esac
18644 # Do not use `cd foo && pwd` to compute absolute paths, because
18645 # the directories may not exist.
18646 case `pwd` in
18647 .) ac_abs_builddir="$ac_dir";;
18649 case "$ac_dir" in
18650 .) ac_abs_builddir=`pwd`;;
18651 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18652 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18653 esac;;
18654 esac
18655 case $ac_abs_builddir in
18656 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18658 case ${ac_top_builddir}. in
18659 .) ac_abs_top_builddir=$ac_abs_builddir;;
18660 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18661 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18662 esac;;
18663 esac
18664 case $ac_abs_builddir in
18665 .) ac_abs_srcdir=$ac_srcdir;;
18667 case $ac_srcdir in
18668 .) ac_abs_srcdir=$ac_abs_builddir;;
18669 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18670 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18671 esac;;
18672 esac
18673 case $ac_abs_builddir in
18674 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18676 case $ac_top_srcdir in
18677 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18678 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18679 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18680 esac;;
18681 esac
18684 cd $ac_dir
18686 # Check for guested configure; otherwise get Cygnus style configure.
18687 if test -f $ac_srcdir/configure.gnu; then
18688 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18689 elif test -f $ac_srcdir/configure; then
18690 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18691 elif test -f $ac_srcdir/configure.in; then
18692 ac_sub_configure=$ac_configure
18693 else
18694 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18695 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18696 ac_sub_configure=
18699 # The recursion is here.
18700 if test -n "$ac_sub_configure"; then
18701 # Make the cache file name correct relative to the subdirectory.
18702 case $cache_file in
18703 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18704 *) # Relative path.
18705 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18706 esac
18708 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18709 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18710 # The eval makes quoting arguments work.
18711 eval $ac_sub_configure $ac_sub_configure_args \
18712 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18713 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18714 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18715 { (exit 1); exit 1; }; }
18718 cd $ac_popdir
18719 done