gcc/
[official-gcc.git] / libjava / configure
blob070b010a3b5591eb5db435e694acd829dd5e4eed
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 GTK_AWT_TRUE GTK_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_gtk_awt" = yes; then
4773 GTK_AWT_TRUE=
4774 GTK_AWT_FALSE='#'
4775 else
4776 GTK_AWT_TRUE='#'
4777 GTK_AWT_FALSE=
4782 if test "$use_qt_awt" = yes; then
4783 QT_AWT_TRUE=
4784 QT_AWT_FALSE='#'
4785 else
4786 QT_AWT_TRUE='#'
4787 QT_AWT_FALSE=
4791 # Create standard.omit based on decisions we just made.
4792 cp $srcdir/standard.omit.in standard.omit
4793 if test "$use_xlib_awt" != yes; then
4794 echo gnu/awt/xlib >> standard.omit
4795 echo gnu/gcj/xlib >> standard.omit
4797 if test "$use_gtk_awt" != yes; then
4798 echo gnu/java/awt/peer/gtk >> standard.omit
4800 if test "$use_qt_awt" != yes; then
4801 echo gnu/java/awt/peer/qt >> standard.omit
4804 if test -z "${with_multisubdir}"; then
4805 builddotdot=.
4806 else
4807 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4810 NATIVE=yes
4812 # Which gcj do we use?
4813 which_gcj=default
4814 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4815 if test -n "${with_cross_host}"; then
4816 # We are being configured with a cross compiler. We can't
4817 # use ac_exeext, because that is for the target platform.
4818 NATIVE=no
4819 cross_host_exeext=
4820 case "${with_cross_host}" in
4821 *mingw* | *cygwin*)
4822 cross_host_exeext=.exe
4824 esac
4825 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4826 if test x"$build_noncanonical" = x"$with_cross_host"; then
4827 # Ordinary cross (host!=target and host=build)
4828 which_gcj=built
4829 else
4830 # Canadian cross (host!=target and host!=build)
4831 which_gcj=cross
4833 else
4834 which_gcj=cross
4836 else
4837 # We are being configured with a native or crossed-native compiler
4838 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4839 if test x"$build" = x"$host"; then
4840 # True native build (host=target and host=build)
4841 which_gcj=built
4842 else
4843 # Crossed-native build (host=target and host!=build)
4844 which_gcj=cross
4846 else
4847 which_gcj=path
4850 case "${which_gcj}" in
4851 built)
4852 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4853 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4855 cross)
4856 if test "x${with_newlib}" = "xyes"; then
4857 # FIXME (comment): Why is this needed?
4858 GCC_UNWIND_INCLUDE=
4859 GCJ="${target_noncanonical}-gcj"
4860 else
4861 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4863 GCJH='$(target_noncanonical)-gcjh'
4865 path)
4866 GCJ="gcj -B`${PWDCMD-pwd}`/"
4867 GCJH=gcjh
4869 esac
4873 # Create it, so that compile/link tests don't fail
4874 test -f libgcj.spec || touch libgcj.spec
4878 # Set up to configure Classpath.
4879 # FIXME: no supported way to pass args in autoconf.
4880 ac_configure_args="$ac_configure_args --disable-load-library"
4881 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4882 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4883 dir1=`cd $srcdir && pwd`
4884 dir2=`pwd`
4885 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4886 ac_configure_args="$ac_configure_args --disable-core-jni"
4887 ac_configure_args="$ac_configure_args --disable-examples"
4888 ac_configure_args="$ac_configure_args --with-glibj=build"
4889 if test "$use_gtk_awt" != yes; then
4890 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4892 if test "$use_qt_awt" != yes; then
4893 ac_configure_args="$ac_configure_args --disable-qt-peer"
4894 else
4895 # We need this as qt is disabled by default in classpath.
4896 ac_configure_args="$ac_configure_args --enable-qt-peer"
4899 # Only use libltdl for non-newlib builds.
4900 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4901 case $enable_ltdl_convenience in
4902 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4903 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4905 "") enable_ltdl_convenience=yes
4906 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4907 esac
4908 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4909 INCLTDL='-I${top_srcdir}/''libltdl'
4912 DIRLTDL=libltdl
4914 cat >>confdefs.h <<\_ACEOF
4915 #define USE_LTDL 1
4916 _ACEOF
4918 # Sigh. Libtool's macro doesn't do the right thing.
4919 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4920 # FIXME: this is a hack.
4921 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4922 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4927 # Check whether --enable-shared or --disable-shared was given.
4928 if test "${enable_shared+set}" = set; then
4929 enableval="$enable_shared"
4930 p=${PACKAGE-default}
4931 case $enableval in
4932 yes) enable_shared=yes ;;
4933 no) enable_shared=no ;;
4935 enable_shared=no
4936 # Look at the argument we got. We use all the common list separators.
4937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4938 for pkg in $enableval; do
4939 if test "X$pkg" = "X$p"; then
4940 enable_shared=yes
4942 done
4943 IFS="$ac_save_ifs"
4945 esac
4946 else
4947 enable_shared=yes
4949 # Check whether --enable-static or --disable-static was given.
4950 if test "${enable_static+set}" = set; then
4951 enableval="$enable_static"
4952 p=${PACKAGE-default}
4953 case $enableval in
4954 yes) enable_static=yes ;;
4955 no) enable_static=no ;;
4957 enable_static=no
4958 # Look at the argument we got. We use all the common list separators.
4959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4960 for pkg in $enableval; do
4961 if test "X$pkg" = "X$p"; then
4962 enable_static=yes
4964 done
4965 IFS="$ac_save_ifs"
4967 esac
4968 else
4969 enable_static=yes
4971 # Check whether --enable-fast-install or --disable-fast-install was given.
4972 if test "${enable_fast_install+set}" = set; then
4973 enableval="$enable_fast_install"
4974 p=${PACKAGE-default}
4975 case $enableval in
4976 yes) enable_fast_install=yes ;;
4977 no) enable_fast_install=no ;;
4979 enable_fast_install=no
4980 # Look at the argument we got. We use all the common list separators.
4981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4982 for pkg in $enableval; do
4983 if test "X$pkg" = "X$p"; then
4984 enable_fast_install=yes
4986 done
4987 IFS="$ac_save_ifs"
4989 esac
4990 else
4991 enable_fast_install=yes
4994 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4995 if test "${with_gnu_ld+set}" = set; then
4996 withval="$with_gnu_ld"
4997 test "$withval" = no || with_gnu_ld=yes
4998 else
4999 with_gnu_ld=no
5001 ac_prog=ld
5002 if test "$GCC" = yes; then
5003 # Check if gcc -print-prog-name=ld gives a path.
5004 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5005 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5006 case $host in
5007 *-*-mingw*)
5008 # gcc leaves a trailing carriage return which upsets mingw
5009 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5011 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5012 esac
5013 case $ac_prog in
5014 # Accept absolute paths.
5015 [\\/]* | [A-Za-z]:[\\/]*)
5016 re_direlt='/[^/][^/]*/\.\./'
5017 # Canonicalize the path of ld
5018 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5019 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5020 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5021 done
5022 test -z "$LD" && LD="$ac_prog"
5025 # If it fails, then pretend we aren't using GCC.
5026 ac_prog=ld
5029 # If it is relative, then search for the first ld in PATH.
5030 with_gnu_ld=unknown
5032 esac
5033 elif test "$with_gnu_ld" = yes; then
5034 echo "$as_me:$LINENO: checking for GNU ld" >&5
5035 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5036 else
5037 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5038 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5040 if test "${lt_cv_path_LD+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 if test -z "$LD"; then
5044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5045 for ac_dir in $PATH; do
5046 test -z "$ac_dir" && ac_dir=.
5047 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5048 lt_cv_path_LD="$ac_dir/$ac_prog"
5049 # Check to see if the program is GNU ld. I'd rather use --version,
5050 # but apparently some GNU ld's only accept -v.
5051 # Break only if it was the GNU/non-GNU ld that we prefer.
5052 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5053 test "$with_gnu_ld" != no && break
5054 else
5055 test "$with_gnu_ld" != yes && break
5058 done
5059 IFS="$ac_save_ifs"
5060 else
5061 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5065 LD="$lt_cv_path_LD"
5066 if test -n "$LD"; then
5067 echo "$as_me:$LINENO: result: $LD" >&5
5068 echo "${ECHO_T}$LD" >&6
5069 else
5070 echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6
5073 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5074 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5075 { (exit 1); exit 1; }; }
5076 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5077 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5078 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5082 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5083 lt_cv_prog_gnu_ld=yes
5084 else
5085 lt_cv_prog_gnu_ld=no
5088 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5089 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5090 with_gnu_ld=$lt_cv_prog_gnu_ld
5093 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5094 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5095 if test "${lt_cv_ld_reload_flag+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 lt_cv_ld_reload_flag='-r'
5100 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5101 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5102 reload_flag=$lt_cv_ld_reload_flag
5103 test -n "$reload_flag" && reload_flag=" $reload_flag"
5105 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5106 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5107 if test "${lt_cv_path_NM+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 if test -n "$NM"; then
5111 # Let the user override the test.
5112 lt_cv_path_NM="$NM"
5113 else
5114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5115 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5116 test -z "$ac_dir" && ac_dir=.
5117 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5118 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5119 # Check to see if the nm accepts a BSD-compat flag.
5120 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5121 # nm: unknown option "B" ignored
5122 # Tru64's nm complains that /dev/null is an invalid object file
5123 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5124 lt_cv_path_NM="$tmp_nm -B"
5125 break
5126 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5127 lt_cv_path_NM="$tmp_nm -p"
5128 break
5129 else
5130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5131 continue # so that we can try to find one that supports BSD flags
5134 done
5135 IFS="$ac_save_ifs"
5136 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5140 NM="$lt_cv_path_NM"
5141 echo "$as_me:$LINENO: result: $NM" >&5
5142 echo "${ECHO_T}$NM" >&6
5144 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5145 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5146 if test "${lt_cv_deplibs_check_method+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 lt_cv_file_magic_cmd='$MAGIC_CMD'
5150 lt_cv_file_magic_test_file=
5151 lt_cv_deplibs_check_method='unknown'
5152 # Need to set the preceding variable on all platforms that support
5153 # interlibrary dependencies.
5154 # 'none' -- dependencies not supported.
5155 # `unknown' -- same as none, but documents that we really don't know.
5156 # 'pass_all' -- all dependencies passed with no checks.
5157 # 'test_compile' -- check by making test program.
5158 # 'file_magic [regex]' -- check by looking for files in library path
5159 # which responds to the $file_magic_cmd with a given egrep regex.
5160 # If you have `file' or equivalent on your system and you're not sure
5161 # whether `pass_all' will *always* work, you probably want this one.
5163 case $host_os in
5164 aix*)
5165 lt_cv_deplibs_check_method=pass_all
5168 beos*)
5169 lt_cv_deplibs_check_method=pass_all
5172 bsdi4*)
5173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5174 lt_cv_file_magic_cmd='/usr/bin/file -L'
5175 lt_cv_file_magic_test_file=/shlib/libc.so
5178 cygwin* | mingw* |pw32*)
5179 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5180 lt_cv_file_magic_cmd='$OBJDUMP -f'
5183 darwin* | rhapsody*)
5184 # this will be overwritten by pass_all, but leave it in just in case
5185 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5186 lt_cv_file_magic_cmd='/usr/bin/file -L'
5187 case "$host_os" in
5188 rhapsody* | darwin1.012)
5189 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5191 *) # Darwin 1.3 on
5192 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5194 esac
5195 lt_cv_deplibs_check_method=pass_all
5198 freebsd* | kfreebsd*-gnu)
5199 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5200 case $host_cpu in
5201 i*86 )
5202 # Not sure whether the presence of OpenBSD here was a mistake.
5203 # Let's accept both of them until this is cleared up.
5204 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5208 esac
5209 else
5210 lt_cv_deplibs_check_method=pass_all
5214 gnu*)
5215 lt_cv_deplibs_check_method=pass_all
5218 hpux10.20*|hpux11*)
5219 case $host_cpu in
5220 hppa*)
5221 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5222 lt_cv_file_magic_cmd=/usr/bin/file
5223 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5225 ia64*)
5226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5227 lt_cv_file_magic_cmd=/usr/bin/file
5228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5230 esac
5233 irix5* | irix6*)
5234 case $host_os in
5235 irix5*)
5236 # this will be overridden with pass_all, but let us keep it just in case
5237 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5240 case $LD in
5241 *-32|*"-32 ") libmagic=32-bit;;
5242 *-n32|*"-n32 ") libmagic=N32;;
5243 *-64|*"-64 ") libmagic=64-bit;;
5244 *) libmagic=never-match;;
5245 esac
5246 # this will be overridden with pass_all, but let us keep it just in case
5247 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5249 esac
5250 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5251 lt_cv_deplibs_check_method=pass_all
5254 # This must be Linux ELF.
5255 linux-gnu*)
5256 lt_cv_deplibs_check_method=pass_all
5259 netbsd* | knetbsd*-gnu)
5260 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5261 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5262 else
5263 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5267 newsos6)
5268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5269 lt_cv_file_magic_cmd=/usr/bin/file
5270 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5273 osf3* | osf4* | osf5*)
5274 # this will be overridden with pass_all, but let us keep it just in case
5275 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5276 lt_cv_file_magic_test_file=/shlib/libc.so
5277 lt_cv_deplibs_check_method=pass_all
5280 sco3.2v5*)
5281 lt_cv_deplibs_check_method=pass_all
5284 solaris*)
5285 lt_cv_deplibs_check_method=pass_all
5286 lt_cv_file_magic_test_file=/lib/libc.so
5289 sysv5uw[78]* | sysv4*uw2*)
5290 lt_cv_deplibs_check_method=pass_all
5293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5294 case $host_vendor in
5295 ncr)
5296 lt_cv_deplibs_check_method=pass_all
5298 motorola)
5299 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]'
5300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5302 esac
5304 esac
5307 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5308 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5309 file_magic_cmd=$lt_cv_file_magic_cmd
5310 deplibs_check_method=$lt_cv_deplibs_check_method
5315 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5317 # find the maximum length of command line arguments
5318 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5319 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5320 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5324 teststring="ABCD"
5326 case $build_os in
5327 msdosdjgpp*)
5328 # On DJGPP, this test can blow up pretty badly due to problems in libc
5329 # (any single argument exceeding 2000 bytes causes a buffer overrun
5330 # during glob expansion). Even if it were fixed, the result of this
5331 # check would be larger than it should be.
5332 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5335 cygwin* | mingw*)
5336 # On Win9x/ME, this test blows up -- it succeeds, but takes
5337 # about 5 minutes as the teststring grows exponentially.
5338 # Worse, since 9x/ME are not pre-emptively multitasking,
5339 # you end up with a "frozen" computer, even though with patience
5340 # the test eventually succeeds (with a max line length of 256k).
5341 # Instead, let's just punt: use the minimum linelength reported by
5342 # all of the supported platforms: 8192 (on NT/2K/XP).
5343 lt_cv_sys_max_cmd_len=8192;
5346 amigaos*)
5347 # On AmigaOS with pdksh, this test takes hours, literally.
5348 # So we just punt and use a minimum line length of 8192.
5349 lt_cv_sys_max_cmd_len=8192;
5352 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5353 # This has been around since 386BSD, at least. Likely further.
5354 if test -x /sbin/sysctl; then
5355 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5356 elif test -x /usr/sbin/sysctl; then
5357 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5358 else
5359 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5361 # And add a safety zone
5362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365 esac
5369 if test -n "$lt_cv_sys_max_cmd_len" ; then
5370 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5371 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5372 else
5373 echo "$as_me:$LINENO: result: none" >&5
5374 echo "${ECHO_T}none" >&6
5378 # Only perform the check for file, if the check method requires it
5379 case $deplibs_check_method in
5380 file_magic*)
5381 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5382 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5383 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5384 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 case $MAGIC_CMD in
5389 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5391 ?:/*)
5392 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5395 ac_save_MAGIC_CMD="$MAGIC_CMD"
5396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5397 ac_dummy="/usr/bin:$PATH"
5398 for ac_dir in $ac_dummy; do
5399 test -z "$ac_dir" && ac_dir=.
5400 if test -f $ac_dir/${ac_tool_prefix}file; then
5401 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5402 if test -n "$file_magic_test_file"; then
5403 case $deplibs_check_method in
5404 "file_magic "*)
5405 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5408 egrep "$file_magic_regex" > /dev/null; then
5410 else
5411 cat <<EOF 1>&2
5413 *** Warning: the command libtool uses to detect shared libraries,
5414 *** $file_magic_cmd, produces output that libtool cannot recognize.
5415 *** The result is that libtool may fail to recognize shared libraries
5416 *** as such. This will affect the creation of libtool libraries that
5417 *** depend on shared libraries, but programs linked with such libtool
5418 *** libraries will work regardless of this problem. Nevertheless, you
5419 *** may want to report the problem to your system manager and/or to
5420 *** bug-libtool@gnu.org
5423 fi ;;
5424 esac
5426 break
5428 done
5429 IFS="$ac_save_ifs"
5430 MAGIC_CMD="$ac_save_MAGIC_CMD"
5432 esac
5435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5436 if test -n "$MAGIC_CMD"; then
5437 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5438 echo "${ECHO_T}$MAGIC_CMD" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441 echo "${ECHO_T}no" >&6
5444 if test -z "$lt_cv_path_MAGIC_CMD"; then
5445 if test -n "$ac_tool_prefix"; then
5446 echo "$as_me:$LINENO: checking for file" >&5
5447 echo $ECHO_N "checking for file... $ECHO_C" >&6
5448 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 case $MAGIC_CMD in
5453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5455 ?:/*)
5456 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5459 ac_save_MAGIC_CMD="$MAGIC_CMD"
5460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5461 ac_dummy="/usr/bin:$PATH"
5462 for ac_dir in $ac_dummy; do
5463 test -z "$ac_dir" && ac_dir=.
5464 if test -f $ac_dir/file; then
5465 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5466 if test -n "$file_magic_test_file"; then
5467 case $deplibs_check_method in
5468 "file_magic "*)
5469 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5471 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5472 egrep "$file_magic_regex" > /dev/null; then
5474 else
5475 cat <<EOF 1>&2
5477 *** Warning: the command libtool uses to detect shared libraries,
5478 *** $file_magic_cmd, produces output that libtool cannot recognize.
5479 *** The result is that libtool may fail to recognize shared libraries
5480 *** as such. This will affect the creation of libtool libraries that
5481 *** depend on shared libraries, but programs linked with such libtool
5482 *** libraries will work regardless of this problem. Nevertheless, you
5483 *** may want to report the problem to your system manager and/or to
5484 *** bug-libtool@gnu.org
5487 fi ;;
5488 esac
5490 break
5492 done
5493 IFS="$ac_save_ifs"
5494 MAGIC_CMD="$ac_save_MAGIC_CMD"
5496 esac
5499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5500 if test -n "$MAGIC_CMD"; then
5501 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5502 echo "${ECHO_T}$MAGIC_CMD" >&6
5503 else
5504 echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5508 else
5509 MAGIC_CMD=:
5515 esac
5517 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5520 echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5522 if test "${ac_cv_prog_RANLIB+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 if test -n "$RANLIB"; then
5526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5544 RANLIB=$ac_cv_prog_RANLIB
5545 if test -n "$RANLIB"; then
5546 echo "$as_me:$LINENO: result: $RANLIB" >&5
5547 echo "${ECHO_T}$RANLIB" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5554 if test -z "$ac_cv_prog_RANLIB"; then
5555 ac_ct_RANLIB=$RANLIB
5556 # Extract the first word of "ranlib", so it can be a program name with args.
5557 set dummy ranlib; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 if test -n "$ac_ct_RANLIB"; then
5564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_ac_ct_RANLIB="ranlib"
5574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5577 done
5578 done
5580 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5584 if test -n "$ac_ct_RANLIB"; then
5585 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5586 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5587 else
5588 echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5592 RANLIB=$ac_ct_RANLIB
5593 else
5594 RANLIB="$ac_cv_prog_RANLIB"
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}strip; ac_word=$2
5600 echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602 if test "${ac_cv_prog_STRIP+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 if test -n "$STRIP"; then
5606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5624 STRIP=$ac_cv_prog_STRIP
5625 if test -n "$STRIP"; then
5626 echo "$as_me:$LINENO: result: $STRIP" >&5
5627 echo "${ECHO_T}$STRIP" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5634 if test -z "$ac_cv_prog_STRIP"; then
5635 ac_ct_STRIP=$STRIP
5636 # Extract the first word of "strip", so it can be a program name with args.
5637 set dummy strip; ac_word=$2
5638 echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 if test -n "$ac_ct_STRIP"; then
5644 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_ac_ct_STRIP="strip"
5654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5657 done
5658 done
5660 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5663 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5664 if test -n "$ac_ct_STRIP"; then
5665 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5666 echo "${ECHO_T}$ac_ct_STRIP" >&6
5667 else
5668 echo "$as_me:$LINENO: result: no" >&5
5669 echo "${ECHO_T}no" >&6
5672 STRIP=$ac_ct_STRIP
5673 else
5674 STRIP="$ac_cv_prog_STRIP"
5678 # Check for any special flags to pass to ltconfig.
5679 libtool_flags="--cache-file=$cache_file"
5680 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5681 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5682 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5683 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5684 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5687 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5688 if test "${enable_libtool_lock+set}" = set; then
5689 enableval="$enable_libtool_lock"
5692 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5693 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5696 # Check whether --with-pic or --without-pic was given.
5697 if test "${with_pic+set}" = set; then
5698 withval="$with_pic"
5699 pic_mode="$withval"
5700 else
5701 pic_mode=default
5703 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5704 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5706 # Some flags need to be propagated to the compiler or linker for good
5707 # libtool support.
5708 case $host in
5709 *-*-irix6*)
5710 # Find out which ABI we are using.
5711 echo '#line 5711 "configure"' > conftest.$ac_ext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; then
5717 if test "$lt_cv_prog_gnu_ld" = yes; then
5718 case `/usr/bin/file conftest.$ac_objext` in
5719 *32-bit*)
5720 LD="${LD-ld} -melf32bsmip"
5722 *N32*)
5723 LD="${LD-ld} -melf32bmipn32"
5725 *64-bit*)
5726 LD="${LD-ld} -melf64bmip"
5728 esac
5729 else
5730 case `/usr/bin/file conftest.$ac_objext` in
5731 *32-bit*)
5732 LD="${LD-ld} -32"
5734 *N32*)
5735 LD="${LD-ld} -n32"
5737 *64-bit*)
5738 LD="${LD-ld} -64"
5740 esac
5743 rm -rf conftest*
5746 ia64-*-hpux*)
5747 # Find out which ABI we are using.
5748 echo 'int i;' > conftest.$ac_ext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; then
5754 case "`/usr/bin/file conftest.o`" in
5755 *ELF-32*)
5756 HPUX_IA64_MODE="32"
5758 *ELF-64*)
5759 HPUX_IA64_MODE="64"
5761 esac
5763 rm -rf conftest*
5766 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5767 # Find out which ABI we are using.
5768 echo 'int i;' > conftest.$ac_ext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; then
5774 case "`/usr/bin/file conftest.o`" in
5775 *32-bit*)
5776 case $host in
5777 x86_64-*linux*)
5778 LD="${LD-ld} -m elf_i386"
5780 ppc64-*linux*|powerpc64-*linux*)
5781 LD="${LD-ld} -m elf32ppclinux"
5783 s390x-*linux*)
5784 LD="${LD-ld} -m elf_s390"
5786 sparc64-*linux*)
5787 LD="${LD-ld} -m elf32_sparc"
5789 esac
5791 *64-bit*)
5792 case $host in
5793 x86_64-*linux*)
5794 LD="${LD-ld} -m elf_x86_64"
5796 ppc*-*linux*|powerpc*-*linux*)
5797 LD="${LD-ld} -m elf64ppc"
5799 s390*-*linux*)
5800 LD="${LD-ld} -m elf64_s390"
5802 sparc*-*linux*)
5803 LD="${LD-ld} -m elf64_sparc"
5805 esac
5807 esac
5809 rm -rf conftest*
5812 *-*-sco3.2v5*)
5813 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5814 SAVE_CFLAGS="$CFLAGS"
5815 CFLAGS="$CFLAGS -belf"
5816 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5817 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5818 if test "${lt_cv_cc_needs_belf+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5823 ac_ext=c
5824 ac_cpp='$CPP $CPPFLAGS'
5825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5829 if test x$gcc_no_link = xyes; then
5830 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5832 { (exit 1); exit 1; }; }
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5842 main ()
5846 return 0;
5848 _ACEOF
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5851 (eval $ac_link) 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -z "$ac_c_werror_flag"
5859 || test ! -s conftest.err'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 (eval $ac_try) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; } &&
5865 { ac_try='test -s conftest$ac_exeext'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 lt_cv_cc_needs_belf=yes
5872 else
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5876 lt_cv_cc_needs_belf=no
5878 rm -f conftest.err conftest.$ac_objext \
5879 conftest$ac_exeext conftest.$ac_ext
5880 ac_ext=c
5881 ac_cpp='$CPP $CPPFLAGS'
5882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5887 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5888 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5889 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5891 CFLAGS="$SAVE_CFLAGS"
5896 esac
5899 # Save cache, so that ltconfig can load it
5900 cat >confcache <<\_ACEOF
5901 # This file is a shell script that caches the results of configure
5902 # tests run on this system so they can be shared between configure
5903 # scripts and configure runs, see configure's option --config-cache.
5904 # It is not useful on other systems. If it contains results you don't
5905 # want to keep, you may remove or edit it.
5907 # config.status only pays attention to the cache file if you give it
5908 # the --recheck option to rerun configure.
5910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5912 # following values.
5914 _ACEOF
5916 # The following way of writing the cache mishandles newlines in values,
5917 # but we know of no workaround that is simple, portable, and efficient.
5918 # So, don't put newlines in cache variables' values.
5919 # Ultrix sh set writes to stderr and can't be redirected directly,
5920 # and sets the high bit in the cache file unless we assign to the vars.
5922 (set) 2>&1 |
5923 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5924 *ac_space=\ *)
5925 # `set' does not quote correctly, so add quotes (double-quote
5926 # substitution turns \\\\ into \\, and sed turns \\ into \).
5927 sed -n \
5928 "s/'/'\\\\''/g;
5929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5932 # `set' quotes correctly as required by POSIX, so do not add quotes.
5933 sed -n \
5934 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5936 esac;
5938 sed '
5939 t clear
5940 : clear
5941 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5942 t end
5943 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5944 : end' >>confcache
5945 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5946 if test -w $cache_file; then
5947 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5948 cat confcache >$cache_file
5949 else
5950 echo "not updating unwritable cache $cache_file"
5953 rm -f confcache
5955 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5956 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5957 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5958 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5959 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5960 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5961 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5962 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5963 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5964 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5965 echo "$as_me: error: libtool configure failed" >&2;}
5966 { (exit 1); exit 1; }; }
5968 # Reload cache, that may have been modified by ltconfig
5969 if test -r "$cache_file"; then
5970 # Some versions of bash will fail to source /dev/null (special
5971 # files actually), so we avoid doing that.
5972 if test -f "$cache_file"; then
5973 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5974 echo "$as_me: loading cache $cache_file" >&6;}
5975 case $cache_file in
5976 [\\/]* | ?:[\\/]* ) . $cache_file;;
5977 *) . ./$cache_file;;
5978 esac
5980 else
5981 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5982 echo "$as_me: creating cache $cache_file" >&6;}
5983 >$cache_file
5987 # This can be used to rebuild libtool when needed
5988 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5990 # Always use our own libtool.
5991 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5993 # Redirect the config.log output again, so that the ltconfig log is not
5994 # clobbered by the next message.
5995 exec 5>>./config.log
5997 ac_ext=cc
5998 ac_cpp='$CXXCPP $CPPFLAGS'
5999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6002 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6003 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6004 if test -z "$CXXCPP"; then
6005 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 # Double quotes because CXXCPP needs to be expanded
6009 for CXXCPP in "$CXX -E" "/lib/cpp"
6011 ac_preproc_ok=false
6012 for ac_cxx_preproc_warn_flag in '' yes
6014 # Use a header file that comes with gcc, so configuring glibc
6015 # with a fresh cross-compiler works.
6016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6017 # <limits.h> exists even on freestanding compilers.
6018 # On the NeXT, cc -E runs the code through the compiler's parser,
6019 # not just through cpp. "Syntax error" is here to catch this case.
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #ifdef __STDC__
6027 # include <limits.h>
6028 #else
6029 # include <assert.h>
6030 #endif
6031 Syntax error
6032 _ACEOF
6033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev/null; then
6041 if test -s conftest.err; then
6042 ac_cpp_err=$ac_cxx_preproc_warn_flag
6043 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6044 else
6045 ac_cpp_err=
6047 else
6048 ac_cpp_err=yes
6050 if test -z "$ac_cpp_err"; then
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 # Broken: fails on valid input.
6057 continue
6059 rm -f conftest.err conftest.$ac_ext
6061 # OK, works on sane cases. Now check whether non-existent headers
6062 # can be detected and how.
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <ac_nonexistent.h>
6070 _ACEOF
6071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } >/dev/null; then
6079 if test -s conftest.err; then
6080 ac_cpp_err=$ac_cxx_preproc_warn_flag
6081 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6082 else
6083 ac_cpp_err=
6085 else
6086 ac_cpp_err=yes
6088 if test -z "$ac_cpp_err"; then
6089 # Broken: success on invalid input.
6090 continue
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 # Passes both tests.
6096 ac_preproc_ok=:
6097 break
6099 rm -f conftest.err conftest.$ac_ext
6101 done
6102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6103 rm -f conftest.err conftest.$ac_ext
6104 if $ac_preproc_ok; then
6105 break
6108 done
6109 ac_cv_prog_CXXCPP=$CXXCPP
6112 CXXCPP=$ac_cv_prog_CXXCPP
6113 else
6114 ac_cv_prog_CXXCPP=$CXXCPP
6116 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6117 echo "${ECHO_T}$CXXCPP" >&6
6118 ac_preproc_ok=false
6119 for ac_cxx_preproc_warn_flag in '' yes
6121 # Use a header file that comes with gcc, so configuring glibc
6122 # with a fresh cross-compiler works.
6123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6124 # <limits.h> exists even on freestanding compilers.
6125 # On the NeXT, cc -E runs the code through the compiler's parser,
6126 # not just through cpp. "Syntax error" is here to catch this case.
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #ifdef __STDC__
6134 # include <limits.h>
6135 #else
6136 # include <assert.h>
6137 #endif
6138 Syntax error
6139 _ACEOF
6140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } >/dev/null; then
6148 if test -s conftest.err; then
6149 ac_cpp_err=$ac_cxx_preproc_warn_flag
6150 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6151 else
6152 ac_cpp_err=
6154 else
6155 ac_cpp_err=yes
6157 if test -z "$ac_cpp_err"; then
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 # Broken: fails on valid input.
6164 continue
6166 rm -f conftest.err conftest.$ac_ext
6168 # OK, works on sane cases. Now check whether non-existent headers
6169 # can be detected and how.
6170 cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 #include <ac_nonexistent.h>
6177 _ACEOF
6178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } >/dev/null; then
6186 if test -s conftest.err; then
6187 ac_cpp_err=$ac_cxx_preproc_warn_flag
6188 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6189 else
6190 ac_cpp_err=
6192 else
6193 ac_cpp_err=yes
6195 if test -z "$ac_cpp_err"; then
6196 # Broken: success on invalid input.
6197 continue
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6202 # Passes both tests.
6203 ac_preproc_ok=:
6204 break
6206 rm -f conftest.err conftest.$ac_ext
6208 done
6209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6210 rm -f conftest.err conftest.$ac_ext
6211 if $ac_preproc_ok; then
6213 else
6214 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6215 See \`config.log' for more details." >&5
6216 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6217 See \`config.log' for more details." >&2;}
6218 { (exit 1); exit 1; }; }
6221 ac_ext=c
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6230 lt_save_CC="$CC"
6231 lt_save_CFLAGS="$CFLAGS"
6232 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6233 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6234 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6235 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6236 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6237 deplibs_check_method="$deplibs_check_method" \
6238 file_magic_cmd="$file_magic_cmd" \
6239 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6240 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6241 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6242 echo "$as_me: error: libtool tag configuration failed" >&2;}
6243 { (exit 1); exit 1; }; }
6244 CC="$lt_save_CC"
6245 CFLAGS="$lt_save_CFLAGS"
6247 # Redirect the config.log output again, so that the ltconfig log is not
6248 # clobbered by the next message.
6249 exec 5>>./config.log
6257 for ac_prog in gcj
6259 # Extract the first word of "$ac_prog", so it can be a program name with args.
6260 set dummy $ac_prog; ac_word=$2
6261 echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6263 if test "${ac_cv_prog_GCJ+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 if test -n "$GCJ"; then
6267 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_GCJ="$ac_prog"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6280 done
6281 done
6285 GCJ=$ac_cv_prog_GCJ
6286 if test -n "$GCJ"; then
6287 echo "$as_me:$LINENO: result: $GCJ" >&5
6288 echo "${ECHO_T}$GCJ" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6
6294 test -n "$GCJ" && break
6295 done
6296 test -n "$GCJ" || GCJ="gcj"
6298 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6299 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6300 { (exit 1); exit 1; }; }
6301 if test "x${GCJFLAGS-unset}" = xunset; then
6302 GCJFLAGS="-g -O2"
6306 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6308 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6309 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6310 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6314 # We make a subdir and do the tests there. Otherwise we can end up
6315 # making bogus files that we don't know about and never remove. For
6316 # instance it was reported that on HP-UX the gcc test will end up
6317 # making a dummy file named `D' -- because `-MD' means `put the output
6318 # in D'.
6319 mkdir conftest.dir
6320 # Copy depcomp to subdir because otherwise we won't find it if we're
6321 # using a relative directory.
6322 cp "$am_depcomp" conftest.dir
6323 cd conftest.dir
6324 # We will build objects and dependencies in a subdirectory because
6325 # it helps to detect inapplicable dependency modes. For instance
6326 # both Tru64's cc and ICC support -MD to output dependencies as a
6327 # side effect of compilation, but ICC will put the dependencies in
6328 # the current directory while Tru64 will put them in the object
6329 # directory.
6330 mkdir sub
6332 am_cv_GCJ_dependencies_compiler_type=none
6333 if test "$am_compiler_list" = ""; then
6334 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6336 for depmode in $am_compiler_list; do
6337 # Setup a source with many dependencies, because some compilers
6338 # like to wrap large dependency lists on column 80 (with \), and
6339 # we should not choose a depcomp mode which is confused by this.
6341 # We need to recreate these files for each test, as the compiler may
6342 # overwrite some of them when testing with obscure command lines.
6343 # This happens at least with the AIX C compiler.
6344 : > sub/conftest.c
6345 for i in 1 2 3 4 5 6; do
6346 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6347 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6348 # Solaris 8's {/usr,}/bin/sh.
6349 touch sub/conftst$i.h
6350 done
6351 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6353 case $depmode in
6354 nosideeffect)
6355 # after this tag, mechanisms are not by side-effect, so they'll
6356 # only be used when explicitly requested
6357 if test "x$enable_dependency_tracking" = xyes; then
6358 continue
6359 else
6360 break
6363 none) break ;;
6364 esac
6365 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6366 # mode. It turns out that the SunPro C++ compiler does not properly
6367 # handle `-M -o', and we need to detect this.
6368 if depmode=$depmode \
6369 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6370 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6371 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6372 >/dev/null 2>conftest.err &&
6373 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6374 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6375 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6376 # icc doesn't choke on unknown options, it will just issue warnings
6377 # or remarks (even with -Werror). So we grep stderr for any message
6378 # that says an option was ignored or not supported.
6379 # When given -MP, icc 7.0 and 7.1 complain thusly:
6380 # icc: Command line warning: ignoring option '-M'; no argument required
6381 # The diagnosis changed in icc 8.0:
6382 # icc: Command line remark: option '-MP' not supported
6383 if (grep 'ignoring option' conftest.err ||
6384 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6385 am_cv_GCJ_dependencies_compiler_type=$depmode
6386 break
6389 done
6391 cd ..
6392 rm -rf conftest.dir
6393 else
6394 am_cv_GCJ_dependencies_compiler_type=none
6398 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6399 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6400 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6405 test "x$enable_dependency_tracking" != xno \
6406 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6407 am__fastdepGCJ_TRUE=
6408 am__fastdepGCJ_FALSE='#'
6409 else
6410 am__fastdepGCJ_TRUE='#'
6411 am__fastdepGCJ_FALSE=
6417 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6418 lt_save_CC="$CC"
6419 lt_save_CFLAGS="$CFLAGS"
6420 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6421 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6422 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6423 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6424 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6425 deplibs_check_method="$deplibs_check_method" \
6426 file_magic_cmd="$file_magic_cmd" \
6427 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6428 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6429 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6430 echo "$as_me: error: libtool tag configuration failed" >&2;}
6431 { (exit 1); exit 1; }; }
6432 CC="$lt_save_CC"
6433 CFLAGS="$lt_save_CFLAGS"
6435 # Redirect the config.log output again, so that the ltconfig log is not
6436 # clobbered by the next message.
6437 exec 5>>./config.log
6441 if test "x$CC" != xcc; then
6442 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6443 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6444 else
6445 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6446 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6448 set dummy $CC; ac_cc=`echo $2 |
6449 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6450 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6461 main ()
6465 return 0;
6467 _ACEOF
6468 # Make sure it works both with $CC and with simple cc.
6469 # We do the test twice because some compilers refuse to overwrite an
6470 # existing .o file with -o, though they will create one.
6471 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6472 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); };
6482 then
6483 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6484 if test "x$CC" != xcc; then
6485 # Test first that cc exists at all.
6486 if { ac_try='cc -c conftest.$ac_ext >&5'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6493 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); };
6503 then
6504 # cc works too.
6506 else
6507 # cc exists but doesn't like -o.
6508 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6512 else
6513 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6515 rm -f conftest*
6518 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6519 echo "$as_me:$LINENO: result: yes" >&5
6520 echo "${ECHO_T}yes" >&6
6521 else
6522 echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6
6525 cat >>confdefs.h <<\_ACEOF
6526 #define NO_MINUS_C_MINUS_O 1
6527 _ACEOF
6531 # FIXME: we rely on the cache variable name because
6532 # there is no other way.
6533 set dummy $CC
6534 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6535 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6536 # Losing compiler, so override with the script.
6537 # FIXME: It is wrong to rewrite CC.
6538 # But if we don't then we get into trouble of one sort or another.
6539 # A longer-term fix would be to have automake use am__CC in this case,
6540 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6541 CC="$am_aux_dir/compile $CC"
6547 subdirs="$subdirs classpath libltdl"
6550 # The -no-testsuite modules omit the test subdir.
6553 if test -d $srcdir/testsuite; then
6554 TESTSUBDIR_TRUE=
6555 TESTSUBDIR_FALSE='#'
6556 else
6557 TESTSUBDIR_TRUE='#'
6558 TESTSUBDIR_FALSE=
6562 # Should the runtime set system properties by examining the
6563 # environment variable GCJ_PROPERTIES?
6564 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6565 if test "${enable_getenv_properties+set}" = set; then
6566 enableval="$enable_getenv_properties"
6570 # Whether GCJ_PROPERTIES is used depends on the target.
6571 if test -z "$enable_getenv_properties"; then
6572 enable_getenv_properties=${enable_getenv_properties_default-yes}
6574 if test "$enable_getenv_properties" = no; then
6576 cat >>confdefs.h <<\_ACEOF
6577 #define DISABLE_GETENV_PROPERTIES 1
6578 _ACEOF
6582 # Whether we should use arguments to main()
6583 if test -z "$enable_main_args"; then
6584 enable_main_args=${enable_main_args_default-yes}
6586 if test "$enable_main_args" = no; then
6588 cat >>confdefs.h <<\_ACEOF
6589 #define DISABLE_MAIN_ARGS 1
6590 _ACEOF
6595 # Should we use hashtable-based synchronization?
6596 # Currently works only for Linux X86/ia64
6597 # Typically faster and more space-efficient
6598 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6599 if test "${enable_hash_synchronization+set}" = set; then
6600 enableval="$enable_hash_synchronization"
6604 if test -z "$enable_hash_synchronization"; then
6605 enable_hash_synchronization=$enable_hash_synchronization_default
6609 # Check whether --with-java-home or --without-java-home was given.
6610 if test "${with_java_home+set}" = set; then
6611 withval="$with_java_home"
6612 JAVA_HOME="${withval}"
6613 else
6614 JAVA_HOME=""
6618 if test ! -z "$JAVA_HOME"; then
6619 JAVA_HOME_SET_TRUE=
6620 JAVA_HOME_SET_FALSE='#'
6621 else
6622 JAVA_HOME_SET_TRUE='#'
6623 JAVA_HOME_SET_FALSE=
6628 # What is the native OS API for MinGW?
6630 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6631 if test "${with_win32_nlsapi+set}" = set; then
6632 withval="$with_win32_nlsapi"
6633 case "${withval}" in
6634 ansi) with_win32_nlsapi=ansi ;;
6635 unicows) with_win32_nlsapi=unicows ;;
6636 unicode) with_win32_nlsapi=unicode ;;
6637 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6638 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6639 { (exit 1); exit 1; }; } ;;
6640 esac
6641 else
6642 with_win32_nlsapi=ansi
6645 case "${with_win32_nlsapi}" in
6646 unicows | unicode)
6648 cat >>confdefs.h <<\_ACEOF
6649 #define MINGW_LIBGCJ_UNICODE 1
6650 _ACEOF
6653 esac
6655 # configure.host sets slow_pthread_self if the synchronization code should
6656 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6657 if test "${slow_pthread_self}" = "yes"; then
6659 cat >>confdefs.h <<\_ACEOF
6660 #define SLOW_PTHREAD_SELF 1
6661 _ACEOF
6665 # Check for gc debugging. This option is handled both here and in the GC.
6666 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6667 if test "${enable_gc_debug+set}" = set; then
6668 enableval="$enable_gc_debug"
6669 if test "$enable_gc_debug" = "yes"; then
6671 cat >>confdefs.h <<\_ACEOF
6672 #define LIBGCJ_GC_DEBUG 1
6673 _ACEOF
6678 # See if the user has the interpreter included.
6679 # Check whether --enable-interpreter or --disable-interpreter was given.
6680 if test "${enable_interpreter+set}" = set; then
6681 enableval="$enable_interpreter"
6682 if test "$enable_interpreter" = yes; then
6683 # This can also be set in configure.host.
6684 libgcj_interpreter=yes
6685 elif test "$enable_interpreter" = no; then
6686 libgcj_interpreter=no
6690 if test "$libgcj_interpreter" = yes; then
6692 cat >>confdefs.h <<\_ACEOF
6693 #define INTERPRETER 1
6694 _ACEOF
6697 INTERPRETER="$libgcj_interpreter"
6700 echo "$as_me:$LINENO: checking for exception model to use" >&5
6701 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6702 ac_ext=cc
6703 ac_cpp='$CXXCPP $CPPFLAGS'
6704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6708 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6709 if test "${enable_sjlj_exceptions+set}" = set; then
6710 enableval="$enable_sjlj_exceptions"
6712 else
6713 cat > conftest.$ac_ext << EOF
6714 #line 6714 "configure"
6715 struct S { ~S(); };
6716 void bar();
6717 void foo()
6719 S s;
6720 bar();
6723 old_CXXFLAGS="$CXXFLAGS"
6724 CXXFLAGS=-S
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; then
6730 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6731 enable_sjlj_exceptions=yes
6732 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6733 enable_sjlj_exceptions=no
6736 CXXFLAGS="$old_CXXFLAGS"
6737 rm -f conftest*
6739 if test x$enable_sjlj_exceptions = xyes; then
6741 cat >>confdefs.h <<\_ACEOF
6742 #define SJLJ_EXCEPTIONS 1
6743 _ACEOF
6745 ac_exception_model_name=sjlj
6746 elif test x$enable_sjlj_exceptions = xno; then
6747 ac_exception_model_name="call frame"
6748 else
6749 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6750 echo "$as_me: error: unable to detect exception model" >&2;}
6751 { (exit 1); exit 1; }; }
6753 ac_ext=c
6754 ac_cpp='$CPP $CPPFLAGS'
6755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6760 echo "${ECHO_T}$ac_exception_model_name" >&6
6762 # If we are non using SJLJ exceptions, and this host does not have support
6763 # for unwinding from a signal handler, enable checked dereferences and divides.
6764 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6765 CHECKREFSPEC=-fcheck-references
6766 DIVIDESPEC=-fuse-divide-subroutine
6767 EXCEPTIONSPEC=
6770 # See if the user wants to disable java.net. This is the mildly
6771 # ugly way that we admit that target-side configuration sucks.
6772 # Check whether --enable-java-net or --disable-java-net was given.
6773 if test "${enable_java_net+set}" = set; then
6774 enableval="$enable_java_net"
6778 # Whether java.net is built by default can depend on the target.
6779 if test -z "$enable_java_net"; then
6780 enable_java_net=${enable_java_net_default-yes}
6782 if test "$enable_java_net" = no; then
6784 cat >>confdefs.h <<\_ACEOF
6785 #define DISABLE_JAVA_NET 1
6786 _ACEOF
6790 # See if the user wants to configure without libffi. Some
6791 # architectures don't support it, and default values are set in
6792 # configure.host.
6794 # Check whether --with-libffi or --without-libffi was given.
6795 if test "${with_libffi+set}" = set; then
6796 withval="$with_libffi"
6798 else
6799 with_libffi=${with_libffi_default-yes}
6802 LIBFFI=
6803 LIBFFIINCS=
6804 if test "$with_libffi" != no; then
6806 cat >>confdefs.h <<\_ACEOF
6807 #define USE_LIBFFI 1
6808 _ACEOF
6810 LIBFFI=../libffi/libffi_convenience.la
6811 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6816 # See if the user wants to disable JVMPI support.
6817 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6818 if test "${enable_jvmpi+set}" = set; then
6819 enableval="$enable_jvmpi"
6823 if test "$enable_jvmpi" != no; then
6825 cat >>confdefs.h <<\_ACEOF
6826 #define ENABLE_JVMPI 1
6827 _ACEOF
6831 # If the target is an eCos system, use the appropriate eCos
6832 # I/O routines.
6833 # FIXME: this should not be a local option but a global target
6834 # system; at present there is no eCos target.
6835 TARGET_ECOS=${PROCESS-"no"}
6837 # Check whether --with-ecos or --without-ecos was given.
6838 if test "${with_ecos+set}" = set; then
6839 withval="$with_ecos"
6840 TARGET_ECOS="$with_ecos"
6844 PLATFORM_INNER_NAT_HDRS=
6845 case "$TARGET_ECOS" in
6846 no) case "$host" in
6847 *mingw*)
6848 PLATFORM=Win32
6849 PLATFORMNET=Win32
6850 PLATFORMH=win32.h
6852 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6853 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6854 LD_PROG=`$CC --print-prog-name=ld`
6855 LD_VERSION=`$LD_PROG --version`
6856 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6857 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6858 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6859 LD_OK="ok"
6860 else
6861 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6862 LD_OK="ok"
6865 if test "x$LD_OK" != x; then
6866 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6867 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6868 else
6869 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6870 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6871 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6872 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6874 cat >>confdefs.h <<\_ACEOF
6875 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6876 _ACEOF
6881 PLATFORM=Posix
6882 PLATFORMNET=Posix
6883 PLATFORMH=posix.h
6884 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6886 esac
6889 PLATFORM=Ecos
6890 PLATFORMNET=NoNet
6892 cat >>confdefs.h <<\_ACEOF
6893 #define ECOS 1
6894 _ACEOF
6896 PLATFORMH=posix.h
6898 esac
6900 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6903 ac_ext=c
6904 ac_cpp='$CPP $CPPFLAGS'
6905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6908 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6909 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6910 # On Suns, sometimes $CPP names a directory.
6911 if test -n "$CPP" && test -d "$CPP"; then
6912 CPP=
6914 if test -z "$CPP"; then
6915 if test "${ac_cv_prog_CPP+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 # Double quotes because CPP needs to be expanded
6919 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6921 ac_preproc_ok=false
6922 for ac_c_preproc_warn_flag in '' yes
6924 # Use a header file that comes with gcc, so configuring glibc
6925 # with a fresh cross-compiler works.
6926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927 # <limits.h> exists even on freestanding compilers.
6928 # On the NeXT, cc -E runs the code through the compiler's parser,
6929 # not just through cpp. "Syntax error" is here to catch this case.
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h. */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6936 #ifdef __STDC__
6937 # include <limits.h>
6938 #else
6939 # include <assert.h>
6940 #endif
6941 Syntax error
6942 _ACEOF
6943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6945 ac_status=$?
6946 grep -v '^ *+' conftest.er1 >conftest.err
6947 rm -f conftest.er1
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } >/dev/null; then
6951 if test -s conftest.err; then
6952 ac_cpp_err=$ac_c_preproc_warn_flag
6953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6954 else
6955 ac_cpp_err=
6957 else
6958 ac_cpp_err=yes
6960 if test -z "$ac_cpp_err"; then
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 # Broken: fails on valid input.
6967 continue
6969 rm -f conftest.err conftest.$ac_ext
6971 # OK, works on sane cases. Now check whether non-existent headers
6972 # can be detected and how.
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h. */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 #include <ac_nonexistent.h>
6980 _ACEOF
6981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6983 ac_status=$?
6984 grep -v '^ *+' conftest.er1 >conftest.err
6985 rm -f conftest.er1
6986 cat conftest.err >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } >/dev/null; then
6989 if test -s conftest.err; then
6990 ac_cpp_err=$ac_c_preproc_warn_flag
6991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6992 else
6993 ac_cpp_err=
6995 else
6996 ac_cpp_err=yes
6998 if test -z "$ac_cpp_err"; then
6999 # Broken: success on invalid input.
7000 continue
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 # Passes both tests.
7006 ac_preproc_ok=:
7007 break
7009 rm -f conftest.err conftest.$ac_ext
7011 done
7012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7013 rm -f conftest.err conftest.$ac_ext
7014 if $ac_preproc_ok; then
7015 break
7018 done
7019 ac_cv_prog_CPP=$CPP
7022 CPP=$ac_cv_prog_CPP
7023 else
7024 ac_cv_prog_CPP=$CPP
7026 echo "$as_me:$LINENO: result: $CPP" >&5
7027 echo "${ECHO_T}$CPP" >&6
7028 ac_preproc_ok=false
7029 for ac_c_preproc_warn_flag in '' yes
7031 # Use a header file that comes with gcc, so configuring glibc
7032 # with a fresh cross-compiler works.
7033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7034 # <limits.h> exists even on freestanding compilers.
7035 # On the NeXT, cc -E runs the code through the compiler's parser,
7036 # not just through cpp. "Syntax error" is here to catch this case.
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 #ifdef __STDC__
7044 # include <limits.h>
7045 #else
7046 # include <assert.h>
7047 #endif
7048 Syntax error
7049 _ACEOF
7050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } >/dev/null; then
7058 if test -s conftest.err; then
7059 ac_cpp_err=$ac_c_preproc_warn_flag
7060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7061 else
7062 ac_cpp_err=
7064 else
7065 ac_cpp_err=yes
7067 if test -z "$ac_cpp_err"; then
7069 else
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 # Broken: fails on valid input.
7074 continue
7076 rm -f conftest.err conftest.$ac_ext
7078 # OK, works on sane cases. Now check whether non-existent headers
7079 # can be detected and how.
7080 cat >conftest.$ac_ext <<_ACEOF
7081 /* confdefs.h. */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 #include <ac_nonexistent.h>
7087 _ACEOF
7088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7090 ac_status=$?
7091 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -f conftest.er1
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } >/dev/null; then
7096 if test -s conftest.err; then
7097 ac_cpp_err=$ac_c_preproc_warn_flag
7098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7099 else
7100 ac_cpp_err=
7102 else
7103 ac_cpp_err=yes
7105 if test -z "$ac_cpp_err"; then
7106 # Broken: success on invalid input.
7107 continue
7108 else
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 # Passes both tests.
7113 ac_preproc_ok=:
7114 break
7116 rm -f conftest.err conftest.$ac_ext
7118 done
7119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7120 rm -f conftest.err conftest.$ac_ext
7121 if $ac_preproc_ok; then
7123 else
7124 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7125 See \`config.log' for more details." >&5
7126 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7127 See \`config.log' for more details." >&2;}
7128 { (exit 1); exit 1; }; }
7131 ac_ext=c
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138 echo "$as_me:$LINENO: checking for egrep" >&5
7139 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7140 if test "${ac_cv_prog_egrep+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7144 then ac_cv_prog_egrep='grep -E'
7145 else ac_cv_prog_egrep='egrep'
7148 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7149 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7150 EGREP=$ac_cv_prog_egrep
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <stdint.h>
7161 _ACEOF
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "uint32_t" >/dev/null 2>&1; then
7165 cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_INT32_DEFINED 1
7167 _ACEOF
7170 rm -f conftest*
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 #include <inttypes.h>
7180 _ACEOF
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182 $EGREP "uint32_t" >/dev/null 2>&1; then
7184 cat >>confdefs.h <<\_ACEOF
7185 #define HAVE_INT32_DEFINED 1
7186 _ACEOF
7189 rm -f conftest*
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 #include <sys/types.h>
7199 _ACEOF
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201 $EGREP "u_int32_t" >/dev/null 2>&1; then
7203 cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_BSD_INT32_DEFINED 1
7205 _ACEOF
7208 rm -f conftest*
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 #include <sys/config.h>
7218 _ACEOF
7219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7220 $EGREP "u_int32_t" >/dev/null 2>&1; then
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_BSD_INT32_DEFINED 1
7224 _ACEOF
7227 rm -f conftest*
7232 if test "$PLATFORM" = Win32; then
7233 USING_WIN32_PLATFORM_TRUE=
7234 USING_WIN32_PLATFORM_FALSE='#'
7235 else
7236 USING_WIN32_PLATFORM_TRUE='#'
7237 USING_WIN32_PLATFORM_FALSE=
7242 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7243 USING_POSIX_PLATFORM_TRUE=
7244 USING_POSIX_PLATFORM_FALSE='#'
7245 else
7246 USING_POSIX_PLATFORM_TRUE='#'
7247 USING_POSIX_PLATFORM_FALSE=
7251 case "$host" in
7252 *-darwin*) DARWIN_CRT=true ;;
7253 *) DARWIN_CRT=false ;;
7254 esac
7257 if $DARWIN_CRT; then
7258 USING_DARWIN_CRT_TRUE=
7259 USING_DARWIN_CRT_FALSE='#'
7260 else
7261 USING_DARWIN_CRT_TRUE='#'
7262 USING_DARWIN_CRT_FALSE=
7266 # These may not be defined in a non-ANS conformant embedded system.
7267 # FIXME: Should these case a runtime exception in that case?
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #include <time.h>
7276 _ACEOF
7277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278 $EGREP "mktime" >/dev/null 2>&1; then
7280 cat >>confdefs.h <<\_ACEOF
7281 #define HAVE_MKTIME 1
7282 _ACEOF
7285 rm -f conftest*
7287 cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h. */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 #include <time.h>
7295 _ACEOF
7296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7297 $EGREP "localtime" >/dev/null 2>&1; then
7299 cat >>confdefs.h <<\_ACEOF
7300 #define HAVE_LOCALTIME 1
7301 _ACEOF
7304 rm -f conftest*
7307 # Create the subdirectory for natFile.cc, or the attempt
7308 # to create the link will fail.
7309 test -d java || mkdir java
7310 test -d java/io || mkdir java/io
7311 test -d gnu || mkdir gnu
7312 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7315 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7316 test -d java/lang || mkdir java/lang
7317 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7319 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7322 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7323 test -d java/net || mkdir java/net
7324 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7326 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7329 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7330 test -d gnu/java || mkdir gnu/java
7331 test -d gnu/java/net || mkdir gnu/java/net
7332 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7334 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7337 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7338 test -d gnu/java/nio || mkdir gnu/java/nio
7339 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7341 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7343 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7344 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7347 case "${host}" in
7348 *mingw*)
7349 SYSTEMSPEC="-lgdi32 -lws2_32"
7350 if test "${with_win32_nlsapi}" = "unicows"; then
7351 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7355 SYSTEMSPEC=
7357 esac
7360 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7364 # Check whether --with-system-zlib or --without-system-zlib was given.
7365 if test "${with_system_zlib+set}" = set; then
7366 withval="$with_system_zlib"
7369 ZLIBSPEC=
7371 ZLIBTESTSPEC=
7374 echo "$as_me:$LINENO: checking for X" >&5
7375 echo $ECHO_N "checking for X... $ECHO_C" >&6
7378 # Check whether --with-x or --without-x was given.
7379 if test "${with_x+set}" = set; then
7380 withval="$with_x"
7383 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7384 if test "x$with_x" = xno; then
7385 # The user explicitly disabled X.
7386 have_x=disabled
7387 else
7388 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7389 # Both variables are already set.
7390 have_x=yes
7391 else
7392 if test "${ac_cv_have_x+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 # One or both of the vars are not set, and there is no cached value.
7396 ac_x_includes=no ac_x_libraries=no
7397 rm -fr conftest.dir
7398 if mkdir conftest.dir; then
7399 cd conftest.dir
7400 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7401 cat >Imakefile <<'_ACEOF'
7402 acfindx:
7403 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7404 _ACEOF
7405 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7406 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7407 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7408 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7409 for ac_extension in a so sl; do
7410 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7411 test -f $ac_im_libdir/libX11.$ac_extension; then
7412 ac_im_usrlibdir=$ac_im_libdir; break
7414 done
7415 # Screen out bogus values from the imake configuration. They are
7416 # bogus both because they are the default anyway, and because
7417 # using them would break gcc on systems where it needs fixed includes.
7418 case $ac_im_incroot in
7419 /usr/include) ;;
7420 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7421 esac
7422 case $ac_im_usrlibdir in
7423 /usr/lib | /lib) ;;
7424 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7425 esac
7427 cd ..
7428 rm -fr conftest.dir
7431 # Standard set of common directories for X headers.
7432 # Check X11 before X11Rn because it is often a symlink to the current release.
7433 ac_x_header_dirs='
7434 /usr/X11/include
7435 /usr/X11R6/include
7436 /usr/X11R5/include
7437 /usr/X11R4/include
7439 /usr/include/X11
7440 /usr/include/X11R6
7441 /usr/include/X11R5
7442 /usr/include/X11R4
7444 /usr/local/X11/include
7445 /usr/local/X11R6/include
7446 /usr/local/X11R5/include
7447 /usr/local/X11R4/include
7449 /usr/local/include/X11
7450 /usr/local/include/X11R6
7451 /usr/local/include/X11R5
7452 /usr/local/include/X11R4
7454 /usr/X386/include
7455 /usr/x386/include
7456 /usr/XFree86/include/X11
7458 /usr/include
7459 /usr/local/include
7460 /usr/unsupported/include
7461 /usr/athena/include
7462 /usr/local/x11r5/include
7463 /usr/lpp/Xamples/include
7465 /usr/openwin/include
7466 /usr/openwin/share/include'
7468 if test "$ac_x_includes" = no; then
7469 # Guess where to find include files, by looking for Intrinsic.h.
7470 # First, try using that file with no special directory specified.
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 #include <X11/Intrinsic.h>
7478 _ACEOF
7479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7481 ac_status=$?
7482 grep -v '^ *+' conftest.er1 >conftest.err
7483 rm -f conftest.er1
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } >/dev/null; then
7487 if test -s conftest.err; then
7488 ac_cpp_err=$ac_c_preproc_warn_flag
7489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7490 else
7491 ac_cpp_err=
7493 else
7494 ac_cpp_err=yes
7496 if test -z "$ac_cpp_err"; then
7497 # We can compile using X headers with no special include directory.
7498 ac_x_includes=
7499 else
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 for ac_dir in $ac_x_header_dirs; do
7504 if test -r "$ac_dir/X11/Intrinsic.h"; then
7505 ac_x_includes=$ac_dir
7506 break
7508 done
7510 rm -f conftest.err conftest.$ac_ext
7511 fi # $ac_x_includes = no
7513 if test "$ac_x_libraries" = no; then
7514 # Check for the libraries.
7515 # See if we find them without any special options.
7516 # Don't add to $LIBS permanently.
7517 ac_save_LIBS=$LIBS
7518 LIBS="-lXt $LIBS"
7519 if test x$gcc_no_link = xyes; then
7520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7522 { (exit 1); exit 1; }; }
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530 #include <X11/Intrinsic.h>
7532 main ()
7534 XtMalloc (0)
7536 return 0;
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541 (eval $ac_link) 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } &&
7548 { ac_try='test -z "$ac_c_werror_flag"
7549 || test ! -s conftest.err'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 (eval $ac_try) 2>&5
7552 ac_status=$?
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; } &&
7555 { ac_try='test -s conftest$ac_exeext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 (eval $ac_try) 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 LIBS=$ac_save_LIBS
7562 # We can link X programs with no special library path.
7563 ac_x_libraries=
7564 else
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 LIBS=$ac_save_LIBS
7569 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7571 # Don't even attempt the hair of trying to link an X program!
7572 for ac_extension in a so sl; do
7573 if test -r $ac_dir/libXt.$ac_extension; then
7574 ac_x_libraries=$ac_dir
7575 break 2
7577 done
7578 done
7580 rm -f conftest.err conftest.$ac_objext \
7581 conftest$ac_exeext conftest.$ac_ext
7582 fi # $ac_x_libraries = no
7584 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7585 # Didn't find X anywhere. Cache the known absence of X.
7586 ac_cv_have_x="have_x=no"
7587 else
7588 # Record where we found X for the cache.
7589 ac_cv_have_x="have_x=yes \
7590 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7595 eval "$ac_cv_have_x"
7596 fi # $with_x != no
7598 if test "$have_x" != yes; then
7599 echo "$as_me:$LINENO: result: $have_x" >&5
7600 echo "${ECHO_T}$have_x" >&6
7601 no_x=yes
7602 else
7603 # If each of the values was on the command line, it overrides each guess.
7604 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7605 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7606 # Update the cache value to reflect the command line values.
7607 ac_cv_have_x="have_x=yes \
7608 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7609 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7610 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7613 if test "$no_x" = yes; then
7614 # Not all programs may use this symbol, but it does not hurt to define it.
7616 cat >>confdefs.h <<\_ACEOF
7617 #define X_DISPLAY_MISSING 1
7618 _ACEOF
7620 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7621 else
7622 if test -n "$x_includes"; then
7623 X_CFLAGS="$X_CFLAGS -I$x_includes"
7626 # It would also be nice to do this for all -L options, not just this one.
7627 if test -n "$x_libraries"; then
7628 X_LIBS="$X_LIBS -L$x_libraries"
7629 # For Solaris; some versions of Sun CC require a space after -R and
7630 # others require no space. Words are not sufficient . . . .
7631 case `(uname -sr) 2>/dev/null` in
7632 "SunOS 5"*)
7633 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7634 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7635 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7636 if test x$gcc_no_link = xyes; then
7637 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7639 { (exit 1); exit 1; }; }
7641 cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h. */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7649 main ()
7653 return 0;
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag"
7666 || test ! -s conftest.err'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_R_nospace=yes
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_R_nospace=no
7685 rm -f conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687 if test $ac_R_nospace = yes; then
7688 echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6
7690 X_LIBS="$X_LIBS -R$x_libraries"
7691 else
7692 LIBS="$ac_xsave_LIBS -R $x_libraries"
7693 if test x$gcc_no_link = xyes; then
7694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7696 { (exit 1); exit 1; }; }
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h. */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7706 main ()
7710 return 0;
7712 _ACEOF
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7715 (eval $ac_link) 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try='test -z "$ac_c_werror_flag"
7723 || test ! -s conftest.err'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; } &&
7729 { ac_try='test -s conftest$ac_exeext'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7735 ac_R_space=yes
7736 else
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_R_space=no
7742 rm -f conftest.err conftest.$ac_objext \
7743 conftest$ac_exeext conftest.$ac_ext
7744 if test $ac_R_space = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746 echo "${ECHO_T}yes" >&6
7747 X_LIBS="$X_LIBS -R $x_libraries"
7748 else
7749 echo "$as_me:$LINENO: result: neither works" >&5
7750 echo "${ECHO_T}neither works" >&6
7753 LIBS=$ac_xsave_LIBS
7754 esac
7757 # Check for system-dependent libraries X programs must link with.
7758 # Do this before checking for the system-independent R6 libraries
7759 # (-lICE), since we may need -lsocket or whatever for X linking.
7761 if test "$ISC" = yes; then
7762 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7763 else
7764 # Martyn Johnson says this is needed for Ultrix, if the X
7765 # libraries were built with DECnet support. And Karl Berry says
7766 # the Alpha needs dnet_stub (dnet does not exist).
7767 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7768 if test x$gcc_no_link = xyes; then
7769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7771 { (exit 1); exit 1; }; }
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7780 /* Override any gcc2 internal prototype to avoid an error. */
7781 #ifdef __cplusplus
7782 extern "C"
7783 #endif
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7786 char XOpenDisplay ();
7788 main ()
7790 XOpenDisplay ();
7792 return 0;
7794 _ACEOF
7795 rm -f conftest.$ac_objext conftest$ac_exeext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7797 (eval $ac_link) 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } &&
7804 { ac_try='test -z "$ac_c_werror_flag"
7805 || test ! -s conftest.err'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; } &&
7811 { ac_try='test -s conftest$ac_exeext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 (eval $ac_try) 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7818 else
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7822 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7823 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7824 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827 ac_check_lib_save_LIBS=$LIBS
7828 LIBS="-ldnet $LIBS"
7829 if test x$gcc_no_link = xyes; then
7830 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7832 { (exit 1); exit 1; }; }
7834 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7841 /* Override any gcc2 internal prototype to avoid an error. */
7842 #ifdef __cplusplus
7843 extern "C"
7844 #endif
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7847 char dnet_ntoa ();
7849 main ()
7851 dnet_ntoa ();
7853 return 0;
7855 _ACEOF
7856 rm -f conftest.$ac_objext conftest$ac_exeext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7858 (eval $ac_link) 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag"
7866 || test ! -s conftest.err'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; } &&
7872 { ac_try='test -s conftest$ac_exeext'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 (eval $ac_try) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
7878 ac_cv_lib_dnet_dnet_ntoa=yes
7879 else
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 ac_cv_lib_dnet_dnet_ntoa=no
7885 rm -f conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7887 LIBS=$ac_check_lib_save_LIBS
7889 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7890 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7891 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7892 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7895 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7896 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7897 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7898 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901 ac_check_lib_save_LIBS=$LIBS
7902 LIBS="-ldnet_stub $LIBS"
7903 if test x$gcc_no_link = xyes; then
7904 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7905 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7906 { (exit 1); exit 1; }; }
7908 cat >conftest.$ac_ext <<_ACEOF
7909 /* confdefs.h. */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7915 /* Override any gcc2 internal prototype to avoid an error. */
7916 #ifdef __cplusplus
7917 extern "C"
7918 #endif
7919 /* We use char because int might match the return type of a gcc2
7920 builtin and then its argument prototype would still apply. */
7921 char dnet_ntoa ();
7923 main ()
7925 dnet_ntoa ();
7927 return 0;
7929 _ACEOF
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7932 (eval $ac_link) 2>conftest.er1
7933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } &&
7939 { ac_try='test -z "$ac_c_werror_flag"
7940 || test ! -s conftest.err'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; } &&
7946 { ac_try='test -s conftest$ac_exeext'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 (eval $ac_try) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 ac_cv_lib_dnet_stub_dnet_ntoa=no
7959 rm -f conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 LIBS=$ac_check_lib_save_LIBS
7963 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7964 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7965 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7966 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7971 rm -f conftest.err conftest.$ac_objext \
7972 conftest$ac_exeext conftest.$ac_ext
7973 LIBS="$ac_xsave_LIBS"
7975 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7976 # to get the SysV transport functions.
7977 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7978 # needs -lnsl.
7979 # The nsl library prevents programs from opening the X display
7980 # on Irix 5.2, according to T.E. Dickey.
7981 # The functions gethostbyname, getservbyname, and inet_addr are
7982 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7983 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7984 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7985 if test "${ac_cv_func_gethostbyname+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988 if test x$gcc_no_link = xyes; then
7989 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7990 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7991 { (exit 1); exit 1; }; }
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h. */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8001 #define gethostbyname innocuous_gethostbyname
8003 /* System header to define __stub macros and hopefully few prototypes,
8004 which can conflict with char gethostbyname (); below.
8005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8006 <limits.h> exists even on freestanding compilers. */
8008 #ifdef __STDC__
8009 # include <limits.h>
8010 #else
8011 # include <assert.h>
8012 #endif
8014 #undef gethostbyname
8016 /* Override any gcc2 internal prototype to avoid an error. */
8017 #ifdef __cplusplus
8018 extern "C"
8020 #endif
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8023 char gethostbyname ();
8024 /* The GNU C library defines this for functions which it implements
8025 to always fail with ENOSYS. Some functions are actually named
8026 something starting with __ and the normal name is an alias. */
8027 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8028 choke me
8029 #else
8030 char (*f) () = gethostbyname;
8031 #endif
8032 #ifdef __cplusplus
8034 #endif
8037 main ()
8039 return f != gethostbyname;
8041 return 0;
8043 _ACEOF
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -z "$ac_c_werror_flag"
8054 || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_func_gethostbyname=yes
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_cv_func_gethostbyname=no
8073 rm -f conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8076 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8077 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8079 if test $ac_cv_func_gethostbyname = no; then
8080 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8081 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8082 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 ac_check_lib_save_LIBS=$LIBS
8086 LIBS="-lnsl $LIBS"
8087 if test x$gcc_no_link = xyes; then
8088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8090 { (exit 1); exit 1; }; }
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8099 /* Override any gcc2 internal prototype to avoid an error. */
8100 #ifdef __cplusplus
8101 extern "C"
8102 #endif
8103 /* We use char because int might match the return type of a gcc2
8104 builtin and then its argument prototype would still apply. */
8105 char gethostbyname ();
8107 main ()
8109 gethostbyname ();
8111 return 0;
8113 _ACEOF
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116 (eval $ac_link) 2>conftest.er1
8117 ac_status=$?
8118 grep -v '^ *+' conftest.er1 >conftest.err
8119 rm -f conftest.er1
8120 cat conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try='test -z "$ac_c_werror_flag"
8124 || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_cv_lib_nsl_gethostbyname=yes
8137 else
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 ac_cv_lib_nsl_gethostbyname=no
8143 rm -f conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 LIBS=$ac_check_lib_save_LIBS
8147 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8148 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8149 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8150 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8153 if test $ac_cv_lib_nsl_gethostbyname = no; then
8154 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8155 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8156 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159 ac_check_lib_save_LIBS=$LIBS
8160 LIBS="-lbsd $LIBS"
8161 if test x$gcc_no_link = xyes; then
8162 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8163 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8164 { (exit 1); exit 1; }; }
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 /* Override any gcc2 internal prototype to avoid an error. */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 /* We use char because int might match the return type of a gcc2
8178 builtin and then its argument prototype would still apply. */
8179 char gethostbyname ();
8181 main ()
8183 gethostbyname ();
8185 return 0;
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190 (eval $ac_link) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest$ac_exeext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_lib_bsd_gethostbyname=yes
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_lib_bsd_gethostbyname=no
8217 rm -f conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8219 LIBS=$ac_check_lib_save_LIBS
8221 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8222 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8223 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8230 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8231 # socket/setsockopt and other routines are undefined under SCO ODT
8232 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8233 # on later versions), says Simon Leinen: it contains gethostby*
8234 # variants that don't use the name server (or something). -lsocket
8235 # must be given before -lnsl if both are needed. We assume that
8236 # if connect needs -lnsl, so does gethostbyname.
8237 echo "$as_me:$LINENO: checking for connect" >&5
8238 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8239 if test "${ac_cv_func_connect+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242 if test x$gcc_no_link = xyes; then
8243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8245 { (exit 1); exit 1; }; }
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8255 #define connect innocuous_connect
8257 /* System header to define __stub macros and hopefully few prototypes,
8258 which can conflict with char connect (); below.
8259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8260 <limits.h> exists even on freestanding compilers. */
8262 #ifdef __STDC__
8263 # include <limits.h>
8264 #else
8265 # include <assert.h>
8266 #endif
8268 #undef connect
8270 /* Override any gcc2 internal prototype to avoid an error. */
8271 #ifdef __cplusplus
8272 extern "C"
8274 #endif
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8277 char connect ();
8278 /* The GNU C library defines this for functions which it implements
8279 to always fail with ENOSYS. Some functions are actually named
8280 something starting with __ and the normal name is an alias. */
8281 #if defined (__stub_connect) || defined (__stub___connect)
8282 choke me
8283 #else
8284 char (*f) () = connect;
8285 #endif
8286 #ifdef __cplusplus
8288 #endif
8291 main ()
8293 return f != connect;
8295 return 0;
8297 _ACEOF
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300 (eval $ac_link) 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag"
8308 || test ! -s conftest.err'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest$ac_exeext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 (eval $ac_try) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_cv_func_connect=yes
8321 else
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 ac_cv_func_connect=no
8327 rm -f conftest.err conftest.$ac_objext \
8328 conftest$ac_exeext conftest.$ac_ext
8330 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8331 echo "${ECHO_T}$ac_cv_func_connect" >&6
8333 if test $ac_cv_func_connect = no; then
8334 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8335 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8336 if test "${ac_cv_lib_socket_connect+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339 ac_check_lib_save_LIBS=$LIBS
8340 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8341 if test x$gcc_no_link = xyes; then
8342 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8344 { (exit 1); exit 1; }; }
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8353 /* Override any gcc2 internal prototype to avoid an error. */
8354 #ifdef __cplusplus
8355 extern "C"
8356 #endif
8357 /* We use char because int might match the return type of a gcc2
8358 builtin and then its argument prototype would still apply. */
8359 char connect ();
8361 main ()
8363 connect ();
8365 return 0;
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -z "$ac_c_werror_flag"
8378 || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest$ac_exeext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_cv_lib_socket_connect=yes
8391 else
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 ac_cv_lib_socket_connect=no
8397 rm -f conftest.err conftest.$ac_objext \
8398 conftest$ac_exeext conftest.$ac_ext
8399 LIBS=$ac_check_lib_save_LIBS
8401 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8402 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8403 if test $ac_cv_lib_socket_connect = yes; then
8404 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8409 # Guillermo Gomez says -lposix is necessary on A/UX.
8410 echo "$as_me:$LINENO: checking for remove" >&5
8411 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8412 if test "${ac_cv_func_remove+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415 if test x$gcc_no_link = xyes; then
8416 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8417 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8418 { (exit 1); exit 1; }; }
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8428 #define remove innocuous_remove
8430 /* System header to define __stub macros and hopefully few prototypes,
8431 which can conflict with char remove (); below.
8432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8433 <limits.h> exists even on freestanding compilers. */
8435 #ifdef __STDC__
8436 # include <limits.h>
8437 #else
8438 # include <assert.h>
8439 #endif
8441 #undef remove
8443 /* Override any gcc2 internal prototype to avoid an error. */
8444 #ifdef __cplusplus
8445 extern "C"
8447 #endif
8448 /* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8450 char remove ();
8451 /* The GNU C library defines this for functions which it implements
8452 to always fail with ENOSYS. Some functions are actually named
8453 something starting with __ and the normal name is an alias. */
8454 #if defined (__stub_remove) || defined (__stub___remove)
8455 choke me
8456 #else
8457 char (*f) () = remove;
8458 #endif
8459 #ifdef __cplusplus
8461 #endif
8464 main ()
8466 return f != remove;
8468 return 0;
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_func_remove=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8498 ac_cv_func_remove=no
8500 rm -f conftest.err conftest.$ac_objext \
8501 conftest$ac_exeext conftest.$ac_ext
8503 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8504 echo "${ECHO_T}$ac_cv_func_remove" >&6
8506 if test $ac_cv_func_remove = no; then
8507 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8508 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8509 if test "${ac_cv_lib_posix_remove+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 ac_check_lib_save_LIBS=$LIBS
8513 LIBS="-lposix $LIBS"
8514 if test x$gcc_no_link = xyes; then
8515 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8517 { (exit 1); exit 1; }; }
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8526 /* Override any gcc2 internal prototype to avoid an error. */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532 char remove ();
8534 main ()
8536 remove ();
8538 return 0;
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543 (eval $ac_link) 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -z "$ac_c_werror_flag"
8551 || test ! -s conftest.err'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest$ac_exeext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 ac_cv_lib_posix_remove=yes
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_cv_lib_posix_remove=no
8570 rm -f conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8574 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8575 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8576 if test $ac_cv_lib_posix_remove = yes; then
8577 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8582 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8583 echo "$as_me:$LINENO: checking for shmat" >&5
8584 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8585 if test "${ac_cv_func_shmat+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588 if test x$gcc_no_link = xyes; then
8589 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8590 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8591 { (exit 1); exit 1; }; }
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h. */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8601 #define shmat innocuous_shmat
8603 /* System header to define __stub macros and hopefully few prototypes,
8604 which can conflict with char shmat (); below.
8605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8606 <limits.h> exists even on freestanding compilers. */
8608 #ifdef __STDC__
8609 # include <limits.h>
8610 #else
8611 # include <assert.h>
8612 #endif
8614 #undef shmat
8616 /* Override any gcc2 internal prototype to avoid an error. */
8617 #ifdef __cplusplus
8618 extern "C"
8620 #endif
8621 /* We use char because int might match the return type of a gcc2
8622 builtin and then its argument prototype would still apply. */
8623 char shmat ();
8624 /* The GNU C library defines this for functions which it implements
8625 to always fail with ENOSYS. Some functions are actually named
8626 something starting with __ and the normal name is an alias. */
8627 #if defined (__stub_shmat) || defined (__stub___shmat)
8628 choke me
8629 #else
8630 char (*f) () = shmat;
8631 #endif
8632 #ifdef __cplusplus
8634 #endif
8637 main ()
8639 return f != shmat;
8641 return 0;
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_func_shmat=yes
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 ac_cv_func_shmat=no
8673 rm -f conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8676 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8677 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8679 if test $ac_cv_func_shmat = no; then
8680 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8681 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8682 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-lipc $LIBS"
8687 if test x$gcc_no_link = xyes; then
8688 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8690 { (exit 1); exit 1; }; }
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 /* Override any gcc2 internal prototype to avoid an error. */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8705 char shmat ();
8707 main ()
8709 shmat ();
8711 return 0;
8713 _ACEOF
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_lib_ipc_shmat=yes
8737 else
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_lib_ipc_shmat=no
8743 rm -f conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8748 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8749 if test $ac_cv_lib_ipc_shmat = yes; then
8750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8756 # Check for libraries that X11R6 Xt/Xaw programs need.
8757 ac_save_LDFLAGS=$LDFLAGS
8758 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8759 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8760 # check for ICE first), but we must link in the order -lSM -lICE or
8761 # we get undefined symbols. So assume we have SM if we have ICE.
8762 # These have to be linked with before -lX11, unlike the other
8763 # libraries we check for below, so use a different variable.
8764 # John Interrante, Karl Berry
8765 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8766 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8767 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8772 if test x$gcc_no_link = xyes; then
8773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8775 { (exit 1); exit 1; }; }
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 #ifdef __cplusplus
8786 extern "C"
8787 #endif
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8790 char IceConnectionNumber ();
8792 main ()
8794 IceConnectionNumber ();
8796 return 0;
8798 _ACEOF
8799 rm -f conftest.$ac_objext conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -z "$ac_c_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 (eval $ac_try) 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_lib_ICE_IceConnectionNumber=yes
8822 else
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 ac_cv_lib_ICE_IceConnectionNumber=no
8828 rm -f conftest.err conftest.$ac_objext \
8829 conftest$ac_exeext conftest.$ac_ext
8830 LIBS=$ac_check_lib_save_LIBS
8832 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8833 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8834 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8835 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8838 LDFLAGS=$ac_save_LDFLAGS
8843 # determine whether to enable the cairo GTK Graphics2D backend
8844 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8845 if test "${enable_gtk_cairo+set}" = set; then
8846 enableval="$enable_gtk_cairo"
8851 if test "x${enable_gtk_cairo}" = xyes; then
8852 GTK_CAIRO_TRUE=
8853 GTK_CAIRO_FALSE='#'
8854 else
8855 GTK_CAIRO_TRUE='#'
8856 GTK_CAIRO_FALSE=
8859 if test "x${enable_gtk_cairo}" = xyes
8860 then
8862 succeeded=no
8864 if test -z "$PKG_CONFIG"; then
8865 # Extract the first word of "pkg-config", so it can be a program name with args.
8866 set dummy pkg-config; ac_word=$2
8867 echo "$as_me:$LINENO: checking for $ac_word" >&5
8868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8869 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872 case $PKG_CONFIG in
8873 [\\/]* | ?:[\\/]*)
8874 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8884 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 break 2
8888 done
8889 done
8891 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8893 esac
8895 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8897 if test -n "$PKG_CONFIG"; then
8898 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8899 echo "${ECHO_T}$PKG_CONFIG" >&6
8900 else
8901 echo "$as_me:$LINENO: result: no" >&5
8902 echo "${ECHO_T}no" >&6
8907 if test "$PKG_CONFIG" = "no" ; then
8908 echo "*** The pkg-config script could not be found. Make sure it is"
8909 echo "*** in your path, or set the PKG_CONFIG environment variable"
8910 echo "*** to the full path to pkg-config."
8911 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8912 else
8913 PKG_CONFIG_MIN_VERSION=0.9.0
8914 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8915 echo "$as_me:$LINENO: checking for cairo" >&5
8916 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8918 if $PKG_CONFIG --exists "cairo" ; then
8919 echo "$as_me:$LINENO: result: yes" >&5
8920 echo "${ECHO_T}yes" >&6
8921 succeeded=yes
8923 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8924 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8925 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8926 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8927 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8929 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8930 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8931 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8932 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8933 echo "${ECHO_T}$CAIRO_LIBS" >&6
8934 else
8935 CAIRO_CFLAGS=""
8936 CAIRO_LIBS=""
8937 ## If we have a custom action on failure, don't print errors, but
8938 ## do set a variable so people can do so.
8939 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8940 echo $CAIRO_PKG_ERRORS
8945 else
8946 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8947 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8951 if test $succeeded = yes; then
8953 else
8954 { { 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
8955 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;}
8956 { (exit 1); exit 1; }; }
8960 succeeded=no
8962 if test -z "$PKG_CONFIG"; then
8963 # Extract the first word of "pkg-config", so it can be a program name with args.
8964 set dummy pkg-config; ac_word=$2
8965 echo "$as_me:$LINENO: checking for $ac_word" >&5
8966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8967 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970 case $PKG_CONFIG in
8971 [\\/]* | ?:[\\/]*)
8972 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 for as_dir in $PATH
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8982 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8986 done
8987 done
8989 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8991 esac
8993 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8995 if test -n "$PKG_CONFIG"; then
8996 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8997 echo "${ECHO_T}$PKG_CONFIG" >&6
8998 else
8999 echo "$as_me:$LINENO: result: no" >&5
9000 echo "${ECHO_T}no" >&6
9005 if test "$PKG_CONFIG" = "no" ; then
9006 echo "*** The pkg-config script could not be found. Make sure it is"
9007 echo "*** in your path, or set the PKG_CONFIG environment variable"
9008 echo "*** to the full path to pkg-config."
9009 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9010 else
9011 PKG_CONFIG_MIN_VERSION=0.9.0
9012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9013 echo "$as_me:$LINENO: checking for pangoft2" >&5
9014 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
9016 if $PKG_CONFIG --exists "pangoft2" ; then
9017 echo "$as_me:$LINENO: result: yes" >&5
9018 echo "${ECHO_T}yes" >&6
9019 succeeded=yes
9021 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
9022 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
9023 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
9024 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
9025 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
9027 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
9028 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
9029 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
9030 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
9031 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
9032 else
9033 PANGOFT2_CFLAGS=""
9034 PANGOFT2_LIBS=""
9035 ## If we have a custom action on failure, don't print errors, but
9036 ## do set a variable so people can do so.
9037 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
9038 echo $PANGOFT2_PKG_ERRORS
9043 else
9044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9049 if test $succeeded = yes; then
9051 else
9052 { { 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
9053 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;}
9054 { (exit 1); exit 1; }; }
9063 # FIXME: this should be _libs on some hosts.
9064 libsubdir=.libs
9066 # extra LD Flags which are required for targets
9067 case "${host}" in
9068 *-*-darwin[0-7].*)
9069 # For now we have to disable it on darwin[8-9] because it slows down
9070 # the linking phase. A possible bug in ld?
9071 # on Darwin -single_module speeds up loading of the dynamic libraries.
9072 extra_ldflags_libjava=-Wl,-single_module
9074 esac
9077 # Allow the GC to be disabled. Can be useful when debugging.
9078 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9079 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9080 # Check whether --enable-java-gc or --disable-java-gc was given.
9081 if test "${enable_java_gc+set}" = set; then
9082 enableval="$enable_java_gc"
9083 GC=$enableval
9084 else
9085 GC=boehm
9087 GCLIBS=
9088 GCINCS=
9089 GCDEPS=
9090 GCSPEC=
9091 JC1GCSPEC=
9092 GCTESTSPEC=
9093 case "$GC" in
9094 boehm)
9095 echo "$as_me:$LINENO: result: boehm" >&5
9096 echo "${ECHO_T}boehm" >&6
9097 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9098 JC1GCSPEC='-fuse-boehm-gc'
9099 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9100 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9101 GCOBJS=boehm.lo
9102 GCHDR=boehm-gc.h
9103 # The POSIX thread support needs to know this.
9105 cat >>confdefs.h <<\_ACEOF
9106 #define HAVE_BOEHM_GC 1
9107 _ACEOF
9111 echo "$as_me:$LINENO: result: none" >&5
9112 echo "${ECHO_T}none" >&6
9113 GCHDR=no-gc.h
9116 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9117 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9118 { (exit 1); exit 1; }; }
9120 esac
9127 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9131 if test "$GC" = boehm; then
9132 USING_BOEHMGC_TRUE=
9133 USING_BOEHMGC_FALSE='#'
9134 else
9135 USING_BOEHMGC_TRUE='#'
9136 USING_BOEHMGC_FALSE=
9141 if test "$GC" = no; then
9142 USING_NOGC_TRUE=
9143 USING_NOGC_FALSE='#'
9144 else
9145 USING_NOGC_TRUE='#'
9146 USING_NOGC_FALSE=
9151 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9152 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9153 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9154 echo "$as_me:$LINENO: result: $THREADS" >&5
9155 echo "${ECHO_T}$THREADS" >&6
9157 case "$THREADS" in
9158 no | none | single)
9159 THREADS=none
9161 posix | posix95 | pthreads)
9162 THREADS=posix
9163 case "$host" in
9164 *-*-linux*)
9166 cat >>confdefs.h <<\_ACEOF
9167 #define LINUX_THREADS 1
9168 _ACEOF
9171 esac
9173 win32)
9175 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9176 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9177 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9178 { (exit 1); exit 1; }; }
9181 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9182 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9183 { (exit 1); exit 1; }; }
9185 esac
9187 THREADCXXFLAGS=
9188 THREADLDFLAGS=
9189 THREADLIBS=
9190 THREADINCS=
9191 THREADDEPS=
9192 THREADH=
9193 THREADSPEC=
9194 case "$THREADS" in
9195 posix)
9196 case "$host" in
9197 *-*-cygwin*)
9198 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9200 *-*-freebsd[1234]*)
9201 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9202 # merely adds pthread_* functions) but it does have a -pthread switch
9203 # which is required at link-time to select -lc_r *instead* of -lc.
9204 THREADLDFLAGS=-pthread
9205 # Don't set THREADSPEC here as might be expected since -pthread is
9206 # not processed when found within a spec file, it must come from
9207 # the command line. For now, the user must provide the -pthread
9208 # switch to link code compiled with gcj. In future, consider adding
9209 # support for weak references to pthread_* functions ala gthr.h API.
9210 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9212 *-*-freebsd*)
9213 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9214 # systems which support threads and -lpthread.
9215 THREADLDFLAGS=-pthread
9216 THREADSPEC=-lpthread
9218 alpha*-dec-osf*)
9219 THREADCXXFLAGS=-pthread
9220 # boehm-gc needs some functions from librt, so link that too.
9221 THREADLIBS='-lpthread -lrt'
9222 THREADSPEC='-lpthread -lrt'
9225 THREADLIBS=-lpthread
9226 THREADSPEC=-lpthread
9228 esac
9229 THREADH=posix-threads.h
9230 # MIT pthreads doesn't seem to have the mutexattr functions.
9231 # But for now we don't check for it. We just assume you aren't
9232 # using MIT pthreads.
9234 cat >>confdefs.h <<\_ACEOF
9235 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9236 _ACEOF
9239 # If we're using the Boehm GC, then we happen to know that it
9240 # defines _REENTRANT, so we don't bother. Eww.
9241 if test "$GC" != boehm; then
9243 cat >>confdefs.h <<\_ACEOF
9244 #define _REENTRANT 1
9245 _ACEOF
9249 cat >>confdefs.h <<\_ACEOF
9250 #define _POSIX_PTHREAD_SEMANTICS 1
9251 _ACEOF
9255 win32)
9256 THREADH=win32-threads.h
9259 none)
9260 THREADH=no-threads.h
9262 esac
9263 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9273 if test "$THREADS" = posix; then
9274 USING_POSIX_THREADS_TRUE=
9275 USING_POSIX_THREADS_FALSE='#'
9276 else
9277 USING_POSIX_THREADS_TRUE='#'
9278 USING_POSIX_THREADS_FALSE=
9283 if test "$THREADS" = win32; then
9284 USING_WIN32_THREADS_TRUE=
9285 USING_WIN32_THREADS_FALSE='#'
9286 else
9287 USING_WIN32_THREADS_TRUE='#'
9288 USING_WIN32_THREADS_FALSE=
9293 if test "$THREADS" = none; then
9294 USING_NO_THREADS_TRUE=
9295 USING_NO_THREADS_FALSE='#'
9296 else
9297 USING_NO_THREADS_TRUE='#'
9298 USING_NO_THREADS_FALSE=
9302 if test -d sysdep; then true; else mkdir sysdep; fi
9303 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9305 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9307 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9310 HASH_SYNC_SPEC=
9311 # Hash synchronization is only useful with posix threads right now.
9312 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9313 HASH_SYNC_SPEC=-fhash-synchronization
9315 cat >>confdefs.h <<\_ACEOF
9316 #define JV_HASH_SYNCHRONIZATION 1
9317 _ACEOF
9324 if test "$GCC" = yes; then
9325 USING_GCC_TRUE=
9326 USING_GCC_FALSE='#'
9327 else
9328 USING_GCC_TRUE='#'
9329 USING_GCC_FALSE=
9333 # We're in the tree with gcc, and need to include some of its headers.
9334 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9336 if test "x${with_newlib}" = "xyes"; then
9337 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9338 # may not work correctly, because the compiler may not be able to
9339 # link executables.
9341 # We assume newlib. This lets us hard-code the functions we know
9342 # we'll have.
9344 cat >>confdefs.h <<\_ACEOF
9345 #define HAVE_MEMMOVE 1
9346 _ACEOF
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_MEMCPY 1
9351 _ACEOF
9354 cat >>confdefs.h <<\_ACEOF
9355 #define HAVE_STRERROR 1
9356 _ACEOF
9359 cat >>confdefs.h <<\_ACEOF
9360 #define HAVE_TIME 1
9361 _ACEOF
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_GMTIME_R 1
9366 _ACEOF
9369 cat >>confdefs.h <<\_ACEOF
9370 #define HAVE_LOCALTIME_R 1
9371 _ACEOF
9374 cat >>confdefs.h <<\_ACEOF
9375 #define HAVE_USLEEP_DECL 1
9376 _ACEOF
9378 # This is only for POSIX threads.
9380 cat >>confdefs.h <<\_ACEOF
9381 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9382 _ACEOF
9384 # We also assume we are using gcc, which provides alloca.
9385 cat >>confdefs.h <<\_ACEOF
9386 #define HAVE_ALLOCA 1
9387 _ACEOF
9390 # Assume we do not have getuid and friends.
9392 cat >>confdefs.h <<\_ACEOF
9393 #define NO_GETUID 1
9394 _ACEOF
9396 PLATFORMNET=NoNet
9397 else
9431 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9432 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9433 access stat mkdir rename rmdir unlink realpath utime chmod \
9434 nl_langinfo setlocale \
9435 inet_pton uname inet_ntoa \
9436 fork execvp pipe sigaction ftruncate mmap
9438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9439 echo "$as_me:$LINENO: checking for $ac_func" >&5
9440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9441 if eval "test \"\${$as_ac_var+set}\" = set"; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444 if test x$gcc_no_link = xyes; then
9445 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9446 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9447 { (exit 1); exit 1; }; }
9449 cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h. */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9457 #define $ac_func innocuous_$ac_func
9459 /* System header to define __stub macros and hopefully few prototypes,
9460 which can conflict with char $ac_func (); below.
9461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9462 <limits.h> exists even on freestanding compilers. */
9464 #ifdef __STDC__
9465 # include <limits.h>
9466 #else
9467 # include <assert.h>
9468 #endif
9470 #undef $ac_func
9472 /* Override any gcc2 internal prototype to avoid an error. */
9473 #ifdef __cplusplus
9474 extern "C"
9476 #endif
9477 /* We use char because int might match the return type of a gcc2
9478 builtin and then its argument prototype would still apply. */
9479 char $ac_func ();
9480 /* The GNU C library defines this for functions which it implements
9481 to always fail with ENOSYS. Some functions are actually named
9482 something starting with __ and the normal name is an alias. */
9483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9484 choke me
9485 #else
9486 char (*f) () = $ac_func;
9487 #endif
9488 #ifdef __cplusplus
9490 #endif
9493 main ()
9495 return f != $ac_func;
9497 return 0;
9499 _ACEOF
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502 (eval $ac_link) 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag"
9510 || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 eval "$as_ac_var=yes"
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 eval "$as_ac_var=no"
9529 rm -f conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9534 if test `eval echo '${'$as_ac_var'}'` = yes; then
9535 cat >>confdefs.h <<_ACEOF
9536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9537 _ACEOF
9540 done
9544 for ac_func in inet_aton inet_addr
9546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9547 echo "$as_me:$LINENO: checking for $ac_func" >&5
9548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9549 if eval "test \"\${$as_ac_var+set}\" = set"; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552 if test x$gcc_no_link = xyes; then
9553 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9554 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9555 { (exit 1); exit 1; }; }
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9565 #define $ac_func innocuous_$ac_func
9567 /* System header to define __stub macros and hopefully few prototypes,
9568 which can conflict with char $ac_func (); below.
9569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9570 <limits.h> exists even on freestanding compilers. */
9572 #ifdef __STDC__
9573 # include <limits.h>
9574 #else
9575 # include <assert.h>
9576 #endif
9578 #undef $ac_func
9580 /* Override any gcc2 internal prototype to avoid an error. */
9581 #ifdef __cplusplus
9582 extern "C"
9584 #endif
9585 /* We use char because int might match the return type of a gcc2
9586 builtin and then its argument prototype would still apply. */
9587 char $ac_func ();
9588 /* The GNU C library defines this for functions which it implements
9589 to always fail with ENOSYS. Some functions are actually named
9590 something starting with __ and the normal name is an alias. */
9591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9592 choke me
9593 #else
9594 char (*f) () = $ac_func;
9595 #endif
9596 #ifdef __cplusplus
9598 #endif
9601 main ()
9603 return f != $ac_func;
9605 return 0;
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9610 (eval $ac_link) 2>conftest.er1
9611 ac_status=$?
9612 grep -v '^ *+' conftest.er1 >conftest.err
9613 rm -f conftest.er1
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try='test -z "$ac_c_werror_flag"
9618 || test ! -s conftest.err'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 (eval $ac_try) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; } &&
9624 { ac_try='test -s conftest$ac_exeext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 eval "$as_ac_var=yes"
9631 else
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9635 eval "$as_ac_var=no"
9637 rm -f conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9642 if test `eval echo '${'$as_ac_var'}'` = yes; then
9643 cat >>confdefs.h <<_ACEOF
9644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9645 _ACEOF
9646 break
9648 done
9650 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9651 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9652 if test "${ac_cv_header_stdc+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 #include <stdlib.h>
9662 #include <stdarg.h>
9663 #include <string.h>
9664 #include <float.h>
9667 main ()
9671 return 0;
9673 _ACEOF
9674 rm -f conftest.$ac_objext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9676 (eval $ac_compile) 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_c_werror_flag"
9684 || test ! -s conftest.err'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest.$ac_objext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_header_stdc=yes
9697 else
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 ac_cv_header_stdc=no
9703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9705 if test $ac_cv_header_stdc = yes; then
9706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h. */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9713 #include <string.h>
9715 _ACEOF
9716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9717 $EGREP "memchr" >/dev/null 2>&1; then
9719 else
9720 ac_cv_header_stdc=no
9722 rm -f conftest*
9726 if test $ac_cv_header_stdc = yes; then
9727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h. */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 #include <stdlib.h>
9736 _ACEOF
9737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9738 $EGREP "free" >/dev/null 2>&1; then
9740 else
9741 ac_cv_header_stdc=no
9743 rm -f conftest*
9747 if test $ac_cv_header_stdc = yes; then
9748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9749 if test "$cross_compiling" = yes; then
9751 else
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 #include <ctype.h>
9759 #if ((' ' & 0x0FF) == 0x020)
9760 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9761 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9762 #else
9763 # define ISLOWER(c) \
9764 (('a' <= (c) && (c) <= 'i') \
9765 || ('j' <= (c) && (c) <= 'r') \
9766 || ('s' <= (c) && (c) <= 'z'))
9767 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9768 #endif
9770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9772 main ()
9774 int i;
9775 for (i = 0; i < 256; i++)
9776 if (XOR (islower (i), ISLOWER (i))
9777 || toupper (i) != TOUPPER (i))
9778 exit(2);
9779 exit (0);
9781 _ACEOF
9782 rm -f conftest$ac_exeext
9783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784 (eval $ac_link) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9794 else
9795 echo "$as_me: program exited with status $ac_status" >&5
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ( exit $ac_status )
9800 ac_cv_header_stdc=no
9802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9806 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9807 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9808 if test $ac_cv_header_stdc = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define STDC_HEADERS 1
9812 _ACEOF
9816 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9826 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9827 inttypes.h stdint.h unistd.h
9829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830 echo "$as_me:$LINENO: checking for $ac_header" >&5
9831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 $ac_includes_default
9843 #include <$ac_header>
9844 _ACEOF
9845 rm -f conftest.$ac_objext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9847 (eval $ac_compile) 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag"
9855 || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try='test -s conftest.$ac_objext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 eval "$as_ac_Header=yes"
9868 else
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 eval "$as_ac_Header=no"
9874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9879 cat >>confdefs.h <<_ACEOF
9880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9881 _ACEOF
9885 done
9891 for ac_header in execinfo.h unistd.h dlfcn.h
9893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9895 echo "$as_me:$LINENO: checking for $ac_header" >&5
9896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9902 else
9903 # Is the header compilable?
9904 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 $ac_includes_default
9913 #include <$ac_header>
9914 _ACEOF
9915 rm -f conftest.$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_header_compiler=yes
9938 else
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_header_compiler=no
9944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9946 echo "${ECHO_T}$ac_header_compiler" >&6
9948 # Is the header present?
9949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h. */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 #include <$ac_header>
9958 _ACEOF
9959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } >/dev/null; then
9967 if test -s conftest.err; then
9968 ac_cpp_err=$ac_c_preproc_warn_flag
9969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9970 else
9971 ac_cpp_err=
9973 else
9974 ac_cpp_err=yes
9976 if test -z "$ac_cpp_err"; then
9977 ac_header_preproc=yes
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 ac_header_preproc=no
9984 rm -f conftest.err conftest.$ac_ext
9985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9986 echo "${ECHO_T}$ac_header_preproc" >&6
9988 # So? What about this header?
9989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9990 yes:no: )
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9995 ac_header_preproc=yes
9997 no:yes:* )
9998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10011 cat <<\_ASBOX
10012 ## ---------------------------------- ##
10013 ## Report this to the libjava lists. ##
10014 ## ---------------------------------- ##
10015 _ASBOX
10017 sed "s/^/$as_me: WARNING: /" >&2
10019 esac
10020 echo "$as_me:$LINENO: checking for $ac_header" >&5
10021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025 eval "$as_ac_Header=\$ac_header_preproc"
10027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10032 cat >>confdefs.h <<_ACEOF
10033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10034 _ACEOF
10038 done
10040 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10041 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10042 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10043 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046 ac_check_lib_save_LIBS=$LIBS
10047 LIBS="-ldl $LIBS"
10048 if test x$gcc_no_link = xyes; then
10049 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10050 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10051 { (exit 1); exit 1; }; }
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h. */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 /* Override any gcc2 internal prototype to avoid an error. */
10061 #ifdef __cplusplus
10062 extern "C"
10063 #endif
10064 /* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10066 char dladdr ();
10068 main ()
10070 dladdr ();
10072 return 0;
10074 _ACEOF
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10077 (eval $ac_link) 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } &&
10084 { ac_try='test -z "$ac_c_werror_flag"
10085 || test ! -s conftest.err'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_cv_lib_dl_dladdr=yes
10098 else
10099 echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10102 ac_cv_lib_dl_dladdr=no
10104 rm -f conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10108 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10109 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10110 if test $ac_cv_lib_dl_dladdr = yes; then
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_DLADDR 1
10115 _ACEOF
10117 else
10119 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10120 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10121 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124 ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-ldld $LIBS"
10126 if test x$gcc_no_link = xyes; then
10127 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10129 { (exit 1); exit 1; }; }
10131 cat >conftest.$ac_ext <<_ACEOF
10132 /* confdefs.h. */
10133 _ACEOF
10134 cat confdefs.h >>conftest.$ac_ext
10135 cat >>conftest.$ac_ext <<_ACEOF
10136 /* end confdefs.h. */
10138 /* Override any gcc2 internal prototype to avoid an error. */
10139 #ifdef __cplusplus
10140 extern "C"
10141 #endif
10142 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10144 char dladdr ();
10146 main ()
10148 dladdr ();
10150 return 0;
10152 _ACEOF
10153 rm -f conftest.$ac_objext conftest$ac_exeext
10154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10155 (eval $ac_link) 2>conftest.er1
10156 ac_status=$?
10157 grep -v '^ *+' conftest.er1 >conftest.err
10158 rm -f conftest.er1
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag"
10163 || test ! -s conftest.err'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_lib_dld_dladdr=yes
10176 else
10177 echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 ac_cv_lib_dld_dladdr=no
10182 rm -f conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184 LIBS=$ac_check_lib_save_LIBS
10186 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10187 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10188 if test $ac_cv_lib_dld_dladdr = yes; then
10191 cat >>confdefs.h <<\_ACEOF
10192 #define HAVE_DLADDR 1
10193 _ACEOF
10200 if test x"$build" = x"$host"; then
10201 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10202 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10203 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 test "$cross_compiling" = yes &&
10207 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10208 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10209 { (exit 1); exit 1; }; }
10210 if test -r "/proc/self/exe"; then
10211 ac_cv_file__proc_self_exe=yes
10212 else
10213 ac_cv_file__proc_self_exe=no
10216 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10217 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10218 if test $ac_cv_file__proc_self_exe = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define HAVE__PROC_SELF_EXE 1
10222 _ACEOF
10226 cat >>confdefs.h <<\_ACEOF
10227 #define HAVE_PROC_SELF_EXE 1
10228 _ACEOF
10232 else
10233 case $host in
10234 *-linux*)
10236 cat >>confdefs.h <<\_ACEOF
10237 #define HAVE_PROC_SELF_EXE 1
10238 _ACEOF
10241 esac
10245 if test "X$prefix" = "XNONE"; then
10246 acl_final_prefix="$ac_default_prefix"
10247 else
10248 acl_final_prefix="$prefix"
10250 if test "X$exec_prefix" = "XNONE"; then
10251 acl_final_exec_prefix='${prefix}'
10252 else
10253 acl_final_exec_prefix="$exec_prefix"
10255 acl_save_prefix="$prefix"
10256 prefix="$acl_final_prefix"
10257 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10258 prefix="$acl_save_prefix"
10261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10262 if test "${with_gnu_ld+set}" = set; then
10263 withval="$with_gnu_ld"
10264 test "$withval" = no || with_gnu_ld=yes
10265 else
10266 with_gnu_ld=no
10268 # Prepare PATH_SEPARATOR.
10269 # The user is always right.
10270 if test "${PATH_SEPARATOR+set}" != set; then
10271 echo "#! /bin/sh" >conf$$.sh
10272 echo "exit 0" >>conf$$.sh
10273 chmod +x conf$$.sh
10274 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10275 PATH_SEPARATOR=';'
10276 else
10277 PATH_SEPARATOR=:
10279 rm -f conf$$.sh
10281 ac_prog=ld
10282 if test "$GCC" = yes; then
10283 # Check if gcc -print-prog-name=ld gives a path.
10284 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10285 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10286 case $host in
10287 *-*-mingw*)
10288 # gcc leaves a trailing carriage return which upsets mingw
10289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10292 esac
10293 case $ac_prog in
10294 # Accept absolute paths.
10295 [\\/]* | [A-Za-z]:[\\/]*)
10296 re_direlt='/[^/][^/]*/\.\./'
10297 # Canonicalize the path of ld
10298 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10299 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10300 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10301 done
10302 test -z "$LD" && LD="$ac_prog"
10305 # If it fails, then pretend we aren't using GCC.
10306 ac_prog=ld
10309 # If it is relative, then search for the first ld in PATH.
10310 with_gnu_ld=unknown
10312 esac
10313 elif test "$with_gnu_ld" = yes; then
10314 echo "$as_me:$LINENO: checking for GNU ld" >&5
10315 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10316 else
10317 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10318 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10320 if test "${acl_cv_path_LD+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323 if test -z "$LD"; then
10324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10325 for ac_dir in $PATH; do
10326 test -z "$ac_dir" && ac_dir=.
10327 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10328 acl_cv_path_LD="$ac_dir/$ac_prog"
10329 # Check to see if the program is GNU ld. I'd rather use --version,
10330 # but apparently some GNU ld's only accept -v.
10331 # Break only if it was the GNU/non-GNU ld that we prefer.
10332 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10333 test "$with_gnu_ld" != no && break
10334 else
10335 test "$with_gnu_ld" != yes && break
10338 done
10339 IFS="$ac_save_ifs"
10340 else
10341 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10345 LD="$acl_cv_path_LD"
10346 if test -n "$LD"; then
10347 echo "$as_me:$LINENO: result: $LD" >&5
10348 echo "${ECHO_T}$LD" >&6
10349 else
10350 echo "$as_me:$LINENO: result: no" >&5
10351 echo "${ECHO_T}no" >&6
10353 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10354 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10355 { (exit 1); exit 1; }; }
10356 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10357 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10358 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10362 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10363 acl_cv_prog_gnu_ld=yes
10364 else
10365 acl_cv_prog_gnu_ld=no
10368 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10369 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10370 with_gnu_ld=$acl_cv_prog_gnu_ld
10374 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10375 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10376 if test "${acl_cv_rpath+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10380 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10381 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10382 . ./conftest.sh
10383 rm -f ./conftest.sh
10384 acl_cv_rpath=done
10387 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10388 echo "${ECHO_T}$acl_cv_rpath" >&6
10389 wl="$acl_cv_wl"
10390 libext="$acl_cv_libext"
10391 shlibext="$acl_cv_shlibext"
10392 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10393 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10394 hardcode_direct="$acl_cv_hardcode_direct"
10395 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10396 # Check whether --enable-rpath or --disable-rpath was given.
10397 if test "${enable_rpath+set}" = set; then
10398 enableval="$enable_rpath"
10400 else
10401 enable_rpath=yes
10410 use_additional=yes
10412 acl_save_prefix="$prefix"
10413 prefix="$acl_final_prefix"
10414 acl_save_exec_prefix="$exec_prefix"
10415 exec_prefix="$acl_final_exec_prefix"
10417 eval additional_includedir=\"$includedir\"
10418 eval additional_libdir=\"$libdir\"
10420 exec_prefix="$acl_save_exec_prefix"
10421 prefix="$acl_save_prefix"
10424 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10425 if test "${with_libiconv_prefix+set}" = set; then
10426 withval="$with_libiconv_prefix"
10428 if test "X$withval" = "Xno"; then
10429 use_additional=no
10430 else
10431 if test "X$withval" = "X"; then
10433 acl_save_prefix="$prefix"
10434 prefix="$acl_final_prefix"
10435 acl_save_exec_prefix="$exec_prefix"
10436 exec_prefix="$acl_final_exec_prefix"
10438 eval additional_includedir=\"$includedir\"
10439 eval additional_libdir=\"$libdir\"
10441 exec_prefix="$acl_save_exec_prefix"
10442 prefix="$acl_save_prefix"
10444 else
10445 additional_includedir="$withval/include"
10446 additional_libdir="$withval/lib"
10451 LIBICONV=
10452 LTLIBICONV=
10453 INCICONV=
10454 rpathdirs=
10455 ltrpathdirs=
10456 names_already_handled=
10457 names_next_round='iconv '
10458 while test -n "$names_next_round"; do
10459 names_this_round="$names_next_round"
10460 names_next_round=
10461 for name in $names_this_round; do
10462 already_handled=
10463 for n in $names_already_handled; do
10464 if test "$n" = "$name"; then
10465 already_handled=yes
10466 break
10468 done
10469 if test -z "$already_handled"; then
10470 names_already_handled="$names_already_handled $name"
10471 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10472 eval value=\"\$HAVE_LIB$uppername\"
10473 if test -n "$value"; then
10474 if test "$value" = yes; then
10475 eval value=\"\$LIB$uppername\"
10476 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10477 eval value=\"\$LTLIB$uppername\"
10478 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10479 else
10482 else
10483 found_dir=
10484 found_la=
10485 found_so=
10486 found_a=
10487 if test $use_additional = yes; then
10488 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10489 found_dir="$additional_libdir"
10490 found_so="$additional_libdir/lib$name.$shlibext"
10491 if test -f "$additional_libdir/lib$name.la"; then
10492 found_la="$additional_libdir/lib$name.la"
10494 else
10495 if test -f "$additional_libdir/lib$name.$libext"; then
10496 found_dir="$additional_libdir"
10497 found_a="$additional_libdir/lib$name.$libext"
10498 if test -f "$additional_libdir/lib$name.la"; then
10499 found_la="$additional_libdir/lib$name.la"
10504 if test "X$found_dir" = "X"; then
10505 for x in $LDFLAGS $LTLIBICONV; do
10507 acl_save_prefix="$prefix"
10508 prefix="$acl_final_prefix"
10509 acl_save_exec_prefix="$exec_prefix"
10510 exec_prefix="$acl_final_exec_prefix"
10511 eval x=\"$x\"
10512 exec_prefix="$acl_save_exec_prefix"
10513 prefix="$acl_save_prefix"
10515 case "$x" in
10516 -L*)
10517 dir=`echo "X$x" | sed -e 's/^X-L//'`
10518 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10519 found_dir="$dir"
10520 found_so="$dir/lib$name.$shlibext"
10521 if test -f "$dir/lib$name.la"; then
10522 found_la="$dir/lib$name.la"
10524 else
10525 if test -f "$dir/lib$name.$libext"; then
10526 found_dir="$dir"
10527 found_a="$dir/lib$name.$libext"
10528 if test -f "$dir/lib$name.la"; then
10529 found_la="$dir/lib$name.la"
10534 esac
10535 if test "X$found_dir" != "X"; then
10536 break
10538 done
10540 if test "X$found_dir" != "X"; then
10541 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10542 if test "X$found_so" != "X"; then
10543 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10544 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10545 else
10546 haveit=
10547 for x in $ltrpathdirs; do
10548 if test "X$x" = "X$found_dir"; then
10549 haveit=yes
10550 break
10552 done
10553 if test -z "$haveit"; then
10554 ltrpathdirs="$ltrpathdirs $found_dir"
10556 if test "$hardcode_direct" = yes; then
10557 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10558 else
10559 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10560 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10561 haveit=
10562 for x in $rpathdirs; do
10563 if test "X$x" = "X$found_dir"; then
10564 haveit=yes
10565 break
10567 done
10568 if test -z "$haveit"; then
10569 rpathdirs="$rpathdirs $found_dir"
10571 else
10572 haveit=
10573 for x in $LDFLAGS $LIBICONV; do
10575 acl_save_prefix="$prefix"
10576 prefix="$acl_final_prefix"
10577 acl_save_exec_prefix="$exec_prefix"
10578 exec_prefix="$acl_final_exec_prefix"
10579 eval x=\"$x\"
10580 exec_prefix="$acl_save_exec_prefix"
10581 prefix="$acl_save_prefix"
10583 if test "X$x" = "X-L$found_dir"; then
10584 haveit=yes
10585 break
10587 done
10588 if test -z "$haveit"; then
10589 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10591 if test "$hardcode_minus_L" != no; then
10592 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10593 else
10594 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10599 else
10600 if test "X$found_a" != "X"; then
10601 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10602 else
10603 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10606 additional_includedir=
10607 case "$found_dir" in
10608 */lib | */lib/)
10609 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10610 additional_includedir="$basedir/include"
10612 esac
10613 if test "X$additional_includedir" != "X"; then
10614 if test "X$additional_includedir" != "X/usr/include"; then
10615 haveit=
10616 if test "X$additional_includedir" = "X/usr/local/include"; then
10617 if test -n "$GCC"; then
10618 case $host_os in
10619 linux*) haveit=yes;;
10620 esac
10623 if test -z "$haveit"; then
10624 for x in $CPPFLAGS $INCICONV; do
10626 acl_save_prefix="$prefix"
10627 prefix="$acl_final_prefix"
10628 acl_save_exec_prefix="$exec_prefix"
10629 exec_prefix="$acl_final_exec_prefix"
10630 eval x=\"$x\"
10631 exec_prefix="$acl_save_exec_prefix"
10632 prefix="$acl_save_prefix"
10634 if test "X$x" = "X-I$additional_includedir"; then
10635 haveit=yes
10636 break
10638 done
10639 if test -z "$haveit"; then
10640 if test -d "$additional_includedir"; then
10641 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10647 if test -n "$found_la"; then
10648 save_libdir="$libdir"
10649 case "$found_la" in
10650 */* | *\\*) . "$found_la" ;;
10651 *) . "./$found_la" ;;
10652 esac
10653 libdir="$save_libdir"
10654 for dep in $dependency_libs; do
10655 case "$dep" in
10656 -L*)
10657 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10658 if test "X$additional_libdir" != "X/usr/lib"; then
10659 haveit=
10660 if test "X$additional_libdir" = "X/usr/local/lib"; then
10661 if test -n "$GCC"; then
10662 case $host_os in
10663 linux*) haveit=yes;;
10664 esac
10667 if test -z "$haveit"; then
10668 haveit=
10669 for x in $LDFLAGS $LIBICONV; do
10671 acl_save_prefix="$prefix"
10672 prefix="$acl_final_prefix"
10673 acl_save_exec_prefix="$exec_prefix"
10674 exec_prefix="$acl_final_exec_prefix"
10675 eval x=\"$x\"
10676 exec_prefix="$acl_save_exec_prefix"
10677 prefix="$acl_save_prefix"
10679 if test "X$x" = "X-L$additional_libdir"; then
10680 haveit=yes
10681 break
10683 done
10684 if test -z "$haveit"; then
10685 if test -d "$additional_libdir"; then
10686 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10689 haveit=
10690 for x in $LDFLAGS $LTLIBICONV; do
10692 acl_save_prefix="$prefix"
10693 prefix="$acl_final_prefix"
10694 acl_save_exec_prefix="$exec_prefix"
10695 exec_prefix="$acl_final_exec_prefix"
10696 eval x=\"$x\"
10697 exec_prefix="$acl_save_exec_prefix"
10698 prefix="$acl_save_prefix"
10700 if test "X$x" = "X-L$additional_libdir"; then
10701 haveit=yes
10702 break
10704 done
10705 if test -z "$haveit"; then
10706 if test -d "$additional_libdir"; then
10707 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10713 -R*)
10714 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10715 if test "$enable_rpath" != no; then
10716 haveit=
10717 for x in $rpathdirs; do
10718 if test "X$x" = "X$dir"; then
10719 haveit=yes
10720 break
10722 done
10723 if test -z "$haveit"; then
10724 rpathdirs="$rpathdirs $dir"
10726 haveit=
10727 for x in $ltrpathdirs; do
10728 if test "X$x" = "X$dir"; then
10729 haveit=yes
10730 break
10732 done
10733 if test -z "$haveit"; then
10734 ltrpathdirs="$ltrpathdirs $dir"
10738 -l*)
10739 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10741 *.la)
10742 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10745 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10746 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10748 esac
10749 done
10751 else
10752 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10753 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10757 done
10758 done
10759 if test "X$rpathdirs" != "X"; then
10760 if test -n "$hardcode_libdir_separator"; then
10761 alldirs=
10762 for found_dir in $rpathdirs; do
10763 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10764 done
10765 acl_save_libdir="$libdir"
10766 libdir="$alldirs"
10767 eval flag=\"$hardcode_libdir_flag_spec\"
10768 libdir="$acl_save_libdir"
10769 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10770 else
10771 for found_dir in $rpathdirs; do
10772 acl_save_libdir="$libdir"
10773 libdir="$found_dir"
10774 eval flag=\"$hardcode_libdir_flag_spec\"
10775 libdir="$acl_save_libdir"
10776 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10777 done
10780 if test "X$ltrpathdirs" != "X"; then
10781 for found_dir in $ltrpathdirs; do
10782 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10783 done
10792 am_save_CPPFLAGS="$CPPFLAGS"
10794 for element in $INCICONV; do
10795 haveit=
10796 for x in $CPPFLAGS; do
10798 acl_save_prefix="$prefix"
10799 prefix="$acl_final_prefix"
10800 acl_save_exec_prefix="$exec_prefix"
10801 exec_prefix="$acl_final_exec_prefix"
10802 eval x=\"$x\"
10803 exec_prefix="$acl_save_exec_prefix"
10804 prefix="$acl_save_prefix"
10806 if test "X$x" = "X$element"; then
10807 haveit=yes
10808 break
10810 done
10811 if test -z "$haveit"; then
10812 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10814 done
10817 echo "$as_me:$LINENO: checking for iconv" >&5
10818 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10819 if test "${am_cv_func_iconv+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10823 am_cv_func_iconv="no, consider installing GNU libiconv"
10824 am_cv_lib_iconv=no
10825 if test x$gcc_no_link = xyes; then
10826 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10827 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10828 { (exit 1); exit 1; }; }
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 #include <stdlib.h>
10837 #include <iconv.h>
10839 main ()
10841 iconv_t cd = iconv_open("","");
10842 iconv(cd,NULL,NULL,NULL,NULL);
10843 iconv_close(cd);
10845 return 0;
10847 _ACEOF
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850 (eval $ac_link) 2>conftest.er1
10851 ac_status=$?
10852 grep -v '^ *+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -z "$ac_c_werror_flag"
10858 || test ! -s conftest.err'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest$ac_exeext'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 am_cv_func_iconv=yes
10871 else
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10876 rm -f conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878 if test "$am_cv_func_iconv" != yes; then
10879 am_save_LIBS="$LIBS"
10880 LIBS="$LIBS $LIBICONV"
10881 if test x$gcc_no_link = xyes; then
10882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10884 { (exit 1); exit 1; }; }
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 #include <stdlib.h>
10893 #include <iconv.h>
10895 main ()
10897 iconv_t cd = iconv_open("","");
10898 iconv(cd,NULL,NULL,NULL,NULL);
10899 iconv_close(cd);
10901 return 0;
10903 _ACEOF
10904 rm -f conftest.$ac_objext conftest$ac_exeext
10905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10906 (eval $ac_link) 2>conftest.er1
10907 ac_status=$?
10908 grep -v '^ *+' conftest.er1 >conftest.err
10909 rm -f conftest.er1
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -z "$ac_c_werror_flag"
10914 || test ! -s conftest.err'
10915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916 (eval $ac_try) 2>&5
10917 ac_status=$?
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; } &&
10920 { ac_try='test -s conftest$ac_exeext'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10926 am_cv_lib_iconv=yes
10927 am_cv_func_iconv=yes
10928 else
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10933 rm -f conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
10935 LIBS="$am_save_LIBS"
10939 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10940 echo "${ECHO_T}$am_cv_func_iconv" >&6
10941 if test "$am_cv_func_iconv" = yes; then
10943 cat >>confdefs.h <<\_ACEOF
10944 #define HAVE_ICONV 1
10945 _ACEOF
10948 if test "$am_cv_lib_iconv" = yes; then
10949 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10950 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10951 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10952 echo "${ECHO_T}$LIBICONV" >&6
10953 else
10954 CPPFLAGS="$am_save_CPPFLAGS"
10955 LIBICONV=
10956 LTLIBICONV=
10961 if test "$am_cv_func_iconv" = yes; then
10962 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10963 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10964 if test "${am_cv_proto_iconv+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10968 cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h. */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10975 #include <stdlib.h>
10976 #include <iconv.h>
10977 extern
10978 #ifdef __cplusplus
10980 #endif
10981 #if defined(__STDC__) || defined(__cplusplus)
10982 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10983 #else
10984 size_t iconv();
10985 #endif
10988 main ()
10992 return 0;
10994 _ACEOF
10995 rm -f conftest.$ac_objext
10996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10997 (eval $ac_compile) 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } &&
11004 { ac_try='test -z "$ac_c_werror_flag"
11005 || test ! -s conftest.err'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; } &&
11011 { ac_try='test -s conftest.$ac_objext'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; }; then
11017 am_cv_proto_iconv_arg1=""
11018 else
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11022 am_cv_proto_iconv_arg1="const"
11024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11025 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);"
11028 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11029 echo "$as_me:$LINENO: result: ${ac_t:-
11030 }$am_cv_proto_iconv" >&5
11031 echo "${ECHO_T}${ac_t:-
11032 }$am_cv_proto_iconv" >&6
11034 cat >>confdefs.h <<_ACEOF
11035 #define ICONV_CONST $am_cv_proto_iconv_arg1
11036 _ACEOF
11041 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11042 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11043 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046 if test x$gcc_no_link = xyes; then
11047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11049 { (exit 1); exit 1; }; }
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <locale.h>
11059 main ()
11061 return LC_MESSAGES
11063 return 0;
11065 _ACEOF
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068 (eval $ac_link) 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -z "$ac_c_werror_flag"
11076 || test ! -s conftest.err'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try='test -s conftest$ac_exeext'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 am_cv_val_LC_MESSAGES=yes
11089 else
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11093 am_cv_val_LC_MESSAGES=no
11095 rm -f conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11098 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11099 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11100 if test $am_cv_val_LC_MESSAGES = yes; then
11102 cat >>confdefs.h <<\_ACEOF
11103 #define HAVE_LC_MESSAGES 1
11104 _ACEOF
11108 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11109 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11110 if test "${ac_cv_struct_tm+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h. */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 #include <sys/types.h>
11120 #include <time.h>
11123 main ()
11125 struct tm *tp; tp->tm_sec;
11127 return 0;
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11132 (eval $ac_compile) 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -z "$ac_c_werror_flag"
11140 || test ! -s conftest.err'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; } &&
11146 { ac_try='test -s conftest.$ac_objext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_struct_tm=time.h
11153 else
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_cv_struct_tm=sys/time.h
11159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11161 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11162 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11163 if test $ac_cv_struct_tm = sys/time.h; then
11165 cat >>confdefs.h <<\_ACEOF
11166 #define TM_IN_SYS_TIME 1
11167 _ACEOF
11171 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11172 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11173 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h. */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 #include <sys/types.h>
11183 #include <$ac_cv_struct_tm>
11187 main ()
11189 static struct tm ac_aggr;
11190 if (ac_aggr.tm_zone)
11191 return 0;
11193 return 0;
11195 _ACEOF
11196 rm -f conftest.$ac_objext
11197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11198 (eval $ac_compile) 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag"
11206 || test ! -s conftest.err'
11207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208 (eval $ac_try) 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; } &&
11212 { ac_try='test -s conftest.$ac_objext'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }; then
11218 ac_cv_member_struct_tm_tm_zone=yes
11219 else
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11223 cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h. */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 #include <sys/types.h>
11230 #include <$ac_cv_struct_tm>
11234 main ()
11236 static struct tm ac_aggr;
11237 if (sizeof ac_aggr.tm_zone)
11238 return 0;
11240 return 0;
11242 _ACEOF
11243 rm -f conftest.$ac_objext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245 (eval $ac_compile) 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -z "$ac_c_werror_flag"
11253 || test ! -s conftest.err'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; } &&
11259 { ac_try='test -s conftest.$ac_objext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 ac_cv_member_struct_tm_tm_zone=yes
11266 else
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 ac_cv_member_struct_tm_tm_zone=no
11272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11276 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11277 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11278 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define HAVE_STRUCT_TM_TM_ZONE 1
11282 _ACEOF
11287 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11289 cat >>confdefs.h <<\_ACEOF
11290 #define HAVE_TM_ZONE 1
11291 _ACEOF
11293 else
11294 echo "$as_me:$LINENO: checking for tzname" >&5
11295 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11296 if test "${ac_cv_var_tzname+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299 if test x$gcc_no_link = xyes; then
11300 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11301 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11302 { (exit 1); exit 1; }; }
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h. */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <time.h>
11311 #ifndef tzname /* For SGI. */
11312 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11313 #endif
11316 main ()
11318 atoi(*tzname);
11320 return 0;
11322 _ACEOF
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11325 (eval $ac_link) 2>conftest.er1
11326 ac_status=$?
11327 grep -v '^ *+' conftest.er1 >conftest.err
11328 rm -f conftest.er1
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } &&
11332 { ac_try='test -z "$ac_c_werror_flag"
11333 || test ! -s conftest.err'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; } &&
11339 { ac_try='test -s conftest$ac_exeext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_cv_var_tzname=yes
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_cv_var_tzname=no
11352 rm -f conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11355 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11356 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11357 if test $ac_cv_var_tzname = yes; then
11359 cat >>confdefs.h <<\_ACEOF
11360 #define HAVE_TZNAME 1
11361 _ACEOF
11369 for ac_func in gethostbyname_r
11371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11372 echo "$as_me:$LINENO: checking for $ac_func" >&5
11373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11374 if eval "test \"\${$as_ac_var+set}\" = set"; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377 if test x$gcc_no_link = xyes; then
11378 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11380 { (exit 1); exit 1; }; }
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11390 #define $ac_func innocuous_$ac_func
11392 /* System header to define __stub macros and hopefully few prototypes,
11393 which can conflict with char $ac_func (); below.
11394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11395 <limits.h> exists even on freestanding compilers. */
11397 #ifdef __STDC__
11398 # include <limits.h>
11399 #else
11400 # include <assert.h>
11401 #endif
11403 #undef $ac_func
11405 /* Override any gcc2 internal prototype to avoid an error. */
11406 #ifdef __cplusplus
11407 extern "C"
11409 #endif
11410 /* We use char because int might match the return type of a gcc2
11411 builtin and then its argument prototype would still apply. */
11412 char $ac_func ();
11413 /* The GNU C library defines this for functions which it implements
11414 to always fail with ENOSYS. Some functions are actually named
11415 something starting with __ and the normal name is an alias. */
11416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11417 choke me
11418 #else
11419 char (*f) () = $ac_func;
11420 #endif
11421 #ifdef __cplusplus
11423 #endif
11426 main ()
11428 return f != $ac_func;
11430 return 0;
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435 (eval $ac_link) 2>conftest.er1
11436 ac_status=$?
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag"
11443 || test ! -s conftest.err'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest$ac_exeext'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 eval "$as_ac_var=yes"
11456 else
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 eval "$as_ac_var=no"
11462 rm -f conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11467 if test `eval echo '${'$as_ac_var'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11470 _ACEOF
11473 cat >>confdefs.h <<\_ACEOF
11474 #define HAVE_GETHOSTBYNAME_R 1
11475 _ACEOF
11477 # There are two different kinds of gethostbyname_r.
11478 # We look for the one that returns `int'.
11479 # Hopefully this check is robust enough.
11480 cat >conftest.$ac_ext <<_ACEOF
11481 /* confdefs.h. */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11486 #include <netdb.h>
11488 _ACEOF
11489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11490 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11493 cat >>confdefs.h <<\_ACEOF
11494 #define GETHOSTBYNAME_R_RETURNS_INT 1
11495 _ACEOF
11498 rm -f conftest*
11501 case " $GCINCS " in
11502 *" -D_REENTRANT "*) ;;
11504 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11505 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11506 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509 ac_ext=cc
11510 ac_cpp='$CXXCPP $CPPFLAGS'
11511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 #include <netdb.h>
11523 main ()
11525 gethostbyname_r("", 0, 0);
11527 return 0;
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532 (eval $ac_compile) 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -z "$ac_cxx_werror_flag"
11540 || test ! -s conftest.err'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; } &&
11546 { ac_try='test -s conftest.$ac_objext'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 libjava_cv_gethostbyname_r_needs_reentrant=no
11553 else
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 CPPFLAGS_SAVE="$CPPFLAGS"
11558 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h. */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include <netdb.h>
11567 main ()
11569 gethostbyname_r("", 0, 0);
11571 return 0;
11573 _ACEOF
11574 rm -f conftest.$ac_objext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576 (eval $ac_compile) 2>conftest.er1
11577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -z "$ac_cxx_werror_flag"
11584 || test ! -s conftest.err'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest.$ac_objext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 libjava_cv_gethostbyname_r_needs_reentrant=yes
11597 else
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 libjava_cv_gethostbyname_r_needs_reentrant=fail
11603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11604 CPPFLAGS="$CPPFLAGS_SAVE"
11607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11608 ac_ext=c
11609 ac_cpp='$CPP $CPPFLAGS'
11610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11616 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11617 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11618 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11620 cat >>confdefs.h <<\_ACEOF
11621 #define _REENTRANT 1
11622 _ACEOF
11626 esac
11628 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11629 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11630 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h. */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11640 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11641 # define _REENTRANT 1
11642 #endif
11643 #include <netdb.h>
11645 main ()
11647 struct hostent_data data;
11649 return 0;
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11654 (eval $ac_compile) 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -z "$ac_c_werror_flag"
11662 || test ! -s conftest.err'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; } &&
11668 { ac_try='test -s conftest.$ac_objext'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674 libjava_cv_struct_hostent_data=yes
11675 else
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 libjava_cv_struct_hostent_data=no
11681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11683 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11684 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11685 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_STRUCT_HOSTENT_DATA 1
11689 _ACEOF
11694 done
11697 # FIXME: libjava source code expects to find a prototype for
11698 # gethostbyaddr_r in netdb.h. The outer check ensures that
11699 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11700 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11701 # linkage check is enough, yet C++ code requires proper prototypes.)
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h. */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 #include <netdb.h>
11710 _ACEOF
11711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11712 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11715 for ac_func in gethostbyaddr_r
11717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718 echo "$as_me:$LINENO: checking for $ac_func" >&5
11719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11720 if eval "test \"\${$as_ac_var+set}\" = set"; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723 if test x$gcc_no_link = xyes; then
11724 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11726 { (exit 1); exit 1; }; }
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11736 #define $ac_func innocuous_$ac_func
11738 /* System header to define __stub macros and hopefully few prototypes,
11739 which can conflict with char $ac_func (); below.
11740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11741 <limits.h> exists even on freestanding compilers. */
11743 #ifdef __STDC__
11744 # include <limits.h>
11745 #else
11746 # include <assert.h>
11747 #endif
11749 #undef $ac_func
11751 /* Override any gcc2 internal prototype to avoid an error. */
11752 #ifdef __cplusplus
11753 extern "C"
11755 #endif
11756 /* We use char because int might match the return type of a gcc2
11757 builtin and then its argument prototype would still apply. */
11758 char $ac_func ();
11759 /* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
11762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11763 choke me
11764 #else
11765 char (*f) () = $ac_func;
11766 #endif
11767 #ifdef __cplusplus
11769 #endif
11772 main ()
11774 return f != $ac_func;
11776 return 0;
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 eval "$as_ac_var=yes"
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 eval "$as_ac_var=no"
11808 rm -f conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11813 if test `eval echo '${'$as_ac_var'}'` = yes; then
11814 cat >>confdefs.h <<_ACEOF
11815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11816 _ACEOF
11819 cat >>confdefs.h <<\_ACEOF
11820 #define HAVE_GETHOSTBYADDR_R 1
11821 _ACEOF
11823 # There are two different kinds of gethostbyaddr_r.
11824 # We look for the one that returns `int'.
11825 # Hopefully this check is robust enough.
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h. */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 #include <netdb.h>
11834 _ACEOF
11835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11836 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11839 cat >>confdefs.h <<\_ACEOF
11840 #define GETHOSTBYADDR_R_RETURNS_INT 1
11841 _ACEOF
11844 rm -f conftest*
11847 done
11850 rm -f conftest*
11854 for ac_func in gethostname
11856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11857 echo "$as_me:$LINENO: checking for $ac_func" >&5
11858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11859 if eval "test \"\${$as_ac_var+set}\" = set"; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862 if test x$gcc_no_link = xyes; then
11863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11865 { (exit 1); exit 1; }; }
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11875 #define $ac_func innocuous_$ac_func
11877 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char $ac_func (); below.
11879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880 <limits.h> exists even on freestanding compilers. */
11882 #ifdef __STDC__
11883 # include <limits.h>
11884 #else
11885 # include <assert.h>
11886 #endif
11888 #undef $ac_func
11890 /* Override any gcc2 internal prototype to avoid an error. */
11891 #ifdef __cplusplus
11892 extern "C"
11894 #endif
11895 /* We use char because int might match the return type of a gcc2
11896 builtin and then its argument prototype would still apply. */
11897 char $ac_func ();
11898 /* The GNU C library defines this for functions which it implements
11899 to always fail with ENOSYS. Some functions are actually named
11900 something starting with __ and the normal name is an alias. */
11901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11902 choke me
11903 #else
11904 char (*f) () = $ac_func;
11905 #endif
11906 #ifdef __cplusplus
11908 #endif
11911 main ()
11913 return f != $ac_func;
11915 return 0;
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag"
11928 || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest$ac_exeext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 eval "$as_ac_var=yes"
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 eval "$as_ac_var=no"
11947 rm -f conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 _ACEOF
11958 cat >>confdefs.h <<\_ACEOF
11959 #define HAVE_GETHOSTNAME 1
11960 _ACEOF
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 #include <unistd.h>
11970 _ACEOF
11971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11972 $EGREP "gethostname" >/dev/null 2>&1; then
11975 cat >>confdefs.h <<\_ACEOF
11976 #define HAVE_GETHOSTNAME_DECL 1
11977 _ACEOF
11980 rm -f conftest*
11983 done
11987 for ac_func in usleep
11989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11990 echo "$as_me:$LINENO: checking for $ac_func" >&5
11991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11992 if eval "test \"\${$as_ac_var+set}\" = set"; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995 if test x$gcc_no_link = xyes; then
11996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11998 { (exit 1); exit 1; }; }
12000 cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h. */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12008 #define $ac_func innocuous_$ac_func
12010 /* System header to define __stub macros and hopefully few prototypes,
12011 which can conflict with char $ac_func (); below.
12012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12013 <limits.h> exists even on freestanding compilers. */
12015 #ifdef __STDC__
12016 # include <limits.h>
12017 #else
12018 # include <assert.h>
12019 #endif
12021 #undef $ac_func
12023 /* Override any gcc2 internal prototype to avoid an error. */
12024 #ifdef __cplusplus
12025 extern "C"
12027 #endif
12028 /* We use char because int might match the return type of a gcc2
12029 builtin and then its argument prototype would still apply. */
12030 char $ac_func ();
12031 /* The GNU C library defines this for functions which it implements
12032 to always fail with ENOSYS. Some functions are actually named
12033 something starting with __ and the normal name is an alias. */
12034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12035 choke me
12036 #else
12037 char (*f) () = $ac_func;
12038 #endif
12039 #ifdef __cplusplus
12041 #endif
12044 main ()
12046 return f != $ac_func;
12048 return 0;
12050 _ACEOF
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053 (eval $ac_link) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest$ac_exeext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 eval "$as_ac_var=yes"
12074 else
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 eval "$as_ac_var=no"
12080 rm -f conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12085 if test `eval echo '${'$as_ac_var'}'` = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12088 _ACEOF
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h. */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096 #include <unistd.h>
12098 _ACEOF
12099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12100 $EGREP "usleep" >/dev/null 2>&1; then
12103 cat >>confdefs.h <<\_ACEOF
12104 #define HAVE_USLEEP_DECL 1
12105 _ACEOF
12108 rm -f conftest*
12111 done
12114 # Look for these functions in the thread library, but only bother
12115 # if using POSIX threads.
12116 if test "$THREADS" = posix; then
12117 save_LIBS="$LIBS"
12118 LIBS="$LIBS $THREADLIBS"
12119 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12120 # E.g., Solaris.
12123 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12126 echo "$as_me:$LINENO: checking for $ac_func" >&5
12127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12128 if eval "test \"\${$as_ac_var+set}\" = set"; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131 if test x$gcc_no_link = xyes; then
12132 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12133 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12134 { (exit 1); exit 1; }; }
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12144 #define $ac_func innocuous_$ac_func
12146 /* System header to define __stub macros and hopefully few prototypes,
12147 which can conflict with char $ac_func (); below.
12148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12149 <limits.h> exists even on freestanding compilers. */
12151 #ifdef __STDC__
12152 # include <limits.h>
12153 #else
12154 # include <assert.h>
12155 #endif
12157 #undef $ac_func
12159 /* Override any gcc2 internal prototype to avoid an error. */
12160 #ifdef __cplusplus
12161 extern "C"
12163 #endif
12164 /* We use char because int might match the return type of a gcc2
12165 builtin and then its argument prototype would still apply. */
12166 char $ac_func ();
12167 /* The GNU C library defines this for functions which it implements
12168 to always fail with ENOSYS. Some functions are actually named
12169 something starting with __ and the normal name is an alias. */
12170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12171 choke me
12172 #else
12173 char (*f) () = $ac_func;
12174 #endif
12175 #ifdef __cplusplus
12177 #endif
12180 main ()
12182 return f != $ac_func;
12184 return 0;
12186 _ACEOF
12187 rm -f conftest.$ac_objext conftest$ac_exeext
12188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12189 (eval $ac_link) 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -z "$ac_c_werror_flag"
12197 || test ! -s conftest.err'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 eval "$as_ac_var=yes"
12210 else
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 eval "$as_ac_var=no"
12216 rm -f conftest.err conftest.$ac_objext \
12217 conftest$ac_exeext conftest.$ac_ext
12219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12221 if test `eval echo '${'$as_ac_var'}'` = yes; then
12222 cat >>confdefs.h <<_ACEOF
12223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12224 _ACEOF
12227 done
12230 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12231 # Solaris 7 the name librt is preferred.
12233 for ac_func in sched_yield
12235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12236 echo "$as_me:$LINENO: checking for $ac_func" >&5
12237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12238 if eval "test \"\${$as_ac_var+set}\" = set"; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 if test x$gcc_no_link = xyes; then
12242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12244 { (exit 1); exit 1; }; }
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12254 #define $ac_func innocuous_$ac_func
12256 /* System header to define __stub macros and hopefully few prototypes,
12257 which can conflict with char $ac_func (); below.
12258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12259 <limits.h> exists even on freestanding compilers. */
12261 #ifdef __STDC__
12262 # include <limits.h>
12263 #else
12264 # include <assert.h>
12265 #endif
12267 #undef $ac_func
12269 /* Override any gcc2 internal prototype to avoid an error. */
12270 #ifdef __cplusplus
12271 extern "C"
12273 #endif
12274 /* We use char because int might match the return type of a gcc2
12275 builtin and then its argument prototype would still apply. */
12276 char $ac_func ();
12277 /* The GNU C library defines this for functions which it implements
12278 to always fail with ENOSYS. Some functions are actually named
12279 something starting with __ and the normal name is an alias. */
12280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12281 choke me
12282 #else
12283 char (*f) () = $ac_func;
12284 #endif
12285 #ifdef __cplusplus
12287 #endif
12290 main ()
12292 return f != $ac_func;
12294 return 0;
12296 _ACEOF
12297 rm -f conftest.$ac_objext conftest$ac_exeext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 eval "$as_ac_var=yes"
12320 else
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 eval "$as_ac_var=no"
12326 rm -f conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12331 if test `eval echo '${'$as_ac_var'}'` = yes; then
12332 cat >>confdefs.h <<_ACEOF
12333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12334 _ACEOF
12336 else
12338 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12339 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12340 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343 ac_check_lib_save_LIBS=$LIBS
12344 LIBS="-lrt $LIBS"
12345 if test x$gcc_no_link = xyes; then
12346 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12347 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12348 { (exit 1); exit 1; }; }
12350 cat >conftest.$ac_ext <<_ACEOF
12351 /* confdefs.h. */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12357 /* Override any gcc2 internal prototype to avoid an error. */
12358 #ifdef __cplusplus
12359 extern "C"
12360 #endif
12361 /* We use char because int might match the return type of a gcc2
12362 builtin and then its argument prototype would still apply. */
12363 char sched_yield ();
12365 main ()
12367 sched_yield ();
12369 return 0;
12371 _ACEOF
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374 (eval $ac_link) 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_c_werror_flag"
12382 || test ! -s conftest.err'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; } &&
12388 { ac_try='test -s conftest$ac_exeext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 ac_cv_lib_rt_sched_yield=yes
12395 else
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 ac_cv_lib_rt_sched_yield=no
12401 rm -f conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12403 LIBS=$ac_check_lib_save_LIBS
12405 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12406 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12407 if test $ac_cv_lib_rt_sched_yield = yes; then
12409 cat >>confdefs.h <<\_ACEOF
12410 #define HAVE_SCHED_YIELD 1
12411 _ACEOF
12413 THREADLIBS="$THREADLIBS -lrt"
12414 THREADSPEC="$THREADSPEC -lrt"
12415 else
12417 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12418 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12419 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422 ac_check_lib_save_LIBS=$LIBS
12423 LIBS="-lposix4 $LIBS"
12424 if test x$gcc_no_link = xyes; then
12425 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12426 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12427 { (exit 1); exit 1; }; }
12429 cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h. */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12436 /* Override any gcc2 internal prototype to avoid an error. */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 /* We use char because int might match the return type of a gcc2
12441 builtin and then its argument prototype would still apply. */
12442 char sched_yield ();
12444 main ()
12446 sched_yield ();
12448 return 0;
12450 _ACEOF
12451 rm -f conftest.$ac_objext conftest$ac_exeext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_c_werror_flag"
12461 || test ! -s conftest.err'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest$ac_exeext'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_lib_posix4_sched_yield=yes
12474 else
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12478 ac_cv_lib_posix4_sched_yield=no
12480 rm -f conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12484 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12485 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12486 if test $ac_cv_lib_posix4_sched_yield = yes; then
12488 cat >>confdefs.h <<\_ACEOF
12489 #define HAVE_SCHED_YIELD 1
12490 _ACEOF
12492 THREADLIBS="$THREADLIBS -lposix4"
12493 THREADSPEC="$THREADSPEC -lposix4"
12499 done
12502 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12503 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12504 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507 ac_check_lib_save_LIBS=$LIBS
12508 LIBS="-lrt $LIBS"
12509 if test x$gcc_no_link = xyes; then
12510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12512 { (exit 1); exit 1; }; }
12514 cat >conftest.$ac_ext <<_ACEOF
12515 /* confdefs.h. */
12516 _ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12521 /* Override any gcc2 internal prototype to avoid an error. */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 /* We use char because int might match the return type of a gcc2
12526 builtin and then its argument prototype would still apply. */
12527 char clock_gettime ();
12529 main ()
12531 clock_gettime ();
12533 return 0;
12535 _ACEOF
12536 rm -f conftest.$ac_objext conftest$ac_exeext
12537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12538 (eval $ac_link) 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
12545 { ac_try='test -z "$ac_c_werror_flag"
12546 || test ! -s conftest.err'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest$ac_exeext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_lib_rt_clock_gettime=yes
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_cv_lib_rt_clock_gettime=no
12565 rm -f conftest.err conftest.$ac_objext \
12566 conftest$ac_exeext conftest.$ac_ext
12567 LIBS=$ac_check_lib_save_LIBS
12569 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12570 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12571 if test $ac_cv_lib_rt_clock_gettime = yes; then
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_CLOCK_GETTIME 1
12576 _ACEOF
12578 case "$THREADSPEC" in
12579 *-lrt*) ;;
12581 THREADSPEC="$THREADSPEC -lrt"
12582 THREADLIBS="$THREADLIBS -lrt"
12584 esac
12588 LIBS="$save_LIBS"
12590 # We can save a little space at runtime if the mutex has m_count
12591 # or __m_count. This is a nice hack for Linux.
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h. */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 #include <pthread.h>
12600 main ()
12603 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12606 return 0;
12608 _ACEOF
12609 rm -f conftest.$ac_objext
12610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12611 (eval $ac_compile) 2>conftest.er1
12612 ac_status=$?
12613 grep -v '^ *+' conftest.er1 >conftest.err
12614 rm -f conftest.er1
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } &&
12618 { ac_try='test -z "$ac_c_werror_flag"
12619 || test ! -s conftest.err'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; } &&
12625 { ac_try='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12632 cat >>confdefs.h <<\_ACEOF
12633 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12634 _ACEOF
12636 else
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 #include <pthread.h>
12649 main ()
12652 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12655 return 0;
12657 _ACEOF
12658 rm -f conftest.$ac_objext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660 (eval $ac_compile) 2>conftest.er1
12661 ac_status=$?
12662 grep -v '^ *+' conftest.er1 >conftest.err
12663 rm -f conftest.er1
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -z "$ac_c_werror_flag"
12668 || test ! -s conftest.err'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; } &&
12674 { ac_try='test -s conftest.$ac_objext'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12681 cat >>confdefs.h <<\_ACEOF
12682 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12683 _ACEOF
12685 else
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695 # We require a way to get the time.
12696 time_found=no
12700 for ac_func in gettimeofday time ftime
12702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12703 echo "$as_me:$LINENO: checking for $ac_func" >&5
12704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12705 if eval "test \"\${$as_ac_var+set}\" = set"; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 else
12708 if test x$gcc_no_link = xyes; then
12709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12711 { (exit 1); exit 1; }; }
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h. */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12721 #define $ac_func innocuous_$ac_func
12723 /* System header to define __stub macros and hopefully few prototypes,
12724 which can conflict with char $ac_func (); below.
12725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12726 <limits.h> exists even on freestanding compilers. */
12728 #ifdef __STDC__
12729 # include <limits.h>
12730 #else
12731 # include <assert.h>
12732 #endif
12734 #undef $ac_func
12736 /* Override any gcc2 internal prototype to avoid an error. */
12737 #ifdef __cplusplus
12738 extern "C"
12740 #endif
12741 /* We use char because int might match the return type of a gcc2
12742 builtin and then its argument prototype would still apply. */
12743 char $ac_func ();
12744 /* The GNU C library defines this for functions which it implements
12745 to always fail with ENOSYS. Some functions are actually named
12746 something starting with __ and the normal name is an alias. */
12747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12748 choke me
12749 #else
12750 char (*f) () = $ac_func;
12751 #endif
12752 #ifdef __cplusplus
12754 #endif
12757 main ()
12759 return f != $ac_func;
12761 return 0;
12763 _ACEOF
12764 rm -f conftest.$ac_objext conftest$ac_exeext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12766 (eval $ac_link) 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -z "$ac_c_werror_flag"
12774 || test ! -s conftest.err'
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest$ac_exeext'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; }; then
12786 eval "$as_ac_var=yes"
12787 else
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12791 eval "$as_ac_var=no"
12793 rm -f conftest.err conftest.$ac_objext \
12794 conftest$ac_exeext conftest.$ac_ext
12796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12798 if test `eval echo '${'$as_ac_var'}'` = yes; then
12799 cat >>confdefs.h <<_ACEOF
12800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12801 _ACEOF
12802 time_found=yes
12804 done
12806 if test "$time_found" = no; then
12807 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12808 echo "$as_me: error: no function found to get the time" >&2;}
12809 { (exit 1); exit 1; }; }
12813 for ac_func in memmove
12815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12816 echo "$as_me:$LINENO: checking for $ac_func" >&5
12817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12818 if eval "test \"\${$as_ac_var+set}\" = set"; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821 if test x$gcc_no_link = xyes; then
12822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12824 { (exit 1); exit 1; }; }
12826 cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h. */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12834 #define $ac_func innocuous_$ac_func
12836 /* System header to define __stub macros and hopefully few prototypes,
12837 which can conflict with char $ac_func (); below.
12838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12839 <limits.h> exists even on freestanding compilers. */
12841 #ifdef __STDC__
12842 # include <limits.h>
12843 #else
12844 # include <assert.h>
12845 #endif
12847 #undef $ac_func
12849 /* Override any gcc2 internal prototype to avoid an error. */
12850 #ifdef __cplusplus
12851 extern "C"
12853 #endif
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856 char $ac_func ();
12857 /* The GNU C library defines this for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
12860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12861 choke me
12862 #else
12863 char (*f) () = $ac_func;
12864 #endif
12865 #ifdef __cplusplus
12867 #endif
12870 main ()
12872 return f != $ac_func;
12874 return 0;
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_c_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 eval "$as_ac_var=yes"
12900 else
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 eval "$as_ac_var=no"
12906 rm -f conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12911 if test `eval echo '${'$as_ac_var'}'` = yes; then
12912 cat >>confdefs.h <<_ACEOF
12913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12914 _ACEOF
12917 done
12920 # We require memcpy.
12921 memcpy_found=no
12923 for ac_func in memcpy
12925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12926 echo "$as_me:$LINENO: checking for $ac_func" >&5
12927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12928 if eval "test \"\${$as_ac_var+set}\" = set"; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931 if test x$gcc_no_link = xyes; then
12932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12934 { (exit 1); exit 1; }; }
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12944 #define $ac_func innocuous_$ac_func
12946 /* System header to define __stub macros and hopefully few prototypes,
12947 which can conflict with char $ac_func (); below.
12948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12949 <limits.h> exists even on freestanding compilers. */
12951 #ifdef __STDC__
12952 # include <limits.h>
12953 #else
12954 # include <assert.h>
12955 #endif
12957 #undef $ac_func
12959 /* Override any gcc2 internal prototype to avoid an error. */
12960 #ifdef __cplusplus
12961 extern "C"
12963 #endif
12964 /* We use char because int might match the return type of a gcc2
12965 builtin and then its argument prototype would still apply. */
12966 char $ac_func ();
12967 /* The GNU C library defines this for functions which it implements
12968 to always fail with ENOSYS. Some functions are actually named
12969 something starting with __ and the normal name is an alias. */
12970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12971 choke me
12972 #else
12973 char (*f) () = $ac_func;
12974 #endif
12975 #ifdef __cplusplus
12977 #endif
12980 main ()
12982 return f != $ac_func;
12984 return 0;
12986 _ACEOF
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag"
12997 || test ! -s conftest.err'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest$ac_exeext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 eval "$as_ac_var=yes"
13010 else
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13014 eval "$as_ac_var=no"
13016 rm -f conftest.err conftest.$ac_objext \
13017 conftest$ac_exeext conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13021 if test `eval echo '${'$as_ac_var'}'` = yes; then
13022 cat >>confdefs.h <<_ACEOF
13023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13024 _ACEOF
13025 memcpy_found=yes
13027 done
13029 if test "$memcpy_found" = no; then
13030 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13031 echo "$as_me: error: memcpy is required" >&2;}
13032 { (exit 1); exit 1; }; }
13034 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13035 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13036 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040 ac_check_lib_save_LIBS=$LIBS
13041 LIBS="-ldl $LIBS"
13042 if test x$gcc_no_link = xyes; then
13043 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13045 { (exit 1); exit 1; }; }
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h. */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 /* Override any gcc2 internal prototype to avoid an error. */
13055 #ifdef __cplusplus
13056 extern "C"
13057 #endif
13058 /* We use char because int might match the return type of a gcc2
13059 builtin and then its argument prototype would still apply. */
13060 char dlopen ();
13062 main ()
13064 dlopen ();
13066 return 0;
13068 _ACEOF
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13071 (eval $ac_link) 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -z "$ac_c_werror_flag"
13079 || test ! -s conftest.err'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 ac_cv_lib_dl_dlopen=yes
13092 else
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_cv_lib_dl_dlopen=no
13098 rm -f conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100 LIBS=$ac_check_lib_save_LIBS
13102 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13103 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13104 if test $ac_cv_lib_dl_dlopen = yes; then
13107 cat >>confdefs.h <<\_ACEOF
13108 #define HAVE_DLOPEN 1
13109 _ACEOF
13111 else
13113 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13114 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13115 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118 ac_check_lib_save_LIBS=$LIBS
13119 LIBS="-ldld $LIBS"
13120 if test x$gcc_no_link = xyes; then
13121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13123 { (exit 1); exit 1; }; }
13125 cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h. */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13132 /* Override any gcc2 internal prototype to avoid an error. */
13133 #ifdef __cplusplus
13134 extern "C"
13135 #endif
13136 /* We use char because int might match the return type of a gcc2
13137 builtin and then its argument prototype would still apply. */
13138 char dlopen ();
13140 main ()
13142 dlopen ();
13144 return 0;
13146 _ACEOF
13147 rm -f conftest.$ac_objext conftest$ac_exeext
13148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13149 (eval $ac_link) 2>conftest.er1
13150 ac_status=$?
13151 grep -v '^ *+' conftest.er1 >conftest.err
13152 rm -f conftest.er1
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -z "$ac_c_werror_flag"
13157 || test ! -s conftest.err'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; } &&
13163 { ac_try='test -s conftest$ac_exeext'
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; }; then
13169 ac_cv_lib_dld_dlopen=yes
13170 else
13171 echo "$as_me: failed program was:" >&5
13172 sed 's/^/| /' conftest.$ac_ext >&5
13174 ac_cv_lib_dld_dlopen=no
13176 rm -f conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178 LIBS=$ac_check_lib_save_LIBS
13180 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13181 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13182 if test $ac_cv_lib_dld_dlopen = yes; then
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_DLOPEN 1
13187 _ACEOF
13194 # Some library-finding code we stole from Tcl.
13195 #--------------------------------------------------------------------
13196 # Check for the existence of the -lsocket and -lnsl libraries.
13197 # The order here is important, so that they end up in the right
13198 # order in the command line generated by make. Here are some
13199 # special considerations:
13200 # 1. Use "connect" and "accept" to check for -lsocket, and
13201 # "gethostbyname" to check for -lnsl.
13202 # 2. Use each function name only once: can't redo a check because
13203 # autoconf caches the results of the last check and won't redo it.
13204 # 3. Use -lnsl and -lsocket only if they supply procedures that
13205 # aren't already present in the normal libraries. This is because
13206 # IRIX 5.2 has libraries, but they aren't needed and they're
13207 # bogus: they goof up name resolution if used.
13208 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13209 # To get around this problem, check for both libraries together
13210 # if -lsocket doesn't work by itself.
13211 #--------------------------------------------------------------------
13213 echo "$as_me:$LINENO: checking for socket libraries" >&5
13214 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13215 if test "${gcj_cv_lib_sockets+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218 gcj_cv_lib_sockets=
13219 gcj_checkBoth=0
13220 unset ac_cv_func_connect
13221 echo "$as_me:$LINENO: checking for connect" >&5
13222 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13223 if test "${ac_cv_func_connect+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226 if test x$gcc_no_link = xyes; then
13227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13229 { (exit 1); exit 1; }; }
13231 cat >conftest.$ac_ext <<_ACEOF
13232 /* confdefs.h. */
13233 _ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13237 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13239 #define connect innocuous_connect
13241 /* System header to define __stub macros and hopefully few prototypes,
13242 which can conflict with char connect (); below.
13243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13244 <limits.h> exists even on freestanding compilers. */
13246 #ifdef __STDC__
13247 # include <limits.h>
13248 #else
13249 # include <assert.h>
13250 #endif
13252 #undef connect
13254 /* Override any gcc2 internal prototype to avoid an error. */
13255 #ifdef __cplusplus
13256 extern "C"
13258 #endif
13259 /* We use char because int might match the return type of a gcc2
13260 builtin and then its argument prototype would still apply. */
13261 char connect ();
13262 /* The GNU C library defines this for functions which it implements
13263 to always fail with ENOSYS. Some functions are actually named
13264 something starting with __ and the normal name is an alias. */
13265 #if defined (__stub_connect) || defined (__stub___connect)
13266 choke me
13267 #else
13268 char (*f) () = connect;
13269 #endif
13270 #ifdef __cplusplus
13272 #endif
13275 main ()
13277 return f != connect;
13279 return 0;
13281 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284 (eval $ac_link) 2>conftest.er1
13285 ac_status=$?
13286 grep -v '^ *+' conftest.er1 >conftest.err
13287 rm -f conftest.er1
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
13291 { ac_try='test -z "$ac_c_werror_flag"
13292 || test ! -s conftest.err'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; } &&
13298 { ac_try='test -s conftest$ac_exeext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 ac_cv_func_connect=yes
13305 else
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 ac_cv_func_connect=no
13311 rm -f conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13314 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13315 echo "${ECHO_T}$ac_cv_func_connect" >&6
13316 if test $ac_cv_func_connect = yes; then
13317 gcj_checkSocket=0
13318 else
13319 gcj_checkSocket=1
13322 if test "$gcj_checkSocket" = 1; then
13323 unset ac_cv_func_connect
13324 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13325 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13326 if test "${ac_cv_lib_socket_main+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329 ac_check_lib_save_LIBS=$LIBS
13330 LIBS="-lsocket $LIBS"
13331 if test x$gcc_no_link = xyes; then
13332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13334 { (exit 1); exit 1; }; }
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13345 main ()
13347 main ();
13349 return 0;
13351 _ACEOF
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13354 (eval $ac_link) 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_c_werror_flag"
13362 || test ! -s conftest.err'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest$ac_exeext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 ac_cv_lib_socket_main=yes
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ac_cv_lib_socket_main=no
13381 rm -f conftest.err conftest.$ac_objext \
13382 conftest$ac_exeext conftest.$ac_ext
13383 LIBS=$ac_check_lib_save_LIBS
13385 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13386 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13387 if test $ac_cv_lib_socket_main = yes; then
13388 gcj_cv_lib_sockets="-lsocket"
13389 else
13390 gcj_checkBoth=1
13394 if test "$gcj_checkBoth" = 1; then
13395 gcj_oldLibs=$LIBS
13396 LIBS="$LIBS -lsocket -lnsl"
13397 unset ac_cv_func_accept
13398 echo "$as_me:$LINENO: checking for accept" >&5
13399 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13400 if test "${ac_cv_func_accept+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403 if test x$gcc_no_link = xyes; then
13404 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13405 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13406 { (exit 1); exit 1; }; }
13408 cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h. */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13414 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13416 #define accept innocuous_accept
13418 /* System header to define __stub macros and hopefully few prototypes,
13419 which can conflict with char accept (); below.
13420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13421 <limits.h> exists even on freestanding compilers. */
13423 #ifdef __STDC__
13424 # include <limits.h>
13425 #else
13426 # include <assert.h>
13427 #endif
13429 #undef accept
13431 /* Override any gcc2 internal prototype to avoid an error. */
13432 #ifdef __cplusplus
13433 extern "C"
13435 #endif
13436 /* We use char because int might match the return type of a gcc2
13437 builtin and then its argument prototype would still apply. */
13438 char accept ();
13439 /* The GNU C library defines this for functions which it implements
13440 to always fail with ENOSYS. Some functions are actually named
13441 something starting with __ and the normal name is an alias. */
13442 #if defined (__stub_accept) || defined (__stub___accept)
13443 choke me
13444 #else
13445 char (*f) () = accept;
13446 #endif
13447 #ifdef __cplusplus
13449 #endif
13452 main ()
13454 return f != accept;
13456 return 0;
13458 _ACEOF
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461 (eval $ac_link) 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag"
13469 || test ! -s conftest.err'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } &&
13475 { ac_try='test -s conftest$ac_exeext'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 ac_cv_func_accept=yes
13482 else
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 ac_cv_func_accept=no
13488 rm -f conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
13491 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13492 echo "${ECHO_T}$ac_cv_func_accept" >&6
13493 if test $ac_cv_func_accept = yes; then
13494 gcj_checkNsl=0
13495 gcj_cv_lib_sockets="-lsocket -lnsl"
13498 unset ac_cv_func_accept
13499 LIBS=$gcj_oldLibs
13501 unset ac_cv_func_gethostbyname
13502 gcj_oldLibs=$LIBS
13503 LIBS="$LIBS $gcj_cv_lib_sockets"
13504 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13505 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13506 if test "${ac_cv_func_gethostbyname+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 if test x$gcc_no_link = xyes; then
13510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13512 { (exit 1); exit 1; }; }
13514 cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h. */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13522 #define gethostbyname innocuous_gethostbyname
13524 /* System header to define __stub macros and hopefully few prototypes,
13525 which can conflict with char gethostbyname (); below.
13526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13527 <limits.h> exists even on freestanding compilers. */
13529 #ifdef __STDC__
13530 # include <limits.h>
13531 #else
13532 # include <assert.h>
13533 #endif
13535 #undef gethostbyname
13537 /* Override any gcc2 internal prototype to avoid an error. */
13538 #ifdef __cplusplus
13539 extern "C"
13541 #endif
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13544 char gethostbyname ();
13545 /* The GNU C library defines this for functions which it implements
13546 to always fail with ENOSYS. Some functions are actually named
13547 something starting with __ and the normal name is an alias. */
13548 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13549 choke me
13550 #else
13551 char (*f) () = gethostbyname;
13552 #endif
13553 #ifdef __cplusplus
13555 #endif
13558 main ()
13560 return f != gethostbyname;
13562 return 0;
13564 _ACEOF
13565 rm -f conftest.$ac_objext conftest$ac_exeext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13567 (eval $ac_link) 2>conftest.er1
13568 ac_status=$?
13569 grep -v '^ *+' conftest.er1 >conftest.err
13570 rm -f conftest.er1
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -z "$ac_c_werror_flag"
13575 || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_func_gethostbyname=yes
13588 else
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 ac_cv_func_gethostbyname=no
13594 rm -f conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
13597 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13598 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13599 if test $ac_cv_func_gethostbyname = yes; then
13601 else
13602 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13603 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13604 if test "${ac_cv_lib_nsl_main+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 else
13607 ac_check_lib_save_LIBS=$LIBS
13608 LIBS="-lnsl $LIBS"
13609 if test x$gcc_no_link = xyes; then
13610 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13612 { (exit 1); exit 1; }; }
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13623 main ()
13625 main ();
13627 return 0;
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632 (eval $ac_link) 2>conftest.er1
13633 ac_status=$?
13634 grep -v '^ *+' conftest.er1 >conftest.err
13635 rm -f conftest.er1
13636 cat conftest.err >&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } &&
13639 { ac_try='test -z "$ac_c_werror_flag"
13640 || test ! -s conftest.err'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest$ac_exeext'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13649 ac_status=$?
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13652 ac_cv_lib_nsl_main=yes
13653 else
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 ac_cv_lib_nsl_main=no
13659 rm -f conftest.err conftest.$ac_objext \
13660 conftest$ac_exeext conftest.$ac_ext
13661 LIBS=$ac_check_lib_save_LIBS
13663 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13664 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13665 if test $ac_cv_lib_nsl_main = yes; then
13666 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13671 unset ac_cv_func_gethostbyname
13672 LIBS=$gcj_oldLIBS
13675 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13676 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13677 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13679 if test "$with_system_zlib" = yes; then
13680 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13681 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13682 if test "${ac_cv_lib_z_deflate+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685 ac_check_lib_save_LIBS=$LIBS
13686 LIBS="-lz $LIBS"
13687 if test x$gcc_no_link = xyes; then
13688 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13690 { (exit 1); exit 1; }; }
13692 cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h. */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13699 /* Override any gcc2 internal prototype to avoid an error. */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 /* We use char because int might match the return type of a gcc2
13704 builtin and then its argument prototype would still apply. */
13705 char deflate ();
13707 main ()
13709 deflate ();
13711 return 0;
13713 _ACEOF
13714 rm -f conftest.$ac_objext conftest$ac_exeext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13716 (eval $ac_link) 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag"
13724 || test ! -s conftest.err'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; } &&
13730 { ac_try='test -s conftest$ac_exeext'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_cv_lib_z_deflate=yes
13737 else
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 ac_cv_lib_z_deflate=no
13743 rm -f conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13747 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13748 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13749 if test $ac_cv_lib_z_deflate = yes; then
13750 ZLIBSPEC=-lz
13751 else
13752 ZLIBSPEC=
13757 # Test for Gtk stuff, if asked for.
13758 if test "$use_gtk_awt" = yes; then
13760 succeeded=no
13762 if test -z "$PKG_CONFIG"; then
13763 # Extract the first word of "pkg-config", so it can be a program name with args.
13764 set dummy pkg-config; ac_word=$2
13765 echo "$as_me:$LINENO: checking for $ac_word" >&5
13766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13767 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770 case $PKG_CONFIG in
13771 [\\/]* | ?:[\\/]*)
13772 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776 for as_dir in $PATH
13778 IFS=$as_save_IFS
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
13781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13782 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13784 break 2
13786 done
13787 done
13789 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13791 esac
13793 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13795 if test -n "$PKG_CONFIG"; then
13796 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13797 echo "${ECHO_T}$PKG_CONFIG" >&6
13798 else
13799 echo "$as_me:$LINENO: result: no" >&5
13800 echo "${ECHO_T}no" >&6
13805 if test "$PKG_CONFIG" = "no" ; then
13806 echo "*** The pkg-config script could not be found. Make sure it is"
13807 echo "*** in your path, or set the PKG_CONFIG environment variable"
13808 echo "*** to the full path to pkg-config."
13809 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13810 else
13811 PKG_CONFIG_MIN_VERSION=0.9.0
13812 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13813 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13814 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13816 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13817 echo "$as_me:$LINENO: result: yes" >&5
13818 echo "${ECHO_T}yes" >&6
13819 succeeded=yes
13821 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13822 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13823 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13824 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13825 echo "${ECHO_T}$GTK_CFLAGS" >&6
13827 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13828 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13829 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13830 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13831 echo "${ECHO_T}$GTK_LIBS" >&6
13832 else
13833 GTK_CFLAGS=""
13834 GTK_LIBS=""
13835 ## If we have a custom action on failure, don't print errors, but
13836 ## do set a variable so people can do so.
13837 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13838 echo $GTK_PKG_ERRORS
13843 else
13844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13849 if test $succeeded = yes; then
13851 else
13852 { { 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
13853 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;}
13854 { (exit 1); exit 1; }; }
13861 succeeded=no
13863 if test -z "$PKG_CONFIG"; then
13864 # Extract the first word of "pkg-config", so it can be a program name with args.
13865 set dummy pkg-config; ac_word=$2
13866 echo "$as_me:$LINENO: checking for $ac_word" >&5
13867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13868 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 else
13871 case $PKG_CONFIG in
13872 [\\/]* | ?:[\\/]*)
13873 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13887 done
13888 done
13890 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13892 esac
13894 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13896 if test -n "$PKG_CONFIG"; then
13897 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13898 echo "${ECHO_T}$PKG_CONFIG" >&6
13899 else
13900 echo "$as_me:$LINENO: result: no" >&5
13901 echo "${ECHO_T}no" >&6
13906 if test "$PKG_CONFIG" = "no" ; then
13907 echo "*** The pkg-config script could not be found. Make sure it is"
13908 echo "*** in your path, or set the PKG_CONFIG environment variable"
13909 echo "*** to the full path to pkg-config."
13910 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13911 else
13912 PKG_CONFIG_MIN_VERSION=0.9.0
13913 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13914 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13915 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13917 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13918 echo "$as_me:$LINENO: result: yes" >&5
13919 echo "${ECHO_T}yes" >&6
13920 succeeded=yes
13922 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13923 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13924 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13925 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13926 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13928 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13929 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13930 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13931 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13932 echo "${ECHO_T}$GLIB_LIBS" >&6
13933 else
13934 GLIB_CFLAGS=""
13935 GLIB_LIBS=""
13936 ## If we have a custom action on failure, don't print errors, but
13937 ## do set a variable so people can do so.
13938 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13939 echo $GLIB_PKG_ERRORS
13944 else
13945 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13946 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13950 if test $succeeded = yes; then
13952 else
13953 { { 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
13954 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;}
13955 { (exit 1); exit 1; }; }
13962 succeeded=no
13964 if test -z "$PKG_CONFIG"; then
13965 # Extract the first word of "pkg-config", so it can be a program name with args.
13966 set dummy pkg-config; ac_word=$2
13967 echo "$as_me:$LINENO: checking for $ac_word" >&5
13968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13969 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972 case $PKG_CONFIG in
13973 [\\/]* | ?:[\\/]*)
13974 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13978 for as_dir in $PATH
13980 IFS=$as_save_IFS
13981 test -z "$as_dir" && as_dir=.
13982 for ac_exec_ext in '' $ac_executable_extensions; do
13983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13984 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13986 break 2
13988 done
13989 done
13991 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13993 esac
13995 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13997 if test -n "$PKG_CONFIG"; then
13998 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13999 echo "${ECHO_T}$PKG_CONFIG" >&6
14000 else
14001 echo "$as_me:$LINENO: result: no" >&5
14002 echo "${ECHO_T}no" >&6
14007 if test "$PKG_CONFIG" = "no" ; then
14008 echo "*** The pkg-config script could not be found. Make sure it is"
14009 echo "*** in your path, or set the PKG_CONFIG environment variable"
14010 echo "*** to the full path to pkg-config."
14011 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14012 else
14013 PKG_CONFIG_MIN_VERSION=0.9.0
14014 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14015 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14016 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14018 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14019 echo "$as_me:$LINENO: result: yes" >&5
14020 echo "${ECHO_T}yes" >&6
14021 succeeded=yes
14023 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14024 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14025 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14026 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14027 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14029 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14030 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14031 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14032 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14033 echo "${ECHO_T}$LIBART_LIBS" >&6
14034 else
14035 LIBART_CFLAGS=""
14036 LIBART_LIBS=""
14037 ## If we have a custom action on failure, don't print errors, but
14038 ## do set a variable so people can do so.
14039 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14040 echo $LIBART_PKG_ERRORS
14045 else
14046 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14047 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14051 if test $succeeded = yes; then
14053 else
14054 { { 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
14055 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;}
14056 { (exit 1); exit 1; }; }
14062 # We require the XTest Extension to support java.awt.Robot.
14063 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14064 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14065 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 ac_check_lib_save_LIBS=$LIBS
14069 LIBS="-lXtst ${X_LIBS} $LIBS"
14070 if test x$gcc_no_link = xyes; then
14071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14073 { (exit 1); exit 1; }; }
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h. */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14082 /* Override any gcc2 internal prototype to avoid an error. */
14083 #ifdef __cplusplus
14084 extern "C"
14085 #endif
14086 /* We use char because int might match the return type of a gcc2
14087 builtin and then its argument prototype would still apply. */
14088 char XTestQueryExtension ();
14090 main ()
14092 XTestQueryExtension ();
14094 return 0;
14096 _ACEOF
14097 rm -f conftest.$ac_objext conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest$ac_exeext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_cv_lib_Xtst_XTestQueryExtension=yes
14120 else
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_cv_lib_Xtst_XTestQueryExtension=no
14126 rm -f conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14130 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14131 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14132 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14133 true
14134 else
14135 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14136 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14137 { (exit 1); exit 1; }; }
14142 # On Solaris, and maybe other architectures, the Boehm collector
14143 # requires -ldl.
14144 if test "$GC" = boehm; then
14145 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14146 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14147 if test "${ac_cv_lib_dl_main+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150 ac_check_lib_save_LIBS=$LIBS
14151 LIBS="-ldl $LIBS"
14152 if test x$gcc_no_link = xyes; then
14153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14155 { (exit 1); exit 1; }; }
14157 cat >conftest.$ac_ext <<_ACEOF
14158 /* confdefs.h. */
14159 _ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h. */
14166 main ()
14168 main ();
14170 return 0;
14172 _ACEOF
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175 (eval $ac_link) 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -z "$ac_c_werror_flag"
14183 || test ! -s conftest.err'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest$ac_exeext'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_cv_lib_dl_main=yes
14196 else
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14200 ac_cv_lib_dl_main=no
14202 rm -f conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14207 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14208 if test $ac_cv_lib_dl_main = yes; then
14209 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14215 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14216 case $build in
14217 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14218 *) CLASSPATH_SEPARATOR=':' ;;
14219 esac
14222 # We must search the source tree for java.lang, since we still don't
14223 # have libgcj.jar nor java/lang/*.class
14224 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14225 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14227 # Since some classes depend on this one, we need its source available
14228 # before we can do any GCJ compilation test :-(
14229 if test ! -f gnu/classpath/Configuration.java; then
14230 test -d gnu || mkdir gnu
14231 test -d gnu/classpath || mkdir gnu/classpath
14232 # Note that it is not crucial that all the values here be correct.
14233 sed -e "s,@prefix@,$prefix," \
14234 -e "s,@VERSION@,$VERSION," \
14235 -e "s,@LIBDEBUG@,false," \
14236 -e "s,@INIT_LOAD_LIBRARY@,false," \
14237 -e "s,@@,$LIBGCJDEBUG," \
14238 -e "s,@default_toolkit@,$TOOLKIT," \
14239 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14240 -e "s,@GTK_CAIRO_ENABLED@,false," \
14241 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14242 > gnu/classpath/Configuration.java
14243 # We do not want to redirect the output of the grep below to /dev/null,
14244 # but we add /dev/null to the input list so that grep will print the
14245 # filename of Configuration.java in case it finds any matches.
14246 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14247 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14248 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14249 { (exit 1); exit 1; }; }
14253 if test -n "$ac_tool_prefix"; then
14254 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14255 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14256 echo "$as_me:$LINENO: checking for $ac_word" >&5
14257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14258 if test "${ac_cv_prog_GCJ+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261 if test -n "$GCJ"; then
14262 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14263 else
14264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265 for as_dir in $PATH
14267 IFS=$as_save_IFS
14268 test -z "$as_dir" && as_dir=.
14269 for ac_exec_ext in '' $ac_executable_extensions; do
14270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14271 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14273 break 2
14275 done
14276 done
14280 GCJ=$ac_cv_prog_GCJ
14281 if test -n "$GCJ"; then
14282 echo "$as_me:$LINENO: result: $GCJ" >&5
14283 echo "${ECHO_T}$GCJ" >&6
14284 else
14285 echo "$as_me:$LINENO: result: no" >&5
14286 echo "${ECHO_T}no" >&6
14290 if test -z "$ac_cv_prog_GCJ"; then
14291 ac_ct_GCJ=$GCJ
14292 # Extract the first word of "gcj", so it can be a program name with args.
14293 set dummy gcj; ac_word=$2
14294 echo "$as_me:$LINENO: checking for $ac_word" >&5
14295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14296 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299 if test -n "$ac_ct_GCJ"; then
14300 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14301 else
14302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14305 IFS=$as_save_IFS
14306 test -z "$as_dir" && as_dir=.
14307 for ac_exec_ext in '' $ac_executable_extensions; do
14308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14309 ac_cv_prog_ac_ct_GCJ="gcj"
14310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14311 break 2
14313 done
14314 done
14316 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14319 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14320 if test -n "$ac_ct_GCJ"; then
14321 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14322 echo "${ECHO_T}$ac_ct_GCJ" >&6
14323 else
14324 echo "$as_me:$LINENO: result: no" >&5
14325 echo "${ECHO_T}no" >&6
14328 GCJ=$ac_ct_GCJ
14329 else
14330 GCJ="$ac_cv_prog_GCJ"
14333 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14338 # Now remove it.
14339 rm -f gnu/classpath/Configuration.java
14341 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14343 echo "$as_me:$LINENO: checking for void *" >&5
14344 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14345 if test "${ac_cv_type_void_p+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 $ac_includes_default
14356 main ()
14358 if ((void * *) 0)
14359 return 0;
14360 if (sizeof (void *))
14361 return 0;
14363 return 0;
14365 _ACEOF
14366 rm -f conftest.$ac_objext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368 (eval $ac_compile) 2>conftest.er1
14369 ac_status=$?
14370 grep -v '^ *+' conftest.er1 >conftest.err
14371 rm -f conftest.er1
14372 cat conftest.err >&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } &&
14375 { ac_try='test -z "$ac_c_werror_flag"
14376 || test ! -s conftest.err'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; } &&
14382 { ac_try='test -s conftest.$ac_objext'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
14388 ac_cv_type_void_p=yes
14389 else
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_cv_type_void_p=no
14395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14397 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14398 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14400 echo "$as_me:$LINENO: checking size of void *" >&5
14401 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14402 if test "${ac_cv_sizeof_void_p+set}" = set; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405 if test "$ac_cv_type_void_p" = yes; then
14406 # The cast to unsigned long works around a bug in the HP C Compiler
14407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14409 # This bug is HP SR number 8606223364.
14410 if test "$cross_compiling" = yes; then
14411 # Depending upon the size, compute the lo and hi bounds.
14412 cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h. */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 $ac_includes_default
14420 main ()
14422 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14423 test_array [0] = 0
14426 return 0;
14428 _ACEOF
14429 rm -f conftest.$ac_objext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431 (eval $ac_compile) 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 ac_lo=0 ac_mid=0
14452 while :; do
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h. */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 $ac_includes_default
14461 main ()
14463 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14464 test_array [0] = 0
14467 return 0;
14469 _ACEOF
14470 rm -f conftest.$ac_objext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472 (eval $ac_compile) 2>conftest.er1
14473 ac_status=$?
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -z "$ac_c_werror_flag"
14480 || test ! -s conftest.err'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; } &&
14486 { ac_try='test -s conftest.$ac_objext'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 ac_hi=$ac_mid; break
14493 else
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 ac_lo=`expr $ac_mid + 1`
14498 if test $ac_lo -le $ac_mid; then
14499 ac_lo= ac_hi=
14500 break
14502 ac_mid=`expr 2 '*' $ac_mid + 1`
14504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505 done
14506 else
14507 echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 $ac_includes_default
14518 main ()
14520 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14521 test_array [0] = 0
14524 return 0;
14526 _ACEOF
14527 rm -f conftest.$ac_objext
14528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14529 (eval $ac_compile) 2>conftest.er1
14530 ac_status=$?
14531 grep -v '^ *+' conftest.er1 >conftest.err
14532 rm -f conftest.er1
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -z "$ac_c_werror_flag"
14537 || test ! -s conftest.err'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try='test -s conftest.$ac_objext'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 ac_hi=-1 ac_mid=-1
14550 while :; do
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 $ac_includes_default
14559 main ()
14561 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14562 test_array [0] = 0
14565 return 0;
14567 _ACEOF
14568 rm -f conftest.$ac_objext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570 (eval $ac_compile) 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag"
14578 || test ! -s conftest.err'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest.$ac_objext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_lo=$ac_mid; break
14591 else
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_hi=`expr '(' $ac_mid ')' - 1`
14596 if test $ac_mid -le $ac_hi; then
14597 ac_lo= ac_hi=
14598 break
14600 ac_mid=`expr 2 '*' $ac_mid`
14602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14603 done
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14608 ac_lo= ac_hi=
14610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613 # Binary search between lo and hi bounds.
14614 while test "x$ac_lo" != "x$ac_hi"; do
14615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h. */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 $ac_includes_default
14624 main ()
14626 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14627 test_array [0] = 0
14630 return 0;
14632 _ACEOF
14633 rm -f conftest.$ac_objext
14634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14635 (eval $ac_compile) 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try='test -z "$ac_c_werror_flag"
14643 || test ! -s conftest.err'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; } &&
14649 { ac_try='test -s conftest.$ac_objext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_hi=$ac_mid
14656 else
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ac_lo=`expr '(' $ac_mid ')' + 1`
14662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14663 done
14664 case $ac_lo in
14665 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14666 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14667 See \`config.log' for more details." >&5
14668 echo "$as_me: error: cannot compute sizeof (void *), 77
14669 See \`config.log' for more details." >&2;}
14670 { (exit 1); exit 1; }; } ;;
14671 esac
14672 else
14673 if test "$cross_compiling" = yes; then
14674 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14675 See \`config.log' for more details." >&5
14676 echo "$as_me: error: cannot run test program while cross compiling
14677 See \`config.log' for more details." >&2;}
14678 { (exit 1); exit 1; }; }
14679 else
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 $ac_includes_default
14687 long longval () { return (long) (sizeof (void *)); }
14688 unsigned long ulongval () { return (long) (sizeof (void *)); }
14689 #include <stdio.h>
14690 #include <stdlib.h>
14692 main ()
14695 FILE *f = fopen ("conftest.val", "w");
14696 if (! f)
14697 exit (1);
14698 if (((long) (sizeof (void *))) < 0)
14700 long i = longval ();
14701 if (i != ((long) (sizeof (void *))))
14702 exit (1);
14703 fprintf (f, "%ld\n", i);
14705 else
14707 unsigned long i = ulongval ();
14708 if (i != ((long) (sizeof (void *))))
14709 exit (1);
14710 fprintf (f, "%lu\n", i);
14712 exit (ferror (f) || fclose (f) != 0);
14715 return 0;
14717 _ACEOF
14718 rm -f conftest$ac_exeext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14720 (eval $ac_link) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; }; then
14729 ac_cv_sizeof_void_p=`cat conftest.val`
14730 else
14731 echo "$as_me: program exited with status $ac_status" >&5
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 ( exit $ac_status )
14736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14737 See \`config.log' for more details." >&5
14738 echo "$as_me: error: cannot compute sizeof (void *), 77
14739 See \`config.log' for more details." >&2;}
14740 { (exit 1); exit 1; }; }
14742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14745 rm -f conftest.val
14746 else
14747 ac_cv_sizeof_void_p=0
14750 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14751 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14752 cat >>confdefs.h <<_ACEOF
14753 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14754 _ACEOF
14758 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14759 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14760 if test "${ac_cv_c_bigendian+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763 # See if sys/param.h defines the BYTE_ORDER macro.
14764 cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h. */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <sys/types.h>
14771 #include <sys/param.h>
14774 main ()
14776 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14777 bogus endian macros
14778 #endif
14781 return 0;
14783 _ACEOF
14784 rm -f conftest.$ac_objext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14786 (eval $ac_compile) 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -z "$ac_c_werror_flag"
14794 || test ! -s conftest.err'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest.$ac_objext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 # It does; now see whether it defined to BIG_ENDIAN or not.
14807 cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h. */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 #include <sys/types.h>
14814 #include <sys/param.h>
14817 main ()
14819 #if BYTE_ORDER != BIG_ENDIAN
14820 not big endian
14821 #endif
14824 return 0;
14826 _ACEOF
14827 rm -f conftest.$ac_objext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14829 (eval $ac_compile) 2>conftest.er1
14830 ac_status=$?
14831 grep -v '^ *+' conftest.er1 >conftest.err
14832 rm -f conftest.er1
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -z "$ac_c_werror_flag"
14837 || test ! -s conftest.err'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest.$ac_objext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14846 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_cv_c_bigendian=yes
14850 else
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_cv_c_bigendian=no
14856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14857 else
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 # It does not; compile a test program.
14862 if test "$cross_compiling" = yes; then
14863 # try to guess the endianness by grepping values into an object file
14864 ac_cv_c_bigendian=unknown
14865 cat >conftest.$ac_ext <<_ACEOF
14866 /* confdefs.h. */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14872 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14873 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14874 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14875 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14876 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14878 main ()
14880 _ascii (); _ebcdic ();
14882 return 0;
14884 _ACEOF
14885 rm -f conftest.$ac_objext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14887 (eval $ac_compile) 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14908 ac_cv_c_bigendian=yes
14910 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14911 if test "$ac_cv_c_bigendian" = unknown; then
14912 ac_cv_c_bigendian=no
14913 else
14914 # finding both strings is unlikely to happen, but who knows?
14915 ac_cv_c_bigendian=unknown
14918 else
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14924 else
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h. */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14932 main ()
14934 /* Are we little or big endian? From Harbison&Steele. */
14935 union
14937 long l;
14938 char c[sizeof (long)];
14939 } u;
14940 u.l = 1;
14941 exit (u.c[sizeof (long) - 1] == 1);
14943 _ACEOF
14944 rm -f conftest$ac_exeext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14946 (eval $ac_link) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955 ac_cv_c_bigendian=no
14956 else
14957 echo "$as_me: program exited with status $ac_status" >&5
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ( exit $ac_status )
14962 ac_cv_c_bigendian=yes
14964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14969 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14970 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14971 case $ac_cv_c_bigendian in
14972 yes)
14974 cat >>confdefs.h <<\_ACEOF
14975 #define WORDS_BIGENDIAN 1
14976 _ACEOF
14981 { { echo "$as_me:$LINENO: error: unknown endianness
14982 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14983 echo "$as_me: error: unknown endianness
14984 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14985 { (exit 1); exit 1; }; } ;;
14986 esac
14989 ZLIBS=
14990 SYS_ZLIBS=
14991 ZINCS=
14993 if test -z "$ZLIBSPEC"; then
14994 # Use zlib from the GCC tree.
14995 ZINCS='-I$(top_srcdir)/../zlib'
14996 ZLIBS=../zlib/libzgcj_convenience.la
14997 else
14998 # System's zlib.
14999 SYS_ZLIBS="$ZLIBSPEC"
15012 if test "$NATIVE" = yes; then
15013 NATIVE_TRUE=
15014 NATIVE_FALSE='#'
15015 else
15016 NATIVE_TRUE='#'
15017 NATIVE_FALSE=
15022 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15023 NEEDS_DATA_START_TRUE=
15024 NEEDS_DATA_START_FALSE='#'
15025 else
15026 NEEDS_DATA_START_TRUE='#'
15027 NEEDS_DATA_START_FALSE=
15032 # Process the option "--enable-version-specific-runtime-libs"
15033 # Calculate toolexeclibdir
15034 case ${version_specific_libs} in
15035 yes)
15036 # Need the gcc compiler version to know where to install libraries
15037 # and header files if --enable-version-specific-runtime-libs option
15038 # is selected.
15039 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15040 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15041 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15042 toolexeclibdir=$toolexecmainlibdir
15045 if test -n "$with_cross_host" &&
15046 test x"$with_cross_host" != x"no"; then
15047 # Install a library built with a cross compiler in tooldir, not libdir.
15048 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15049 toolexecmainlibdir='$(toolexecdir)/lib'
15050 else
15051 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15052 toolexecmainlibdir='$(libdir)'
15054 multi_os_directory=`$CC -print-multi-os-directory`
15055 case $multi_os_directory in
15056 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15057 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15058 esac
15060 esac
15065 # Determine where the standard .db file is found.
15066 multi_os_directory=`$CC -print-multi-os-directory`
15067 case $multi_os_directory in
15068 .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
15069 *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
15070 esac
15073 # Determine gcj version number.
15074 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15075 GCJVERSION=$gcjversion
15078 cat >>confdefs.h <<_ACEOF
15079 #define GCJVERSION "$GCJVERSION"
15080 _ACEOF
15084 cat >>confdefs.h <<\_ACEOF
15085 #define JV_VERSION "1.4.2"
15086 _ACEOF
15089 cat >>confdefs.h <<\_ACEOF
15090 #define JV_API_VERSION "1.4"
15091 _ACEOF
15095 case "${with_gxx_include_dir}" in
15096 yes)
15097 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15098 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15099 { (exit 1); exit 1; }; }
15101 no | "")
15102 case "${enable_version_specific_runtime_libs}" in
15103 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15105 libstdcxx_incdir='c++/$(gcc_version)'
15106 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
15107 esac ;;
15108 *) gxx_include_dir=${with_gxx_include_dir} ;;
15109 esac
15114 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15115 # On that system, sys/ioctl.h will not include sys/filio.h unless
15116 # BSD_COMP is defined; just including sys/filio.h is simpler.
15117 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15118 # for now. If you change this, you also must update natFile.cc.
15139 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15140 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15141 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15142 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15143 dirent.h
15145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15147 echo "$as_me:$LINENO: checking for $ac_header" >&5
15148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15154 else
15155 # Is the header compilable?
15156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15158 cat >conftest.$ac_ext <<_ACEOF
15159 /* confdefs.h. */
15160 _ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164 $ac_includes_default
15165 #include <$ac_header>
15166 _ACEOF
15167 rm -f conftest.$ac_objext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15169 (eval $ac_compile) 2>conftest.er1
15170 ac_status=$?
15171 grep -v '^ *+' conftest.er1 >conftest.err
15172 rm -f conftest.er1
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag"
15177 || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_header_compiler=yes
15190 else
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_header_compiler=no
15196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198 echo "${ECHO_T}$ac_header_compiler" >&6
15200 # Is the header present?
15201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h. */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 #include <$ac_header>
15210 _ACEOF
15211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev/null; then
15219 if test -s conftest.err; then
15220 ac_cpp_err=$ac_c_preproc_warn_flag
15221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15222 else
15223 ac_cpp_err=
15225 else
15226 ac_cpp_err=yes
15228 if test -z "$ac_cpp_err"; then
15229 ac_header_preproc=yes
15230 else
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15234 ac_header_preproc=no
15236 rm -f conftest.err conftest.$ac_ext
15237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15238 echo "${ECHO_T}$ac_header_preproc" >&6
15240 # So? What about this header?
15241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15242 yes:no: )
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15247 ac_header_preproc=yes
15249 no:yes:* )
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15263 cat <<\_ASBOX
15264 ## ---------------------------------- ##
15265 ## Report this to the libjava lists. ##
15266 ## ---------------------------------- ##
15267 _ASBOX
15269 sed "s/^/$as_me: WARNING: /" >&2
15271 esac
15272 echo "$as_me:$LINENO: checking for $ac_header" >&5
15273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277 eval "$as_ac_Header=\$ac_header_preproc"
15279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15284 cat >>confdefs.h <<_ACEOF
15285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15286 _ACEOF
15290 done
15293 for ac_header in inttypes.h
15295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15297 echo "$as_me:$LINENO: checking for $ac_header" >&5
15298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15304 else
15305 # Is the header compilable?
15306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h. */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 $ac_includes_default
15315 #include <$ac_header>
15316 _ACEOF
15317 rm -f conftest.$ac_objext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319 (eval $ac_compile) 2>conftest.er1
15320 ac_status=$?
15321 grep -v '^ *+' conftest.er1 >conftest.err
15322 rm -f conftest.er1
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -z "$ac_c_werror_flag"
15327 || test ! -s conftest.err'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; } &&
15333 { ac_try='test -s conftest.$ac_objext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 ac_header_compiler=yes
15340 else
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_header_compiler=no
15346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15348 echo "${ECHO_T}$ac_header_compiler" >&6
15350 # Is the header present?
15351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15353 cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h. */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 #include <$ac_header>
15360 _ACEOF
15361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } >/dev/null; then
15369 if test -s conftest.err; then
15370 ac_cpp_err=$ac_c_preproc_warn_flag
15371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15372 else
15373 ac_cpp_err=
15375 else
15376 ac_cpp_err=yes
15378 if test -z "$ac_cpp_err"; then
15379 ac_header_preproc=yes
15380 else
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ac_header_preproc=no
15386 rm -f conftest.err conftest.$ac_ext
15387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15388 echo "${ECHO_T}$ac_header_preproc" >&6
15390 # So? What about this header?
15391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15392 yes:no: )
15393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15397 ac_header_preproc=yes
15399 no:yes:* )
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15413 cat <<\_ASBOX
15414 ## ---------------------------------- ##
15415 ## Report this to the libjava lists. ##
15416 ## ---------------------------------- ##
15417 _ASBOX
15419 sed "s/^/$as_me: WARNING: /" >&2
15421 esac
15422 echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427 eval "$as_ac_Header=\$ac_header_preproc"
15429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15434 cat >>confdefs.h <<_ACEOF
15435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15436 _ACEOF
15439 cat >>confdefs.h <<\_ACEOF
15440 #define HAVE_INTTYPES_H 1
15441 _ACEOF
15444 cat >>confdefs.h <<\_ACEOF
15445 #define JV_HAVE_INTTYPES_H 1
15446 _ACEOF
15451 done
15453 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15454 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15455 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <sys/types.h>
15465 #include <sys/wait.h>
15466 #ifndef WEXITSTATUS
15467 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15468 #endif
15469 #ifndef WIFEXITED
15470 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15471 #endif
15474 main ()
15476 int s;
15477 wait (&s);
15478 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15480 return 0;
15482 _ACEOF
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>conftest.er1
15486 ac_status=$?
15487 grep -v '^ *+' conftest.er1 >conftest.err
15488 rm -f conftest.er1
15489 cat conftest.err >&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try='test -z "$ac_c_werror_flag"
15493 || test ! -s conftest.err'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } &&
15499 { ac_try='test -s conftest.$ac_objext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_cv_header_sys_wait_h=yes
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_cv_header_sys_wait_h=no
15512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15514 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15515 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15516 if test $ac_cv_header_sys_wait_h = yes; then
15518 cat >>confdefs.h <<\_ACEOF
15519 #define HAVE_SYS_WAIT_H 1
15520 _ACEOF
15525 echo "$as_me:$LINENO: checking for ssize_t" >&5
15526 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15527 if test "${ac_cv_type_ssize_t+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h. */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 $ac_includes_default
15538 main ()
15540 if ((ssize_t *) 0)
15541 return 0;
15542 if (sizeof (ssize_t))
15543 return 0;
15545 return 0;
15547 _ACEOF
15548 rm -f conftest.$ac_objext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550 (eval $ac_compile) 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag"
15558 || test ! -s conftest.err'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try='test -s conftest.$ac_objext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_cv_type_ssize_t=yes
15571 else
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_cv_type_ssize_t=no
15577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15579 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15580 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15581 if test $ac_cv_type_ssize_t = yes; then
15583 else
15585 cat >>confdefs.h <<_ACEOF
15586 #define ssize_t int
15587 _ACEOF
15592 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15593 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15594 cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h. */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 #include <sys/types.h>
15601 #if STDC_HEADERS
15602 #include <stdlib.h>
15603 #include <stddef.h>
15604 #endif
15605 #if HAVE_NETINET_IN_H
15606 #include <netinet/in.h>
15607 #endif
15609 main ()
15611 in_addr_t foo;
15613 return 0;
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618 (eval $ac_compile) 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag"
15626 || test ! -s conftest.err'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAVE_IN_ADDR_T 1
15641 _ACEOF
15643 echo "$as_me:$LINENO: result: yes" >&5
15644 echo "${ECHO_T}yes" >&6
15645 else
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 echo "$as_me:$LINENO: result: no" >&5
15650 echo "${ECHO_T}no" >&6
15652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15654 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15655 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h. */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 #include <netinet/in.h>
15664 main ()
15666 struct ip_mreq mreq;
15668 return 0;
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673 (eval $ac_compile) 2>conftest.er1
15674 ac_status=$?
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag"
15681 || test ! -s conftest.err'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15694 cat >>confdefs.h <<\_ACEOF
15695 #define HAVE_STRUCT_IP_MREQ 1
15696 _ACEOF
15698 echo "$as_me:$LINENO: result: yes" >&5
15699 echo "${ECHO_T}yes" >&6
15700 else
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 echo "$as_me:$LINENO: result: no" >&5
15705 echo "${ECHO_T}no" >&6
15707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15709 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15710 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 #include <netinet/in.h>
15719 main ()
15721 struct ipv6_mreq mreq6;
15723 return 0;
15725 _ACEOF
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>conftest.er1
15729 ac_status=$?
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15749 cat >>confdefs.h <<\_ACEOF
15750 #define HAVE_STRUCT_IPV6_MREQ 1
15751 _ACEOF
15753 echo "$as_me:$LINENO: result: yes" >&5
15754 echo "${ECHO_T}yes" >&6
15755 else
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 echo "$as_me:$LINENO: result: no" >&5
15760 echo "${ECHO_T}no" >&6
15762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15764 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15765 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h. */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 #include <netinet/in.h>
15774 main ()
15776 struct sockaddr_in6 addr6;
15778 return 0;
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag"
15791 || test ! -s conftest.err'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest.$ac_objext'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
15804 cat >>confdefs.h <<\_ACEOF
15805 #define HAVE_INET6 1
15806 _ACEOF
15808 echo "$as_me:$LINENO: result: yes" >&5
15809 echo "${ECHO_T}yes" >&6
15810 else
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 echo "$as_me:$LINENO: result: no" >&5
15815 echo "${ECHO_T}no" >&6
15817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15819 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15820 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15821 cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h. */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 #define _POSIX_PII_SOCKET
15828 #include <sys/types.h>
15829 #include <sys/socket.h>
15831 main ()
15833 socklen_t x = 5;
15835 return 0;
15837 _ACEOF
15838 rm -f conftest.$ac_objext
15839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840 (eval $ac_compile) 2>conftest.er1
15841 ac_status=$?
15842 grep -v '^ *+' conftest.er1 >conftest.err
15843 rm -f conftest.er1
15844 cat conftest.err >&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } &&
15847 { ac_try='test -z "$ac_c_werror_flag"
15848 || test ! -s conftest.err'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; } &&
15854 { ac_try='test -s conftest.$ac_objext'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15861 cat >>confdefs.h <<\_ACEOF
15862 #define HAVE_SOCKLEN_T 1
15863 _ACEOF
15865 echo "$as_me:$LINENO: result: yes" >&5
15866 echo "${ECHO_T}yes" >&6
15867 else
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 echo "$as_me:$LINENO: result: no" >&5
15872 echo "${ECHO_T}no" >&6
15874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15877 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15878 cat >conftest.$ac_ext <<_ACEOF
15879 /* confdefs.h. */
15880 _ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h. */
15884 #include <time.h>
15886 main ()
15888 struct tm tim; tim.tm_gmtoff = 0;
15890 return 0;
15892 _ACEOF
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895 (eval $ac_compile) 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -z "$ac_c_werror_flag"
15903 || test ! -s conftest.err'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15916 cat >>confdefs.h <<\_ACEOF
15917 #define STRUCT_TM_HAS_GMTOFF 1
15918 _ACEOF
15920 echo "$as_me:$LINENO: result: yes" >&5
15921 echo "${ECHO_T}yes" >&6
15922 else
15923 echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15926 echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6
15928 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15929 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <time.h>
15938 main ()
15940 void i(){long z2 = 2*timezone;}
15942 return 0;
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15968 cat >>confdefs.h <<\_ACEOF
15969 #define HAVE_TIMEZONE 1
15970 _ACEOF
15972 echo "$as_me:$LINENO: result: yes" >&5
15973 echo "${ECHO_T}yes" >&6
15974 else
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 echo "$as_me:$LINENO: result: no" >&5
15979 echo "${ECHO_T}no" >&6
15980 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15981 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h. */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 #include <time.h>
15990 main ()
15992 long z2 = _timezone;
15994 return 0;
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999 (eval $ac_compile) 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16020 cat >>confdefs.h <<\_ACEOF
16021 #define HAVE_UNDERSCORE_TIMEZONE 1
16022 _ACEOF
16024 echo "$as_me:$LINENO: result: yes" >&5
16025 echo "${ECHO_T}yes" >&6
16026 else
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 echo "$as_me:$LINENO: result: no" >&5
16031 echo "${ECHO_T}no" >&6
16033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16039 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16040 # for constant arguments. Useless!
16041 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16042 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16043 if test "${ac_cv_working_alloca_h+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046 if test x$gcc_no_link = xyes; then
16047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16049 { (exit 1); exit 1; }; }
16051 cat >conftest.$ac_ext <<_ACEOF
16052 /* confdefs.h. */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16057 #include <alloca.h>
16059 main ()
16061 char *p = (char *) alloca (2 * sizeof (int));
16063 return 0;
16065 _ACEOF
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16068 (eval $ac_link) 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag"
16076 || test ! -s conftest.err'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest$ac_exeext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_cv_working_alloca_h=yes
16089 else
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 ac_cv_working_alloca_h=no
16095 rm -f conftest.err conftest.$ac_objext \
16096 conftest$ac_exeext conftest.$ac_ext
16098 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16099 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16100 if test $ac_cv_working_alloca_h = yes; then
16102 cat >>confdefs.h <<\_ACEOF
16103 #define HAVE_ALLOCA_H 1
16104 _ACEOF
16108 echo "$as_me:$LINENO: checking for alloca" >&5
16109 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16110 if test "${ac_cv_func_alloca_works+set}" = set; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 else
16113 if test x$gcc_no_link = xyes; then
16114 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16116 { (exit 1); exit 1; }; }
16118 cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h. */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16124 #ifdef __GNUC__
16125 # define alloca __builtin_alloca
16126 #else
16127 # ifdef _MSC_VER
16128 # include <malloc.h>
16129 # define alloca _alloca
16130 # else
16131 # if HAVE_ALLOCA_H
16132 # include <alloca.h>
16133 # else
16134 # ifdef _AIX
16135 #pragma alloca
16136 # else
16137 # ifndef alloca /* predefined by HP cc +Olibcalls */
16138 char *alloca ();
16139 # endif
16140 # endif
16141 # endif
16142 # endif
16143 #endif
16146 main ()
16148 char *p = (char *) alloca (1);
16150 return 0;
16152 _ACEOF
16153 rm -f conftest.$ac_objext conftest$ac_exeext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16155 (eval $ac_link) 2>conftest.er1
16156 ac_status=$?
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
16162 { ac_try='test -z "$ac_c_werror_flag"
16163 || test ! -s conftest.err'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; } &&
16169 { ac_try='test -s conftest$ac_exeext'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_cv_func_alloca_works=yes
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16180 ac_cv_func_alloca_works=no
16182 rm -f conftest.err conftest.$ac_objext \
16183 conftest$ac_exeext conftest.$ac_ext
16185 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16186 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16188 if test $ac_cv_func_alloca_works = yes; then
16190 cat >>confdefs.h <<\_ACEOF
16191 #define HAVE_ALLOCA 1
16192 _ACEOF
16194 else
16195 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16196 # that cause trouble. Some versions do not even contain alloca or
16197 # contain a buggy version. If you still want to use their alloca,
16198 # use ar to extract alloca.o from them instead of compiling alloca.c.
16200 ALLOCA=alloca.$ac_objext
16202 cat >>confdefs.h <<\_ACEOF
16203 #define C_ALLOCA 1
16204 _ACEOF
16207 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16208 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16209 if test "${ac_cv_os_cray+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 #if defined(CRAY) && ! defined(CRAY2)
16219 webecray
16220 #else
16221 wenotbecray
16222 #endif
16224 _ACEOF
16225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16226 $EGREP "webecray" >/dev/null 2>&1; then
16227 ac_cv_os_cray=yes
16228 else
16229 ac_cv_os_cray=no
16231 rm -f conftest*
16234 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16235 echo "${ECHO_T}$ac_cv_os_cray" >&6
16236 if test $ac_cv_os_cray = yes; then
16237 for ac_func in _getb67 GETB67 getb67; do
16238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16239 echo "$as_me:$LINENO: checking for $ac_func" >&5
16240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16241 if eval "test \"\${$as_ac_var+set}\" = set"; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 else
16244 if test x$gcc_no_link = xyes; then
16245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16247 { (exit 1); exit 1; }; }
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h. */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16257 #define $ac_func innocuous_$ac_func
16259 /* System header to define __stub macros and hopefully few prototypes,
16260 which can conflict with char $ac_func (); below.
16261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16262 <limits.h> exists even on freestanding compilers. */
16264 #ifdef __STDC__
16265 # include <limits.h>
16266 #else
16267 # include <assert.h>
16268 #endif
16270 #undef $ac_func
16272 /* Override any gcc2 internal prototype to avoid an error. */
16273 #ifdef __cplusplus
16274 extern "C"
16276 #endif
16277 /* We use char because int might match the return type of a gcc2
16278 builtin and then its argument prototype would still apply. */
16279 char $ac_func ();
16280 /* The GNU C library defines this for functions which it implements
16281 to always fail with ENOSYS. Some functions are actually named
16282 something starting with __ and the normal name is an alias. */
16283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16284 choke me
16285 #else
16286 char (*f) () = $ac_func;
16287 #endif
16288 #ifdef __cplusplus
16290 #endif
16293 main ()
16295 return f != $ac_func;
16297 return 0;
16299 _ACEOF
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16302 (eval $ac_link) 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag"
16310 || test ! -s conftest.err'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest$ac_exeext'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 eval "$as_ac_var=yes"
16323 else
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16327 eval "$as_ac_var=no"
16329 rm -f conftest.err conftest.$ac_objext \
16330 conftest$ac_exeext conftest.$ac_ext
16332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16334 if test `eval echo '${'$as_ac_var'}'` = yes; then
16336 cat >>confdefs.h <<_ACEOF
16337 #define CRAY_STACKSEG_END $ac_func
16338 _ACEOF
16340 break
16343 done
16346 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16347 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16348 if test "${ac_cv_c_stack_direction+set}" = set; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 else
16351 if test "$cross_compiling" = yes; then
16352 ac_cv_c_stack_direction=0
16353 else
16354 cat >conftest.$ac_ext <<_ACEOF
16355 /* confdefs.h. */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16361 find_stack_direction ()
16363 static char *addr = 0;
16364 auto char dummy;
16365 if (addr == 0)
16367 addr = &dummy;
16368 return find_stack_direction ();
16370 else
16371 return (&dummy > addr) ? 1 : -1;
16375 main ()
16377 exit (find_stack_direction () < 0);
16379 _ACEOF
16380 rm -f conftest$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_cv_c_stack_direction=1
16392 else
16393 echo "$as_me: program exited with status $ac_status" >&5
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ( exit $ac_status )
16398 ac_cv_c_stack_direction=-1
16400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16403 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16404 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16406 cat >>confdefs.h <<_ACEOF
16407 #define STACK_DIRECTION $ac_cv_c_stack_direction
16408 _ACEOF
16414 for ac_prog in perl
16416 # Extract the first word of "$ac_prog", so it can be a program name with args.
16417 set dummy $ac_prog; ac_word=$2
16418 echo "$as_me:$LINENO: checking for $ac_word" >&5
16419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16420 if test "${ac_cv_prog_PERL+set}" = set; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423 if test -n "$PERL"; then
16424 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16425 else
16426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16427 for as_dir in $PATH
16429 IFS=$as_save_IFS
16430 test -z "$as_dir" && as_dir=.
16431 for ac_exec_ext in '' $ac_executable_extensions; do
16432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16433 ac_cv_prog_PERL="$ac_prog"
16434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16435 break 2
16437 done
16438 done
16442 PERL=$ac_cv_prog_PERL
16443 if test -n "$PERL"; then
16444 echo "$as_me:$LINENO: result: $PERL" >&5
16445 echo "${ECHO_T}$PERL" >&6
16446 else
16447 echo "$as_me:$LINENO: result: no" >&5
16448 echo "${ECHO_T}no" >&6
16451 test -n "$PERL" && break
16452 done
16453 test -n "$PERL" || PERL="false"
16456 SYSDEP_SOURCES=
16457 SIGNAL_HANDLER_AUX=
16459 case "${host}" in
16460 i?86-*-linux*)
16461 SIGNAL_HANDLER=include/i386-signal.h
16463 sparc*-sun-solaris*)
16464 SIGNAL_HANDLER=include/sparc-signal.h
16466 # ia64-*)
16467 # SYSDEP_SOURCES=sysdep/ia64.c
16468 # test -d sysdep || mkdir sysdep
16469 # ;;
16470 hppa*-*-linux*)
16471 SIGNAL_HANDLER=include/pa-signal.h
16473 ia64-*-linux*)
16474 SIGNAL_HANDLER=include/dwarf2-signal.h
16476 powerpc*-*-linux*)
16477 SIGNAL_HANDLER=include/powerpc-signal.h
16479 alpha*-*-linux*)
16480 SIGNAL_HANDLER=include/dwarf2-signal.h
16482 s390*-*-linux*)
16483 SIGNAL_HANDLER=include/s390-signal.h
16485 x86_64*-*-linux*)
16486 SIGNAL_HANDLER=include/x86_64-signal.h
16487 SIGNAL_HANDLER_AUX=include/i386-signal.h
16489 sparc*-*-linux*)
16490 SIGNAL_HANDLER=include/dwarf2-signal.h
16492 sh*-*-linux*)
16493 SIGNAL_HANDLER=include/sh-signal.h
16495 *mingw*)
16496 SIGNAL_HANDLER=include/win32-signal.h
16498 mips*-*-linux*)
16499 SIGNAL_HANDLER=include/mips-signal.h
16501 *-*-darwin*)
16502 SIGNAL_HANDLER=include/darwin-signal.h
16505 SIGNAL_HANDLER=include/default-signal.h
16507 esac
16509 # If we're using sjlj exceptions, forget what we just learned.
16510 if test "$enable_sjlj_exceptions" = yes; then
16511 SIGNAL_HANDLER=include/default-signal.h
16512 SIGNAL_HANDLER_AUX=
16517 if test -z "$SIGNAL_HANDLER_AUX"; then
16518 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16521 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16524 if test "${multilib}" = "yes"; then
16525 multilib_arg="--enable-multilib"
16526 else
16527 multilib_arg=
16530 # See if we support thread-local storage.
16532 # Check whether --enable-tls or --disable-tls was given.
16533 if test "${enable_tls+set}" = set; then
16534 enableval="$enable_tls"
16536 case "$enableval" in
16537 yes|no) ;;
16538 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16539 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16540 { (exit 1); exit 1; }; } ;;
16541 esac
16543 else
16544 enable_tls=yes
16547 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16548 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16549 if test "${have_tls+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16553 if test "$cross_compiling" = yes; then
16554 cat >conftest.$ac_ext <<_ACEOF
16555 __thread int foo;
16556 _ACEOF
16557 rm -f conftest.$ac_objext
16558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16559 (eval $ac_compile) 2>conftest.er1
16560 ac_status=$?
16561 grep -v '^ *+' conftest.er1 >conftest.err
16562 rm -f conftest.er1
16563 cat conftest.err >&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } &&
16566 { ac_try='test -z "$ac_c_werror_flag"
16567 || test ! -s conftest.err'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; } &&
16573 { ac_try='test -s conftest.$ac_objext'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 have_tls=yes
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 have_tls=no
16586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16588 else
16589 cat >conftest.$ac_ext <<_ACEOF
16590 __thread int a; int b; int main() { return a = b; }
16591 _ACEOF
16592 rm -f conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594 (eval $ac_link) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 save_LDFLAGS="$LDFLAGS"
16604 LDFLAGS="-static $LDFLAGS"
16605 if test "$cross_compiling" = yes; then
16606 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16607 See \`config.log' for more details." >&5
16608 echo "$as_me: error: cannot run test program while cross compiling
16609 See \`config.log' for more details." >&2;}
16610 { (exit 1); exit 1; }; }
16611 else
16612 cat >conftest.$ac_ext <<_ACEOF
16613 __thread int a; int b; int main() { return a = b; }
16614 _ACEOF
16615 rm -f conftest$ac_exeext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16617 (eval $ac_link) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 have_tls=yes
16627 else
16628 echo "$as_me: program exited with status $ac_status" >&5
16629 echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 ( exit $ac_status )
16633 have_tls=no
16635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16637 LDFLAGS="$save_LDFLAGS"
16638 else
16639 echo "$as_me: program exited with status $ac_status" >&5
16640 echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16643 ( exit $ac_status )
16644 have_tls=no
16646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16649 echo "$as_me:$LINENO: result: $have_tls" >&5
16650 echo "${ECHO_T}$have_tls" >&6
16651 if test "$enable_tls $have_tls" = "yes yes"; then
16653 cat >>confdefs.h <<\_ACEOF
16654 #define HAVE_TLS 1
16655 _ACEOF
16659 # Check if linker supports static linking on a per library basis
16660 LD_START_STATIC_SPEC=
16661 LD_FINISH_STATIC_SPEC=
16662 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16663 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16664 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16665 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16671 here=`${PWDCMD-pwd}`
16674 # We get this from the environment.
16677 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16680 ac_config_commands="$ac_config_commands default"
16683 cat >confcache <<\_ACEOF
16684 # This file is a shell script that caches the results of configure
16685 # tests run on this system so they can be shared between configure
16686 # scripts and configure runs, see configure's option --config-cache.
16687 # It is not useful on other systems. If it contains results you don't
16688 # want to keep, you may remove or edit it.
16690 # config.status only pays attention to the cache file if you give it
16691 # the --recheck option to rerun configure.
16693 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16694 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16695 # following values.
16697 _ACEOF
16699 # The following way of writing the cache mishandles newlines in values,
16700 # but we know of no workaround that is simple, portable, and efficient.
16701 # So, don't put newlines in cache variables' values.
16702 # Ultrix sh set writes to stderr and can't be redirected directly,
16703 # and sets the high bit in the cache file unless we assign to the vars.
16705 (set) 2>&1 |
16706 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16707 *ac_space=\ *)
16708 # `set' does not quote correctly, so add quotes (double-quote
16709 # substitution turns \\\\ into \\, and sed turns \\ into \).
16710 sed -n \
16711 "s/'/'\\\\''/g;
16712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16715 # `set' quotes correctly as required by POSIX, so do not add quotes.
16716 sed -n \
16717 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16719 esac;
16721 sed '
16722 t clear
16723 : clear
16724 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16725 t end
16726 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16727 : end' >>confcache
16728 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16729 if test -w $cache_file; then
16730 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16731 cat confcache >$cache_file
16732 else
16733 echo "not updating unwritable cache $cache_file"
16736 rm -f confcache
16738 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16739 # Let make expand exec_prefix.
16740 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16742 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16743 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16744 # trailing colons and then remove the whole line if VPATH becomes empty
16745 # (actually we leave an empty line to preserve line numbers).
16746 if test "x$srcdir" = x.; then
16747 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16748 s/:*\$(srcdir):*/:/;
16749 s/:*\${srcdir}:*/:/;
16750 s/:*@srcdir@:*/:/;
16751 s/^\([^=]*=[ ]*\):*/\1/;
16752 s/:*$//;
16753 s/^[^=]*=[ ]*$//;
16757 DEFS=-DHAVE_CONFIG_H
16759 ac_libobjs=
16760 ac_ltlibobjs=
16761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16762 # 1. Remove the extension, and $U if already installed.
16763 ac_i=`echo "$ac_i" |
16764 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16765 # 2. Add them.
16766 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16767 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16768 done
16769 LIBOBJS=$ac_libobjs
16771 LTLIBOBJS=$ac_ltlibobjs
16774 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16775 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16776 Usually this means the macro was only invoked conditionally." >&5
16777 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16778 Usually this means the macro was only invoked conditionally." >&2;}
16779 { (exit 1); exit 1; }; }
16781 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16782 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16783 Usually this means the macro was only invoked conditionally." >&5
16784 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16785 Usually this means the macro was only invoked conditionally." >&2;}
16786 { (exit 1); exit 1; }; }
16788 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16789 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16790 Usually this means the macro was only invoked conditionally." >&5
16791 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16792 Usually this means the macro was only invoked conditionally." >&2;}
16793 { (exit 1); exit 1; }; }
16795 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16796 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16797 Usually this means the macro was only invoked conditionally." >&5
16798 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16799 Usually this means the macro was only invoked conditionally." >&2;}
16800 { (exit 1); exit 1; }; }
16802 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16803 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16804 Usually this means the macro was only invoked conditionally." >&5
16805 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16806 Usually this means the macro was only invoked conditionally." >&2;}
16807 { (exit 1); exit 1; }; }
16809 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16810 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16811 Usually this means the macro was only invoked conditionally." >&5
16812 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16813 Usually this means the macro was only invoked conditionally." >&2;}
16814 { (exit 1); exit 1; }; }
16816 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
16817 { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
16818 Usually this means the macro was only invoked conditionally." >&5
16819 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
16820 Usually this means the macro was only invoked conditionally." >&2;}
16821 { (exit 1); exit 1; }; }
16823 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16824 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16825 Usually this means the macro was only invoked conditionally." >&5
16826 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16827 Usually this means the macro was only invoked conditionally." >&2;}
16828 { (exit 1); exit 1; }; }
16830 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16831 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16832 Usually this means the macro was only invoked conditionally." >&5
16833 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16834 Usually this means the macro was only invoked conditionally." >&2;}
16835 { (exit 1); exit 1; }; }
16837 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16838 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16839 Usually this means the macro was only invoked conditionally." >&5
16840 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16841 Usually this means the macro was only invoked conditionally." >&2;}
16842 { (exit 1); exit 1; }; }
16844 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16845 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16846 Usually this means the macro was only invoked conditionally." >&5
16847 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16848 Usually this means the macro was only invoked conditionally." >&2;}
16849 { (exit 1); exit 1; }; }
16851 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16852 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16853 Usually this means the macro was only invoked conditionally." >&5
16854 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16855 Usually this means the macro was only invoked conditionally." >&2;}
16856 { (exit 1); exit 1; }; }
16858 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16859 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16860 Usually this means the macro was only invoked conditionally." >&5
16861 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16862 Usually this means the macro was only invoked conditionally." >&2;}
16863 { (exit 1); exit 1; }; }
16865 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16866 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16867 Usually this means the macro was only invoked conditionally." >&5
16868 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16869 Usually this means the macro was only invoked conditionally." >&2;}
16870 { (exit 1); exit 1; }; }
16872 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16873 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16874 Usually this means the macro was only invoked conditionally." >&5
16875 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16876 Usually this means the macro was only invoked conditionally." >&2;}
16877 { (exit 1); exit 1; }; }
16879 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16880 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16881 Usually this means the macro was only invoked conditionally." >&5
16882 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16883 Usually this means the macro was only invoked conditionally." >&2;}
16884 { (exit 1); exit 1; }; }
16886 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16887 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16888 Usually this means the macro was only invoked conditionally." >&5
16889 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16890 Usually this means the macro was only invoked conditionally." >&2;}
16891 { (exit 1); exit 1; }; }
16893 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16894 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16895 Usually this means the macro was only invoked conditionally." >&5
16896 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16897 Usually this means the macro was only invoked conditionally." >&2;}
16898 { (exit 1); exit 1; }; }
16900 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16901 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16902 Usually this means the macro was only invoked conditionally." >&5
16903 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16904 Usually this means the macro was only invoked conditionally." >&2;}
16905 { (exit 1); exit 1; }; }
16907 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16908 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16909 Usually this means the macro was only invoked conditionally." >&5
16910 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16911 Usually this means the macro was only invoked conditionally." >&2;}
16912 { (exit 1); exit 1; }; }
16914 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16915 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16916 Usually this means the macro was only invoked conditionally." >&5
16917 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16918 Usually this means the macro was only invoked conditionally." >&2;}
16919 { (exit 1); exit 1; }; }
16921 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16922 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16923 Usually this means the macro was only invoked conditionally." >&5
16924 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16925 Usually this means the macro was only invoked conditionally." >&2;}
16926 { (exit 1); exit 1; }; }
16929 : ${CONFIG_STATUS=./config.status}
16930 ac_clean_files_save=$ac_clean_files
16931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16932 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16933 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16934 cat >$CONFIG_STATUS <<_ACEOF
16935 #! $SHELL
16936 # Generated by $as_me.
16937 # Run this file to recreate the current configuration.
16938 # Compiler output produced by configure, useful for debugging
16939 # configure, is in config.log if it exists.
16941 debug=false
16942 ac_cs_recheck=false
16943 ac_cs_silent=false
16944 SHELL=\${CONFIG_SHELL-$SHELL}
16945 _ACEOF
16947 cat >>$CONFIG_STATUS <<\_ACEOF
16948 ## --------------------- ##
16949 ## M4sh Initialization. ##
16950 ## --------------------- ##
16952 # Be Bourne compatible
16953 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16954 emulate sh
16955 NULLCMD=:
16956 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16957 # is contrary to our usage. Disable this feature.
16958 alias -g '${1+"$@"}'='"$@"'
16959 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16960 set -o posix
16962 DUALCASE=1; export DUALCASE # for MKS sh
16964 # Support unset when possible.
16965 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16966 as_unset=unset
16967 else
16968 as_unset=false
16972 # Work around bugs in pre-3.0 UWIN ksh.
16973 $as_unset ENV MAIL MAILPATH
16974 PS1='$ '
16975 PS2='> '
16976 PS4='+ '
16978 # NLS nuisances.
16979 for as_var in \
16980 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16981 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16982 LC_TELEPHONE LC_TIME
16984 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16985 eval $as_var=C; export $as_var
16986 else
16987 $as_unset $as_var
16989 done
16991 # Required to use basename.
16992 if expr a : '\(a\)' >/dev/null 2>&1; then
16993 as_expr=expr
16994 else
16995 as_expr=false
16998 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16999 as_basename=basename
17000 else
17001 as_basename=false
17005 # Name of the executable.
17006 as_me=`$as_basename "$0" ||
17007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17008 X"$0" : 'X\(//\)$' \| \
17009 X"$0" : 'X\(/\)$' \| \
17010 . : '\(.\)' 2>/dev/null ||
17011 echo X/"$0" |
17012 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17013 /^X\/\(\/\/\)$/{ s//\1/; q; }
17014 /^X\/\(\/\).*/{ s//\1/; q; }
17015 s/.*/./; q'`
17018 # PATH needs CR, and LINENO needs CR and PATH.
17019 # Avoid depending upon Character Ranges.
17020 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17021 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17022 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17023 as_cr_digits='0123456789'
17024 as_cr_alnum=$as_cr_Letters$as_cr_digits
17026 # The user is always right.
17027 if test "${PATH_SEPARATOR+set}" != set; then
17028 echo "#! /bin/sh" >conf$$.sh
17029 echo "exit 0" >>conf$$.sh
17030 chmod +x conf$$.sh
17031 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17032 PATH_SEPARATOR=';'
17033 else
17034 PATH_SEPARATOR=:
17036 rm -f conf$$.sh
17040 as_lineno_1=$LINENO
17041 as_lineno_2=$LINENO
17042 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17043 test "x$as_lineno_1" != "x$as_lineno_2" &&
17044 test "x$as_lineno_3" = "x$as_lineno_2" || {
17045 # Find who we are. Look in the path if we contain no path at all
17046 # relative or not.
17047 case $0 in
17048 *[\\/]* ) as_myself=$0 ;;
17049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17052 IFS=$as_save_IFS
17053 test -z "$as_dir" && as_dir=.
17054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17055 done
17058 esac
17059 # We did not find ourselves, most probably we were run as `sh COMMAND'
17060 # in which case we are not to be found in the path.
17061 if test "x$as_myself" = x; then
17062 as_myself=$0
17064 if test ! -f "$as_myself"; then
17065 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17066 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17067 { (exit 1); exit 1; }; }
17069 case $CONFIG_SHELL in
17071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17072 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17074 IFS=$as_save_IFS
17075 test -z "$as_dir" && as_dir=.
17076 for as_base in sh bash ksh sh5; do
17077 case $as_dir in
17079 if ("$as_dir/$as_base" -c '
17080 as_lineno_1=$LINENO
17081 as_lineno_2=$LINENO
17082 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17083 test "x$as_lineno_1" != "x$as_lineno_2" &&
17084 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17085 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17086 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17087 CONFIG_SHELL=$as_dir/$as_base
17088 export CONFIG_SHELL
17089 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17090 fi;;
17091 esac
17092 done
17093 done
17095 esac
17097 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17098 # uniformly replaced by the line number. The first 'sed' inserts a
17099 # line-number line before each line; the second 'sed' does the real
17100 # work. The second script uses 'N' to pair each line-number line
17101 # with the numbered line, and appends trailing '-' during
17102 # substitution so that $LINENO is not a special case at line end.
17103 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17104 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17105 sed '=' <$as_myself |
17106 sed '
17108 s,$,-,
17109 : loop
17110 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17111 t loop
17112 s,-$,,
17113 s,^['$as_cr_digits']*\n,,
17114 ' >$as_me.lineno &&
17115 chmod +x $as_me.lineno ||
17116 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17117 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17118 { (exit 1); exit 1; }; }
17120 # Don't try to exec as it changes $[0], causing all sort of problems
17121 # (the dirname of $[0] is not the place where we might find the
17122 # original and so on. Autoconf is especially sensible to this).
17123 . ./$as_me.lineno
17124 # Exit status is that of the last command.
17125 exit
17129 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17130 *c*,-n*) ECHO_N= ECHO_C='
17131 ' ECHO_T=' ' ;;
17132 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17133 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17134 esac
17136 if expr a : '\(a\)' >/dev/null 2>&1; then
17137 as_expr=expr
17138 else
17139 as_expr=false
17142 rm -f conf$$ conf$$.exe conf$$.file
17143 echo >conf$$.file
17144 if ln -s conf$$.file conf$$ 2>/dev/null; then
17145 # We could just check for DJGPP; but this test a) works b) is more generic
17146 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17147 if test -f conf$$.exe; then
17148 # Don't use ln at all; we don't have any links
17149 as_ln_s='cp -p'
17150 else
17151 as_ln_s='ln -s'
17153 elif ln conf$$.file conf$$ 2>/dev/null; then
17154 as_ln_s=ln
17155 else
17156 as_ln_s='cp -p'
17158 rm -f conf$$ conf$$.exe conf$$.file
17160 if mkdir -p . 2>/dev/null; then
17161 as_mkdir_p=:
17162 else
17163 test -d ./-p && rmdir ./-p
17164 as_mkdir_p=false
17167 as_executable_p="test -f"
17169 # Sed expression to map a string onto a valid CPP name.
17170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17172 # Sed expression to map a string onto a valid variable name.
17173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17176 # IFS
17177 # We need space, tab and new line, in precisely that order.
17178 as_nl='
17180 IFS=" $as_nl"
17182 # CDPATH.
17183 $as_unset CDPATH
17185 exec 6>&1
17187 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17188 # report actual input values of CONFIG_FILES etc. instead of their
17189 # values after options handling. Logging --version etc. is OK.
17190 exec 5>>config.log
17192 echo
17193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17194 ## Running $as_me. ##
17195 _ASBOX
17196 } >&5
17197 cat >&5 <<_CSEOF
17199 This file was extended by libjava $as_me version-unused, which was
17200 generated by GNU Autoconf 2.59. Invocation command line was
17202 CONFIG_FILES = $CONFIG_FILES
17203 CONFIG_HEADERS = $CONFIG_HEADERS
17204 CONFIG_LINKS = $CONFIG_LINKS
17205 CONFIG_COMMANDS = $CONFIG_COMMANDS
17206 $ $0 $@
17208 _CSEOF
17209 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17210 echo >&5
17211 _ACEOF
17213 # Files that config.status was made for.
17214 if test -n "$ac_config_files"; then
17215 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17218 if test -n "$ac_config_headers"; then
17219 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17222 if test -n "$ac_config_links"; then
17223 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17226 if test -n "$ac_config_commands"; then
17227 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17230 cat >>$CONFIG_STATUS <<\_ACEOF
17232 ac_cs_usage="\
17233 \`$as_me' instantiates files from templates according to the
17234 current configuration.
17236 Usage: $0 [OPTIONS] [FILE]...
17238 -h, --help print this help, then exit
17239 -V, --version print version number, then exit
17240 -q, --quiet do not print progress messages
17241 -d, --debug don't remove temporary files
17242 --recheck update $as_me by reconfiguring in the same conditions
17243 --file=FILE[:TEMPLATE]
17244 instantiate the configuration file FILE
17245 --header=FILE[:TEMPLATE]
17246 instantiate the configuration header FILE
17248 Configuration files:
17249 $config_files
17251 Configuration headers:
17252 $config_headers
17254 Configuration links:
17255 $config_links
17257 Configuration commands:
17258 $config_commands
17260 Report bugs to <bug-autoconf@gnu.org>."
17261 _ACEOF
17263 cat >>$CONFIG_STATUS <<_ACEOF
17264 ac_cs_version="\\
17265 libjava config.status version-unused
17266 configured by $0, generated by GNU Autoconf 2.59,
17267 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17269 Copyright (C) 2003 Free Software Foundation, Inc.
17270 This config.status script is free software; the Free Software Foundation
17271 gives unlimited permission to copy, distribute and modify it."
17272 srcdir=$srcdir
17273 INSTALL="$INSTALL"
17274 _ACEOF
17276 cat >>$CONFIG_STATUS <<\_ACEOF
17277 # If no file are specified by the user, then we need to provide default
17278 # value. By we need to know if files were specified by the user.
17279 ac_need_defaults=:
17280 while test $# != 0
17282 case $1 in
17283 --*=*)
17284 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17285 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17286 ac_shift=:
17289 ac_option=$1
17290 ac_optarg=$2
17291 ac_shift=shift
17293 *) # This is not an option, so the user has probably given explicit
17294 # arguments.
17295 ac_option=$1
17296 ac_need_defaults=false;;
17297 esac
17299 case $ac_option in
17300 # Handling of the options.
17301 _ACEOF
17302 cat >>$CONFIG_STATUS <<\_ACEOF
17303 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17304 ac_cs_recheck=: ;;
17305 --version | --vers* | -V )
17306 echo "$ac_cs_version"; exit 0 ;;
17307 --he | --h)
17308 # Conflict between --help and --header
17309 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17310 Try \`$0 --help' for more information." >&5
17311 echo "$as_me: error: ambiguous option: $1
17312 Try \`$0 --help' for more information." >&2;}
17313 { (exit 1); exit 1; }; };;
17314 --help | --hel | -h )
17315 echo "$ac_cs_usage"; exit 0 ;;
17316 --debug | --d* | -d )
17317 debug=: ;;
17318 --file | --fil | --fi | --f )
17319 $ac_shift
17320 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17321 ac_need_defaults=false;;
17322 --header | --heade | --head | --hea )
17323 $ac_shift
17324 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17325 ac_need_defaults=false;;
17326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17327 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17328 ac_cs_silent=: ;;
17330 # This is an error.
17331 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17332 Try \`$0 --help' for more information." >&5
17333 echo "$as_me: error: unrecognized option: $1
17334 Try \`$0 --help' for more information." >&2;}
17335 { (exit 1); exit 1; }; } ;;
17337 *) ac_config_targets="$ac_config_targets $1" ;;
17339 esac
17340 shift
17341 done
17343 ac_configure_extra_args=
17345 if $ac_cs_silent; then
17346 exec 6>/dev/null
17347 ac_configure_extra_args="$ac_configure_extra_args --silent"
17350 _ACEOF
17351 cat >>$CONFIG_STATUS <<_ACEOF
17352 if \$ac_cs_recheck; then
17353 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17354 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17357 _ACEOF
17359 cat >>$CONFIG_STATUS <<_ACEOF
17361 # INIT-COMMANDS section.
17364 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17365 srcdir=${srcdir}
17366 host=${host}
17367 target=${target}
17368 with_multisubdir=${with_multisubdir}
17369 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17370 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17371 libgcj_basedir=${libgcj_basedir}
17372 CC="${CC}"
17373 CXX="${CXX}"
17374 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17377 _ACEOF
17381 cat >>$CONFIG_STATUS <<\_ACEOF
17382 for ac_config_target in $ac_config_targets
17384 case "$ac_config_target" in
17385 # Handling of arguments.
17386 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17387 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17388 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17389 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17390 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17391 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17392 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17393 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17394 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17395 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17396 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17397 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17398 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17399 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17400 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17401 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17402 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17403 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17404 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17405 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17406 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17407 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17408 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17409 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17410 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17411 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17412 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17413 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17414 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17415 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17416 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17417 { (exit 1); exit 1; }; };;
17418 esac
17419 done
17421 # If the user did not use the arguments to specify the items to instantiate,
17422 # then the envvar interface is used. Set only those that are not.
17423 # We use the long form for the default assignment because of an extremely
17424 # bizarre bug on SunOS 4.1.3.
17425 if $ac_need_defaults; then
17426 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17427 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17428 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17429 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17432 # Have a temporary directory for convenience. Make it in the build tree
17433 # simply because there is no reason to put it here, and in addition,
17434 # creating and moving files from /tmp can sometimes cause problems.
17435 # Create a temporary directory, and hook for its removal unless debugging.
17436 $debug ||
17438 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17439 trap '{ (exit 1); exit 1; }' 1 2 13 15
17442 # Create a (secure) tmp directory for tmp files.
17445 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17446 test -n "$tmp" && test -d "$tmp"
17447 } ||
17449 tmp=./confstat$$-$RANDOM
17450 (umask 077 && mkdir $tmp)
17451 } ||
17453 echo "$me: cannot create a temporary directory in ." >&2
17454 { (exit 1); exit 1; }
17457 _ACEOF
17459 cat >>$CONFIG_STATUS <<_ACEOF
17462 # CONFIG_FILES section.
17465 # No need to generate the scripts if there are no CONFIG_FILES.
17466 # This happens for instance when ./config.status config.h
17467 if test -n "\$CONFIG_FILES"; then
17468 # Protect against being on the right side of a sed subst in config.status.
17469 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17470 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17471 s,@SHELL@,$SHELL,;t t
17472 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17473 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17474 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17475 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17476 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17477 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17478 s,@exec_prefix@,$exec_prefix,;t t
17479 s,@prefix@,$prefix,;t t
17480 s,@program_transform_name@,$program_transform_name,;t t
17481 s,@bindir@,$bindir,;t t
17482 s,@sbindir@,$sbindir,;t t
17483 s,@libexecdir@,$libexecdir,;t t
17484 s,@datadir@,$datadir,;t t
17485 s,@sysconfdir@,$sysconfdir,;t t
17486 s,@sharedstatedir@,$sharedstatedir,;t t
17487 s,@localstatedir@,$localstatedir,;t t
17488 s,@libdir@,$libdir,;t t
17489 s,@includedir@,$includedir,;t t
17490 s,@oldincludedir@,$oldincludedir,;t t
17491 s,@infodir@,$infodir,;t t
17492 s,@mandir@,$mandir,;t t
17493 s,@build_alias@,$build_alias,;t t
17494 s,@host_alias@,$host_alias,;t t
17495 s,@target_alias@,$target_alias,;t t
17496 s,@DEFS@,$DEFS,;t t
17497 s,@ECHO_C@,$ECHO_C,;t t
17498 s,@ECHO_N@,$ECHO_N,;t t
17499 s,@ECHO_T@,$ECHO_T,;t t
17500 s,@LIBS@,$LIBS,;t t
17501 s,@build@,$build,;t t
17502 s,@build_cpu@,$build_cpu,;t t
17503 s,@build_vendor@,$build_vendor,;t t
17504 s,@build_os@,$build_os,;t t
17505 s,@build_subdir@,$build_subdir,;t t
17506 s,@host_subdir@,$host_subdir,;t t
17507 s,@target_subdir@,$target_subdir,;t t
17508 s,@libgcj_basedir@,$libgcj_basedir,;t t
17509 s,@host@,$host,;t t
17510 s,@host_cpu@,$host_cpu,;t t
17511 s,@host_vendor@,$host_vendor,;t t
17512 s,@host_os@,$host_os,;t t
17513 s,@target@,$target,;t t
17514 s,@target_cpu@,$target_cpu,;t t
17515 s,@target_vendor@,$target_vendor,;t t
17516 s,@target_os@,$target_os,;t t
17517 s,@target_noncanonical@,$target_noncanonical,;t t
17518 s,@LN_S@,$LN_S,;t t
17519 s,@mkinstalldirs@,$mkinstalldirs,;t t
17520 s,@CC@,$CC,;t t
17521 s,@ac_ct_CC@,$ac_ct_CC,;t t
17522 s,@EXEEXT@,$EXEEXT,;t t
17523 s,@OBJEXT@,$OBJEXT,;t t
17524 s,@CXX@,$CXX,;t t
17525 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17526 s,@CFLAGS@,$CFLAGS,;t t
17527 s,@CXXFLAGS@,$CXXFLAGS,;t t
17528 s,@LDFLAGS@,$LDFLAGS,;t t
17529 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17530 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17531 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17532 s,@CYGPATH_W@,$CYGPATH_W,;t t
17533 s,@PACKAGE@,$PACKAGE,;t t
17534 s,@VERSION@,$VERSION,;t t
17535 s,@ACLOCAL@,$ACLOCAL,;t t
17536 s,@AUTOCONF@,$AUTOCONF,;t t
17537 s,@AUTOMAKE@,$AUTOMAKE,;t t
17538 s,@AUTOHEADER@,$AUTOHEADER,;t t
17539 s,@MAKEINFO@,$MAKEINFO,;t t
17540 s,@install_sh@,$install_sh,;t t
17541 s,@STRIP@,$STRIP,;t t
17542 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17543 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17544 s,@mkdir_p@,$mkdir_p,;t t
17545 s,@AWK@,$AWK,;t t
17546 s,@SET_MAKE@,$SET_MAKE,;t t
17547 s,@am__leading_dot@,$am__leading_dot,;t t
17548 s,@AMTAR@,$AMTAR,;t t
17549 s,@am__tar@,$am__tar,;t t
17550 s,@am__untar@,$am__untar,;t t
17551 s,@DEPDIR@,$DEPDIR,;t t
17552 s,@am__include@,$am__include,;t t
17553 s,@am__quote@,$am__quote,;t t
17554 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17555 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17556 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17557 s,@CCDEPMODE@,$CCDEPMODE,;t t
17558 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17559 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17560 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17561 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17562 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17563 s,@AS@,$AS,;t t
17564 s,@ac_ct_AS@,$ac_ct_AS,;t t
17565 s,@LD@,$LD,;t t
17566 s,@ac_ct_LD@,$ac_ct_LD,;t t
17567 s,@AR@,$AR,;t t
17568 s,@ac_ct_AR@,$ac_ct_AR,;t t
17569 s,@RANLIB@,$RANLIB,;t t
17570 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17571 s,@JAR@,$JAR,;t t
17572 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17573 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17574 s,@MAINT@,$MAINT,;t t
17575 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17576 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17577 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17578 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17579 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17580 s,@TOOLKIT@,$TOOLKIT,;t t
17581 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17582 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17583 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17584 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17585 s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17586 s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17587 s,@GCJH@,$GCJH,;t t
17588 s,@INCLTDL@,$INCLTDL,;t t
17589 s,@LIBLTDL@,$LIBLTDL,;t t
17590 s,@DIRLTDL@,$DIRLTDL,;t t
17591 s,@LIBTOOL@,$LIBTOOL,;t t
17592 s,@CXXCPP@,$CXXCPP,;t t
17593 s,@CPPFLAGS@,$CPPFLAGS,;t t
17594 s,@GCJ@,$GCJ,;t t
17595 s,@GCJFLAGS@,$GCJFLAGS,;t t
17596 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17597 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17598 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17599 s,@subdirs@,$subdirs,;t t
17600 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17601 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17602 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17603 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17604 s,@JAVA_HOME@,$JAVA_HOME,;t t
17605 s,@INTERPRETER@,$INTERPRETER,;t t
17606 s,@LIBFFI@,$LIBFFI,;t t
17607 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17608 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17609 s,@CPP@,$CPP,;t t
17610 s,@EGREP@,$EGREP,;t t
17611 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17612 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17613 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17614 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17615 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17616 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17617 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17618 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17619 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17620 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17621 s,@X_CFLAGS@,$X_CFLAGS,;t t
17622 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17623 s,@X_LIBS@,$X_LIBS,;t t
17624 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17625 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17626 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17627 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17628 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17629 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17630 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17631 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17632 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17633 s,@GCLIBS@,$GCLIBS,;t t
17634 s,@GCINCS@,$GCINCS,;t t
17635 s,@GCDEPS@,$GCDEPS,;t t
17636 s,@GCSPEC@,$GCSPEC,;t t
17637 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17638 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17639 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17640 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17641 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17642 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17643 s,@THREADLIBS@,$THREADLIBS,;t t
17644 s,@THREADINCS@,$THREADINCS,;t t
17645 s,@THREADDEPS@,$THREADDEPS,;t t
17646 s,@THREADSPEC@,$THREADSPEC,;t t
17647 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17648 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17649 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17650 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17651 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17652 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17653 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17654 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17655 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17656 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17657 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17658 s,@LIBICONV@,$LIBICONV,;t t
17659 s,@LTLIBICONV@,$LTLIBICONV,;t t
17660 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17661 s,@GTK_LIBS@,$GTK_LIBS,;t t
17662 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17663 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17664 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17665 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17666 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17667 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17668 s,@ZLIBS@,$ZLIBS,;t t
17669 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17670 s,@ZINCS@,$ZINCS,;t t
17671 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17672 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17673 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17674 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17675 s,@IEEESPEC@,$IEEESPEC,;t t
17676 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17677 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17678 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17679 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17680 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17681 s,@toolexecdir@,$toolexecdir,;t t
17682 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17683 s,@toolexeclibdir@,$toolexeclibdir,;t t
17684 s,@dbexecdir@,$dbexecdir,;t t
17685 s,@GCJVERSION@,$GCJVERSION,;t t
17686 s,@gxx_include_dir@,$gxx_include_dir,;t t
17687 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17688 s,@ALLOCA@,$ALLOCA,;t t
17689 s,@PERL@,$PERL,;t t
17690 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17691 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17692 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17693 s,@here@,$here,;t t
17694 s,@LIBOBJS@,$LIBOBJS,;t t
17695 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17696 CEOF
17698 _ACEOF
17700 cat >>$CONFIG_STATUS <<\_ACEOF
17701 # Split the substitutions into bite-sized pieces for seds with
17702 # small command number limits, like on Digital OSF/1 and HP-UX.
17703 ac_max_sed_lines=48
17704 ac_sed_frag=1 # Number of current file.
17705 ac_beg=1 # First line for current file.
17706 ac_end=$ac_max_sed_lines # Line after last line for current file.
17707 ac_more_lines=:
17708 ac_sed_cmds=
17709 while $ac_more_lines; do
17710 if test $ac_beg -gt 1; then
17711 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17712 else
17713 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17715 if test ! -s $tmp/subs.frag; then
17716 ac_more_lines=false
17717 else
17718 # The purpose of the label and of the branching condition is to
17719 # speed up the sed processing (if there are no `@' at all, there
17720 # is no need to browse any of the substitutions).
17721 # These are the two extra sed commands mentioned above.
17722 (echo ':t
17723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17724 if test -z "$ac_sed_cmds"; then
17725 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17726 else
17727 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17729 ac_sed_frag=`expr $ac_sed_frag + 1`
17730 ac_beg=$ac_end
17731 ac_end=`expr $ac_end + $ac_max_sed_lines`
17733 done
17734 if test -z "$ac_sed_cmds"; then
17735 ac_sed_cmds=cat
17737 fi # test -n "$CONFIG_FILES"
17739 _ACEOF
17740 cat >>$CONFIG_STATUS <<\_ACEOF
17741 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17743 case $ac_file in
17744 - | *:- | *:-:* ) # input from stdin
17745 cat >$tmp/stdin
17746 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17747 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17748 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17750 * ) ac_file_in=$ac_file.in ;;
17751 esac
17753 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17754 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17756 X"$ac_file" : 'X\(//\)[^/]' \| \
17757 X"$ac_file" : 'X\(//\)$' \| \
17758 X"$ac_file" : 'X\(/\)' \| \
17759 . : '\(.\)' 2>/dev/null ||
17760 echo X"$ac_file" |
17761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17763 /^X\(\/\/\)$/{ s//\1/; q; }
17764 /^X\(\/\).*/{ s//\1/; q; }
17765 s/.*/./; q'`
17766 { if $as_mkdir_p; then
17767 mkdir -p "$ac_dir"
17768 else
17769 as_dir="$ac_dir"
17770 as_dirs=
17771 while test ! -d "$as_dir"; do
17772 as_dirs="$as_dir $as_dirs"
17773 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17775 X"$as_dir" : 'X\(//\)[^/]' \| \
17776 X"$as_dir" : 'X\(//\)$' \| \
17777 X"$as_dir" : 'X\(/\)' \| \
17778 . : '\(.\)' 2>/dev/null ||
17779 echo X"$as_dir" |
17780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17782 /^X\(\/\/\)$/{ s//\1/; q; }
17783 /^X\(\/\).*/{ s//\1/; q; }
17784 s/.*/./; q'`
17785 done
17786 test ! -n "$as_dirs" || mkdir $as_dirs
17787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17789 { (exit 1); exit 1; }; }; }
17791 ac_builddir=.
17793 if test "$ac_dir" != .; then
17794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17795 # A "../" for each directory in $ac_dir_suffix.
17796 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17797 else
17798 ac_dir_suffix= ac_top_builddir=
17801 case $srcdir in
17802 .) # No --srcdir option. We are building in place.
17803 ac_srcdir=.
17804 if test -z "$ac_top_builddir"; then
17805 ac_top_srcdir=.
17806 else
17807 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17808 fi ;;
17809 [\\/]* | ?:[\\/]* ) # Absolute path.
17810 ac_srcdir=$srcdir$ac_dir_suffix;
17811 ac_top_srcdir=$srcdir ;;
17812 *) # Relative path.
17813 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17814 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17815 esac
17817 # Do not use `cd foo && pwd` to compute absolute paths, because
17818 # the directories may not exist.
17819 case `pwd` in
17820 .) ac_abs_builddir="$ac_dir";;
17822 case "$ac_dir" in
17823 .) ac_abs_builddir=`pwd`;;
17824 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17825 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17826 esac;;
17827 esac
17828 case $ac_abs_builddir in
17829 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17831 case ${ac_top_builddir}. in
17832 .) ac_abs_top_builddir=$ac_abs_builddir;;
17833 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17834 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17835 esac;;
17836 esac
17837 case $ac_abs_builddir in
17838 .) ac_abs_srcdir=$ac_srcdir;;
17840 case $ac_srcdir in
17841 .) ac_abs_srcdir=$ac_abs_builddir;;
17842 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17843 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17844 esac;;
17845 esac
17846 case $ac_abs_builddir in
17847 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17849 case $ac_top_srcdir in
17850 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17851 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17852 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17853 esac;;
17854 esac
17857 case $INSTALL in
17858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17859 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17860 esac
17862 if test x"$ac_file" != x-; then
17863 { echo "$as_me:$LINENO: creating $ac_file" >&5
17864 echo "$as_me: creating $ac_file" >&6;}
17865 rm -f "$ac_file"
17867 # Let's still pretend it is `configure' which instantiates (i.e., don't
17868 # use $as_me), people would be surprised to read:
17869 # /* config.h. Generated by config.status. */
17870 if test x"$ac_file" = x-; then
17871 configure_input=
17872 else
17873 configure_input="$ac_file. "
17875 configure_input=$configure_input"Generated from `echo $ac_file_in |
17876 sed 's,.*/,,'` by configure."
17878 # First look for the input files in the build tree, otherwise in the
17879 # src tree.
17880 ac_file_inputs=`IFS=:
17881 for f in $ac_file_in; do
17882 case $f in
17883 -) echo $tmp/stdin ;;
17884 [\\/$]*)
17885 # Absolute (can't be DOS-style, as IFS=:)
17886 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17887 echo "$as_me: error: cannot find input file: $f" >&2;}
17888 { (exit 1); exit 1; }; }
17889 echo "$f";;
17890 *) # Relative
17891 if test -f "$f"; then
17892 # Build tree
17893 echo "$f"
17894 elif test -f "$srcdir/$f"; then
17895 # Source tree
17896 echo "$srcdir/$f"
17897 else
17898 # /dev/null tree
17899 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17900 echo "$as_me: error: cannot find input file: $f" >&2;}
17901 { (exit 1); exit 1; }; }
17902 fi;;
17903 esac
17904 done` || { (exit 1); exit 1; }
17905 _ACEOF
17906 cat >>$CONFIG_STATUS <<_ACEOF
17907 sed "$ac_vpsub
17908 $extrasub
17909 _ACEOF
17910 cat >>$CONFIG_STATUS <<\_ACEOF
17912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17913 s,@configure_input@,$configure_input,;t t
17914 s,@srcdir@,$ac_srcdir,;t t
17915 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17916 s,@top_srcdir@,$ac_top_srcdir,;t t
17917 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17918 s,@builddir@,$ac_builddir,;t t
17919 s,@abs_builddir@,$ac_abs_builddir,;t t
17920 s,@top_builddir@,$ac_top_builddir,;t t
17921 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17922 s,@INSTALL@,$ac_INSTALL,;t t
17923 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17924 rm -f $tmp/stdin
17925 if test x"$ac_file" != x-; then
17926 mv $tmp/out $ac_file
17927 else
17928 cat $tmp/out
17929 rm -f $tmp/out
17932 done
17933 _ACEOF
17934 cat >>$CONFIG_STATUS <<\_ACEOF
17937 # CONFIG_HEADER section.
17940 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17941 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17943 # ac_d sets the value in "#define NAME VALUE" lines.
17944 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17945 ac_dB='[ ].*$,\1#\2'
17946 ac_dC=' '
17947 ac_dD=',;t'
17948 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17949 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17950 ac_uB='$,\1#\2define\3'
17951 ac_uC=' '
17952 ac_uD=',;t'
17954 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17956 case $ac_file in
17957 - | *:- | *:-:* ) # input from stdin
17958 cat >$tmp/stdin
17959 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17960 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17961 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17962 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17963 * ) ac_file_in=$ac_file.in ;;
17964 esac
17966 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17967 echo "$as_me: creating $ac_file" >&6;}
17969 # First look for the input files in the build tree, otherwise in the
17970 # src tree.
17971 ac_file_inputs=`IFS=:
17972 for f in $ac_file_in; do
17973 case $f in
17974 -) echo $tmp/stdin ;;
17975 [\\/$]*)
17976 # Absolute (can't be DOS-style, as IFS=:)
17977 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17978 echo "$as_me: error: cannot find input file: $f" >&2;}
17979 { (exit 1); exit 1; }; }
17980 # Do quote $f, to prevent DOS paths from being IFS'd.
17981 echo "$f";;
17982 *) # Relative
17983 if test -f "$f"; then
17984 # Build tree
17985 echo "$f"
17986 elif test -f "$srcdir/$f"; then
17987 # Source tree
17988 echo "$srcdir/$f"
17989 else
17990 # /dev/null tree
17991 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17992 echo "$as_me: error: cannot find input file: $f" >&2;}
17993 { (exit 1); exit 1; }; }
17994 fi;;
17995 esac
17996 done` || { (exit 1); exit 1; }
17997 # Remove the trailing spaces.
17998 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18000 _ACEOF
18002 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18003 # `conftest.undefs', that substitutes the proper values into
18004 # config.h.in to produce config.h. The first handles `#define'
18005 # templates, and the second `#undef' templates.
18006 # And first: Protect against being on the right side of a sed subst in
18007 # config.status. Protect against being in an unquoted here document
18008 # in config.status.
18009 rm -f conftest.defines conftest.undefs
18010 # Using a here document instead of a string reduces the quoting nightmare.
18011 # Putting comments in sed scripts is not portable.
18013 # `end' is used to avoid that the second main sed command (meant for
18014 # 0-ary CPP macros) applies to n-ary macro definitions.
18015 # See the Autoconf documentation for `clear'.
18016 cat >confdef2sed.sed <<\_ACEOF
18017 s/[\\&,]/\\&/g
18018 s,[\\$`],\\&,g
18019 t clear
18020 : clear
18021 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18022 t end
18023 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18024 : end
18025 _ACEOF
18026 # If some macros were called several times there might be several times
18027 # the same #defines, which is useless. Nevertheless, we may not want to
18028 # sort them, since we want the *last* AC-DEFINE to be honored.
18029 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18030 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18031 rm -f confdef2sed.sed
18033 # This sed command replaces #undef with comments. This is necessary, for
18034 # example, in the case of _POSIX_SOURCE, which is predefined and required
18035 # on some systems where configure will not decide to define it.
18036 cat >>conftest.undefs <<\_ACEOF
18037 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18038 _ACEOF
18040 # Break up conftest.defines because some shells have a limit on the size
18041 # of here documents, and old seds have small limits too (100 cmds).
18042 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18043 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18044 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18045 echo ' :' >>$CONFIG_STATUS
18046 rm -f conftest.tail
18047 while grep . conftest.defines >/dev/null
18049 # Write a limited-size here document to $tmp/defines.sed.
18050 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18051 # Speed up: don't consider the non `#define' lines.
18052 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18053 # Work around the forget-to-reset-the-flag bug.
18054 echo 't clr' >>$CONFIG_STATUS
18055 echo ': clr' >>$CONFIG_STATUS
18056 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18057 echo 'CEOF
18058 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18059 rm -f $tmp/in
18060 mv $tmp/out $tmp/in
18061 ' >>$CONFIG_STATUS
18062 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18063 rm -f conftest.defines
18064 mv conftest.tail conftest.defines
18065 done
18066 rm -f conftest.defines
18067 echo ' fi # grep' >>$CONFIG_STATUS
18068 echo >>$CONFIG_STATUS
18070 # Break up conftest.undefs because some shells have a limit on the size
18071 # of here documents, and old seds have small limits too (100 cmds).
18072 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18073 rm -f conftest.tail
18074 while grep . conftest.undefs >/dev/null
18076 # Write a limited-size here document to $tmp/undefs.sed.
18077 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18078 # Speed up: don't consider the non `#undef'
18079 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18080 # Work around the forget-to-reset-the-flag bug.
18081 echo 't clr' >>$CONFIG_STATUS
18082 echo ': clr' >>$CONFIG_STATUS
18083 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18084 echo 'CEOF
18085 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18086 rm -f $tmp/in
18087 mv $tmp/out $tmp/in
18088 ' >>$CONFIG_STATUS
18089 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18090 rm -f conftest.undefs
18091 mv conftest.tail conftest.undefs
18092 done
18093 rm -f conftest.undefs
18095 cat >>$CONFIG_STATUS <<\_ACEOF
18096 # Let's still pretend it is `configure' which instantiates (i.e., don't
18097 # use $as_me), people would be surprised to read:
18098 # /* config.h. Generated by config.status. */
18099 if test x"$ac_file" = x-; then
18100 echo "/* Generated by configure. */" >$tmp/config.h
18101 else
18102 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18104 cat $tmp/in >>$tmp/config.h
18105 rm -f $tmp/in
18106 if test x"$ac_file" != x-; then
18107 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18109 echo "$as_me: $ac_file is unchanged" >&6;}
18110 else
18111 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18113 X"$ac_file" : 'X\(//\)[^/]' \| \
18114 X"$ac_file" : 'X\(//\)$' \| \
18115 X"$ac_file" : 'X\(/\)' \| \
18116 . : '\(.\)' 2>/dev/null ||
18117 echo X"$ac_file" |
18118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18120 /^X\(\/\/\)$/{ s//\1/; q; }
18121 /^X\(\/\).*/{ s//\1/; q; }
18122 s/.*/./; q'`
18123 { if $as_mkdir_p; then
18124 mkdir -p "$ac_dir"
18125 else
18126 as_dir="$ac_dir"
18127 as_dirs=
18128 while test ! -d "$as_dir"; do
18129 as_dirs="$as_dir $as_dirs"
18130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18132 X"$as_dir" : 'X\(//\)[^/]' \| \
18133 X"$as_dir" : 'X\(//\)$' \| \
18134 X"$as_dir" : 'X\(/\)' \| \
18135 . : '\(.\)' 2>/dev/null ||
18136 echo X"$as_dir" |
18137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18139 /^X\(\/\/\)$/{ s//\1/; q; }
18140 /^X\(\/\).*/{ s//\1/; q; }
18141 s/.*/./; q'`
18142 done
18143 test ! -n "$as_dirs" || mkdir $as_dirs
18144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18146 { (exit 1); exit 1; }; }; }
18148 rm -f $ac_file
18149 mv $tmp/config.h $ac_file
18151 else
18152 cat $tmp/config.h
18153 rm -f $tmp/config.h
18155 # Compute $ac_file's index in $config_headers.
18156 _am_stamp_count=1
18157 for _am_header in $config_headers :; do
18158 case $_am_header in
18159 $ac_file | $ac_file:* )
18160 break ;;
18162 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18163 esac
18164 done
18165 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18166 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18167 X$ac_file : 'X\(//\)[^/]' \| \
18168 X$ac_file : 'X\(//\)$' \| \
18169 X$ac_file : 'X\(/\)' \| \
18170 . : '\(.\)' 2>/dev/null ||
18171 echo X$ac_file |
18172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18174 /^X\(\/\/\)$/{ s//\1/; q; }
18175 /^X\(\/\).*/{ s//\1/; q; }
18176 s/.*/./; q'`/stamp-h$_am_stamp_count
18177 done
18178 _ACEOF
18179 cat >>$CONFIG_STATUS <<\_ACEOF
18182 # CONFIG_LINKS section.
18185 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18186 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18187 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18189 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18190 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18192 if test ! -r $srcdir/$ac_source; then
18193 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18194 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18195 { (exit 1); exit 1; }; }
18197 rm -f $ac_dest
18199 # Make relative symlinks.
18200 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18201 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18202 X"$ac_dest" : 'X\(//\)[^/]' \| \
18203 X"$ac_dest" : 'X\(//\)$' \| \
18204 X"$ac_dest" : 'X\(/\)' \| \
18205 . : '\(.\)' 2>/dev/null ||
18206 echo X"$ac_dest" |
18207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18209 /^X\(\/\/\)$/{ s//\1/; q; }
18210 /^X\(\/\).*/{ s//\1/; q; }
18211 s/.*/./; q'`
18212 { if $as_mkdir_p; then
18213 mkdir -p "$ac_dest_dir"
18214 else
18215 as_dir="$ac_dest_dir"
18216 as_dirs=
18217 while test ! -d "$as_dir"; do
18218 as_dirs="$as_dir $as_dirs"
18219 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18220 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18221 X"$as_dir" : 'X\(//\)[^/]' \| \
18222 X"$as_dir" : 'X\(//\)$' \| \
18223 X"$as_dir" : 'X\(/\)' \| \
18224 . : '\(.\)' 2>/dev/null ||
18225 echo X"$as_dir" |
18226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18228 /^X\(\/\/\)$/{ s//\1/; q; }
18229 /^X\(\/\).*/{ s//\1/; q; }
18230 s/.*/./; q'`
18231 done
18232 test ! -n "$as_dirs" || mkdir $as_dirs
18233 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18234 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18235 { (exit 1); exit 1; }; }; }
18237 ac_builddir=.
18239 if test "$ac_dest_dir" != .; then
18240 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18241 # A "../" for each directory in $ac_dir_suffix.
18242 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18243 else
18244 ac_dir_suffix= ac_top_builddir=
18247 case $srcdir in
18248 .) # No --srcdir option. We are building in place.
18249 ac_srcdir=.
18250 if test -z "$ac_top_builddir"; then
18251 ac_top_srcdir=.
18252 else
18253 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18254 fi ;;
18255 [\\/]* | ?:[\\/]* ) # Absolute path.
18256 ac_srcdir=$srcdir$ac_dir_suffix;
18257 ac_top_srcdir=$srcdir ;;
18258 *) # Relative path.
18259 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18260 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18261 esac
18263 # Do not use `cd foo && pwd` to compute absolute paths, because
18264 # the directories may not exist.
18265 case `pwd` in
18266 .) ac_abs_builddir="$ac_dest_dir";;
18268 case "$ac_dest_dir" in
18269 .) ac_abs_builddir=`pwd`;;
18270 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18271 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18272 esac;;
18273 esac
18274 case $ac_abs_builddir in
18275 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18277 case ${ac_top_builddir}. in
18278 .) ac_abs_top_builddir=$ac_abs_builddir;;
18279 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18280 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18281 esac;;
18282 esac
18283 case $ac_abs_builddir in
18284 .) ac_abs_srcdir=$ac_srcdir;;
18286 case $ac_srcdir in
18287 .) ac_abs_srcdir=$ac_abs_builddir;;
18288 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18289 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18290 esac;;
18291 esac
18292 case $ac_abs_builddir in
18293 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18295 case $ac_top_srcdir in
18296 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18297 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18298 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18299 esac;;
18300 esac
18303 case $srcdir in
18304 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18305 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18306 esac
18308 # Try a symlink, then a hard link, then a copy.
18309 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18310 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18311 cp -p $srcdir/$ac_source $ac_dest ||
18312 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18313 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18314 { (exit 1); exit 1; }; }
18315 done
18316 _ACEOF
18317 cat >>$CONFIG_STATUS <<\_ACEOF
18320 # CONFIG_COMMANDS section.
18322 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18323 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18324 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18325 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18326 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18327 X"$ac_dest" : 'X\(//\)[^/]' \| \
18328 X"$ac_dest" : 'X\(//\)$' \| \
18329 X"$ac_dest" : 'X\(/\)' \| \
18330 . : '\(.\)' 2>/dev/null ||
18331 echo X"$ac_dest" |
18332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18334 /^X\(\/\/\)$/{ s//\1/; q; }
18335 /^X\(\/\).*/{ s//\1/; q; }
18336 s/.*/./; q'`
18337 { if $as_mkdir_p; then
18338 mkdir -p "$ac_dir"
18339 else
18340 as_dir="$ac_dir"
18341 as_dirs=
18342 while test ! -d "$as_dir"; do
18343 as_dirs="$as_dir $as_dirs"
18344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18346 X"$as_dir" : 'X\(//\)[^/]' \| \
18347 X"$as_dir" : 'X\(//\)$' \| \
18348 X"$as_dir" : 'X\(/\)' \| \
18349 . : '\(.\)' 2>/dev/null ||
18350 echo X"$as_dir" |
18351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18353 /^X\(\/\/\)$/{ s//\1/; q; }
18354 /^X\(\/\).*/{ s//\1/; q; }
18355 s/.*/./; q'`
18356 done
18357 test ! -n "$as_dirs" || mkdir $as_dirs
18358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18359 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18360 { (exit 1); exit 1; }; }; }
18362 ac_builddir=.
18364 if test "$ac_dir" != .; then
18365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18366 # A "../" for each directory in $ac_dir_suffix.
18367 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18368 else
18369 ac_dir_suffix= ac_top_builddir=
18372 case $srcdir in
18373 .) # No --srcdir option. We are building in place.
18374 ac_srcdir=.
18375 if test -z "$ac_top_builddir"; then
18376 ac_top_srcdir=.
18377 else
18378 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18379 fi ;;
18380 [\\/]* | ?:[\\/]* ) # Absolute path.
18381 ac_srcdir=$srcdir$ac_dir_suffix;
18382 ac_top_srcdir=$srcdir ;;
18383 *) # Relative path.
18384 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18385 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18386 esac
18388 # Do not use `cd foo && pwd` to compute absolute paths, because
18389 # the directories may not exist.
18390 case `pwd` in
18391 .) ac_abs_builddir="$ac_dir";;
18393 case "$ac_dir" in
18394 .) ac_abs_builddir=`pwd`;;
18395 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18396 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18397 esac;;
18398 esac
18399 case $ac_abs_builddir in
18400 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18402 case ${ac_top_builddir}. in
18403 .) ac_abs_top_builddir=$ac_abs_builddir;;
18404 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18405 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18406 esac;;
18407 esac
18408 case $ac_abs_builddir in
18409 .) ac_abs_srcdir=$ac_srcdir;;
18411 case $ac_srcdir in
18412 .) ac_abs_srcdir=$ac_abs_builddir;;
18413 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18414 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18415 esac;;
18416 esac
18417 case $ac_abs_builddir in
18418 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18420 case $ac_top_srcdir in
18421 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18422 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18423 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18424 esac;;
18425 esac
18428 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18429 echo "$as_me: executing $ac_dest commands" >&6;}
18430 case $ac_dest in
18431 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18432 # Strip MF so we end up with the name of the file.
18433 mf=`echo "$mf" | sed -e 's/:.*$//'`
18434 # Check whether this is an Automake generated Makefile or not.
18435 # We used to match only the files named `Makefile.in', but
18436 # some people rename them; so instead we look at the file content.
18437 # Grep'ing the first line is not enough: some people post-process
18438 # each Makefile.in and add a new line on top of each file to say so.
18439 # So let's grep whole file.
18440 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18441 dirpart=`(dirname "$mf") 2>/dev/null ||
18442 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18443 X"$mf" : 'X\(//\)[^/]' \| \
18444 X"$mf" : 'X\(//\)$' \| \
18445 X"$mf" : 'X\(/\)' \| \
18446 . : '\(.\)' 2>/dev/null ||
18447 echo X"$mf" |
18448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18450 /^X\(\/\/\)$/{ s//\1/; q; }
18451 /^X\(\/\).*/{ s//\1/; q; }
18452 s/.*/./; q'`
18453 else
18454 continue
18456 # Extract the definition of DEPDIR, am__include, and am__quote
18457 # from the Makefile without running `make'.
18458 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18459 test -z "$DEPDIR" && continue
18460 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18461 test -z "am__include" && continue
18462 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18463 # When using ansi2knr, U may be empty or an underscore; expand it
18464 U=`sed -n 's/^U = //p' < "$mf"`
18465 # Find all dependency output files, they are included files with
18466 # $(DEPDIR) in their names. We invoke sed twice because it is the
18467 # simplest approach to changing $(DEPDIR) to its actual value in the
18468 # expansion.
18469 for file in `sed -n "
18470 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18471 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18472 # Make sure the directory exists.
18473 test -f "$dirpart/$file" && continue
18474 fdir=`(dirname "$file") 2>/dev/null ||
18475 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18476 X"$file" : 'X\(//\)[^/]' \| \
18477 X"$file" : 'X\(//\)$' \| \
18478 X"$file" : 'X\(/\)' \| \
18479 . : '\(.\)' 2>/dev/null ||
18480 echo X"$file" |
18481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18483 /^X\(\/\/\)$/{ s//\1/; q; }
18484 /^X\(\/\).*/{ s//\1/; q; }
18485 s/.*/./; q'`
18486 { if $as_mkdir_p; then
18487 mkdir -p $dirpart/$fdir
18488 else
18489 as_dir=$dirpart/$fdir
18490 as_dirs=
18491 while test ! -d "$as_dir"; do
18492 as_dirs="$as_dir $as_dirs"
18493 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18495 X"$as_dir" : 'X\(//\)[^/]' \| \
18496 X"$as_dir" : 'X\(//\)$' \| \
18497 X"$as_dir" : 'X\(/\)' \| \
18498 . : '\(.\)' 2>/dev/null ||
18499 echo X"$as_dir" |
18500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18502 /^X\(\/\/\)$/{ s//\1/; q; }
18503 /^X\(\/\).*/{ s//\1/; q; }
18504 s/.*/./; q'`
18505 done
18506 test ! -n "$as_dirs" || mkdir $as_dirs
18507 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18508 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18509 { (exit 1); exit 1; }; }; }
18511 # echo "creating $dirpart/$file"
18512 echo '# dummy' > "$dirpart/$file"
18513 done
18514 done
18516 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18517 case " $CONFIG_FILES " in
18518 *" Makefile "*)
18519 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18520 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18522 esac
18523 for ac_multi_file in $CONFIG_FILES; do
18524 case $ac_multi_file in
18525 */Makefile)
18526 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18527 esac
18528 done
18530 esac
18531 done
18532 _ACEOF
18534 cat >>$CONFIG_STATUS <<\_ACEOF
18536 { (exit 0); exit 0; }
18537 _ACEOF
18538 chmod +x $CONFIG_STATUS
18539 ac_clean_files=$ac_clean_files_save
18542 # configure is writing to config.log, and then calls config.status.
18543 # config.status does its own redirection, appending to config.log.
18544 # Unfortunately, on DOS this fails, as config.log is still kept open
18545 # by configure, so config.status won't be able to write to it; its
18546 # output is simply discarded. So we exec the FD to /dev/null,
18547 # effectively closing config.log, so it can be properly (re)opened and
18548 # appended to by config.status. When coming back to configure, we
18549 # need to make the FD available again.
18550 if test "$no_create" != yes; then
18551 ac_cs_success=:
18552 ac_config_status_args=
18553 test "$silent" = yes &&
18554 ac_config_status_args="$ac_config_status_args --quiet"
18555 exec 5>/dev/null
18556 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18557 exec 5>>config.log
18558 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18559 # would make configure fail if this is the last instruction.
18560 $ac_cs_success || { (exit 1); exit 1; }
18564 # CONFIG_SUBDIRS section.
18566 if test "$no_recursion" != yes; then
18568 # Remove --cache-file and --srcdir arguments so they do not pile up.
18569 ac_sub_configure_args=
18570 ac_prev=
18571 for ac_arg in $ac_configure_args; do
18572 if test -n "$ac_prev"; then
18573 ac_prev=
18574 continue
18576 case $ac_arg in
18577 -cache-file | --cache-file | --cache-fil | --cache-fi \
18578 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18579 ac_prev=cache_file ;;
18580 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18581 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18582 | --c=*)
18584 --config-cache | -C)
18586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18587 ac_prev=srcdir ;;
18588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18590 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18591 ac_prev=prefix ;;
18592 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18594 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18595 esac
18596 done
18598 # Always prepend --prefix to ensure using the same prefix
18599 # in subdir configurations.
18600 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18602 ac_popdir=`pwd`
18603 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18605 # Do not complain, so a configure script can configure whichever
18606 # parts of a large source tree are present.
18607 test -d $srcdir/$ac_dir || continue
18609 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18610 echo "$as_me: configuring in $ac_dir" >&6;}
18611 { if $as_mkdir_p; then
18612 mkdir -p "$ac_dir"
18613 else
18614 as_dir="$ac_dir"
18615 as_dirs=
18616 while test ! -d "$as_dir"; do
18617 as_dirs="$as_dir $as_dirs"
18618 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18620 X"$as_dir" : 'X\(//\)[^/]' \| \
18621 X"$as_dir" : 'X\(//\)$' \| \
18622 X"$as_dir" : 'X\(/\)' \| \
18623 . : '\(.\)' 2>/dev/null ||
18624 echo X"$as_dir" |
18625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18627 /^X\(\/\/\)$/{ s//\1/; q; }
18628 /^X\(\/\).*/{ s//\1/; q; }
18629 s/.*/./; q'`
18630 done
18631 test ! -n "$as_dirs" || mkdir $as_dirs
18632 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18633 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18634 { (exit 1); exit 1; }; }; }
18636 ac_builddir=.
18638 if test "$ac_dir" != .; then
18639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18640 # A "../" for each directory in $ac_dir_suffix.
18641 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18642 else
18643 ac_dir_suffix= ac_top_builddir=
18646 case $srcdir in
18647 .) # No --srcdir option. We are building in place.
18648 ac_srcdir=.
18649 if test -z "$ac_top_builddir"; then
18650 ac_top_srcdir=.
18651 else
18652 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18653 fi ;;
18654 [\\/]* | ?:[\\/]* ) # Absolute path.
18655 ac_srcdir=$srcdir$ac_dir_suffix;
18656 ac_top_srcdir=$srcdir ;;
18657 *) # Relative path.
18658 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18659 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18660 esac
18662 # Do not use `cd foo && pwd` to compute absolute paths, because
18663 # the directories may not exist.
18664 case `pwd` in
18665 .) ac_abs_builddir="$ac_dir";;
18667 case "$ac_dir" in
18668 .) ac_abs_builddir=`pwd`;;
18669 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18670 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18671 esac;;
18672 esac
18673 case $ac_abs_builddir in
18674 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18676 case ${ac_top_builddir}. in
18677 .) ac_abs_top_builddir=$ac_abs_builddir;;
18678 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18679 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18680 esac;;
18681 esac
18682 case $ac_abs_builddir in
18683 .) ac_abs_srcdir=$ac_srcdir;;
18685 case $ac_srcdir in
18686 .) ac_abs_srcdir=$ac_abs_builddir;;
18687 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18688 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18689 esac;;
18690 esac
18691 case $ac_abs_builddir in
18692 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18694 case $ac_top_srcdir in
18695 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18696 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18697 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18698 esac;;
18699 esac
18702 cd $ac_dir
18704 # Check for guested configure; otherwise get Cygnus style configure.
18705 if test -f $ac_srcdir/configure.gnu; then
18706 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18707 elif test -f $ac_srcdir/configure; then
18708 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18709 elif test -f $ac_srcdir/configure.in; then
18710 ac_sub_configure=$ac_configure
18711 else
18712 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18713 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18714 ac_sub_configure=
18717 # The recursion is here.
18718 if test -n "$ac_sub_configure"; then
18719 # Make the cache file name correct relative to the subdirectory.
18720 case $cache_file in
18721 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18722 *) # Relative path.
18723 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18724 esac
18726 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18727 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18728 # The eval makes quoting arguments work.
18729 eval $ac_sub_configure $ac_sub_configure_args \
18730 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18731 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18732 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18733 { (exit 1); exit 1; }; }
18736 cd $ac_popdir
18737 done