Merge from mainline
[official-gcc.git] / libjava / configure
blobdaddd9d429cb6a2d32f999f92149be0946221970
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE QT_AWT_TRUE QT_AWT_FALSE GCJH ZIP INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS 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 here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-libgcj-debug enable runtime debugging code
861 --enable-java-awt list of AWT peer implementations to be built
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --disable-getenv-properties
867 don't set system properties from GCJ_PROPERTIES
868 --enable-hash-synchronization
869 use global hash table for monitor locks
870 --enable-gc-debug include full support for pointer backtracing etc.
871 --enable-interpreter enable interpreter
872 --enable-sjlj-exceptions
873 force use of builtin_setjmp for exceptions
874 --disable-java-net disable java.net
875 --disable-jvmpi disable JVMPI support
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
879 _g_switchUse thread-local storage
880 [default=yes]
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-target-subdir=SUBDIR
886 configure in a subdirectory
887 --with-cross-host=HOST configure with a cross compiler from HOST
888 --with-newlib configure with newlib
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-pic try to use only PIC/non-PIC objects default=use both
891 --with-java-home=DIRECTORY
892 value of java.home system property
893 --with-win32-nlsapi=ansi or unicows or unicode
894 native MinGW libgcj Win32 OS API (default is ansi)
895 --without-libffi don't use libffi
896 --with-ecos enable runtime eCos target support
897 --with-system-zlib use installed libz
898 --with-x use the X Window System
899 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
900 --without-libiconv-prefix don't search for libiconv in includedir and libdir
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CXX C++ compiler command
910 CXXFLAGS C++ compiler flags
911 CXXCPP C++ preprocessor
912 CPP C preprocessor
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
917 _ACEOF
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
922 ac_popdir=`pwd`
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
925 ac_builddir=.
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932 ac_dir_suffix= ac_top_builddir=
935 case $srcdir in
936 .) # No --srcdir option. We are building in place.
937 ac_srcdir=.
938 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=.
940 else
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 fi ;;
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
946 *) # Relative path.
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
956 case "$ac_dir" in
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
974 case $ac_srcdir in
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 esac;;
988 esac
990 cd $ac_dir
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
993 echo
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
996 echo
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1000 echo
1001 $ac_configure --help
1002 else
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 cd $ac_popdir
1006 done
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011 cat <<\_ACEOF
1012 libjava configure version-unused
1013 generated by GNU Autoconf 2.59
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1018 _ACEOF
1019 exit 0
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by libjava $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1029 $ $0 $@
1031 _ACEOF
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 _ASUNAME
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1060 IFS=$as_save_IFS
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1063 done
1065 } >&5
1067 cat >&5 <<_ACEOF
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1074 _ACEOF
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1089 for ac_arg
1091 case $ac_arg in
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 continue ;;
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 esac
1099 case $ac_pass in
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1105 else
1106 case $ac_arg in
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 esac
1115 -* ) ac_must_keep_next=true ;;
1116 esac
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1120 ac_sep=" "
1122 esac
1123 done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1136 echo
1138 cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143 echo
1144 # The following way of writing the cache mishandles newlines in values,
1146 (set) 2>&1 |
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 *ac_space=\ *)
1149 sed -n \
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 sed -n \
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 esac;
1159 echo
1161 cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166 echo
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1174 if test -n "$ac_subst_files"; then
1175 cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180 echo
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1185 done | sort
1186 echo
1189 if test -s confdefs.h; then
1190 cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195 echo
1196 sed "/^$/d" confdefs.h | sort
1197 echo
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1202 } >&5
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 exit $exit_status
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 else
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1258 . "$ac_site_file"
1260 done
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1268 case $cache_file in
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1271 esac
1273 else
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1276 >$cache_file
1279 # Check that the precious variables saved in the cache have kept the same
1280 # value.
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1289 set,)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,set)
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1297 ,);;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1307 fi;;
1308 esac
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1311 case $ac_new_val in
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1315 esac
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319 esac
1321 done
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 ac_aux_dir=
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367 if test -f $ac_dir/install-sh; then
1368 ac_aux_dir=$ac_dir
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1370 break
1371 elif test -f $ac_dir/install.sh; then
1372 ac_aux_dir=$ac_dir
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1374 break
1375 elif test -f $ac_dir/shtool; then
1376 ac_aux_dir=$ac_dir
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1378 break
1380 done
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403 ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407 { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1416 build=$ac_cv_build
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 case ${build_alias} in
1423 "") build_noncanonical=${build} ;;
1424 *) build_noncanonical=${build_alias} ;;
1425 esac
1427 case ${host_alias} in
1428 "") host_noncanonical=${build_noncanonical} ;;
1429 *) host_noncanonical=${host_alias} ;;
1430 esac
1432 case ${target_alias} in
1433 "") target_noncanonical=${host_noncanonical} ;;
1434 *) target_noncanonical=${target_alias} ;;
1435 esac
1437 # Prefix 'build-' so this never conflicts with target_subdir.
1438 build_subdir="build-${build_noncanonical}"
1439 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440 if ( test $srcdir = . && test -d gcc ) \
1441 || test -d $srcdir/../host-${host_noncanonical}; then
1442 host_subdir="host-${host_noncanonical}"
1443 else
1444 host_subdir=.
1446 # No prefix.
1447 target_subdir=${target_noncanonical}
1450 # We use these options to decide which functions to include.
1452 # Check whether --with-target-subdir or --without-target-subdir was given.
1453 if test "${with_target_subdir+set}" = set; then
1454 withval="$with_target_subdir"
1458 # We may get other options which we don't document:
1459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461 # When building with srcdir == objdir, links to the source files will
1462 # be created in directories within the target_subdir. We have to
1463 # adjust toplevel_srcdir accordingly, so that configure finds
1464 # install-sh and other auxiliary files that live in the top-level
1465 # source directory.
1466 if test "${srcdir}" = "."; then
1467 if test -z "${with_target_subdir}"; then
1468 toprel=".."
1469 else
1470 if test "${with_target_subdir}" != "."; then
1471 toprel="${with_multisrctop}../.."
1472 else
1473 toprel="${with_multisrctop}.."
1476 else
1477 toprel=".."
1480 libgcj_basedir=$srcdir/$toprel/./libjava
1483 echo "$as_me:$LINENO: checking host system type" >&5
1484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485 if test "${ac_cv_host+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 ac_cv_host_alias=$host_alias
1489 test -z "$ac_cv_host_alias" &&
1490 ac_cv_host_alias=$ac_cv_build_alias
1491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494 { (exit 1); exit 1; }; }
1497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498 echo "${ECHO_T}$ac_cv_host" >&6
1499 host=$ac_cv_host
1500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 echo "$as_me:$LINENO: checking target system type" >&5
1506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507 if test "${ac_cv_target+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 ac_cv_target_alias=$target_alias
1511 test "x$ac_cv_target_alias" = "x" &&
1512 ac_cv_target_alias=$ac_cv_host_alias
1513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520 echo "${ECHO_T}$ac_cv_target" >&6
1521 target=$ac_cv_target
1522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 # The aliases save the names the user supplied, while $host etc.
1528 # will get canonicalized.
1529 test -n "$target_alias" &&
1530 test "$program_prefix$program_suffix$program_transform_name" = \
1531 NONENONEs,x,x, &&
1532 program_prefix=${target_alias}-
1533 case ${build_alias} in
1534 "") build_noncanonical=${build} ;;
1535 *) build_noncanonical=${build_alias} ;;
1536 esac
1538 case ${target_alias} in
1539 "") target_noncanonical=${host_noncanonical} ;;
1540 *) target_noncanonical=${target_alias} ;;
1541 esac
1546 # This works around the fact that libtool configuration may change LD
1547 # for this particular configuration, but some shells, instead of
1548 # keeping the changes in LD private, export them just because LD is
1549 # exported.
1550 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1554 LN_S=$as_ln_s
1555 if test "$LN_S" = "ln -s"; then
1556 echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560 echo "${ECHO_T}no, using $LN_S" >&6
1564 # This works around an automake problem.
1565 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1569 # Check whether --with-cross-host or --without-cross-host was given.
1570 if test "${with_cross_host+set}" = set; then
1571 withval="$with_cross_host"
1576 # Check whether --with-newlib or --without-newlib was given.
1577 if test "${with_newlib+set}" = set; then
1578 withval="$with_newlib"
1582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583 if test "${enable_version_specific_runtime_libs+set}" = set; then
1584 enableval="$enable_version_specific_runtime_libs"
1585 case "$enableval" in
1586 yes) version_specific_libs=yes ;;
1587 no) version_specific_libs=no ;;
1588 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590 { (exit 1); exit 1; }; };;
1591 esac
1592 else
1593 version_specific_libs=no
1597 # Default to --enable-multilib
1598 # Check whether --enable-multilib or --disable-multilib was given.
1599 if test "${enable_multilib+set}" = set; then
1600 enableval="$enable_multilib"
1601 case "${enableval}" in
1602 yes) multilib=yes ;;
1603 no) multilib=no ;;
1604 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606 { (exit 1); exit 1; }; } ;;
1607 esac
1608 else
1609 multilib=yes
1611 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1614 # (1) We use an abnormal CXX (without library references), so we
1615 # must cache it under a different name.
1616 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1617 # the non-multilib-adjusted value will be used in multilibs.
1618 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1619 # (4) As another side effect, automake doesn't automatically include them
1620 # in Makefile.in.
1621 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1622 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1623 # used in later tests. This may not be necessary in libjava; I don't know.
1627 save_CXXFLAGS="$CXXFLAGS"
1628 CXXFLAGS="$CXXFLAGS -fno-builtin"
1629 ac_ext=c
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1656 done
1657 done
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1671 if test -z "$ac_cv_prog_CC"; then
1672 ac_ct_CC=$CC
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 if test -n "$ac_ct_CC"; then
1681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_ac_ct_CC="gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 break 2
1694 done
1695 done
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1703 else
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1708 CC=$ac_ct_CC
1709 else
1710 CC="$ac_cv_prog_CC"
1713 if test -z "$CC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 break 2
1736 done
1737 done
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1752 ac_ct_CC=$CC
1753 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1766 IFS=$as_save_IFS
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1774 done
1775 done
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1788 CC=$ac_ct_CC
1789 else
1790 CC="$ac_cv_prog_CC"
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805 ac_prog_rejected=no
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1809 IFS=$as_save_IFS
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1815 continue
1817 ac_cv_prog_CC="cc"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1821 done
1822 done
1824 if test $ac_prog_rejected = yes; then
1825 # We found a bogon in the path, so make sure we never use it.
1826 set dummy $ac_cv_prog_CC
1827 shift
1828 if test $# != 0; then
1829 # We chose a different compiler from the bogus one.
1830 # However, it has the same basename, so the bogon will be chosen
1831 # first if we set CC to just the basename; use the full file name.
1832 shift
1833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1850 for ac_prog in cl
1852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1873 done
1874 done
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$CC" && break
1888 done
1890 if test -z "$CC"; then
1891 ac_ct_CC=$CC
1892 for ac_prog in cl
1894 # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1915 done
1916 done
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$ac_ct_CC" && break
1930 done
1932 CC=$ac_ct_CC
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946 "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949 (eval $ac_compiler --version </dev/null >&5) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954 (eval $ac_compiler -v </dev/null >&5) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959 (eval $ac_compiler -V </dev/null >&5) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h. */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1972 main ()
1976 return 0;
1978 _ACEOF
1979 # FIXME: Cleanup?
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1981 (eval $ac_link) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 gcc_no_link=no
1986 else
1987 gcc_no_link=yes
1990 if test x$gcc_no_link = xyes; then
1991 # Setting cross_compile will disable run tests; it will
1992 # also disable AC_CHECK_FILE but that's generally
1993 # correct if we can't link.
1994 cross_compiling=yes
1995 EXEEXT=
1996 else
1997 cat >conftest.$ac_ext <<_ACEOF
1998 /* confdefs.h. */
1999 _ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h. */
2005 main ()
2009 return 0;
2011 _ACEOF
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2016 # of exeext.
2017 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021 (eval $ac_link_default) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; then
2025 # Find the output, starting from the most likely. This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # resort.
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031 ac_cv_exeext=
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 test -f "$ac_file" || continue
2036 case $ac_file in
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2039 conftest.$ac_ext )
2040 # This is the source file.
2042 [ab].out )
2043 # We found the default executable, but exeext='' is most
2044 # certainly right.
2045 break;;
2046 *.* )
2047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 # FIXME: I believe we export ac_cv_exeext for Libtool,
2049 # but it would be cool to find out if it's true. Does anybody
2050 # maintain Libtool? --akim.
2051 export ac_cv_exeext
2052 break;;
2054 break;;
2055 esac
2056 done
2057 else
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065 { (exit 77); exit 77; }; }
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079 if { ac_try='./$ac_file'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 (eval $ac_try) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2085 cross_compiling=no
2086 else
2087 if test "$cross_compiling" = maybe; then
2088 cross_compiling=yes
2089 else
2090 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run. If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115 (eval $ac_link) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2122 # `rm'.
2123 for ac_file in conftest.exe conftest conftest.*; do
2124 test -f "$ac_file" || continue
2125 case $ac_file in
2126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 export ac_cv_exeext
2129 break;;
2130 * ) break;;
2131 esac
2132 done
2133 else
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2147 ac_exeext=$EXEEXT
2149 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2150 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2151 if test "${ac_cv_objext+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h. */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2162 main ()
2166 return 0;
2168 _ACEOF
2169 rm -f conftest.o conftest.obj
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179 break;;
2180 esac
2181 done
2182 else
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196 echo "${ECHO_T}$ac_cv_objext" >&6
2197 OBJEXT=$ac_cv_objext
2198 ac_objext=$OBJEXT
2199 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2201 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h. */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2212 main ()
2214 #ifndef __GNUC__
2215 choke me
2216 #endif
2219 return 0;
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 ac_compiler_gnu=yes
2245 else
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2249 ac_compiler_gnu=no
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257 GCC=`test $ac_compiler_gnu = yes && echo yes`
2258 ac_test_CFLAGS=${CFLAGS+set}
2259 ac_save_CFLAGS=$CFLAGS
2260 CFLAGS="-g"
2261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263 if test "${ac_cv_prog_cc_g+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h. */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2274 main ()
2278 return 0;
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2284 ac_status=$?
2285 grep -v '^ *+' conftest.er1 >conftest.err
2286 rm -f conftest.er1
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_c_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_cv_prog_cc_g=yes
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 ac_cv_prog_cc_g=no
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2313 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2314 if test "$ac_test_CFLAGS" = set; then
2315 CFLAGS=$ac_save_CFLAGS
2316 elif test $ac_cv_prog_cc_g = yes; then
2317 if test "$GCC" = yes; then
2318 CFLAGS="-g -O2"
2319 else
2320 CFLAGS="-g"
2322 else
2323 if test "$GCC" = yes; then
2324 CFLAGS="-O2"
2325 else
2326 CFLAGS=
2329 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2330 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334 ac_cv_prog_cc_stdc=no
2335 ac_save_CC=$CC
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342 #include <stdarg.h>
2343 #include <stdio.h>
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2350 char **p;
2351 int i;
2353 return p[i];
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2357 char *s;
2358 va_list v;
2359 va_start (v,p);
2360 s = g (p, va_arg (v,int));
2361 va_end (v);
2362 return s;
2365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2366 function prototypes and stuff, but not '\xHH' hex character constants.
2367 These don't provoke an error unfortunately, instead are silently treated
2368 as 'x'. The following induces an error, until -std1 is added to get
2369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2370 array size at least. It's necessary to write '\x00'==0 to get something
2371 that's true only with -std1. */
2372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374 int test (int i, double x);
2375 struct s1 {int (*f) (int a);};
2376 struct s2 {int (*f) (double a);};
2377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2378 int argc;
2379 char **argv;
2381 main ()
2383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2385 return 0;
2387 _ACEOF
2388 # Don't try gcc -ansi; that turns off useful extensions and
2389 # breaks some systems' header files.
2390 # AIX -qlanglvl=ansi
2391 # Ultrix and OSF/1 -std1
2392 # HP-UX 10.20 and later -Ae
2393 # HP-UX older versions -Aa -D_HPUX_SOURCE
2394 # SVR4 -Xc -D__EXTENSIONS__
2395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397 CC="$ac_save_CC $ac_arg"
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_cv_prog_cc_stdc=$ac_arg
2421 break
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext
2428 done
2429 rm -f conftest.$ac_ext conftest.$ac_objext
2430 CC=$ac_save_CC
2434 case "x$ac_cv_prog_cc_stdc" in
2435 x|xno)
2436 echo "$as_me:$LINENO: result: none needed" >&5
2437 echo "${ECHO_T}none needed" >&6 ;;
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2441 CC="$CC $ac_cv_prog_cc_stdc" ;;
2442 esac
2444 # Some people use a C++ compiler to compile C. Since we use `exit',
2445 # in C++ we need to declare it. In case someone uses the same compiler
2446 # for both compiling C and C++ we need to have the C++ compiler decide
2447 # the declaration of exit, since it's the most demanding environment.
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #ifndef __cplusplus
2450 choke me
2451 #endif
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 for ac_declaration in \
2476 '' \
2477 'extern "C" void std::exit (int) throw (); using std::exit;' \
2478 'extern "C" void std::exit (int); using std::exit;' \
2479 'extern "C" void exit (int) throw ();' \
2480 'extern "C" void exit (int);' \
2481 'void exit (int);'
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 $ac_declaration
2490 #include <stdlib.h>
2492 main ()
2494 exit (42);
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 continue
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 $ac_declaration
2537 main ()
2539 exit (42);
2541 return 0;
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 break
2567 else
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 done
2574 rm -f conftest*
2575 if test -n "$ac_declaration"; then
2576 echo '#ifdef __cplusplus' >>confdefs.h
2577 echo $ac_declaration >>confdefs.h
2578 echo '#endif' >>confdefs.h
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593 ac_ext=cc
2594 ac_cpp='$CXXCPP $CPPFLAGS'
2595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2598 if test -n "$ac_tool_prefix"; then
2599 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603 echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$CXX"; then
2609 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2627 CXX=$glibcxx_cv_prog_CXX
2628 if test -n "$CXX"; then
2629 echo "$as_me:$LINENO: result: $CXX" >&5
2630 echo "${ECHO_T}$CXX" >&6
2631 else
2632 echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6
2636 test -n "$CXX" && break
2637 done
2639 if test -z "$CXX"; then
2640 ac_ct_CXX=$CXX
2641 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 if test -n "$ac_ct_CXX"; then
2651 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_ac_ct_CXX="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2664 done
2665 done
2669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2670 if test -n "$ac_ct_CXX"; then
2671 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2672 echo "${ECHO_T}$ac_ct_CXX" >&6
2673 else
2674 echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2678 test -n "$ac_ct_CXX" && break
2679 done
2680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2682 CXX=$ac_ct_CXX
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO:" \
2688 "checking for C++ compiler version" >&5
2689 ac_compiler=`set X $ac_compile; echo $2`
2690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2691 (eval $ac_compiler --version </dev/null >&5) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2696 (eval $ac_compiler -v </dev/null >&5) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2701 (eval $ac_compiler -V </dev/null >&5) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h. */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2719 main ()
2721 #ifndef __GNUC__
2722 choke me
2723 #endif
2726 return 0;
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_cxx_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_compiler_gnu=yes
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_compiler_gnu=no
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764 GXX=`test $ac_compiler_gnu = yes && echo yes`
2765 ac_test_CXXFLAGS=${CXXFLAGS+set}
2766 ac_save_CXXFLAGS=$CXXFLAGS
2767 CXXFLAGS="-g"
2768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cxx_g+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2781 main ()
2785 return 0;
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_cxx_werror_flag"
2798 || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 ac_cv_prog_cxx_g=yes
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 ac_cv_prog_cxx_g=no
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2821 if test "$ac_test_CXXFLAGS" = set; then
2822 CXXFLAGS=$ac_save_CXXFLAGS
2823 elif test $ac_cv_prog_cxx_g = yes; then
2824 if test "$GXX" = yes; then
2825 CXXFLAGS="-g -O2"
2826 else
2827 CXXFLAGS="-g"
2829 else
2830 if test "$GXX" = yes; then
2831 CXXFLAGS="-O2"
2832 else
2833 CXXFLAGS=
2836 for ac_declaration in \
2837 '' \
2838 'extern "C" void std::exit (int) throw (); using std::exit;' \
2839 'extern "C" void std::exit (int); using std::exit;' \
2840 'extern "C" void exit (int) throw ();' \
2841 'extern "C" void exit (int);' \
2842 'void exit (int);'
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h. */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 $ac_declaration
2851 #include <stdlib.h>
2853 main ()
2855 exit (42);
2857 return 0;
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_cxx_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2883 else
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 continue
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890 cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896 $ac_declaration
2898 main ()
2900 exit (42);
2902 return 0;
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -z "$ac_cxx_werror_flag"
2915 || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 break
2928 else
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 done
2935 rm -f conftest*
2936 if test -n "$ac_declaration"; then
2937 echo '#ifdef __cplusplus' >>confdefs.h
2938 echo $ac_declaration >>confdefs.h
2939 echo '#endif' >>confdefs.h
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 CXXFLAGS="$save_CXXFLAGS"
2954 am__api_version="1.9"
2955 # Find a good install program. We prefer a C program (faster),
2956 # so one script is as good as another. But avoid the broken or
2957 # incompatible versions:
2958 # SysV /etc/install, /usr/sbin/install
2959 # SunOS /usr/etc/install
2960 # IRIX /sbin/install
2961 # AIX /bin/install
2962 # AmigaOS /C/install, which installs bootblocks on floppy discs
2963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2966 # OS/2's system install, which has a completely different semantic
2967 # ./install, which can be erroneously created by make from ./install.sh.
2968 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2970 if test -z "$INSTALL"; then
2971 if test "${ac_cv_path_install+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 # Account for people who put trailing slashes in PATH elements.
2980 case $as_dir/ in
2981 ./ | .// | /cC/* | \
2982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984 /usr/ucb/* ) ;;
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2988 # by default.
2989 for ac_prog in ginstall scoinst install; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992 if test $ac_prog = install &&
2993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # AIX install. It has an incompatible calling convention.
2996 elif test $ac_prog = install &&
2997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # program-specific install script used by HP pwplus--don't use.
3000 else
3001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3002 break 3
3005 done
3006 done
3008 esac
3009 done
3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL=$ac_cv_path_install
3015 else
3016 # As a last resort, use the slow shell script. We don't cache a
3017 # path for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the path is relative.
3020 INSTALL=$ac_install_sh
3023 echo "$as_me:$LINENO: result: $INSTALL" >&5
3024 echo "${ECHO_T}$INSTALL" >&6
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3036 # Just in case
3037 sleep 1
3038 echo timestamp > conftest.file
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments. Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3043 # directory).
3044 if (
3045 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046 if test "$*" = "X"; then
3047 # -L didn't work.
3048 set X `ls -t $srcdir/configure conftest.file`
3050 rm -f conftest.file
3051 if test "$*" != "X $srcdir/configure conftest.file" \
3052 && test "$*" != "X conftest.file $srcdir/configure"; then
3054 # If neither matched, then we have a broken ls. This can happen
3055 # if, for instance, CONFIG_SHELL is bash and it inherits a
3056 # broken ls alias from the environment. This has actually
3057 # happened. Such a system could not be considered "sane".
3058 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&5
3060 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3061 alias in your environment" >&2;}
3062 { (exit 1); exit 1; }; }
3065 test "$2" = conftest.file
3067 then
3068 # Ok.
3070 else
3071 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3072 Check your system clock" >&5
3073 echo "$as_me: error: newly created file is older than distributed files!
3074 Check your system clock" >&2;}
3075 { (exit 1); exit 1; }; }
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3079 test "$program_prefix" != NONE &&
3080 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3084 # Double any \ or $. echo might interpret backslashes.
3085 # By default was `s,x,x', remove it if useless.
3086 cat <<\_ACEOF >conftest.sed
3087 s/[\\$]/&&/g;s/;s,x,x,$//
3088 _ACEOF
3089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3090 rm conftest.sed
3092 # expand $ac_aux_dir to an absolute path
3093 am_aux_dir=`cd $ac_aux_dir && pwd`
3095 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3096 # Use eval to expand $SHELL
3097 if eval "$MISSING --run true"; then
3098 am_missing_run="$MISSING --run "
3099 else
3100 am_missing_run=
3101 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3102 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3105 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3106 # We used to keeping the `.' as first argument, in order to
3107 # allow $(mkdir_p) to be used without argument. As in
3108 # $(mkdir_p) $(somedir)
3109 # where $(somedir) is conditionally defined. However this is wrong
3110 # for two reasons:
3111 # 1. if the package is installed by a user who cannot write `.'
3112 # make install will fail,
3113 # 2. the above comment should most certainly read
3114 # $(mkdir_p) $(DESTDIR)$(somedir)
3115 # so it does not work when $(somedir) is undefined and
3116 # $(DESTDIR) is not.
3117 # To support the latter case, we have to write
3118 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3119 # so the `.' trick is pointless.
3120 mkdir_p='mkdir -p --'
3121 else
3122 # On NextStep and OpenStep, the `mkdir' command does not
3123 # recognize any option. It will interpret all options as
3124 # directories to create, and then abort because `.' already
3125 # exists.
3126 for d in ./-p ./--version;
3128 test -d $d && rmdir $d
3129 done
3130 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3131 if test -f "$ac_aux_dir/mkinstalldirs"; then
3132 mkdir_p='$(mkinstalldirs)'
3133 else
3134 mkdir_p='$(install_sh) -d'
3138 for ac_prog in gawk mawk nawk awk
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_AWK+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 if test -n "$AWK"; then
3148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_AWK="$ac_prog"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3166 AWK=$ac_cv_prog_AWK
3167 if test -n "$AWK"; then
3168 echo "$as_me:$LINENO: result: $AWK" >&5
3169 echo "${ECHO_T}$AWK" >&6
3170 else
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3175 test -n "$AWK" && break
3176 done
3178 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3181 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 cat >conftest.make <<\_ACEOF
3185 all:
3186 @echo 'ac_maketemp="$(MAKE)"'
3187 _ACEOF
3188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3189 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3190 if test -n "$ac_maketemp"; then
3191 eval ac_cv_prog_make_${ac_make}_set=yes
3192 else
3193 eval ac_cv_prog_make_${ac_make}_set=no
3195 rm -f conftest.make
3197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3200 SET_MAKE=
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 SET_MAKE="MAKE=${MAKE-make}"
3207 rm -rf .tst 2>/dev/null
3208 mkdir .tst 2>/dev/null
3209 if test -d .tst; then
3210 am__leading_dot=.
3211 else
3212 am__leading_dot=_
3214 rmdir .tst 2>/dev/null
3216 DEPDIR="${am__leading_dot}deps"
3218 ac_config_commands="$ac_config_commands depfiles"
3221 am_make=${MAKE-make}
3222 cat > confinc << 'END'
3223 am__doit:
3224 @echo done
3225 .PHONY: am__doit
3227 # If we don't find an include directive, just comment out the code.
3228 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3229 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3230 am__include="#"
3231 am__quote=
3232 _am_result=none
3233 # First try GNU make style include.
3234 echo "include confinc" > confmf
3235 # We grep out `Entering directory' and `Leaving directory'
3236 # messages which can occur if `w' ends up in MAKEFLAGS.
3237 # In particular we don't look at `^make:' because GNU make might
3238 # be invoked under some other name (usually "gmake"), in which
3239 # case it prints its new name instead of `make'.
3240 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3241 am__include=include
3242 am__quote=
3243 _am_result=GNU
3245 # Now try BSD make style include.
3246 if test "$am__include" = "#"; then
3247 echo '.include "confinc"' > confmf
3248 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3249 am__include=.include
3250 am__quote="\""
3251 _am_result=BSD
3256 echo "$as_me:$LINENO: result: $_am_result" >&5
3257 echo "${ECHO_T}$_am_result" >&6
3258 rm -f confinc confmf
3260 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3261 if test "${enable_dependency_tracking+set}" = set; then
3262 enableval="$enable_dependency_tracking"
3265 if test "x$enable_dependency_tracking" != xno; then
3266 am_depcomp="$ac_aux_dir/depcomp"
3267 AMDEPBACKSLASH='\'
3271 if test "x$enable_dependency_tracking" != xno; then
3272 AMDEP_TRUE=
3273 AMDEP_FALSE='#'
3274 else
3275 AMDEP_TRUE='#'
3276 AMDEP_FALSE=
3281 # test to see if srcdir already configured
3282 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3283 test -f $srcdir/config.status; then
3284 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3285 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3286 { (exit 1); exit 1; }; }
3289 # test whether we have cygpath
3290 if test -z "$CYGPATH_W"; then
3291 if (cygpath --version) >/dev/null 2>/dev/null; then
3292 CYGPATH_W='cygpath -w'
3293 else
3294 CYGPATH_W=echo
3299 # Define the identity of the package.
3300 PACKAGE='libjava'
3301 VERSION='version-unused'
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE "$PACKAGE"
3306 _ACEOF
3309 cat >>confdefs.h <<_ACEOF
3310 #define VERSION "$VERSION"
3311 _ACEOF
3313 # Some tools Automake needs.
3315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3331 # Installed binaries are usually stripped using `strip' when the user
3332 # run `make install-strip'. However `strip' might not be the right
3333 # tool to use in cross-compilation environments, therefore Automake
3334 # will honor the `STRIP' environment variable to overrule this program.
3335 if test "$cross_compiling" != no; then
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}strip; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_STRIP+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 if test -n "$STRIP"; then
3345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3363 STRIP=$ac_cv_prog_STRIP
3364 if test -n "$STRIP"; then
3365 echo "$as_me:$LINENO: result: $STRIP" >&5
3366 echo "${ECHO_T}$STRIP" >&6
3367 else
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3373 if test -z "$ac_cv_prog_STRIP"; then
3374 ac_ct_STRIP=$STRIP
3375 # Extract the first word of "strip", so it can be a program name with args.
3376 set dummy strip; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 if test -n "$ac_ct_STRIP"; then
3383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_STRIP="strip"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3396 done
3397 done
3399 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3403 if test -n "$ac_ct_STRIP"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3405 echo "${ECHO_T}$ac_ct_STRIP" >&6
3406 else
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3411 STRIP=$ac_ct_STRIP
3412 else
3413 STRIP="$ac_cv_prog_STRIP"
3417 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3419 # We need awk for the "check" target. The system "awk" is bad on
3420 # some platforms.
3421 # Always define AMTAR for backward compatibility.
3423 AMTAR=${AMTAR-"${am_missing_run}tar"}
3425 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3430 depcc="$CC" am_compiler_list=
3432 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3433 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3434 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3438 # We make a subdir and do the tests there. Otherwise we can end up
3439 # making bogus files that we don't know about and never remove. For
3440 # instance it was reported that on HP-UX the gcc test will end up
3441 # making a dummy file named `D' -- because `-MD' means `put the output
3442 # in D'.
3443 mkdir conftest.dir
3444 # Copy depcomp to subdir because otherwise we won't find it if we're
3445 # using a relative directory.
3446 cp "$am_depcomp" conftest.dir
3447 cd conftest.dir
3448 # We will build objects and dependencies in a subdirectory because
3449 # it helps to detect inapplicable dependency modes. For instance
3450 # both Tru64's cc and ICC support -MD to output dependencies as a
3451 # side effect of compilation, but ICC will put the dependencies in
3452 # the current directory while Tru64 will put them in the object
3453 # directory.
3454 mkdir sub
3456 am_cv_CC_dependencies_compiler_type=none
3457 if test "$am_compiler_list" = ""; then
3458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3460 for depmode in $am_compiler_list; do
3461 # Setup a source with many dependencies, because some compilers
3462 # like to wrap large dependency lists on column 80 (with \), and
3463 # we should not choose a depcomp mode which is confused by this.
3465 # We need to recreate these files for each test, as the compiler may
3466 # overwrite some of them when testing with obscure command lines.
3467 # This happens at least with the AIX C compiler.
3468 : > sub/conftest.c
3469 for i in 1 2 3 4 5 6; do
3470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3472 # Solaris 8's {/usr,}/bin/sh.
3473 touch sub/conftst$i.h
3474 done
3475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3477 case $depmode in
3478 nosideeffect)
3479 # after this tag, mechanisms are not by side-effect, so they'll
3480 # only be used when explicitly requested
3481 if test "x$enable_dependency_tracking" = xyes; then
3482 continue
3483 else
3484 break
3487 none) break ;;
3488 esac
3489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3490 # mode. It turns out that the SunPro C++ compiler does not properly
3491 # handle `-M -o', and we need to detect this.
3492 if depmode=$depmode \
3493 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3495 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3496 >/dev/null 2>conftest.err &&
3497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500 # icc doesn't choke on unknown options, it will just issue warnings
3501 # or remarks (even with -Werror). So we grep stderr for any message
3502 # that says an option was ignored or not supported.
3503 # When given -MP, icc 7.0 and 7.1 complain thusly:
3504 # icc: Command line warning: ignoring option '-M'; no argument required
3505 # The diagnosis changed in icc 8.0:
3506 # icc: Command line remark: option '-MP' not supported
3507 if (grep 'ignoring option' conftest.err ||
3508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509 am_cv_CC_dependencies_compiler_type=$depmode
3510 break
3513 done
3515 cd ..
3516 rm -rf conftest.dir
3517 else
3518 am_cv_CC_dependencies_compiler_type=none
3522 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3523 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3524 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529 test "x$enable_dependency_tracking" != xno \
3530 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3531 am__fastdepCC_TRUE=
3532 am__fastdepCC_FALSE='#'
3533 else
3534 am__fastdepCC_TRUE='#'
3535 am__fastdepCC_FALSE=
3539 depcc="$CXX" am_compiler_list=
3541 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3543 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547 # We make a subdir and do the tests there. Otherwise we can end up
3548 # making bogus files that we don't know about and never remove. For
3549 # instance it was reported that on HP-UX the gcc test will end up
3550 # making a dummy file named `D' -- because `-MD' means `put the output
3551 # in D'.
3552 mkdir conftest.dir
3553 # Copy depcomp to subdir because otherwise we won't find it if we're
3554 # using a relative directory.
3555 cp "$am_depcomp" conftest.dir
3556 cd conftest.dir
3557 # We will build objects and dependencies in a subdirectory because
3558 # it helps to detect inapplicable dependency modes. For instance
3559 # both Tru64's cc and ICC support -MD to output dependencies as a
3560 # side effect of compilation, but ICC will put the dependencies in
3561 # the current directory while Tru64 will put them in the object
3562 # directory.
3563 mkdir sub
3565 am_cv_CXX_dependencies_compiler_type=none
3566 if test "$am_compiler_list" = ""; then
3567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569 for depmode in $am_compiler_list; do
3570 # Setup a source with many dependencies, because some compilers
3571 # like to wrap large dependency lists on column 80 (with \), and
3572 # we should not choose a depcomp mode which is confused by this.
3574 # We need to recreate these files for each test, as the compiler may
3575 # overwrite some of them when testing with obscure command lines.
3576 # This happens at least with the AIX C compiler.
3577 : > sub/conftest.c
3578 for i in 1 2 3 4 5 6; do
3579 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581 # Solaris 8's {/usr,}/bin/sh.
3582 touch sub/conftst$i.h
3583 done
3584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586 case $depmode in
3587 nosideeffect)
3588 # after this tag, mechanisms are not by side-effect, so they'll
3589 # only be used when explicitly requested
3590 if test "x$enable_dependency_tracking" = xyes; then
3591 continue
3592 else
3593 break
3596 none) break ;;
3597 esac
3598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599 # mode. It turns out that the SunPro C++ compiler does not properly
3600 # handle `-M -o', and we need to detect this.
3601 if depmode=$depmode \
3602 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605 >/dev/null 2>conftest.err &&
3606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609 # icc doesn't choke on unknown options, it will just issue warnings
3610 # or remarks (even with -Werror). So we grep stderr for any message
3611 # that says an option was ignored or not supported.
3612 # When given -MP, icc 7.0 and 7.1 complain thusly:
3613 # icc: Command line warning: ignoring option '-M'; no argument required
3614 # The diagnosis changed in icc 8.0:
3615 # icc: Command line remark: option '-MP' not supported
3616 if (grep 'ignoring option' conftest.err ||
3617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618 am_cv_CXX_dependencies_compiler_type=$depmode
3619 break
3622 done
3624 cd ..
3625 rm -rf conftest.dir
3626 else
3627 am_cv_CXX_dependencies_compiler_type=none
3631 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3632 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3633 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3638 test "x$enable_dependency_tracking" != xno \
3639 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3640 am__fastdepCXX_TRUE=
3641 am__fastdepCXX_FALSE='#'
3642 else
3643 am__fastdepCXX_TRUE='#'
3644 am__fastdepCXX_FALSE=
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}as; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_AS+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 if test -n "$AS"; then
3659 ac_cv_prog_AS="$AS" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_AS="${ac_tool_prefix}as"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3677 AS=$ac_cv_prog_AS
3678 if test -n "$AS"; then
3679 echo "$as_me:$LINENO: result: $AS" >&5
3680 echo "${ECHO_T}$AS" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$ac_cv_prog_AS"; then
3688 ac_ct_AS=$AS
3689 # Extract the first word of "as", so it can be a program name with args.
3690 set dummy as; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test -n "$ac_ct_AS"; then
3697 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_ac_ct_AS="as"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3715 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3716 if test -n "$ac_ct_AS"; then
3717 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3718 echo "${ECHO_T}$ac_ct_AS" >&6
3719 else
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3724 AS=$ac_ct_AS
3725 else
3726 AS="$ac_cv_prog_AS"
3729 if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ar; ac_word=$2
3732 echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_AR+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 if test -n "$AR"; then
3738 ac_cv_prog_AR="$AR" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_AR="${ac_tool_prefix}ar"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3756 AR=$ac_cv_prog_AR
3757 if test -n "$AR"; then
3758 echo "$as_me:$LINENO: result: $AR" >&5
3759 echo "${ECHO_T}$AR" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3766 if test -z "$ac_cv_prog_AR"; then
3767 ac_ct_AR=$AR
3768 # Extract the first word of "ar", so it can be a program name with args.
3769 set dummy ar; ac_word=$2
3770 echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 if test -n "$ac_ct_AR"; then
3776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785 ac_cv_prog_ac_ct_AR="ar"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3795 if test -n "$ac_ct_AR"; then
3796 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3797 echo "${ECHO_T}$ac_ct_AR" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 AR=$ac_ct_AR
3804 else
3805 AR="$ac_cv_prog_AR"
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_RANLIB+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 if test -n "$RANLIB"; then
3817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3830 done
3831 done
3835 RANLIB=$ac_cv_prog_RANLIB
3836 if test -n "$RANLIB"; then
3837 echo "$as_me:$LINENO: result: $RANLIB" >&5
3838 echo "${ECHO_T}$RANLIB" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3845 if test -z "$ac_cv_prog_RANLIB"; then
3846 ac_ct_RANLIB=$RANLIB
3847 # Extract the first word of "ranlib", so it can be a program name with args.
3848 set dummy ranlib; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 if test -n "$ac_ct_RANLIB"; then
3855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_RANLIB="ranlib"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3871 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3875 if test -n "$ac_ct_RANLIB"; then
3876 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3877 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3878 else
3879 echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3883 RANLIB=$ac_ct_RANLIB
3884 else
3885 RANLIB="$ac_cv_prog_RANLIB"
3889 # Find a good install program. We prefer a C program (faster),
3890 # so one script is as good as another. But avoid the broken or
3891 # incompatible versions:
3892 # SysV /etc/install, /usr/sbin/install
3893 # SunOS /usr/etc/install
3894 # IRIX /sbin/install
3895 # AIX /bin/install
3896 # AmigaOS /C/install, which installs bootblocks on floppy discs
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # OS/2's system install, which has a completely different semantic
3901 # ./install, which can be erroneously created by make from ./install.sh.
3902 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3904 if test -z "$INSTALL"; then
3905 if test "${ac_cv_path_install+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 # Account for people who put trailing slashes in PATH elements.
3914 case $as_dir/ in
3915 ./ | .// | /cC/* | \
3916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3918 /usr/ucb/* ) ;;
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3922 # by default.
3923 for ac_prog in ginstall scoinst install; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926 if test $ac_prog = install &&
3927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3930 elif test $ac_prog = install &&
3931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3934 else
3935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3936 break 3
3939 done
3940 done
3942 esac
3943 done
3947 if test "${ac_cv_path_install+set}" = set; then
3948 INSTALL=$ac_cv_path_install
3949 else
3950 # As a last resort, use the slow shell script. We don't cache a
3951 # path for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the path is relative.
3954 INSTALL=$ac_install_sh
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3969 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3970 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3971 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3972 if test "${enable_maintainer_mode+set}" = set; then
3973 enableval="$enable_maintainer_mode"
3974 USE_MAINTAINER_MODE=$enableval
3975 else
3976 USE_MAINTAINER_MODE=no
3978 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3979 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3982 if test $USE_MAINTAINER_MODE = yes; then
3983 MAINTAINER_MODE_TRUE=
3984 MAINTAINER_MODE_FALSE='#'
3985 else
3986 MAINTAINER_MODE_TRUE='#'
3987 MAINTAINER_MODE_FALSE=
3990 MAINT=$MAINTAINER_MODE_TRUE
3996 # configure.host sets the following important variables
3997 # libgcj_cflags - host specific C compiler flags
3998 # libgcj_cxxflags - host specific C++ compiler flags
3999 # libgcj_javaflags - host specific Java compiler flags
4001 libgcj_cflags=
4002 libgcj_cxxflags=
4003 libgcj_javaflags=
4005 . ${srcdir}/configure.host
4007 LIBGCJ_CFLAGS="${libgcj_cflags}"
4008 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4009 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4010 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4016 # Only use libltdl for non-newlib builds.
4017 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4018 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4020 library_names_spec=
4021 libname_spec='lib$name'
4022 soname_spec=
4023 shrext=".so"
4024 postinstall_cmds=
4025 postuninstall_cmds=
4026 finish_cmds=
4027 finish_eval=
4028 shlibpath_var=
4029 shlibpath_overrides_runpath=unknown
4030 version_type=none
4031 dynamic_linker="$host_os ld.so"
4032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4033 if test "$GCC" = yes; then
4034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4035 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4036 # if the path contains ";" then we assume it to be the separator
4037 # otherwise default to the standard path separator (i.e. ":") - it is
4038 # assumed that no part of a normal pathname contains ";" but that should
4039 # okay in the real world where ";" in dirpaths is itself problematic.
4040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4041 else
4042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4044 else
4045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4047 need_lib_prefix=unknown
4048 hardcode_into_libs=no
4050 # when you set need_version to no, make sure it does not cause -set_version
4051 # flags to be left without arguments
4052 need_version=unknown
4054 case $host_os in
4055 aix3*)
4056 version_type=linux
4057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4058 shlibpath_var=LIBPATH
4060 # AIX 3 has no versioning support, so we append a major version to the name.
4061 soname_spec='${libname}${release}${shared_ext}$major'
4064 aix4* | aix5*)
4065 version_type=linux
4066 need_lib_prefix=no
4067 need_version=no
4068 hardcode_into_libs=yes
4069 if test "$host_cpu" = ia64; then
4070 # AIX 5 supports IA64
4071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4072 shlibpath_var=LD_LIBRARY_PATH
4073 else
4074 # With GCC up to 2.95.x, collect2 would create an import file
4075 # for dependence libraries. The import file would start with
4076 # the line `#! .'. This would cause the generated library to
4077 # depend on `.', always an invalid library. This was fixed in
4078 # development snapshots of GCC prior to 3.0.
4079 case $host_os in
4080 aix4 | aix4.[01] | aix4.[01].*)
4081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4082 echo ' yes '
4083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4085 else
4086 can_build_shared=no
4089 esac
4090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4091 # soname into executable. Probably we can add versioning support to
4092 # collect2, so additional links can be useful in future.
4093 if test "$aix_use_runtimelinking" = yes; then
4094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4095 # instead of lib<name>.a to let people know that these are not
4096 # typical AIX shared libraries.
4097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4098 else
4099 # We preserve .a as extension for shared libraries through AIX4.2
4100 # and later when we are not doing run time linking.
4101 library_names_spec='${libname}${release}.a $libname.a'
4102 soname_spec='${libname}${release}${shared_ext}$major'
4104 shlibpath_var=LIBPATH
4108 amigaos*)
4109 library_names_spec='$libname.ixlibrary $libname.a'
4110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4111 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4114 beos*)
4115 library_names_spec='${libname}${shared_ext}'
4116 dynamic_linker="$host_os ld.so"
4117 shlibpath_var=LIBRARY_PATH
4120 bsdi4*)
4121 version_type=linux
4122 need_version=no
4123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4124 soname_spec='${libname}${release}${shared_ext}$major'
4125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4126 shlibpath_var=LD_LIBRARY_PATH
4127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4129 # the default ld.so.conf also contains /usr/contrib/lib and
4130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4131 # libtool to hard-code these into programs
4134 cygwin* | mingw* | pw32*)
4135 version_type=windows
4136 shrext=".dll"
4137 need_version=no
4138 need_lib_prefix=no
4140 case $GCC,$host_os in
4141 yes,cygwin* | yes,mingw* | yes,pw32*)
4142 library_names_spec='$libname.dll.a'
4143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4144 postinstall_cmds='base_file=`basename \${file}`~
4145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4146 dldir=$destdir/`dirname \$dlpath`~
4147 test -d \$dldir || mkdir -p \$dldir~
4148 $install_prog $dir/$dlname \$dldir/$dlname'
4149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4150 dlpath=$dir/\$dldll~
4151 $rm \$dlpath'
4152 shlibpath_overrides_runpath=yes
4154 case $host_os in
4155 cygwin*)
4156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4158 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4160 mingw*)
4161 # MinGW DLLs use traditional 'lib' prefix
4162 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4164 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4165 # It is most probably a Windows format PATH printed by
4166 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4167 # path with ; separators, and with drive letters. We can handle the
4168 # drive letters (cygwin fileutils understands them), so leave them,
4169 # especially as we might pass files found there to a mingw objdump,
4170 # which wouldn't understand a cygwinified path. Ahh.
4171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4172 else
4173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4176 pw32*)
4177 # pw32 DLLs use 'pw' prefix rather than 'lib'
4178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4180 esac
4184 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4186 esac
4187 dynamic_linker='Win32 ld.exe'
4188 # FIXME: first we should search . and the directory the executable is in
4189 shlibpath_var=PATH
4192 darwin* | rhapsody*)
4193 dynamic_linker="$host_os dyld"
4194 version_type=darwin
4195 need_lib_prefix=no
4196 need_version=no
4197 # FIXME: Relying on posixy $() will cause problems for
4198 # cross-compilation, but unfortunately the echo tests do not
4199 # yet detect zsh echo's removal of \ escapes.
4200 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4201 soname_spec='${libname}${release}${major}$shared_ext'
4202 shlibpath_overrides_runpath=yes
4203 shlibpath_var=DYLD_LIBRARY_PATH
4204 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4205 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4206 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4207 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4212 dgux*)
4213 version_type=linux
4214 need_lib_prefix=no
4215 need_version=no
4216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4217 soname_spec='${libname}${release}${shared_ext}$major'
4218 shlibpath_var=LD_LIBRARY_PATH
4221 freebsd1*)
4222 dynamic_linker=no
4225 freebsd*)
4226 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4227 version_type=freebsd-$objformat
4228 case $version_type in
4229 freebsd-elf*)
4230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4231 need_version=no
4232 need_lib_prefix=no
4234 freebsd-*)
4235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4236 need_version=yes
4238 esac
4239 shlibpath_var=LD_LIBRARY_PATH
4240 case $host_os in
4241 freebsd2*)
4242 shlibpath_overrides_runpath=yes
4244 freebsd3.01* | freebsdelf3.01*)
4245 shlibpath_overrides_runpath=yes
4246 hardcode_into_libs=yes
4248 *) # from 3.2 on
4249 shlibpath_overrides_runpath=no
4250 hardcode_into_libs=yes
4252 esac
4255 gnu*)
4256 version_type=linux
4257 need_lib_prefix=no
4258 need_version=no
4259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4260 soname_spec='${libname}${release}${shared_ext}$major'
4261 shlibpath_var=LD_LIBRARY_PATH
4262 hardcode_into_libs=yes
4265 hpux9* | hpux10* | hpux11*)
4266 # Give a soname corresponding to the major version so that dld.sl refuses to
4267 # link against other versions.
4268 version_type=sunos
4269 need_lib_prefix=no
4270 need_version=no
4271 case "$host_cpu" in
4272 ia64*)
4273 shrext='.so'
4274 hardcode_into_libs=yes
4275 dynamic_linker="$host_os dld.so"
4276 shlibpath_var=LD_LIBRARY_PATH
4277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4279 soname_spec='${libname}${release}${shared_ext}$major'
4280 if test "X$HPUX_IA64_MODE" = X32; then
4281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4282 else
4283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4287 hppa*64*)
4288 shrext='.sl'
4289 hardcode_into_libs=yes
4290 dynamic_linker="$host_os dld.sl"
4291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4294 soname_spec='${libname}${release}${shared_ext}$major'
4295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4299 shrext='.sl'
4300 dynamic_linker="$host_os dld.sl"
4301 shlibpath_var=SHLIB_PATH
4302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4304 soname_spec='${libname}${release}${shared_ext}$major'
4306 esac
4307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4308 postinstall_cmds='chmod 555 $lib'
4311 irix5* | irix6* | nonstopux*)
4312 case $host_os in
4313 nonstopux*) version_type=nonstopux ;;
4315 if test "$lt_cv_prog_gnu_ld" = yes; then
4316 version_type=linux
4317 else
4318 version_type=irix
4319 fi ;;
4320 esac
4321 need_lib_prefix=no
4322 need_version=no
4323 soname_spec='${libname}${release}${shared_ext}$major'
4324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4325 case $host_os in
4326 irix5* | nonstopux*)
4327 libsuff= shlibsuff=
4330 case $LD in # libtool.m4 will add one of these switches to LD
4331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4332 libsuff= shlibsuff= libmagic=32-bit;;
4333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4334 libsuff=32 shlibsuff=N32 libmagic=N32;;
4335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4337 *) libsuff= shlibsuff= libmagic=never-match;;
4338 esac
4340 esac
4341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4342 shlibpath_overrides_runpath=no
4343 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4344 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4345 hardcode_into_libs=yes
4348 # No shared lib support for Linux oldld, aout, or coff.
4349 linux*oldld* | linux*aout* | linux*coff*)
4350 dynamic_linker=no
4353 # This must be Linux ELF.
4354 linux*)
4355 version_type=linux
4356 need_lib_prefix=no
4357 need_version=no
4358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4359 soname_spec='${libname}${release}${shared_ext}$major'
4360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4361 shlibpath_var=LD_LIBRARY_PATH
4362 shlibpath_overrides_runpath=no
4363 # This implies no fast_install, which is unacceptable.
4364 # Some rework will be needed to allow for fast_install
4365 # before this can be enabled.
4366 hardcode_into_libs=yes
4368 # We used to test for /lib/ld.so.1 and disable shared libraries on
4369 # powerpc, because MkLinux only supported shared libraries with the
4370 # GNU dynamic linker. Since this was broken with cross compilers,
4371 # most powerpc-linux boxes support dynamic linking these days and
4372 # people can always --disable-shared, the test was removed, and we
4373 # assume the GNU/Linux dynamic linker is in use.
4374 dynamic_linker='GNU/Linux ld.so'
4377 netbsd*)
4378 version_type=sunos
4379 need_lib_prefix=no
4380 need_version=no
4381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4384 dynamic_linker='NetBSD (a.out) ld.so'
4385 else
4386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4387 soname_spec='${libname}${release}${shared_ext}$major'
4388 dynamic_linker='NetBSD ld.elf_so'
4390 shlibpath_var=LD_LIBRARY_PATH
4391 shlibpath_overrides_runpath=yes
4392 hardcode_into_libs=yes
4395 newsos6)
4396 version_type=linux
4397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4398 shlibpath_var=LD_LIBRARY_PATH
4399 shlibpath_overrides_runpath=yes
4402 nto-qnx)
4403 version_type=linux
4404 need_lib_prefix=no
4405 need_version=no
4406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4407 soname_spec='${libname}${release}${shared_ext}$major'
4408 shlibpath_var=LD_LIBRARY_PATH
4409 shlibpath_overrides_runpath=yes
4412 openbsd*)
4413 version_type=sunos
4414 need_lib_prefix=no
4415 need_version=no
4416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4418 shlibpath_var=LD_LIBRARY_PATH
4419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4420 case $host_os in
4421 openbsd2.[89] | openbsd2.[89].*)
4422 shlibpath_overrides_runpath=no
4425 shlibpath_overrides_runpath=yes
4427 esac
4428 else
4429 shlibpath_overrides_runpath=yes
4433 os2*)
4434 libname_spec='$name'
4435 shrext=".dll"
4436 need_lib_prefix=no
4437 library_names_spec='$libname${shared_ext} $libname.a'
4438 dynamic_linker='OS/2 ld.exe'
4439 shlibpath_var=LIBPATH
4442 osf3* | osf4* | osf5*)
4443 version_type=osf
4444 need_lib_prefix=no
4445 need_version=no
4446 soname_spec='${libname}${release}${shared_ext}$major'
4447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4448 shlibpath_var=LD_LIBRARY_PATH
4449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4453 sco3.2v5*)
4454 version_type=osf
4455 soname_spec='${libname}${release}${shared_ext}$major'
4456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4457 shlibpath_var=LD_LIBRARY_PATH
4460 solaris*)
4461 version_type=linux
4462 need_lib_prefix=no
4463 need_version=no
4464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4465 soname_spec='${libname}${release}${shared_ext}$major'
4466 shlibpath_var=LD_LIBRARY_PATH
4467 shlibpath_overrides_runpath=yes
4468 hardcode_into_libs=yes
4469 # ldd complains unless libraries are executable
4470 postinstall_cmds='chmod +x $lib'
4473 sunos4*)
4474 version_type=sunos
4475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4477 shlibpath_var=LD_LIBRARY_PATH
4478 shlibpath_overrides_runpath=yes
4479 if test "$with_gnu_ld" = yes; then
4480 need_lib_prefix=no
4482 need_version=yes
4485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4486 version_type=linux
4487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4488 soname_spec='${libname}${release}${shared_ext}$major'
4489 shlibpath_var=LD_LIBRARY_PATH
4490 case $host_vendor in
4491 sni)
4492 shlibpath_overrides_runpath=no
4493 need_lib_prefix=no
4494 export_dynamic_flag_spec='${wl}-Blargedynsym'
4495 runpath_var=LD_RUN_PATH
4497 siemens)
4498 need_lib_prefix=no
4500 motorola)
4501 need_lib_prefix=no
4502 need_version=no
4503 shlibpath_overrides_runpath=no
4504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4506 esac
4509 sysv4*MP*)
4510 if test -d /usr/nec ;then
4511 version_type=linux
4512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4513 soname_spec='$libname${shared_ext}.$major'
4514 shlibpath_var=LD_LIBRARY_PATH
4518 uts4*)
4519 version_type=linux
4520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4521 soname_spec='${libname}${release}${shared_ext}$major'
4522 shlibpath_var=LD_LIBRARY_PATH
4526 dynamic_linker=no
4528 esac
4529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4530 echo "${ECHO_T}$dynamic_linker" >&6
4531 test "$dynamic_linker" = no && can_build_shared=no
4534 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4535 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4536 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 libltdl_cv_shlibpath_var="$shlibpath_var"
4541 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4542 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4543 if test -n "$libltdl_cv_shlibpath_var"; then
4545 cat >>confdefs.h <<_ACEOF
4546 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4547 _ACEOF
4553 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4556 # See if the user has requested runtime debugging.
4557 LIBGCJDEBUG="disable"
4559 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4560 if test "${enable_libgcj_debug+set}" = set; then
4561 enableval="$enable_libgcj_debug"
4562 if test "$enable_libgcj_debug" = yes; then
4564 cat >>confdefs.h <<\_ACEOF
4565 #define DEBUG 1
4566 _ACEOF
4568 LIBGCJDEBUG="enable"
4572 # Determine which AWT peer libraries to build
4573 # Check whether --enable-java-awt or --disable-java-awt was given.
4574 if test "${enable_java_awt+set}" = set; then
4575 enableval="$enable_java_awt"
4579 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4580 use_xlib_awt=""
4581 use_gtk_awt=""
4582 use_qt_awt=""
4583 # The default toolkit to use is the first one specified.
4584 TOOLKIT=
4587 for peer in $peerlibs ; do
4588 case $peer in
4589 xlib)
4590 if test "$no_x" = yes; then
4591 echo "*** xlib peers requested but no X library available" 1>&2
4592 exit 1
4593 else
4594 use_xlib_awt="yes"
4595 if test -z "$TOOLKIT"; then
4596 TOOLKIT=gnu.awt.xlib.XToolkit
4600 gtk)
4601 if test "$no_x" = yes; then
4602 echo "*** gtk peers requested but no X library available" 1>&2
4603 exit 1
4604 else
4605 use_gtk_awt=yes
4606 if test -z "$TOOLKIT"; then
4607 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4612 if test "$no_x" = yes; then
4613 # Perhaps we should admit the possibility of embedded Qt.
4614 echo "*** Qt peers requested but no X library available" 1>&2
4615 exit 1
4616 else
4617 use_qt_awt=yes
4618 if test -z "$TOOLKIT"; then
4619 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4624 use_xlib_awt=
4625 use_gtk_awt=
4626 use_qt_awt=
4627 break
4630 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4631 exit 1
4632 esac
4633 done
4637 if test "$use_xlib_awt" = yes; then
4638 XLIB_AWT_TRUE=
4639 XLIB_AWT_FALSE='#'
4640 else
4641 XLIB_AWT_TRUE='#'
4642 XLIB_AWT_FALSE=
4647 if test "$use_gtk_awt" = yes; then
4648 GTK_AWT_TRUE=
4649 GTK_AWT_FALSE='#'
4650 else
4651 GTK_AWT_TRUE='#'
4652 GTK_AWT_FALSE=
4657 if test "$use_qt_awt" = yes; then
4658 QT_AWT_TRUE=
4659 QT_AWT_FALSE='#'
4660 else
4661 QT_AWT_TRUE='#'
4662 QT_AWT_FALSE=
4666 # Create standard.omit based on decisions we just made.
4667 cp $srcdir/standard.omit.in standard.omit
4668 if test "$use_xlib_awt" != yes; then
4669 echo gnu/awt/xlib >> standard.omit
4670 echo gnu/gcj/xlib >> standard.omit
4672 if test "$use_gtk_awt" != yes; then
4673 echo gnu/java/awt/peer/gtk >> standard.omit
4675 if test "$use_qt_awt" != yes; then
4676 echo gnu/java/awt/peer/qt >> standard.omit
4679 if test -z "${with_multisubdir}"; then
4680 builddotdot=.
4681 else
4682 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4685 NATIVE=yes
4687 # Which gcj do we use?
4688 which_gcj=default
4689 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4690 if test -n "${with_cross_host}"; then
4691 # We are being configured with a cross compiler. We can't
4692 # use ac_exeext, because that is for the target platform.
4693 NATIVE=no
4694 cross_host_exeext=
4695 case "${with_cross_host}" in
4696 *mingw* | *cygwin*)
4697 cross_host_exeext=.exe
4699 esac
4700 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4701 if test x"$build_noncanonical" = x"$with_cross_host"; then
4702 # Ordinary cross (host!=target and host=build)
4703 which_gcj=built
4704 else
4705 # Canadian cross (host!=target and host!=build)
4706 which_gcj=cross
4708 else
4709 which_gcj=cross
4711 else
4712 # We are being configured with a native or crossed-native compiler
4713 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4714 if test x"$build" = x"$host"; then
4715 # True native build (host=target and host=build)
4716 which_gcj=built
4717 else
4718 # Crossed-native build (host=target and host!=build)
4719 which_gcj=cross
4721 else
4722 which_gcj=path
4725 case "${which_gcj}" in
4726 built)
4727 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4728 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4729 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4731 cross)
4732 if test "x${with_newlib}" = "xyes"; then
4733 # FIXME (comment): Why is this needed?
4734 GCC_UNWIND_INCLUDE=
4735 GCJ="${target_noncanonical}-gcj"
4736 else
4737 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4739 ZIP='$(target_noncanonical)-fastjar'
4740 GCJH='$(target_noncanonical)-gcjh'
4742 path)
4743 GCJ="gcj -B`${PWDCMD-pwd}`/"
4744 ## In this case, gcj is found outside the build tree. However, zip is
4745 ## found in the build tree.
4746 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4747 GCJH=gcjh
4749 esac
4754 # Create it, so that compile/link tests don't fail
4755 test -f libgcj.spec || touch libgcj.spec
4759 # Set up to configure Classpath.
4760 # FIXME: no supported way to pass args in autoconf.
4761 ac_configure_args="$ac_configure_args --disable-load-library"
4762 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4763 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4764 dir1=`cd $srcdir && pwd`
4765 dir2=`pwd`
4766 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4767 ac_configure_args="$ac_configure_args --disable-core-jni"
4768 ac_configure_args="$ac_configure_args --disable-examples"
4769 ac_configure_args="$ac_configure_args --with-glibj=build"
4770 if test "$use_gtk_awt" != yes; then
4771 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4773 if test "$use_qt_awt" != yes; then
4774 ac_configure_args="$ac_configure_args --disable-qt-peer"
4775 else
4776 # We need this as qt is disabled by default in classpath.
4777 ac_configure_args="$ac_configure_args --enable-qt-peer"
4780 # Only use libltdl for non-newlib builds.
4781 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4782 case $enable_ltdl_convenience in
4783 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4784 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4785 { (exit 1); exit 1; }; } ;;
4786 "") enable_ltdl_convenience=yes
4787 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4788 esac
4789 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4790 INCLTDL='-I${top_srcdir}/''libltdl'
4793 DIRLTDL=libltdl
4795 cat >>confdefs.h <<\_ACEOF
4796 #define USE_LTDL 1
4797 _ACEOF
4799 # Sigh. Libtool's macro doesn't do the right thing.
4800 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4801 # FIXME: this is a hack.
4802 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4803 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4808 # Check whether --enable-shared or --disable-shared was given.
4809 if test "${enable_shared+set}" = set; then
4810 enableval="$enable_shared"
4811 p=${PACKAGE-default}
4812 case $enableval in
4813 yes) enable_shared=yes ;;
4814 no) enable_shared=no ;;
4816 enable_shared=no
4817 # Look at the argument we got. We use all the common list separators.
4818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4819 for pkg in $enableval; do
4820 if test "X$pkg" = "X$p"; then
4821 enable_shared=yes
4823 done
4824 IFS="$ac_save_ifs"
4826 esac
4827 else
4828 enable_shared=yes
4830 # Check whether --enable-static or --disable-static was given.
4831 if test "${enable_static+set}" = set; then
4832 enableval="$enable_static"
4833 p=${PACKAGE-default}
4834 case $enableval in
4835 yes) enable_static=yes ;;
4836 no) enable_static=no ;;
4838 enable_static=no
4839 # Look at the argument we got. We use all the common list separators.
4840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4841 for pkg in $enableval; do
4842 if test "X$pkg" = "X$p"; then
4843 enable_static=yes
4845 done
4846 IFS="$ac_save_ifs"
4848 esac
4849 else
4850 enable_static=yes
4852 # Check whether --enable-fast-install or --disable-fast-install was given.
4853 if test "${enable_fast_install+set}" = set; then
4854 enableval="$enable_fast_install"
4855 p=${PACKAGE-default}
4856 case $enableval in
4857 yes) enable_fast_install=yes ;;
4858 no) enable_fast_install=no ;;
4860 enable_fast_install=no
4861 # Look at the argument we got. We use all the common list separators.
4862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4863 for pkg in $enableval; do
4864 if test "X$pkg" = "X$p"; then
4865 enable_fast_install=yes
4867 done
4868 IFS="$ac_save_ifs"
4870 esac
4871 else
4872 enable_fast_install=yes
4875 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4876 if test "${with_gnu_ld+set}" = set; then
4877 withval="$with_gnu_ld"
4878 test "$withval" = no || with_gnu_ld=yes
4879 else
4880 with_gnu_ld=no
4882 ac_prog=ld
4883 if test "$GCC" = yes; then
4884 # Check if gcc -print-prog-name=ld gives a path.
4885 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4886 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4887 case $host in
4888 *-*-mingw*)
4889 # gcc leaves a trailing carriage return which upsets mingw
4890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4893 esac
4894 case $ac_prog in
4895 # Accept absolute paths.
4896 [\\/]* | [A-Za-z]:[\\/]*)
4897 re_direlt='/[^/][^/]*/\.\./'
4898 # Canonicalize the path of ld
4899 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4901 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4902 done
4903 test -z "$LD" && LD="$ac_prog"
4906 # If it fails, then pretend we aren't using GCC.
4907 ac_prog=ld
4910 # If it is relative, then search for the first ld in PATH.
4911 with_gnu_ld=unknown
4913 esac
4914 elif test "$with_gnu_ld" = yes; then
4915 echo "$as_me:$LINENO: checking for GNU ld" >&5
4916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4917 else
4918 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4921 if test "${lt_cv_path_LD+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 if test -z "$LD"; then
4925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4926 for ac_dir in $PATH; do
4927 test -z "$ac_dir" && ac_dir=.
4928 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4929 lt_cv_path_LD="$ac_dir/$ac_prog"
4930 # Check to see if the program is GNU ld. I'd rather use --version,
4931 # but apparently some GNU ld's only accept -v.
4932 # Break only if it was the GNU/non-GNU ld that we prefer.
4933 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4934 test "$with_gnu_ld" != no && break
4935 else
4936 test "$with_gnu_ld" != yes && break
4939 done
4940 IFS="$ac_save_ifs"
4941 else
4942 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4946 LD="$lt_cv_path_LD"
4947 if test -n "$LD"; then
4948 echo "$as_me:$LINENO: result: $LD" >&5
4949 echo "${ECHO_T}$LD" >&6
4950 else
4951 echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4954 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4955 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4956 { (exit 1); exit 1; }; }
4957 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4958 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4959 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4963 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4964 lt_cv_prog_gnu_ld=yes
4965 else
4966 lt_cv_prog_gnu_ld=no
4969 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4970 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4971 with_gnu_ld=$lt_cv_prog_gnu_ld
4974 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4975 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4976 if test "${lt_cv_ld_reload_flag+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 lt_cv_ld_reload_flag='-r'
4981 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4982 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4983 reload_flag=$lt_cv_ld_reload_flag
4984 test -n "$reload_flag" && reload_flag=" $reload_flag"
4986 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4987 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4988 if test "${lt_cv_path_NM+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 if test -n "$NM"; then
4992 # Let the user override the test.
4993 lt_cv_path_NM="$NM"
4994 else
4995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4996 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4997 test -z "$ac_dir" && ac_dir=.
4998 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4999 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5000 # Check to see if the nm accepts a BSD-compat flag.
5001 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5002 # nm: unknown option "B" ignored
5003 # Tru64's nm complains that /dev/null is an invalid object file
5004 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5005 lt_cv_path_NM="$tmp_nm -B"
5006 break
5007 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5008 lt_cv_path_NM="$tmp_nm -p"
5009 break
5010 else
5011 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5012 continue # so that we can try to find one that supports BSD flags
5015 done
5016 IFS="$ac_save_ifs"
5017 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5021 NM="$lt_cv_path_NM"
5022 echo "$as_me:$LINENO: result: $NM" >&5
5023 echo "${ECHO_T}$NM" >&6
5025 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5026 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5027 if test "${lt_cv_deplibs_check_method+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 lt_cv_file_magic_cmd='$MAGIC_CMD'
5031 lt_cv_file_magic_test_file=
5032 lt_cv_deplibs_check_method='unknown'
5033 # Need to set the preceding variable on all platforms that support
5034 # interlibrary dependencies.
5035 # 'none' -- dependencies not supported.
5036 # `unknown' -- same as none, but documents that we really don't know.
5037 # 'pass_all' -- all dependencies passed with no checks.
5038 # 'test_compile' -- check by making test program.
5039 # 'file_magic [regex]' -- check by looking for files in library path
5040 # which responds to the $file_magic_cmd with a given egrep regex.
5041 # If you have `file' or equivalent on your system and you're not sure
5042 # whether `pass_all' will *always* work, you probably want this one.
5044 case $host_os in
5045 aix*)
5046 lt_cv_deplibs_check_method=pass_all
5049 beos*)
5050 lt_cv_deplibs_check_method=pass_all
5053 bsdi4*)
5054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5055 lt_cv_file_magic_cmd='/usr/bin/file -L'
5056 lt_cv_file_magic_test_file=/shlib/libc.so
5059 cygwin* | mingw* |pw32*)
5060 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5061 lt_cv_file_magic_cmd='$OBJDUMP -f'
5064 darwin* | rhapsody*)
5065 # this will be overwritten by pass_all, but leave it in just in case
5066 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5067 lt_cv_file_magic_cmd='/usr/bin/file -L'
5068 case "$host_os" in
5069 rhapsody* | darwin1.012)
5070 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5072 *) # Darwin 1.3 on
5073 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5075 esac
5076 lt_cv_deplibs_check_method=pass_all
5079 freebsd* | kfreebsd*-gnu)
5080 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5081 case $host_cpu in
5082 i*86 )
5083 # Not sure whether the presence of OpenBSD here was a mistake.
5084 # Let's accept both of them until this is cleared up.
5085 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5086 lt_cv_file_magic_cmd=/usr/bin/file
5087 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5089 esac
5090 else
5091 lt_cv_deplibs_check_method=pass_all
5095 gnu*)
5096 lt_cv_deplibs_check_method=pass_all
5099 hpux10.20*|hpux11*)
5100 case $host_cpu in
5101 hppa*)
5102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5103 lt_cv_file_magic_cmd=/usr/bin/file
5104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5106 ia64*)
5107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5108 lt_cv_file_magic_cmd=/usr/bin/file
5109 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5111 esac
5114 irix5* | irix6*)
5115 case $host_os in
5116 irix5*)
5117 # this will be overridden with pass_all, but let us keep it just in case
5118 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5121 case $LD in
5122 *-32|*"-32 ") libmagic=32-bit;;
5123 *-n32|*"-n32 ") libmagic=N32;;
5124 *-64|*"-64 ") libmagic=64-bit;;
5125 *) libmagic=never-match;;
5126 esac
5127 # this will be overridden with pass_all, but let us keep it just in case
5128 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5130 esac
5131 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5132 lt_cv_deplibs_check_method=pass_all
5135 # This must be Linux ELF.
5136 linux-gnu*)
5137 lt_cv_deplibs_check_method=pass_all
5140 netbsd* | knetbsd*-gnu)
5141 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5142 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5143 else
5144 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5148 newsos6)
5149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5150 lt_cv_file_magic_cmd=/usr/bin/file
5151 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5154 osf3* | osf4* | osf5*)
5155 # this will be overridden with pass_all, but let us keep it just in case
5156 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5157 lt_cv_file_magic_test_file=/shlib/libc.so
5158 lt_cv_deplibs_check_method=pass_all
5161 sco3.2v5*)
5162 lt_cv_deplibs_check_method=pass_all
5165 solaris*)
5166 lt_cv_deplibs_check_method=pass_all
5167 lt_cv_file_magic_test_file=/lib/libc.so
5170 sysv5uw[78]* | sysv4*uw2*)
5171 lt_cv_deplibs_check_method=pass_all
5174 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5175 case $host_vendor in
5176 ncr)
5177 lt_cv_deplibs_check_method=pass_all
5179 motorola)
5180 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]'
5181 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5183 esac
5185 esac
5188 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5189 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5190 file_magic_cmd=$lt_cv_file_magic_cmd
5191 deplibs_check_method=$lt_cv_deplibs_check_method
5196 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5198 # find the maximum length of command line arguments
5199 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5200 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5201 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5205 teststring="ABCD"
5207 case $build_os in
5208 msdosdjgpp*)
5209 # On DJGPP, this test can blow up pretty badly due to problems in libc
5210 # (any single argument exceeding 2000 bytes causes a buffer overrun
5211 # during glob expansion). Even if it were fixed, the result of this
5212 # check would be larger than it should be.
5213 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5216 cygwin* | mingw*)
5217 # On Win9x/ME, this test blows up -- it succeeds, but takes
5218 # about 5 minutes as the teststring grows exponentially.
5219 # Worse, since 9x/ME are not pre-emptively multitasking,
5220 # you end up with a "frozen" computer, even though with patience
5221 # the test eventually succeeds (with a max line length of 256k).
5222 # Instead, let's just punt: use the minimum linelength reported by
5223 # all of the supported platforms: 8192 (on NT/2K/XP).
5224 lt_cv_sys_max_cmd_len=8192;
5227 amigaos*)
5228 # On AmigaOS with pdksh, this test takes hours, literally.
5229 # So we just punt and use a minimum line length of 8192.
5230 lt_cv_sys_max_cmd_len=8192;
5233 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5234 # This has been around since 386BSD, at least. Likely further.
5235 if test -x /sbin/sysctl; then
5236 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5237 elif test -x /usr/sbin/sysctl; then
5238 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5239 else
5240 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5242 # And add a safety zone
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5246 esac
5250 if test -n "$lt_cv_sys_max_cmd_len" ; then
5251 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5252 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5253 else
5254 echo "$as_me:$LINENO: result: none" >&5
5255 echo "${ECHO_T}none" >&6
5259 # Only perform the check for file, if the check method requires it
5260 case $deplibs_check_method in
5261 file_magic*)
5262 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5263 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5264 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268 case $MAGIC_CMD in
5270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5272 ?:/*)
5273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5276 ac_save_MAGIC_CMD="$MAGIC_CMD"
5277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5278 ac_dummy="/usr/bin:$PATH"
5279 for ac_dir in $ac_dummy; do
5280 test -z "$ac_dir" && ac_dir=.
5281 if test -f $ac_dir/${ac_tool_prefix}file; then
5282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5283 if test -n "$file_magic_test_file"; then
5284 case $deplibs_check_method in
5285 "file_magic "*)
5286 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5289 egrep "$file_magic_regex" > /dev/null; then
5291 else
5292 cat <<EOF 1>&2
5294 *** Warning: the command libtool uses to detect shared libraries,
5295 *** $file_magic_cmd, produces output that libtool cannot recognize.
5296 *** The result is that libtool may fail to recognize shared libraries
5297 *** as such. This will affect the creation of libtool libraries that
5298 *** depend on shared libraries, but programs linked with such libtool
5299 *** libraries will work regardless of this problem. Nevertheless, you
5300 *** may want to report the problem to your system manager and/or to
5301 *** bug-libtool@gnu.org
5304 fi ;;
5305 esac
5307 break
5309 done
5310 IFS="$ac_save_ifs"
5311 MAGIC_CMD="$ac_save_MAGIC_CMD"
5313 esac
5316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5317 if test -n "$MAGIC_CMD"; then
5318 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5319 echo "${ECHO_T}$MAGIC_CMD" >&6
5320 else
5321 echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5325 if test -z "$lt_cv_path_MAGIC_CMD"; then
5326 if test -n "$ac_tool_prefix"; then
5327 echo "$as_me:$LINENO: checking for file" >&5
5328 echo $ECHO_N "checking for file... $ECHO_C" >&6
5329 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 case $MAGIC_CMD in
5334 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5336 ?:/*)
5337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5340 ac_save_MAGIC_CMD="$MAGIC_CMD"
5341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5342 ac_dummy="/usr/bin:$PATH"
5343 for ac_dir in $ac_dummy; do
5344 test -z "$ac_dir" && ac_dir=.
5345 if test -f $ac_dir/file; then
5346 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5347 if test -n "$file_magic_test_file"; then
5348 case $deplibs_check_method in
5349 "file_magic "*)
5350 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5352 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5353 egrep "$file_magic_regex" > /dev/null; then
5355 else
5356 cat <<EOF 1>&2
5358 *** Warning: the command libtool uses to detect shared libraries,
5359 *** $file_magic_cmd, produces output that libtool cannot recognize.
5360 *** The result is that libtool may fail to recognize shared libraries
5361 *** as such. This will affect the creation of libtool libraries that
5362 *** depend on shared libraries, but programs linked with such libtool
5363 *** libraries will work regardless of this problem. Nevertheless, you
5364 *** may want to report the problem to your system manager and/or to
5365 *** bug-libtool@gnu.org
5368 fi ;;
5369 esac
5371 break
5373 done
5374 IFS="$ac_save_ifs"
5375 MAGIC_CMD="$ac_save_MAGIC_CMD"
5377 esac
5380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5381 if test -n "$MAGIC_CMD"; then
5382 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5383 echo "${ECHO_T}$MAGIC_CMD" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5389 else
5390 MAGIC_CMD=:
5396 esac
5398 if test -n "$ac_tool_prefix"; then
5399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_RANLIB+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 if test -n "$RANLIB"; then
5407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5420 done
5421 done
5425 RANLIB=$ac_cv_prog_RANLIB
5426 if test -n "$RANLIB"; then
5427 echo "$as_me:$LINENO: result: $RANLIB" >&5
5428 echo "${ECHO_T}$RANLIB" >&6
5429 else
5430 echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6
5435 if test -z "$ac_cv_prog_RANLIB"; then
5436 ac_ct_RANLIB=$RANLIB
5437 # Extract the first word of "ranlib", so it can be a program name with args.
5438 set dummy ranlib; ac_word=$2
5439 echo "$as_me:$LINENO: checking for $ac_word" >&5
5440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 if test -n "$ac_ct_RANLIB"; then
5445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_prog_ac_ct_RANLIB="ranlib"
5455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5458 done
5459 done
5461 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5465 if test -n "$ac_ct_RANLIB"; then
5466 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5467 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470 echo "${ECHO_T}no" >&6
5473 RANLIB=$ac_ct_RANLIB
5474 else
5475 RANLIB="$ac_cv_prog_RANLIB"
5478 if test -n "$ac_tool_prefix"; then
5479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5480 set dummy ${ac_tool_prefix}strip; ac_word=$2
5481 echo "$as_me:$LINENO: checking for $ac_word" >&5
5482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483 if test "${ac_cv_prog_STRIP+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486 if test -n "$STRIP"; then
5487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5500 done
5501 done
5505 STRIP=$ac_cv_prog_STRIP
5506 if test -n "$STRIP"; then
5507 echo "$as_me:$LINENO: result: $STRIP" >&5
5508 echo "${ECHO_T}$STRIP" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511 echo "${ECHO_T}no" >&6
5515 if test -z "$ac_cv_prog_STRIP"; then
5516 ac_ct_STRIP=$STRIP
5517 # Extract the first word of "strip", so it can be a program name with args.
5518 set dummy strip; ac_word=$2
5519 echo "$as_me:$LINENO: checking for $ac_word" >&5
5520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 if test -n "$ac_ct_STRIP"; then
5525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_STRIP="strip"
5535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5541 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5545 if test -n "$ac_ct_STRIP"; then
5546 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5547 echo "${ECHO_T}$ac_ct_STRIP" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5553 STRIP=$ac_ct_STRIP
5554 else
5555 STRIP="$ac_cv_prog_STRIP"
5559 # Check for any special flags to pass to ltconfig.
5560 libtool_flags="--cache-file=$cache_file"
5561 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5562 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5563 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5564 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5565 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5569 if test "${enable_libtool_lock+set}" = set; then
5570 enableval="$enable_libtool_lock"
5573 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5574 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5577 # Check whether --with-pic or --without-pic was given.
5578 if test "${with_pic+set}" = set; then
5579 withval="$with_pic"
5580 pic_mode="$withval"
5581 else
5582 pic_mode=default
5584 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5585 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5587 # Some flags need to be propagated to the compiler or linker for good
5588 # libtool support.
5589 case $host in
5590 *-*-irix6*)
5591 # Find out which ABI we are using.
5592 echo '#line 5592 "configure"' > conftest.$ac_ext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; then
5598 if test "$lt_cv_prog_gnu_ld" = yes; then
5599 case `/usr/bin/file conftest.$ac_objext` in
5600 *32-bit*)
5601 LD="${LD-ld} -melf32bsmip"
5603 *N32*)
5604 LD="${LD-ld} -melf32bmipn32"
5606 *64-bit*)
5607 LD="${LD-ld} -melf64bmip"
5609 esac
5610 else
5611 case `/usr/bin/file conftest.$ac_objext` in
5612 *32-bit*)
5613 LD="${LD-ld} -32"
5615 *N32*)
5616 LD="${LD-ld} -n32"
5618 *64-bit*)
5619 LD="${LD-ld} -64"
5621 esac
5624 rm -rf conftest*
5627 ia64-*-hpux*)
5628 # Find out which ABI we are using.
5629 echo 'int i;' > conftest.$ac_ext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; then
5635 case "`/usr/bin/file conftest.o`" in
5636 *ELF-32*)
5637 HPUX_IA64_MODE="32"
5639 *ELF-64*)
5640 HPUX_IA64_MODE="64"
5642 esac
5644 rm -rf conftest*
5647 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5648 # Find out which ABI we are using.
5649 echo 'int i;' > conftest.$ac_ext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; then
5655 case "`/usr/bin/file conftest.o`" in
5656 *32-bit*)
5657 case $host in
5658 x86_64-*linux*)
5659 LD="${LD-ld} -m elf_i386"
5661 ppc64-*linux*|powerpc64-*linux*)
5662 LD="${LD-ld} -m elf32ppclinux"
5664 s390x-*linux*)
5665 LD="${LD-ld} -m elf_s390"
5667 sparc64-*linux*)
5668 LD="${LD-ld} -m elf32_sparc"
5670 esac
5672 *64-bit*)
5673 case $host in
5674 x86_64-*linux*)
5675 LD="${LD-ld} -m elf_x86_64"
5677 ppc*-*linux*|powerpc*-*linux*)
5678 LD="${LD-ld} -m elf64ppc"
5680 s390*-*linux*)
5681 LD="${LD-ld} -m elf64_s390"
5683 sparc*-*linux*)
5684 LD="${LD-ld} -m elf64_sparc"
5686 esac
5688 esac
5690 rm -rf conftest*
5693 *-*-sco3.2v5*)
5694 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5695 SAVE_CFLAGS="$CFLAGS"
5696 CFLAGS="$CFLAGS -belf"
5697 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5698 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5699 if test "${lt_cv_cc_needs_belf+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5704 ac_ext=c
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 if test x$gcc_no_link = xyes; then
5711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5713 { (exit 1); exit 1; }; }
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5723 main ()
5727 return 0;
5729 _ACEOF
5730 rm -f conftest.$ac_objext conftest$ac_exeext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732 (eval $ac_link) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 lt_cv_cc_needs_belf=yes
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 lt_cv_cc_needs_belf=no
5759 rm -f conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 ac_ext=c
5762 ac_cpp='$CPP $CPPFLAGS'
5763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5768 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5769 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5770 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5771 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5772 CFLAGS="$SAVE_CFLAGS"
5777 esac
5780 # Save cache, so that ltconfig can load it
5781 cat >confcache <<\_ACEOF
5782 # This file is a shell script that caches the results of configure
5783 # tests run on this system so they can be shared between configure
5784 # scripts and configure runs, see configure's option --config-cache.
5785 # It is not useful on other systems. If it contains results you don't
5786 # want to keep, you may remove or edit it.
5788 # config.status only pays attention to the cache file if you give it
5789 # the --recheck option to rerun configure.
5791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5793 # following values.
5795 _ACEOF
5797 # The following way of writing the cache mishandles newlines in values,
5798 # but we know of no workaround that is simple, portable, and efficient.
5799 # So, don't put newlines in cache variables' values.
5800 # Ultrix sh set writes to stderr and can't be redirected directly,
5801 # and sets the high bit in the cache file unless we assign to the vars.
5803 (set) 2>&1 |
5804 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5805 *ac_space=\ *)
5806 # `set' does not quote correctly, so add quotes (double-quote
5807 # substitution turns \\\\ into \\, and sed turns \\ into \).
5808 sed -n \
5809 "s/'/'\\\\''/g;
5810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5813 # `set' quotes correctly as required by POSIX, so do not add quotes.
5814 sed -n \
5815 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5817 esac;
5819 sed '
5820 t clear
5821 : clear
5822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5823 t end
5824 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5825 : end' >>confcache
5826 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5827 if test -w $cache_file; then
5828 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5829 cat confcache >$cache_file
5830 else
5831 echo "not updating unwritable cache $cache_file"
5834 rm -f confcache
5836 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5837 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5838 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5839 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5840 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5841 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5842 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5843 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5844 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5845 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5846 echo "$as_me: error: libtool configure failed" >&2;}
5847 { (exit 1); exit 1; }; }
5849 # Reload cache, that may have been modified by ltconfig
5850 if test -r "$cache_file"; then
5851 # Some versions of bash will fail to source /dev/null (special
5852 # files actually), so we avoid doing that.
5853 if test -f "$cache_file"; then
5854 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5855 echo "$as_me: loading cache $cache_file" >&6;}
5856 case $cache_file in
5857 [\\/]* | ?:[\\/]* ) . $cache_file;;
5858 *) . ./$cache_file;;
5859 esac
5861 else
5862 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5863 echo "$as_me: creating cache $cache_file" >&6;}
5864 >$cache_file
5868 # This can be used to rebuild libtool when needed
5869 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5871 # Always use our own libtool.
5872 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5874 # Redirect the config.log output again, so that the ltconfig log is not
5875 # clobbered by the next message.
5876 exec 5>>./config.log
5878 ac_ext=cc
5879 ac_cpp='$CXXCPP $CPPFLAGS'
5880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5883 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5884 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5885 if test -z "$CXXCPP"; then
5886 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 # Double quotes because CXXCPP needs to be expanded
5890 for CXXCPP in "$CXX -E" "/lib/cpp"
5892 ac_preproc_ok=false
5893 for ac_cxx_preproc_warn_flag in '' yes
5895 # Use a header file that comes with gcc, so configuring glibc
5896 # with a fresh cross-compiler works.
5897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5898 # <limits.h> exists even on freestanding compilers.
5899 # On the NeXT, cc -E runs the code through the compiler's parser,
5900 # not just through cpp. "Syntax error" is here to catch this case.
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #ifdef __STDC__
5908 # include <limits.h>
5909 #else
5910 # include <assert.h>
5911 #endif
5912 Syntax error
5913 _ACEOF
5914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null; then
5922 if test -s conftest.err; then
5923 ac_cpp_err=$ac_cxx_preproc_warn_flag
5924 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5925 else
5926 ac_cpp_err=
5928 else
5929 ac_cpp_err=yes
5931 if test -z "$ac_cpp_err"; then
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 # Broken: fails on valid input.
5938 continue
5940 rm -f conftest.err conftest.$ac_ext
5942 # OK, works on sane cases. Now check whether non-existent headers
5943 # can be detected and how.
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <ac_nonexistent.h>
5951 _ACEOF
5952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } >/dev/null; then
5960 if test -s conftest.err; then
5961 ac_cpp_err=$ac_cxx_preproc_warn_flag
5962 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5963 else
5964 ac_cpp_err=
5966 else
5967 ac_cpp_err=yes
5969 if test -z "$ac_cpp_err"; then
5970 # Broken: success on invalid input.
5971 continue
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 # Passes both tests.
5977 ac_preproc_ok=:
5978 break
5980 rm -f conftest.err conftest.$ac_ext
5982 done
5983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5984 rm -f conftest.err conftest.$ac_ext
5985 if $ac_preproc_ok; then
5986 break
5989 done
5990 ac_cv_prog_CXXCPP=$CXXCPP
5993 CXXCPP=$ac_cv_prog_CXXCPP
5994 else
5995 ac_cv_prog_CXXCPP=$CXXCPP
5997 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5998 echo "${ECHO_T}$CXXCPP" >&6
5999 ac_preproc_ok=false
6000 for ac_cxx_preproc_warn_flag in '' yes
6002 # Use a header file that comes with gcc, so configuring glibc
6003 # with a fresh cross-compiler works.
6004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6005 # <limits.h> exists even on freestanding compilers.
6006 # On the NeXT, cc -E runs the code through the compiler's parser,
6007 # not just through cpp. "Syntax error" is here to catch this case.
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #ifdef __STDC__
6015 # include <limits.h>
6016 #else
6017 # include <assert.h>
6018 #endif
6019 Syntax error
6020 _ACEOF
6021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev/null; then
6029 if test -s conftest.err; then
6030 ac_cpp_err=$ac_cxx_preproc_warn_flag
6031 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6032 else
6033 ac_cpp_err=
6035 else
6036 ac_cpp_err=yes
6038 if test -z "$ac_cpp_err"; then
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 # Broken: fails on valid input.
6045 continue
6047 rm -f conftest.err conftest.$ac_ext
6049 # OK, works on sane cases. Now check whether non-existent headers
6050 # can be detected and how.
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <ac_nonexistent.h>
6058 _ACEOF
6059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } >/dev/null; then
6067 if test -s conftest.err; then
6068 ac_cpp_err=$ac_cxx_preproc_warn_flag
6069 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6070 else
6071 ac_cpp_err=
6073 else
6074 ac_cpp_err=yes
6076 if test -z "$ac_cpp_err"; then
6077 # Broken: success on invalid input.
6078 continue
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 # Passes both tests.
6084 ac_preproc_ok=:
6085 break
6087 rm -f conftest.err conftest.$ac_ext
6089 done
6090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6091 rm -f conftest.err conftest.$ac_ext
6092 if $ac_preproc_ok; then
6094 else
6095 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6096 See \`config.log' for more details." >&5
6097 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6098 See \`config.log' for more details." >&2;}
6099 { (exit 1); exit 1; }; }
6102 ac_ext=c
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6111 lt_save_CC="$CC"
6112 lt_save_CFLAGS="$CFLAGS"
6113 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6114 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6115 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6116 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6117 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6118 deplibs_check_method="$deplibs_check_method" \
6119 file_magic_cmd="$file_magic_cmd" \
6120 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6121 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6122 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6123 echo "$as_me: error: libtool tag configuration failed" >&2;}
6124 { (exit 1); exit 1; }; }
6125 CC="$lt_save_CC"
6126 CFLAGS="$lt_save_CFLAGS"
6128 # Redirect the config.log output again, so that the ltconfig log is not
6129 # clobbered by the next message.
6130 exec 5>>./config.log
6138 for ac_prog in gcj
6140 # Extract the first word of "$ac_prog", so it can be a program name with args.
6141 set dummy $ac_prog; ac_word=$2
6142 echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6144 if test "${ac_cv_prog_GCJ+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 if test -n "$GCJ"; then
6148 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6157 ac_cv_prog_GCJ="$ac_prog"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6161 done
6162 done
6166 GCJ=$ac_cv_prog_GCJ
6167 if test -n "$GCJ"; then
6168 echo "$as_me:$LINENO: result: $GCJ" >&5
6169 echo "${ECHO_T}$GCJ" >&6
6170 else
6171 echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6
6175 test -n "$GCJ" && break
6176 done
6177 test -n "$GCJ" || GCJ="gcj"
6179 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6180 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6181 { (exit 1); exit 1; }; }
6182 if test "x${GCJFLAGS-unset}" = xunset; then
6183 GCJFLAGS="-g -O2"
6187 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6189 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6190 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6191 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6195 # We make a subdir and do the tests there. Otherwise we can end up
6196 # making bogus files that we don't know about and never remove. For
6197 # instance it was reported that on HP-UX the gcc test will end up
6198 # making a dummy file named `D' -- because `-MD' means `put the output
6199 # in D'.
6200 mkdir conftest.dir
6201 # Copy depcomp to subdir because otherwise we won't find it if we're
6202 # using a relative directory.
6203 cp "$am_depcomp" conftest.dir
6204 cd conftest.dir
6205 # We will build objects and dependencies in a subdirectory because
6206 # it helps to detect inapplicable dependency modes. For instance
6207 # both Tru64's cc and ICC support -MD to output dependencies as a
6208 # side effect of compilation, but ICC will put the dependencies in
6209 # the current directory while Tru64 will put them in the object
6210 # directory.
6211 mkdir sub
6213 am_cv_GCJ_dependencies_compiler_type=none
6214 if test "$am_compiler_list" = ""; then
6215 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6217 for depmode in $am_compiler_list; do
6218 # Setup a source with many dependencies, because some compilers
6219 # like to wrap large dependency lists on column 80 (with \), and
6220 # we should not choose a depcomp mode which is confused by this.
6222 # We need to recreate these files for each test, as the compiler may
6223 # overwrite some of them when testing with obscure command lines.
6224 # This happens at least with the AIX C compiler.
6225 : > sub/conftest.c
6226 for i in 1 2 3 4 5 6; do
6227 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6228 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6229 # Solaris 8's {/usr,}/bin/sh.
6230 touch sub/conftst$i.h
6231 done
6232 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6234 case $depmode in
6235 nosideeffect)
6236 # after this tag, mechanisms are not by side-effect, so they'll
6237 # only be used when explicitly requested
6238 if test "x$enable_dependency_tracking" = xyes; then
6239 continue
6240 else
6241 break
6244 none) break ;;
6245 esac
6246 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6247 # mode. It turns out that the SunPro C++ compiler does not properly
6248 # handle `-M -o', and we need to detect this.
6249 if depmode=$depmode \
6250 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6251 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6252 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6253 >/dev/null 2>conftest.err &&
6254 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6255 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6257 # icc doesn't choke on unknown options, it will just issue warnings
6258 # or remarks (even with -Werror). So we grep stderr for any message
6259 # that says an option was ignored or not supported.
6260 # When given -MP, icc 7.0 and 7.1 complain thusly:
6261 # icc: Command line warning: ignoring option '-M'; no argument required
6262 # The diagnosis changed in icc 8.0:
6263 # icc: Command line remark: option '-MP' not supported
6264 if (grep 'ignoring option' conftest.err ||
6265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6266 am_cv_GCJ_dependencies_compiler_type=$depmode
6267 break
6270 done
6272 cd ..
6273 rm -rf conftest.dir
6274 else
6275 am_cv_GCJ_dependencies_compiler_type=none
6279 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6280 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6281 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6286 test "x$enable_dependency_tracking" != xno \
6287 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6288 am__fastdepGCJ_TRUE=
6289 am__fastdepGCJ_FALSE='#'
6290 else
6291 am__fastdepGCJ_TRUE='#'
6292 am__fastdepGCJ_FALSE=
6298 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6299 lt_save_CC="$CC"
6300 lt_save_CFLAGS="$CFLAGS"
6301 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6302 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6303 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6304 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6305 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6306 deplibs_check_method="$deplibs_check_method" \
6307 file_magic_cmd="$file_magic_cmd" \
6308 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6309 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6310 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6311 echo "$as_me: error: libtool tag configuration failed" >&2;}
6312 { (exit 1); exit 1; }; }
6313 CC="$lt_save_CC"
6314 CFLAGS="$lt_save_CFLAGS"
6316 # Redirect the config.log output again, so that the ltconfig log is not
6317 # clobbered by the next message.
6318 exec 5>>./config.log
6322 if test "x$CC" != xcc; then
6323 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6324 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6325 else
6326 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6327 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6329 set dummy $CC; ac_cc=`echo $2 |
6330 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6331 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6342 main ()
6346 return 0;
6348 _ACEOF
6349 # Make sure it works both with $CC and with simple cc.
6350 # We do the test twice because some compilers refuse to overwrite an
6351 # existing .o file with -o, though they will create one.
6352 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6353 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); };
6363 then
6364 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6365 if test "x$CC" != xcc; then
6366 # Test first that cc exists at all.
6367 if { ac_try='cc -c conftest.$ac_ext >&5'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6374 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); };
6384 then
6385 # cc works too.
6387 else
6388 # cc exists but doesn't like -o.
6389 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6393 else
6394 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6396 rm -f conftest*
6399 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6400 echo "$as_me:$LINENO: result: yes" >&5
6401 echo "${ECHO_T}yes" >&6
6402 else
6403 echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6
6406 cat >>confdefs.h <<\_ACEOF
6407 #define NO_MINUS_C_MINUS_O 1
6408 _ACEOF
6412 # FIXME: we rely on the cache variable name because
6413 # there is no other way.
6414 set dummy $CC
6415 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6416 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6417 # Losing compiler, so override with the script.
6418 # FIXME: It is wrong to rewrite CC.
6419 # But if we don't then we get into trouble of one sort or another.
6420 # A longer-term fix would be to have automake use am__CC in this case,
6421 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6422 CC="$am_aux_dir/compile $CC"
6428 subdirs="$subdirs classpath libltdl"
6431 # The -no-testsuite modules omit the test subdir.
6434 if test -d $srcdir/testsuite; then
6435 TESTSUBDIR_TRUE=
6436 TESTSUBDIR_FALSE='#'
6437 else
6438 TESTSUBDIR_TRUE='#'
6439 TESTSUBDIR_FALSE=
6443 # Should the runtime set system properties by examining the
6444 # environment variable GCJ_PROPERTIES?
6445 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6446 if test "${enable_getenv_properties+set}" = set; then
6447 enableval="$enable_getenv_properties"
6451 # Whether GCJ_PROPERTIES is used depends on the target.
6452 if test -z "$enable_getenv_properties"; then
6453 enable_getenv_properties=${enable_getenv_properties_default-yes}
6455 if test "$enable_getenv_properties" = no; then
6457 cat >>confdefs.h <<\_ACEOF
6458 #define DISABLE_GETENV_PROPERTIES 1
6459 _ACEOF
6463 # Whether we should use arguments to main()
6464 if test -z "$enable_main_args"; then
6465 enable_main_args=${enable_main_args_default-yes}
6467 if test "$enable_main_args" = no; then
6469 cat >>confdefs.h <<\_ACEOF
6470 #define DISABLE_MAIN_ARGS 1
6471 _ACEOF
6476 # Should we use hashtable-based synchronization?
6477 # Currently works only for Linux X86/ia64
6478 # Typically faster and more space-efficient
6479 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6480 if test "${enable_hash_synchronization+set}" = set; then
6481 enableval="$enable_hash_synchronization"
6485 if test -z "$enable_hash_synchronization"; then
6486 enable_hash_synchronization=$enable_hash_synchronization_default
6490 # Check whether --with-java-home or --without-java-home was given.
6491 if test "${with_java_home+set}" = set; then
6492 withval="$with_java_home"
6493 JAVA_HOME="${withval}"
6494 else
6495 JAVA_HOME=""
6499 if test ! -z "$JAVA_HOME"; then
6500 JAVA_HOME_SET_TRUE=
6501 JAVA_HOME_SET_FALSE='#'
6502 else
6503 JAVA_HOME_SET_TRUE='#'
6504 JAVA_HOME_SET_FALSE=
6509 # What is the native OS API for MinGW?
6511 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6512 if test "${with_win32_nlsapi+set}" = set; then
6513 withval="$with_win32_nlsapi"
6514 case "${withval}" in
6515 ansi) with_win32_nlsapi=ansi ;;
6516 unicows) with_win32_nlsapi=unicows ;;
6517 unicode) with_win32_nlsapi=unicode ;;
6518 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6519 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6520 { (exit 1); exit 1; }; } ;;
6521 esac
6522 else
6523 with_win32_nlsapi=ansi
6526 case "${with_win32_nlsapi}" in
6527 unicows | unicode)
6529 cat >>confdefs.h <<\_ACEOF
6530 #define MINGW_LIBGCJ_UNICODE 1
6531 _ACEOF
6534 esac
6536 # configure.host sets slow_pthread_self if the synchronization code should
6537 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6538 if test "${slow_pthread_self}" = "yes"; then
6540 cat >>confdefs.h <<\_ACEOF
6541 #define SLOW_PTHREAD_SELF 1
6542 _ACEOF
6546 # Check for gc debugging. This option is handled both here and in the GC.
6547 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6548 if test "${enable_gc_debug+set}" = set; then
6549 enableval="$enable_gc_debug"
6550 if test "$enable_gc_debug" = "yes"; then
6552 cat >>confdefs.h <<\_ACEOF
6553 #define LIBGCJ_GC_DEBUG 1
6554 _ACEOF
6559 # See if the user has the interpreter included.
6560 # Check whether --enable-interpreter or --disable-interpreter was given.
6561 if test "${enable_interpreter+set}" = set; then
6562 enableval="$enable_interpreter"
6563 if test "$enable_interpreter" = yes; then
6564 # This can also be set in configure.host.
6565 libgcj_interpreter=yes
6566 elif test "$enable_interpreter" = no; then
6567 libgcj_interpreter=no
6571 if test "$libgcj_interpreter" = yes; then
6573 cat >>confdefs.h <<\_ACEOF
6574 #define INTERPRETER 1
6575 _ACEOF
6578 INTERPRETER="$libgcj_interpreter"
6581 echo "$as_me:$LINENO: checking for exception model to use" >&5
6582 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6583 ac_ext=cc
6584 ac_cpp='$CXXCPP $CPPFLAGS'
6585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6589 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6590 if test "${enable_sjlj_exceptions+set}" = set; then
6591 enableval="$enable_sjlj_exceptions"
6593 else
6594 cat > conftest.$ac_ext << EOF
6595 #line 6595 "configure"
6596 struct S { ~S(); };
6597 void bar();
6598 void foo()
6600 S s;
6601 bar();
6604 old_CXXFLAGS="$CXXFLAGS"
6605 CXXFLAGS=-S
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; then
6611 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6612 enable_sjlj_exceptions=yes
6613 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6614 enable_sjlj_exceptions=no
6617 CXXFLAGS="$old_CXXFLAGS"
6618 rm -f conftest*
6620 if test x$enable_sjlj_exceptions = xyes; then
6622 cat >>confdefs.h <<\_ACEOF
6623 #define SJLJ_EXCEPTIONS 1
6624 _ACEOF
6626 ac_exception_model_name=sjlj
6627 elif test x$enable_sjlj_exceptions = xno; then
6628 ac_exception_model_name="call frame"
6629 else
6630 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6631 echo "$as_me: error: unable to detect exception model" >&2;}
6632 { (exit 1); exit 1; }; }
6634 ac_ext=c
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6641 echo "${ECHO_T}$ac_exception_model_name" >&6
6643 # If we are non using SJLJ exceptions, and this host does not have support
6644 # for unwinding from a signal handler, enable checked dereferences and divides.
6645 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6646 CHECKREFSPEC=-fcheck-references
6647 DIVIDESPEC=-fuse-divide-subroutine
6648 EXCEPTIONSPEC=
6651 # See if the user wants to disable java.net. This is the mildly
6652 # ugly way that we admit that target-side configuration sucks.
6653 # Check whether --enable-java-net or --disable-java-net was given.
6654 if test "${enable_java_net+set}" = set; then
6655 enableval="$enable_java_net"
6659 # Whether java.net is built by default can depend on the target.
6660 if test -z "$enable_java_net"; then
6661 enable_java_net=${enable_java_net_default-yes}
6663 if test "$enable_java_net" = no; then
6665 cat >>confdefs.h <<\_ACEOF
6666 #define DISABLE_JAVA_NET 1
6667 _ACEOF
6671 # See if the user wants to configure without libffi. Some
6672 # architectures don't support it, and default values are set in
6673 # configure.host.
6675 # Check whether --with-libffi or --without-libffi was given.
6676 if test "${with_libffi+set}" = set; then
6677 withval="$with_libffi"
6679 else
6680 with_libffi=${with_libffi_default-yes}
6683 LIBFFI=
6684 LIBFFIINCS=
6685 if test "$with_libffi" != no; then
6687 cat >>confdefs.h <<\_ACEOF
6688 #define USE_LIBFFI 1
6689 _ACEOF
6691 LIBFFI=../libffi/libffi_convenience.la
6692 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6697 # See if the user wants to disable JVMPI support.
6698 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6699 if test "${enable_jvmpi+set}" = set; then
6700 enableval="$enable_jvmpi"
6704 if test "$enable_jvmpi" != no; then
6706 cat >>confdefs.h <<\_ACEOF
6707 #define ENABLE_JVMPI 1
6708 _ACEOF
6712 # If the target is an eCos system, use the appropriate eCos
6713 # I/O routines.
6714 # FIXME: this should not be a local option but a global target
6715 # system; at present there is no eCos target.
6716 TARGET_ECOS=${PROCESS-"no"}
6718 # Check whether --with-ecos or --without-ecos was given.
6719 if test "${with_ecos+set}" = set; then
6720 withval="$with_ecos"
6721 TARGET_ECOS="$with_ecos"
6725 PLATFORM_INNER_NAT_HDRS=
6726 case "$TARGET_ECOS" in
6727 no) case "$host" in
6728 *mingw*)
6729 PLATFORM=Win32
6730 PLATFORMNET=Win32
6731 PLATFORMH=win32.h
6733 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6734 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6735 LD_PROG=`$CC --print-prog-name=ld`
6736 LD_VERSION=`$LD_PROG --version`
6737 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6738 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6739 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6740 LD_OK="ok"
6741 else
6742 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6743 LD_OK="ok"
6746 if test "x$LD_OK" != x; then
6747 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6748 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6751 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6752 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6753 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6755 cat >>confdefs.h <<\_ACEOF
6756 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6757 _ACEOF
6762 PLATFORM=Posix
6763 PLATFORMNET=Posix
6764 PLATFORMH=posix.h
6765 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6767 esac
6770 PLATFORM=Ecos
6771 PLATFORMNET=NoNet
6773 cat >>confdefs.h <<\_ACEOF
6774 #define ECOS 1
6775 _ACEOF
6777 PLATFORMH=posix.h
6779 esac
6781 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6784 ac_ext=c
6785 ac_cpp='$CPP $CPPFLAGS'
6786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6789 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6790 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6791 # On Suns, sometimes $CPP names a directory.
6792 if test -n "$CPP" && test -d "$CPP"; then
6793 CPP=
6795 if test -z "$CPP"; then
6796 if test "${ac_cv_prog_CPP+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 # Double quotes because CPP needs to be expanded
6800 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6802 ac_preproc_ok=false
6803 for ac_c_preproc_warn_flag in '' yes
6805 # Use a header file that comes with gcc, so configuring glibc
6806 # with a fresh cross-compiler works.
6807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6808 # <limits.h> exists even on freestanding compilers.
6809 # On the NeXT, cc -E runs the code through the compiler's parser,
6810 # not just through cpp. "Syntax error" is here to catch this case.
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 #ifdef __STDC__
6818 # include <limits.h>
6819 #else
6820 # include <assert.h>
6821 #endif
6822 Syntax error
6823 _ACEOF
6824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } >/dev/null; then
6832 if test -s conftest.err; then
6833 ac_cpp_err=$ac_c_preproc_warn_flag
6834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6835 else
6836 ac_cpp_err=
6838 else
6839 ac_cpp_err=yes
6841 if test -z "$ac_cpp_err"; then
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 # Broken: fails on valid input.
6848 continue
6850 rm -f conftest.err conftest.$ac_ext
6852 # OK, works on sane cases. Now check whether non-existent headers
6853 # can be detected and how.
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <ac_nonexistent.h>
6861 _ACEOF
6862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } >/dev/null; then
6870 if test -s conftest.err; then
6871 ac_cpp_err=$ac_c_preproc_warn_flag
6872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6873 else
6874 ac_cpp_err=
6876 else
6877 ac_cpp_err=yes
6879 if test -z "$ac_cpp_err"; then
6880 # Broken: success on invalid input.
6881 continue
6882 else
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6886 # Passes both tests.
6887 ac_preproc_ok=:
6888 break
6890 rm -f conftest.err conftest.$ac_ext
6892 done
6893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6894 rm -f conftest.err conftest.$ac_ext
6895 if $ac_preproc_ok; then
6896 break
6899 done
6900 ac_cv_prog_CPP=$CPP
6903 CPP=$ac_cv_prog_CPP
6904 else
6905 ac_cv_prog_CPP=$CPP
6907 echo "$as_me:$LINENO: result: $CPP" >&5
6908 echo "${ECHO_T}$CPP" >&6
6909 ac_preproc_ok=false
6910 for ac_c_preproc_warn_flag in '' yes
6912 # Use a header file that comes with gcc, so configuring glibc
6913 # with a fresh cross-compiler works.
6914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6915 # <limits.h> exists even on freestanding compilers.
6916 # On the NeXT, cc -E runs the code through the compiler's parser,
6917 # not just through cpp. "Syntax error" is here to catch this case.
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 #ifdef __STDC__
6925 # include <limits.h>
6926 #else
6927 # include <assert.h>
6928 #endif
6929 Syntax error
6930 _ACEOF
6931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } >/dev/null; then
6939 if test -s conftest.err; then
6940 ac_cpp_err=$ac_c_preproc_warn_flag
6941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6942 else
6943 ac_cpp_err=
6945 else
6946 ac_cpp_err=yes
6948 if test -z "$ac_cpp_err"; then
6950 else
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6954 # Broken: fails on valid input.
6955 continue
6957 rm -f conftest.err conftest.$ac_ext
6959 # OK, works on sane cases. Now check whether non-existent headers
6960 # can be detected and how.
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 #include <ac_nonexistent.h>
6968 _ACEOF
6969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } >/dev/null; then
6977 if test -s conftest.err; then
6978 ac_cpp_err=$ac_c_preproc_warn_flag
6979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6980 else
6981 ac_cpp_err=
6983 else
6984 ac_cpp_err=yes
6986 if test -z "$ac_cpp_err"; then
6987 # Broken: success on invalid input.
6988 continue
6989 else
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 # Passes both tests.
6994 ac_preproc_ok=:
6995 break
6997 rm -f conftest.err conftest.$ac_ext
6999 done
7000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7001 rm -f conftest.err conftest.$ac_ext
7002 if $ac_preproc_ok; then
7004 else
7005 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7006 See \`config.log' for more details." >&5
7007 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7008 See \`config.log' for more details." >&2;}
7009 { (exit 1); exit 1; }; }
7012 ac_ext=c
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019 echo "$as_me:$LINENO: checking for egrep" >&5
7020 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7021 if test "${ac_cv_prog_egrep+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7025 then ac_cv_prog_egrep='grep -E'
7026 else ac_cv_prog_egrep='egrep'
7029 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7030 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7031 EGREP=$ac_cv_prog_egrep
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 #include <stdint.h>
7042 _ACEOF
7043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 $EGREP "uint32_t" >/dev/null 2>&1; then
7046 cat >>confdefs.h <<\_ACEOF
7047 #define HAVE_INT32_DEFINED 1
7048 _ACEOF
7051 rm -f conftest*
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 #include <inttypes.h>
7061 _ACEOF
7062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063 $EGREP "uint32_t" >/dev/null 2>&1; then
7065 cat >>confdefs.h <<\_ACEOF
7066 #define HAVE_INT32_DEFINED 1
7067 _ACEOF
7070 rm -f conftest*
7072 cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <sys/types.h>
7080 _ACEOF
7081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7082 $EGREP "u_int32_t" >/dev/null 2>&1; then
7084 cat >>confdefs.h <<\_ACEOF
7085 #define HAVE_BSD_INT32_DEFINED 1
7086 _ACEOF
7089 rm -f conftest*
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 #include <sys/config.h>
7099 _ACEOF
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101 $EGREP "u_int32_t" >/dev/null 2>&1; then
7103 cat >>confdefs.h <<\_ACEOF
7104 #define HAVE_BSD_INT32_DEFINED 1
7105 _ACEOF
7108 rm -f conftest*
7113 if test "$PLATFORM" = Win32; then
7114 USING_WIN32_PLATFORM_TRUE=
7115 USING_WIN32_PLATFORM_FALSE='#'
7116 else
7117 USING_WIN32_PLATFORM_TRUE='#'
7118 USING_WIN32_PLATFORM_FALSE=
7123 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7124 USING_POSIX_PLATFORM_TRUE=
7125 USING_POSIX_PLATFORM_FALSE='#'
7126 else
7127 USING_POSIX_PLATFORM_TRUE='#'
7128 USING_POSIX_PLATFORM_FALSE=
7132 case "$host" in
7133 *-darwin*) DARWIN_CRT=true ;;
7134 *) DARWIN_CRT=false ;;
7135 esac
7138 if $DARWIN_CRT; then
7139 USING_DARWIN_CRT_TRUE=
7140 USING_DARWIN_CRT_FALSE='#'
7141 else
7142 USING_DARWIN_CRT_TRUE='#'
7143 USING_DARWIN_CRT_FALSE=
7147 # These may not be defined in a non-ANS conformant embedded system.
7148 # FIXME: Should these case a runtime exception in that case?
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <time.h>
7157 _ACEOF
7158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159 $EGREP "mktime" >/dev/null 2>&1; then
7161 cat >>confdefs.h <<\_ACEOF
7162 #define HAVE_MKTIME 1
7163 _ACEOF
7166 rm -f conftest*
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <time.h>
7176 _ACEOF
7177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178 $EGREP "localtime" >/dev/null 2>&1; then
7180 cat >>confdefs.h <<\_ACEOF
7181 #define HAVE_LOCALTIME 1
7182 _ACEOF
7185 rm -f conftest*
7188 # Create the subdirectory for natFile.cc, or the attempt
7189 # to create the link will fail.
7190 test -d java || mkdir java
7191 test -d java/io || mkdir java/io
7192 test -d gnu || mkdir gnu
7193 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7196 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7197 test -d java/lang || mkdir java/lang
7198 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7200 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7203 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7204 test -d java/net || mkdir java/net
7205 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7207 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7210 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7211 test -d gnu/java || mkdir gnu/java
7212 test -d gnu/java/net || mkdir gnu/java/net
7213 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7215 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7218 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7219 test -d gnu/java/nio || mkdir gnu/java/nio
7220 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7222 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7224 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7225 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7228 case "${host}" in
7229 *mingw*)
7230 SYSTEMSPEC="-lgdi32 -lws2_32"
7231 if test "${with_win32_nlsapi}" = "unicows"; then
7232 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7236 SYSTEMSPEC=
7238 esac
7241 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7245 # Check whether --with-system-zlib or --without-system-zlib was given.
7246 if test "${with_system_zlib+set}" = set; then
7247 withval="$with_system_zlib"
7250 ZLIBSPEC=
7252 ZLIBTESTSPEC=
7255 echo "$as_me:$LINENO: checking for X" >&5
7256 echo $ECHO_N "checking for X... $ECHO_C" >&6
7259 # Check whether --with-x or --without-x was given.
7260 if test "${with_x+set}" = set; then
7261 withval="$with_x"
7264 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7265 if test "x$with_x" = xno; then
7266 # The user explicitly disabled X.
7267 have_x=disabled
7268 else
7269 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7270 # Both variables are already set.
7271 have_x=yes
7272 else
7273 if test "${ac_cv_have_x+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 # One or both of the vars are not set, and there is no cached value.
7277 ac_x_includes=no ac_x_libraries=no
7278 rm -fr conftest.dir
7279 if mkdir conftest.dir; then
7280 cd conftest.dir
7281 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7282 cat >Imakefile <<'_ACEOF'
7283 acfindx:
7284 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7285 _ACEOF
7286 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7288 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7289 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7290 for ac_extension in a so sl; do
7291 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7292 test -f $ac_im_libdir/libX11.$ac_extension; then
7293 ac_im_usrlibdir=$ac_im_libdir; break
7295 done
7296 # Screen out bogus values from the imake configuration. They are
7297 # bogus both because they are the default anyway, and because
7298 # using them would break gcc on systems where it needs fixed includes.
7299 case $ac_im_incroot in
7300 /usr/include) ;;
7301 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7302 esac
7303 case $ac_im_usrlibdir in
7304 /usr/lib | /lib) ;;
7305 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7306 esac
7308 cd ..
7309 rm -fr conftest.dir
7312 # Standard set of common directories for X headers.
7313 # Check X11 before X11Rn because it is often a symlink to the current release.
7314 ac_x_header_dirs='
7315 /usr/X11/include
7316 /usr/X11R6/include
7317 /usr/X11R5/include
7318 /usr/X11R4/include
7320 /usr/include/X11
7321 /usr/include/X11R6
7322 /usr/include/X11R5
7323 /usr/include/X11R4
7325 /usr/local/X11/include
7326 /usr/local/X11R6/include
7327 /usr/local/X11R5/include
7328 /usr/local/X11R4/include
7330 /usr/local/include/X11
7331 /usr/local/include/X11R6
7332 /usr/local/include/X11R5
7333 /usr/local/include/X11R4
7335 /usr/X386/include
7336 /usr/x386/include
7337 /usr/XFree86/include/X11
7339 /usr/include
7340 /usr/local/include
7341 /usr/unsupported/include
7342 /usr/athena/include
7343 /usr/local/x11r5/include
7344 /usr/lpp/Xamples/include
7346 /usr/openwin/include
7347 /usr/openwin/share/include'
7349 if test "$ac_x_includes" = no; then
7350 # Guess where to find include files, by looking for Intrinsic.h.
7351 # First, try using that file with no special directory specified.
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 #include <X11/Intrinsic.h>
7359 _ACEOF
7360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } >/dev/null; then
7368 if test -s conftest.err; then
7369 ac_cpp_err=$ac_c_preproc_warn_flag
7370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7371 else
7372 ac_cpp_err=
7374 else
7375 ac_cpp_err=yes
7377 if test -z "$ac_cpp_err"; then
7378 # We can compile using X headers with no special include directory.
7379 ac_x_includes=
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 for ac_dir in $ac_x_header_dirs; do
7385 if test -r "$ac_dir/X11/Intrinsic.h"; then
7386 ac_x_includes=$ac_dir
7387 break
7389 done
7391 rm -f conftest.err conftest.$ac_ext
7392 fi # $ac_x_includes = no
7394 if test "$ac_x_libraries" = no; then
7395 # Check for the libraries.
7396 # See if we find them without any special options.
7397 # Don't add to $LIBS permanently.
7398 ac_save_LIBS=$LIBS
7399 LIBS="-lXt $LIBS"
7400 if test x$gcc_no_link = xyes; then
7401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7403 { (exit 1); exit 1; }; }
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 #include <X11/Intrinsic.h>
7413 main ()
7415 XtMalloc (0)
7417 return 0;
7419 _ACEOF
7420 rm -f conftest.$ac_objext conftest$ac_exeext
7421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7422 (eval $ac_link) 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try='test -z "$ac_c_werror_flag"
7430 || test ! -s conftest.err'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; } &&
7436 { ac_try='test -s conftest$ac_exeext'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; }; then
7442 LIBS=$ac_save_LIBS
7443 # We can link X programs with no special library path.
7444 ac_x_libraries=
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 LIBS=$ac_save_LIBS
7450 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7452 # Don't even attempt the hair of trying to link an X program!
7453 for ac_extension in a so sl; do
7454 if test -r $ac_dir/libXt.$ac_extension; then
7455 ac_x_libraries=$ac_dir
7456 break 2
7458 done
7459 done
7461 rm -f conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7463 fi # $ac_x_libraries = no
7465 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7466 # Didn't find X anywhere. Cache the known absence of X.
7467 ac_cv_have_x="have_x=no"
7468 else
7469 # Record where we found X for the cache.
7470 ac_cv_have_x="have_x=yes \
7471 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7476 eval "$ac_cv_have_x"
7477 fi # $with_x != no
7479 if test "$have_x" != yes; then
7480 echo "$as_me:$LINENO: result: $have_x" >&5
7481 echo "${ECHO_T}$have_x" >&6
7482 no_x=yes
7483 else
7484 # If each of the values was on the command line, it overrides each guess.
7485 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7486 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7487 # Update the cache value to reflect the command line values.
7488 ac_cv_have_x="have_x=yes \
7489 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7490 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7491 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7494 if test "$no_x" = yes; then
7495 # Not all programs may use this symbol, but it does not hurt to define it.
7497 cat >>confdefs.h <<\_ACEOF
7498 #define X_DISPLAY_MISSING 1
7499 _ACEOF
7501 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7502 else
7503 if test -n "$x_includes"; then
7504 X_CFLAGS="$X_CFLAGS -I$x_includes"
7507 # It would also be nice to do this for all -L options, not just this one.
7508 if test -n "$x_libraries"; then
7509 X_LIBS="$X_LIBS -L$x_libraries"
7510 # For Solaris; some versions of Sun CC require a space after -R and
7511 # others require no space. Words are not sufficient . . . .
7512 case `(uname -sr) 2>/dev/null` in
7513 "SunOS 5"*)
7514 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7515 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7516 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7517 if test x$gcc_no_link = xyes; then
7518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7520 { (exit 1); exit 1; }; }
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7530 main ()
7534 return 0;
7536 _ACEOF
7537 rm -f conftest.$ac_objext conftest$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_R_nospace=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 ac_R_nospace=no
7566 rm -f conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7568 if test $ac_R_nospace = yes; then
7569 echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6
7571 X_LIBS="$X_LIBS -R$x_libraries"
7572 else
7573 LIBS="$ac_xsave_LIBS -R $x_libraries"
7574 if test x$gcc_no_link = xyes; then
7575 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7576 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7577 { (exit 1); exit 1; }; }
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7587 main ()
7591 return 0;
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>conftest.er1
7597 ac_status=$?
7598 grep -v '^ *+' conftest.er1 >conftest.err
7599 rm -f conftest.er1
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -z "$ac_c_werror_flag"
7604 || test ! -s conftest.err'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; } &&
7610 { ac_try='test -s conftest$ac_exeext'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7616 ac_R_space=yes
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 ac_R_space=no
7623 rm -f conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625 if test $ac_R_space = yes; then
7626 echo "$as_me:$LINENO: result: yes" >&5
7627 echo "${ECHO_T}yes" >&6
7628 X_LIBS="$X_LIBS -R $x_libraries"
7629 else
7630 echo "$as_me:$LINENO: result: neither works" >&5
7631 echo "${ECHO_T}neither works" >&6
7634 LIBS=$ac_xsave_LIBS
7635 esac
7638 # Check for system-dependent libraries X programs must link with.
7639 # Do this before checking for the system-independent R6 libraries
7640 # (-lICE), since we may need -lsocket or whatever for X linking.
7642 if test "$ISC" = yes; then
7643 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7644 else
7645 # Martyn Johnson says this is needed for Ultrix, if the X
7646 # libraries were built with DECnet support. And Karl Berry says
7647 # the Alpha needs dnet_stub (dnet does not exist).
7648 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7649 if test x$gcc_no_link = xyes; then
7650 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7651 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7652 { (exit 1); exit 1; }; }
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7661 /* Override any gcc2 internal prototype to avoid an error. */
7662 #ifdef __cplusplus
7663 extern "C"
7664 #endif
7665 /* We use char because int might match the return type of a gcc2
7666 builtin and then its argument prototype would still apply. */
7667 char XOpenDisplay ();
7669 main ()
7671 XOpenDisplay ();
7673 return 0;
7675 _ACEOF
7676 rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7678 (eval $ac_link) 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -z "$ac_c_werror_flag"
7686 || test ! -s conftest.err'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest$ac_exeext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7699 else
7700 echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7703 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7704 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7705 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 ac_check_lib_save_LIBS=$LIBS
7709 LIBS="-ldnet $LIBS"
7710 if test x$gcc_no_link = xyes; then
7711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7713 { (exit 1); exit 1; }; }
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 /* Override any gcc2 internal prototype to avoid an error. */
7723 #ifdef __cplusplus
7724 extern "C"
7725 #endif
7726 /* We use char because int might match the return type of a gcc2
7727 builtin and then its argument prototype would still apply. */
7728 char dnet_ntoa ();
7730 main ()
7732 dnet_ntoa ();
7734 return 0;
7736 _ACEOF
7737 rm -f conftest.$ac_objext conftest$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } &&
7746 { ac_try='test -z "$ac_c_werror_flag"
7747 || test ! -s conftest.err'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 (eval $ac_try) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; } &&
7753 { ac_try='test -s conftest$ac_exeext'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 (eval $ac_try) 2>&5
7756 ac_status=$?
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; }; then
7759 ac_cv_lib_dnet_dnet_ntoa=yes
7760 else
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7764 ac_cv_lib_dnet_dnet_ntoa=no
7766 rm -f conftest.err conftest.$ac_objext \
7767 conftest$ac_exeext conftest.$ac_ext
7768 LIBS=$ac_check_lib_save_LIBS
7770 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7771 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7772 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7773 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7776 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7777 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7778 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7779 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782 ac_check_lib_save_LIBS=$LIBS
7783 LIBS="-ldnet_stub $LIBS"
7784 if test x$gcc_no_link = xyes; then
7785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7787 { (exit 1); exit 1; }; }
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 #ifdef __cplusplus
7798 extern "C"
7799 #endif
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7802 char dnet_ntoa ();
7804 main ()
7806 dnet_ntoa ();
7808 return 0;
7810 _ACEOF
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest$ac_exeext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_cv_lib_dnet_stub_dnet_ntoa=no
7840 rm -f conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842 LIBS=$ac_check_lib_save_LIBS
7844 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7845 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7846 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7847 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7852 rm -f conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 LIBS="$ac_xsave_LIBS"
7856 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7857 # to get the SysV transport functions.
7858 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7859 # needs -lnsl.
7860 # The nsl library prevents programs from opening the X display
7861 # on Irix 5.2, according to T.E. Dickey.
7862 # The functions gethostbyname, getservbyname, and inet_addr are
7863 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7864 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7865 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7866 if test "${ac_cv_func_gethostbyname+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 if test x$gcc_no_link = xyes; then
7870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7872 { (exit 1); exit 1; }; }
7874 cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h. */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7882 #define gethostbyname innocuous_gethostbyname
7884 /* System header to define __stub macros and hopefully few prototypes,
7885 which can conflict with char gethostbyname (); below.
7886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7887 <limits.h> exists even on freestanding compilers. */
7889 #ifdef __STDC__
7890 # include <limits.h>
7891 #else
7892 # include <assert.h>
7893 #endif
7895 #undef gethostbyname
7897 /* Override any gcc2 internal prototype to avoid an error. */
7898 #ifdef __cplusplus
7899 extern "C"
7901 #endif
7902 /* We use char because int might match the return type of a gcc2
7903 builtin and then its argument prototype would still apply. */
7904 char gethostbyname ();
7905 /* The GNU C library defines this for functions which it implements
7906 to always fail with ENOSYS. Some functions are actually named
7907 something starting with __ and the normal name is an alias. */
7908 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7909 choke me
7910 #else
7911 char (*f) () = gethostbyname;
7912 #endif
7913 #ifdef __cplusplus
7915 #endif
7918 main ()
7920 return f != gethostbyname;
7922 return 0;
7924 _ACEOF
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7927 (eval $ac_link) 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -z "$ac_c_werror_flag"
7935 || test ! -s conftest.err'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try='test -s conftest$ac_exeext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 (eval $ac_try) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 ac_cv_func_gethostbyname=yes
7948 else
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 ac_cv_func_gethostbyname=no
7954 rm -f conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7958 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7960 if test $ac_cv_func_gethostbyname = no; then
7961 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7962 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7963 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 ac_check_lib_save_LIBS=$LIBS
7967 LIBS="-lnsl $LIBS"
7968 if test x$gcc_no_link = xyes; then
7969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7971 { (exit 1); exit 1; }; }
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7980 /* Override any gcc2 internal prototype to avoid an error. */
7981 #ifdef __cplusplus
7982 extern "C"
7983 #endif
7984 /* We use char because int might match the return type of a gcc2
7985 builtin and then its argument prototype would still apply. */
7986 char gethostbyname ();
7988 main ()
7990 gethostbyname ();
7992 return 0;
7994 _ACEOF
7995 rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997 (eval $ac_link) 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } &&
8004 { ac_try='test -z "$ac_c_werror_flag"
8005 || test ! -s conftest.err'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; } &&
8011 { ac_try='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 ac_cv_lib_nsl_gethostbyname=yes
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 ac_cv_lib_nsl_gethostbyname=no
8024 rm -f conftest.err conftest.$ac_objext \
8025 conftest$ac_exeext conftest.$ac_ext
8026 LIBS=$ac_check_lib_save_LIBS
8028 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8029 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8030 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8031 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8034 if test $ac_cv_lib_nsl_gethostbyname = no; then
8035 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8036 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8037 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040 ac_check_lib_save_LIBS=$LIBS
8041 LIBS="-lbsd $LIBS"
8042 if test x$gcc_no_link = xyes; then
8043 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8045 { (exit 1); exit 1; }; }
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h. */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8054 /* Override any gcc2 internal prototype to avoid an error. */
8055 #ifdef __cplusplus
8056 extern "C"
8057 #endif
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8060 char gethostbyname ();
8062 main ()
8064 gethostbyname ();
8066 return 0;
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -z "$ac_c_werror_flag"
8079 || test ! -s conftest.err'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 (eval $ac_try) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; } &&
8085 { ac_try='test -s conftest$ac_exeext'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; }; then
8091 ac_cv_lib_bsd_gethostbyname=yes
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 ac_cv_lib_bsd_gethostbyname=no
8098 rm -f conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
8100 LIBS=$ac_check_lib_save_LIBS
8102 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8103 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8104 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8111 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8112 # socket/setsockopt and other routines are undefined under SCO ODT
8113 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8114 # on later versions), says Simon Leinen: it contains gethostby*
8115 # variants that don't use the name server (or something). -lsocket
8116 # must be given before -lnsl if both are needed. We assume that
8117 # if connect needs -lnsl, so does gethostbyname.
8118 echo "$as_me:$LINENO: checking for connect" >&5
8119 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8120 if test "${ac_cv_func_connect+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123 if test x$gcc_no_link = xyes; then
8124 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8125 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8126 { (exit 1); exit 1; }; }
8128 cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h. */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8134 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8136 #define connect innocuous_connect
8138 /* System header to define __stub macros and hopefully few prototypes,
8139 which can conflict with char connect (); below.
8140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8141 <limits.h> exists even on freestanding compilers. */
8143 #ifdef __STDC__
8144 # include <limits.h>
8145 #else
8146 # include <assert.h>
8147 #endif
8149 #undef connect
8151 /* Override any gcc2 internal prototype to avoid an error. */
8152 #ifdef __cplusplus
8153 extern "C"
8155 #endif
8156 /* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8158 char connect ();
8159 /* The GNU C library defines this for functions which it implements
8160 to always fail with ENOSYS. Some functions are actually named
8161 something starting with __ and the normal name is an alias. */
8162 #if defined (__stub_connect) || defined (__stub___connect)
8163 choke me
8164 #else
8165 char (*f) () = connect;
8166 #endif
8167 #ifdef __cplusplus
8169 #endif
8172 main ()
8174 return f != connect;
8176 return 0;
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181 (eval $ac_link) 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -z "$ac_c_werror_flag"
8189 || test ! -s conftest.err'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; } &&
8195 { ac_try='test -s conftest$ac_exeext'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 ac_cv_func_connect=yes
8202 else
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8206 ac_cv_func_connect=no
8208 rm -f conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8211 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8212 echo "${ECHO_T}$ac_cv_func_connect" >&6
8214 if test $ac_cv_func_connect = no; then
8215 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8216 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8217 if test "${ac_cv_lib_socket_connect+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 ac_check_lib_save_LIBS=$LIBS
8221 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8222 if test x$gcc_no_link = xyes; then
8223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8225 { (exit 1); exit 1; }; }
8227 cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h. */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8234 /* Override any gcc2 internal prototype to avoid an error. */
8235 #ifdef __cplusplus
8236 extern "C"
8237 #endif
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8240 char connect ();
8242 main ()
8244 connect ();
8246 return 0;
8248 _ACEOF
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_lib_socket_connect=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 ac_cv_lib_socket_connect=no
8278 rm -f conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 LIBS=$ac_check_lib_save_LIBS
8282 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8283 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8284 if test $ac_cv_lib_socket_connect = yes; then
8285 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8290 # Guillermo Gomez says -lposix is necessary on A/UX.
8291 echo "$as_me:$LINENO: checking for remove" >&5
8292 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8293 if test "${ac_cv_func_remove+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296 if test x$gcc_no_link = xyes; then
8297 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8299 { (exit 1); exit 1; }; }
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8309 #define remove innocuous_remove
8311 /* System header to define __stub macros and hopefully few prototypes,
8312 which can conflict with char remove (); below.
8313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8314 <limits.h> exists even on freestanding compilers. */
8316 #ifdef __STDC__
8317 # include <limits.h>
8318 #else
8319 # include <assert.h>
8320 #endif
8322 #undef remove
8324 /* Override any gcc2 internal prototype to avoid an error. */
8325 #ifdef __cplusplus
8326 extern "C"
8328 #endif
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8331 char remove ();
8332 /* The GNU C library defines this for functions which it implements
8333 to always fail with ENOSYS. Some functions are actually named
8334 something starting with __ and the normal name is an alias. */
8335 #if defined (__stub_remove) || defined (__stub___remove)
8336 choke me
8337 #else
8338 char (*f) () = remove;
8339 #endif
8340 #ifdef __cplusplus
8342 #endif
8345 main ()
8347 return f != remove;
8349 return 0;
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag"
8362 || test ! -s conftest.err'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest$ac_exeext'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8374 ac_cv_func_remove=yes
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 ac_cv_func_remove=no
8381 rm -f conftest.err conftest.$ac_objext \
8382 conftest$ac_exeext conftest.$ac_ext
8384 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8385 echo "${ECHO_T}$ac_cv_func_remove" >&6
8387 if test $ac_cv_func_remove = no; then
8388 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8389 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8390 if test "${ac_cv_lib_posix_remove+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393 ac_check_lib_save_LIBS=$LIBS
8394 LIBS="-lposix $LIBS"
8395 if test x$gcc_no_link = xyes; then
8396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8398 { (exit 1); exit 1; }; }
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8407 /* Override any gcc2 internal prototype to avoid an error. */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 /* We use char because int might match the return type of a gcc2
8412 builtin and then its argument prototype would still apply. */
8413 char remove ();
8415 main ()
8417 remove ();
8419 return 0;
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_lib_posix_remove=yes
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_lib_posix_remove=no
8451 rm -f conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8455 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8456 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8457 if test $ac_cv_lib_posix_remove = yes; then
8458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8463 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8464 echo "$as_me:$LINENO: checking for shmat" >&5
8465 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8466 if test "${ac_cv_func_shmat+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469 if test x$gcc_no_link = xyes; then
8470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8472 { (exit 1); exit 1; }; }
8474 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8482 #define shmat innocuous_shmat
8484 /* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char shmat (); below.
8486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8487 <limits.h> exists even on freestanding compilers. */
8489 #ifdef __STDC__
8490 # include <limits.h>
8491 #else
8492 # include <assert.h>
8493 #endif
8495 #undef shmat
8497 /* Override any gcc2 internal prototype to avoid an error. */
8498 #ifdef __cplusplus
8499 extern "C"
8501 #endif
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8504 char shmat ();
8505 /* The GNU C library defines this for functions which it implements
8506 to always fail with ENOSYS. Some functions are actually named
8507 something starting with __ and the normal name is an alias. */
8508 #if defined (__stub_shmat) || defined (__stub___shmat)
8509 choke me
8510 #else
8511 char (*f) () = shmat;
8512 #endif
8513 #ifdef __cplusplus
8515 #endif
8518 main ()
8520 return f != shmat;
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_func_shmat=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_cv_func_shmat=no
8554 rm -f conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8558 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8560 if test $ac_cv_func_shmat = no; then
8561 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8562 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8563 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566 ac_check_lib_save_LIBS=$LIBS
8567 LIBS="-lipc $LIBS"
8568 if test x$gcc_no_link = xyes; then
8569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8571 { (exit 1); exit 1; }; }
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any gcc2 internal prototype to avoid an error. */
8581 #ifdef __cplusplus
8582 extern "C"
8583 #endif
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char shmat ();
8588 main ()
8590 shmat ();
8592 return 0;
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8598 ac_status=$?
8599 grep -v '^ *+' conftest.er1 >conftest.err
8600 rm -f conftest.er1
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_ipc_shmat=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_ipc_shmat=no
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8629 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8630 if test $ac_cv_lib_ipc_shmat = yes; then
8631 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8637 # Check for libraries that X11R6 Xt/Xaw programs need.
8638 ac_save_LDFLAGS=$LDFLAGS
8639 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8640 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8641 # check for ICE first), but we must link in the order -lSM -lICE or
8642 # we get undefined symbols. So assume we have SM if we have ICE.
8643 # These have to be linked with before -lX11, unlike the other
8644 # libraries we check for below, so use a different variable.
8645 # John Interrante, Karl Berry
8646 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8647 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8648 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8653 if test x$gcc_no_link = xyes; then
8654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8656 { (exit 1); exit 1; }; }
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h. */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8665 /* Override any gcc2 internal prototype to avoid an error. */
8666 #ifdef __cplusplus
8667 extern "C"
8668 #endif
8669 /* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8671 char IceConnectionNumber ();
8673 main ()
8675 IceConnectionNumber ();
8677 return 0;
8679 _ACEOF
8680 rm -f conftest.$ac_objext conftest$ac_exeext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8682 (eval $ac_link) 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -z "$ac_c_werror_flag"
8690 || test ! -s conftest.err'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 (eval $ac_try) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; } &&
8696 { ac_try='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 (eval $ac_try) 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_lib_ICE_IceConnectionNumber=yes
8703 else
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_lib_ICE_IceConnectionNumber=no
8709 rm -f conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 LIBS=$ac_check_lib_save_LIBS
8713 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8714 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8715 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8716 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8719 LDFLAGS=$ac_save_LDFLAGS
8724 # determine whether to enable the cairo GTK Graphics2D backend
8725 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8726 if test "${enable_gtk_cairo+set}" = set; then
8727 enableval="$enable_gtk_cairo"
8732 if test "x${enable_gtk_cairo}" = xyes; then
8733 GTK_CAIRO_TRUE=
8734 GTK_CAIRO_FALSE='#'
8735 else
8736 GTK_CAIRO_TRUE='#'
8737 GTK_CAIRO_FALSE=
8740 if test "x${enable_gtk_cairo}" = xyes
8741 then
8743 succeeded=no
8745 if test -z "$PKG_CONFIG"; then
8746 # Extract the first word of "pkg-config", so it can be a program name with args.
8747 set dummy pkg-config; ac_word=$2
8748 echo "$as_me:$LINENO: checking for $ac_word" >&5
8749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8750 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 case $PKG_CONFIG in
8754 [\\/]* | ?:[\\/]*)
8755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 break 2
8769 done
8770 done
8772 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8774 esac
8776 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8778 if test -n "$PKG_CONFIG"; then
8779 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8780 echo "${ECHO_T}$PKG_CONFIG" >&6
8781 else
8782 echo "$as_me:$LINENO: result: no" >&5
8783 echo "${ECHO_T}no" >&6
8788 if test "$PKG_CONFIG" = "no" ; then
8789 echo "*** The pkg-config script could not be found. Make sure it is"
8790 echo "*** in your path, or set the PKG_CONFIG environment variable"
8791 echo "*** to the full path to pkg-config."
8792 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8793 else
8794 PKG_CONFIG_MIN_VERSION=0.9.0
8795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8796 echo "$as_me:$LINENO: checking for cairo" >&5
8797 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8799 if $PKG_CONFIG --exists "cairo" ; then
8800 echo "$as_me:$LINENO: result: yes" >&5
8801 echo "${ECHO_T}yes" >&6
8802 succeeded=yes
8804 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8805 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8806 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8807 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8808 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8810 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8811 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8812 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8813 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8814 echo "${ECHO_T}$CAIRO_LIBS" >&6
8815 else
8816 CAIRO_CFLAGS=""
8817 CAIRO_LIBS=""
8818 ## If we have a custom action on failure, don't print errors, but
8819 ## do set a variable so people can do so.
8820 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8821 echo $CAIRO_PKG_ERRORS
8826 else
8827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8832 if test $succeeded = yes; then
8834 else
8835 { { 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
8836 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;}
8837 { (exit 1); exit 1; }; }
8841 succeeded=no
8843 if test -z "$PKG_CONFIG"; then
8844 # Extract the first word of "pkg-config", so it can be a program name with args.
8845 set dummy pkg-config; ac_word=$2
8846 echo "$as_me:$LINENO: checking for $ac_word" >&5
8847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8848 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 case $PKG_CONFIG in
8852 [\\/]* | ?:[\\/]*)
8853 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8863 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8867 done
8868 done
8870 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8872 esac
8874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8876 if test -n "$PKG_CONFIG"; then
8877 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8878 echo "${ECHO_T}$PKG_CONFIG" >&6
8879 else
8880 echo "$as_me:$LINENO: result: no" >&5
8881 echo "${ECHO_T}no" >&6
8886 if test "$PKG_CONFIG" = "no" ; then
8887 echo "*** The pkg-config script could not be found. Make sure it is"
8888 echo "*** in your path, or set the PKG_CONFIG environment variable"
8889 echo "*** to the full path to pkg-config."
8890 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8891 else
8892 PKG_CONFIG_MIN_VERSION=0.9.0
8893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8894 echo "$as_me:$LINENO: checking for pangoft2" >&5
8895 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8897 if $PKG_CONFIG --exists "pangoft2" ; then
8898 echo "$as_me:$LINENO: result: yes" >&5
8899 echo "${ECHO_T}yes" >&6
8900 succeeded=yes
8902 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8903 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8904 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8905 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8906 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8908 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8909 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8910 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8911 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8912 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8913 else
8914 PANGOFT2_CFLAGS=""
8915 PANGOFT2_LIBS=""
8916 ## If we have a custom action on failure, don't print errors, but
8917 ## do set a variable so people can do so.
8918 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8919 echo $PANGOFT2_PKG_ERRORS
8924 else
8925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8930 if test $succeeded = yes; then
8932 else
8933 { { 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
8934 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;}
8935 { (exit 1); exit 1; }; }
8944 # FIXME: this should be _libs on some hosts.
8945 libsubdir=.libs
8947 # extra LD Flags which are required for targets
8948 case "${host}" in
8949 *-*-darwin[0-7].*)
8950 # For now we have to disable it on darwin[8-9] because it slows down
8951 # the linking phase. A possible bug in ld?
8952 # on Darwin -single_module speeds up loading of the dynamic libraries.
8953 extra_ldflags_libjava=-Wl,-single_module
8955 esac
8958 # Allow the GC to be disabled. Can be useful when debugging.
8959 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8960 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8961 # Check whether --enable-java-gc or --disable-java-gc was given.
8962 if test "${enable_java_gc+set}" = set; then
8963 enableval="$enable_java_gc"
8964 GC=$enableval
8965 else
8966 GC=boehm
8968 GCLIBS=
8969 GCINCS=
8970 GCDEPS=
8971 GCSPEC=
8972 JC1GCSPEC=
8973 GCTESTSPEC=
8974 case "$GC" in
8975 boehm)
8976 echo "$as_me:$LINENO: result: boehm" >&5
8977 echo "${ECHO_T}boehm" >&6
8978 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8979 JC1GCSPEC='-fuse-boehm-gc'
8980 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8981 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8982 GCOBJS=boehm.lo
8983 GCHDR=boehm-gc.h
8984 # The POSIX thread support needs to know this.
8986 cat >>confdefs.h <<\_ACEOF
8987 #define HAVE_BOEHM_GC 1
8988 _ACEOF
8992 echo "$as_me:$LINENO: result: none" >&5
8993 echo "${ECHO_T}none" >&6
8994 GCHDR=no-gc.h
8997 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8998 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8999 { (exit 1); exit 1; }; }
9001 esac
9008 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9012 if test "$GC" = boehm; then
9013 USING_BOEHMGC_TRUE=
9014 USING_BOEHMGC_FALSE='#'
9015 else
9016 USING_BOEHMGC_TRUE='#'
9017 USING_BOEHMGC_FALSE=
9022 if test "$GC" = no; then
9023 USING_NOGC_TRUE=
9024 USING_NOGC_FALSE='#'
9025 else
9026 USING_NOGC_TRUE='#'
9027 USING_NOGC_FALSE=
9032 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9033 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9034 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9035 echo "$as_me:$LINENO: result: $THREADS" >&5
9036 echo "${ECHO_T}$THREADS" >&6
9038 case "$THREADS" in
9039 no | none | single)
9040 THREADS=none
9042 posix | posix95 | pthreads)
9043 THREADS=posix
9044 case "$host" in
9045 *-*-linux*)
9047 cat >>confdefs.h <<\_ACEOF
9048 #define LINUX_THREADS 1
9049 _ACEOF
9052 esac
9054 win32)
9056 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9057 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9058 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9059 { (exit 1); exit 1; }; }
9062 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9063 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9064 { (exit 1); exit 1; }; }
9066 esac
9068 THREADCXXFLAGS=
9069 THREADLDFLAGS=
9070 THREADLIBS=
9071 THREADINCS=
9072 THREADDEPS=
9073 THREADH=
9074 THREADSPEC=
9075 case "$THREADS" in
9076 posix)
9077 case "$host" in
9078 *-*-cygwin*)
9079 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9081 *-*-freebsd[1234]*)
9082 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9083 # merely adds pthread_* functions) but it does have a -pthread switch
9084 # which is required at link-time to select -lc_r *instead* of -lc.
9085 THREADLDFLAGS=-pthread
9086 # Don't set THREADSPEC here as might be expected since -pthread is
9087 # not processed when found within a spec file, it must come from
9088 # the command line. For now, the user must provide the -pthread
9089 # switch to link code compiled with gcj. In future, consider adding
9090 # support for weak references to pthread_* functions ala gthr.h API.
9091 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9093 *-*-freebsd*)
9094 # FreeBSD 5 implements a model much closer to other modern UNIX
9095 # which support threads. However, it still does not support
9096 # -lpthread.
9097 THREADLDFLAGS=-pthread
9098 THREADSPEC=-lc_r
9100 alpha*-dec-osf*)
9101 THREADCXXFLAGS=-pthread
9102 # boehm-gc needs some functions from librt, so link that too.
9103 THREADLIBS='-lpthread -lrt'
9104 THREADSPEC='-lpthread -lrt'
9107 THREADLIBS=-lpthread
9108 THREADSPEC=-lpthread
9110 esac
9111 THREADH=posix-threads.h
9112 # MIT pthreads doesn't seem to have the mutexattr functions.
9113 # But for now we don't check for it. We just assume you aren't
9114 # using MIT pthreads.
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9118 _ACEOF
9121 # If we're using the Boehm GC, then we happen to know that it
9122 # defines _REENTRANT, so we don't bother. Eww.
9123 if test "$GC" != boehm; then
9125 cat >>confdefs.h <<\_ACEOF
9126 #define _REENTRANT 1
9127 _ACEOF
9131 cat >>confdefs.h <<\_ACEOF
9132 #define _POSIX_PTHREAD_SEMANTICS 1
9133 _ACEOF
9137 win32)
9138 THREADH=win32-threads.h
9141 none)
9142 THREADH=no-threads.h
9144 esac
9145 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9155 if test "$THREADS" = posix; then
9156 USING_POSIX_THREADS_TRUE=
9157 USING_POSIX_THREADS_FALSE='#'
9158 else
9159 USING_POSIX_THREADS_TRUE='#'
9160 USING_POSIX_THREADS_FALSE=
9165 if test "$THREADS" = win32; then
9166 USING_WIN32_THREADS_TRUE=
9167 USING_WIN32_THREADS_FALSE='#'
9168 else
9169 USING_WIN32_THREADS_TRUE='#'
9170 USING_WIN32_THREADS_FALSE=
9175 if test "$THREADS" = none; then
9176 USING_NO_THREADS_TRUE=
9177 USING_NO_THREADS_FALSE='#'
9178 else
9179 USING_NO_THREADS_TRUE='#'
9180 USING_NO_THREADS_FALSE=
9184 if test -d sysdep; then true; else mkdir sysdep; fi
9185 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9187 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9189 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9192 HASH_SYNC_SPEC=
9193 # Hash synchronization is only useful with posix threads right now.
9194 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9195 HASH_SYNC_SPEC=-fhash-synchronization
9197 cat >>confdefs.h <<\_ACEOF
9198 #define JV_HASH_SYNCHRONIZATION 1
9199 _ACEOF
9206 if test "$GCC" = yes; then
9207 USING_GCC_TRUE=
9208 USING_GCC_FALSE='#'
9209 else
9210 USING_GCC_TRUE='#'
9211 USING_GCC_FALSE=
9215 # We're in the tree with gcc, and need to include some of its headers.
9216 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9218 if test "x${with_newlib}" = "xyes"; then
9219 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9220 # may not work correctly, because the compiler may not be able to
9221 # link executables.
9223 # We assume newlib. This lets us hard-code the functions we know
9224 # we'll have.
9226 cat >>confdefs.h <<\_ACEOF
9227 #define HAVE_MEMMOVE 1
9228 _ACEOF
9231 cat >>confdefs.h <<\_ACEOF
9232 #define HAVE_MEMCPY 1
9233 _ACEOF
9236 cat >>confdefs.h <<\_ACEOF
9237 #define HAVE_STRERROR 1
9238 _ACEOF
9241 cat >>confdefs.h <<\_ACEOF
9242 #define HAVE_TIME 1
9243 _ACEOF
9246 cat >>confdefs.h <<\_ACEOF
9247 #define HAVE_GMTIME_R 1
9248 _ACEOF
9251 cat >>confdefs.h <<\_ACEOF
9252 #define HAVE_LOCALTIME_R 1
9253 _ACEOF
9256 cat >>confdefs.h <<\_ACEOF
9257 #define HAVE_USLEEP_DECL 1
9258 _ACEOF
9260 # This is only for POSIX threads.
9262 cat >>confdefs.h <<\_ACEOF
9263 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9264 _ACEOF
9266 # We also assume we are using gcc, which provides alloca.
9267 cat >>confdefs.h <<\_ACEOF
9268 #define HAVE_ALLOCA 1
9269 _ACEOF
9272 # Assume we do not have getuid and friends.
9274 cat >>confdefs.h <<\_ACEOF
9275 #define NO_GETUID 1
9276 _ACEOF
9278 PLATFORMNET=NoNet
9279 else
9312 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9313 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9314 access stat mkdir rename rmdir unlink realpath utime chmod \
9315 nl_langinfo setlocale \
9316 inet_pton uname inet_ntoa \
9317 fork execvp pipe sigaction ftruncate
9319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9320 echo "$as_me:$LINENO: checking for $ac_func" >&5
9321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_var+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 if test x$gcc_no_link = xyes; then
9326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9328 { (exit 1); exit 1; }; }
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9338 #define $ac_func innocuous_$ac_func
9340 /* System header to define __stub macros and hopefully few prototypes,
9341 which can conflict with char $ac_func (); below.
9342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9343 <limits.h> exists even on freestanding compilers. */
9345 #ifdef __STDC__
9346 # include <limits.h>
9347 #else
9348 # include <assert.h>
9349 #endif
9351 #undef $ac_func
9353 /* Override any gcc2 internal prototype to avoid an error. */
9354 #ifdef __cplusplus
9355 extern "C"
9357 #endif
9358 /* We use char because int might match the return type of a gcc2
9359 builtin and then its argument prototype would still apply. */
9360 char $ac_func ();
9361 /* The GNU C library defines this for functions which it implements
9362 to always fail with ENOSYS. Some functions are actually named
9363 something starting with __ and the normal name is an alias. */
9364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9365 choke me
9366 #else
9367 char (*f) () = $ac_func;
9368 #endif
9369 #ifdef __cplusplus
9371 #endif
9374 main ()
9376 return f != $ac_func;
9378 return 0;
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383 (eval $ac_link) 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -z "$ac_c_werror_flag"
9391 || test ! -s conftest.err'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 eval "$as_ac_var=yes"
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 eval "$as_ac_var=no"
9410 rm -f conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9415 if test `eval echo '${'$as_ac_var'}'` = yes; then
9416 cat >>confdefs.h <<_ACEOF
9417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9418 _ACEOF
9421 done
9425 for ac_func in inet_aton inet_addr
9427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9428 echo "$as_me:$LINENO: checking for $ac_func" >&5
9429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9430 if eval "test \"\${$as_ac_var+set}\" = set"; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433 if test x$gcc_no_link = xyes; then
9434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9435 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9436 { (exit 1); exit 1; }; }
9438 cat >conftest.$ac_ext <<_ACEOF
9439 /* confdefs.h. */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9446 #define $ac_func innocuous_$ac_func
9448 /* System header to define __stub macros and hopefully few prototypes,
9449 which can conflict with char $ac_func (); below.
9450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9451 <limits.h> exists even on freestanding compilers. */
9453 #ifdef __STDC__
9454 # include <limits.h>
9455 #else
9456 # include <assert.h>
9457 #endif
9459 #undef $ac_func
9461 /* Override any gcc2 internal prototype to avoid an error. */
9462 #ifdef __cplusplus
9463 extern "C"
9465 #endif
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9468 char $ac_func ();
9469 /* The GNU C library defines this for functions which it implements
9470 to always fail with ENOSYS. Some functions are actually named
9471 something starting with __ and the normal name is an alias. */
9472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9473 choke me
9474 #else
9475 char (*f) () = $ac_func;
9476 #endif
9477 #ifdef __cplusplus
9479 #endif
9482 main ()
9484 return f != $ac_func;
9486 return 0;
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>conftest.er1
9492 ac_status=$?
9493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -z "$ac_c_werror_flag"
9499 || test ! -s conftest.err'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 eval "$as_ac_var=yes"
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 eval "$as_ac_var=no"
9518 rm -f conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9523 if test `eval echo '${'$as_ac_var'}'` = yes; then
9524 cat >>confdefs.h <<_ACEOF
9525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9526 _ACEOF
9527 break
9529 done
9531 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9532 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9533 if test "${ac_cv_header_stdc+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536 cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h. */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542 #include <stdlib.h>
9543 #include <stdarg.h>
9544 #include <string.h>
9545 #include <float.h>
9548 main ()
9552 return 0;
9554 _ACEOF
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9557 (eval $ac_compile) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_header_stdc=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 ac_cv_header_stdc=no
9584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9586 if test $ac_cv_header_stdc = yes; then
9587 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 #include <string.h>
9596 _ACEOF
9597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9598 $EGREP "memchr" >/dev/null 2>&1; then
9600 else
9601 ac_cv_header_stdc=no
9603 rm -f conftest*
9607 if test $ac_cv_header_stdc = yes; then
9608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 #include <stdlib.h>
9617 _ACEOF
9618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9619 $EGREP "free" >/dev/null 2>&1; then
9621 else
9622 ac_cv_header_stdc=no
9624 rm -f conftest*
9628 if test $ac_cv_header_stdc = yes; then
9629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9630 if test "$cross_compiling" = yes; then
9632 else
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h. */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9639 #include <ctype.h>
9640 #if ((' ' & 0x0FF) == 0x020)
9641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9643 #else
9644 # define ISLOWER(c) \
9645 (('a' <= (c) && (c) <= 'i') \
9646 || ('j' <= (c) && (c) <= 'r') \
9647 || ('s' <= (c) && (c) <= 'z'))
9648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9649 #endif
9651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9653 main ()
9655 int i;
9656 for (i = 0; i < 256; i++)
9657 if (XOR (islower (i), ISLOWER (i))
9658 || toupper (i) != TOUPPER (i))
9659 exit(2);
9660 exit (0);
9662 _ACEOF
9663 rm -f conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9675 else
9676 echo "$as_me: program exited with status $ac_status" >&5
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ( exit $ac_status )
9681 ac_cv_header_stdc=no
9683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9687 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9688 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9689 if test $ac_cv_header_stdc = yes; then
9691 cat >>confdefs.h <<\_ACEOF
9692 #define STDC_HEADERS 1
9693 _ACEOF
9697 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9707 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9708 inttypes.h stdint.h unistd.h
9710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9711 echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 $ac_includes_default
9724 #include <$ac_header>
9725 _ACEOF
9726 rm -f conftest.$ac_objext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728 (eval $ac_compile) 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -z "$ac_c_werror_flag"
9736 || test ! -s conftest.err'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; } &&
9742 { ac_try='test -s conftest.$ac_objext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 eval "$as_ac_Header=yes"
9749 else
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9753 eval "$as_ac_Header=no"
9755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9760 cat >>confdefs.h <<_ACEOF
9761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9762 _ACEOF
9766 done
9772 for ac_header in execinfo.h unistd.h dlfcn.h
9774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9776 echo "$as_me:$LINENO: checking for $ac_header" >&5
9777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9783 else
9784 # Is the header compilable?
9785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 #include <$ac_header>
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9798 (eval $ac_compile) 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag"
9806 || test ! -s conftest.err'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; } &&
9812 { ac_try='test -s conftest.$ac_objext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_header_compiler=yes
9819 else
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_header_compiler=no
9825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9827 echo "${ECHO_T}$ac_header_compiler" >&6
9829 # Is the header present?
9830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 #include <$ac_header>
9839 _ACEOF
9840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } >/dev/null; then
9848 if test -s conftest.err; then
9849 ac_cpp_err=$ac_c_preproc_warn_flag
9850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9851 else
9852 ac_cpp_err=
9854 else
9855 ac_cpp_err=yes
9857 if test -z "$ac_cpp_err"; then
9858 ac_header_preproc=yes
9859 else
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 ac_header_preproc=no
9865 rm -f conftest.err conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9867 echo "${ECHO_T}$ac_header_preproc" >&6
9869 # So? What about this header?
9870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9871 yes:no: )
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9876 ac_header_preproc=yes
9878 no:yes:* )
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9892 cat <<\_ASBOX
9893 ## ---------------------------------- ##
9894 ## Report this to the libjava lists. ##
9895 ## ---------------------------------- ##
9896 _ASBOX
9898 sed "s/^/$as_me: WARNING: /" >&2
9900 esac
9901 echo "$as_me:$LINENO: checking for $ac_header" >&5
9902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906 eval "$as_ac_Header=\$ac_header_preproc"
9908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9913 cat >>confdefs.h <<_ACEOF
9914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9915 _ACEOF
9919 done
9921 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9922 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9923 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 ac_check_lib_save_LIBS=$LIBS
9927 LIBS="-ldl $LIBS"
9928 if test x$gcc_no_link = xyes; then
9929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9931 { (exit 1); exit 1; }; }
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9940 /* Override any gcc2 internal prototype to avoid an error. */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 /* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9946 char dladdr ();
9948 main ()
9950 dladdr ();
9952 return 0;
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>conftest.er1
9958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag"
9965 || test ! -s conftest.err'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 (eval $ac_try) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9977 ac_cv_lib_dl_dladdr=yes
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 ac_cv_lib_dl_dladdr=no
9984 rm -f conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9988 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9989 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9990 if test $ac_cv_lib_dl_dladdr = yes; then
9993 cat >>confdefs.h <<\_ACEOF
9994 #define HAVE_DLADDR 1
9995 _ACEOF
10000 if test x"$build" = x"$host"; then
10001 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10002 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10003 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006 test "$cross_compiling" = yes &&
10007 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10008 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10009 { (exit 1); exit 1; }; }
10010 if test -r "/proc/self/exe"; then
10011 ac_cv_file__proc_self_exe=yes
10012 else
10013 ac_cv_file__proc_self_exe=no
10016 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10017 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10018 if test $ac_cv_file__proc_self_exe = yes; then
10020 cat >>confdefs.h <<_ACEOF
10021 #define HAVE__PROC_SELF_EXE 1
10022 _ACEOF
10026 cat >>confdefs.h <<\_ACEOF
10027 #define HAVE_PROC_SELF_EXE 1
10028 _ACEOF
10032 else
10033 case $host in
10034 *-linux*)
10036 cat >>confdefs.h <<\_ACEOF
10037 #define HAVE_PROC_SELF_EXE 1
10038 _ACEOF
10041 esac
10045 if test "X$prefix" = "XNONE"; then
10046 acl_final_prefix="$ac_default_prefix"
10047 else
10048 acl_final_prefix="$prefix"
10050 if test "X$exec_prefix" = "XNONE"; then
10051 acl_final_exec_prefix='${prefix}'
10052 else
10053 acl_final_exec_prefix="$exec_prefix"
10055 acl_save_prefix="$prefix"
10056 prefix="$acl_final_prefix"
10057 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10058 prefix="$acl_save_prefix"
10061 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10062 if test "${with_gnu_ld+set}" = set; then
10063 withval="$with_gnu_ld"
10064 test "$withval" = no || with_gnu_ld=yes
10065 else
10066 with_gnu_ld=no
10068 # Prepare PATH_SEPARATOR.
10069 # The user is always right.
10070 if test "${PATH_SEPARATOR+set}" != set; then
10071 echo "#! /bin/sh" >conf$$.sh
10072 echo "exit 0" >>conf$$.sh
10073 chmod +x conf$$.sh
10074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10075 PATH_SEPARATOR=';'
10076 else
10077 PATH_SEPARATOR=:
10079 rm -f conf$$.sh
10081 ac_prog=ld
10082 if test "$GCC" = yes; then
10083 # Check if gcc -print-prog-name=ld gives a path.
10084 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10085 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10086 case $host in
10087 *-*-mingw*)
10088 # gcc leaves a trailing carriage return which upsets mingw
10089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10092 esac
10093 case $ac_prog in
10094 # Accept absolute paths.
10095 [\\/]* | [A-Za-z]:[\\/]*)
10096 re_direlt='/[^/][^/]*/\.\./'
10097 # Canonicalize the path of ld
10098 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10099 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10100 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10101 done
10102 test -z "$LD" && LD="$ac_prog"
10105 # If it fails, then pretend we aren't using GCC.
10106 ac_prog=ld
10109 # If it is relative, then search for the first ld in PATH.
10110 with_gnu_ld=unknown
10112 esac
10113 elif test "$with_gnu_ld" = yes; then
10114 echo "$as_me:$LINENO: checking for GNU ld" >&5
10115 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10116 else
10117 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10118 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10120 if test "${acl_cv_path_LD+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123 if test -z "$LD"; then
10124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10125 for ac_dir in $PATH; do
10126 test -z "$ac_dir" && ac_dir=.
10127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10128 acl_cv_path_LD="$ac_dir/$ac_prog"
10129 # Check to see if the program is GNU ld. I'd rather use --version,
10130 # but apparently some GNU ld's only accept -v.
10131 # Break only if it was the GNU/non-GNU ld that we prefer.
10132 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10133 test "$with_gnu_ld" != no && break
10134 else
10135 test "$with_gnu_ld" != yes && break
10138 done
10139 IFS="$ac_save_ifs"
10140 else
10141 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10145 LD="$acl_cv_path_LD"
10146 if test -n "$LD"; then
10147 echo "$as_me:$LINENO: result: $LD" >&5
10148 echo "${ECHO_T}$LD" >&6
10149 else
10150 echo "$as_me:$LINENO: result: no" >&5
10151 echo "${ECHO_T}no" >&6
10153 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10154 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10155 { (exit 1); exit 1; }; }
10156 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10157 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10158 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10162 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10163 acl_cv_prog_gnu_ld=yes
10164 else
10165 acl_cv_prog_gnu_ld=no
10168 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10169 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10170 with_gnu_ld=$acl_cv_prog_gnu_ld
10174 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10175 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10176 if test "${acl_cv_rpath+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10180 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10181 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10182 . ./conftest.sh
10183 rm -f ./conftest.sh
10184 acl_cv_rpath=done
10187 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10188 echo "${ECHO_T}$acl_cv_rpath" >&6
10189 wl="$acl_cv_wl"
10190 libext="$acl_cv_libext"
10191 shlibext="$acl_cv_shlibext"
10192 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10193 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10194 hardcode_direct="$acl_cv_hardcode_direct"
10195 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10196 # Check whether --enable-rpath or --disable-rpath was given.
10197 if test "${enable_rpath+set}" = set; then
10198 enableval="$enable_rpath"
10200 else
10201 enable_rpath=yes
10210 use_additional=yes
10212 acl_save_prefix="$prefix"
10213 prefix="$acl_final_prefix"
10214 acl_save_exec_prefix="$exec_prefix"
10215 exec_prefix="$acl_final_exec_prefix"
10217 eval additional_includedir=\"$includedir\"
10218 eval additional_libdir=\"$libdir\"
10220 exec_prefix="$acl_save_exec_prefix"
10221 prefix="$acl_save_prefix"
10224 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10225 if test "${with_libiconv_prefix+set}" = set; then
10226 withval="$with_libiconv_prefix"
10228 if test "X$withval" = "Xno"; then
10229 use_additional=no
10230 else
10231 if test "X$withval" = "X"; then
10233 acl_save_prefix="$prefix"
10234 prefix="$acl_final_prefix"
10235 acl_save_exec_prefix="$exec_prefix"
10236 exec_prefix="$acl_final_exec_prefix"
10238 eval additional_includedir=\"$includedir\"
10239 eval additional_libdir=\"$libdir\"
10241 exec_prefix="$acl_save_exec_prefix"
10242 prefix="$acl_save_prefix"
10244 else
10245 additional_includedir="$withval/include"
10246 additional_libdir="$withval/lib"
10251 LIBICONV=
10252 LTLIBICONV=
10253 INCICONV=
10254 rpathdirs=
10255 ltrpathdirs=
10256 names_already_handled=
10257 names_next_round='iconv '
10258 while test -n "$names_next_round"; do
10259 names_this_round="$names_next_round"
10260 names_next_round=
10261 for name in $names_this_round; do
10262 already_handled=
10263 for n in $names_already_handled; do
10264 if test "$n" = "$name"; then
10265 already_handled=yes
10266 break
10268 done
10269 if test -z "$already_handled"; then
10270 names_already_handled="$names_already_handled $name"
10271 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10272 eval value=\"\$HAVE_LIB$uppername\"
10273 if test -n "$value"; then
10274 if test "$value" = yes; then
10275 eval value=\"\$LIB$uppername\"
10276 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10277 eval value=\"\$LTLIB$uppername\"
10278 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10279 else
10282 else
10283 found_dir=
10284 found_la=
10285 found_so=
10286 found_a=
10287 if test $use_additional = yes; then
10288 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10289 found_dir="$additional_libdir"
10290 found_so="$additional_libdir/lib$name.$shlibext"
10291 if test -f "$additional_libdir/lib$name.la"; then
10292 found_la="$additional_libdir/lib$name.la"
10294 else
10295 if test -f "$additional_libdir/lib$name.$libext"; then
10296 found_dir="$additional_libdir"
10297 found_a="$additional_libdir/lib$name.$libext"
10298 if test -f "$additional_libdir/lib$name.la"; then
10299 found_la="$additional_libdir/lib$name.la"
10304 if test "X$found_dir" = "X"; then
10305 for x in $LDFLAGS $LTLIBICONV; do
10307 acl_save_prefix="$prefix"
10308 prefix="$acl_final_prefix"
10309 acl_save_exec_prefix="$exec_prefix"
10310 exec_prefix="$acl_final_exec_prefix"
10311 eval x=\"$x\"
10312 exec_prefix="$acl_save_exec_prefix"
10313 prefix="$acl_save_prefix"
10315 case "$x" in
10316 -L*)
10317 dir=`echo "X$x" | sed -e 's/^X-L//'`
10318 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10319 found_dir="$dir"
10320 found_so="$dir/lib$name.$shlibext"
10321 if test -f "$dir/lib$name.la"; then
10322 found_la="$dir/lib$name.la"
10324 else
10325 if test -f "$dir/lib$name.$libext"; then
10326 found_dir="$dir"
10327 found_a="$dir/lib$name.$libext"
10328 if test -f "$dir/lib$name.la"; then
10329 found_la="$dir/lib$name.la"
10334 esac
10335 if test "X$found_dir" != "X"; then
10336 break
10338 done
10340 if test "X$found_dir" != "X"; then
10341 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10342 if test "X$found_so" != "X"; then
10343 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10344 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10345 else
10346 haveit=
10347 for x in $ltrpathdirs; do
10348 if test "X$x" = "X$found_dir"; then
10349 haveit=yes
10350 break
10352 done
10353 if test -z "$haveit"; then
10354 ltrpathdirs="$ltrpathdirs $found_dir"
10356 if test "$hardcode_direct" = yes; then
10357 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10358 else
10359 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10361 haveit=
10362 for x in $rpathdirs; do
10363 if test "X$x" = "X$found_dir"; then
10364 haveit=yes
10365 break
10367 done
10368 if test -z "$haveit"; then
10369 rpathdirs="$rpathdirs $found_dir"
10371 else
10372 haveit=
10373 for x in $LDFLAGS $LIBICONV; do
10375 acl_save_prefix="$prefix"
10376 prefix="$acl_final_prefix"
10377 acl_save_exec_prefix="$exec_prefix"
10378 exec_prefix="$acl_final_exec_prefix"
10379 eval x=\"$x\"
10380 exec_prefix="$acl_save_exec_prefix"
10381 prefix="$acl_save_prefix"
10383 if test "X$x" = "X-L$found_dir"; then
10384 haveit=yes
10385 break
10387 done
10388 if test -z "$haveit"; then
10389 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10391 if test "$hardcode_minus_L" != no; then
10392 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10393 else
10394 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10399 else
10400 if test "X$found_a" != "X"; then
10401 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10402 else
10403 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10406 additional_includedir=
10407 case "$found_dir" in
10408 */lib | */lib/)
10409 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10410 additional_includedir="$basedir/include"
10412 esac
10413 if test "X$additional_includedir" != "X"; then
10414 if test "X$additional_includedir" != "X/usr/include"; then
10415 haveit=
10416 if test "X$additional_includedir" = "X/usr/local/include"; then
10417 if test -n "$GCC"; then
10418 case $host_os in
10419 linux*) haveit=yes;;
10420 esac
10423 if test -z "$haveit"; then
10424 for x in $CPPFLAGS $INCICONV; do
10426 acl_save_prefix="$prefix"
10427 prefix="$acl_final_prefix"
10428 acl_save_exec_prefix="$exec_prefix"
10429 exec_prefix="$acl_final_exec_prefix"
10430 eval x=\"$x\"
10431 exec_prefix="$acl_save_exec_prefix"
10432 prefix="$acl_save_prefix"
10434 if test "X$x" = "X-I$additional_includedir"; then
10435 haveit=yes
10436 break
10438 done
10439 if test -z "$haveit"; then
10440 if test -d "$additional_includedir"; then
10441 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10447 if test -n "$found_la"; then
10448 save_libdir="$libdir"
10449 case "$found_la" in
10450 */* | *\\*) . "$found_la" ;;
10451 *) . "./$found_la" ;;
10452 esac
10453 libdir="$save_libdir"
10454 for dep in $dependency_libs; do
10455 case "$dep" in
10456 -L*)
10457 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10458 if test "X$additional_libdir" != "X/usr/lib"; then
10459 haveit=
10460 if test "X$additional_libdir" = "X/usr/local/lib"; then
10461 if test -n "$GCC"; then
10462 case $host_os in
10463 linux*) haveit=yes;;
10464 esac
10467 if test -z "$haveit"; then
10468 haveit=
10469 for x in $LDFLAGS $LIBICONV; do
10471 acl_save_prefix="$prefix"
10472 prefix="$acl_final_prefix"
10473 acl_save_exec_prefix="$exec_prefix"
10474 exec_prefix="$acl_final_exec_prefix"
10475 eval x=\"$x\"
10476 exec_prefix="$acl_save_exec_prefix"
10477 prefix="$acl_save_prefix"
10479 if test "X$x" = "X-L$additional_libdir"; then
10480 haveit=yes
10481 break
10483 done
10484 if test -z "$haveit"; then
10485 if test -d "$additional_libdir"; then
10486 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10489 haveit=
10490 for x in $LDFLAGS $LTLIBICONV; do
10492 acl_save_prefix="$prefix"
10493 prefix="$acl_final_prefix"
10494 acl_save_exec_prefix="$exec_prefix"
10495 exec_prefix="$acl_final_exec_prefix"
10496 eval x=\"$x\"
10497 exec_prefix="$acl_save_exec_prefix"
10498 prefix="$acl_save_prefix"
10500 if test "X$x" = "X-L$additional_libdir"; then
10501 haveit=yes
10502 break
10504 done
10505 if test -z "$haveit"; then
10506 if test -d "$additional_libdir"; then
10507 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10513 -R*)
10514 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10515 if test "$enable_rpath" != no; then
10516 haveit=
10517 for x in $rpathdirs; do
10518 if test "X$x" = "X$dir"; then
10519 haveit=yes
10520 break
10522 done
10523 if test -z "$haveit"; then
10524 rpathdirs="$rpathdirs $dir"
10526 haveit=
10527 for x in $ltrpathdirs; do
10528 if test "X$x" = "X$dir"; then
10529 haveit=yes
10530 break
10532 done
10533 if test -z "$haveit"; then
10534 ltrpathdirs="$ltrpathdirs $dir"
10538 -l*)
10539 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10541 *.la)
10542 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10545 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10546 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10548 esac
10549 done
10551 else
10552 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10553 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10557 done
10558 done
10559 if test "X$rpathdirs" != "X"; then
10560 if test -n "$hardcode_libdir_separator"; then
10561 alldirs=
10562 for found_dir in $rpathdirs; do
10563 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10564 done
10565 acl_save_libdir="$libdir"
10566 libdir="$alldirs"
10567 eval flag=\"$hardcode_libdir_flag_spec\"
10568 libdir="$acl_save_libdir"
10569 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10570 else
10571 for found_dir in $rpathdirs; do
10572 acl_save_libdir="$libdir"
10573 libdir="$found_dir"
10574 eval flag=\"$hardcode_libdir_flag_spec\"
10575 libdir="$acl_save_libdir"
10576 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10577 done
10580 if test "X$ltrpathdirs" != "X"; then
10581 for found_dir in $ltrpathdirs; do
10582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10583 done
10592 am_save_CPPFLAGS="$CPPFLAGS"
10594 for element in $INCICONV; do
10595 haveit=
10596 for x in $CPPFLAGS; do
10598 acl_save_prefix="$prefix"
10599 prefix="$acl_final_prefix"
10600 acl_save_exec_prefix="$exec_prefix"
10601 exec_prefix="$acl_final_exec_prefix"
10602 eval x=\"$x\"
10603 exec_prefix="$acl_save_exec_prefix"
10604 prefix="$acl_save_prefix"
10606 if test "X$x" = "X$element"; then
10607 haveit=yes
10608 break
10610 done
10611 if test -z "$haveit"; then
10612 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10614 done
10617 echo "$as_me:$LINENO: checking for iconv" >&5
10618 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10619 if test "${am_cv_func_iconv+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10623 am_cv_func_iconv="no, consider installing GNU libiconv"
10624 am_cv_lib_iconv=no
10625 if test x$gcc_no_link = xyes; then
10626 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10628 { (exit 1); exit 1; }; }
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <stdlib.h>
10637 #include <iconv.h>
10639 main ()
10641 iconv_t cd = iconv_open("","");
10642 iconv(cd,NULL,NULL,NULL,NULL);
10643 iconv_close(cd);
10645 return 0;
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650 (eval $ac_link) 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } &&
10657 { ac_try='test -z "$ac_c_werror_flag"
10658 || test ! -s conftest.err'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 am_cv_func_iconv=yes
10671 else
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10676 rm -f conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 if test "$am_cv_func_iconv" != yes; then
10679 am_save_LIBS="$LIBS"
10680 LIBS="$LIBS $LIBICONV"
10681 if test x$gcc_no_link = xyes; then
10682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10684 { (exit 1); exit 1; }; }
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <stdlib.h>
10693 #include <iconv.h>
10695 main ()
10697 iconv_t cd = iconv_open("","");
10698 iconv(cd,NULL,NULL,NULL,NULL);
10699 iconv_close(cd);
10701 return 0;
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 (eval $ac_link) 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -z "$ac_c_werror_flag"
10714 || test ! -s conftest.err'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 am_cv_lib_iconv=yes
10727 am_cv_func_iconv=yes
10728 else
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10733 rm -f conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 LIBS="$am_save_LIBS"
10739 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10740 echo "${ECHO_T}$am_cv_func_iconv" >&6
10741 if test "$am_cv_func_iconv" = yes; then
10743 cat >>confdefs.h <<\_ACEOF
10744 #define HAVE_ICONV 1
10745 _ACEOF
10748 if test "$am_cv_lib_iconv" = yes; then
10749 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10750 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10751 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10752 echo "${ECHO_T}$LIBICONV" >&6
10753 else
10754 CPPFLAGS="$am_save_CPPFLAGS"
10755 LIBICONV=
10756 LTLIBICONV=
10761 if test "$am_cv_func_iconv" = yes; then
10762 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10763 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10764 if test "${am_cv_proto_iconv+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h. */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10775 #include <stdlib.h>
10776 #include <iconv.h>
10777 extern
10778 #ifdef __cplusplus
10780 #endif
10781 #if defined(__STDC__) || defined(__cplusplus)
10782 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10783 #else
10784 size_t iconv();
10785 #endif
10788 main ()
10792 return 0;
10794 _ACEOF
10795 rm -f conftest.$ac_objext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10797 (eval $ac_compile) 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 am_cv_proto_iconv_arg1=""
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 am_cv_proto_iconv_arg1="const"
10824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10825 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);"
10828 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10829 echo "$as_me:$LINENO: result: ${ac_t:-
10830 }$am_cv_proto_iconv" >&5
10831 echo "${ECHO_T}${ac_t:-
10832 }$am_cv_proto_iconv" >&6
10834 cat >>confdefs.h <<_ACEOF
10835 #define ICONV_CONST $am_cv_proto_iconv_arg1
10836 _ACEOF
10841 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10842 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10843 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 if test x$gcc_no_link = xyes; then
10847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10849 { (exit 1); exit 1; }; }
10851 cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h. */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 #include <locale.h>
10859 main ()
10861 return LC_MESSAGES
10863 return 0;
10865 _ACEOF
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868 (eval $ac_link) 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag"
10876 || test ! -s conftest.err'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest$ac_exeext'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 am_cv_val_LC_MESSAGES=yes
10889 else
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 am_cv_val_LC_MESSAGES=no
10895 rm -f conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10898 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10899 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10900 if test $am_cv_val_LC_MESSAGES = yes; then
10902 cat >>confdefs.h <<\_ACEOF
10903 #define HAVE_LC_MESSAGES 1
10904 _ACEOF
10908 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10909 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10910 if test "${ac_cv_struct_tm+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 #include <sys/types.h>
10920 #include <time.h>
10923 main ()
10925 struct tm *tp; tp->tm_sec;
10927 return 0;
10929 _ACEOF
10930 rm -f conftest.$ac_objext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10932 (eval $ac_compile) 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag"
10940 || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_struct_tm=time.h
10953 else
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 ac_cv_struct_tm=sys/time.h
10959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10961 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10962 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10963 if test $ac_cv_struct_tm = sys/time.h; then
10965 cat >>confdefs.h <<\_ACEOF
10966 #define TM_IN_SYS_TIME 1
10967 _ACEOF
10971 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10972 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10973 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h. */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 #include <sys/types.h>
10983 #include <$ac_cv_struct_tm>
10987 main ()
10989 static struct tm ac_aggr;
10990 if (ac_aggr.tm_zone)
10991 return 0;
10993 return 0;
10995 _ACEOF
10996 rm -f conftest.$ac_objext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10998 (eval $ac_compile) 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest.$ac_objext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_cv_member_struct_tm_tm_zone=yes
11019 else
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <sys/types.h>
11030 #include <$ac_cv_struct_tm>
11034 main ()
11036 static struct tm ac_aggr;
11037 if (sizeof ac_aggr.tm_zone)
11038 return 0;
11040 return 0;
11042 _ACEOF
11043 rm -f conftest.$ac_objext
11044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11045 (eval $ac_compile) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_c_werror_flag"
11053 || test ! -s conftest.err'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; } &&
11059 { ac_try='test -s conftest.$ac_objext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_member_struct_tm_tm_zone=yes
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_cv_member_struct_tm_tm_zone=no
11072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11076 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11077 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11078 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11080 cat >>confdefs.h <<_ACEOF
11081 #define HAVE_STRUCT_TM_TM_ZONE 1
11082 _ACEOF
11087 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_TM_ZONE 1
11091 _ACEOF
11093 else
11094 echo "$as_me:$LINENO: checking for tzname" >&5
11095 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11096 if test "${ac_cv_var_tzname+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099 if test x$gcc_no_link = xyes; then
11100 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11102 { (exit 1); exit 1; }; }
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h. */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 #include <time.h>
11111 #ifndef tzname /* For SGI. */
11112 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11113 #endif
11116 main ()
11118 atoi(*tzname);
11120 return 0;
11122 _ACEOF
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125 (eval $ac_link) 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag"
11133 || test ! -s conftest.err'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; } &&
11139 { ac_try='test -s conftest$ac_exeext'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 ac_cv_var_tzname=yes
11146 else
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_var_tzname=no
11152 rm -f conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11156 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11157 if test $ac_cv_var_tzname = yes; then
11159 cat >>confdefs.h <<\_ACEOF
11160 #define HAVE_TZNAME 1
11161 _ACEOF
11169 for ac_func in gethostbyname_r
11171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11172 echo "$as_me:$LINENO: checking for $ac_func" >&5
11173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11174 if eval "test \"\${$as_ac_var+set}\" = set"; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 if test x$gcc_no_link = xyes; then
11178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11180 { (exit 1); exit 1; }; }
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h. */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11190 #define $ac_func innocuous_$ac_func
11192 /* System header to define __stub macros and hopefully few prototypes,
11193 which can conflict with char $ac_func (); below.
11194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11195 <limits.h> exists even on freestanding compilers. */
11197 #ifdef __STDC__
11198 # include <limits.h>
11199 #else
11200 # include <assert.h>
11201 #endif
11203 #undef $ac_func
11205 /* Override any gcc2 internal prototype to avoid an error. */
11206 #ifdef __cplusplus
11207 extern "C"
11209 #endif
11210 /* We use char because int might match the return type of a gcc2
11211 builtin and then its argument prototype would still apply. */
11212 char $ac_func ();
11213 /* The GNU C library defines this for functions which it implements
11214 to always fail with ENOSYS. Some functions are actually named
11215 something starting with __ and the normal name is an alias. */
11216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11217 choke me
11218 #else
11219 char (*f) () = $ac_func;
11220 #endif
11221 #ifdef __cplusplus
11223 #endif
11226 main ()
11228 return f != $ac_func;
11230 return 0;
11232 _ACEOF
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11235 (eval $ac_link) 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -z "$ac_c_werror_flag"
11243 || test ! -s conftest.err'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; } &&
11249 { ac_try='test -s conftest$ac_exeext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 eval "$as_ac_var=yes"
11256 else
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 eval "$as_ac_var=no"
11262 rm -f conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11267 if test `eval echo '${'$as_ac_var'}'` = yes; then
11268 cat >>confdefs.h <<_ACEOF
11269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11270 _ACEOF
11273 cat >>confdefs.h <<\_ACEOF
11274 #define HAVE_GETHOSTBYNAME_R 1
11275 _ACEOF
11277 # There are two different kinds of gethostbyname_r.
11278 # We look for the one that returns `int'.
11279 # Hopefully this check is robust enough.
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h. */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 #include <netdb.h>
11288 _ACEOF
11289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11290 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11293 cat >>confdefs.h <<\_ACEOF
11294 #define GETHOSTBYNAME_R_RETURNS_INT 1
11295 _ACEOF
11298 rm -f conftest*
11301 case " $GCINCS " in
11302 *" -D_REENTRANT "*) ;;
11304 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11305 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11306 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 ac_ext=cc
11310 ac_cpp='$CXXCPP $CPPFLAGS'
11311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 #include <netdb.h>
11323 main ()
11325 gethostbyname_r("", 0, 0);
11327 return 0;
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_cxx_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 libjava_cv_gethostbyname_r_needs_reentrant=no
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 CPPFLAGS_SAVE="$CPPFLAGS"
11358 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h. */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 #include <netdb.h>
11367 main ()
11369 gethostbyname_r("", 0, 0);
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try='test -z "$ac_cxx_werror_flag"
11384 || test ! -s conftest.err'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 libjava_cv_gethostbyname_r_needs_reentrant=yes
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 libjava_cv_gethostbyname_r_needs_reentrant=fail
11403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11404 CPPFLAGS="$CPPFLAGS_SAVE"
11407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11408 ac_ext=c
11409 ac_cpp='$CPP $CPPFLAGS'
11410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11416 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11417 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11418 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11420 cat >>confdefs.h <<\_ACEOF
11421 #define _REENTRANT 1
11422 _ACEOF
11426 esac
11428 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11429 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11430 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433 cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h. */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11440 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11441 # define _REENTRANT 1
11442 #endif
11443 #include <netdb.h>
11445 main ()
11447 struct hostent_data data;
11449 return 0;
11451 _ACEOF
11452 rm -f conftest.$ac_objext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454 (eval $ac_compile) 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } &&
11461 { ac_try='test -z "$ac_c_werror_flag"
11462 || test ! -s conftest.err'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; } &&
11468 { ac_try='test -s conftest.$ac_objext'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 libjava_cv_struct_hostent_data=yes
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 libjava_cv_struct_hostent_data=no
11481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11483 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11484 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11485 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11487 cat >>confdefs.h <<\_ACEOF
11488 #define HAVE_STRUCT_HOSTENT_DATA 1
11489 _ACEOF
11494 done
11497 # FIXME: libjava source code expects to find a prototype for
11498 # gethostbyaddr_r in netdb.h. The outer check ensures that
11499 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11500 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11501 # linkage check is enough, yet C++ code requires proper prototypes.)
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 #include <netdb.h>
11510 _ACEOF
11511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11512 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11515 for ac_func in gethostbyaddr_r
11517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11518 echo "$as_me:$LINENO: checking for $ac_func" >&5
11519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11520 if eval "test \"\${$as_ac_var+set}\" = set"; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523 if test x$gcc_no_link = xyes; then
11524 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11525 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11526 { (exit 1); exit 1; }; }
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11536 #define $ac_func innocuous_$ac_func
11538 /* System header to define __stub macros and hopefully few prototypes,
11539 which can conflict with char $ac_func (); below.
11540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11541 <limits.h> exists even on freestanding compilers. */
11543 #ifdef __STDC__
11544 # include <limits.h>
11545 #else
11546 # include <assert.h>
11547 #endif
11549 #undef $ac_func
11551 /* Override any gcc2 internal prototype to avoid an error. */
11552 #ifdef __cplusplus
11553 extern "C"
11555 #endif
11556 /* We use char because int might match the return type of a gcc2
11557 builtin and then its argument prototype would still apply. */
11558 char $ac_func ();
11559 /* The GNU C library defines this for functions which it implements
11560 to always fail with ENOSYS. Some functions are actually named
11561 something starting with __ and the normal name is an alias. */
11562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11563 choke me
11564 #else
11565 char (*f) () = $ac_func;
11566 #endif
11567 #ifdef __cplusplus
11569 #endif
11572 main ()
11574 return f != $ac_func;
11576 return 0;
11578 _ACEOF
11579 rm -f conftest.$ac_objext conftest$ac_exeext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11581 (eval $ac_link) 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
11588 { ac_try='test -z "$ac_c_werror_flag"
11589 || test ! -s conftest.err'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try='test -s conftest$ac_exeext'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 eval "$as_ac_var=yes"
11602 else
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 eval "$as_ac_var=no"
11608 rm -f conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11613 if test `eval echo '${'$as_ac_var'}'` = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11616 _ACEOF
11619 cat >>confdefs.h <<\_ACEOF
11620 #define HAVE_GETHOSTBYADDR_R 1
11621 _ACEOF
11623 # There are two different kinds of gethostbyaddr_r.
11624 # We look for the one that returns `int'.
11625 # Hopefully this check is robust enough.
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 #include <netdb.h>
11634 _ACEOF
11635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11636 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11639 cat >>confdefs.h <<\_ACEOF
11640 #define GETHOSTBYADDR_R_RETURNS_INT 1
11641 _ACEOF
11644 rm -f conftest*
11647 done
11650 rm -f conftest*
11654 for ac_func in gethostname
11656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11657 echo "$as_me:$LINENO: checking for $ac_func" >&5
11658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11659 if eval "test \"\${$as_ac_var+set}\" = set"; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662 if test x$gcc_no_link = xyes; then
11663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11665 { (exit 1); exit 1; }; }
11667 cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h. */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11675 #define $ac_func innocuous_$ac_func
11677 /* System header to define __stub macros and hopefully few prototypes,
11678 which can conflict with char $ac_func (); below.
11679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11680 <limits.h> exists even on freestanding compilers. */
11682 #ifdef __STDC__
11683 # include <limits.h>
11684 #else
11685 # include <assert.h>
11686 #endif
11688 #undef $ac_func
11690 /* Override any gcc2 internal prototype to avoid an error. */
11691 #ifdef __cplusplus
11692 extern "C"
11694 #endif
11695 /* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11697 char $ac_func ();
11698 /* The GNU C library defines this for functions which it implements
11699 to always fail with ENOSYS. Some functions are actually named
11700 something starting with __ and the normal name is an alias. */
11701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11702 choke me
11703 #else
11704 char (*f) () = $ac_func;
11705 #endif
11706 #ifdef __cplusplus
11708 #endif
11711 main ()
11713 return f != $ac_func;
11715 return 0;
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -z "$ac_c_werror_flag"
11728 || test ! -s conftest.err'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest$ac_exeext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 eval "$as_ac_var=yes"
11741 else
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 eval "$as_ac_var=no"
11747 rm -f conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11752 if test `eval echo '${'$as_ac_var'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755 _ACEOF
11758 cat >>confdefs.h <<\_ACEOF
11759 #define HAVE_GETHOSTNAME 1
11760 _ACEOF
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #include <unistd.h>
11770 _ACEOF
11771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11772 $EGREP "gethostname" >/dev/null 2>&1; then
11775 cat >>confdefs.h <<\_ACEOF
11776 #define HAVE_GETHOSTNAME_DECL 1
11777 _ACEOF
11780 rm -f conftest*
11783 done
11787 for ac_func in usleep
11789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11790 echo "$as_me:$LINENO: checking for $ac_func" >&5
11791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11792 if eval "test \"\${$as_ac_var+set}\" = set"; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 if test x$gcc_no_link = xyes; then
11796 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11797 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11798 { (exit 1); exit 1; }; }
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11808 #define $ac_func innocuous_$ac_func
11810 /* System header to define __stub macros and hopefully few prototypes,
11811 which can conflict with char $ac_func (); below.
11812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813 <limits.h> exists even on freestanding compilers. */
11815 #ifdef __STDC__
11816 # include <limits.h>
11817 #else
11818 # include <assert.h>
11819 #endif
11821 #undef $ac_func
11823 /* Override any gcc2 internal prototype to avoid an error. */
11824 #ifdef __cplusplus
11825 extern "C"
11827 #endif
11828 /* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */
11830 char $ac_func ();
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11835 choke me
11836 #else
11837 char (*f) () = $ac_func;
11838 #endif
11839 #ifdef __cplusplus
11841 #endif
11844 main ()
11846 return f != $ac_func;
11848 return 0;
11850 _ACEOF
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 eval "$as_ac_var=yes"
11874 else
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 eval "$as_ac_var=no"
11880 rm -f conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11885 if test `eval echo '${'$as_ac_var'}'` = yes; then
11886 cat >>confdefs.h <<_ACEOF
11887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11888 _ACEOF
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h. */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 #include <unistd.h>
11898 _ACEOF
11899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11900 $EGREP "usleep" >/dev/null 2>&1; then
11903 cat >>confdefs.h <<\_ACEOF
11904 #define HAVE_USLEEP_DECL 1
11905 _ACEOF
11908 rm -f conftest*
11911 done
11914 # Look for these functions in the thread library, but only bother
11915 # if using POSIX threads.
11916 if test "$THREADS" = posix; then
11917 save_LIBS="$LIBS"
11918 LIBS="$LIBS $THREADLIBS"
11919 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11920 # E.g., Solaris.
11923 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11926 echo "$as_me:$LINENO: checking for $ac_func" >&5
11927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11928 if eval "test \"\${$as_ac_var+set}\" = set"; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931 if test x$gcc_no_link = xyes; then
11932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11934 { (exit 1); exit 1; }; }
11936 cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h. */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11944 #define $ac_func innocuous_$ac_func
11946 /* System header to define __stub macros and hopefully few prototypes,
11947 which can conflict with char $ac_func (); below.
11948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11949 <limits.h> exists even on freestanding compilers. */
11951 #ifdef __STDC__
11952 # include <limits.h>
11953 #else
11954 # include <assert.h>
11955 #endif
11957 #undef $ac_func
11959 /* Override any gcc2 internal prototype to avoid an error. */
11960 #ifdef __cplusplus
11961 extern "C"
11963 #endif
11964 /* We use char because int might match the return type of a gcc2
11965 builtin and then its argument prototype would still apply. */
11966 char $ac_func ();
11967 /* The GNU C library defines this for functions which it implements
11968 to always fail with ENOSYS. Some functions are actually named
11969 something starting with __ and the normal name is an alias. */
11970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11971 choke me
11972 #else
11973 char (*f) () = $ac_func;
11974 #endif
11975 #ifdef __cplusplus
11977 #endif
11980 main ()
11982 return f != $ac_func;
11984 return 0;
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989 (eval $ac_link) 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -z "$ac_c_werror_flag"
11997 || test ! -s conftest.err'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; } &&
12003 { ac_try='test -s conftest$ac_exeext'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 eval "$as_ac_var=yes"
12010 else
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12014 eval "$as_ac_var=no"
12016 rm -f conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12021 if test `eval echo '${'$as_ac_var'}'` = yes; then
12022 cat >>confdefs.h <<_ACEOF
12023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12024 _ACEOF
12027 done
12030 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12031 # Solaris 7 the name librt is preferred.
12033 for ac_func in sched_yield
12035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12036 echo "$as_me:$LINENO: checking for $ac_func" >&5
12037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12038 if eval "test \"\${$as_ac_var+set}\" = set"; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041 if test x$gcc_no_link = xyes; then
12042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12044 { (exit 1); exit 1; }; }
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12054 #define $ac_func innocuous_$ac_func
12056 /* System header to define __stub macros and hopefully few prototypes,
12057 which can conflict with char $ac_func (); below.
12058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12059 <limits.h> exists even on freestanding compilers. */
12061 #ifdef __STDC__
12062 # include <limits.h>
12063 #else
12064 # include <assert.h>
12065 #endif
12067 #undef $ac_func
12069 /* Override any gcc2 internal prototype to avoid an error. */
12070 #ifdef __cplusplus
12071 extern "C"
12073 #endif
12074 /* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12076 char $ac_func ();
12077 /* The GNU C library defines this for functions which it implements
12078 to always fail with ENOSYS. Some functions are actually named
12079 something starting with __ and the normal name is an alias. */
12080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12081 choke me
12082 #else
12083 char (*f) () = $ac_func;
12084 #endif
12085 #ifdef __cplusplus
12087 #endif
12090 main ()
12092 return f != $ac_func;
12094 return 0;
12096 _ACEOF
12097 rm -f conftest.$ac_objext conftest$ac_exeext
12098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag"
12107 || test ! -s conftest.err'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest$ac_exeext'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 eval "$as_ac_var=yes"
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 eval "$as_ac_var=no"
12126 rm -f conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12131 if test `eval echo '${'$as_ac_var'}'` = yes; then
12132 cat >>confdefs.h <<_ACEOF
12133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12134 _ACEOF
12136 else
12138 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12139 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12140 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143 ac_check_lib_save_LIBS=$LIBS
12144 LIBS="-lrt $LIBS"
12145 if test x$gcc_no_link = xyes; then
12146 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12147 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12148 { (exit 1); exit 1; }; }
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h. */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any gcc2 internal prototype to avoid an error. */
12158 #ifdef __cplusplus
12159 extern "C"
12160 #endif
12161 /* We use char because int might match the return type of a gcc2
12162 builtin and then its argument prototype would still apply. */
12163 char sched_yield ();
12165 main ()
12167 sched_yield ();
12169 return 0;
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>conftest.er1
12175 ac_status=$?
12176 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -z "$ac_c_werror_flag"
12182 || test ! -s conftest.err'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_lib_rt_sched_yield=yes
12195 else
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_cv_lib_rt_sched_yield=no
12201 rm -f conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12205 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12206 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12207 if test $ac_cv_lib_rt_sched_yield = yes; then
12209 cat >>confdefs.h <<\_ACEOF
12210 #define HAVE_SCHED_YIELD 1
12211 _ACEOF
12213 THREADLIBS="$THREADLIBS -lrt"
12214 THREADSPEC="$THREADSPEC -lrt"
12215 else
12217 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12218 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12219 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222 ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-lposix4 $LIBS"
12224 if test x$gcc_no_link = xyes; then
12225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12227 { (exit 1); exit 1; }; }
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12236 /* Override any gcc2 internal prototype to avoid an error. */
12237 #ifdef __cplusplus
12238 extern "C"
12239 #endif
12240 /* We use char because int might match the return type of a gcc2
12241 builtin and then its argument prototype would still apply. */
12242 char sched_yield ();
12244 main ()
12246 sched_yield ();
12248 return 0;
12250 _ACEOF
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12253 (eval $ac_link) 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_lib_posix4_sched_yield=yes
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ac_cv_lib_posix4_sched_yield=no
12280 rm -f conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12285 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12286 if test $ac_cv_lib_posix4_sched_yield = yes; then
12288 cat >>confdefs.h <<\_ACEOF
12289 #define HAVE_SCHED_YIELD 1
12290 _ACEOF
12292 THREADLIBS="$THREADLIBS -lposix4"
12293 THREADSPEC="$THREADSPEC -lposix4"
12299 done
12301 LIBS="$save_LIBS"
12303 # We can save a little space at runtime if the mutex has m_count
12304 # or __m_count. This is a nice hack for Linux.
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 #include <pthread.h>
12313 main ()
12316 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12319 return 0;
12321 _ACEOF
12322 rm -f conftest.$ac_objext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12324 (eval $ac_compile) 2>conftest.er1
12325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
12331 { ac_try='test -z "$ac_c_werror_flag"
12332 || test ! -s conftest.err'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest.$ac_objext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12345 cat >>confdefs.h <<\_ACEOF
12346 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12347 _ACEOF
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12354 cat >conftest.$ac_ext <<_ACEOF
12355 /* confdefs.h. */
12356 _ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12360 #include <pthread.h>
12362 main ()
12365 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12368 return 0;
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -z "$ac_c_werror_flag"
12381 || test ! -s conftest.err'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest.$ac_objext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12394 cat >>confdefs.h <<\_ACEOF
12395 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12396 _ACEOF
12398 else
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12408 # We require a way to get the time.
12409 time_found=no
12413 for ac_func in gettimeofday time ftime
12415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12416 echo "$as_me:$LINENO: checking for $ac_func" >&5
12417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12418 if eval "test \"\${$as_ac_var+set}\" = set"; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421 if test x$gcc_no_link = xyes; then
12422 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12423 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12424 { (exit 1); exit 1; }; }
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12434 #define $ac_func innocuous_$ac_func
12436 /* System header to define __stub macros and hopefully few prototypes,
12437 which can conflict with char $ac_func (); below.
12438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12439 <limits.h> exists even on freestanding compilers. */
12441 #ifdef __STDC__
12442 # include <limits.h>
12443 #else
12444 # include <assert.h>
12445 #endif
12447 #undef $ac_func
12449 /* Override any gcc2 internal prototype to avoid an error. */
12450 #ifdef __cplusplus
12451 extern "C"
12453 #endif
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456 char $ac_func ();
12457 /* The GNU C library defines this for functions which it implements
12458 to always fail with ENOSYS. Some functions are actually named
12459 something starting with __ and the normal name is an alias. */
12460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12461 choke me
12462 #else
12463 char (*f) () = $ac_func;
12464 #endif
12465 #ifdef __cplusplus
12467 #endif
12470 main ()
12472 return f != $ac_func;
12474 return 0;
12476 _ACEOF
12477 rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479 (eval $ac_link) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest$ac_exeext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 eval "$as_ac_var=yes"
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 eval "$as_ac_var=no"
12506 rm -f conftest.err conftest.$ac_objext \
12507 conftest$ac_exeext conftest.$ac_ext
12509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12511 if test `eval echo '${'$as_ac_var'}'` = yes; then
12512 cat >>confdefs.h <<_ACEOF
12513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12514 _ACEOF
12515 time_found=yes
12517 done
12519 if test "$time_found" = no; then
12520 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12521 echo "$as_me: error: no function found to get the time" >&2;}
12522 { (exit 1); exit 1; }; }
12526 for ac_func in memmove
12528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12529 echo "$as_me:$LINENO: checking for $ac_func" >&5
12530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12531 if eval "test \"\${$as_ac_var+set}\" = set"; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534 if test x$gcc_no_link = xyes; then
12535 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12537 { (exit 1); exit 1; }; }
12539 cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h. */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12547 #define $ac_func innocuous_$ac_func
12549 /* System header to define __stub macros and hopefully few prototypes,
12550 which can conflict with char $ac_func (); below.
12551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12552 <limits.h> exists even on freestanding compilers. */
12554 #ifdef __STDC__
12555 # include <limits.h>
12556 #else
12557 # include <assert.h>
12558 #endif
12560 #undef $ac_func
12562 /* Override any gcc2 internal prototype to avoid an error. */
12563 #ifdef __cplusplus
12564 extern "C"
12566 #endif
12567 /* We use char because int might match the return type of a gcc2
12568 builtin and then its argument prototype would still apply. */
12569 char $ac_func ();
12570 /* The GNU C library defines this for functions which it implements
12571 to always fail with ENOSYS. Some functions are actually named
12572 something starting with __ and the normal name is an alias. */
12573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12574 choke me
12575 #else
12576 char (*f) () = $ac_func;
12577 #endif
12578 #ifdef __cplusplus
12580 #endif
12583 main ()
12585 return f != $ac_func;
12587 return 0;
12589 _ACEOF
12590 rm -f conftest.$ac_objext conftest$ac_exeext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592 (eval $ac_link) 2>conftest.er1
12593 ac_status=$?
12594 grep -v '^ *+' conftest.er1 >conftest.err
12595 rm -f conftest.er1
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag"
12600 || test ! -s conftest.err'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest$ac_exeext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 eval "$as_ac_var=yes"
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 eval "$as_ac_var=no"
12619 rm -f conftest.err conftest.$ac_objext \
12620 conftest$ac_exeext conftest.$ac_ext
12622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12624 if test `eval echo '${'$as_ac_var'}'` = yes; then
12625 cat >>confdefs.h <<_ACEOF
12626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12627 _ACEOF
12630 done
12633 # We require memcpy.
12634 memcpy_found=no
12636 for ac_func in memcpy
12638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12639 echo "$as_me:$LINENO: checking for $ac_func" >&5
12640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12641 if eval "test \"\${$as_ac_var+set}\" = set"; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 else
12644 if test x$gcc_no_link = xyes; then
12645 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12646 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12647 { (exit 1); exit 1; }; }
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h. */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12657 #define $ac_func innocuous_$ac_func
12659 /* System header to define __stub macros and hopefully few prototypes,
12660 which can conflict with char $ac_func (); below.
12661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12662 <limits.h> exists even on freestanding compilers. */
12664 #ifdef __STDC__
12665 # include <limits.h>
12666 #else
12667 # include <assert.h>
12668 #endif
12670 #undef $ac_func
12672 /* Override any gcc2 internal prototype to avoid an error. */
12673 #ifdef __cplusplus
12674 extern "C"
12676 #endif
12677 /* We use char because int might match the return type of a gcc2
12678 builtin and then its argument prototype would still apply. */
12679 char $ac_func ();
12680 /* The GNU C library defines this for functions which it implements
12681 to always fail with ENOSYS. Some functions are actually named
12682 something starting with __ and the normal name is an alias. */
12683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12684 choke me
12685 #else
12686 char (*f) () = $ac_func;
12687 #endif
12688 #ifdef __cplusplus
12690 #endif
12693 main ()
12695 return f != $ac_func;
12697 return 0;
12699 _ACEOF
12700 rm -f conftest.$ac_objext conftest$ac_exeext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12702 (eval $ac_link) 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag"
12710 || test ! -s conftest.err'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try='test -s conftest$ac_exeext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12722 eval "$as_ac_var=yes"
12723 else
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12727 eval "$as_ac_var=no"
12729 rm -f conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12734 if test `eval echo '${'$as_ac_var'}'` = yes; then
12735 cat >>confdefs.h <<_ACEOF
12736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12737 _ACEOF
12738 memcpy_found=yes
12740 done
12742 if test "$memcpy_found" = no; then
12743 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12744 echo "$as_me: error: memcpy is required" >&2;}
12745 { (exit 1); exit 1; }; }
12748 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 ac_check_lib_save_LIBS=$LIBS
12754 LIBS="-ldl $LIBS"
12755 if test x$gcc_no_link = xyes; then
12756 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12758 { (exit 1); exit 1; }; }
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12767 /* Override any gcc2 internal prototype to avoid an error. */
12768 #ifdef __cplusplus
12769 extern "C"
12770 #endif
12771 /* We use char because int might match the return type of a gcc2
12772 builtin and then its argument prototype would still apply. */
12773 char dlopen ();
12775 main ()
12777 dlopen ();
12779 return 0;
12781 _ACEOF
12782 rm -f conftest.$ac_objext conftest$ac_exeext
12783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12784 (eval $ac_link) 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag"
12792 || test ! -s conftest.err'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; } &&
12798 { ac_try='test -s conftest$ac_exeext'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; }; then
12804 ac_cv_lib_dl_dlopen=yes
12805 else
12806 echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12809 ac_cv_lib_dl_dlopen=no
12811 rm -f conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12815 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12816 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12817 if test $ac_cv_lib_dl_dlopen = yes; then
12820 cat >>confdefs.h <<\_ACEOF
12821 #define HAVE_DLOPEN 1
12822 _ACEOF
12827 # Some library-finding code we stole from Tcl.
12828 #--------------------------------------------------------------------
12829 # Check for the existence of the -lsocket and -lnsl libraries.
12830 # The order here is important, so that they end up in the right
12831 # order in the command line generated by make. Here are some
12832 # special considerations:
12833 # 1. Use "connect" and "accept" to check for -lsocket, and
12834 # "gethostbyname" to check for -lnsl.
12835 # 2. Use each function name only once: can't redo a check because
12836 # autoconf caches the results of the last check and won't redo it.
12837 # 3. Use -lnsl and -lsocket only if they supply procedures that
12838 # aren't already present in the normal libraries. This is because
12839 # IRIX 5.2 has libraries, but they aren't needed and they're
12840 # bogus: they goof up name resolution if used.
12841 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12842 # To get around this problem, check for both libraries together
12843 # if -lsocket doesn't work by itself.
12844 #--------------------------------------------------------------------
12846 echo "$as_me:$LINENO: checking for socket libraries" >&5
12847 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12848 if test "${gcj_cv_lib_sockets+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851 gcj_cv_lib_sockets=
12852 gcj_checkBoth=0
12853 unset ac_cv_func_connect
12854 echo "$as_me:$LINENO: checking for connect" >&5
12855 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12856 if test "${ac_cv_func_connect+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859 if test x$gcc_no_link = xyes; then
12860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12862 { (exit 1); exit 1; }; }
12864 cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h. */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12872 #define connect innocuous_connect
12874 /* System header to define __stub macros and hopefully few prototypes,
12875 which can conflict with char connect (); below.
12876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12877 <limits.h> exists even on freestanding compilers. */
12879 #ifdef __STDC__
12880 # include <limits.h>
12881 #else
12882 # include <assert.h>
12883 #endif
12885 #undef connect
12887 /* Override any gcc2 internal prototype to avoid an error. */
12888 #ifdef __cplusplus
12889 extern "C"
12891 #endif
12892 /* We use char because int might match the return type of a gcc2
12893 builtin and then its argument prototype would still apply. */
12894 char connect ();
12895 /* The GNU C library defines this for functions which it implements
12896 to always fail with ENOSYS. Some functions are actually named
12897 something starting with __ and the normal name is an alias. */
12898 #if defined (__stub_connect) || defined (__stub___connect)
12899 choke me
12900 #else
12901 char (*f) () = connect;
12902 #endif
12903 #ifdef __cplusplus
12905 #endif
12908 main ()
12910 return f != connect;
12912 return 0;
12914 _ACEOF
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag"
12925 || test ! -s conftest.err'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest$ac_exeext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12937 ac_cv_func_connect=yes
12938 else
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 ac_cv_func_connect=no
12944 rm -f conftest.err conftest.$ac_objext \
12945 conftest$ac_exeext conftest.$ac_ext
12947 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12948 echo "${ECHO_T}$ac_cv_func_connect" >&6
12949 if test $ac_cv_func_connect = yes; then
12950 gcj_checkSocket=0
12951 else
12952 gcj_checkSocket=1
12955 if test "$gcj_checkSocket" = 1; then
12956 unset ac_cv_func_connect
12957 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12958 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12959 if test "${ac_cv_lib_socket_main+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962 ac_check_lib_save_LIBS=$LIBS
12963 LIBS="-lsocket $LIBS"
12964 if test x$gcc_no_link = xyes; then
12965 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12966 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12967 { (exit 1); exit 1; }; }
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h. */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12978 main ()
12980 main ();
12982 return 0;
12984 _ACEOF
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987 (eval $ac_link) 2>conftest.er1
12988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest$ac_exeext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 ac_cv_lib_socket_main=yes
13008 else
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 ac_cv_lib_socket_main=no
13014 rm -f conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13018 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13019 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13020 if test $ac_cv_lib_socket_main = yes; then
13021 gcj_cv_lib_sockets="-lsocket"
13022 else
13023 gcj_checkBoth=1
13027 if test "$gcj_checkBoth" = 1; then
13028 gcj_oldLibs=$LIBS
13029 LIBS="$LIBS -lsocket -lnsl"
13030 unset ac_cv_func_accept
13031 echo "$as_me:$LINENO: checking for accept" >&5
13032 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13033 if test "${ac_cv_func_accept+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036 if test x$gcc_no_link = xyes; then
13037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13039 { (exit 1); exit 1; }; }
13041 cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h. */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13049 #define accept innocuous_accept
13051 /* System header to define __stub macros and hopefully few prototypes,
13052 which can conflict with char accept (); below.
13053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13054 <limits.h> exists even on freestanding compilers. */
13056 #ifdef __STDC__
13057 # include <limits.h>
13058 #else
13059 # include <assert.h>
13060 #endif
13062 #undef accept
13064 /* Override any gcc2 internal prototype to avoid an error. */
13065 #ifdef __cplusplus
13066 extern "C"
13068 #endif
13069 /* We use char because int might match the return type of a gcc2
13070 builtin and then its argument prototype would still apply. */
13071 char accept ();
13072 /* The GNU C library defines this for functions which it implements
13073 to always fail with ENOSYS. Some functions are actually named
13074 something starting with __ and the normal name is an alias. */
13075 #if defined (__stub_accept) || defined (__stub___accept)
13076 choke me
13077 #else
13078 char (*f) () = accept;
13079 #endif
13080 #ifdef __cplusplus
13082 #endif
13085 main ()
13087 return f != accept;
13089 return 0;
13091 _ACEOF
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13094 (eval $ac_link) 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag"
13102 || test ! -s conftest.err'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } &&
13108 { ac_try='test -s conftest$ac_exeext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13114 ac_cv_func_accept=yes
13115 else
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13119 ac_cv_func_accept=no
13121 rm -f conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13124 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13125 echo "${ECHO_T}$ac_cv_func_accept" >&6
13126 if test $ac_cv_func_accept = yes; then
13127 gcj_checkNsl=0
13128 gcj_cv_lib_sockets="-lsocket -lnsl"
13131 unset ac_cv_func_accept
13132 LIBS=$gcj_oldLibs
13134 unset ac_cv_func_gethostbyname
13135 gcj_oldLibs=$LIBS
13136 LIBS="$LIBS $gcj_cv_lib_sockets"
13137 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13138 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13139 if test "${ac_cv_func_gethostbyname+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142 if test x$gcc_no_link = xyes; then
13143 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13144 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13145 { (exit 1); exit 1; }; }
13147 cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h. */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13153 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13155 #define gethostbyname innocuous_gethostbyname
13157 /* System header to define __stub macros and hopefully few prototypes,
13158 which can conflict with char gethostbyname (); below.
13159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13160 <limits.h> exists even on freestanding compilers. */
13162 #ifdef __STDC__
13163 # include <limits.h>
13164 #else
13165 # include <assert.h>
13166 #endif
13168 #undef gethostbyname
13170 /* Override any gcc2 internal prototype to avoid an error. */
13171 #ifdef __cplusplus
13172 extern "C"
13174 #endif
13175 /* We use char because int might match the return type of a gcc2
13176 builtin and then its argument prototype would still apply. */
13177 char gethostbyname ();
13178 /* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13182 choke me
13183 #else
13184 char (*f) () = gethostbyname;
13185 #endif
13186 #ifdef __cplusplus
13188 #endif
13191 main ()
13193 return f != gethostbyname;
13195 return 0;
13197 _ACEOF
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200 (eval $ac_link) 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag"
13208 || test ! -s conftest.err'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_func_gethostbyname=yes
13221 else
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13225 ac_cv_func_gethostbyname=no
13227 rm -f conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13230 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13231 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13232 if test $ac_cv_func_gethostbyname = yes; then
13234 else
13235 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13236 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13237 if test "${ac_cv_lib_nsl_main+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240 ac_check_lib_save_LIBS=$LIBS
13241 LIBS="-lnsl $LIBS"
13242 if test x$gcc_no_link = xyes; then
13243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13245 { (exit 1); exit 1; }; }
13247 cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h. */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13256 main ()
13258 main ();
13260 return 0;
13262 _ACEOF
13263 rm -f conftest.$ac_objext conftest$ac_exeext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265 (eval $ac_link) 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -z "$ac_c_werror_flag"
13273 || test ! -s conftest.err'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 ac_cv_lib_nsl_main=yes
13286 else
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ac_cv_lib_nsl_main=no
13292 rm -f conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13296 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13297 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13298 if test $ac_cv_lib_nsl_main = yes; then
13299 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13304 unset ac_cv_func_gethostbyname
13305 LIBS=$gcj_oldLIBS
13308 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13309 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13310 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13312 if test "$with_system_zlib" = yes; then
13313 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13314 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13315 if test "${ac_cv_lib_z_deflate+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318 ac_check_lib_save_LIBS=$LIBS
13319 LIBS="-lz $LIBS"
13320 if test x$gcc_no_link = xyes; then
13321 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13322 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13323 { (exit 1); exit 1; }; }
13325 cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h. */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13332 /* Override any gcc2 internal prototype to avoid an error. */
13333 #ifdef __cplusplus
13334 extern "C"
13335 #endif
13336 /* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13338 char deflate ();
13340 main ()
13342 deflate ();
13344 return 0;
13346 _ACEOF
13347 rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13349 (eval $ac_link) 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } &&
13356 { ac_try='test -z "$ac_c_werror_flag"
13357 || test ! -s conftest.err'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; } &&
13363 { ac_try='test -s conftest$ac_exeext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_cv_lib_z_deflate=yes
13370 else
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13374 ac_cv_lib_z_deflate=no
13376 rm -f conftest.err conftest.$ac_objext \
13377 conftest$ac_exeext conftest.$ac_ext
13378 LIBS=$ac_check_lib_save_LIBS
13380 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13381 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13382 if test $ac_cv_lib_z_deflate = yes; then
13383 ZLIBSPEC=-lz
13384 else
13385 ZLIBSPEC=
13390 # Test for Gtk stuff, if asked for.
13391 if test "$use_gtk_awt" = yes; then
13393 succeeded=no
13395 if test -z "$PKG_CONFIG"; then
13396 # Extract the first word of "pkg-config", so it can be a program name with args.
13397 set dummy pkg-config; ac_word=$2
13398 echo "$as_me:$LINENO: checking for $ac_word" >&5
13399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13400 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403 case $PKG_CONFIG in
13404 [\\/]* | ?:[\\/]*)
13405 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13411 IFS=$as_save_IFS
13412 test -z "$as_dir" && as_dir=.
13413 for ac_exec_ext in '' $ac_executable_extensions; do
13414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 break 2
13419 done
13420 done
13422 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13424 esac
13426 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13428 if test -n "$PKG_CONFIG"; then
13429 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13430 echo "${ECHO_T}$PKG_CONFIG" >&6
13431 else
13432 echo "$as_me:$LINENO: result: no" >&5
13433 echo "${ECHO_T}no" >&6
13438 if test "$PKG_CONFIG" = "no" ; then
13439 echo "*** The pkg-config script could not be found. Make sure it is"
13440 echo "*** in your path, or set the PKG_CONFIG environment variable"
13441 echo "*** to the full path to pkg-config."
13442 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13443 else
13444 PKG_CONFIG_MIN_VERSION=0.9.0
13445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13446 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13447 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13449 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13450 echo "$as_me:$LINENO: result: yes" >&5
13451 echo "${ECHO_T}yes" >&6
13452 succeeded=yes
13454 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13455 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13456 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13457 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13458 echo "${ECHO_T}$GTK_CFLAGS" >&6
13460 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13461 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13462 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13463 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13464 echo "${ECHO_T}$GTK_LIBS" >&6
13465 else
13466 GTK_CFLAGS=""
13467 GTK_LIBS=""
13468 ## If we have a custom action on failure, don't print errors, but
13469 ## do set a variable so people can do so.
13470 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13471 echo $GTK_PKG_ERRORS
13476 else
13477 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13478 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13482 if test $succeeded = yes; then
13484 else
13485 { { 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
13486 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;}
13487 { (exit 1); exit 1; }; }
13494 succeeded=no
13496 if test -z "$PKG_CONFIG"; then
13497 # Extract the first word of "pkg-config", so it can be a program name with args.
13498 set dummy pkg-config; ac_word=$2
13499 echo "$as_me:$LINENO: checking for $ac_word" >&5
13500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13501 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504 case $PKG_CONFIG in
13505 [\\/]* | ?:[\\/]*)
13506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510 for as_dir in $PATH
13512 IFS=$as_save_IFS
13513 test -z "$as_dir" && as_dir=.
13514 for ac_exec_ext in '' $ac_executable_extensions; do
13515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13518 break 2
13520 done
13521 done
13523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13525 esac
13527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13529 if test -n "$PKG_CONFIG"; then
13530 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13531 echo "${ECHO_T}$PKG_CONFIG" >&6
13532 else
13533 echo "$as_me:$LINENO: result: no" >&5
13534 echo "${ECHO_T}no" >&6
13539 if test "$PKG_CONFIG" = "no" ; then
13540 echo "*** The pkg-config script could not be found. Make sure it is"
13541 echo "*** in your path, or set the PKG_CONFIG environment variable"
13542 echo "*** to the full path to pkg-config."
13543 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13544 else
13545 PKG_CONFIG_MIN_VERSION=0.9.0
13546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13547 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13548 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13550 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13551 echo "$as_me:$LINENO: result: yes" >&5
13552 echo "${ECHO_T}yes" >&6
13553 succeeded=yes
13555 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13556 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13557 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13558 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13559 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13561 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13562 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13563 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13564 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13565 echo "${ECHO_T}$GLIB_LIBS" >&6
13566 else
13567 GLIB_CFLAGS=""
13568 GLIB_LIBS=""
13569 ## If we have a custom action on failure, don't print errors, but
13570 ## do set a variable so people can do so.
13571 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13572 echo $GLIB_PKG_ERRORS
13577 else
13578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13583 if test $succeeded = yes; then
13585 else
13586 { { 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
13587 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;}
13588 { (exit 1); exit 1; }; }
13595 succeeded=no
13597 if test -z "$PKG_CONFIG"; then
13598 # Extract the first word of "pkg-config", so it can be a program name with args.
13599 set dummy pkg-config; ac_word=$2
13600 echo "$as_me:$LINENO: checking for $ac_word" >&5
13601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13602 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605 case $PKG_CONFIG in
13606 [\\/]* | ?:[\\/]*)
13607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611 for as_dir in $PATH
13613 IFS=$as_save_IFS
13614 test -z "$as_dir" && as_dir=.
13615 for ac_exec_ext in '' $ac_executable_extensions; do
13616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13619 break 2
13621 done
13622 done
13624 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13626 esac
13628 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13630 if test -n "$PKG_CONFIG"; then
13631 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13632 echo "${ECHO_T}$PKG_CONFIG" >&6
13633 else
13634 echo "$as_me:$LINENO: result: no" >&5
13635 echo "${ECHO_T}no" >&6
13640 if test "$PKG_CONFIG" = "no" ; then
13641 echo "*** The pkg-config script could not be found. Make sure it is"
13642 echo "*** in your path, or set the PKG_CONFIG environment variable"
13643 echo "*** to the full path to pkg-config."
13644 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13645 else
13646 PKG_CONFIG_MIN_VERSION=0.9.0
13647 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13648 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13649 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13651 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13652 echo "$as_me:$LINENO: result: yes" >&5
13653 echo "${ECHO_T}yes" >&6
13654 succeeded=yes
13656 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13657 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13658 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13659 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13660 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13662 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13663 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13664 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13665 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13666 echo "${ECHO_T}$LIBART_LIBS" >&6
13667 else
13668 LIBART_CFLAGS=""
13669 LIBART_LIBS=""
13670 ## If we have a custom action on failure, don't print errors, but
13671 ## do set a variable so people can do so.
13672 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13673 echo $LIBART_PKG_ERRORS
13678 else
13679 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13680 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13684 if test $succeeded = yes; then
13686 else
13687 { { 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
13688 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;}
13689 { (exit 1); exit 1; }; }
13695 # We require the XTest Extension to support java.awt.Robot.
13696 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13697 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13698 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701 ac_check_lib_save_LIBS=$LIBS
13702 LIBS="-lXtst ${X_LIBS} $LIBS"
13703 if test x$gcc_no_link = xyes; then
13704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13706 { (exit 1); exit 1; }; }
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h. */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13715 /* Override any gcc2 internal prototype to avoid an error. */
13716 #ifdef __cplusplus
13717 extern "C"
13718 #endif
13719 /* We use char because int might match the return type of a gcc2
13720 builtin and then its argument prototype would still apply. */
13721 char XTestQueryExtension ();
13723 main ()
13725 XTestQueryExtension ();
13727 return 0;
13729 _ACEOF
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest$ac_exeext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_lib_Xtst_XTestQueryExtension=yes
13753 else
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ac_cv_lib_Xtst_XTestQueryExtension=no
13759 rm -f conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13763 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13764 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13765 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13766 true
13767 else
13768 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13769 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13770 { (exit 1); exit 1; }; }
13775 # On Solaris, and maybe other architectures, the Boehm collector
13776 # requires -ldl.
13777 if test "$GC" = boehm; then
13778 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13779 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13780 if test "${ac_cv_lib_dl_main+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783 ac_check_lib_save_LIBS=$LIBS
13784 LIBS="-ldl $LIBS"
13785 if test x$gcc_no_link = xyes; then
13786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13788 { (exit 1); exit 1; }; }
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13799 main ()
13801 main ();
13803 return 0;
13805 _ACEOF
13806 rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13808 (eval $ac_link) 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_lib_dl_main=yes
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 ac_cv_lib_dl_main=no
13835 rm -f conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13840 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13841 if test $ac_cv_lib_dl_main = yes; then
13842 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13848 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13849 case $build in
13850 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13851 *) CLASSPATH_SEPARATOR=':' ;;
13852 esac
13855 # We must search the source tree for java.lang, since we still don't
13856 # have libgcj.jar nor java/lang/*.class
13857 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13858 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13860 # Since some classes depend on this one, we need its source available
13861 # before we can do any GCJ compilation test :-(
13862 if test ! -f gnu/classpath/Configuration.java; then
13863 test -d gnu || mkdir gnu
13864 test -d gnu/classpath || mkdir gnu/classpath
13865 # Note that it is not crucial that all the values here be correct.
13866 sed -e "s,@prefix@,$prefix," \
13867 -e "s,@VERSION@,$VERSION," \
13868 -e "s,@LIBDEBUG@,false," \
13869 -e "s,@INIT_LOAD_LIBRARY@,false," \
13870 -e "s,@@,$LIBGCJDEBUG," \
13871 -e "s,@default_toolkit@,$TOOLKIT," \
13872 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
13873 -e "s,@GTK_CAIRO_ENABLED@,false," \
13874 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
13875 > gnu/classpath/Configuration.java
13876 # We do not want to redirect the output of the grep below to /dev/null,
13877 # but we add /dev/null to the input list so that grep will print the
13878 # filename of Configuration.java in case it finds any matches.
13879 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
13880 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13881 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13882 { (exit 1); exit 1; }; }
13886 if test -n "$ac_tool_prefix"; then
13887 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13888 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13889 echo "$as_me:$LINENO: checking for $ac_word" >&5
13890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13891 if test "${ac_cv_prog_GCJ+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894 if test -n "$GCJ"; then
13895 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13896 else
13897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898 for as_dir in $PATH
13900 IFS=$as_save_IFS
13901 test -z "$as_dir" && as_dir=.
13902 for ac_exec_ext in '' $ac_executable_extensions; do
13903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13904 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13906 break 2
13908 done
13909 done
13913 GCJ=$ac_cv_prog_GCJ
13914 if test -n "$GCJ"; then
13915 echo "$as_me:$LINENO: result: $GCJ" >&5
13916 echo "${ECHO_T}$GCJ" >&6
13917 else
13918 echo "$as_me:$LINENO: result: no" >&5
13919 echo "${ECHO_T}no" >&6
13923 if test -z "$ac_cv_prog_GCJ"; then
13924 ac_ct_GCJ=$GCJ
13925 # Extract the first word of "gcj", so it can be a program name with args.
13926 set dummy gcj; ac_word=$2
13927 echo "$as_me:$LINENO: checking for $ac_word" >&5
13928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13929 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932 if test -n "$ac_ct_GCJ"; then
13933 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13934 else
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $PATH
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
13941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13942 ac_cv_prog_ac_ct_GCJ="gcj"
13943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13946 done
13947 done
13949 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13952 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13953 if test -n "$ac_ct_GCJ"; then
13954 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13955 echo "${ECHO_T}$ac_ct_GCJ" >&6
13956 else
13957 echo "$as_me:$LINENO: result: no" >&5
13958 echo "${ECHO_T}no" >&6
13961 GCJ=$ac_ct_GCJ
13962 else
13963 GCJ="$ac_cv_prog_GCJ"
13966 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13971 # Now remove it.
13972 rm -f gnu/classpath/Configuration.java
13974 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13976 echo "$as_me:$LINENO: checking for void *" >&5
13977 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13978 if test "${ac_cv_type_void_p+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 else
13981 cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h. */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 $ac_includes_default
13989 main ()
13991 if ((void * *) 0)
13992 return 0;
13993 if (sizeof (void *))
13994 return 0;
13996 return 0;
13998 _ACEOF
13999 rm -f conftest.$ac_objext
14000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001 (eval $ac_compile) 2>conftest.er1
14002 ac_status=$?
14003 grep -v '^ *+' conftest.er1 >conftest.err
14004 rm -f conftest.er1
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -z "$ac_c_werror_flag"
14009 || test ! -s conftest.err'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; } &&
14015 { ac_try='test -s conftest.$ac_objext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 ac_cv_type_void_p=yes
14022 else
14023 echo "$as_me: failed program was:" >&5
14024 sed 's/^/| /' conftest.$ac_ext >&5
14026 ac_cv_type_void_p=no
14028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14030 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14031 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14033 echo "$as_me:$LINENO: checking size of void *" >&5
14034 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14035 if test "${ac_cv_sizeof_void_p+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038 if test "$ac_cv_type_void_p" = yes; then
14039 # The cast to unsigned long works around a bug in the HP C Compiler
14040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14042 # This bug is HP SR number 8606223364.
14043 if test "$cross_compiling" = yes; then
14044 # Depending upon the size, compute the lo and hi bounds.
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 $ac_includes_default
14053 main ()
14055 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14056 test_array [0] = 0
14059 return 0;
14061 _ACEOF
14062 rm -f conftest.$ac_objext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14064 (eval $ac_compile) 2>conftest.er1
14065 ac_status=$?
14066 grep -v '^ *+' conftest.er1 >conftest.err
14067 rm -f conftest.er1
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
14071 { ac_try='test -z "$ac_c_werror_flag"
14072 || test ! -s conftest.err'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; } &&
14078 { ac_try='test -s conftest.$ac_objext'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 ac_lo=0 ac_mid=0
14085 while :; do
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 $ac_includes_default
14094 main ()
14096 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14097 test_array [0] = 0
14100 return 0;
14102 _ACEOF
14103 rm -f conftest.$ac_objext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14105 (eval $ac_compile) 2>conftest.er1
14106 ac_status=$?
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -z "$ac_c_werror_flag"
14113 || test ! -s conftest.err'
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); }; } &&
14119 { ac_try='test -s conftest.$ac_objext'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 ac_hi=$ac_mid; break
14126 else
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 ac_lo=`expr $ac_mid + 1`
14131 if test $ac_lo -le $ac_mid; then
14132 ac_lo= ac_hi=
14133 break
14135 ac_mid=`expr 2 '*' $ac_mid + 1`
14137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14138 done
14139 else
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h. */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 $ac_includes_default
14151 main ()
14153 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14154 test_array [0] = 0
14157 return 0;
14159 _ACEOF
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162 (eval $ac_compile) 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag"
14170 || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest.$ac_objext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_hi=-1 ac_mid=-1
14183 while :; do
14184 cat >conftest.$ac_ext <<_ACEOF
14185 /* confdefs.h. */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14190 $ac_includes_default
14192 main ()
14194 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14195 test_array [0] = 0
14198 return 0;
14200 _ACEOF
14201 rm -f conftest.$ac_objext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14203 (eval $ac_compile) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -z "$ac_c_werror_flag"
14211 || test ! -s conftest.err'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 ac_lo=$ac_mid; break
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_hi=`expr '(' $ac_mid ')' - 1`
14229 if test $ac_mid -le $ac_hi; then
14230 ac_lo= ac_hi=
14231 break
14233 ac_mid=`expr 2 '*' $ac_mid`
14235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14236 done
14237 else
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 ac_lo= ac_hi=
14243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14246 # Binary search between lo and hi bounds.
14247 while test "x$ac_lo" != "x$ac_hi"; do
14248 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h. */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14257 main ()
14259 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14260 test_array [0] = 0
14263 return 0;
14265 _ACEOF
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268 (eval $ac_compile) 2>conftest.er1
14269 ac_status=$?
14270 grep -v '^ *+' conftest.er1 >conftest.err
14271 rm -f conftest.er1
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -z "$ac_c_werror_flag"
14276 || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest.$ac_objext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 ac_hi=$ac_mid
14289 else
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 ac_lo=`expr '(' $ac_mid ')' + 1`
14295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14296 done
14297 case $ac_lo in
14298 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14299 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14300 See \`config.log' for more details." >&5
14301 echo "$as_me: error: cannot compute sizeof (void *), 77
14302 See \`config.log' for more details." >&2;}
14303 { (exit 1); exit 1; }; } ;;
14304 esac
14305 else
14306 if test "$cross_compiling" = yes; then
14307 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14308 See \`config.log' for more details." >&5
14309 echo "$as_me: error: cannot run test program while cross compiling
14310 See \`config.log' for more details." >&2;}
14311 { (exit 1); exit 1; }; }
14312 else
14313 cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h. */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 $ac_includes_default
14320 long longval () { return (long) (sizeof (void *)); }
14321 unsigned long ulongval () { return (long) (sizeof (void *)); }
14322 #include <stdio.h>
14323 #include <stdlib.h>
14325 main ()
14328 FILE *f = fopen ("conftest.val", "w");
14329 if (! f)
14330 exit (1);
14331 if (((long) (sizeof (void *))) < 0)
14333 long i = longval ();
14334 if (i != ((long) (sizeof (void *))))
14335 exit (1);
14336 fprintf (f, "%ld\n", i);
14338 else
14340 unsigned long i = ulongval ();
14341 if (i != ((long) (sizeof (void *))))
14342 exit (1);
14343 fprintf (f, "%lu\n", i);
14345 exit (ferror (f) || fclose (f) != 0);
14348 return 0;
14350 _ACEOF
14351 rm -f conftest$ac_exeext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14353 (eval $ac_link) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14362 ac_cv_sizeof_void_p=`cat conftest.val`
14363 else
14364 echo "$as_me: program exited with status $ac_status" >&5
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14368 ( exit $ac_status )
14369 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14370 See \`config.log' for more details." >&5
14371 echo "$as_me: error: cannot compute sizeof (void *), 77
14372 See \`config.log' for more details." >&2;}
14373 { (exit 1); exit 1; }; }
14375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14378 rm -f conftest.val
14379 else
14380 ac_cv_sizeof_void_p=0
14383 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14384 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14385 cat >>confdefs.h <<_ACEOF
14386 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14387 _ACEOF
14391 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14392 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14393 if test "${ac_cv_c_bigendian+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 else
14396 # See if sys/param.h defines the BYTE_ORDER macro.
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h. */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 #include <sys/types.h>
14404 #include <sys/param.h>
14407 main ()
14409 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14410 bogus endian macros
14411 #endif
14414 return 0;
14416 _ACEOF
14417 rm -f conftest.$ac_objext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419 (eval $ac_compile) 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
14426 { ac_try='test -z "$ac_c_werror_flag"
14427 || test ! -s conftest.err'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; } &&
14433 { ac_try='test -s conftest.$ac_objext'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 # It does; now see whether it defined to BIG_ENDIAN or not.
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h. */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 #include <sys/types.h>
14447 #include <sys/param.h>
14450 main ()
14452 #if BYTE_ORDER != BIG_ENDIAN
14453 not big endian
14454 #endif
14457 return 0;
14459 _ACEOF
14460 rm -f conftest.$ac_objext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462 (eval $ac_compile) 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_c_bigendian=yes
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_cv_c_bigendian=no
14489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14490 else
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 # It does not; compile a test program.
14495 if test "$cross_compiling" = yes; then
14496 # try to guess the endianness by grepping values into an object file
14497 ac_cv_c_bigendian=unknown
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14505 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14506 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14507 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14508 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14509 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14511 main ()
14513 _ascii (); _ebcdic ();
14515 return 0;
14517 _ACEOF
14518 rm -f conftest.$ac_objext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14520 (eval $ac_compile) 2>conftest.er1
14521 ac_status=$?
14522 grep -v '^ *+' conftest.er1 >conftest.err
14523 rm -f conftest.er1
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
14527 { ac_try='test -z "$ac_c_werror_flag"
14528 || test ! -s conftest.err'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14541 ac_cv_c_bigendian=yes
14543 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14544 if test "$ac_cv_c_bigendian" = unknown; then
14545 ac_cv_c_bigendian=no
14546 else
14547 # finding both strings is unlikely to happen, but who knows?
14548 ac_cv_c_bigendian=unknown
14551 else
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14557 else
14558 cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h. */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14565 main ()
14567 /* Are we little or big endian? From Harbison&Steele. */
14568 union
14570 long l;
14571 char c[sizeof (long)];
14572 } u;
14573 u.l = 1;
14574 exit (u.c[sizeof (long) - 1] == 1);
14576 _ACEOF
14577 rm -f conftest$ac_exeext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14579 (eval $ac_link) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_c_bigendian=no
14589 else
14590 echo "$as_me: program exited with status $ac_status" >&5
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 ( exit $ac_status )
14595 ac_cv_c_bigendian=yes
14597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14602 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14603 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14604 case $ac_cv_c_bigendian in
14605 yes)
14607 cat >>confdefs.h <<\_ACEOF
14608 #define WORDS_BIGENDIAN 1
14609 _ACEOF
14614 { { echo "$as_me:$LINENO: error: unknown endianness
14615 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14616 echo "$as_me: error: unknown endianness
14617 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14618 { (exit 1); exit 1; }; } ;;
14619 esac
14622 ZLIBS=
14623 SYS_ZLIBS=
14624 ZINCS=
14626 if test -z "$ZLIBSPEC"; then
14627 # Use zlib from the GCC tree.
14628 ZINCS='-I$(top_srcdir)/../zlib'
14629 ZLIBS=../zlib/libzgcj_convenience.la
14630 else
14631 # System's zlib.
14632 SYS_ZLIBS="$ZLIBSPEC"
14645 if test "$NATIVE" = yes; then
14646 NATIVE_TRUE=
14647 NATIVE_FALSE='#'
14648 else
14649 NATIVE_TRUE='#'
14650 NATIVE_FALSE=
14655 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14656 NEEDS_DATA_START_TRUE=
14657 NEEDS_DATA_START_FALSE='#'
14658 else
14659 NEEDS_DATA_START_TRUE='#'
14660 NEEDS_DATA_START_FALSE=
14665 # Process the option "--enable-version-specific-runtime-libs"
14666 # Calculate toolexeclibdir
14667 case ${version_specific_libs} in
14668 yes)
14669 # Need the gcc compiler version to know where to install libraries
14670 # and header files if --enable-version-specific-runtime-libs option
14671 # is selected.
14672 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14673 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14674 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14675 toolexeclibdir=$toolexecmainlibdir
14678 if test -n "$with_cross_host" &&
14679 test x"$with_cross_host" != x"no"; then
14680 # Install a library built with a cross compiler in tooldir, not libdir.
14681 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14682 toolexecmainlibdir='$(toolexecdir)/lib'
14683 else
14684 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14685 toolexecmainlibdir='$(libdir)'
14687 multi_os_directory=`$CC -print-multi-os-directory`
14688 case $multi_os_directory in
14689 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14690 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14691 esac
14693 esac
14698 # Determine where the standard .db file is found.
14699 multi_os_directory=`$CC -print-multi-os-directory`
14700 case $multi_os_directory in
14701 .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
14702 *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
14703 esac
14706 # Determine gcj version number.
14707 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14708 GCJVERSION=$gcjversion
14711 cat >>confdefs.h <<_ACEOF
14712 #define GCJVERSION "$GCJVERSION"
14713 _ACEOF
14717 cat >>confdefs.h <<\_ACEOF
14718 #define JV_VERSION "1.4.2"
14719 _ACEOF
14722 cat >>confdefs.h <<\_ACEOF
14723 #define JV_API_VERSION "1.4"
14724 _ACEOF
14728 case "${with_gxx_include_dir}" in
14729 yes)
14730 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14731 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14732 { (exit 1); exit 1; }; }
14734 no | "")
14735 case "${enable_version_specific_runtime_libs}" in
14736 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14738 libstdcxx_incdir='c++/$(gcc_version)'
14739 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14740 esac ;;
14741 *) gxx_include_dir=${with_gxx_include_dir} ;;
14742 esac
14747 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14748 # On that system, sys/ioctl.h will not include sys/filio.h unless
14749 # BSD_COMP is defined; just including sys/filio.h is simpler.
14750 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14751 # for now. If you change this, you also must update natFile.cc.
14772 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14773 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14774 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14775 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14776 dirent.h
14778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14780 echo "$as_me:$LINENO: checking for $ac_header" >&5
14781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14787 else
14788 # Is the header compilable?
14789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14791 cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h. */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 $ac_includes_default
14798 #include <$ac_header>
14799 _ACEOF
14800 rm -f conftest.$ac_objext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802 (eval $ac_compile) 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -z "$ac_c_werror_flag"
14810 || test ! -s conftest.err'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest.$ac_objext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_header_compiler=yes
14823 else
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14827 ac_header_compiler=no
14829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 echo "${ECHO_T}$ac_header_compiler" >&6
14833 # Is the header present?
14834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #include <$ac_header>
14843 _ACEOF
14844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } >/dev/null; then
14852 if test -s conftest.err; then
14853 ac_cpp_err=$ac_c_preproc_warn_flag
14854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14855 else
14856 ac_cpp_err=
14858 else
14859 ac_cpp_err=yes
14861 if test -z "$ac_cpp_err"; then
14862 ac_header_preproc=yes
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 ac_header_preproc=no
14869 rm -f conftest.err conftest.$ac_ext
14870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14871 echo "${ECHO_T}$ac_header_preproc" >&6
14873 # So? What about this header?
14874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14875 yes:no: )
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14880 ac_header_preproc=yes
14882 no:yes:* )
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14896 cat <<\_ASBOX
14897 ## ---------------------------------- ##
14898 ## Report this to the libjava lists. ##
14899 ## ---------------------------------- ##
14900 _ASBOX
14902 sed "s/^/$as_me: WARNING: /" >&2
14904 esac
14905 echo "$as_me:$LINENO: checking for $ac_header" >&5
14906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910 eval "$as_ac_Header=\$ac_header_preproc"
14912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14917 cat >>confdefs.h <<_ACEOF
14918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14919 _ACEOF
14923 done
14926 for ac_header in inttypes.h
14928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14930 echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14937 else
14938 # Is the header compilable?
14939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h. */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 $ac_includes_default
14948 #include <$ac_header>
14949 _ACEOF
14950 rm -f conftest.$ac_objext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952 (eval $ac_compile) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag"
14960 || test ! -s conftest.err'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest.$ac_objext'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 ac_header_compiler=yes
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 ac_header_compiler=no
14979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14981 echo "${ECHO_T}$ac_header_compiler" >&6
14983 # Is the header present?
14984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 #include <$ac_header>
14993 _ACEOF
14994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } >/dev/null; then
15002 if test -s conftest.err; then
15003 ac_cpp_err=$ac_c_preproc_warn_flag
15004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15005 else
15006 ac_cpp_err=
15008 else
15009 ac_cpp_err=yes
15011 if test -z "$ac_cpp_err"; then
15012 ac_header_preproc=yes
15013 else
15014 echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15017 ac_header_preproc=no
15019 rm -f conftest.err conftest.$ac_ext
15020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15021 echo "${ECHO_T}$ac_header_preproc" >&6
15023 # So? What about this header?
15024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15025 yes:no: )
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15030 ac_header_preproc=yes
15032 no:yes:* )
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15046 cat <<\_ASBOX
15047 ## ---------------------------------- ##
15048 ## Report this to the libjava lists. ##
15049 ## ---------------------------------- ##
15050 _ASBOX
15052 sed "s/^/$as_me: WARNING: /" >&2
15054 esac
15055 echo "$as_me:$LINENO: checking for $ac_header" >&5
15056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060 eval "$as_ac_Header=\$ac_header_preproc"
15062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15067 cat >>confdefs.h <<_ACEOF
15068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15069 _ACEOF
15072 cat >>confdefs.h <<\_ACEOF
15073 #define HAVE_INTTYPES_H 1
15074 _ACEOF
15077 cat >>confdefs.h <<\_ACEOF
15078 #define JV_HAVE_INTTYPES_H 1
15079 _ACEOF
15084 done
15086 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15087 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15088 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h. */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 #include <sys/types.h>
15098 #include <sys/wait.h>
15099 #ifndef WEXITSTATUS
15100 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15101 #endif
15102 #ifndef WIFEXITED
15103 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15104 #endif
15107 main ()
15109 int s;
15110 wait (&s);
15111 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15113 return 0;
15115 _ACEOF
15116 rm -f conftest.$ac_objext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_c_werror_flag"
15126 || test ! -s conftest.err'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_cv_header_sys_wait_h=yes
15139 else
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 ac_cv_header_sys_wait_h=no
15145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15147 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15148 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15149 if test $ac_cv_header_sys_wait_h = yes; then
15151 cat >>confdefs.h <<\_ACEOF
15152 #define HAVE_SYS_WAIT_H 1
15153 _ACEOF
15158 echo "$as_me:$LINENO: checking for ssize_t" >&5
15159 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15160 if test "${ac_cv_type_ssize_t+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163 cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h. */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 $ac_includes_default
15171 main ()
15173 if ((ssize_t *) 0)
15174 return 0;
15175 if (sizeof (ssize_t))
15176 return 0;
15178 return 0;
15180 _ACEOF
15181 rm -f conftest.$ac_objext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag"
15191 || test ! -s conftest.err'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; } &&
15197 { ac_try='test -s conftest.$ac_objext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_cv_type_ssize_t=yes
15204 else
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 ac_cv_type_ssize_t=no
15210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15212 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15213 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15214 if test $ac_cv_type_ssize_t = yes; then
15216 else
15218 cat >>confdefs.h <<_ACEOF
15219 #define ssize_t int
15220 _ACEOF
15225 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15226 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 #include <sys/types.h>
15234 #if STDC_HEADERS
15235 #include <stdlib.h>
15236 #include <stddef.h>
15237 #endif
15238 #if HAVE_NETINET_IN_H
15239 #include <netinet/in.h>
15240 #endif
15242 main ()
15244 in_addr_t foo;
15246 return 0;
15248 _ACEOF
15249 rm -f conftest.$ac_objext
15250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15251 (eval $ac_compile) 2>conftest.er1
15252 ac_status=$?
15253 grep -v '^ *+' conftest.er1 >conftest.err
15254 rm -f conftest.er1
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } &&
15258 { ac_try='test -z "$ac_c_werror_flag"
15259 || test ! -s conftest.err'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; } &&
15265 { ac_try='test -s conftest.$ac_objext'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15272 cat >>confdefs.h <<\_ACEOF
15273 #define HAVE_IN_ADDR_T 1
15274 _ACEOF
15276 echo "$as_me:$LINENO: result: yes" >&5
15277 echo "${ECHO_T}yes" >&6
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 echo "$as_me:$LINENO: result: no" >&5
15283 echo "${ECHO_T}no" >&6
15285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15288 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <netinet/in.h>
15297 main ()
15299 struct ip_mreq mreq;
15301 return 0;
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15306 (eval $ac_compile) 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag"
15314 || test ! -s conftest.err'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_STRUCT_IP_MREQ 1
15329 _ACEOF
15331 echo "$as_me:$LINENO: result: yes" >&5
15332 echo "${ECHO_T}yes" >&6
15333 else
15334 echo "$as_me: failed program was:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15337 echo "$as_me:$LINENO: result: no" >&5
15338 echo "${ECHO_T}no" >&6
15340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15342 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15343 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h. */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 #include <netinet/in.h>
15352 main ()
15354 struct ipv6_mreq mreq6;
15356 return 0;
15358 _ACEOF
15359 rm -f conftest.$ac_objext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15361 (eval $ac_compile) 2>conftest.er1
15362 ac_status=$?
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
15368 { ac_try='test -z "$ac_c_werror_flag"
15369 || test ! -s conftest.err'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest.$ac_objext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE_STRUCT_IPV6_MREQ 1
15384 _ACEOF
15386 echo "$as_me:$LINENO: result: yes" >&5
15387 echo "${ECHO_T}yes" >&6
15388 else
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 echo "$as_me:$LINENO: result: no" >&5
15393 echo "${ECHO_T}no" >&6
15395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15397 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15398 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h. */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 #include <netinet/in.h>
15407 main ()
15409 struct sockaddr_in6 addr6;
15411 return 0;
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416 (eval $ac_compile) 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag"
15424 || test ! -s conftest.err'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE_INET6 1
15439 _ACEOF
15441 echo "$as_me:$LINENO: result: yes" >&5
15442 echo "${ECHO_T}yes" >&6
15443 else
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 echo "$as_me:$LINENO: result: no" >&5
15448 echo "${ECHO_T}no" >&6
15450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15452 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15453 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h. */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #define _POSIX_PII_SOCKET
15461 #include <sys/types.h>
15462 #include <sys/socket.h>
15464 main ()
15466 socklen_t x = 5;
15468 return 0;
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473 (eval $ac_compile) 2>conftest.er1
15474 ac_status=$?
15475 grep -v '^ *+' conftest.er1 >conftest.err
15476 rm -f conftest.er1
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_c_werror_flag"
15481 || test ! -s conftest.err'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; } &&
15487 { ac_try='test -s conftest.$ac_objext'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15494 cat >>confdefs.h <<\_ACEOF
15495 #define HAVE_SOCKLEN_T 1
15496 _ACEOF
15498 echo "$as_me:$LINENO: result: yes" >&5
15499 echo "${ECHO_T}yes" >&6
15500 else
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 echo "$as_me:$LINENO: result: no" >&5
15505 echo "${ECHO_T}no" >&6
15507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15509 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15510 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h. */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 #include <time.h>
15519 main ()
15521 struct tm tim; tim.tm_gmtoff = 0;
15523 return 0;
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15549 cat >>confdefs.h <<\_ACEOF
15550 #define STRUCT_TM_HAS_GMTOFF 1
15551 _ACEOF
15553 echo "$as_me:$LINENO: result: yes" >&5
15554 echo "${ECHO_T}yes" >&6
15555 else
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 echo "$as_me:$LINENO: result: no" >&5
15560 echo "${ECHO_T}no" >&6
15561 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15562 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 #include <time.h>
15571 main ()
15573 void i(){long z2 = 2*timezone;}
15575 return 0;
15577 _ACEOF
15578 rm -f conftest.$ac_objext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
15587 { ac_try='test -z "$ac_c_werror_flag"
15588 || test ! -s conftest.err'
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15601 cat >>confdefs.h <<\_ACEOF
15602 #define HAVE_TIMEZONE 1
15603 _ACEOF
15605 echo "$as_me:$LINENO: result: yes" >&5
15606 echo "${ECHO_T}yes" >&6
15607 else
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 echo "$as_me:$LINENO: result: no" >&5
15612 echo "${ECHO_T}no" >&6
15613 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15614 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15615 cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h. */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 #include <time.h>
15623 main ()
15625 long z2 = _timezone;
15627 return 0;
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15653 cat >>confdefs.h <<\_ACEOF
15654 #define HAVE_UNDERSCORE_TIMEZONE 1
15655 _ACEOF
15657 echo "$as_me:$LINENO: result: yes" >&5
15658 echo "${ECHO_T}yes" >&6
15659 else
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15663 echo "$as_me:$LINENO: result: no" >&5
15664 echo "${ECHO_T}no" >&6
15666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15673 # for constant arguments. Useless!
15674 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15675 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15676 if test "${ac_cv_working_alloca_h+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 else
15679 if test x$gcc_no_link = xyes; then
15680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15682 { (exit 1); exit 1; }; }
15684 cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h. */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15690 #include <alloca.h>
15692 main ()
15694 char *p = (char *) alloca (2 * sizeof (int));
15696 return 0;
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15701 (eval $ac_link) 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -z "$ac_c_werror_flag"
15709 || test ! -s conftest.err'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; } &&
15715 { ac_try='test -s conftest$ac_exeext'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_working_alloca_h=yes
15722 else
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15726 ac_cv_working_alloca_h=no
15728 rm -f conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15731 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15732 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15733 if test $ac_cv_working_alloca_h = yes; then
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_ALLOCA_H 1
15737 _ACEOF
15741 echo "$as_me:$LINENO: checking for alloca" >&5
15742 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15743 if test "${ac_cv_func_alloca_works+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746 if test x$gcc_no_link = xyes; then
15747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15749 { (exit 1); exit 1; }; }
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 #ifdef __GNUC__
15758 # define alloca __builtin_alloca
15759 #else
15760 # ifdef _MSC_VER
15761 # include <malloc.h>
15762 # define alloca _alloca
15763 # else
15764 # if HAVE_ALLOCA_H
15765 # include <alloca.h>
15766 # else
15767 # ifdef _AIX
15768 #pragma alloca
15769 # else
15770 # ifndef alloca /* predefined by HP cc +Olibcalls */
15771 char *alloca ();
15772 # endif
15773 # endif
15774 # endif
15775 # endif
15776 #endif
15779 main ()
15781 char *p = (char *) alloca (1);
15783 return 0;
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788 (eval $ac_link) 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_cv_func_alloca_works=yes
15809 else
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_cv_func_alloca_works=no
15815 rm -f conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15818 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15819 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15821 if test $ac_cv_func_alloca_works = yes; then
15823 cat >>confdefs.h <<\_ACEOF
15824 #define HAVE_ALLOCA 1
15825 _ACEOF
15827 else
15828 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15829 # that cause trouble. Some versions do not even contain alloca or
15830 # contain a buggy version. If you still want to use their alloca,
15831 # use ar to extract alloca.o from them instead of compiling alloca.c.
15833 ALLOCA=alloca.$ac_objext
15835 cat >>confdefs.h <<\_ACEOF
15836 #define C_ALLOCA 1
15837 _ACEOF
15840 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15841 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15842 if test "${ac_cv_os_cray+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h. */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 #if defined(CRAY) && ! defined(CRAY2)
15852 webecray
15853 #else
15854 wenotbecray
15855 #endif
15857 _ACEOF
15858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15859 $EGREP "webecray" >/dev/null 2>&1; then
15860 ac_cv_os_cray=yes
15861 else
15862 ac_cv_os_cray=no
15864 rm -f conftest*
15867 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15868 echo "${ECHO_T}$ac_cv_os_cray" >&6
15869 if test $ac_cv_os_cray = yes; then
15870 for ac_func in _getb67 GETB67 getb67; do
15871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15872 echo "$as_me:$LINENO: checking for $ac_func" >&5
15873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15874 if eval "test \"\${$as_ac_var+set}\" = set"; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877 if test x$gcc_no_link = xyes; then
15878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15880 { (exit 1); exit 1; }; }
15882 cat >conftest.$ac_ext <<_ACEOF
15883 /* confdefs.h. */
15884 _ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15890 #define $ac_func innocuous_$ac_func
15892 /* System header to define __stub macros and hopefully few prototypes,
15893 which can conflict with char $ac_func (); below.
15894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15895 <limits.h> exists even on freestanding compilers. */
15897 #ifdef __STDC__
15898 # include <limits.h>
15899 #else
15900 # include <assert.h>
15901 #endif
15903 #undef $ac_func
15905 /* Override any gcc2 internal prototype to avoid an error. */
15906 #ifdef __cplusplus
15907 extern "C"
15909 #endif
15910 /* We use char because int might match the return type of a gcc2
15911 builtin and then its argument prototype would still apply. */
15912 char $ac_func ();
15913 /* The GNU C library defines this for functions which it implements
15914 to always fail with ENOSYS. Some functions are actually named
15915 something starting with __ and the normal name is an alias. */
15916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15917 choke me
15918 #else
15919 char (*f) () = $ac_func;
15920 #endif
15921 #ifdef __cplusplus
15923 #endif
15926 main ()
15928 return f != $ac_func;
15930 return 0;
15932 _ACEOF
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935 (eval $ac_link) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag"
15943 || test ! -s conftest.err'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest$ac_exeext'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 eval "$as_ac_var=yes"
15956 else
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 eval "$as_ac_var=no"
15962 rm -f conftest.err conftest.$ac_objext \
15963 conftest$ac_exeext conftest.$ac_ext
15965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15967 if test `eval echo '${'$as_ac_var'}'` = yes; then
15969 cat >>confdefs.h <<_ACEOF
15970 #define CRAY_STACKSEG_END $ac_func
15971 _ACEOF
15973 break
15976 done
15979 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15980 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15981 if test "${ac_cv_c_stack_direction+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984 if test "$cross_compiling" = yes; then
15985 ac_cv_c_stack_direction=0
15986 else
15987 cat >conftest.$ac_ext <<_ACEOF
15988 /* confdefs.h. */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15994 find_stack_direction ()
15996 static char *addr = 0;
15997 auto char dummy;
15998 if (addr == 0)
16000 addr = &dummy;
16001 return find_stack_direction ();
16003 else
16004 return (&dummy > addr) ? 1 : -1;
16008 main ()
16010 exit (find_stack_direction () < 0);
16012 _ACEOF
16013 rm -f conftest$ac_exeext
16014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16015 (eval $ac_link) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_cv_c_stack_direction=1
16025 else
16026 echo "$as_me: program exited with status $ac_status" >&5
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 ( exit $ac_status )
16031 ac_cv_c_stack_direction=-1
16033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16036 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16037 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16039 cat >>confdefs.h <<_ACEOF
16040 #define STACK_DIRECTION $ac_cv_c_stack_direction
16041 _ACEOF
16046 if test x$gcc_no_link = xyes; then
16047 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
16048 ac_cv_func_mmap_fixed_mapped=no
16051 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
16054 for ac_header in stdlib.h unistd.h
16056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16058 echo "$as_me:$LINENO: checking for $ac_header" >&5
16059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16065 else
16066 # Is the header compilable?
16067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16069 cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h. */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 $ac_includes_default
16076 #include <$ac_header>
16077 _ACEOF
16078 rm -f conftest.$ac_objext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16080 (eval $ac_compile) 2>conftest.er1
16081 ac_status=$?
16082 grep -v '^ *+' conftest.er1 >conftest.err
16083 rm -f conftest.er1
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } &&
16087 { ac_try='test -z "$ac_c_werror_flag"
16088 || test ! -s conftest.err'
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; } &&
16094 { ac_try='test -s conftest.$ac_objext'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_header_compiler=yes
16101 else
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 ac_header_compiler=no
16107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16109 echo "${ECHO_T}$ac_header_compiler" >&6
16111 # Is the header present?
16112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h. */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 #include <$ac_header>
16121 _ACEOF
16122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16124 ac_status=$?
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } >/dev/null; then
16130 if test -s conftest.err; then
16131 ac_cpp_err=$ac_c_preproc_warn_flag
16132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16133 else
16134 ac_cpp_err=
16136 else
16137 ac_cpp_err=yes
16139 if test -z "$ac_cpp_err"; then
16140 ac_header_preproc=yes
16141 else
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ac_header_preproc=no
16147 rm -f conftest.err conftest.$ac_ext
16148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16149 echo "${ECHO_T}$ac_header_preproc" >&6
16151 # So? What about this header?
16152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16153 yes:no: )
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16158 ac_header_preproc=yes
16160 no:yes:* )
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16174 cat <<\_ASBOX
16175 ## ---------------------------------- ##
16176 ## Report this to the libjava lists. ##
16177 ## ---------------------------------- ##
16178 _ASBOX
16180 sed "s/^/$as_me: WARNING: /" >&2
16182 esac
16183 echo "$as_me:$LINENO: checking for $ac_header" >&5
16184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188 eval "$as_ac_Header=\$ac_header_preproc"
16190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16195 cat >>confdefs.h <<_ACEOF
16196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16197 _ACEOF
16201 done
16204 for ac_func in getpagesize
16206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16207 echo "$as_me:$LINENO: checking for $ac_func" >&5
16208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16209 if eval "test \"\${$as_ac_var+set}\" = set"; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212 if test x$gcc_no_link = xyes; then
16213 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16215 { (exit 1); exit 1; }; }
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h. */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16225 #define $ac_func innocuous_$ac_func
16227 /* System header to define __stub macros and hopefully few prototypes,
16228 which can conflict with char $ac_func (); below.
16229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16230 <limits.h> exists even on freestanding compilers. */
16232 #ifdef __STDC__
16233 # include <limits.h>
16234 #else
16235 # include <assert.h>
16236 #endif
16238 #undef $ac_func
16240 /* Override any gcc2 internal prototype to avoid an error. */
16241 #ifdef __cplusplus
16242 extern "C"
16244 #endif
16245 /* We use char because int might match the return type of a gcc2
16246 builtin and then its argument prototype would still apply. */
16247 char $ac_func ();
16248 /* The GNU C library defines this for functions which it implements
16249 to always fail with ENOSYS. Some functions are actually named
16250 something starting with __ and the normal name is an alias. */
16251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16252 choke me
16253 #else
16254 char (*f) () = $ac_func;
16255 #endif
16256 #ifdef __cplusplus
16258 #endif
16261 main ()
16263 return f != $ac_func;
16265 return 0;
16267 _ACEOF
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16270 (eval $ac_link) 2>conftest.er1
16271 ac_status=$?
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try='test -z "$ac_c_werror_flag"
16278 || test ! -s conftest.err'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest$ac_exeext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 eval "$as_ac_var=yes"
16291 else
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 eval "$as_ac_var=no"
16297 rm -f conftest.err conftest.$ac_objext \
16298 conftest$ac_exeext conftest.$ac_ext
16300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16302 if test `eval echo '${'$as_ac_var'}'` = yes; then
16303 cat >>confdefs.h <<_ACEOF
16304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16305 _ACEOF
16308 done
16310 echo "$as_me:$LINENO: checking for working mmap" >&5
16311 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16312 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 else
16315 if test "$cross_compiling" = yes; then
16316 ac_cv_func_mmap_fixed_mapped=no
16317 else
16318 cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h. */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 $ac_includes_default
16325 /* malloc might have been renamed as rpl_malloc. */
16326 #undef malloc
16328 /* Thanks to Mike Haertel and Jim Avera for this test.
16329 Here is a matrix of mmap possibilities:
16330 mmap private not fixed
16331 mmap private fixed at somewhere currently unmapped
16332 mmap private fixed at somewhere already mapped
16333 mmap shared not fixed
16334 mmap shared fixed at somewhere currently unmapped
16335 mmap shared fixed at somewhere already mapped
16336 For private mappings, we should verify that changes cannot be read()
16337 back from the file, nor mmap's back from the file at a different
16338 address. (There have been systems where private was not correctly
16339 implemented like the infamous i386 svr4.0, and systems where the
16340 VM page cache was not coherent with the file system buffer cache
16341 like early versions of FreeBSD and possibly contemporary NetBSD.)
16342 For shared mappings, we should conversely verify that changes get
16343 propagated back to all the places they're supposed to be.
16345 Grep wants private fixed already mapped.
16346 The main things grep needs to know about mmap are:
16347 * does it exist and is it safe to write into the mmap'd area
16348 * how to use it (BSD variants) */
16350 #include <fcntl.h>
16351 #include <sys/mman.h>
16353 #if !STDC_HEADERS && !HAVE_STDLIB_H
16354 char *malloc ();
16355 #endif
16357 /* This mess was copied from the GNU getpagesize.h. */
16358 #if !HAVE_GETPAGESIZE
16359 /* Assume that all systems that can run configure have sys/param.h. */
16360 # if !HAVE_SYS_PARAM_H
16361 # define HAVE_SYS_PARAM_H 1
16362 # endif
16364 # ifdef _SC_PAGESIZE
16365 # define getpagesize() sysconf(_SC_PAGESIZE)
16366 # else /* no _SC_PAGESIZE */
16367 # if HAVE_SYS_PARAM_H
16368 # include <sys/param.h>
16369 # ifdef EXEC_PAGESIZE
16370 # define getpagesize() EXEC_PAGESIZE
16371 # else /* no EXEC_PAGESIZE */
16372 # ifdef NBPG
16373 # define getpagesize() NBPG * CLSIZE
16374 # ifndef CLSIZE
16375 # define CLSIZE 1
16376 # endif /* no CLSIZE */
16377 # else /* no NBPG */
16378 # ifdef NBPC
16379 # define getpagesize() NBPC
16380 # else /* no NBPC */
16381 # ifdef PAGESIZE
16382 # define getpagesize() PAGESIZE
16383 # endif /* PAGESIZE */
16384 # endif /* no NBPC */
16385 # endif /* no NBPG */
16386 # endif /* no EXEC_PAGESIZE */
16387 # else /* no HAVE_SYS_PARAM_H */
16388 # define getpagesize() 8192 /* punt totally */
16389 # endif /* no HAVE_SYS_PARAM_H */
16390 # endif /* no _SC_PAGESIZE */
16392 #endif /* no HAVE_GETPAGESIZE */
16395 main ()
16397 char *data, *data2, *data3;
16398 int i, pagesize;
16399 int fd;
16401 pagesize = getpagesize ();
16403 /* First, make a file with some known garbage in it. */
16404 data = (char *) malloc (pagesize);
16405 if (!data)
16406 exit (1);
16407 for (i = 0; i < pagesize; ++i)
16408 *(data + i) = rand ();
16409 umask (0);
16410 fd = creat ("conftest.mmap", 0600);
16411 if (fd < 0)
16412 exit (1);
16413 if (write (fd, data, pagesize) != pagesize)
16414 exit (1);
16415 close (fd);
16417 /* Next, try to mmap the file at a fixed address which already has
16418 something else allocated at it. If we can, also make sure that
16419 we see the same garbage. */
16420 fd = open ("conftest.mmap", O_RDWR);
16421 if (fd < 0)
16422 exit (1);
16423 data2 = (char *) malloc (2 * pagesize);
16424 if (!data2)
16425 exit (1);
16426 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16427 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16428 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16429 exit (1);
16430 for (i = 0; i < pagesize; ++i)
16431 if (*(data + i) != *(data2 + i))
16432 exit (1);
16434 /* Finally, make sure that changes to the mapped area do not
16435 percolate back to the file as seen by read(). (This is a bug on
16436 some variants of i386 svr4.0.) */
16437 for (i = 0; i < pagesize; ++i)
16438 *(data2 + i) = *(data2 + i) + 1;
16439 data3 = (char *) malloc (pagesize);
16440 if (!data3)
16441 exit (1);
16442 if (read (fd, data3, pagesize) != pagesize)
16443 exit (1);
16444 for (i = 0; i < pagesize; ++i)
16445 if (*(data + i) != *(data3 + i))
16446 exit (1);
16447 close (fd);
16448 exit (0);
16450 _ACEOF
16451 rm -f conftest$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453 (eval $ac_link) 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16459 ac_status=$?
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16462 ac_cv_func_mmap_fixed_mapped=yes
16463 else
16464 echo "$as_me: program exited with status $ac_status" >&5
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 ( exit $ac_status )
16469 ac_cv_func_mmap_fixed_mapped=no
16471 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16474 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16475 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16476 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16478 cat >>confdefs.h <<\_ACEOF
16479 #define HAVE_MMAP 1
16480 _ACEOF
16483 rm -f conftest.mmap
16487 for ac_prog in perl
16489 # Extract the first word of "$ac_prog", so it can be a program name with args.
16490 set dummy $ac_prog; ac_word=$2
16491 echo "$as_me:$LINENO: checking for $ac_word" >&5
16492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16493 if test "${ac_cv_prog_PERL+set}" = set; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496 if test -n "$PERL"; then
16497 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16498 else
16499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16500 for as_dir in $PATH
16502 IFS=$as_save_IFS
16503 test -z "$as_dir" && as_dir=.
16504 for ac_exec_ext in '' $ac_executable_extensions; do
16505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16506 ac_cv_prog_PERL="$ac_prog"
16507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16508 break 2
16510 done
16511 done
16515 PERL=$ac_cv_prog_PERL
16516 if test -n "$PERL"; then
16517 echo "$as_me:$LINENO: result: $PERL" >&5
16518 echo "${ECHO_T}$PERL" >&6
16519 else
16520 echo "$as_me:$LINENO: result: no" >&5
16521 echo "${ECHO_T}no" >&6
16524 test -n "$PERL" && break
16525 done
16526 test -n "$PERL" || PERL="false"
16529 SYSDEP_SOURCES=
16530 SIGNAL_HANDLER_AUX=
16532 case "${host}" in
16533 i?86-*-linux*)
16534 SIGNAL_HANDLER=include/i386-signal.h
16536 sparc*-sun-solaris*)
16537 SIGNAL_HANDLER=include/sparc-signal.h
16539 # ia64-*)
16540 # SYSDEP_SOURCES=sysdep/ia64.c
16541 # test -d sysdep || mkdir sysdep
16542 # ;;
16543 hppa*-*-linux*)
16544 SIGNAL_HANDLER=include/pa-signal.h
16546 ia64-*-linux*)
16547 SIGNAL_HANDLER=include/dwarf2-signal.h
16549 powerpc*-*-linux*)
16550 SIGNAL_HANDLER=include/powerpc-signal.h
16552 alpha*-*-linux*)
16553 SIGNAL_HANDLER=include/dwarf2-signal.h
16555 s390*-*-linux*)
16556 SIGNAL_HANDLER=include/s390-signal.h
16558 x86_64*-*-linux*)
16559 SIGNAL_HANDLER=include/x86_64-signal.h
16560 SIGNAL_HANDLER_AUX=include/i386-signal.h
16562 sparc*-*-linux*)
16563 SIGNAL_HANDLER=include/dwarf2-signal.h
16565 sh*-*-linux*)
16566 SIGNAL_HANDLER=include/sh-signal.h
16568 *mingw*)
16569 SIGNAL_HANDLER=include/win32-signal.h
16571 mips*-*-linux*)
16572 SIGNAL_HANDLER=include/mips-signal.h
16574 *-*-darwin*)
16575 SIGNAL_HANDLER=include/darwin-signal.h
16578 SIGNAL_HANDLER=include/default-signal.h
16580 esac
16582 # If we're using sjlj exceptions, forget what we just learned.
16583 if test "$enable_sjlj_exceptions" = yes; then
16584 SIGNAL_HANDLER=include/default-signal.h
16585 SIGNAL_HANDLER_AUX=
16590 if test -z "$SIGNAL_HANDLER_AUX"; then
16591 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16594 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16597 if test "${multilib}" = "yes"; then
16598 multilib_arg="--enable-multilib"
16599 else
16600 multilib_arg=
16603 # See if we support thread-local storage.
16605 # Check whether --enable-tls or --disable-tls was given.
16606 if test "${enable_tls+set}" = set; then
16607 enableval="$enable_tls"
16609 case "$enableval" in
16610 yes|no) ;;
16611 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16612 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16613 { (exit 1); exit 1; }; } ;;
16614 esac
16616 else
16617 enable_tls=yes
16620 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16621 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16622 if test "${have_tls+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16626 if test "$cross_compiling" = yes; then
16627 cat >conftest.$ac_ext <<_ACEOF
16628 __thread int foo;
16629 _ACEOF
16630 rm -f conftest.$ac_objext
16631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16632 (eval $ac_compile) 2>conftest.er1
16633 ac_status=$?
16634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -z "$ac_c_werror_flag"
16640 || test ! -s conftest.err'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest.$ac_objext'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 have_tls=yes
16653 else
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 have_tls=no
16659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16661 else
16662 cat >conftest.$ac_ext <<_ACEOF
16663 __thread int a; int b; int main() { return a = b; }
16664 _ACEOF
16665 rm -f conftest$ac_exeext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16667 (eval $ac_link) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 save_LDFLAGS="$LDFLAGS"
16677 LDFLAGS="-static $LDFLAGS"
16678 if test "$cross_compiling" = yes; then
16679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16680 See \`config.log' for more details." >&5
16681 echo "$as_me: error: cannot run test program while cross compiling
16682 See \`config.log' for more details." >&2;}
16683 { (exit 1); exit 1; }; }
16684 else
16685 cat >conftest.$ac_ext <<_ACEOF
16686 __thread int a; int b; int main() { return a = b; }
16687 _ACEOF
16688 rm -f conftest$ac_exeext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 have_tls=yes
16700 else
16701 echo "$as_me: program exited with status $ac_status" >&5
16702 echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 ( exit $ac_status )
16706 have_tls=no
16708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16710 LDFLAGS="$save_LDFLAGS"
16711 else
16712 echo "$as_me: program exited with status $ac_status" >&5
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ( exit $ac_status )
16717 have_tls=no
16719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16722 echo "$as_me:$LINENO: result: $have_tls" >&5
16723 echo "${ECHO_T}$have_tls" >&6
16724 if test "$enable_tls $have_tls" = "yes yes"; then
16726 cat >>confdefs.h <<\_ACEOF
16727 #define HAVE_TLS 1
16728 _ACEOF
16733 here=`${PWDCMD-pwd}`
16736 # We get this from the environment.
16739 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16742 ac_config_commands="$ac_config_commands default"
16745 cat >confcache <<\_ACEOF
16746 # This file is a shell script that caches the results of configure
16747 # tests run on this system so they can be shared between configure
16748 # scripts and configure runs, see configure's option --config-cache.
16749 # It is not useful on other systems. If it contains results you don't
16750 # want to keep, you may remove or edit it.
16752 # config.status only pays attention to the cache file if you give it
16753 # the --recheck option to rerun configure.
16755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16757 # following values.
16759 _ACEOF
16761 # The following way of writing the cache mishandles newlines in values,
16762 # but we know of no workaround that is simple, portable, and efficient.
16763 # So, don't put newlines in cache variables' values.
16764 # Ultrix sh set writes to stderr and can't be redirected directly,
16765 # and sets the high bit in the cache file unless we assign to the vars.
16767 (set) 2>&1 |
16768 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16769 *ac_space=\ *)
16770 # `set' does not quote correctly, so add quotes (double-quote
16771 # substitution turns \\\\ into \\, and sed turns \\ into \).
16772 sed -n \
16773 "s/'/'\\\\''/g;
16774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16777 # `set' quotes correctly as required by POSIX, so do not add quotes.
16778 sed -n \
16779 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16781 esac;
16783 sed '
16784 t clear
16785 : clear
16786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16787 t end
16788 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16789 : end' >>confcache
16790 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16791 if test -w $cache_file; then
16792 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16793 cat confcache >$cache_file
16794 else
16795 echo "not updating unwritable cache $cache_file"
16798 rm -f confcache
16800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16801 # Let make expand exec_prefix.
16802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16806 # trailing colons and then remove the whole line if VPATH becomes empty
16807 # (actually we leave an empty line to preserve line numbers).
16808 if test "x$srcdir" = x.; then
16809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16810 s/:*\$(srcdir):*/:/;
16811 s/:*\${srcdir}:*/:/;
16812 s/:*@srcdir@:*/:/;
16813 s/^\([^=]*=[ ]*\):*/\1/;
16814 s/:*$//;
16815 s/^[^=]*=[ ]*$//;
16819 DEFS=-DHAVE_CONFIG_H
16821 ac_libobjs=
16822 ac_ltlibobjs=
16823 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16824 # 1. Remove the extension, and $U if already installed.
16825 ac_i=`echo "$ac_i" |
16826 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16827 # 2. Add them.
16828 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16829 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16830 done
16831 LIBOBJS=$ac_libobjs
16833 LTLIBOBJS=$ac_ltlibobjs
16836 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16837 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16838 Usually this means the macro was only invoked conditionally." >&5
16839 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16840 Usually this means the macro was only invoked conditionally." >&2;}
16841 { (exit 1); exit 1; }; }
16843 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16844 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16845 Usually this means the macro was only invoked conditionally." >&5
16846 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16847 Usually this means the macro was only invoked conditionally." >&2;}
16848 { (exit 1); exit 1; }; }
16850 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16851 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16852 Usually this means the macro was only invoked conditionally." >&5
16853 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16854 Usually this means the macro was only invoked conditionally." >&2;}
16855 { (exit 1); exit 1; }; }
16857 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16858 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16859 Usually this means the macro was only invoked conditionally." >&5
16860 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16861 Usually this means the macro was only invoked conditionally." >&2;}
16862 { (exit 1); exit 1; }; }
16864 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16865 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16866 Usually this means the macro was only invoked conditionally." >&5
16867 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16868 Usually this means the macro was only invoked conditionally." >&2;}
16869 { (exit 1); exit 1; }; }
16871 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16872 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16873 Usually this means the macro was only invoked conditionally." >&5
16874 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16875 Usually this means the macro was only invoked conditionally." >&2;}
16876 { (exit 1); exit 1; }; }
16878 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
16879 { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
16880 Usually this means the macro was only invoked conditionally." >&5
16881 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
16882 Usually this means the macro was only invoked conditionally." >&2;}
16883 { (exit 1); exit 1; }; }
16885 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16886 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16887 Usually this means the macro was only invoked conditionally." >&5
16888 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16889 Usually this means the macro was only invoked conditionally." >&2;}
16890 { (exit 1); exit 1; }; }
16892 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16893 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16894 Usually this means the macro was only invoked conditionally." >&5
16895 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16896 Usually this means the macro was only invoked conditionally." >&2;}
16897 { (exit 1); exit 1; }; }
16899 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16900 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16901 Usually this means the macro was only invoked conditionally." >&5
16902 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16903 Usually this means the macro was only invoked conditionally." >&2;}
16904 { (exit 1); exit 1; }; }
16906 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16907 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16908 Usually this means the macro was only invoked conditionally." >&5
16909 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16910 Usually this means the macro was only invoked conditionally." >&2;}
16911 { (exit 1); exit 1; }; }
16913 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16914 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16915 Usually this means the macro was only invoked conditionally." >&5
16916 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16917 Usually this means the macro was only invoked conditionally." >&2;}
16918 { (exit 1); exit 1; }; }
16920 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16921 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16922 Usually this means the macro was only invoked conditionally." >&5
16923 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16924 Usually this means the macro was only invoked conditionally." >&2;}
16925 { (exit 1); exit 1; }; }
16927 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16928 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16929 Usually this means the macro was only invoked conditionally." >&5
16930 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16931 Usually this means the macro was only invoked conditionally." >&2;}
16932 { (exit 1); exit 1; }; }
16934 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16935 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16936 Usually this means the macro was only invoked conditionally." >&5
16937 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16938 Usually this means the macro was only invoked conditionally." >&2;}
16939 { (exit 1); exit 1; }; }
16941 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16942 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16943 Usually this means the macro was only invoked conditionally." >&5
16944 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16945 Usually this means the macro was only invoked conditionally." >&2;}
16946 { (exit 1); exit 1; }; }
16948 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16949 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16950 Usually this means the macro was only invoked conditionally." >&5
16951 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16952 Usually this means the macro was only invoked conditionally." >&2;}
16953 { (exit 1); exit 1; }; }
16955 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16956 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16957 Usually this means the macro was only invoked conditionally." >&5
16958 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16959 Usually this means the macro was only invoked conditionally." >&2;}
16960 { (exit 1); exit 1; }; }
16962 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16963 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16964 Usually this means the macro was only invoked conditionally." >&5
16965 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16966 Usually this means the macro was only invoked conditionally." >&2;}
16967 { (exit 1); exit 1; }; }
16969 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16970 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16971 Usually this means the macro was only invoked conditionally." >&5
16972 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16973 Usually this means the macro was only invoked conditionally." >&2;}
16974 { (exit 1); exit 1; }; }
16976 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16977 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16978 Usually this means the macro was only invoked conditionally." >&5
16979 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16980 Usually this means the macro was only invoked conditionally." >&2;}
16981 { (exit 1); exit 1; }; }
16983 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16984 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16985 Usually this means the macro was only invoked conditionally." >&5
16986 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16987 Usually this means the macro was only invoked conditionally." >&2;}
16988 { (exit 1); exit 1; }; }
16991 : ${CONFIG_STATUS=./config.status}
16992 ac_clean_files_save=$ac_clean_files
16993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16994 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16995 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16996 cat >$CONFIG_STATUS <<_ACEOF
16997 #! $SHELL
16998 # Generated by $as_me.
16999 # Run this file to recreate the current configuration.
17000 # Compiler output produced by configure, useful for debugging
17001 # configure, is in config.log if it exists.
17003 debug=false
17004 ac_cs_recheck=false
17005 ac_cs_silent=false
17006 SHELL=\${CONFIG_SHELL-$SHELL}
17007 _ACEOF
17009 cat >>$CONFIG_STATUS <<\_ACEOF
17010 ## --------------------- ##
17011 ## M4sh Initialization. ##
17012 ## --------------------- ##
17014 # Be Bourne compatible
17015 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17016 emulate sh
17017 NULLCMD=:
17018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17019 # is contrary to our usage. Disable this feature.
17020 alias -g '${1+"$@"}'='"$@"'
17021 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17022 set -o posix
17024 DUALCASE=1; export DUALCASE # for MKS sh
17026 # Support unset when possible.
17027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17028 as_unset=unset
17029 else
17030 as_unset=false
17034 # Work around bugs in pre-3.0 UWIN ksh.
17035 $as_unset ENV MAIL MAILPATH
17036 PS1='$ '
17037 PS2='> '
17038 PS4='+ '
17040 # NLS nuisances.
17041 for as_var in \
17042 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17043 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17044 LC_TELEPHONE LC_TIME
17046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17047 eval $as_var=C; export $as_var
17048 else
17049 $as_unset $as_var
17051 done
17053 # Required to use basename.
17054 if expr a : '\(a\)' >/dev/null 2>&1; then
17055 as_expr=expr
17056 else
17057 as_expr=false
17060 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17061 as_basename=basename
17062 else
17063 as_basename=false
17067 # Name of the executable.
17068 as_me=`$as_basename "$0" ||
17069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17070 X"$0" : 'X\(//\)$' \| \
17071 X"$0" : 'X\(/\)$' \| \
17072 . : '\(.\)' 2>/dev/null ||
17073 echo X/"$0" |
17074 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17075 /^X\/\(\/\/\)$/{ s//\1/; q; }
17076 /^X\/\(\/\).*/{ s//\1/; q; }
17077 s/.*/./; q'`
17080 # PATH needs CR, and LINENO needs CR and PATH.
17081 # Avoid depending upon Character Ranges.
17082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17085 as_cr_digits='0123456789'
17086 as_cr_alnum=$as_cr_Letters$as_cr_digits
17088 # The user is always right.
17089 if test "${PATH_SEPARATOR+set}" != set; then
17090 echo "#! /bin/sh" >conf$$.sh
17091 echo "exit 0" >>conf$$.sh
17092 chmod +x conf$$.sh
17093 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17094 PATH_SEPARATOR=';'
17095 else
17096 PATH_SEPARATOR=:
17098 rm -f conf$$.sh
17102 as_lineno_1=$LINENO
17103 as_lineno_2=$LINENO
17104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17105 test "x$as_lineno_1" != "x$as_lineno_2" &&
17106 test "x$as_lineno_3" = "x$as_lineno_2" || {
17107 # Find who we are. Look in the path if we contain no path at all
17108 # relative or not.
17109 case $0 in
17110 *[\\/]* ) as_myself=$0 ;;
17111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17112 for as_dir in $PATH
17114 IFS=$as_save_IFS
17115 test -z "$as_dir" && as_dir=.
17116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17117 done
17120 esac
17121 # We did not find ourselves, most probably we were run as `sh COMMAND'
17122 # in which case we are not to be found in the path.
17123 if test "x$as_myself" = x; then
17124 as_myself=$0
17126 if test ! -f "$as_myself"; then
17127 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17128 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17129 { (exit 1); exit 1; }; }
17131 case $CONFIG_SHELL in
17133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17136 IFS=$as_save_IFS
17137 test -z "$as_dir" && as_dir=.
17138 for as_base in sh bash ksh sh5; do
17139 case $as_dir in
17141 if ("$as_dir/$as_base" -c '
17142 as_lineno_1=$LINENO
17143 as_lineno_2=$LINENO
17144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17145 test "x$as_lineno_1" != "x$as_lineno_2" &&
17146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17149 CONFIG_SHELL=$as_dir/$as_base
17150 export CONFIG_SHELL
17151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17152 fi;;
17153 esac
17154 done
17155 done
17157 esac
17159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17160 # uniformly replaced by the line number. The first 'sed' inserts a
17161 # line-number line before each line; the second 'sed' does the real
17162 # work. The second script uses 'N' to pair each line-number line
17163 # with the numbered line, and appends trailing '-' during
17164 # substitution so that $LINENO is not a special case at line end.
17165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17167 sed '=' <$as_myself |
17168 sed '
17170 s,$,-,
17171 : loop
17172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17173 t loop
17174 s,-$,,
17175 s,^['$as_cr_digits']*\n,,
17176 ' >$as_me.lineno &&
17177 chmod +x $as_me.lineno ||
17178 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17179 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17180 { (exit 1); exit 1; }; }
17182 # Don't try to exec as it changes $[0], causing all sort of problems
17183 # (the dirname of $[0] is not the place where we might find the
17184 # original and so on. Autoconf is especially sensible to this).
17185 . ./$as_me.lineno
17186 # Exit status is that of the last command.
17187 exit
17191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17192 *c*,-n*) ECHO_N= ECHO_C='
17193 ' ECHO_T=' ' ;;
17194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17196 esac
17198 if expr a : '\(a\)' >/dev/null 2>&1; then
17199 as_expr=expr
17200 else
17201 as_expr=false
17204 rm -f conf$$ conf$$.exe conf$$.file
17205 echo >conf$$.file
17206 if ln -s conf$$.file conf$$ 2>/dev/null; then
17207 # We could just check for DJGPP; but this test a) works b) is more generic
17208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17209 if test -f conf$$.exe; then
17210 # Don't use ln at all; we don't have any links
17211 as_ln_s='cp -p'
17212 else
17213 as_ln_s='ln -s'
17215 elif ln conf$$.file conf$$ 2>/dev/null; then
17216 as_ln_s=ln
17217 else
17218 as_ln_s='cp -p'
17220 rm -f conf$$ conf$$.exe conf$$.file
17222 if mkdir -p . 2>/dev/null; then
17223 as_mkdir_p=:
17224 else
17225 test -d ./-p && rmdir ./-p
17226 as_mkdir_p=false
17229 as_executable_p="test -f"
17231 # Sed expression to map a string onto a valid CPP name.
17232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17234 # Sed expression to map a string onto a valid variable name.
17235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17238 # IFS
17239 # We need space, tab and new line, in precisely that order.
17240 as_nl='
17242 IFS=" $as_nl"
17244 # CDPATH.
17245 $as_unset CDPATH
17247 exec 6>&1
17249 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17250 # report actual input values of CONFIG_FILES etc. instead of their
17251 # values after options handling. Logging --version etc. is OK.
17252 exec 5>>config.log
17254 echo
17255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17256 ## Running $as_me. ##
17257 _ASBOX
17258 } >&5
17259 cat >&5 <<_CSEOF
17261 This file was extended by libjava $as_me version-unused, which was
17262 generated by GNU Autoconf 2.59. Invocation command line was
17264 CONFIG_FILES = $CONFIG_FILES
17265 CONFIG_HEADERS = $CONFIG_HEADERS
17266 CONFIG_LINKS = $CONFIG_LINKS
17267 CONFIG_COMMANDS = $CONFIG_COMMANDS
17268 $ $0 $@
17270 _CSEOF
17271 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17272 echo >&5
17273 _ACEOF
17275 # Files that config.status was made for.
17276 if test -n "$ac_config_files"; then
17277 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17280 if test -n "$ac_config_headers"; then
17281 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17284 if test -n "$ac_config_links"; then
17285 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17288 if test -n "$ac_config_commands"; then
17289 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17292 cat >>$CONFIG_STATUS <<\_ACEOF
17294 ac_cs_usage="\
17295 \`$as_me' instantiates files from templates according to the
17296 current configuration.
17298 Usage: $0 [OPTIONS] [FILE]...
17300 -h, --help print this help, then exit
17301 -V, --version print version number, then exit
17302 -q, --quiet do not print progress messages
17303 -d, --debug don't remove temporary files
17304 --recheck update $as_me by reconfiguring in the same conditions
17305 --file=FILE[:TEMPLATE]
17306 instantiate the configuration file FILE
17307 --header=FILE[:TEMPLATE]
17308 instantiate the configuration header FILE
17310 Configuration files:
17311 $config_files
17313 Configuration headers:
17314 $config_headers
17316 Configuration links:
17317 $config_links
17319 Configuration commands:
17320 $config_commands
17322 Report bugs to <bug-autoconf@gnu.org>."
17323 _ACEOF
17325 cat >>$CONFIG_STATUS <<_ACEOF
17326 ac_cs_version="\\
17327 libjava config.status version-unused
17328 configured by $0, generated by GNU Autoconf 2.59,
17329 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17331 Copyright (C) 2003 Free Software Foundation, Inc.
17332 This config.status script is free software; the Free Software Foundation
17333 gives unlimited permission to copy, distribute and modify it."
17334 srcdir=$srcdir
17335 INSTALL="$INSTALL"
17336 _ACEOF
17338 cat >>$CONFIG_STATUS <<\_ACEOF
17339 # If no file are specified by the user, then we need to provide default
17340 # value. By we need to know if files were specified by the user.
17341 ac_need_defaults=:
17342 while test $# != 0
17344 case $1 in
17345 --*=*)
17346 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17347 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17348 ac_shift=:
17351 ac_option=$1
17352 ac_optarg=$2
17353 ac_shift=shift
17355 *) # This is not an option, so the user has probably given explicit
17356 # arguments.
17357 ac_option=$1
17358 ac_need_defaults=false;;
17359 esac
17361 case $ac_option in
17362 # Handling of the options.
17363 _ACEOF
17364 cat >>$CONFIG_STATUS <<\_ACEOF
17365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17366 ac_cs_recheck=: ;;
17367 --version | --vers* | -V )
17368 echo "$ac_cs_version"; exit 0 ;;
17369 --he | --h)
17370 # Conflict between --help and --header
17371 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17372 Try \`$0 --help' for more information." >&5
17373 echo "$as_me: error: ambiguous option: $1
17374 Try \`$0 --help' for more information." >&2;}
17375 { (exit 1); exit 1; }; };;
17376 --help | --hel | -h )
17377 echo "$ac_cs_usage"; exit 0 ;;
17378 --debug | --d* | -d )
17379 debug=: ;;
17380 --file | --fil | --fi | --f )
17381 $ac_shift
17382 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17383 ac_need_defaults=false;;
17384 --header | --heade | --head | --hea )
17385 $ac_shift
17386 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17387 ac_need_defaults=false;;
17388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17389 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17390 ac_cs_silent=: ;;
17392 # This is an error.
17393 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17394 Try \`$0 --help' for more information." >&5
17395 echo "$as_me: error: unrecognized option: $1
17396 Try \`$0 --help' for more information." >&2;}
17397 { (exit 1); exit 1; }; } ;;
17399 *) ac_config_targets="$ac_config_targets $1" ;;
17401 esac
17402 shift
17403 done
17405 ac_configure_extra_args=
17407 if $ac_cs_silent; then
17408 exec 6>/dev/null
17409 ac_configure_extra_args="$ac_configure_extra_args --silent"
17412 _ACEOF
17413 cat >>$CONFIG_STATUS <<_ACEOF
17414 if \$ac_cs_recheck; then
17415 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17416 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17419 _ACEOF
17421 cat >>$CONFIG_STATUS <<_ACEOF
17423 # INIT-COMMANDS section.
17426 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17427 srcdir=${srcdir}
17428 host=${host}
17429 target=${target}
17430 with_multisubdir=${with_multisubdir}
17431 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17432 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17433 libgcj_basedir=${libgcj_basedir}
17434 CC="${CC}"
17435 CXX="${CXX}"
17436 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17439 _ACEOF
17443 cat >>$CONFIG_STATUS <<\_ACEOF
17444 for ac_config_target in $ac_config_targets
17446 case "$ac_config_target" in
17447 # Handling of arguments.
17448 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17449 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17450 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17451 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17452 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17453 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17454 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17455 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17456 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17457 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17458 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17459 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17460 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17461 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17462 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17463 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17464 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17465 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17466 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17467 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17468 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17469 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17470 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17471 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17472 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17473 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17474 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17475 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17476 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17477 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17478 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17479 { (exit 1); exit 1; }; };;
17480 esac
17481 done
17483 # If the user did not use the arguments to specify the items to instantiate,
17484 # then the envvar interface is used. Set only those that are not.
17485 # We use the long form for the default assignment because of an extremely
17486 # bizarre bug on SunOS 4.1.3.
17487 if $ac_need_defaults; then
17488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17490 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17491 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17494 # Have a temporary directory for convenience. Make it in the build tree
17495 # simply because there is no reason to put it here, and in addition,
17496 # creating and moving files from /tmp can sometimes cause problems.
17497 # Create a temporary directory, and hook for its removal unless debugging.
17498 $debug ||
17500 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17501 trap '{ (exit 1); exit 1; }' 1 2 13 15
17504 # Create a (secure) tmp directory for tmp files.
17507 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17508 test -n "$tmp" && test -d "$tmp"
17509 } ||
17511 tmp=./confstat$$-$RANDOM
17512 (umask 077 && mkdir $tmp)
17513 } ||
17515 echo "$me: cannot create a temporary directory in ." >&2
17516 { (exit 1); exit 1; }
17519 _ACEOF
17521 cat >>$CONFIG_STATUS <<_ACEOF
17524 # CONFIG_FILES section.
17527 # No need to generate the scripts if there are no CONFIG_FILES.
17528 # This happens for instance when ./config.status config.h
17529 if test -n "\$CONFIG_FILES"; then
17530 # Protect against being on the right side of a sed subst in config.status.
17531 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17532 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17533 s,@SHELL@,$SHELL,;t t
17534 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17535 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17536 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17537 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17538 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17539 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17540 s,@exec_prefix@,$exec_prefix,;t t
17541 s,@prefix@,$prefix,;t t
17542 s,@program_transform_name@,$program_transform_name,;t t
17543 s,@bindir@,$bindir,;t t
17544 s,@sbindir@,$sbindir,;t t
17545 s,@libexecdir@,$libexecdir,;t t
17546 s,@datadir@,$datadir,;t t
17547 s,@sysconfdir@,$sysconfdir,;t t
17548 s,@sharedstatedir@,$sharedstatedir,;t t
17549 s,@localstatedir@,$localstatedir,;t t
17550 s,@libdir@,$libdir,;t t
17551 s,@includedir@,$includedir,;t t
17552 s,@oldincludedir@,$oldincludedir,;t t
17553 s,@infodir@,$infodir,;t t
17554 s,@mandir@,$mandir,;t t
17555 s,@build_alias@,$build_alias,;t t
17556 s,@host_alias@,$host_alias,;t t
17557 s,@target_alias@,$target_alias,;t t
17558 s,@DEFS@,$DEFS,;t t
17559 s,@ECHO_C@,$ECHO_C,;t t
17560 s,@ECHO_N@,$ECHO_N,;t t
17561 s,@ECHO_T@,$ECHO_T,;t t
17562 s,@LIBS@,$LIBS,;t t
17563 s,@build@,$build,;t t
17564 s,@build_cpu@,$build_cpu,;t t
17565 s,@build_vendor@,$build_vendor,;t t
17566 s,@build_os@,$build_os,;t t
17567 s,@build_subdir@,$build_subdir,;t t
17568 s,@host_subdir@,$host_subdir,;t t
17569 s,@target_subdir@,$target_subdir,;t t
17570 s,@libgcj_basedir@,$libgcj_basedir,;t t
17571 s,@host@,$host,;t t
17572 s,@host_cpu@,$host_cpu,;t t
17573 s,@host_vendor@,$host_vendor,;t t
17574 s,@host_os@,$host_os,;t t
17575 s,@target@,$target,;t t
17576 s,@target_cpu@,$target_cpu,;t t
17577 s,@target_vendor@,$target_vendor,;t t
17578 s,@target_os@,$target_os,;t t
17579 s,@target_noncanonical@,$target_noncanonical,;t t
17580 s,@LN_S@,$LN_S,;t t
17581 s,@mkinstalldirs@,$mkinstalldirs,;t t
17582 s,@CC@,$CC,;t t
17583 s,@ac_ct_CC@,$ac_ct_CC,;t t
17584 s,@EXEEXT@,$EXEEXT,;t t
17585 s,@OBJEXT@,$OBJEXT,;t t
17586 s,@CXX@,$CXX,;t t
17587 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17588 s,@CFLAGS@,$CFLAGS,;t t
17589 s,@CXXFLAGS@,$CXXFLAGS,;t t
17590 s,@LDFLAGS@,$LDFLAGS,;t t
17591 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17592 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17593 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17594 s,@CYGPATH_W@,$CYGPATH_W,;t t
17595 s,@PACKAGE@,$PACKAGE,;t t
17596 s,@VERSION@,$VERSION,;t t
17597 s,@ACLOCAL@,$ACLOCAL,;t t
17598 s,@AUTOCONF@,$AUTOCONF,;t t
17599 s,@AUTOMAKE@,$AUTOMAKE,;t t
17600 s,@AUTOHEADER@,$AUTOHEADER,;t t
17601 s,@MAKEINFO@,$MAKEINFO,;t t
17602 s,@install_sh@,$install_sh,;t t
17603 s,@STRIP@,$STRIP,;t t
17604 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17605 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17606 s,@mkdir_p@,$mkdir_p,;t t
17607 s,@AWK@,$AWK,;t t
17608 s,@SET_MAKE@,$SET_MAKE,;t t
17609 s,@am__leading_dot@,$am__leading_dot,;t t
17610 s,@AMTAR@,$AMTAR,;t t
17611 s,@am__tar@,$am__tar,;t t
17612 s,@am__untar@,$am__untar,;t t
17613 s,@DEPDIR@,$DEPDIR,;t t
17614 s,@am__include@,$am__include,;t t
17615 s,@am__quote@,$am__quote,;t t
17616 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17617 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17618 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17619 s,@CCDEPMODE@,$CCDEPMODE,;t t
17620 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17621 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17622 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17623 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17624 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17625 s,@AS@,$AS,;t t
17626 s,@ac_ct_AS@,$ac_ct_AS,;t t
17627 s,@AR@,$AR,;t t
17628 s,@ac_ct_AR@,$ac_ct_AR,;t t
17629 s,@RANLIB@,$RANLIB,;t t
17630 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17631 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17632 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17633 s,@MAINT@,$MAINT,;t t
17634 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17635 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17636 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17637 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17638 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17639 s,@TOOLKIT@,$TOOLKIT,;t t
17640 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17641 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17642 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17643 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17644 s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17645 s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17646 s,@GCJH@,$GCJH,;t t
17647 s,@ZIP@,$ZIP,;t t
17648 s,@INCLTDL@,$INCLTDL,;t t
17649 s,@LIBLTDL@,$LIBLTDL,;t t
17650 s,@DIRLTDL@,$DIRLTDL,;t t
17651 s,@LIBTOOL@,$LIBTOOL,;t t
17652 s,@CXXCPP@,$CXXCPP,;t t
17653 s,@CPPFLAGS@,$CPPFLAGS,;t t
17654 s,@GCJ@,$GCJ,;t t
17655 s,@GCJFLAGS@,$GCJFLAGS,;t t
17656 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17657 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17658 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17659 s,@subdirs@,$subdirs,;t t
17660 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17661 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17662 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17663 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17664 s,@JAVA_HOME@,$JAVA_HOME,;t t
17665 s,@INTERPRETER@,$INTERPRETER,;t t
17666 s,@LIBFFI@,$LIBFFI,;t t
17667 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17668 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17669 s,@CPP@,$CPP,;t t
17670 s,@EGREP@,$EGREP,;t t
17671 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17672 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17673 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17674 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17675 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17676 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17677 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17678 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17679 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17680 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17681 s,@X_CFLAGS@,$X_CFLAGS,;t t
17682 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17683 s,@X_LIBS@,$X_LIBS,;t t
17684 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17685 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17686 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17687 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17688 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17689 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17690 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17691 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17692 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17693 s,@GCLIBS@,$GCLIBS,;t t
17694 s,@GCINCS@,$GCINCS,;t t
17695 s,@GCDEPS@,$GCDEPS,;t t
17696 s,@GCSPEC@,$GCSPEC,;t t
17697 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17698 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17699 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17700 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17701 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17702 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17703 s,@THREADLIBS@,$THREADLIBS,;t t
17704 s,@THREADINCS@,$THREADINCS,;t t
17705 s,@THREADDEPS@,$THREADDEPS,;t t
17706 s,@THREADSPEC@,$THREADSPEC,;t t
17707 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17708 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17709 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17710 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17711 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17712 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17713 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17714 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17715 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17716 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17717 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17718 s,@LIBICONV@,$LIBICONV,;t t
17719 s,@LTLIBICONV@,$LTLIBICONV,;t t
17720 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17721 s,@GTK_LIBS@,$GTK_LIBS,;t t
17722 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17723 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17724 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17725 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17726 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17727 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17728 s,@ZLIBS@,$ZLIBS,;t t
17729 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17730 s,@ZINCS@,$ZINCS,;t t
17731 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17732 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17733 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17734 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17735 s,@IEEESPEC@,$IEEESPEC,;t t
17736 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17737 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17738 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17739 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17740 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17741 s,@toolexecdir@,$toolexecdir,;t t
17742 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17743 s,@toolexeclibdir@,$toolexeclibdir,;t t
17744 s,@dbexecdir@,$dbexecdir,;t t
17745 s,@GCJVERSION@,$GCJVERSION,;t t
17746 s,@gxx_include_dir@,$gxx_include_dir,;t t
17747 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17748 s,@ALLOCA@,$ALLOCA,;t t
17749 s,@PERL@,$PERL,;t t
17750 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17751 s,@here@,$here,;t t
17752 s,@LIBOBJS@,$LIBOBJS,;t t
17753 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17754 CEOF
17756 _ACEOF
17758 cat >>$CONFIG_STATUS <<\_ACEOF
17759 # Split the substitutions into bite-sized pieces for seds with
17760 # small command number limits, like on Digital OSF/1 and HP-UX.
17761 ac_max_sed_lines=48
17762 ac_sed_frag=1 # Number of current file.
17763 ac_beg=1 # First line for current file.
17764 ac_end=$ac_max_sed_lines # Line after last line for current file.
17765 ac_more_lines=:
17766 ac_sed_cmds=
17767 while $ac_more_lines; do
17768 if test $ac_beg -gt 1; then
17769 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17770 else
17771 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17773 if test ! -s $tmp/subs.frag; then
17774 ac_more_lines=false
17775 else
17776 # The purpose of the label and of the branching condition is to
17777 # speed up the sed processing (if there are no `@' at all, there
17778 # is no need to browse any of the substitutions).
17779 # These are the two extra sed commands mentioned above.
17780 (echo ':t
17781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17782 if test -z "$ac_sed_cmds"; then
17783 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17784 else
17785 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17787 ac_sed_frag=`expr $ac_sed_frag + 1`
17788 ac_beg=$ac_end
17789 ac_end=`expr $ac_end + $ac_max_sed_lines`
17791 done
17792 if test -z "$ac_sed_cmds"; then
17793 ac_sed_cmds=cat
17795 fi # test -n "$CONFIG_FILES"
17797 _ACEOF
17798 cat >>$CONFIG_STATUS <<\_ACEOF
17799 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17801 case $ac_file in
17802 - | *:- | *:-:* ) # input from stdin
17803 cat >$tmp/stdin
17804 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17806 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17808 * ) ac_file_in=$ac_file.in ;;
17809 esac
17811 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17812 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17814 X"$ac_file" : 'X\(//\)[^/]' \| \
17815 X"$ac_file" : 'X\(//\)$' \| \
17816 X"$ac_file" : 'X\(/\)' \| \
17817 . : '\(.\)' 2>/dev/null ||
17818 echo X"$ac_file" |
17819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17821 /^X\(\/\/\)$/{ s//\1/; q; }
17822 /^X\(\/\).*/{ s//\1/; q; }
17823 s/.*/./; q'`
17824 { if $as_mkdir_p; then
17825 mkdir -p "$ac_dir"
17826 else
17827 as_dir="$ac_dir"
17828 as_dirs=
17829 while test ! -d "$as_dir"; do
17830 as_dirs="$as_dir $as_dirs"
17831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17833 X"$as_dir" : 'X\(//\)[^/]' \| \
17834 X"$as_dir" : 'X\(//\)$' \| \
17835 X"$as_dir" : 'X\(/\)' \| \
17836 . : '\(.\)' 2>/dev/null ||
17837 echo X"$as_dir" |
17838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17840 /^X\(\/\/\)$/{ s//\1/; q; }
17841 /^X\(\/\).*/{ s//\1/; q; }
17842 s/.*/./; q'`
17843 done
17844 test ! -n "$as_dirs" || mkdir $as_dirs
17845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17847 { (exit 1); exit 1; }; }; }
17849 ac_builddir=.
17851 if test "$ac_dir" != .; then
17852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17853 # A "../" for each directory in $ac_dir_suffix.
17854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17855 else
17856 ac_dir_suffix= ac_top_builddir=
17859 case $srcdir in
17860 .) # No --srcdir option. We are building in place.
17861 ac_srcdir=.
17862 if test -z "$ac_top_builddir"; then
17863 ac_top_srcdir=.
17864 else
17865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17866 fi ;;
17867 [\\/]* | ?:[\\/]* ) # Absolute path.
17868 ac_srcdir=$srcdir$ac_dir_suffix;
17869 ac_top_srcdir=$srcdir ;;
17870 *) # Relative path.
17871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17873 esac
17875 # Do not use `cd foo && pwd` to compute absolute paths, because
17876 # the directories may not exist.
17877 case `pwd` in
17878 .) ac_abs_builddir="$ac_dir";;
17880 case "$ac_dir" in
17881 .) ac_abs_builddir=`pwd`;;
17882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17884 esac;;
17885 esac
17886 case $ac_abs_builddir in
17887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17889 case ${ac_top_builddir}. in
17890 .) ac_abs_top_builddir=$ac_abs_builddir;;
17891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17893 esac;;
17894 esac
17895 case $ac_abs_builddir in
17896 .) ac_abs_srcdir=$ac_srcdir;;
17898 case $ac_srcdir in
17899 .) ac_abs_srcdir=$ac_abs_builddir;;
17900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17902 esac;;
17903 esac
17904 case $ac_abs_builddir in
17905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17907 case $ac_top_srcdir in
17908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17911 esac;;
17912 esac
17915 case $INSTALL in
17916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17917 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17918 esac
17920 if test x"$ac_file" != x-; then
17921 { echo "$as_me:$LINENO: creating $ac_file" >&5
17922 echo "$as_me: creating $ac_file" >&6;}
17923 rm -f "$ac_file"
17925 # Let's still pretend it is `configure' which instantiates (i.e., don't
17926 # use $as_me), people would be surprised to read:
17927 # /* config.h. Generated by config.status. */
17928 if test x"$ac_file" = x-; then
17929 configure_input=
17930 else
17931 configure_input="$ac_file. "
17933 configure_input=$configure_input"Generated from `echo $ac_file_in |
17934 sed 's,.*/,,'` by configure."
17936 # First look for the input files in the build tree, otherwise in the
17937 # src tree.
17938 ac_file_inputs=`IFS=:
17939 for f in $ac_file_in; do
17940 case $f in
17941 -) echo $tmp/stdin ;;
17942 [\\/$]*)
17943 # Absolute (can't be DOS-style, as IFS=:)
17944 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17945 echo "$as_me: error: cannot find input file: $f" >&2;}
17946 { (exit 1); exit 1; }; }
17947 echo "$f";;
17948 *) # Relative
17949 if test -f "$f"; then
17950 # Build tree
17951 echo "$f"
17952 elif test -f "$srcdir/$f"; then
17953 # Source tree
17954 echo "$srcdir/$f"
17955 else
17956 # /dev/null tree
17957 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17958 echo "$as_me: error: cannot find input file: $f" >&2;}
17959 { (exit 1); exit 1; }; }
17960 fi;;
17961 esac
17962 done` || { (exit 1); exit 1; }
17963 _ACEOF
17964 cat >>$CONFIG_STATUS <<_ACEOF
17965 sed "$ac_vpsub
17966 $extrasub
17967 _ACEOF
17968 cat >>$CONFIG_STATUS <<\_ACEOF
17970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17971 s,@configure_input@,$configure_input,;t t
17972 s,@srcdir@,$ac_srcdir,;t t
17973 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17974 s,@top_srcdir@,$ac_top_srcdir,;t t
17975 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17976 s,@builddir@,$ac_builddir,;t t
17977 s,@abs_builddir@,$ac_abs_builddir,;t t
17978 s,@top_builddir@,$ac_top_builddir,;t t
17979 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17980 s,@INSTALL@,$ac_INSTALL,;t t
17981 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17982 rm -f $tmp/stdin
17983 if test x"$ac_file" != x-; then
17984 mv $tmp/out $ac_file
17985 else
17986 cat $tmp/out
17987 rm -f $tmp/out
17990 done
17991 _ACEOF
17992 cat >>$CONFIG_STATUS <<\_ACEOF
17995 # CONFIG_HEADER section.
17998 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17999 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18001 # ac_d sets the value in "#define NAME VALUE" lines.
18002 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18003 ac_dB='[ ].*$,\1#\2'
18004 ac_dC=' '
18005 ac_dD=',;t'
18006 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18007 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18008 ac_uB='$,\1#\2define\3'
18009 ac_uC=' '
18010 ac_uD=',;t'
18012 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18014 case $ac_file in
18015 - | *:- | *:-:* ) # input from stdin
18016 cat >$tmp/stdin
18017 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18019 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18021 * ) ac_file_in=$ac_file.in ;;
18022 esac
18024 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18025 echo "$as_me: creating $ac_file" >&6;}
18027 # First look for the input files in the build tree, otherwise in the
18028 # src tree.
18029 ac_file_inputs=`IFS=:
18030 for f in $ac_file_in; do
18031 case $f in
18032 -) echo $tmp/stdin ;;
18033 [\\/$]*)
18034 # Absolute (can't be DOS-style, as IFS=:)
18035 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18036 echo "$as_me: error: cannot find input file: $f" >&2;}
18037 { (exit 1); exit 1; }; }
18038 # Do quote $f, to prevent DOS paths from being IFS'd.
18039 echo "$f";;
18040 *) # Relative
18041 if test -f "$f"; then
18042 # Build tree
18043 echo "$f"
18044 elif test -f "$srcdir/$f"; then
18045 # Source tree
18046 echo "$srcdir/$f"
18047 else
18048 # /dev/null tree
18049 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18050 echo "$as_me: error: cannot find input file: $f" >&2;}
18051 { (exit 1); exit 1; }; }
18052 fi;;
18053 esac
18054 done` || { (exit 1); exit 1; }
18055 # Remove the trailing spaces.
18056 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18058 _ACEOF
18060 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18061 # `conftest.undefs', that substitutes the proper values into
18062 # config.h.in to produce config.h. The first handles `#define'
18063 # templates, and the second `#undef' templates.
18064 # And first: Protect against being on the right side of a sed subst in
18065 # config.status. Protect against being in an unquoted here document
18066 # in config.status.
18067 rm -f conftest.defines conftest.undefs
18068 # Using a here document instead of a string reduces the quoting nightmare.
18069 # Putting comments in sed scripts is not portable.
18071 # `end' is used to avoid that the second main sed command (meant for
18072 # 0-ary CPP macros) applies to n-ary macro definitions.
18073 # See the Autoconf documentation for `clear'.
18074 cat >confdef2sed.sed <<\_ACEOF
18075 s/[\\&,]/\\&/g
18076 s,[\\$`],\\&,g
18077 t clear
18078 : clear
18079 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18080 t end
18081 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18082 : end
18083 _ACEOF
18084 # If some macros were called several times there might be several times
18085 # the same #defines, which is useless. Nevertheless, we may not want to
18086 # sort them, since we want the *last* AC-DEFINE to be honored.
18087 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18088 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18089 rm -f confdef2sed.sed
18091 # This sed command replaces #undef with comments. This is necessary, for
18092 # example, in the case of _POSIX_SOURCE, which is predefined and required
18093 # on some systems where configure will not decide to define it.
18094 cat >>conftest.undefs <<\_ACEOF
18095 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18096 _ACEOF
18098 # Break up conftest.defines because some shells have a limit on the size
18099 # of here documents, and old seds have small limits too (100 cmds).
18100 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18101 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18102 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18103 echo ' :' >>$CONFIG_STATUS
18104 rm -f conftest.tail
18105 while grep . conftest.defines >/dev/null
18107 # Write a limited-size here document to $tmp/defines.sed.
18108 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18109 # Speed up: don't consider the non `#define' lines.
18110 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18111 # Work around the forget-to-reset-the-flag bug.
18112 echo 't clr' >>$CONFIG_STATUS
18113 echo ': clr' >>$CONFIG_STATUS
18114 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18115 echo 'CEOF
18116 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18117 rm -f $tmp/in
18118 mv $tmp/out $tmp/in
18119 ' >>$CONFIG_STATUS
18120 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18121 rm -f conftest.defines
18122 mv conftest.tail conftest.defines
18123 done
18124 rm -f conftest.defines
18125 echo ' fi # grep' >>$CONFIG_STATUS
18126 echo >>$CONFIG_STATUS
18128 # Break up conftest.undefs because some shells have a limit on the size
18129 # of here documents, and old seds have small limits too (100 cmds).
18130 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18131 rm -f conftest.tail
18132 while grep . conftest.undefs >/dev/null
18134 # Write a limited-size here document to $tmp/undefs.sed.
18135 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18136 # Speed up: don't consider the non `#undef'
18137 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18138 # Work around the forget-to-reset-the-flag bug.
18139 echo 't clr' >>$CONFIG_STATUS
18140 echo ': clr' >>$CONFIG_STATUS
18141 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18142 echo 'CEOF
18143 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18144 rm -f $tmp/in
18145 mv $tmp/out $tmp/in
18146 ' >>$CONFIG_STATUS
18147 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18148 rm -f conftest.undefs
18149 mv conftest.tail conftest.undefs
18150 done
18151 rm -f conftest.undefs
18153 cat >>$CONFIG_STATUS <<\_ACEOF
18154 # Let's still pretend it is `configure' which instantiates (i.e., don't
18155 # use $as_me), people would be surprised to read:
18156 # /* config.h. Generated by config.status. */
18157 if test x"$ac_file" = x-; then
18158 echo "/* Generated by configure. */" >$tmp/config.h
18159 else
18160 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18162 cat $tmp/in >>$tmp/config.h
18163 rm -f $tmp/in
18164 if test x"$ac_file" != x-; then
18165 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18166 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18167 echo "$as_me: $ac_file is unchanged" >&6;}
18168 else
18169 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18171 X"$ac_file" : 'X\(//\)[^/]' \| \
18172 X"$ac_file" : 'X\(//\)$' \| \
18173 X"$ac_file" : 'X\(/\)' \| \
18174 . : '\(.\)' 2>/dev/null ||
18175 echo X"$ac_file" |
18176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18178 /^X\(\/\/\)$/{ s//\1/; q; }
18179 /^X\(\/\).*/{ s//\1/; q; }
18180 s/.*/./; q'`
18181 { if $as_mkdir_p; then
18182 mkdir -p "$ac_dir"
18183 else
18184 as_dir="$ac_dir"
18185 as_dirs=
18186 while test ! -d "$as_dir"; do
18187 as_dirs="$as_dir $as_dirs"
18188 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18190 X"$as_dir" : 'X\(//\)[^/]' \| \
18191 X"$as_dir" : 'X\(//\)$' \| \
18192 X"$as_dir" : 'X\(/\)' \| \
18193 . : '\(.\)' 2>/dev/null ||
18194 echo X"$as_dir" |
18195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18197 /^X\(\/\/\)$/{ s//\1/; q; }
18198 /^X\(\/\).*/{ s//\1/; q; }
18199 s/.*/./; q'`
18200 done
18201 test ! -n "$as_dirs" || mkdir $as_dirs
18202 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18204 { (exit 1); exit 1; }; }; }
18206 rm -f $ac_file
18207 mv $tmp/config.h $ac_file
18209 else
18210 cat $tmp/config.h
18211 rm -f $tmp/config.h
18213 # Compute $ac_file's index in $config_headers.
18214 _am_stamp_count=1
18215 for _am_header in $config_headers :; do
18216 case $_am_header in
18217 $ac_file | $ac_file:* )
18218 break ;;
18220 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18221 esac
18222 done
18223 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18224 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18225 X$ac_file : 'X\(//\)[^/]' \| \
18226 X$ac_file : 'X\(//\)$' \| \
18227 X$ac_file : 'X\(/\)' \| \
18228 . : '\(.\)' 2>/dev/null ||
18229 echo X$ac_file |
18230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18232 /^X\(\/\/\)$/{ s//\1/; q; }
18233 /^X\(\/\).*/{ s//\1/; q; }
18234 s/.*/./; q'`/stamp-h$_am_stamp_count
18235 done
18236 _ACEOF
18237 cat >>$CONFIG_STATUS <<\_ACEOF
18240 # CONFIG_LINKS section.
18243 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18244 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18245 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18247 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18248 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18250 if test ! -r $srcdir/$ac_source; then
18251 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18252 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18253 { (exit 1); exit 1; }; }
18255 rm -f $ac_dest
18257 # Make relative symlinks.
18258 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18259 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18260 X"$ac_dest" : 'X\(//\)[^/]' \| \
18261 X"$ac_dest" : 'X\(//\)$' \| \
18262 X"$ac_dest" : 'X\(/\)' \| \
18263 . : '\(.\)' 2>/dev/null ||
18264 echo X"$ac_dest" |
18265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18267 /^X\(\/\/\)$/{ s//\1/; q; }
18268 /^X\(\/\).*/{ s//\1/; q; }
18269 s/.*/./; q'`
18270 { if $as_mkdir_p; then
18271 mkdir -p "$ac_dest_dir"
18272 else
18273 as_dir="$ac_dest_dir"
18274 as_dirs=
18275 while test ! -d "$as_dir"; do
18276 as_dirs="$as_dir $as_dirs"
18277 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18279 X"$as_dir" : 'X\(//\)[^/]' \| \
18280 X"$as_dir" : 'X\(//\)$' \| \
18281 X"$as_dir" : 'X\(/\)' \| \
18282 . : '\(.\)' 2>/dev/null ||
18283 echo X"$as_dir" |
18284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18286 /^X\(\/\/\)$/{ s//\1/; q; }
18287 /^X\(\/\).*/{ s//\1/; q; }
18288 s/.*/./; q'`
18289 done
18290 test ! -n "$as_dirs" || mkdir $as_dirs
18291 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18292 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18293 { (exit 1); exit 1; }; }; }
18295 ac_builddir=.
18297 if test "$ac_dest_dir" != .; then
18298 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18299 # A "../" for each directory in $ac_dir_suffix.
18300 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18301 else
18302 ac_dir_suffix= ac_top_builddir=
18305 case $srcdir in
18306 .) # No --srcdir option. We are building in place.
18307 ac_srcdir=.
18308 if test -z "$ac_top_builddir"; then
18309 ac_top_srcdir=.
18310 else
18311 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18312 fi ;;
18313 [\\/]* | ?:[\\/]* ) # Absolute path.
18314 ac_srcdir=$srcdir$ac_dir_suffix;
18315 ac_top_srcdir=$srcdir ;;
18316 *) # Relative path.
18317 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18318 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18319 esac
18321 # Do not use `cd foo && pwd` to compute absolute paths, because
18322 # the directories may not exist.
18323 case `pwd` in
18324 .) ac_abs_builddir="$ac_dest_dir";;
18326 case "$ac_dest_dir" in
18327 .) ac_abs_builddir=`pwd`;;
18328 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18329 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18330 esac;;
18331 esac
18332 case $ac_abs_builddir in
18333 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18335 case ${ac_top_builddir}. in
18336 .) ac_abs_top_builddir=$ac_abs_builddir;;
18337 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18338 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18339 esac;;
18340 esac
18341 case $ac_abs_builddir in
18342 .) ac_abs_srcdir=$ac_srcdir;;
18344 case $ac_srcdir in
18345 .) ac_abs_srcdir=$ac_abs_builddir;;
18346 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18347 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18348 esac;;
18349 esac
18350 case $ac_abs_builddir in
18351 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18353 case $ac_top_srcdir in
18354 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18355 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18356 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18357 esac;;
18358 esac
18361 case $srcdir in
18362 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18363 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18364 esac
18366 # Try a symlink, then a hard link, then a copy.
18367 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18368 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18369 cp -p $srcdir/$ac_source $ac_dest ||
18370 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18371 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18372 { (exit 1); exit 1; }; }
18373 done
18374 _ACEOF
18375 cat >>$CONFIG_STATUS <<\_ACEOF
18378 # CONFIG_COMMANDS section.
18380 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18381 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18382 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18383 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18384 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18385 X"$ac_dest" : 'X\(//\)[^/]' \| \
18386 X"$ac_dest" : 'X\(//\)$' \| \
18387 X"$ac_dest" : 'X\(/\)' \| \
18388 . : '\(.\)' 2>/dev/null ||
18389 echo X"$ac_dest" |
18390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18392 /^X\(\/\/\)$/{ s//\1/; q; }
18393 /^X\(\/\).*/{ s//\1/; q; }
18394 s/.*/./; q'`
18395 { if $as_mkdir_p; then
18396 mkdir -p "$ac_dir"
18397 else
18398 as_dir="$ac_dir"
18399 as_dirs=
18400 while test ! -d "$as_dir"; do
18401 as_dirs="$as_dir $as_dirs"
18402 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18404 X"$as_dir" : 'X\(//\)[^/]' \| \
18405 X"$as_dir" : 'X\(//\)$' \| \
18406 X"$as_dir" : 'X\(/\)' \| \
18407 . : '\(.\)' 2>/dev/null ||
18408 echo X"$as_dir" |
18409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18411 /^X\(\/\/\)$/{ s//\1/; q; }
18412 /^X\(\/\).*/{ s//\1/; q; }
18413 s/.*/./; q'`
18414 done
18415 test ! -n "$as_dirs" || mkdir $as_dirs
18416 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18417 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18418 { (exit 1); exit 1; }; }; }
18420 ac_builddir=.
18422 if test "$ac_dir" != .; then
18423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18424 # A "../" for each directory in $ac_dir_suffix.
18425 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18426 else
18427 ac_dir_suffix= ac_top_builddir=
18430 case $srcdir in
18431 .) # No --srcdir option. We are building in place.
18432 ac_srcdir=.
18433 if test -z "$ac_top_builddir"; then
18434 ac_top_srcdir=.
18435 else
18436 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18437 fi ;;
18438 [\\/]* | ?:[\\/]* ) # Absolute path.
18439 ac_srcdir=$srcdir$ac_dir_suffix;
18440 ac_top_srcdir=$srcdir ;;
18441 *) # Relative path.
18442 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18443 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18444 esac
18446 # Do not use `cd foo && pwd` to compute absolute paths, because
18447 # the directories may not exist.
18448 case `pwd` in
18449 .) ac_abs_builddir="$ac_dir";;
18451 case "$ac_dir" in
18452 .) ac_abs_builddir=`pwd`;;
18453 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18454 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18455 esac;;
18456 esac
18457 case $ac_abs_builddir in
18458 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18460 case ${ac_top_builddir}. in
18461 .) ac_abs_top_builddir=$ac_abs_builddir;;
18462 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18463 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18464 esac;;
18465 esac
18466 case $ac_abs_builddir in
18467 .) ac_abs_srcdir=$ac_srcdir;;
18469 case $ac_srcdir in
18470 .) ac_abs_srcdir=$ac_abs_builddir;;
18471 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18472 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18473 esac;;
18474 esac
18475 case $ac_abs_builddir in
18476 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18478 case $ac_top_srcdir in
18479 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18480 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18481 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18482 esac;;
18483 esac
18486 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18487 echo "$as_me: executing $ac_dest commands" >&6;}
18488 case $ac_dest in
18489 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18490 # Strip MF so we end up with the name of the file.
18491 mf=`echo "$mf" | sed -e 's/:.*$//'`
18492 # Check whether this is an Automake generated Makefile or not.
18493 # We used to match only the files named `Makefile.in', but
18494 # some people rename them; so instead we look at the file content.
18495 # Grep'ing the first line is not enough: some people post-process
18496 # each Makefile.in and add a new line on top of each file to say so.
18497 # So let's grep whole file.
18498 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18499 dirpart=`(dirname "$mf") 2>/dev/null ||
18500 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18501 X"$mf" : 'X\(//\)[^/]' \| \
18502 X"$mf" : 'X\(//\)$' \| \
18503 X"$mf" : 'X\(/\)' \| \
18504 . : '\(.\)' 2>/dev/null ||
18505 echo X"$mf" |
18506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18508 /^X\(\/\/\)$/{ s//\1/; q; }
18509 /^X\(\/\).*/{ s//\1/; q; }
18510 s/.*/./; q'`
18511 else
18512 continue
18514 # Extract the definition of DEPDIR, am__include, and am__quote
18515 # from the Makefile without running `make'.
18516 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18517 test -z "$DEPDIR" && continue
18518 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18519 test -z "am__include" && continue
18520 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18521 # When using ansi2knr, U may be empty or an underscore; expand it
18522 U=`sed -n 's/^U = //p' < "$mf"`
18523 # Find all dependency output files, they are included files with
18524 # $(DEPDIR) in their names. We invoke sed twice because it is the
18525 # simplest approach to changing $(DEPDIR) to its actual value in the
18526 # expansion.
18527 for file in `sed -n "
18528 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18529 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18530 # Make sure the directory exists.
18531 test -f "$dirpart/$file" && continue
18532 fdir=`(dirname "$file") 2>/dev/null ||
18533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18534 X"$file" : 'X\(//\)[^/]' \| \
18535 X"$file" : 'X\(//\)$' \| \
18536 X"$file" : 'X\(/\)' \| \
18537 . : '\(.\)' 2>/dev/null ||
18538 echo X"$file" |
18539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18541 /^X\(\/\/\)$/{ s//\1/; q; }
18542 /^X\(\/\).*/{ s//\1/; q; }
18543 s/.*/./; q'`
18544 { if $as_mkdir_p; then
18545 mkdir -p $dirpart/$fdir
18546 else
18547 as_dir=$dirpart/$fdir
18548 as_dirs=
18549 while test ! -d "$as_dir"; do
18550 as_dirs="$as_dir $as_dirs"
18551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18553 X"$as_dir" : 'X\(//\)[^/]' \| \
18554 X"$as_dir" : 'X\(//\)$' \| \
18555 X"$as_dir" : 'X\(/\)' \| \
18556 . : '\(.\)' 2>/dev/null ||
18557 echo X"$as_dir" |
18558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18560 /^X\(\/\/\)$/{ s//\1/; q; }
18561 /^X\(\/\).*/{ s//\1/; q; }
18562 s/.*/./; q'`
18563 done
18564 test ! -n "$as_dirs" || mkdir $as_dirs
18565 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18566 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18567 { (exit 1); exit 1; }; }; }
18569 # echo "creating $dirpart/$file"
18570 echo '# dummy' > "$dirpart/$file"
18571 done
18572 done
18574 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18575 case " $CONFIG_FILES " in
18576 *" Makefile "*)
18577 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18578 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18580 esac
18581 for ac_multi_file in $CONFIG_FILES; do
18582 case $ac_multi_file in
18583 */Makefile)
18584 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18585 esac
18586 done
18588 esac
18589 done
18590 _ACEOF
18592 cat >>$CONFIG_STATUS <<\_ACEOF
18594 { (exit 0); exit 0; }
18595 _ACEOF
18596 chmod +x $CONFIG_STATUS
18597 ac_clean_files=$ac_clean_files_save
18600 # configure is writing to config.log, and then calls config.status.
18601 # config.status does its own redirection, appending to config.log.
18602 # Unfortunately, on DOS this fails, as config.log is still kept open
18603 # by configure, so config.status won't be able to write to it; its
18604 # output is simply discarded. So we exec the FD to /dev/null,
18605 # effectively closing config.log, so it can be properly (re)opened and
18606 # appended to by config.status. When coming back to configure, we
18607 # need to make the FD available again.
18608 if test "$no_create" != yes; then
18609 ac_cs_success=:
18610 ac_config_status_args=
18611 test "$silent" = yes &&
18612 ac_config_status_args="$ac_config_status_args --quiet"
18613 exec 5>/dev/null
18614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18615 exec 5>>config.log
18616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18617 # would make configure fail if this is the last instruction.
18618 $ac_cs_success || { (exit 1); exit 1; }
18622 # CONFIG_SUBDIRS section.
18624 if test "$no_recursion" != yes; then
18626 # Remove --cache-file and --srcdir arguments so they do not pile up.
18627 ac_sub_configure_args=
18628 ac_prev=
18629 for ac_arg in $ac_configure_args; do
18630 if test -n "$ac_prev"; then
18631 ac_prev=
18632 continue
18634 case $ac_arg in
18635 -cache-file | --cache-file | --cache-fil | --cache-fi \
18636 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18637 ac_prev=cache_file ;;
18638 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18639 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18640 | --c=*)
18642 --config-cache | -C)
18644 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18645 ac_prev=srcdir ;;
18646 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18648 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18649 ac_prev=prefix ;;
18650 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18652 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18653 esac
18654 done
18656 # Always prepend --prefix to ensure using the same prefix
18657 # in subdir configurations.
18658 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18660 ac_popdir=`pwd`
18661 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18663 # Do not complain, so a configure script can configure whichever
18664 # parts of a large source tree are present.
18665 test -d $srcdir/$ac_dir || continue
18667 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18668 echo "$as_me: configuring in $ac_dir" >&6;}
18669 { if $as_mkdir_p; then
18670 mkdir -p "$ac_dir"
18671 else
18672 as_dir="$ac_dir"
18673 as_dirs=
18674 while test ! -d "$as_dir"; do
18675 as_dirs="$as_dir $as_dirs"
18676 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18678 X"$as_dir" : 'X\(//\)[^/]' \| \
18679 X"$as_dir" : 'X\(//\)$' \| \
18680 X"$as_dir" : 'X\(/\)' \| \
18681 . : '\(.\)' 2>/dev/null ||
18682 echo X"$as_dir" |
18683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18685 /^X\(\/\/\)$/{ s//\1/; q; }
18686 /^X\(\/\).*/{ s//\1/; q; }
18687 s/.*/./; q'`
18688 done
18689 test ! -n "$as_dirs" || mkdir $as_dirs
18690 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18691 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18692 { (exit 1); exit 1; }; }; }
18694 ac_builddir=.
18696 if test "$ac_dir" != .; then
18697 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18698 # A "../" for each directory in $ac_dir_suffix.
18699 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18700 else
18701 ac_dir_suffix= ac_top_builddir=
18704 case $srcdir in
18705 .) # No --srcdir option. We are building in place.
18706 ac_srcdir=.
18707 if test -z "$ac_top_builddir"; then
18708 ac_top_srcdir=.
18709 else
18710 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18711 fi ;;
18712 [\\/]* | ?:[\\/]* ) # Absolute path.
18713 ac_srcdir=$srcdir$ac_dir_suffix;
18714 ac_top_srcdir=$srcdir ;;
18715 *) # Relative path.
18716 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18717 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18718 esac
18720 # Do not use `cd foo && pwd` to compute absolute paths, because
18721 # the directories may not exist.
18722 case `pwd` in
18723 .) ac_abs_builddir="$ac_dir";;
18725 case "$ac_dir" in
18726 .) ac_abs_builddir=`pwd`;;
18727 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18728 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18729 esac;;
18730 esac
18731 case $ac_abs_builddir in
18732 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18734 case ${ac_top_builddir}. in
18735 .) ac_abs_top_builddir=$ac_abs_builddir;;
18736 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18737 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18738 esac;;
18739 esac
18740 case $ac_abs_builddir in
18741 .) ac_abs_srcdir=$ac_srcdir;;
18743 case $ac_srcdir in
18744 .) ac_abs_srcdir=$ac_abs_builddir;;
18745 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18746 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18747 esac;;
18748 esac
18749 case $ac_abs_builddir in
18750 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18752 case $ac_top_srcdir in
18753 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18754 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18755 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18756 esac;;
18757 esac
18760 cd $ac_dir
18762 # Check for guested configure; otherwise get Cygnus style configure.
18763 if test -f $ac_srcdir/configure.gnu; then
18764 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18765 elif test -f $ac_srcdir/configure; then
18766 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18767 elif test -f $ac_srcdir/configure.in; then
18768 ac_sub_configure=$ac_configure
18769 else
18770 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18771 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18772 ac_sub_configure=
18775 # The recursion is here.
18776 if test -n "$ac_sub_configure"; then
18777 # Make the cache file name correct relative to the subdirectory.
18778 case $cache_file in
18779 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18780 *) # Relative path.
18781 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18782 esac
18784 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18785 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18786 # The eval makes quoting arguments work.
18787 eval $ac_sub_configure $ac_sub_configure_args \
18788 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18789 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18790 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18791 { (exit 1); exit 1; }; }
18794 cd $ac_popdir
18795 done