natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc.
[gcc.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
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=''
273
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"
312
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_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC 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 USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV LIBMAGIC PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
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
335
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'
353
354 ac_prev=
355 for ac_option
356 do
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
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
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 ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
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 ;;
395
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" ;;
404
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'" ;;
417
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 ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
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 ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
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 ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
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 ;;
466
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 ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
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 ;;
492
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 ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
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 ;;
513
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 ;;
520
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 ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
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 ;;
547
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 ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
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 ;;
575
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 ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
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'" ;;
599
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" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
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 ;;
619
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 ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
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 ;;
641
642 *)
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}
648 ;;
649
650 esac
651 done
652
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; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
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
669
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
673 do
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
681
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
688
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
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
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=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
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; }; }
736 fi
737 fi
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
766
767 #
768 # Report the --help message.
769 #
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.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
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.
780
781 Defaults for the options are specified in brackets.
782
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 \`..']
793
794 _ACEOF
795
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]
802
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'.
807
808 For better control, use the options below.
809
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
824
825 cat <<\_ACEOF
826
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
831
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
835
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
841 fi
842
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
848
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-multilib build many library versions (default)
853 --enable-version-specific-runtime-libs
854 specify that runtime libraries should be installed
855 in a compiler-specific directory
856 --enable-plugin build gcjwebplugin web browser plugin
857 --enable-gconf-peer compile GConf native peers for util.preferences
858 --enable-java-maintainer-mode
859 allow rebuilding of .class and .h files
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
864 --enable-libgcj-debug enable runtime debugging code
865 --enable-java-awt list of AWT peer implementations to be built
866 --enable-shared=PKGS build shared libraries default=yes
867 --enable-static=PKGS build static libraries default=yes
868 --enable-fast-install=PKGS optimize for fast installation default=yes
869 --disable-libtool-lock avoid locking (might break parallel builds)
870 --disable-getenv-properties
871 don't set system properties from GCJ_PROPERTIES
872 --enable-hash-synchronization
873 use global hash table for monitor locks
874 --enable-gc-debug include full support for pointer backtracing etc.
875 --enable-interpreter enable interpreter
876 --enable-sjlj-exceptions
877 force use of builtin_setjmp for exceptions
878 --disable-java-net disable java.net
879 --disable-jvmpi disable JVMPI support
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
881 --disable-rpath do not hardcode runtime library paths
882 --enable-tls Use thread-local storage [default=yes]
883
884 Optional Packages:
885 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
887 --with-build-libsubdir=DIR Directory where to find libraries for build system
888 --with-target-subdir=SUBDIR
889 configure in a subdirectory
890 --with-cross-host=HOST configure with a cross compiler from HOST
891 --with-newlib configure with newlib
892 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
893 --with-gnu-ld assume the C compiler uses GNU ld default=no
894 --with-pic try to use only PIC/non-PIC objects default=use both
895 --with-ecj-jar=FILE use preinstalled ecj jar
896 --with-java-home=DIRECTORY
897 value of java.home system property
898 --with-win32-nlsapi=ansi or unicows or unicode
899 native MinGW libgcj Win32 OS API (default is ansi)
900 --without-libffi don't use libffi
901 --with-ecos enable runtime eCos target support
902 --with-system-zlib use installed libz
903 --with-x use the X Window System
904 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
905 --without-libiconv-prefix don't search for libiconv in includedir and libdir
906
907 Some influential environment variables:
908 CC C compiler command
909 CFLAGS C compiler flags
910 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
911 nonstandard directory <lib dir>
912 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
913 headers in a nonstandard directory <include dir>
914 CXX C++ compiler command
915 CXXFLAGS C++ compiler flags
916 CXXCPP C++ preprocessor
917 CPP C preprocessor
918
919 Use these variables to override the choices made by `configure' or to help
920 it to find libraries and programs with nonstandard names/locations.
921
922 _ACEOF
923 fi
924
925 if test "$ac_init_help" = "recursive"; then
926 # If there are subdirs, report their specific --help.
927 ac_popdir=`pwd`
928 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929 test -d $ac_dir || continue
930 ac_builddir=.
931
932 if test "$ac_dir" != .; then
933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
934 # A "../" for each directory in $ac_dir_suffix.
935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936 else
937 ac_dir_suffix= ac_top_builddir=
938 fi
939
940 case $srcdir in
941 .) # No --srcdir option. We are building in place.
942 ac_srcdir=.
943 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=.
945 else
946 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
947 fi ;;
948 [\\/]* | ?:[\\/]* ) # Absolute path.
949 ac_srcdir=$srcdir$ac_dir_suffix;
950 ac_top_srcdir=$srcdir ;;
951 *) # Relative path.
952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
953 ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 esac
955
956 # Do not use `cd foo && pwd` to compute absolute paths, because
957 # the directories may not exist.
958 case `pwd` in
959 .) ac_abs_builddir="$ac_dir";;
960 *)
961 case "$ac_dir" in
962 .) ac_abs_builddir=`pwd`;;
963 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
964 *) ac_abs_builddir=`pwd`/"$ac_dir";;
965 esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *)
970 case ${ac_top_builddir}. in
971 .) ac_abs_top_builddir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
973 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974 esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_srcdir=$ac_srcdir;;
978 *)
979 case $ac_srcdir in
980 .) ac_abs_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
982 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983 esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *)
988 case $ac_top_srcdir in
989 .) ac_abs_top_srcdir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
991 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 esac;;
993 esac
994
995 cd $ac_dir
996 # Check for guested configure; otherwise get Cygnus style configure.
997 if test -f $ac_srcdir/configure.gnu; then
998 echo
999 $SHELL $ac_srcdir/configure.gnu --help=recursive
1000 elif test -f $ac_srcdir/configure; then
1001 echo
1002 $SHELL $ac_srcdir/configure --help=recursive
1003 elif test -f $ac_srcdir/configure.ac ||
1004 test -f $ac_srcdir/configure.in; then
1005 echo
1006 $ac_configure --help
1007 else
1008 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009 fi
1010 cd $ac_popdir
1011 done
1012 fi
1013
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1016 cat <<\_ACEOF
1017 libjava configure version-unused
1018 generated by GNU Autoconf 2.59
1019
1020 Copyright (C) 2003 Free Software Foundation, Inc.
1021 This configure script is free software; the Free Software Foundation
1022 gives unlimited permission to copy, distribute and modify it.
1023 _ACEOF
1024 exit 0
1025 fi
1026 exec 5>config.log
1027 cat >&5 <<_ACEOF
1028 This file contains any messages produced by compilers while
1029 running configure, to aid debugging if configure makes a mistake.
1030
1031 It was created by libjava $as_me version-unused, which was
1032 generated by GNU Autoconf 2.59. Invocation command line was
1033
1034 $ $0 $@
1035
1036 _ACEOF
1037 {
1038 cat <<_ASUNAME
1039 ## --------- ##
1040 ## Platform. ##
1041 ## --------- ##
1042
1043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1048
1049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1051
1052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1059
1060 _ASUNAME
1061
1062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063 for as_dir in $PATH
1064 do
1065 IFS=$as_save_IFS
1066 test -z "$as_dir" && as_dir=.
1067 echo "PATH: $as_dir"
1068 done
1069
1070 } >&5
1071
1072 cat >&5 <<_ACEOF
1073
1074
1075 ## ----------- ##
1076 ## Core tests. ##
1077 ## ----------- ##
1078
1079 _ACEOF
1080
1081
1082 # Keep a trace of the command line.
1083 # Strip out --no-create and --no-recursion so they do not pile up.
1084 # Strip out --silent because we don't want to record it for future runs.
1085 # Also quote any args containing shell meta-characters.
1086 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_configure_args=
1088 ac_configure_args0=
1089 ac_configure_args1=
1090 ac_sep=
1091 ac_must_keep_next=false
1092 for ac_pass in 1 2
1093 do
1094 for ac_arg
1095 do
1096 case $ac_arg in
1097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 continue ;;
1101 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103 esac
1104 case $ac_pass in
1105 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1106 2)
1107 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1108 if test $ac_must_keep_next = true; then
1109 ac_must_keep_next=false # Got value, back to normal.
1110 else
1111 case $ac_arg in
1112 *=* | --config-cache | -C | -disable-* | --disable-* \
1113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1115 | -with-* | --with-* | -without-* | --without-* | --x)
1116 case "$ac_configure_args0 " in
1117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118 esac
1119 ;;
1120 -* ) ac_must_keep_next=true ;;
1121 esac
1122 fi
1123 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124 # Get rid of the leading space.
1125 ac_sep=" "
1126 ;;
1127 esac
1128 done
1129 done
1130 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1132
1133 # When interrupted or exit'd, cleanup temporary files, and complete
1134 # config.log. We remove comments because anyway the quotes in there
1135 # would cause problems or look ugly.
1136 # WARNING: Be sure not to use single quotes in there, as some shells,
1137 # such as our DU 5.0 friend, will then `close' the trap.
1138 trap 'exit_status=$?
1139 # Save into config.log some information that might help in debugging.
1140 {
1141 echo
1142
1143 cat <<\_ASBOX
1144 ## ---------------- ##
1145 ## Cache variables. ##
1146 ## ---------------- ##
1147 _ASBOX
1148 echo
1149 # The following way of writing the cache mishandles newlines in values,
1150 {
1151 (set) 2>&1 |
1152 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153 *ac_space=\ *)
1154 sed -n \
1155 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157 ;;
1158 *)
1159 sed -n \
1160 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161 ;;
1162 esac;
1163 }
1164 echo
1165
1166 cat <<\_ASBOX
1167 ## ----------------- ##
1168 ## Output variables. ##
1169 ## ----------------- ##
1170 _ASBOX
1171 echo
1172 for ac_var in $ac_subst_vars
1173 do
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1176 done | sort
1177 echo
1178
1179 if test -n "$ac_subst_files"; then
1180 cat <<\_ASBOX
1181 ## ------------- ##
1182 ## Output files. ##
1183 ## ------------- ##
1184 _ASBOX
1185 echo
1186 for ac_var in $ac_subst_files
1187 do
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
1190 done | sort
1191 echo
1192 fi
1193
1194 if test -s confdefs.h; then
1195 cat <<\_ASBOX
1196 ## ----------- ##
1197 ## confdefs.h. ##
1198 ## ----------- ##
1199 _ASBOX
1200 echo
1201 sed "/^$/d" confdefs.h | sort
1202 echo
1203 fi
1204 test "$ac_signal" != 0 &&
1205 echo "$as_me: caught signal $ac_signal"
1206 echo "$as_me: exit $exit_status"
1207 } >&5
1208 rm -f core *.core &&
1209 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210 exit $exit_status
1211 ' 0
1212 for ac_signal in 1 2 13 15; do
1213 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214 done
1215 ac_signal=0
1216
1217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1218 rm -rf conftest* confdefs.h
1219 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220 echo >confdefs.h
1221
1222 # Predefined preprocessor variables.
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_NAME "$PACKAGE_NAME"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_STRING "$PACKAGE_STRING"
1241 _ACEOF
1242
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246 _ACEOF
1247
1248
1249 # Let the site file select an alternate cache file if it wants to.
1250 # Prefer explicitly selected file to automatically selected ones.
1251 if test -z "$CONFIG_SITE"; then
1252 if test "x$prefix" != xNONE; then
1253 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1254 else
1255 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256 fi
1257 fi
1258 for ac_site_file in $CONFIG_SITE; do
1259 if test -r "$ac_site_file"; then
1260 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261 echo "$as_me: loading site script $ac_site_file" >&6;}
1262 sed 's/^/| /' "$ac_site_file" >&5
1263 . "$ac_site_file"
1264 fi
1265 done
1266
1267 if test -r "$cache_file"; then
1268 # Some versions of bash will fail to source /dev/null (special
1269 # files actually), so we avoid doing that.
1270 if test -f "$cache_file"; then
1271 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272 echo "$as_me: loading cache $cache_file" >&6;}
1273 case $cache_file in
1274 [\\/]* | ?:[\\/]* ) . $cache_file;;
1275 *) . ./$cache_file;;
1276 esac
1277 fi
1278 else
1279 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280 echo "$as_me: creating cache $cache_file" >&6;}
1281 >$cache_file
1282 fi
1283
1284 # Check that the precious variables saved in the cache have kept the same
1285 # value.
1286 ac_cache_corrupted=false
1287 for ac_var in `(set) 2>&1 |
1288 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290 eval ac_new_set=\$ac_env_${ac_var}_set
1291 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292 eval ac_new_val="\$ac_env_${ac_var}_value"
1293 case $ac_old_set,$ac_new_set in
1294 set,)
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1298 ,set)
1299 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301 ac_cache_corrupted=: ;;
1302 ,);;
1303 *)
1304 if test "x$ac_old_val" != "x$ac_new_val"; then
1305 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1308 echo "$as_me: former value: $ac_old_val" >&2;}
1309 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1310 echo "$as_me: current value: $ac_new_val" >&2;}
1311 ac_cache_corrupted=:
1312 fi;;
1313 esac
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1316 case $ac_new_val in
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1320 esac
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324 esac
1325 fi
1326 done
1327 if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332 { (exit 1); exit 1; }; }
1333 fi
1334
1335 ac_ext=c
1336 ac_cpp='$CPP $CPPFLAGS'
1337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370 ac_aux_dir=
1371 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1372 if test -f $ac_dir/install-sh; then
1373 ac_aux_dir=$ac_dir
1374 ac_install_sh="$ac_aux_dir/install-sh -c"
1375 break
1376 elif test -f $ac_dir/install.sh; then
1377 ac_aux_dir=$ac_dir
1378 ac_install_sh="$ac_aux_dir/install.sh -c"
1379 break
1380 elif test -f $ac_dir/shtool; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/shtool install -c"
1383 break
1384 fi
1385 done
1386 if test -z "$ac_aux_dir"; then
1387 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1389 { (exit 1); exit 1; }; }
1390 fi
1391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399 { (exit 1); exit 1; }; }
1400
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408 ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412 { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427 case ${build_alias} in
1428 "") build_noncanonical=${build} ;;
1429 *) build_noncanonical=${build_alias} ;;
1430 esac
1431
1432 case ${host_alias} in
1433 "") host_noncanonical=${build_noncanonical} ;;
1434 *) host_noncanonical=${host_alias} ;;
1435 esac
1436
1437 case ${target_alias} in
1438 "") target_noncanonical=${host_noncanonical} ;;
1439 *) target_noncanonical=${target_alias} ;;
1440 esac
1441
1442
1443 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1444 # have matching libraries, they should use host libraries: Makefile.tpl
1445 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1446 # However, they still use the build modules, because the corresponding
1447 # host modules (e.g. bison) are only built for the host when bootstrap
1448 # finishes. So:
1449 # - build_subdir is where we find build modules, and never changes.
1450 # - build_libsubdir is where we find build libraries, and can be overridden.
1451
1452 # Prefix 'build-' so this never conflicts with target_subdir.
1453 build_subdir="build-${build_noncanonical}"
1454
1455 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1456 if test "${with_build_libsubdir+set}" = set; then
1457 withval="$with_build_libsubdir"
1458 build_libsubdir="$withval"
1459 else
1460 build_libsubdir="$build_subdir"
1461 fi;
1462 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1463 if ( test $srcdir = . && test -d gcc ) \
1464 || test -d $srcdir/../host-${host_noncanonical}; then
1465 host_subdir="host-${host_noncanonical}"
1466 else
1467 host_subdir=.
1468 fi
1469 # No prefix.
1470 target_subdir=${target_noncanonical}
1471
1472
1473 # We use these options to decide which functions to include.
1474
1475 # Check whether --with-target-subdir or --without-target-subdir was given.
1476 if test "${with_target_subdir+set}" = set; then
1477 withval="$with_target_subdir"
1478
1479 fi;
1480
1481 # We may get other options which we don't document:
1482 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1483
1484 # Find the rest of the source tree framework.
1485 # Default to --enable-multilib
1486 # Check whether --enable-multilib or --disable-multilib was given.
1487 if test "${enable_multilib+set}" = set; then
1488 enableval="$enable_multilib"
1489 case "$enableval" in
1490 yes) multilib=yes ;;
1491 no) multilib=no ;;
1492 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1493 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1494 { (exit 1); exit 1; }; } ;;
1495 esac
1496 else
1497 multilib=yes
1498 fi;
1499
1500 # We may get other options which we leave undocumented:
1501 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1502 # See config-ml.in if you want the gory details.
1503
1504 if test "$srcdir" = "."; then
1505 if test "$with_target_subdir" != "."; then
1506 multi_basedir="$srcdir/$with_multisrctop../.."
1507 else
1508 multi_basedir="$srcdir/$with_multisrctop.."
1509 fi
1510 else
1511 multi_basedir="$srcdir/.."
1512 fi
1513
1514
1515 # Even if the default multilib is not a cross compilation,
1516 # it may be that some of the other multilibs are.
1517 if test $cross_compiling = no && test $multilib = yes \
1518 && test "x${with_multisubdir}" != x ; then
1519 cross_compiling=maybe
1520 fi
1521
1522 ac_config_commands="$ac_config_commands default-1"
1523
1524
1525 echo "$as_me:$LINENO: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530 ac_cv_host_alias=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532 ac_cv_host_alias=$ac_cv_build_alias
1533 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1537
1538 fi
1539 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1541 host=$ac_cv_host
1542 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547 echo "$as_me:$LINENO: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 ac_cv_target_alias=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554 ac_cv_target_alias=$ac_cv_host_alias
1555 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1559
1560 fi
1561 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target=$ac_cv_target
1564 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569 # The aliases save the names the user supplied, while $host etc.
1570 # will get canonicalized.
1571 test -n "$target_alias" &&
1572 test "$program_prefix$program_suffix$program_transform_name" = \
1573 NONENONEs,x,x, &&
1574 program_prefix=${target_alias}-
1575 case ${build_alias} in
1576 "") build_noncanonical=${build} ;;
1577 *) build_noncanonical=${build_alias} ;;
1578 esac
1579
1580 case ${target_alias} in
1581 "") target_noncanonical=${host_noncanonical} ;;
1582 *) target_noncanonical=${target_alias} ;;
1583 esac
1584
1585
1586
1587
1588 # This works around the fact that libtool configuration may change LD
1589 # for this particular configuration, but some shells, instead of
1590 # keeping the changes in LD private, export them just because LD is
1591 # exported.
1592 ORIGINAL_LD_FOR_MULTILIBS=$LD
1593
1594 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1595 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1596 LN_S=$as_ln_s
1597 if test "$LN_S" = "ln -s"; then
1598 echo "$as_me:$LINENO: result: yes" >&5
1599 echo "${ECHO_T}yes" >&6
1600 else
1601 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1602 echo "${ECHO_T}no, using $LN_S" >&6
1603 fi
1604
1605
1606 # This works around an automake problem.
1607 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1608
1609
1610
1611 # Check whether --with-cross-host or --without-cross-host was given.
1612 if test "${with_cross_host+set}" = set; then
1613 withval="$with_cross_host"
1614
1615 fi;
1616
1617
1618 # Check whether --with-newlib or --without-newlib was given.
1619 if test "${with_newlib+set}" = set; then
1620 withval="$with_newlib"
1621
1622 fi;
1623
1624 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1625 if test "${enable_version_specific_runtime_libs+set}" = set; then
1626 enableval="$enable_version_specific_runtime_libs"
1627 case "$enableval" in
1628 yes) version_specific_libs=yes ;;
1629 no) version_specific_libs=no ;;
1630 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1631 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1632 { (exit 1); exit 1; }; };;
1633 esac
1634 else
1635 version_specific_libs=no
1636
1637 fi;
1638
1639 # Check whether --enable-plugin or --disable-plugin was given.
1640 if test "${enable_plugin+set}" = set; then
1641 enableval="$enable_plugin"
1642 case "$enableval" in
1643 yes) plugin_enabled=yes ;;
1644 no) plugin_enabled=no ;;
1645 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1646 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1647 { (exit 1); exit 1; }; };;
1648 esac
1649 else
1650 plugin_enabled=no
1651
1652 fi;
1653
1654 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1655 if test "${enable_gconf_peer+set}" = set; then
1656 enableval="$enable_gconf_peer"
1657 case "$enableval" in
1658 yes) gconf_enabled=yes ;;
1659 no) gconf_enabled=no ;;
1660 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1661 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1662 { (exit 1); exit 1; }; };;
1663 esac
1664 else
1665 gconf_enabled=no
1666
1667 fi;
1668
1669 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1670 if test "${enable_java_maintainer_mode+set}" = set; then
1671 enableval="$enable_java_maintainer_mode"
1672
1673 fi;
1674
1675
1676 if test "$enable_java_maintainer_mode" = yes; then
1677 JAVA_MAINTAINER_MODE_TRUE=
1678 JAVA_MAINTAINER_MODE_FALSE='#'
1679 else
1680 JAVA_MAINTAINER_MODE_TRUE='#'
1681 JAVA_MAINTAINER_MODE_FALSE=
1682 fi
1683
1684
1685 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1686
1687
1688 # (1) We use an abnormal CXX (without library references), so we
1689 # must cache it under a different name.
1690 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1691 # the non-multilib-adjusted value will be used in multilibs.
1692 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1693 # (4) As another side effect, automake doesn't automatically include them
1694 # in Makefile.in.
1695 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1696 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1697 # used in later tests. This may not be necessary in libjava; I don't know.
1698
1699
1700 save_CXXFLAGS="$CXXFLAGS"
1701 CXXFLAGS="$CXXFLAGS -fno-builtin"
1702 ac_ext=c
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715 if test -n "$CC"; then
1716 ac_cv_prog_CC="$CC" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 break 2
1728 fi
1729 done
1730 done
1731
1732 fi
1733 fi
1734 CC=$ac_cv_prog_CC
1735 if test -n "$CC"; then
1736 echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1738 else
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743 fi
1744 if test -z "$ac_cv_prog_CC"; then
1745 ac_ct_CC=$CC
1746 # Extract the first word of "gcc", so it can be a program name with args.
1747 set dummy gcc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_ac_ct_CC="gcc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1766 fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781 CC=$ac_ct_CC
1782 else
1783 CC="$ac_cv_prog_CC"
1784 fi
1785
1786 if test -z "$CC"; then
1787 if test -n "$ac_tool_prefix"; then
1788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}cc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC="$CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_CC="${ac_tool_prefix}cc"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1808 fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 CC=$ac_cv_prog_CC
1815 if test -n "$CC"; then
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1818 else
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823 fi
1824 if test -z "$ac_cv_prog_CC"; then
1825 ac_ct_CC=$CC
1826 # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833 if test -n "$ac_ct_CC"; then
1834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_ac_ct_CC="cc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1846 fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1856 else
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861 CC=$ac_ct_CC
1862 else
1863 CC="$ac_cv_prog_CC"
1864 fi
1865
1866 fi
1867 if test -z "$CC"; then
1868 # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875 if test -n "$CC"; then
1876 ac_cv_prog_CC="$CC" # Let the user override the test.
1877 else
1878 ac_prog_rejected=no
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882 IFS=$as_save_IFS
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1887 ac_prog_rejected=yes
1888 continue
1889 fi
1890 ac_cv_prog_CC="cc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1893 fi
1894 done
1895 done
1896
1897 if test $ac_prog_rejected = yes; then
1898 # We found a bogon in the path, so make sure we never use it.
1899 set dummy $ac_cv_prog_CC
1900 shift
1901 if test $# != 0; then
1902 # We chose a different compiler from the bogus one.
1903 # However, it has the same basename, so the bogon will be chosen
1904 # first if we set CC to just the basename; use the full file name.
1905 shift
1906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1907 fi
1908 fi
1909 fi
1910 fi
1911 CC=$ac_cv_prog_CC
1912 if test -n "$CC"; then
1913 echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920 fi
1921 if test -z "$CC"; then
1922 if test -n "$ac_tool_prefix"; then
1923 for ac_prog in cl
1924 do
1925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$CC"; then
1933 ac_cv_prog_CC="$CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1945 fi
1946 done
1947 done
1948
1949 fi
1950 fi
1951 CC=$ac_cv_prog_CC
1952 if test -n "$CC"; then
1953 echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1955 else
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1958 fi
1959
1960 test -n "$CC" && break
1961 done
1962 fi
1963 if test -z "$CC"; then
1964 ac_ct_CC=$CC
1965 for ac_prog in cl
1966 do
1967 # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy $ac_prog; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$ac_ct_CC"; then
1975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_ac_ct_CC="$ac_prog"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1987 fi
1988 done
1989 done
1990
1991 fi
1992 fi
1993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1994 if test -n "$ac_ct_CC"; then
1995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1996 echo "${ECHO_T}$ac_ct_CC" >&6
1997 else
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002 test -n "$ac_ct_CC" && break
2003 done
2004
2005 CC=$ac_ct_CC
2006 fi
2007
2008 fi
2009
2010
2011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: no acceptable C compiler found in \$PATH
2014 See \`config.log' for more details." >&2;}
2015 { (exit 1); exit 1; }; }
2016
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019 "checking for C compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022 (eval $ac_compiler --version </dev/null >&5) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027 (eval $ac_compiler -v </dev/null >&5) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032 (eval $ac_compiler -V </dev/null >&5) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2036
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h. */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2043
2044 int
2045 main ()
2046 {
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 # FIXME: Cleanup?
2053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2054 (eval $ac_link) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; then
2058 gcc_no_link=no
2059 else
2060 gcc_no_link=yes
2061 fi
2062
2063 if test x$gcc_no_link = xyes; then
2064 # Setting cross_compile will disable run tests; it will
2065 # also disable AC_CHECK_FILE but that's generally
2066 # correct if we can't link.
2067 cross_compiling=yes
2068 EXEEXT=
2069 else
2070 cat >conftest.$ac_ext <<_ACEOF
2071 /* confdefs.h. */
2072 _ACEOF
2073 cat confdefs.h >>conftest.$ac_ext
2074 cat >>conftest.$ac_ext <<_ACEOF
2075 /* end confdefs.h. */
2076
2077 int
2078 main ()
2079 {
2080
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 ac_clean_files_save=$ac_clean_files
2086 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087 # Try to create an executable without -o first, disregard a.out.
2088 # It will help us diagnose broken compilers, and finding out an intuition
2089 # of exeext.
2090 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094 (eval $ac_link_default) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; then
2098 # Find the output, starting from the most likely. This scheme is
2099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 # resort.
2101
2102 # Be careful to initialize this variable, since it used to be cached.
2103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 ac_cv_exeext=
2105 # b.out is created by i960 compilers.
2106 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107 do
2108 test -f "$ac_file" || continue
2109 case $ac_file in
2110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111 ;;
2112 conftest.$ac_ext )
2113 # This is the source file.
2114 ;;
2115 [ab].out )
2116 # We found the default executable, but exeext='' is most
2117 # certainly right.
2118 break;;
2119 *.* )
2120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121 # FIXME: I believe we export ac_cv_exeext for Libtool,
2122 # but it would be cool to find out if it's true. Does anybody
2123 # maintain Libtool? --akim.
2124 export ac_cv_exeext
2125 break;;
2126 * )
2127 break;;
2128 esac
2129 done
2130 else
2131 echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&2;}
2138 { (exit 77); exit 77; }; }
2139 fi
2140
2141 ac_exeext=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2144
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152 if { ac_try='./$ac_file'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 cross_compiling=no
2159 else
2160 if test "$cross_compiling" = maybe; then
2161 cross_compiling=yes
2162 else
2163 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2170 fi
2171 fi
2172 fi
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2175
2176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run. If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2184
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188 (eval $ac_link) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2195 # `rm'.
2196 for ac_file in conftest.exe conftest conftest.*; do
2197 test -f "$ac_file" || continue
2198 case $ac_file in
2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201 export ac_cv_exeext
2202 break;;
2203 * ) break;;
2204 esac
2205 done
2206 else
2207 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&2;}
2211 { (exit 1); exit 1; }; }
2212 fi
2213
2214 rm -f conftest$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216 echo "${ECHO_T}$ac_cv_exeext" >&6
2217
2218 rm -f conftest.$ac_ext
2219 EXEEXT=$ac_cv_exeext
2220 ac_exeext=$EXEEXT
2221 fi
2222 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2223 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2224 if test "${ac_cv_objext+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h. */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2233
2234 int
2235 main ()
2236 {
2237
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 rm -f conftest.o conftest.obj
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2249 case $ac_file in
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2251 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2252 break;;
2253 esac
2254 done
2255 else
2256 echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2264 fi
2265
2266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2267 fi
2268 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2269 echo "${ECHO_T}$ac_cv_objext" >&6
2270 OBJEXT=$ac_cv_objext
2271 ac_objext=$OBJEXT
2272 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h. */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2283
2284 int
2285 main ()
2286 {
2287 #ifndef __GNUC__
2288 choke me
2289 #endif
2290
2291 ;
2292 return 0;
2293 }
2294 _ACEOF
2295 rm -f conftest.$ac_objext
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>conftest.er1
2298 ac_status=$?
2299 grep -v '^ *+' conftest.er1 >conftest.err
2300 rm -f conftest.er1
2301 cat conftest.err >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -z "$ac_c_werror_flag"
2305 || test ! -s conftest.err'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 (eval $ac_try) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2317 ac_compiler_gnu=yes
2318 else
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 ac_compiler_gnu=no
2323 fi
2324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2326
2327 fi
2328 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2329 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2330 GCC=`test $ac_compiler_gnu = yes && echo yes`
2331 ac_test_CFLAGS=${CFLAGS+set}
2332 ac_save_CFLAGS=$CFLAGS
2333 CFLAGS="-g"
2334 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_g+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h. */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2345
2346 int
2347 main ()
2348 {
2349
2350 ;
2351 return 0;
2352 }
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_g=yes
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 ac_cv_prog_cc_g=no
2382 fi
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388 CFLAGS=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390 if test "$GCC" = yes; then
2391 CFLAGS="-g -O2"
2392 else
2393 CFLAGS="-g"
2394 fi
2395 else
2396 if test "$GCC" = yes; then
2397 CFLAGS="-O2"
2398 else
2399 CFLAGS=
2400 fi
2401 fi
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 ac_cv_prog_cc_stdc=no
2408 ac_save_CC=$CC
2409 cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h. */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2415 #include <stdarg.h>
2416 #include <stdio.h>
2417 #include <sys/types.h>
2418 #include <sys/stat.h>
2419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2420 struct buf { int x; };
2421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2422 static char *e (p, i)
2423 char **p;
2424 int i;
2425 {
2426 return p[i];
2427 }
2428 static char *f (char * (*g) (char **, int), char **p, ...)
2429 {
2430 char *s;
2431 va_list v;
2432 va_start (v,p);
2433 s = g (p, va_arg (v,int));
2434 va_end (v);
2435 return s;
2436 }
2437
2438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2439 function prototypes and stuff, but not '\xHH' hex character constants.
2440 These don't provoke an error unfortunately, instead are silently treated
2441 as 'x'. The following induces an error, until -std1 is added to get
2442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2443 array size at least. It's necessary to write '\x00'==0 to get something
2444 that's true only with -std1. */
2445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2446
2447 int test (int i, double x);
2448 struct s1 {int (*f) (int a);};
2449 struct s2 {int (*f) (double a);};
2450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2451 int argc;
2452 char **argv;
2453 int
2454 main ()
2455 {
2456 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 # Don't try gcc -ansi; that turns off useful extensions and
2462 # breaks some systems' header files.
2463 # AIX -qlanglvl=ansi
2464 # Ultrix and OSF/1 -std1
2465 # HP-UX 10.20 and later -Ae
2466 # HP-UX older versions -Aa -D_HPUX_SOURCE
2467 # SVR4 -Xc -D__EXTENSIONS__
2468 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2469 do
2470 CC="$ac_save_CC $ac_arg"
2471 rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473 (eval $ac_compile) 2>conftest.er1
2474 ac_status=$?
2475 grep -v '^ *+' conftest.er1 >conftest.err
2476 rm -f conftest.er1
2477 cat conftest.err >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -z "$ac_c_werror_flag"
2481 || test ! -s conftest.err'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 (eval $ac_try) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; } &&
2487 { ac_try='test -s conftest.$ac_objext'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 (eval $ac_try) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2493 ac_cv_prog_cc_stdc=$ac_arg
2494 break
2495 else
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 fi
2500 rm -f conftest.err conftest.$ac_objext
2501 done
2502 rm -f conftest.$ac_ext conftest.$ac_objext
2503 CC=$ac_save_CC
2504
2505 fi
2506
2507 case "x$ac_cv_prog_cc_stdc" in
2508 x|xno)
2509 echo "$as_me:$LINENO: result: none needed" >&5
2510 echo "${ECHO_T}none needed" >&6 ;;
2511 *)
2512 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2513 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2514 CC="$CC $ac_cv_prog_cc_stdc" ;;
2515 esac
2516
2517 # Some people use a C++ compiler to compile C. Since we use `exit',
2518 # in C++ we need to declare it. In case someone uses the same compiler
2519 # for both compiling C and C++ we need to have the C++ compiler decide
2520 # the declaration of exit, since it's the most demanding environment.
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #ifndef __cplusplus
2523 choke me
2524 #endif
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 for ac_declaration in \
2549 '' \
2550 'extern "C" void std::exit (int) throw (); using std::exit;' \
2551 'extern "C" void std::exit (int); using std::exit;' \
2552 'extern "C" void exit (int) throw ();' \
2553 'extern "C" void exit (int);' \
2554 'void exit (int);'
2555 do
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2562 $ac_declaration
2563 #include <stdlib.h>
2564 int
2565 main ()
2566 {
2567 exit (42);
2568 ;
2569 return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 :
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 continue
2600 fi
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608 $ac_declaration
2609 int
2610 main ()
2611 {
2612 exit (42);
2613 ;
2614 return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 break
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649 echo '#ifdef __cplusplus' >>confdefs.h
2650 echo $ac_declaration >>confdefs.h
2651 echo '#endif' >>confdefs.h
2652 fi
2653
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 fi
2659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_ext=c
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665
2666 ac_ext=cc
2667 ac_cpp='$CXXCPP $CPPFLAGS'
2668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2673 do
2674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_CXX+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 if test -n "$CXX"; then
2682 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697
2698 fi
2699 fi
2700 CXX=$ac_cv_prog_CXX
2701 if test -n "$CXX"; then
2702 echo "$as_me:$LINENO: result: $CXX" >&5
2703 echo "${ECHO_T}$CXX" >&6
2704 else
2705 echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2707 fi
2708
2709 test -n "$CXX" && break
2710 done
2711 fi
2712 if test -z "$CXX"; then
2713 ac_ct_CXX=$CXX
2714 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2715 do
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$ac_ct_CXX"; then
2724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CXX="$ac_prog"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739
2740 fi
2741 fi
2742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2743 if test -n "$ac_ct_CXX"; then
2744 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2745 echo "${ECHO_T}$ac_ct_CXX" >&6
2746 else
2747 echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2749 fi
2750
2751 test -n "$ac_ct_CXX" && break
2752 done
2753 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2754
2755 CXX=$ac_ct_CXX
2756 fi
2757
2758
2759 # Provide some information about the compiler.
2760 echo "$as_me:$LINENO:" \
2761 "checking for C++ compiler version" >&5
2762 ac_compiler=`set X $ac_compile; echo $2`
2763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2764 (eval $ac_compiler --version </dev/null >&5) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2769 (eval $ac_compiler -v </dev/null >&5) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2774 (eval $ac_compiler -V </dev/null >&5) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }
2778
2779 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2780 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2781 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h. */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2790
2791 int
2792 main ()
2793 {
2794 #ifndef __GNUC__
2795 choke me
2796 #endif
2797
2798 ;
2799 return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_cxx_werror_flag"
2812 || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 (eval $ac_try) 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2824 ac_compiler_gnu=yes
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 ac_compiler_gnu=no
2830 fi
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2833
2834 fi
2835 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2837 GXX=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CXXFLAGS=${CXXFLAGS+set}
2839 ac_save_CXXFLAGS=$CXXFLAGS
2840 CXXFLAGS="-g"
2841 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2842 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cxx_g+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h. */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2852
2853 int
2854 main ()
2855 {
2856
2857 ;
2858 return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_cxx_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 ac_cv_prog_cxx_g=yes
2884 else
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 ac_cv_prog_cxx_g=no
2889 fi
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 fi
2892 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2893 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2894 if test "$ac_test_CXXFLAGS" = set; then
2895 CXXFLAGS=$ac_save_CXXFLAGS
2896 elif test $ac_cv_prog_cxx_g = yes; then
2897 if test "$GXX" = yes; then
2898 CXXFLAGS="-g -O2"
2899 else
2900 CXXFLAGS="-g"
2901 fi
2902 else
2903 if test "$GXX" = yes; then
2904 CXXFLAGS="-O2"
2905 else
2906 CXXFLAGS=
2907 fi
2908 fi
2909 for ac_declaration in \
2910 '' \
2911 'extern "C" void std::exit (int) throw (); using std::exit;' \
2912 'extern "C" void std::exit (int); using std::exit;' \
2913 'extern "C" void exit (int) throw ();' \
2914 'extern "C" void exit (int);' \
2915 'void exit (int);'
2916 do
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 $ac_declaration
2924 #include <stdlib.h>
2925 int
2926 main ()
2927 {
2928 exit (42);
2929 ;
2930 return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_cxx_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 :
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 $ac_declaration
2970 int
2971 main ()
2972 {
2973 exit (42);
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>conftest.er1
2981 ac_status=$?
2982 grep -v '^ *+' conftest.er1 >conftest.err
2983 rm -f conftest.er1
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -z "$ac_cxx_werror_flag"
2988 || test ! -s conftest.err'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 (eval $ac_try) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 break
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 fi
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 done
3008 rm -f conftest*
3009 if test -n "$ac_declaration"; then
3010 echo '#ifdef __cplusplus' >>confdefs.h
3011 echo $ac_declaration >>confdefs.h
3012 echo '#endif' >>confdefs.h
3013 fi
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3021 CXXFLAGS="$save_CXXFLAGS"
3022
3023
3024
3025
3026
3027 am__api_version="1.9"
3028 # Find a good install program. We prefer a C program (faster),
3029 # so one script is as good as another. But avoid the broken or
3030 # incompatible versions:
3031 # SysV /etc/install, /usr/sbin/install
3032 # SunOS /usr/etc/install
3033 # IRIX /sbin/install
3034 # AIX /bin/install
3035 # AmigaOS /C/install, which installs bootblocks on floppy discs
3036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3039 # OS/2's system install, which has a completely different semantic
3040 # ./install, which can be erroneously created by make from ./install.sh.
3041 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3043 if test -z "$INSTALL"; then
3044 if test "${ac_cv_path_install+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 # Account for people who put trailing slashes in PATH elements.
3053 case $as_dir/ in
3054 ./ | .// | /cC/* | \
3055 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3056 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3057 /usr/ucb/* ) ;;
3058 *)
3059 # OSF1 and SCO ODT 3.0 have their own names for install.
3060 # Don't use installbsd from OSF since it installs stuff as root
3061 # by default.
3062 for ac_prog in ginstall scoinst install; do
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3065 if test $ac_prog = install &&
3066 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3067 # AIX install. It has an incompatible calling convention.
3068 :
3069 elif test $ac_prog = install &&
3070 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3071 # program-specific install script used by HP pwplus--don't use.
3072 :
3073 else
3074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3075 break 3
3076 fi
3077 fi
3078 done
3079 done
3080 ;;
3081 esac
3082 done
3083
3084
3085 fi
3086 if test "${ac_cv_path_install+set}" = set; then
3087 INSTALL=$ac_cv_path_install
3088 else
3089 # As a last resort, use the slow shell script. We don't cache a
3090 # path for INSTALL within a source directory, because that will
3091 # break other packages using the cache if that directory is
3092 # removed, or if the path is relative.
3093 INSTALL=$ac_install_sh
3094 fi
3095 fi
3096 echo "$as_me:$LINENO: result: $INSTALL" >&5
3097 echo "${ECHO_T}$INSTALL" >&6
3098
3099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3100 # It thinks the first close brace ends the variable substitution.
3101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3102
3103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3104
3105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3106
3107 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3109 # Just in case
3110 sleep 1
3111 echo timestamp > conftest.file
3112 # Do `set' in a subshell so we don't clobber the current shell's
3113 # arguments. Must try -L first in case configure is actually a
3114 # symlink; some systems play weird games with the mod time of symlinks
3115 # (eg FreeBSD returns the mod time of the symlink's containing
3116 # directory).
3117 if (
3118 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3119 if test "$*" = "X"; then
3120 # -L didn't work.
3121 set X `ls -t $srcdir/configure conftest.file`
3122 fi
3123 rm -f conftest.file
3124 if test "$*" != "X $srcdir/configure conftest.file" \
3125 && test "$*" != "X conftest.file $srcdir/configure"; then
3126
3127 # If neither matched, then we have a broken ls. This can happen
3128 # if, for instance, CONFIG_SHELL is bash and it inherits a
3129 # broken ls alias from the environment. This has actually
3130 # happened. Such a system could not be considered "sane".
3131 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3132 alias in your environment" >&5
3133 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3134 alias in your environment" >&2;}
3135 { (exit 1); exit 1; }; }
3136 fi
3137
3138 test "$2" = conftest.file
3139 )
3140 then
3141 # Ok.
3142 :
3143 else
3144 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3145 Check your system clock" >&5
3146 echo "$as_me: error: newly created file is older than distributed files!
3147 Check your system clock" >&2;}
3148 { (exit 1); exit 1; }; }
3149 fi
3150 echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3152 test "$program_prefix" != NONE &&
3153 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE &&
3156 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3157 # Double any \ or $. echo might interpret backslashes.
3158 # By default was `s,x,x', remove it if useless.
3159 cat <<\_ACEOF >conftest.sed
3160 s/[\\$]/&&/g;s/;s,x,x,$//
3161 _ACEOF
3162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3163 rm conftest.sed
3164
3165 # expand $ac_aux_dir to an absolute path
3166 am_aux_dir=`cd $ac_aux_dir && pwd`
3167
3168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3169 # Use eval to expand $SHELL
3170 if eval "$MISSING --run true"; then
3171 am_missing_run="$MISSING --run "
3172 else
3173 am_missing_run=
3174 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3176 fi
3177
3178 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3179 # We used to keeping the `.' as first argument, in order to
3180 # allow $(mkdir_p) to be used without argument. As in
3181 # $(mkdir_p) $(somedir)
3182 # where $(somedir) is conditionally defined. However this is wrong
3183 # for two reasons:
3184 # 1. if the package is installed by a user who cannot write `.'
3185 # make install will fail,
3186 # 2. the above comment should most certainly read
3187 # $(mkdir_p) $(DESTDIR)$(somedir)
3188 # so it does not work when $(somedir) is undefined and
3189 # $(DESTDIR) is not.
3190 # To support the latter case, we have to write
3191 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3192 # so the `.' trick is pointless.
3193 mkdir_p='mkdir -p --'
3194 else
3195 # On NextStep and OpenStep, the `mkdir' command does not
3196 # recognize any option. It will interpret all options as
3197 # directories to create, and then abort because `.' already
3198 # exists.
3199 for d in ./-p ./--version;
3200 do
3201 test -d $d && rmdir $d
3202 done
3203 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3204 if test -f "$ac_aux_dir/mkinstalldirs"; then
3205 mkdir_p='$(mkinstalldirs)'
3206 else
3207 mkdir_p='$(install_sh) -d'
3208 fi
3209 fi
3210
3211 for ac_prog in gawk mawk nawk awk
3212 do
3213 # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy $ac_prog; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_AWK+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 if test -n "$AWK"; then
3221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_AWK="$ac_prog"
3231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234 done
3235 done
3236
3237 fi
3238 fi
3239 AWK=$ac_cv_prog_AWK
3240 if test -n "$AWK"; then
3241 echo "$as_me:$LINENO: result: $AWK" >&5
3242 echo "${ECHO_T}$AWK" >&6
3243 else
3244 echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3246 fi
3247
3248 test -n "$AWK" && break
3249 done
3250
3251 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3252 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3253 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3254 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 cat >conftest.make <<\_ACEOF
3258 all:
3259 @echo 'ac_maketemp="$(MAKE)"'
3260 _ACEOF
3261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3262 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3263 if test -n "$ac_maketemp"; then
3264 eval ac_cv_prog_make_${ac_make}_set=yes
3265 else
3266 eval ac_cv_prog_make_${ac_make}_set=no
3267 fi
3268 rm -f conftest.make
3269 fi
3270 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3271 echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3273 SET_MAKE=
3274 else
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277 SET_MAKE="MAKE=${MAKE-make}"
3278 fi
3279
3280 rm -rf .tst 2>/dev/null
3281 mkdir .tst 2>/dev/null
3282 if test -d .tst; then
3283 am__leading_dot=.
3284 else
3285 am__leading_dot=_
3286 fi
3287 rmdir .tst 2>/dev/null
3288
3289 DEPDIR="${am__leading_dot}deps"
3290
3291 ac_config_commands="$ac_config_commands depfiles"
3292
3293
3294 am_make=${MAKE-make}
3295 cat > confinc << 'END'
3296 am__doit:
3297 @echo done
3298 .PHONY: am__doit
3299 END
3300 # If we don't find an include directive, just comment out the code.
3301 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3302 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3303 am__include="#"
3304 am__quote=
3305 _am_result=none
3306 # First try GNU make style include.
3307 echo "include confinc" > confmf
3308 # We grep out `Entering directory' and `Leaving directory'
3309 # messages which can occur if `w' ends up in MAKEFLAGS.
3310 # In particular we don't look at `^make:' because GNU make might
3311 # be invoked under some other name (usually "gmake"), in which
3312 # case it prints its new name instead of `make'.
3313 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3314 am__include=include
3315 am__quote=
3316 _am_result=GNU
3317 fi
3318 # Now try BSD make style include.
3319 if test "$am__include" = "#"; then
3320 echo '.include "confinc"' > confmf
3321 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3322 am__include=.include
3323 am__quote="\""
3324 _am_result=BSD
3325 fi
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: result: $_am_result" >&5
3330 echo "${ECHO_T}$_am_result" >&6
3331 rm -f confinc confmf
3332
3333 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3334 if test "${enable_dependency_tracking+set}" = set; then
3335 enableval="$enable_dependency_tracking"
3336
3337 fi;
3338 if test "x$enable_dependency_tracking" != xno; then
3339 am_depcomp="$ac_aux_dir/depcomp"
3340 AMDEPBACKSLASH='\'
3341 fi
3342
3343
3344 if test "x$enable_dependency_tracking" != xno; then
3345 AMDEP_TRUE=
3346 AMDEP_FALSE='#'
3347 else
3348 AMDEP_TRUE='#'
3349 AMDEP_FALSE=
3350 fi
3351
3352
3353
3354 # test to see if srcdir already configured
3355 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3356 test -f $srcdir/config.status; then
3357 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3358 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3359 { (exit 1); exit 1; }; }
3360 fi
3361
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364 if (cygpath --version) >/dev/null 2>/dev/null; then
3365 CYGPATH_W='cygpath -w'
3366 else
3367 CYGPATH_W=echo
3368 fi
3369 fi
3370
3371
3372 # Define the identity of the package.
3373 PACKAGE='libjava'
3374 VERSION='version-unused'
3375
3376
3377 cat >>confdefs.h <<_ACEOF
3378 #define PACKAGE "$PACKAGE"
3379 _ACEOF
3380
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define VERSION "$VERSION"
3384 _ACEOF
3385
3386 # Some tools Automake needs.
3387
3388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3389
3390
3391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3392
3393
3394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3395
3396
3397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3398
3399
3400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3401
3402 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3403
3404 # Installed binaries are usually stripped using `strip' when the user
3405 # run `make install-strip'. However `strip' might not be the right
3406 # tool to use in cross-compilation environments, therefore Automake
3407 # will honor the `STRIP' environment variable to overrule this program.
3408 if test "$cross_compiling" != no; then
3409 if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}strip; ac_word=$2
3412 echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_STRIP+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 if test -n "$STRIP"; then
3418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431 done
3432 done
3433
3434 fi
3435 fi
3436 STRIP=$ac_cv_prog_STRIP
3437 if test -n "$STRIP"; then
3438 echo "$as_me:$LINENO: result: $STRIP" >&5
3439 echo "${ECHO_T}$STRIP" >&6
3440 else
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 fi
3444
3445 fi
3446 if test -z "$ac_cv_prog_STRIP"; then
3447 ac_ct_STRIP=$STRIP
3448 # Extract the first word of "strip", so it can be a program name with args.
3449 set dummy strip; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455 if test -n "$ac_ct_STRIP"; then
3456 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_ac_ct_STRIP="strip"
3466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3468 fi
3469 done
3470 done
3471
3472 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3473 fi
3474 fi
3475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3476 if test -n "$ac_ct_STRIP"; then
3477 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3478 echo "${ECHO_T}$ac_ct_STRIP" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482 fi
3483
3484 STRIP=$ac_ct_STRIP
3485 else
3486 STRIP="$ac_cv_prog_STRIP"
3487 fi
3488
3489 fi
3490 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3491
3492 # We need awk for the "check" target. The system "awk" is bad on
3493 # some platforms.
3494 # Always define AMTAR for backward compatibility.
3495
3496 AMTAR=${AMTAR-"${am_missing_run}tar"}
3497
3498 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3499
3500
3501
3502
3503 depcc="$CC" am_compiler_list=
3504
3505 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3506 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3507 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3511 # We make a subdir and do the tests there. Otherwise we can end up
3512 # making bogus files that we don't know about and never remove. For
3513 # instance it was reported that on HP-UX the gcc test will end up
3514 # making a dummy file named `D' -- because `-MD' means `put the output
3515 # in D'.
3516 mkdir conftest.dir
3517 # Copy depcomp to subdir because otherwise we won't find it if we're
3518 # using a relative directory.
3519 cp "$am_depcomp" conftest.dir
3520 cd conftest.dir
3521 # We will build objects and dependencies in a subdirectory because
3522 # it helps to detect inapplicable dependency modes. For instance
3523 # both Tru64's cc and ICC support -MD to output dependencies as a
3524 # side effect of compilation, but ICC will put the dependencies in
3525 # the current directory while Tru64 will put them in the object
3526 # directory.
3527 mkdir sub
3528
3529 am_cv_CC_dependencies_compiler_type=none
3530 if test "$am_compiler_list" = ""; then
3531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3532 fi
3533 for depmode in $am_compiler_list; do
3534 # Setup a source with many dependencies, because some compilers
3535 # like to wrap large dependency lists on column 80 (with \), and
3536 # we should not choose a depcomp mode which is confused by this.
3537 #
3538 # We need to recreate these files for each test, as the compiler may
3539 # overwrite some of them when testing with obscure command lines.
3540 # This happens at least with the AIX C compiler.
3541 : > sub/conftest.c
3542 for i in 1 2 3 4 5 6; do
3543 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3544 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3545 # Solaris 8's {/usr,}/bin/sh.
3546 touch sub/conftst$i.h
3547 done
3548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3549
3550 case $depmode in
3551 nosideeffect)
3552 # after this tag, mechanisms are not by side-effect, so they'll
3553 # only be used when explicitly requested
3554 if test "x$enable_dependency_tracking" = xyes; then
3555 continue
3556 else
3557 break
3558 fi
3559 ;;
3560 none) break ;;
3561 esac
3562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3563 # mode. It turns out that the SunPro C++ compiler does not properly
3564 # handle `-M -o', and we need to detect this.
3565 if depmode=$depmode \
3566 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3568 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3569 >/dev/null 2>conftest.err &&
3570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3571 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3573 # icc doesn't choke on unknown options, it will just issue warnings
3574 # or remarks (even with -Werror). So we grep stderr for any message
3575 # that says an option was ignored or not supported.
3576 # When given -MP, icc 7.0 and 7.1 complain thusly:
3577 # icc: Command line warning: ignoring option '-M'; no argument required
3578 # The diagnosis changed in icc 8.0:
3579 # icc: Command line remark: option '-MP' not supported
3580 if (grep 'ignoring option' conftest.err ||
3581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3582 am_cv_CC_dependencies_compiler_type=$depmode
3583 break
3584 fi
3585 fi
3586 done
3587
3588 cd ..
3589 rm -rf conftest.dir
3590 else
3591 am_cv_CC_dependencies_compiler_type=none
3592 fi
3593
3594 fi
3595 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3596 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3598
3599
3600
3601 if
3602 test "x$enable_dependency_tracking" != xno \
3603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604 am__fastdepCC_TRUE=
3605 am__fastdepCC_FALSE='#'
3606 else
3607 am__fastdepCC_TRUE='#'
3608 am__fastdepCC_FALSE=
3609 fi
3610
3611
3612 depcc="$CXX" am_compiler_list=
3613
3614 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3615 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3616 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3620 # We make a subdir and do the tests there. Otherwise we can end up
3621 # making bogus files that we don't know about and never remove. For
3622 # instance it was reported that on HP-UX the gcc test will end up
3623 # making a dummy file named `D' -- because `-MD' means `put the output
3624 # in D'.
3625 mkdir conftest.dir
3626 # Copy depcomp to subdir because otherwise we won't find it if we're
3627 # using a relative directory.
3628 cp "$am_depcomp" conftest.dir
3629 cd conftest.dir
3630 # We will build objects and dependencies in a subdirectory because
3631 # it helps to detect inapplicable dependency modes. For instance
3632 # both Tru64's cc and ICC support -MD to output dependencies as a
3633 # side effect of compilation, but ICC will put the dependencies in
3634 # the current directory while Tru64 will put them in the object
3635 # directory.
3636 mkdir sub
3637
3638 am_cv_CXX_dependencies_compiler_type=none
3639 if test "$am_compiler_list" = ""; then
3640 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641 fi
3642 for depmode in $am_compiler_list; do
3643 # Setup a source with many dependencies, because some compilers
3644 # like to wrap large dependency lists on column 80 (with \), and
3645 # we should not choose a depcomp mode which is confused by this.
3646 #
3647 # We need to recreate these files for each test, as the compiler may
3648 # overwrite some of them when testing with obscure command lines.
3649 # This happens at least with the AIX C compiler.
3650 : > sub/conftest.c
3651 for i in 1 2 3 4 5 6; do
3652 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3654 # Solaris 8's {/usr,}/bin/sh.
3655 touch sub/conftst$i.h
3656 done
3657 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3658
3659 case $depmode in
3660 nosideeffect)
3661 # after this tag, mechanisms are not by side-effect, so they'll
3662 # only be used when explicitly requested
3663 if test "x$enable_dependency_tracking" = xyes; then
3664 continue
3665 else
3666 break
3667 fi
3668 ;;
3669 none) break ;;
3670 esac
3671 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3672 # mode. It turns out that the SunPro C++ compiler does not properly
3673 # handle `-M -o', and we need to detect this.
3674 if depmode=$depmode \
3675 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3677 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3678 >/dev/null 2>conftest.err &&
3679 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3680 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3681 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3682 # icc doesn't choke on unknown options, it will just issue warnings
3683 # or remarks (even with -Werror). So we grep stderr for any message
3684 # that says an option was ignored or not supported.
3685 # When given -MP, icc 7.0 and 7.1 complain thusly:
3686 # icc: Command line warning: ignoring option '-M'; no argument required
3687 # The diagnosis changed in icc 8.0:
3688 # icc: Command line remark: option '-MP' not supported
3689 if (grep 'ignoring option' conftest.err ||
3690 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3691 am_cv_CXX_dependencies_compiler_type=$depmode
3692 break
3693 fi
3694 fi
3695 done
3696
3697 cd ..
3698 rm -rf conftest.dir
3699 else
3700 am_cv_CXX_dependencies_compiler_type=none
3701 fi
3702
3703 fi
3704 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3705 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3706 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3707
3708
3709
3710 if
3711 test "x$enable_dependency_tracking" != xno \
3712 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3713 am__fastdepCXX_TRUE=
3714 am__fastdepCXX_FALSE='#'
3715 else
3716 am__fastdepCXX_TRUE='#'
3717 am__fastdepCXX_FALSE=
3718 fi
3719
3720
3721
3722
3723 if test -n "$ac_tool_prefix"; then
3724 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3725 set dummy ${ac_tool_prefix}as; ac_word=$2
3726 echo "$as_me:$LINENO: checking for $ac_word" >&5
3727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3728 if test "${ac_cv_prog_AS+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731 if test -n "$AS"; then
3732 ac_cv_prog_AS="$AS" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741 ac_cv_prog_AS="${ac_tool_prefix}as"
3742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745 done
3746 done
3747
3748 fi
3749 fi
3750 AS=$ac_cv_prog_AS
3751 if test -n "$AS"; then
3752 echo "$as_me:$LINENO: result: $AS" >&5
3753 echo "${ECHO_T}$AS" >&6
3754 else
3755 echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757 fi
3758
3759 fi
3760 if test -z "$ac_cv_prog_AS"; then
3761 ac_ct_AS=$AS
3762 # Extract the first word of "as", so it can be a program name with args.
3763 set dummy as; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 if test -n "$ac_ct_AS"; then
3770 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_ac_ct_AS="as"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783 done
3784 done
3785
3786 fi
3787 fi
3788 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3789 if test -n "$ac_ct_AS"; then
3790 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3791 echo "${ECHO_T}$ac_ct_AS" >&6
3792 else
3793 echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797 AS=$ac_ct_AS
3798 else
3799 AS="$ac_cv_prog_AS"
3800 fi
3801
3802 if test -n "$ac_tool_prefix"; then
3803 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}ld; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_LD+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 if test -n "$LD"; then
3811 ac_cv_prog_LD="$LD" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_LD="${ac_tool_prefix}ld"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824 done
3825 done
3826
3827 fi
3828 fi
3829 LD=$ac_cv_prog_LD
3830 if test -n "$LD"; then
3831 echo "$as_me:$LINENO: result: $LD" >&5
3832 echo "${ECHO_T}$LD" >&6
3833 else
3834 echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 fi
3837
3838 fi
3839 if test -z "$ac_cv_prog_LD"; then
3840 ac_ct_LD=$LD
3841 # Extract the first word of "ld", so it can be a program name with args.
3842 set dummy ld; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -n "$ac_ct_LD"; then
3849 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_ac_ct_LD="ld"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862 done
3863 done
3864
3865 fi
3866 fi
3867 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3868 if test -n "$ac_ct_LD"; then
3869 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3870 echo "${ECHO_T}$ac_ct_LD" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874 fi
3875
3876 LD=$ac_ct_LD
3877 else
3878 LD="$ac_cv_prog_LD"
3879 fi
3880
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}ar; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_AR+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 if test -n "$AR"; then
3890 ac_cv_prog_AR="$AR" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_AR="${ac_tool_prefix}ar"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905
3906 fi
3907 fi
3908 AR=$ac_cv_prog_AR
3909 if test -n "$AR"; then
3910 echo "$as_me:$LINENO: result: $AR" >&5
3911 echo "${ECHO_T}$AR" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 fi
3916
3917 fi
3918 if test -z "$ac_cv_prog_AR"; then
3919 ac_ct_AR=$AR
3920 # Extract the first word of "ar", so it can be a program name with args.
3921 set dummy ar; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if test -n "$ac_ct_AR"; then
3928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_AR="ar"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943
3944 fi
3945 fi
3946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3947 if test -n "$ac_ct_AR"; then
3948 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3949 echo "${ECHO_T}$ac_ct_AR" >&6
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3953 fi
3954
3955 AR=$ac_ct_AR
3956 else
3957 AR="$ac_cv_prog_AR"
3958 fi
3959
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_RANLIB+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 if test -n "$RANLIB"; then
3969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3981 fi
3982 done
3983 done
3984
3985 fi
3986 fi
3987 RANLIB=$ac_cv_prog_RANLIB
3988 if test -n "$RANLIB"; then
3989 echo "$as_me:$LINENO: result: $RANLIB" >&5
3990 echo "${ECHO_T}$RANLIB" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996 fi
3997 if test -z "$ac_cv_prog_RANLIB"; then
3998 ac_ct_RANLIB=$RANLIB
3999 # Extract the first word of "ranlib", so it can be a program name with args.
4000 set dummy ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 if test -n "$ac_ct_RANLIB"; then
4007 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_ac_ct_RANLIB="ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020 done
4021 done
4022
4023 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4024 fi
4025 fi
4026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027 if test -n "$ac_ct_RANLIB"; then
4028 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4030 else
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033 fi
4034
4035 RANLIB=$ac_ct_RANLIB
4036 else
4037 RANLIB="$ac_cv_prog_RANLIB"
4038 fi
4039
4040 for ac_prog in gawk mawk nawk awk
4041 do
4042 # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_AWK+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 if test -n "$AWK"; then
4050 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_AWK="$ac_prog"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065
4066 fi
4067 fi
4068 AWK=$ac_cv_prog_AWK
4069 if test -n "$AWK"; then
4070 echo "$as_me:$LINENO: result: $AWK" >&5
4071 echo "${ECHO_T}$AWK" >&6
4072 else
4073 echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4075 fi
4076
4077 test -n "$AWK" && break
4078 done
4079
4080 for ac_prog in jar fastjar gjar
4081 do
4082 # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_JAR+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 if test -n "$JAR"; then
4090 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_JAR="$ac_prog"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 JAR=$ac_cv_prog_JAR
4109 if test -n "$JAR"; then
4110 echo "$as_me:$LINENO: result: $JAR" >&5
4111 echo "${ECHO_T}$JAR" >&6
4112 else
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117 test -n "$JAR" && break
4118 done
4119 test -n "$JAR" || JAR="no"
4120
4121 # Extract the first word of "zip", so it can be a program name with args.
4122 set dummy zip; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_path_ZIP+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 case $ZIP in
4129 [\\/]* | ?:[\\/]*)
4130 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4131 ;;
4132 *)
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144 done
4145 done
4146
4147 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4148 ;;
4149 esac
4150 fi
4151 ZIP=$ac_cv_path_ZIP
4152
4153 if test -n "$ZIP"; then
4154 echo "$as_me:$LINENO: result: $ZIP" >&5
4155 echo "${ECHO_T}$ZIP" >&6
4156 else
4157 echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4159 fi
4160
4161 # Extract the first word of "unzip", so it can be a program name with args.
4162 set dummy unzip; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_path_UNZIP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 case $UNZIP in
4169 [\\/]* | ?:[\\/]*)
4170 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4171 ;;
4172 *)
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184 done
4185 done
4186
4187 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4188 ;;
4189 esac
4190 fi
4191 UNZIP=$ac_cv_path_UNZIP
4192
4193 if test -n "$UNZIP"; then
4194 echo "$as_me:$LINENO: result: $UNZIP" >&5
4195 echo "${ECHO_T}$UNZIP" >&6
4196 else
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201
4202
4203 if test "$JAR" = no; then
4204 BASH_JAR_TRUE=
4205 BASH_JAR_FALSE='#'
4206 else
4207 BASH_JAR_TRUE='#'
4208 BASH_JAR_FALSE=
4209 fi
4210
4211 if test "$ZIP" = no; then
4212 if test "$JAR" = no; then
4213 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4214 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4215 { (exit 1); exit 1; }; }
4216 fi
4217 else
4218 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4219 JAR=`pwd`/scripts/jar
4220 fi
4221
4222 # Find a good install program. We prefer a C program (faster),
4223 # so one script is as good as another. But avoid the broken or
4224 # incompatible versions:
4225 # SysV /etc/install, /usr/sbin/install
4226 # SunOS /usr/etc/install
4227 # IRIX /sbin/install
4228 # AIX /bin/install
4229 # AmigaOS /C/install, which installs bootblocks on floppy discs
4230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4233 # OS/2's system install, which has a completely different semantic
4234 # ./install, which can be erroneously created by make from ./install.sh.
4235 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4237 if test -z "$INSTALL"; then
4238 if test "${ac_cv_path_install+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 # Account for people who put trailing slashes in PATH elements.
4247 case $as_dir/ in
4248 ./ | .// | /cC/* | \
4249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4250 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4251 /usr/ucb/* ) ;;
4252 *)
4253 # OSF1 and SCO ODT 3.0 have their own names for install.
4254 # Don't use installbsd from OSF since it installs stuff as root
4255 # by default.
4256 for ac_prog in ginstall scoinst install; do
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4259 if test $ac_prog = install &&
4260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4261 # AIX install. It has an incompatible calling convention.
4262 :
4263 elif test $ac_prog = install &&
4264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4265 # program-specific install script used by HP pwplus--don't use.
4266 :
4267 else
4268 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4269 break 3
4270 fi
4271 fi
4272 done
4273 done
4274 ;;
4275 esac
4276 done
4277
4278
4279 fi
4280 if test "${ac_cv_path_install+set}" = set; then
4281 INSTALL=$ac_cv_path_install
4282 else
4283 # As a last resort, use the slow shell script. We don't cache a
4284 # path for INSTALL within a source directory, because that will
4285 # break other packages using the cache if that directory is
4286 # removed, or if the path is relative.
4287 INSTALL=$ac_install_sh
4288 fi
4289 fi
4290 echo "$as_me:$LINENO: result: $INSTALL" >&5
4291 echo "${ECHO_T}$INSTALL" >&6
4292
4293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4294 # It thinks the first close brace ends the variable substitution.
4295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4296
4297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4298
4299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4300
4301
4302 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4303 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4304 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4305 if test "${enable_maintainer_mode+set}" = set; then
4306 enableval="$enable_maintainer_mode"
4307 USE_MAINTAINER_MODE=$enableval
4308 else
4309 USE_MAINTAINER_MODE=no
4310 fi;
4311 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4312 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4313
4314
4315 if test $USE_MAINTAINER_MODE = yes; then
4316 MAINTAINER_MODE_TRUE=
4317 MAINTAINER_MODE_FALSE='#'
4318 else
4319 MAINTAINER_MODE_TRUE='#'
4320 MAINTAINER_MODE_FALSE=
4321 fi
4322
4323 MAINT=$MAINTAINER_MODE_TRUE
4324
4325
4326
4327
4328
4329 # configure.host sets the following important variables
4330 # libgcj_cflags - host specific C compiler flags
4331 # libgcj_cxxflags - host specific C++ compiler flags
4332 # libgcj_javaflags - host specific Java compiler flags
4333
4334 libgcj_cflags=
4335 libgcj_cxxflags=
4336 libgcj_javaflags=
4337
4338 . ${srcdir}/configure.host
4339
4340 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4341 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4342 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4346 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4347 acl_cv_prog_gnu_ld=yes
4348 else
4349 acl_cv_prog_gnu_ld=no
4350 fi
4351 fi
4352 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4353 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4354 with_gnu_ld=$acl_cv_prog_gnu_ld
4355
4356 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4357 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4358 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361
4362 acl_cv_prog_gnu_ld_symbolic=no
4363
4364 if test x"$with_gnu_ld" = x"yes"; then
4365 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4366 acl_cv_prog_gnu_ld_symbolic=yes
4367 fi
4368 fi
4369 fi
4370 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4371 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4372 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4373 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4374 else
4375 SYMBOLIC_LDFLAGS=''
4376 fi
4377
4378 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4379 if test -z "$libgcj_ld_symbolic"; then
4380 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4381 fi
4382
4383 LIBGCJ_CFLAGS="${libgcj_cflags}"
4384 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4385 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4386 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4387 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4388
4389
4390
4391
4392
4393
4394 # Only use libltdl for non-newlib builds.
4395 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4396 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4397 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4398 library_names_spec=
4399 libname_spec='lib$name'
4400 soname_spec=
4401 shrext=".so"
4402 postinstall_cmds=
4403 postuninstall_cmds=
4404 finish_cmds=
4405 finish_eval=
4406 shlibpath_var=
4407 shlibpath_overrides_runpath=unknown
4408 version_type=none
4409 dynamic_linker="$host_os ld.so"
4410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4411 if test "$GCC" = yes; then
4412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4413 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4414 # if the path contains ";" then we assume it to be the separator
4415 # otherwise default to the standard path separator (i.e. ":") - it is
4416 # assumed that no part of a normal pathname contains ";" but that should
4417 # okay in the real world where ";" in dirpaths is itself problematic.
4418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4419 else
4420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4421 fi
4422 else
4423 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4424 fi
4425 need_lib_prefix=unknown
4426 hardcode_into_libs=no
4427
4428 # when you set need_version to no, make sure it does not cause -set_version
4429 # flags to be left without arguments
4430 need_version=unknown
4431
4432 case $host_os in
4433 aix3*)
4434 version_type=linux
4435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4436 shlibpath_var=LIBPATH
4437
4438 # AIX 3 has no versioning support, so we append a major version to the name.
4439 soname_spec='${libname}${release}${shared_ext}$major'
4440 ;;
4441
4442 aix4* | aix5*)
4443 version_type=linux
4444 need_lib_prefix=no
4445 need_version=no
4446 hardcode_into_libs=yes
4447 if test "$host_cpu" = ia64; then
4448 # AIX 5 supports IA64
4449 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4450 shlibpath_var=LD_LIBRARY_PATH
4451 else
4452 # With GCC up to 2.95.x, collect2 would create an import file
4453 # for dependence libraries. The import file would start with
4454 # the line `#! .'. This would cause the generated library to
4455 # depend on `.', always an invalid library. This was fixed in
4456 # development snapshots of GCC prior to 3.0.
4457 case $host_os in
4458 aix4 | aix4.[01] | aix4.[01].*)
4459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4460 echo ' yes '
4461 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4462 :
4463 else
4464 can_build_shared=no
4465 fi
4466 ;;
4467 esac
4468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4469 # soname into executable. Probably we can add versioning support to
4470 # collect2, so additional links can be useful in future.
4471 if test "$aix_use_runtimelinking" = yes; then
4472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4473 # instead of lib<name>.a to let people know that these are not
4474 # typical AIX shared libraries.
4475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4476 else
4477 # We preserve .a as extension for shared libraries through AIX4.2
4478 # and later when we are not doing run time linking.
4479 library_names_spec='${libname}${release}.a $libname.a'
4480 soname_spec='${libname}${release}${shared_ext}$major'
4481 fi
4482 shlibpath_var=LIBPATH
4483 fi
4484 ;;
4485
4486 amigaos*)
4487 library_names_spec='$libname.ixlibrary $libname.a'
4488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4489 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'
4490 ;;
4491
4492 beos*)
4493 library_names_spec='${libname}${shared_ext}'
4494 dynamic_linker="$host_os ld.so"
4495 shlibpath_var=LIBRARY_PATH
4496 ;;
4497
4498 bsdi4*)
4499 version_type=linux
4500 need_version=no
4501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4502 soname_spec='${libname}${release}${shared_ext}$major'
4503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4504 shlibpath_var=LD_LIBRARY_PATH
4505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4507 # the default ld.so.conf also contains /usr/contrib/lib and
4508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4509 # libtool to hard-code these into programs
4510 ;;
4511
4512 cygwin* | mingw* | pw32*)
4513 version_type=windows
4514 shrext=".dll"
4515 need_version=no
4516 need_lib_prefix=no
4517
4518 case $GCC,$host_os in
4519 yes,cygwin* | yes,mingw* | yes,pw32*)
4520 library_names_spec='$libname.dll.a'
4521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4522 postinstall_cmds='base_file=`basename \${file}`~
4523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4524 dldir=$destdir/`dirname \$dlpath`~
4525 test -d \$dldir || mkdir -p \$dldir~
4526 $install_prog $dir/$dlname \$dldir/$dlname'
4527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4528 dlpath=$dir/\$dldll~
4529 $rm \$dlpath'
4530 shlibpath_overrides_runpath=yes
4531
4532 case $host_os in
4533 cygwin*)
4534 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4535 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4536 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4537 ;;
4538 mingw*)
4539 # MinGW DLLs use traditional 'lib' prefix
4540 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4542 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4543 # It is most probably a Windows format PATH printed by
4544 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4545 # path with ; separators, and with drive letters. We can handle the
4546 # drive letters (cygwin fileutils understands them), so leave them,
4547 # especially as we might pass files found there to a mingw objdump,
4548 # which wouldn't understand a cygwinified path. Ahh.
4549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4550 else
4551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4552 fi
4553 ;;
4554 pw32*)
4555 # pw32 DLLs use 'pw' prefix rather than 'lib'
4556 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4557 ;;
4558 esac
4559 ;;
4560
4561 *)
4562 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4563 ;;
4564 esac
4565 dynamic_linker='Win32 ld.exe'
4566 # FIXME: first we should search . and the directory the executable is in
4567 shlibpath_var=PATH
4568 ;;
4569
4570 darwin* | rhapsody*)
4571 dynamic_linker="$host_os dyld"
4572 version_type=darwin
4573 need_lib_prefix=no
4574 need_version=no
4575 # FIXME: Relying on posixy $() will cause problems for
4576 # cross-compilation, but unfortunately the echo tests do not
4577 # yet detect zsh echo's removal of \ escapes.
4578 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4579 soname_spec='${libname}${release}${major}$shared_ext'
4580 shlibpath_overrides_runpath=yes
4581 shlibpath_var=DYLD_LIBRARY_PATH
4582 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4583 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4584 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4585 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"`
4586 fi
4587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4588 ;;
4589
4590 dgux*)
4591 version_type=linux
4592 need_lib_prefix=no
4593 need_version=no
4594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4595 soname_spec='${libname}${release}${shared_ext}$major'
4596 shlibpath_var=LD_LIBRARY_PATH
4597 ;;
4598
4599 freebsd1*)
4600 dynamic_linker=no
4601 ;;
4602
4603 freebsd*)
4604 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4605 version_type=freebsd-$objformat
4606 case $version_type in
4607 freebsd-elf*)
4608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4609 need_version=no
4610 need_lib_prefix=no
4611 ;;
4612 freebsd-*)
4613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4614 need_version=yes
4615 ;;
4616 esac
4617 shlibpath_var=LD_LIBRARY_PATH
4618 case $host_os in
4619 freebsd2*)
4620 shlibpath_overrides_runpath=yes
4621 ;;
4622 freebsd3.01* | freebsdelf3.01*)
4623 shlibpath_overrides_runpath=yes
4624 hardcode_into_libs=yes
4625 ;;
4626 *) # from 3.2 on
4627 shlibpath_overrides_runpath=no
4628 hardcode_into_libs=yes
4629 ;;
4630 esac
4631 ;;
4632
4633 gnu*)
4634 version_type=linux
4635 need_lib_prefix=no
4636 need_version=no
4637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4638 soname_spec='${libname}${release}${shared_ext}$major'
4639 shlibpath_var=LD_LIBRARY_PATH
4640 hardcode_into_libs=yes
4641 ;;
4642
4643 hpux9* | hpux10* | hpux11*)
4644 # Give a soname corresponding to the major version so that dld.sl refuses to
4645 # link against other versions.
4646 version_type=sunos
4647 need_lib_prefix=no
4648 need_version=no
4649 case "$host_cpu" in
4650 ia64*)
4651 shrext='.so'
4652 hardcode_into_libs=yes
4653 dynamic_linker="$host_os dld.so"
4654 shlibpath_var=LD_LIBRARY_PATH
4655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4657 soname_spec='${libname}${release}${shared_ext}$major'
4658 if test "X$HPUX_IA64_MODE" = X32; then
4659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4660 else
4661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4662 fi
4663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4664 ;;
4665 hppa*64*)
4666 shrext='.sl'
4667 hardcode_into_libs=yes
4668 dynamic_linker="$host_os dld.sl"
4669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4672 soname_spec='${libname}${release}${shared_ext}$major'
4673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4675 ;;
4676 *)
4677 shrext='.sl'
4678 dynamic_linker="$host_os dld.sl"
4679 shlibpath_var=SHLIB_PATH
4680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4682 soname_spec='${libname}${release}${shared_ext}$major'
4683 ;;
4684 esac
4685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4686 postinstall_cmds='chmod 555 $lib'
4687 ;;
4688
4689 irix5* | irix6* | nonstopux*)
4690 case $host_os in
4691 nonstopux*) version_type=nonstopux ;;
4692 *)
4693 if test "$lt_cv_prog_gnu_ld" = yes; then
4694 version_type=linux
4695 else
4696 version_type=irix
4697 fi ;;
4698 esac
4699 need_lib_prefix=no
4700 need_version=no
4701 soname_spec='${libname}${release}${shared_ext}$major'
4702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4703 case $host_os in
4704 irix5* | nonstopux*)
4705 libsuff= shlibsuff=
4706 ;;
4707 *)
4708 case $LD in # libtool.m4 will add one of these switches to LD
4709 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4710 libsuff= shlibsuff= libmagic=32-bit;;
4711 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4712 libsuff=32 shlibsuff=N32 libmagic=N32;;
4713 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4714 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4715 *) libsuff= shlibsuff= libmagic=never-match;;
4716 esac
4717 ;;
4718 esac
4719 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4720 shlibpath_overrides_runpath=no
4721 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4722 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4723 hardcode_into_libs=yes
4724 ;;
4725
4726 # No shared lib support for Linux oldld, aout, or coff.
4727 linux*oldld* | linux*aout* | linux*coff*)
4728 dynamic_linker=no
4729 ;;
4730
4731 # This must be Linux ELF.
4732 linux*|k*bsd*-gnu)
4733 version_type=linux
4734 need_lib_prefix=no
4735 need_version=no
4736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4737 soname_spec='${libname}${release}${shared_ext}$major'
4738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4739 shlibpath_var=LD_LIBRARY_PATH
4740 shlibpath_overrides_runpath=no
4741 # This implies no fast_install, which is unacceptable.
4742 # Some rework will be needed to allow for fast_install
4743 # before this can be enabled.
4744 hardcode_into_libs=yes
4745
4746 # We used to test for /lib/ld.so.1 and disable shared libraries on
4747 # powerpc, because MkLinux only supported shared libraries with the
4748 # GNU dynamic linker. Since this was broken with cross compilers,
4749 # most powerpc-linux boxes support dynamic linking these days and
4750 # people can always --disable-shared, the test was removed, and we
4751 # assume the GNU/Linux dynamic linker is in use.
4752 dynamic_linker='GNU/Linux ld.so'
4753 ;;
4754
4755 netbsd*)
4756 version_type=sunos
4757 need_lib_prefix=no
4758 need_version=no
4759 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4762 dynamic_linker='NetBSD (a.out) ld.so'
4763 else
4764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4765 soname_spec='${libname}${release}${shared_ext}$major'
4766 dynamic_linker='NetBSD ld.elf_so'
4767 fi
4768 shlibpath_var=LD_LIBRARY_PATH
4769 shlibpath_overrides_runpath=yes
4770 hardcode_into_libs=yes
4771 ;;
4772
4773 newsos6)
4774 version_type=linux
4775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4776 shlibpath_var=LD_LIBRARY_PATH
4777 shlibpath_overrides_runpath=yes
4778 ;;
4779
4780 nto-qnx)
4781 version_type=linux
4782 need_lib_prefix=no
4783 need_version=no
4784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4785 soname_spec='${libname}${release}${shared_ext}$major'
4786 shlibpath_var=LD_LIBRARY_PATH
4787 shlibpath_overrides_runpath=yes
4788 ;;
4789
4790 openbsd*)
4791 version_type=sunos
4792 need_lib_prefix=no
4793 need_version=no
4794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4796 shlibpath_var=LD_LIBRARY_PATH
4797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4798 case $host_os in
4799 openbsd2.[89] | openbsd2.[89].*)
4800 shlibpath_overrides_runpath=no
4801 ;;
4802 *)
4803 shlibpath_overrides_runpath=yes
4804 ;;
4805 esac
4806 else
4807 shlibpath_overrides_runpath=yes
4808 fi
4809 ;;
4810
4811 os2*)
4812 libname_spec='$name'
4813 shrext=".dll"
4814 need_lib_prefix=no
4815 library_names_spec='$libname${shared_ext} $libname.a'
4816 dynamic_linker='OS/2 ld.exe'
4817 shlibpath_var=LIBPATH
4818 ;;
4819
4820 osf3* | osf4* | osf5*)
4821 version_type=osf
4822 need_lib_prefix=no
4823 need_version=no
4824 soname_spec='${libname}${release}${shared_ext}$major'
4825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4826 shlibpath_var=LD_LIBRARY_PATH
4827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4828 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4829 ;;
4830
4831 sco3.2v5*)
4832 version_type=osf
4833 soname_spec='${libname}${release}${shared_ext}$major'
4834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4835 shlibpath_var=LD_LIBRARY_PATH
4836 ;;
4837
4838 solaris*)
4839 version_type=linux
4840 need_lib_prefix=no
4841 need_version=no
4842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4843 soname_spec='${libname}${release}${shared_ext}$major'
4844 shlibpath_var=LD_LIBRARY_PATH
4845 shlibpath_overrides_runpath=yes
4846 hardcode_into_libs=yes
4847 # ldd complains unless libraries are executable
4848 postinstall_cmds='chmod +x $lib'
4849 ;;
4850
4851 sunos4*)
4852 version_type=sunos
4853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4855 shlibpath_var=LD_LIBRARY_PATH
4856 shlibpath_overrides_runpath=yes
4857 if test "$with_gnu_ld" = yes; then
4858 need_lib_prefix=no
4859 fi
4860 need_version=yes
4861 ;;
4862
4863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4864 version_type=linux
4865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4866 soname_spec='${libname}${release}${shared_ext}$major'
4867 shlibpath_var=LD_LIBRARY_PATH
4868 case $host_vendor in
4869 sni)
4870 shlibpath_overrides_runpath=no
4871 need_lib_prefix=no
4872 export_dynamic_flag_spec='${wl}-Blargedynsym'
4873 runpath_var=LD_RUN_PATH
4874 ;;
4875 siemens)
4876 need_lib_prefix=no
4877 ;;
4878 motorola)
4879 need_lib_prefix=no
4880 need_version=no
4881 shlibpath_overrides_runpath=no
4882 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4883 ;;
4884 esac
4885 ;;
4886
4887 sysv4*MP*)
4888 if test -d /usr/nec ;then
4889 version_type=linux
4890 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4891 soname_spec='$libname${shared_ext}.$major'
4892 shlibpath_var=LD_LIBRARY_PATH
4893 fi
4894 ;;
4895
4896 uts4*)
4897 version_type=linux
4898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4899 soname_spec='${libname}${release}${shared_ext}$major'
4900 shlibpath_var=LD_LIBRARY_PATH
4901 ;;
4902
4903 *)
4904 dynamic_linker=no
4905 ;;
4906 esac
4907 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4908 echo "${ECHO_T}$dynamic_linker" >&6
4909 test "$dynamic_linker" = no && can_build_shared=no
4910
4911
4912 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4913 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4914 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 libltdl_cv_shlibpath_var="$shlibpath_var"
4918 fi
4919 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4920 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4921 if test -n "$libltdl_cv_shlibpath_var"; then
4922
4923 cat >>confdefs.h <<_ACEOF
4924 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4925 _ACEOF
4926
4927 fi
4928
4929 fi
4930
4931 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4932
4933
4934 # See if the user has requested runtime debugging.
4935 LIBGCJDEBUG="disable"
4936
4937 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4938 if test "${enable_libgcj_debug+set}" = set; then
4939 enableval="$enable_libgcj_debug"
4940 if test "$enable_libgcj_debug" = yes; then
4941
4942 cat >>confdefs.h <<\_ACEOF
4943 #define DEBUG 1
4944 _ACEOF
4945
4946 LIBGCJDEBUG="enable"
4947 fi
4948 fi;
4949
4950
4951 # Check whether --with-escher or --without-escher was given.
4952 if test "${with_escher+set}" = set; then
4953 withval="$with_escher"
4954
4955 fi;
4956 case "$with_escher" in
4957 "")
4958 use_escher=false
4959 ;;
4960 "no")
4961 use_escher=false
4962 ;;
4963 "yes")
4964 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
4965 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
4966 { (exit 1); exit 1; }; }
4967 ;;
4968 *)
4969 use_escher=true
4970 ;;
4971 esac
4972
4973 # Determine which AWT peer libraries to build
4974 # Check whether --enable-java-awt or --disable-java-awt was given.
4975 if test "${enable_java_awt+set}" = set; then
4976 enableval="$enable_java_awt"
4977
4978 fi;
4979
4980 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4981 use_xlib_awt=""
4982 use_gtk_awt=""
4983 use_qt_awt=""
4984 use_x_awt=""
4985 # The default toolkit to use is the first one specified.
4986 TOOLKIT=
4987
4988
4989 for peer in $peerlibs ; do
4990 case $peer in
4991 xlib)
4992 if test "$no_x" = yes; then
4993 echo "*** xlib peers requested but no X library available" 1>&2
4994 exit 1
4995 else
4996 use_xlib_awt="yes"
4997 if test -z "$TOOLKIT"; then
4998 TOOLKIT=gnu.awt.xlib.XToolkit
4999 fi
5000 fi
5001 ;;
5002 gtk)
5003 if test "$no_x" = yes; then
5004 echo "*** gtk peers requested but no X library available" 1>&2
5005 exit 1
5006 else
5007 use_gtk_awt=yes
5008 if test -z "$TOOLKIT"; then
5009 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5010 fi
5011 fi
5012 ;;
5013 qt)
5014 if test "$no_x" = yes; then
5015 # Perhaps we should admit the possibility of embedded Qt.
5016 echo "*** Qt peers requested but no X library available" 1>&2
5017 exit 1
5018 else
5019 use_qt_awt=yes
5020 if test -z "$TOOLKIT"; then
5021 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5022 fi
5023 fi
5024 ;;
5025 x)
5026 use_x_awt=yes
5027 if test -z "$TOOLKIT"; then
5028 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5029 fi
5030 ;;
5031 no)
5032 use_xlib_awt=
5033 use_gtk_awt=
5034 use_qt_awt=
5035 use_x_awt=
5036 break
5037 ;;
5038 *)
5039 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5040 exit 1
5041 esac
5042 done
5043
5044
5045
5046 if test "$use_xlib_awt" = yes; then
5047 XLIB_AWT_TRUE=
5048 XLIB_AWT_FALSE='#'
5049 else
5050 XLIB_AWT_TRUE='#'
5051 XLIB_AWT_FALSE=
5052 fi
5053
5054
5055
5056 if test "$use_x_awt" = yes; then
5057 X_AWT_TRUE=
5058 X_AWT_FALSE='#'
5059 else
5060 X_AWT_TRUE='#'
5061 X_AWT_FALSE=
5062 fi
5063
5064
5065
5066 cat >>confdefs.h <<_ACEOF
5067 #define AWT_TOOLKIT "$TOOLKIT"
5068 _ACEOF
5069
5070
5071
5072 cat >>confdefs.h <<_ACEOF
5073 #define LIBGCJ_PREFIX "$prefix"
5074 _ACEOF
5075
5076
5077 # Create standard.omit based on decisions we just made.
5078 cp $srcdir/standard.omit.in standard.omit
5079 if test "$use_xlib_awt" != yes; then
5080 echo gnu/awt/xlib >> standard.omit
5081 echo gnu/gcj/xlib >> standard.omit
5082 fi
5083 if test "$use_x_awt" != yes; then
5084 echo gnu/java/awt/peer/x >> standard.omit
5085 fi
5086
5087 if test -z "${with_multisubdir}"; then
5088 builddotdot=.
5089 else
5090 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5091 fi
5092
5093 NATIVE=yes
5094
5095 # Which gcj and host gcj (for ecjx) do we use?
5096 which_gcj=default
5097 host_exeext=${ac_exeext}
5098 GCJ_FOR_ECJX=
5099 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5100 if test -n "${with_cross_host}"; then
5101 # We are being configured with a cross compiler. We can't
5102 # use ac_exeext, because that is for the target platform.
5103 NATIVE=no
5104 cross_host_exeext=
5105 GCJ_FOR_ECJX="${with_cross_host}-gcj"
5106 case "${with_cross_host}" in
5107 *mingw* | *cygwin*)
5108 cross_host_exeext=.exe
5109 ;;
5110 esac
5111 host_exeext=${cross_host_exeext}
5112 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5113 if test x"$build_noncanonical" = x"$with_cross_host"; then
5114 # Ordinary cross (host!=target and host=build)
5115 which_gcj=built
5116 else
5117 # Canadian cross (host!=target and host!=build)
5118 which_gcj=cross
5119 fi
5120 else
5121 which_gcj=cross
5122 fi
5123 else
5124 # We are being configured with a native or crossed-native compiler
5125 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5126 if test x"$build" = x"$host"; then
5127 # True native build (host=target and host=build)
5128 which_gcj=built
5129 else
5130 # Crossed-native build (host=target and host!=build)
5131 which_gcj=cross
5132 fi
5133 else
5134 which_gcj=path
5135 fi
5136 fi
5137 case "${which_gcj}" in
5138 built)
5139 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5140 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5141 ;;
5142 cross)
5143 if test "x${with_newlib}" = "xyes"; then
5144 # FIXME (comment): Why is this needed?
5145 GCC_UNWIND_INCLUDE=
5146 GCJ="${target_noncanonical}-gcj"
5147 else
5148 GCJ="$built_gcc_dir/gcj -B$built_gcc_dir/"
5149 fi
5150 GCJH="$built_gcc_dir/gcjh"
5151 ;;
5152 path)
5153 GCJ="gcj -B`${PWDCMD-pwd}`/"
5154 GCJH=gcjh
5155 ;;
5156 esac
5157
5158
5159
5160
5161
5162 # Create it, so that compile/link tests don't fail
5163 test -f libgcj.spec || touch libgcj.spec
5164
5165
5166
5167 # Set up to configure Classpath.
5168 # FIXME: no supported way to pass args in autoconf.
5169 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5170 # Disable tool wrappers to avoid ltdl.h configure check.
5171 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5172 ac_configure_args="$ac_configure_args --disable-load-library"
5173 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5174 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5175 dir1=`cd $srcdir && pwd`
5176 dir2=`pwd`
5177 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5178 ac_configure_args="$ac_configure_args --disable-core-jni"
5179 ac_configure_args="$ac_configure_args --disable-examples"
5180 ac_configure_args="$ac_configure_args --with-glibj=build"
5181 if test "$plugin_enabled" != yes; then
5182 ac_configure_args="$ac_configure_args --disable-plugin"
5183 fi
5184 if test "$gconf_enabled" != yes; then
5185 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5186 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5187 fi
5188 if test "$use_gtk_awt" != yes; then
5189 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5190 fi
5191 if test "$use_qt_awt" != yes; then
5192 ac_configure_args="$ac_configure_args --disable-qt-peer"
5193 else
5194 # We need this as qt is disabled by default in classpath.
5195 ac_configure_args="$ac_configure_args --enable-qt-peer"
5196 fi
5197 if test "$use_x_awt" != yes; then
5198 ac_configure_args="$ac_configure_args --without-escher"
5199 else
5200 # We need this as escher is disabled by default in classpath.
5201 if test "$use_escher" != true; then
5202 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5203 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5204 { (exit 1); exit 1; }; }
5205 else
5206 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5207 fi
5208 fi
5209 # -Werror causes unavoidable problems in code using alsa.
5210 ac_configure_args="$ac_configure_args --disable-Werror"
5211
5212 # Only use libltdl for non-newlib builds.
5213 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5214 case $enable_ltdl_convenience in
5215 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5216 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5217 { (exit 1); exit 1; }; } ;;
5218 "") enable_ltdl_convenience=yes
5219 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5220 esac
5221 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5222 INCLTDL='-I${top_srcdir}/''libltdl'
5223
5224
5225 DIRLTDL=libltdl
5226
5227 cat >>confdefs.h <<\_ACEOF
5228 #define USE_LTDL 1
5229 _ACEOF
5230
5231 # Sigh. Libtool's macro doesn't do the right thing.
5232 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5233 # FIXME: this is a hack.
5234 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5235 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5236 fi
5237
5238
5239
5240 # Check whether --enable-shared or --disable-shared was given.
5241 if test "${enable_shared+set}" = set; then
5242 enableval="$enable_shared"
5243 p=${PACKAGE-default}
5244 case $enableval in
5245 yes) enable_shared=yes ;;
5246 no) enable_shared=no ;;
5247 *)
5248 enable_shared=no
5249 # Look at the argument we got. We use all the common list separators.
5250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5251 for pkg in $enableval; do
5252 if test "X$pkg" = "X$p"; then
5253 enable_shared=yes
5254 fi
5255 done
5256 IFS="$ac_save_ifs"
5257 ;;
5258 esac
5259 else
5260 enable_shared=yes
5261 fi;
5262 # Check whether --enable-static or --disable-static was given.
5263 if test "${enable_static+set}" = set; then
5264 enableval="$enable_static"
5265 p=${PACKAGE-default}
5266 case $enableval in
5267 yes) enable_static=yes ;;
5268 no) enable_static=no ;;
5269 *)
5270 enable_static=no
5271 # Look at the argument we got. We use all the common list separators.
5272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5273 for pkg in $enableval; do
5274 if test "X$pkg" = "X$p"; then
5275 enable_static=yes
5276 fi
5277 done
5278 IFS="$ac_save_ifs"
5279 ;;
5280 esac
5281 else
5282 enable_static=yes
5283 fi;
5284 # Check whether --enable-fast-install or --disable-fast-install was given.
5285 if test "${enable_fast_install+set}" = set; then
5286 enableval="$enable_fast_install"
5287 p=${PACKAGE-default}
5288 case $enableval in
5289 yes) enable_fast_install=yes ;;
5290 no) enable_fast_install=no ;;
5291 *)
5292 enable_fast_install=no
5293 # Look at the argument we got. We use all the common list separators.
5294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5295 for pkg in $enableval; do
5296 if test "X$pkg" = "X$p"; then
5297 enable_fast_install=yes
5298 fi
5299 done
5300 IFS="$ac_save_ifs"
5301 ;;
5302 esac
5303 else
5304 enable_fast_install=yes
5305 fi;
5306
5307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5308 if test "${with_gnu_ld+set}" = set; then
5309 withval="$with_gnu_ld"
5310 test "$withval" = no || with_gnu_ld=yes
5311 else
5312 with_gnu_ld=no
5313 fi;
5314 ac_prog=ld
5315 if test "$GCC" = yes; then
5316 # Check if gcc -print-prog-name=ld gives a path.
5317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5318 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5319 case $host in
5320 *-*-mingw*)
5321 # gcc leaves a trailing carriage return which upsets mingw
5322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5323 *)
5324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5325 esac
5326 case $ac_prog in
5327 # Accept absolute paths.
5328 [\\/]* | [A-Za-z]:[\\/]*)
5329 re_direlt='/[^/][^/]*/\.\./'
5330 # Canonicalize the path of ld
5331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5334 done
5335 test -z "$LD" && LD="$ac_prog"
5336 ;;
5337 "")
5338 # If it fails, then pretend we aren't using GCC.
5339 ac_prog=ld
5340 ;;
5341 *)
5342 # If it is relative, then search for the first ld in PATH.
5343 with_gnu_ld=unknown
5344 ;;
5345 esac
5346 elif test "$with_gnu_ld" = yes; then
5347 echo "$as_me:$LINENO: checking for GNU ld" >&5
5348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5349 else
5350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5352 fi
5353 if test "${lt_cv_path_LD+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 if test -z "$LD"; then
5357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5358 for ac_dir in $PATH; do
5359 test -z "$ac_dir" && ac_dir=.
5360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5361 lt_cv_path_LD="$ac_dir/$ac_prog"
5362 # Check to see if the program is GNU ld. I'd rather use --version,
5363 # but apparently some GNU ld's only accept -v.
5364 # Break only if it was the GNU/non-GNU ld that we prefer.
5365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5366 test "$with_gnu_ld" != no && break
5367 else
5368 test "$with_gnu_ld" != yes && break
5369 fi
5370 fi
5371 done
5372 IFS="$ac_save_ifs"
5373 else
5374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5375 fi
5376 fi
5377
5378 LD="$lt_cv_path_LD"
5379 if test -n "$LD"; then
5380 echo "$as_me:$LINENO: result: $LD" >&5
5381 echo "${ECHO_T}$LD" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5385 fi
5386 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5387 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5388 { (exit 1); exit 1; }; }
5389 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5390 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5395 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5396 lt_cv_prog_gnu_ld=yes
5397 else
5398 lt_cv_prog_gnu_ld=no
5399 fi
5400 fi
5401 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5403 with_gnu_ld=$lt_cv_prog_gnu_ld
5404
5405
5406 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5408 if test "${lt_cv_ld_reload_flag+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 lt_cv_ld_reload_flag='-r'
5412 fi
5413 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5415 reload_flag=$lt_cv_ld_reload_flag
5416 test -n "$reload_flag" && reload_flag=" $reload_flag"
5417
5418 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5419 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5420 if test "${lt_cv_path_NM+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 if test -n "$NM"; then
5424 # Let the user override the test.
5425 lt_cv_path_NM="$NM"
5426 else
5427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5429 test -z "$ac_dir" && ac_dir=.
5430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5432 # Check to see if the nm accepts a BSD-compat flag.
5433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5434 # nm: unknown option "B" ignored
5435 # Tru64's nm complains that /dev/null is an invalid object file
5436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5437 lt_cv_path_NM="$tmp_nm -B"
5438 break
5439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5440 lt_cv_path_NM="$tmp_nm -p"
5441 break
5442 else
5443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5444 continue # so that we can try to find one that supports BSD flags
5445 fi
5446 fi
5447 done
5448 IFS="$ac_save_ifs"
5449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5450 fi
5451 fi
5452
5453 NM="$lt_cv_path_NM"
5454 echo "$as_me:$LINENO: result: $NM" >&5
5455 echo "${ECHO_T}$NM" >&6
5456
5457 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5458 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5459 if test "${lt_cv_deplibs_check_method+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 lt_cv_file_magic_cmd='$MAGIC_CMD'
5463 lt_cv_file_magic_test_file=
5464 lt_cv_deplibs_check_method='unknown'
5465 # Need to set the preceding variable on all platforms that support
5466 # interlibrary dependencies.
5467 # 'none' -- dependencies not supported.
5468 # `unknown' -- same as none, but documents that we really don't know.
5469 # 'pass_all' -- all dependencies passed with no checks.
5470 # 'test_compile' -- check by making test program.
5471 # 'file_magic [regex]' -- check by looking for files in library path
5472 # which responds to the $file_magic_cmd with a given egrep regex.
5473 # If you have `file' or equivalent on your system and you're not sure
5474 # whether `pass_all' will *always* work, you probably want this one.
5475
5476 case $host_os in
5477 aix*)
5478 lt_cv_deplibs_check_method=pass_all
5479 ;;
5480
5481 beos*)
5482 lt_cv_deplibs_check_method=pass_all
5483 ;;
5484
5485 bsdi4*)
5486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5487 lt_cv_file_magic_cmd='/usr/bin/file -L'
5488 lt_cv_file_magic_test_file=/shlib/libc.so
5489 ;;
5490
5491 cygwin* | mingw* |pw32*)
5492 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5493 lt_cv_file_magic_cmd='$OBJDUMP -f'
5494 ;;
5495
5496 darwin* | rhapsody*)
5497 # this will be overwritten by pass_all, but leave it in just in case
5498 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5499 lt_cv_file_magic_cmd='/usr/bin/file -L'
5500 case "$host_os" in
5501 rhapsody* | darwin1.012)
5502 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5503 ;;
5504 *) # Darwin 1.3 on
5505 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5506 ;;
5507 esac
5508 lt_cv_deplibs_check_method=pass_all
5509 ;;
5510
5511 freebsd* | kfreebsd*-gnu)
5512 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5513 case $host_cpu in
5514 i*86 )
5515 # Not sure whether the presence of OpenBSD here was a mistake.
5516 # Let's accept both of them until this is cleared up.
5517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5518 lt_cv_file_magic_cmd=/usr/bin/file
5519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5520 ;;
5521 esac
5522 else
5523 lt_cv_deplibs_check_method=pass_all
5524 fi
5525 ;;
5526
5527 gnu*)
5528 lt_cv_deplibs_check_method=pass_all
5529 ;;
5530
5531 hpux10.20*|hpux11*)
5532 case $host_cpu in
5533 hppa*)
5534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5535 lt_cv_file_magic_cmd=/usr/bin/file
5536 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5537 ;;
5538 ia64*)
5539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5540 lt_cv_file_magic_cmd=/usr/bin/file
5541 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5542 ;;
5543 esac
5544 ;;
5545
5546 irix5* | irix6*)
5547 case $host_os in
5548 irix5*)
5549 # this will be overridden with pass_all, but let us keep it just in case
5550 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5551 ;;
5552 *)
5553 case $LD in
5554 *-32|*"-32 ") libmagic=32-bit;;
5555 *-n32|*"-n32 ") libmagic=N32;;
5556 *-64|*"-64 ") libmagic=64-bit;;
5557 *) libmagic=never-match;;
5558 esac
5559 # this will be overridden with pass_all, but let us keep it just in case
5560 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5561 ;;
5562 esac
5563 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5564 lt_cv_deplibs_check_method=pass_all
5565 ;;
5566
5567 # This must be Linux ELF.
5568 linux-gnu*)
5569 lt_cv_deplibs_check_method=pass_all
5570 ;;
5571
5572 netbsd* | knetbsd*-gnu)
5573 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5574 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5575 else
5576 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5577 fi
5578 ;;
5579
5580 newsos6)
5581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5582 lt_cv_file_magic_cmd=/usr/bin/file
5583 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5584 ;;
5585
5586 osf3* | osf4* | osf5*)
5587 # this will be overridden with pass_all, but let us keep it just in case
5588 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5589 lt_cv_file_magic_test_file=/shlib/libc.so
5590 lt_cv_deplibs_check_method=pass_all
5591 ;;
5592
5593 sco3.2v5*)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 solaris*)
5598 lt_cv_deplibs_check_method=pass_all
5599 lt_cv_file_magic_test_file=/lib/libc.so
5600 ;;
5601
5602 sysv5uw[78]* | sysv4*uw2*)
5603 lt_cv_deplibs_check_method=pass_all
5604 ;;
5605
5606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5607 case $host_vendor in
5608 ncr)
5609 lt_cv_deplibs_check_method=pass_all
5610 ;;
5611 motorola)
5612 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]'
5613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5614 ;;
5615 esac
5616 ;;
5617 esac
5618
5619 fi
5620 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5621 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5622 file_magic_cmd=$lt_cv_file_magic_cmd
5623 deplibs_check_method=$lt_cv_deplibs_check_method
5624
5625
5626
5627
5628 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5629
5630 # find the maximum length of command line arguments
5631 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5632 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5633 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 i=0
5637 teststring="ABCD"
5638
5639 case $build_os in
5640 msdosdjgpp*)
5641 # On DJGPP, this test can blow up pretty badly due to problems in libc
5642 # (any single argument exceeding 2000 bytes causes a buffer overrun
5643 # during glob expansion). Even if it were fixed, the result of this
5644 # check would be larger than it should be.
5645 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5646 ;;
5647
5648 cygwin* | mingw*)
5649 # On Win9x/ME, this test blows up -- it succeeds, but takes
5650 # about 5 minutes as the teststring grows exponentially.
5651 # Worse, since 9x/ME are not pre-emptively multitasking,
5652 # you end up with a "frozen" computer, even though with patience
5653 # the test eventually succeeds (with a max line length of 256k).
5654 # Instead, let's just punt: use the minimum linelength reported by
5655 # all of the supported platforms: 8192 (on NT/2K/XP).
5656 lt_cv_sys_max_cmd_len=8192;
5657 ;;
5658
5659 amigaos*)
5660 # On AmigaOS with pdksh, this test takes hours, literally.
5661 # So we just punt and use a minimum line length of 8192.
5662 lt_cv_sys_max_cmd_len=8192;
5663 ;;
5664
5665 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5666 # This has been around since 386BSD, at least. Likely further.
5667 if test -x /sbin/sysctl; then
5668 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5669 elif test -x /usr/sbin/sysctl; then
5670 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5671 else
5672 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5673 fi
5674 # And add a safety zone
5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5677 ;;
5678 esac
5679
5680 fi
5681
5682 if test -n "$lt_cv_sys_max_cmd_len" ; then
5683 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5684 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5685 else
5686 echo "$as_me:$LINENO: result: none" >&5
5687 echo "${ECHO_T}none" >&6
5688 fi
5689
5690
5691 # Only perform the check for file, if the check method requires it
5692 case $deplibs_check_method in
5693 file_magic*)
5694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5695 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5696 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 case $MAGIC_CMD in
5701 /*)
5702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5703 ;;
5704 ?:/*)
5705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5706 ;;
5707 *)
5708 ac_save_MAGIC_CMD="$MAGIC_CMD"
5709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5710 ac_dummy="/usr/bin:$PATH"
5711 for ac_dir in $ac_dummy; do
5712 test -z "$ac_dir" && ac_dir=.
5713 if test -f $ac_dir/${ac_tool_prefix}file; then
5714 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5715 if test -n "$file_magic_test_file"; then
5716 case $deplibs_check_method in
5717 "file_magic "*)
5718 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5721 egrep "$file_magic_regex" > /dev/null; then
5722 :
5723 else
5724 cat <<EOF 1>&2
5725
5726 *** Warning: the command libtool uses to detect shared libraries,
5727 *** $file_magic_cmd, produces output that libtool cannot recognize.
5728 *** The result is that libtool may fail to recognize shared libraries
5729 *** as such. This will affect the creation of libtool libraries that
5730 *** depend on shared libraries, but programs linked with such libtool
5731 *** libraries will work regardless of this problem. Nevertheless, you
5732 *** may want to report the problem to your system manager and/or to
5733 *** bug-libtool@gnu.org
5734
5735 EOF
5736 fi ;;
5737 esac
5738 fi
5739 break
5740 fi
5741 done
5742 IFS="$ac_save_ifs"
5743 MAGIC_CMD="$ac_save_MAGIC_CMD"
5744 ;;
5745 esac
5746 fi
5747
5748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5749 if test -n "$MAGIC_CMD"; then
5750 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5751 echo "${ECHO_T}$MAGIC_CMD" >&6
5752 else
5753 echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5755 fi
5756
5757 if test -z "$lt_cv_path_MAGIC_CMD"; then
5758 if test -n "$ac_tool_prefix"; then
5759 echo "$as_me:$LINENO: checking for file" >&5
5760 echo $ECHO_N "checking for file... $ECHO_C" >&6
5761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 case $MAGIC_CMD in
5765 /*)
5766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5767 ;;
5768 ?:/*)
5769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5770 ;;
5771 *)
5772 ac_save_MAGIC_CMD="$MAGIC_CMD"
5773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5774 ac_dummy="/usr/bin:$PATH"
5775 for ac_dir in $ac_dummy; do
5776 test -z "$ac_dir" && ac_dir=.
5777 if test -f $ac_dir/file; then
5778 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5779 if test -n "$file_magic_test_file"; then
5780 case $deplibs_check_method in
5781 "file_magic "*)
5782 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5785 egrep "$file_magic_regex" > /dev/null; then
5786 :
5787 else
5788 cat <<EOF 1>&2
5789
5790 *** Warning: the command libtool uses to detect shared libraries,
5791 *** $file_magic_cmd, produces output that libtool cannot recognize.
5792 *** The result is that libtool may fail to recognize shared libraries
5793 *** as such. This will affect the creation of libtool libraries that
5794 *** depend on shared libraries, but programs linked with such libtool
5795 *** libraries will work regardless of this problem. Nevertheless, you
5796 *** may want to report the problem to your system manager and/or to
5797 *** bug-libtool@gnu.org
5798
5799 EOF
5800 fi ;;
5801 esac
5802 fi
5803 break
5804 fi
5805 done
5806 IFS="$ac_save_ifs"
5807 MAGIC_CMD="$ac_save_MAGIC_CMD"
5808 ;;
5809 esac
5810 fi
5811
5812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5813 if test -n "$MAGIC_CMD"; then
5814 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5815 echo "${ECHO_T}$MAGIC_CMD" >&6
5816 else
5817 echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6
5819 fi
5820
5821 else
5822 MAGIC_CMD=:
5823 fi
5824 fi
5825
5826 fi
5827 ;;
5828 esac
5829
5830 if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5832 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5833 echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835 if test "${ac_cv_prog_RANLIB+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 if test -n "$RANLIB"; then
5839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852 done
5853 done
5854
5855 fi
5856 fi
5857 RANLIB=$ac_cv_prog_RANLIB
5858 if test -n "$RANLIB"; then
5859 echo "$as_me:$LINENO: result: $RANLIB" >&5
5860 echo "${ECHO_T}$RANLIB" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5864 fi
5865
5866 fi
5867 if test -z "$ac_cv_prog_RANLIB"; then
5868 ac_ct_RANLIB=$RANLIB
5869 # Extract the first word of "ranlib", so it can be a program name with args.
5870 set dummy ranlib; ac_word=$2
5871 echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5873 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 if test -n "$ac_ct_RANLIB"; then
5877 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886 ac_cv_prog_ac_ct_RANLIB="ranlib"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5889 fi
5890 done
5891 done
5892
5893 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5894 fi
5895 fi
5896 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5897 if test -n "$ac_ct_RANLIB"; then
5898 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5899 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5900 else
5901 echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6
5903 fi
5904
5905 RANLIB=$ac_ct_RANLIB
5906 else
5907 RANLIB="$ac_cv_prog_RANLIB"
5908 fi
5909
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}strip; ac_word=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_STRIP+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 if test -n "$STRIP"; then
5919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932 done
5933 done
5934
5935 fi
5936 fi
5937 STRIP=$ac_cv_prog_STRIP
5938 if test -n "$STRIP"; then
5939 echo "$as_me:$LINENO: result: $STRIP" >&5
5940 echo "${ECHO_T}$STRIP" >&6
5941 else
5942 echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5944 fi
5945
5946 fi
5947 if test -z "$ac_cv_prog_STRIP"; then
5948 ac_ct_STRIP=$STRIP
5949 # Extract the first word of "strip", so it can be a program name with args.
5950 set dummy strip; ac_word=$2
5951 echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5953 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956 if test -n "$ac_ct_STRIP"; then
5957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_ac_ct_STRIP="strip"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970 done
5971 done
5972
5973 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5974 fi
5975 fi
5976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5977 if test -n "$ac_ct_STRIP"; then
5978 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5979 echo "${ECHO_T}$ac_ct_STRIP" >&6
5980 else
5981 echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6
5983 fi
5984
5985 STRIP=$ac_ct_STRIP
5986 else
5987 STRIP="$ac_cv_prog_STRIP"
5988 fi
5989
5990
5991 # Check for any special flags to pass to ltconfig.
5992 libtool_flags="--cache-file=$cache_file"
5993 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5994 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5995 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5996 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5997 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5998
5999
6000 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6001 if test "${enable_libtool_lock+set}" = set; then
6002 enableval="$enable_libtool_lock"
6003
6004 fi;
6005 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6006 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6007
6008
6009 # Check whether --with-pic or --without-pic was given.
6010 if test "${with_pic+set}" = set; then
6011 withval="$with_pic"
6012 pic_mode="$withval"
6013 else
6014 pic_mode=default
6015 fi;
6016 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6017 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6018
6019 # Some flags need to be propagated to the compiler or linker for good
6020 # libtool support.
6021 case $host in
6022 *-*-irix6*)
6023 # Find out which ABI we are using.
6024 echo '#line 6024 "configure"' > conftest.$ac_ext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; then
6030 if test "$lt_cv_prog_gnu_ld" = yes; then
6031 case `/usr/bin/file conftest.$ac_objext` in
6032 *32-bit*)
6033 LD="${LD-ld} -melf32bsmip"
6034 ;;
6035 *N32*)
6036 LD="${LD-ld} -melf32bmipn32"
6037 ;;
6038 *64-bit*)
6039 LD="${LD-ld} -melf64bmip"
6040 ;;
6041 esac
6042 else
6043 case `/usr/bin/file conftest.$ac_objext` in
6044 *32-bit*)
6045 LD="${LD-ld} -32"
6046 ;;
6047 *N32*)
6048 LD="${LD-ld} -n32"
6049 ;;
6050 *64-bit*)
6051 LD="${LD-ld} -64"
6052 ;;
6053 esac
6054 fi
6055 fi
6056 rm -rf conftest*
6057 ;;
6058
6059 ia64-*-hpux*)
6060 # Find out which ABI we are using.
6061 echo 'int i;' > conftest.$ac_ext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063 (eval $ac_compile) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; then
6067 case "`/usr/bin/file conftest.o`" in
6068 *ELF-32*)
6069 HPUX_IA64_MODE="32"
6070 ;;
6071 *ELF-64*)
6072 HPUX_IA64_MODE="64"
6073 ;;
6074 esac
6075 fi
6076 rm -rf conftest*
6077 ;;
6078
6079 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6080 # Find out which ABI we are using.
6081 echo 'int i;' > conftest.$ac_ext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; then
6087 case "`/usr/bin/file conftest.o`" in
6088 *32-bit*)
6089 case $host in
6090 x86_64-*linux*)
6091 LD="${LD-ld} -m elf_i386"
6092 ;;
6093 ppc64-*linux*|powerpc64-*linux*)
6094 LD="${LD-ld} -m elf32ppclinux"
6095 ;;
6096 s390x-*linux*)
6097 LD="${LD-ld} -m elf_s390"
6098 ;;
6099 sparc64-*linux*)
6100 LD="${LD-ld} -m elf32_sparc"
6101 ;;
6102 esac
6103 ;;
6104 *64-bit*)
6105 case $host in
6106 x86_64-*linux*)
6107 LD="${LD-ld} -m elf_x86_64"
6108 ;;
6109 ppc*-*linux*|powerpc*-*linux*)
6110 LD="${LD-ld} -m elf64ppc"
6111 ;;
6112 s390*-*linux*)
6113 LD="${LD-ld} -m elf64_s390"
6114 ;;
6115 sparc*-*linux*)
6116 LD="${LD-ld} -m elf64_sparc"
6117 ;;
6118 esac
6119 ;;
6120 esac
6121 fi
6122 rm -rf conftest*
6123 ;;
6124
6125 *-*-sco3.2v5*)
6126 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6127 SAVE_CFLAGS="$CFLAGS"
6128 CFLAGS="$CFLAGS -belf"
6129 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6130 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6131 if test "${lt_cv_cc_needs_belf+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134
6135
6136 ac_ext=c
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
6142 if test x$gcc_no_link = xyes; then
6143 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6144 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6145 { (exit 1); exit 1; }; }
6146 fi
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153
6154 int
6155 main ()
6156 {
6157
6158 ;
6159 return 0;
6160 }
6161 _ACEOF
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -z "$ac_c_werror_flag"
6172 || test ! -s conftest.err'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 lt_cv_cc_needs_belf=yes
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 lt_cv_cc_needs_belf=no
6190 fi
6191 rm -f conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193 ac_ext=c
6194 ac_cpp='$CPP $CPPFLAGS'
6195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198
6199 fi
6200 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6201 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6202 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6203 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6204 CFLAGS="$SAVE_CFLAGS"
6205 fi
6206 ;;
6207
6208
6209 esac
6210
6211
6212 # Save cache, so that ltconfig can load it
6213 cat >confcache <<\_ACEOF
6214 # This file is a shell script that caches the results of configure
6215 # tests run on this system so they can be shared between configure
6216 # scripts and configure runs, see configure's option --config-cache.
6217 # It is not useful on other systems. If it contains results you don't
6218 # want to keep, you may remove or edit it.
6219 #
6220 # config.status only pays attention to the cache file if you give it
6221 # the --recheck option to rerun configure.
6222 #
6223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6225 # following values.
6226
6227 _ACEOF
6228
6229 # The following way of writing the cache mishandles newlines in values,
6230 # but we know of no workaround that is simple, portable, and efficient.
6231 # So, don't put newlines in cache variables' values.
6232 # Ultrix sh set writes to stderr and can't be redirected directly,
6233 # and sets the high bit in the cache file unless we assign to the vars.
6234 {
6235 (set) 2>&1 |
6236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6237 *ac_space=\ *)
6238 # `set' does not quote correctly, so add quotes (double-quote
6239 # substitution turns \\\\ into \\, and sed turns \\ into \).
6240 sed -n \
6241 "s/'/'\\\\''/g;
6242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6243 ;;
6244 *)
6245 # `set' quotes correctly as required by POSIX, so do not add quotes.
6246 sed -n \
6247 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6248 ;;
6249 esac;
6250 } |
6251 sed '
6252 t clear
6253 : clear
6254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6255 t end
6256 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6257 : end' >>confcache
6258 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6259 if test -w $cache_file; then
6260 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6261 cat confcache >$cache_file
6262 else
6263 echo "not updating unwritable cache $cache_file"
6264 fi
6265 fi
6266 rm -f confcache
6267
6268 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6269 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6270 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6271 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6272 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6273 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6274 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6275 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6276 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6277 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6278 echo "$as_me: error: libtool configure failed" >&2;}
6279 { (exit 1); exit 1; }; }
6280
6281 # Reload cache, that may have been modified by ltconfig
6282 if test -r "$cache_file"; then
6283 # Some versions of bash will fail to source /dev/null (special
6284 # files actually), so we avoid doing that.
6285 if test -f "$cache_file"; then
6286 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6287 echo "$as_me: loading cache $cache_file" >&6;}
6288 case $cache_file in
6289 [\\/]* | ?:[\\/]* ) . $cache_file;;
6290 *) . ./$cache_file;;
6291 esac
6292 fi
6293 else
6294 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6295 echo "$as_me: creating cache $cache_file" >&6;}
6296 >$cache_file
6297 fi
6298
6299
6300 # This can be used to rebuild libtool when needed
6301 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6302
6303 # Always use our own libtool.
6304 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6305
6306 # Redirect the config.log output again, so that the ltconfig log is not
6307 # clobbered by the next message.
6308 exec 5>>./config.log
6309
6310 ac_ext=cc
6311 ac_cpp='$CXXCPP $CPPFLAGS'
6312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6315 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6316 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6317 if test -z "$CXXCPP"; then
6318 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 # Double quotes because CXXCPP needs to be expanded
6322 for CXXCPP in "$CXX -E" "/lib/cpp"
6323 do
6324 ac_preproc_ok=false
6325 for ac_cxx_preproc_warn_flag in '' yes
6326 do
6327 # Use a header file that comes with gcc, so configuring glibc
6328 # with a fresh cross-compiler works.
6329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6330 # <limits.h> exists even on freestanding compilers.
6331 # On the NeXT, cc -E runs the code through the compiler's parser,
6332 # not just through cpp. "Syntax error" is here to catch this case.
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #ifdef __STDC__
6340 # include <limits.h>
6341 #else
6342 # include <assert.h>
6343 #endif
6344 Syntax error
6345 _ACEOF
6346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } >/dev/null; then
6354 if test -s conftest.err; then
6355 ac_cpp_err=$ac_cxx_preproc_warn_flag
6356 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6357 else
6358 ac_cpp_err=
6359 fi
6360 else
6361 ac_cpp_err=yes
6362 fi
6363 if test -z "$ac_cpp_err"; then
6364 :
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 # Broken: fails on valid input.
6370 continue
6371 fi
6372 rm -f conftest.err conftest.$ac_ext
6373
6374 # OK, works on sane cases. Now check whether non-existent headers
6375 # can be detected and how.
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <ac_nonexistent.h>
6383 _ACEOF
6384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } >/dev/null; then
6392 if test -s conftest.err; then
6393 ac_cpp_err=$ac_cxx_preproc_warn_flag
6394 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6395 else
6396 ac_cpp_err=
6397 fi
6398 else
6399 ac_cpp_err=yes
6400 fi
6401 if test -z "$ac_cpp_err"; then
6402 # Broken: success on invalid input.
6403 continue
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6407
6408 # Passes both tests.
6409 ac_preproc_ok=:
6410 break
6411 fi
6412 rm -f conftest.err conftest.$ac_ext
6413
6414 done
6415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6416 rm -f conftest.err conftest.$ac_ext
6417 if $ac_preproc_ok; then
6418 break
6419 fi
6420
6421 done
6422 ac_cv_prog_CXXCPP=$CXXCPP
6423
6424 fi
6425 CXXCPP=$ac_cv_prog_CXXCPP
6426 else
6427 ac_cv_prog_CXXCPP=$CXXCPP
6428 fi
6429 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6430 echo "${ECHO_T}$CXXCPP" >&6
6431 ac_preproc_ok=false
6432 for ac_cxx_preproc_warn_flag in '' yes
6433 do
6434 # Use a header file that comes with gcc, so configuring glibc
6435 # with a fresh cross-compiler works.
6436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6437 # <limits.h> exists even on freestanding compilers.
6438 # On the NeXT, cc -E runs the code through the compiler's parser,
6439 # not just through cpp. "Syntax error" is here to catch this case.
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 #ifdef __STDC__
6447 # include <limits.h>
6448 #else
6449 # include <assert.h>
6450 #endif
6451 Syntax error
6452 _ACEOF
6453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6455 ac_status=$?
6456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } >/dev/null; then
6461 if test -s conftest.err; then
6462 ac_cpp_err=$ac_cxx_preproc_warn_flag
6463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6464 else
6465 ac_cpp_err=
6466 fi
6467 else
6468 ac_cpp_err=yes
6469 fi
6470 if test -z "$ac_cpp_err"; then
6471 :
6472 else
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476 # Broken: fails on valid input.
6477 continue
6478 fi
6479 rm -f conftest.err conftest.$ac_ext
6480
6481 # OK, works on sane cases. Now check whether non-existent headers
6482 # can be detected and how.
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <ac_nonexistent.h>
6490 _ACEOF
6491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } >/dev/null; then
6499 if test -s conftest.err; then
6500 ac_cpp_err=$ac_cxx_preproc_warn_flag
6501 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6502 else
6503 ac_cpp_err=
6504 fi
6505 else
6506 ac_cpp_err=yes
6507 fi
6508 if test -z "$ac_cpp_err"; then
6509 # Broken: success on invalid input.
6510 continue
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 # Passes both tests.
6516 ac_preproc_ok=:
6517 break
6518 fi
6519 rm -f conftest.err conftest.$ac_ext
6520
6521 done
6522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6523 rm -f conftest.err conftest.$ac_ext
6524 if $ac_preproc_ok; then
6525 :
6526 else
6527 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6528 See \`config.log' for more details." >&5
6529 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6530 See \`config.log' for more details." >&2;}
6531 { (exit 1); exit 1; }; }
6532 fi
6533
6534 ac_ext=c
6535 ac_cpp='$CPP $CPPFLAGS'
6536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6539
6540
6541
6542 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6543 lt_save_CC="$CC"
6544 lt_save_CFLAGS="$CFLAGS"
6545 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6546 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6547 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6548 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6549 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6550 deplibs_check_method="$deplibs_check_method" \
6551 file_magic_cmd="$file_magic_cmd" \
6552 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6553 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6554 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6555 echo "$as_me: error: libtool tag configuration failed" >&2;}
6556 { (exit 1); exit 1; }; }
6557 CC="$lt_save_CC"
6558 CFLAGS="$lt_save_CFLAGS"
6559
6560 # Redirect the config.log output again, so that the ltconfig log is not
6561 # clobbered by the next message.
6562 exec 5>>./config.log
6563
6564
6565
6566
6567
6568
6569
6570 for ac_prog in gcj
6571 do
6572 # Extract the first word of "$ac_prog", so it can be a program name with args.
6573 set dummy $ac_prog; ac_word=$2
6574 echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6576 if test "${ac_cv_prog_GCJ+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579 if test -n "$GCJ"; then
6580 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_GCJ="$ac_prog"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593 done
6594 done
6595
6596 fi
6597 fi
6598 GCJ=$ac_cv_prog_GCJ
6599 if test -n "$GCJ"; then
6600 echo "$as_me:$LINENO: result: $GCJ" >&5
6601 echo "${ECHO_T}$GCJ" >&6
6602 else
6603 echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6
6605 fi
6606
6607 test -n "$GCJ" && break
6608 done
6609 test -n "$GCJ" || GCJ="gcj"
6610
6611 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6612 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6613 { (exit 1); exit 1; }; }
6614 if test "x${GCJFLAGS-unset}" = xunset; then
6615 GCJFLAGS="-g -O2"
6616 fi
6617
6618
6619 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6620
6621 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6623 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6627 # We make a subdir and do the tests there. Otherwise we can end up
6628 # making bogus files that we don't know about and never remove. For
6629 # instance it was reported that on HP-UX the gcc test will end up
6630 # making a dummy file named `D' -- because `-MD' means `put the output
6631 # in D'.
6632 mkdir conftest.dir
6633 # Copy depcomp to subdir because otherwise we won't find it if we're
6634 # using a relative directory.
6635 cp "$am_depcomp" conftest.dir
6636 cd conftest.dir
6637 # We will build objects and dependencies in a subdirectory because
6638 # it helps to detect inapplicable dependency modes. For instance
6639 # both Tru64's cc and ICC support -MD to output dependencies as a
6640 # side effect of compilation, but ICC will put the dependencies in
6641 # the current directory while Tru64 will put them in the object
6642 # directory.
6643 mkdir sub
6644
6645 am_cv_GCJ_dependencies_compiler_type=none
6646 if test "$am_compiler_list" = ""; then
6647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6648 fi
6649 for depmode in $am_compiler_list; do
6650 # Setup a source with many dependencies, because some compilers
6651 # like to wrap large dependency lists on column 80 (with \), and
6652 # we should not choose a depcomp mode which is confused by this.
6653 #
6654 # We need to recreate these files for each test, as the compiler may
6655 # overwrite some of them when testing with obscure command lines.
6656 # This happens at least with the AIX C compiler.
6657 : > sub/conftest.c
6658 for i in 1 2 3 4 5 6; do
6659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6661 # Solaris 8's {/usr,}/bin/sh.
6662 touch sub/conftst$i.h
6663 done
6664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6665
6666 case $depmode in
6667 nosideeffect)
6668 # after this tag, mechanisms are not by side-effect, so they'll
6669 # only be used when explicitly requested
6670 if test "x$enable_dependency_tracking" = xyes; then
6671 continue
6672 else
6673 break
6674 fi
6675 ;;
6676 none) break ;;
6677 esac
6678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6679 # mode. It turns out that the SunPro C++ compiler does not properly
6680 # handle `-M -o', and we need to detect this.
6681 if depmode=$depmode \
6682 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6684 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6685 >/dev/null 2>conftest.err &&
6686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6689 # icc doesn't choke on unknown options, it will just issue warnings
6690 # or remarks (even with -Werror). So we grep stderr for any message
6691 # that says an option was ignored or not supported.
6692 # When given -MP, icc 7.0 and 7.1 complain thusly:
6693 # icc: Command line warning: ignoring option '-M'; no argument required
6694 # The diagnosis changed in icc 8.0:
6695 # icc: Command line remark: option '-MP' not supported
6696 if (grep 'ignoring option' conftest.err ||
6697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6698 am_cv_GCJ_dependencies_compiler_type=$depmode
6699 break
6700 fi
6701 fi
6702 done
6703
6704 cd ..
6705 rm -rf conftest.dir
6706 else
6707 am_cv_GCJ_dependencies_compiler_type=none
6708 fi
6709
6710 fi
6711 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6712 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6713 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6714
6715
6716
6717 if
6718 test "x$enable_dependency_tracking" != xno \
6719 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6720 am__fastdepGCJ_TRUE=
6721 am__fastdepGCJ_FALSE='#'
6722 else
6723 am__fastdepGCJ_TRUE='#'
6724 am__fastdepGCJ_FALSE=
6725 fi
6726
6727
6728
6729
6730 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6731 lt_save_CC="$CC"
6732 lt_save_CFLAGS="$CFLAGS"
6733 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6734 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6735 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6736 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6737 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6738 deplibs_check_method="$deplibs_check_method" \
6739 file_magic_cmd="$file_magic_cmd" \
6740 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6741 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6742 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6743 echo "$as_me: error: libtool tag configuration failed" >&2;}
6744 { (exit 1); exit 1; }; }
6745 CC="$lt_save_CC"
6746 CFLAGS="$lt_save_CFLAGS"
6747
6748 # Redirect the config.log output again, so that the ltconfig log is not
6749 # clobbered by the next message.
6750 exec 5>>./config.log
6751
6752
6753
6754 if test "x$CC" != xcc; then
6755 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6756 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6757 else
6758 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6759 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6760 fi
6761 set dummy $CC; ac_cc=`echo $2 |
6762 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6763 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772
6773 int
6774 main ()
6775 {
6776
6777 ;
6778 return 0;
6779 }
6780 _ACEOF
6781 # Make sure it works both with $CC and with simple cc.
6782 # We do the test twice because some compilers refuse to overwrite an
6783 # existing .o file with -o, though they will create one.
6784 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6785 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); };
6795 then
6796 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6797 if test "x$CC" != xcc; then
6798 # Test first that cc exists at all.
6799 if { ac_try='cc -c conftest.$ac_ext >&5'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6806 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); };
6816 then
6817 # cc works too.
6818 :
6819 else
6820 # cc exists but doesn't like -o.
6821 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6822 fi
6823 fi
6824 fi
6825 else
6826 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6827 fi
6828 rm -f conftest*
6829
6830 fi
6831 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6832 echo "$as_me:$LINENO: result: yes" >&5
6833 echo "${ECHO_T}yes" >&6
6834 else
6835 echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6
6837
6838 cat >>confdefs.h <<\_ACEOF
6839 #define NO_MINUS_C_MINUS_O 1
6840 _ACEOF
6841
6842 fi
6843
6844 # FIXME: we rely on the cache variable name because
6845 # there is no other way.
6846 set dummy $CC
6847 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6849 # Losing compiler, so override with the script.
6850 # FIXME: It is wrong to rewrite CC.
6851 # But if we don't then we get into trouble of one sort or another.
6852 # A longer-term fix would be to have automake use am__CC in this case,
6853 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6854 CC="$am_aux_dir/compile $CC"
6855 fi
6856
6857
6858
6859
6860 subdirs="$subdirs classpath libltdl"
6861
6862
6863 # The -no-testsuite modules omit the test subdir.
6864
6865
6866 if test -d $srcdir/testsuite; then
6867 TESTSUBDIR_TRUE=
6868 TESTSUBDIR_FALSE='#'
6869 else
6870 TESTSUBDIR_TRUE='#'
6871 TESTSUBDIR_FALSE=
6872 fi
6873
6874
6875 # Should the runtime set system properties by examining the
6876 # environment variable GCJ_PROPERTIES?
6877 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6878 if test "${enable_getenv_properties+set}" = set; then
6879 enableval="$enable_getenv_properties"
6880
6881 fi;
6882
6883 # Whether GCJ_PROPERTIES is used depends on the target.
6884 if test -z "$enable_getenv_properties"; then
6885 enable_getenv_properties=${enable_getenv_properties_default-yes}
6886 fi
6887 if test "$enable_getenv_properties" = no; then
6888
6889 cat >>confdefs.h <<\_ACEOF
6890 #define DISABLE_GETENV_PROPERTIES 1
6891 _ACEOF
6892
6893 fi
6894
6895 # Whether we should use arguments to main()
6896 if test -z "$enable_main_args"; then
6897 enable_main_args=${enable_main_args_default-yes}
6898 fi
6899 if test "$enable_main_args" = no; then
6900
6901 cat >>confdefs.h <<\_ACEOF
6902 #define DISABLE_MAIN_ARGS 1
6903 _ACEOF
6904
6905 fi
6906
6907
6908 # Should we use hashtable-based synchronization?
6909 # Currently works only for Linux X86/ia64
6910 # Typically faster and more space-efficient
6911 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6912 if test "${enable_hash_synchronization+set}" = set; then
6913 enableval="$enable_hash_synchronization"
6914
6915 fi;
6916
6917 if test -z "$enable_hash_synchronization"; then
6918 enable_hash_synchronization=$enable_hash_synchronization_default
6919 fi
6920
6921
6922 install_ecj_jar=no
6923 ECJ_BUILD_JAR=
6924 ECJ_JAR=
6925
6926 # Check whether --with-ecj-jar or --without-ecj-jar was given.
6927 if test "${with_ecj_jar+set}" = set; then
6928 withval="$with_ecj_jar"
6929 ECJ_JAR=$withval
6930 else
6931 if test -f $libgcj_basedir/../ecj.jar; then
6932 ECJ_BUILD_JAR=$libgcj_basedir/../ecj.jar
6933 ECJ_JAR='$(jardir)/ecj.jar'
6934 install_ecj_jar=yes
6935 fi
6936 fi;
6937
6938
6939
6940
6941 if test "$ECJ_JAR" != ""; then
6942 BUILD_ECJ1_TRUE=
6943 BUILD_ECJ1_FALSE='#'
6944 else
6945 BUILD_ECJ1_TRUE='#'
6946 BUILD_ECJ1_FALSE=
6947 fi
6948
6949
6950
6951 if test $install_ecj_jar = yes; then
6952 INSTALL_ECJ_JAR_TRUE=
6953 INSTALL_ECJ_JAR_FALSE='#'
6954 else
6955 INSTALL_ECJ_JAR_TRUE='#'
6956 INSTALL_ECJ_JAR_FALSE=
6957 fi
6958
6959
6960
6961 # Check whether --with-java-home or --without-java-home was given.
6962 if test "${with_java_home+set}" = set; then
6963 withval="$with_java_home"
6964 JAVA_HOME="${withval}"
6965 else
6966 JAVA_HOME=""
6967 fi;
6968
6969
6970 if test ! -z "$JAVA_HOME"; then
6971 JAVA_HOME_SET_TRUE=
6972 JAVA_HOME_SET_FALSE='#'
6973 else
6974 JAVA_HOME_SET_TRUE='#'
6975 JAVA_HOME_SET_FALSE=
6976 fi
6977
6978
6979
6980 # What is the native OS API for MinGW?
6981
6982 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6983 if test "${with_win32_nlsapi+set}" = set; then
6984 withval="$with_win32_nlsapi"
6985 case "${withval}" in
6986 ansi) with_win32_nlsapi=ansi ;;
6987 unicows) with_win32_nlsapi=unicows ;;
6988 unicode) with_win32_nlsapi=unicode ;;
6989 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6990 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6991 { (exit 1); exit 1; }; } ;;
6992 esac
6993 else
6994 with_win32_nlsapi=ansi
6995 fi;
6996
6997 case "${with_win32_nlsapi}" in
6998 unicows | unicode)
6999
7000 cat >>confdefs.h <<\_ACEOF
7001 #define MINGW_LIBGCJ_UNICODE 1
7002 _ACEOF
7003
7004 ;;
7005 esac
7006
7007 # configure.host sets slow_pthread_self if the synchronization code should
7008 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7009 if test "${slow_pthread_self}" = "yes"; then
7010
7011 cat >>confdefs.h <<\_ACEOF
7012 #define SLOW_PTHREAD_SELF 1
7013 _ACEOF
7014
7015 fi
7016
7017 # Check for gc debugging. This option is handled both here and in the GC.
7018 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7019 if test "${enable_gc_debug+set}" = set; then
7020 enableval="$enable_gc_debug"
7021 if test "$enable_gc_debug" = "yes"; then
7022
7023 cat >>confdefs.h <<\_ACEOF
7024 #define LIBGCJ_GC_DEBUG 1
7025 _ACEOF
7026
7027 fi
7028 fi;
7029
7030 # See if the user has the interpreter included.
7031 # Check whether --enable-interpreter or --disable-interpreter was given.
7032 if test "${enable_interpreter+set}" = set; then
7033 enableval="$enable_interpreter"
7034 if test "$enable_interpreter" = yes; then
7035 # This can also be set in configure.host.
7036 libgcj_interpreter=yes
7037 elif test "$enable_interpreter" = no; then
7038 libgcj_interpreter=no
7039 fi
7040 fi;
7041
7042 if test "$libgcj_interpreter" = yes; then
7043
7044 cat >>confdefs.h <<\_ACEOF
7045 #define INTERPRETER 1
7046 _ACEOF
7047
7048 fi
7049 INTERPRETER="$libgcj_interpreter"
7050
7051
7052 echo "$as_me:$LINENO: checking for exception model to use" >&5
7053 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7054 ac_ext=cc
7055 ac_cpp='$CXXCPP $CPPFLAGS'
7056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7059
7060 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7061 if test "${enable_sjlj_exceptions+set}" = set; then
7062 enableval="$enable_sjlj_exceptions"
7063 :
7064 else
7065 cat > conftest.$ac_ext << EOF
7066 #line 7066 "configure"
7067 struct S { ~S(); };
7068 void bar();
7069 void foo()
7070 {
7071 S s;
7072 bar();
7073 }
7074 EOF
7075 old_CXXFLAGS="$CXXFLAGS"
7076 CXXFLAGS=-S
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; then
7082 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7083 enable_sjlj_exceptions=yes
7084 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7085 enable_sjlj_exceptions=no
7086 fi
7087 fi
7088 CXXFLAGS="$old_CXXFLAGS"
7089 rm -f conftest*
7090 fi;
7091 if test x$enable_sjlj_exceptions = xyes; then
7092
7093 cat >>confdefs.h <<\_ACEOF
7094 #define SJLJ_EXCEPTIONS 1
7095 _ACEOF
7096
7097 ac_exception_model_name=sjlj
7098 elif test x$enable_sjlj_exceptions = xno; then
7099 ac_exception_model_name="call frame"
7100 else
7101 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7102 echo "$as_me: error: unable to detect exception model" >&2;}
7103 { (exit 1); exit 1; }; }
7104 fi
7105 ac_ext=c
7106 ac_cpp='$CPP $CPPFLAGS'
7107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7110
7111 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7112 echo "${ECHO_T}$ac_exception_model_name" >&6
7113
7114 # If we are non using SJLJ exceptions, and this host does not have support
7115 # for unwinding from a signal handler, enable checked dereferences and divides.
7116 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7117 CHECKREFSPEC=-fcheck-references
7118 DIVIDESPEC=-fuse-divide-subroutine
7119 EXCEPTIONSPEC=
7120 fi
7121
7122 # See if the user wants to disable java.net. This is the mildly
7123 # ugly way that we admit that target-side configuration sucks.
7124 # Check whether --enable-java-net or --disable-java-net was given.
7125 if test "${enable_java_net+set}" = set; then
7126 enableval="$enable_java_net"
7127
7128 fi;
7129
7130 # Whether java.net is built by default can depend on the target.
7131 if test -z "$enable_java_net"; then
7132 enable_java_net=${enable_java_net_default-yes}
7133 fi
7134 if test "$enable_java_net" = no; then
7135
7136 cat >>confdefs.h <<\_ACEOF
7137 #define DISABLE_JAVA_NET 1
7138 _ACEOF
7139
7140 fi
7141
7142 # See if the user wants to configure without libffi. Some
7143 # architectures don't support it, and default values are set in
7144 # configure.host.
7145
7146 # Check whether --with-libffi or --without-libffi was given.
7147 if test "${with_libffi+set}" = set; then
7148 withval="$with_libffi"
7149 :
7150 else
7151 with_libffi=${with_libffi_default-yes}
7152 fi;
7153
7154 LIBFFI=
7155 LIBFFIINCS=
7156 if test "$with_libffi" != no; then
7157
7158 cat >>confdefs.h <<\_ACEOF
7159 #define USE_LIBFFI 1
7160 _ACEOF
7161
7162 LIBFFI=../libffi/libffi_convenience.la
7163 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7164 fi
7165
7166
7167
7168 # See if the user wants to disable JVMPI support.
7169 # Check whether --enable-jvmpi or --disable-jvmpi was given.
7170 if test "${enable_jvmpi+set}" = set; then
7171 enableval="$enable_jvmpi"
7172
7173 fi;
7174
7175 if test "$enable_jvmpi" != no; then
7176
7177 cat >>confdefs.h <<\_ACEOF
7178 #define ENABLE_JVMPI 1
7179 _ACEOF
7180
7181 fi
7182
7183 # If the target is an eCos system, use the appropriate eCos
7184 # I/O routines.
7185 # FIXME: this should not be a local option but a global target
7186 # system; at present there is no eCos target.
7187 TARGET_ECOS=${PROCESS-"no"}
7188
7189 # Check whether --with-ecos or --without-ecos was given.
7190 if test "${with_ecos+set}" = set; then
7191 withval="$with_ecos"
7192 TARGET_ECOS="$with_ecos"
7193
7194 fi;
7195
7196 case "$TARGET_ECOS" in
7197 no) case "$host" in
7198 *mingw*)
7199 PLATFORM=Win32
7200 PLATFORMNET=Win32
7201 PLATFORMH=win32.h
7202
7203 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7204 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7205 LD_PROG=`$CC --print-prog-name=ld`
7206 LD_VERSION=`$LD_PROG --version`
7207 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7208 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7209 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7210 LD_OK="ok"
7211 else
7212 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7213 LD_OK="ok"
7214 fi
7215 fi
7216 if test "x$LD_OK" != x; then
7217 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7218 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7221 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7222 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7223 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7224
7225 cat >>confdefs.h <<\_ACEOF
7226 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7227 _ACEOF
7228
7229 fi
7230 ;;
7231 *)
7232 PLATFORM=Posix
7233 PLATFORMNET=Posix
7234 PLATFORMH=posix.h
7235 ;;
7236 esac
7237 ;;
7238 *)
7239 PLATFORM=Ecos
7240 PLATFORMNET=NoNet
7241
7242 cat >>confdefs.h <<\_ACEOF
7243 #define ECOS 1
7244 _ACEOF
7245
7246 PLATFORMH=posix.h
7247 ;;
7248 esac
7249
7250 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7251
7252
7253 ac_ext=c
7254 ac_cpp='$CPP $CPPFLAGS'
7255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7259 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7260 # On Suns, sometimes $CPP names a directory.
7261 if test -n "$CPP" && test -d "$CPP"; then
7262 CPP=
7263 fi
7264 if test -z "$CPP"; then
7265 if test "${ac_cv_prog_CPP+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 # Double quotes because CPP needs to be expanded
7269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7270 do
7271 ac_preproc_ok=false
7272 for ac_c_preproc_warn_flag in '' yes
7273 do
7274 # Use a header file that comes with gcc, so configuring glibc
7275 # with a fresh cross-compiler works.
7276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277 # <limits.h> exists even on freestanding compilers.
7278 # On the NeXT, cc -E runs the code through the compiler's parser,
7279 # not just through cpp. "Syntax error" is here to catch this case.
7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286 #ifdef __STDC__
7287 # include <limits.h>
7288 #else
7289 # include <assert.h>
7290 #endif
7291 Syntax error
7292 _ACEOF
7293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } >/dev/null; then
7301 if test -s conftest.err; then
7302 ac_cpp_err=$ac_c_preproc_warn_flag
7303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7304 else
7305 ac_cpp_err=
7306 fi
7307 else
7308 ac_cpp_err=yes
7309 fi
7310 if test -z "$ac_cpp_err"; then
7311 :
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 # Broken: fails on valid input.
7317 continue
7318 fi
7319 rm -f conftest.err conftest.$ac_ext
7320
7321 # OK, works on sane cases. Now check whether non-existent headers
7322 # can be detected and how.
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <ac_nonexistent.h>
7330 _ACEOF
7331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } >/dev/null; then
7339 if test -s conftest.err; then
7340 ac_cpp_err=$ac_c_preproc_warn_flag
7341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7342 else
7343 ac_cpp_err=
7344 fi
7345 else
7346 ac_cpp_err=yes
7347 fi
7348 if test -z "$ac_cpp_err"; then
7349 # Broken: success on invalid input.
7350 continue
7351 else
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 # Passes both tests.
7356 ac_preproc_ok=:
7357 break
7358 fi
7359 rm -f conftest.err conftest.$ac_ext
7360
7361 done
7362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7363 rm -f conftest.err conftest.$ac_ext
7364 if $ac_preproc_ok; then
7365 break
7366 fi
7367
7368 done
7369 ac_cv_prog_CPP=$CPP
7370
7371 fi
7372 CPP=$ac_cv_prog_CPP
7373 else
7374 ac_cv_prog_CPP=$CPP
7375 fi
7376 echo "$as_me:$LINENO: result: $CPP" >&5
7377 echo "${ECHO_T}$CPP" >&6
7378 ac_preproc_ok=false
7379 for ac_c_preproc_warn_flag in '' yes
7380 do
7381 # Use a header file that comes with gcc, so configuring glibc
7382 # with a fresh cross-compiler works.
7383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7384 # <limits.h> exists even on freestanding compilers.
7385 # On the NeXT, cc -E runs the code through the compiler's parser,
7386 # not just through cpp. "Syntax error" is here to catch this case.
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 #ifdef __STDC__
7394 # include <limits.h>
7395 #else
7396 # include <assert.h>
7397 #endif
7398 Syntax error
7399 _ACEOF
7400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } >/dev/null; then
7408 if test -s conftest.err; then
7409 ac_cpp_err=$ac_c_preproc_warn_flag
7410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7411 else
7412 ac_cpp_err=
7413 fi
7414 else
7415 ac_cpp_err=yes
7416 fi
7417 if test -z "$ac_cpp_err"; then
7418 :
7419 else
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 # Broken: fails on valid input.
7424 continue
7425 fi
7426 rm -f conftest.err conftest.$ac_ext
7427
7428 # OK, works on sane cases. Now check whether non-existent headers
7429 # can be detected and how.
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <ac_nonexistent.h>
7437 _ACEOF
7438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev/null; then
7446 if test -s conftest.err; then
7447 ac_cpp_err=$ac_c_preproc_warn_flag
7448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7449 else
7450 ac_cpp_err=
7451 fi
7452 else
7453 ac_cpp_err=yes
7454 fi
7455 if test -z "$ac_cpp_err"; then
7456 # Broken: success on invalid input.
7457 continue
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 # Passes both tests.
7463 ac_preproc_ok=:
7464 break
7465 fi
7466 rm -f conftest.err conftest.$ac_ext
7467
7468 done
7469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7470 rm -f conftest.err conftest.$ac_ext
7471 if $ac_preproc_ok; then
7472 :
7473 else
7474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7475 See \`config.log' for more details." >&5
7476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7477 See \`config.log' for more details." >&2;}
7478 { (exit 1); exit 1; }; }
7479 fi
7480
7481 ac_ext=c
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486
7487
7488 echo "$as_me:$LINENO: checking for egrep" >&5
7489 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7490 if test "${ac_cv_prog_egrep+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7494 then ac_cv_prog_egrep='grep -E'
7495 else ac_cv_prog_egrep='egrep'
7496 fi
7497 fi
7498 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7499 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7500 EGREP=$ac_cv_prog_egrep
7501
7502
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 #include <stdint.h>
7510
7511 _ACEOF
7512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7513 $EGREP "uint32_t" >/dev/null 2>&1; then
7514
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_INT32_DEFINED 1
7517 _ACEOF
7518
7519 fi
7520 rm -f conftest*
7521
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. */
7528 #include <inttypes.h>
7529
7530 _ACEOF
7531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7532 $EGREP "uint32_t" >/dev/null 2>&1; then
7533
7534 cat >>confdefs.h <<\_ACEOF
7535 #define HAVE_INT32_DEFINED 1
7536 _ACEOF
7537
7538 fi
7539 rm -f conftest*
7540
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 #include <sys/types.h>
7548
7549 _ACEOF
7550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7551 $EGREP "u_int32_t" >/dev/null 2>&1; then
7552
7553 cat >>confdefs.h <<\_ACEOF
7554 #define HAVE_BSD_INT32_DEFINED 1
7555 _ACEOF
7556
7557 fi
7558 rm -f conftest*
7559
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #include <sys/config.h>
7567
7568 _ACEOF
7569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7570 $EGREP "u_int32_t" >/dev/null 2>&1; then
7571
7572 cat >>confdefs.h <<\_ACEOF
7573 #define HAVE_BSD_INT32_DEFINED 1
7574 _ACEOF
7575
7576 fi
7577 rm -f conftest*
7578
7579
7580
7581
7582 if test "$PLATFORM" = Win32; then
7583 USING_WIN32_PLATFORM_TRUE=
7584 USING_WIN32_PLATFORM_FALSE='#'
7585 else
7586 USING_WIN32_PLATFORM_TRUE='#'
7587 USING_WIN32_PLATFORM_FALSE=
7588 fi
7589
7590
7591
7592 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7593 USING_POSIX_PLATFORM_TRUE=
7594 USING_POSIX_PLATFORM_FALSE='#'
7595 else
7596 USING_POSIX_PLATFORM_TRUE='#'
7597 USING_POSIX_PLATFORM_FALSE=
7598 fi
7599
7600
7601 case "$host" in
7602 *-darwin*) DARWIN_CRT=true ;;
7603 *) DARWIN_CRT=false ;;
7604 esac
7605
7606
7607 if $DARWIN_CRT; then
7608 USING_DARWIN_CRT_TRUE=
7609 USING_DARWIN_CRT_FALSE='#'
7610 else
7611 USING_DARWIN_CRT_TRUE='#'
7612 USING_DARWIN_CRT_FALSE=
7613 fi
7614
7615
7616 # These may not be defined in a non-ANS conformant embedded system.
7617 # FIXME: Should these case a runtime exception in that case?
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 #include <time.h>
7625
7626 _ACEOF
7627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628 $EGREP "mktime" >/dev/null 2>&1; then
7629
7630 cat >>confdefs.h <<\_ACEOF
7631 #define HAVE_MKTIME 1
7632 _ACEOF
7633
7634 fi
7635 rm -f conftest*
7636
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <time.h>
7644
7645 _ACEOF
7646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7647 $EGREP "localtime" >/dev/null 2>&1; then
7648
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_LOCALTIME 1
7651 _ACEOF
7652
7653 fi
7654 rm -f conftest*
7655
7656
7657 # Create the subdirectory for natFile.cc, or the attempt
7658 # to create the link will fail.
7659 test -d java || mkdir java
7660 test -d java/io || mkdir java/io
7661 test -d gnu || mkdir gnu
7662 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7663
7664
7665 # Likewise for natConcreteProcess.cc.
7666 test -d java/lang || mkdir java/lang
7667 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7668
7669
7670 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7671 test -d java/net || mkdir java/net
7672 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7673
7674 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7675
7676
7677 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7678 test -d gnu/java || mkdir gnu/java
7679 test -d gnu/java/net || mkdir gnu/java/net
7680 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7681
7682 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7683
7684
7685 # Likewise for natVMPipe.cc and natVMSelector.cc.
7686 test -d gnu/java/nio || mkdir gnu/java/nio
7687 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
7688
7689 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
7690
7691
7692 # Likewise for natFileChannelImpl.cc
7693 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7694 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7695
7696
7697 case "${host}" in
7698 *mingw*)
7699 SYSTEMSPEC="-lgdi32 -lws2_32"
7700 if test "${with_win32_nlsapi}" = "unicows"; then
7701 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7702 fi
7703 ;;
7704 *)
7705 SYSTEMSPEC=
7706 ;;
7707 esac
7708
7709
7710 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7711
7712
7713
7714 # Check whether --with-system-zlib or --without-system-zlib was given.
7715 if test "${with_system_zlib+set}" = set; then
7716 withval="$with_system_zlib"
7717
7718 fi;
7719 ZLIBSPEC=
7720
7721 ZLIBTESTSPEC=
7722
7723
7724 echo "$as_me:$LINENO: checking for X" >&5
7725 echo $ECHO_N "checking for X... $ECHO_C" >&6
7726
7727
7728 # Check whether --with-x or --without-x was given.
7729 if test "${with_x+set}" = set; then
7730 withval="$with_x"
7731
7732 fi;
7733 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7734 if test "x$with_x" = xno; then
7735 # The user explicitly disabled X.
7736 have_x=disabled
7737 else
7738 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7739 # Both variables are already set.
7740 have_x=yes
7741 else
7742 if test "${ac_cv_have_x+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745 # One or both of the vars are not set, and there is no cached value.
7746 ac_x_includes=no ac_x_libraries=no
7747 rm -fr conftest.dir
7748 if mkdir conftest.dir; then
7749 cd conftest.dir
7750 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7751 cat >Imakefile <<'_ACEOF'
7752 acfindx:
7753 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7754 _ACEOF
7755 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7757 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7758 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7759 for ac_extension in a so sl; do
7760 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7761 test -f $ac_im_libdir/libX11.$ac_extension; then
7762 ac_im_usrlibdir=$ac_im_libdir; break
7763 fi
7764 done
7765 # Screen out bogus values from the imake configuration. They are
7766 # bogus both because they are the default anyway, and because
7767 # using them would break gcc on systems where it needs fixed includes.
7768 case $ac_im_incroot in
7769 /usr/include) ;;
7770 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7771 esac
7772 case $ac_im_usrlibdir in
7773 /usr/lib | /lib) ;;
7774 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7775 esac
7776 fi
7777 cd ..
7778 rm -fr conftest.dir
7779 fi
7780
7781 # Standard set of common directories for X headers.
7782 # Check X11 before X11Rn because it is often a symlink to the current release.
7783 ac_x_header_dirs='
7784 /usr/X11/include
7785 /usr/X11R6/include
7786 /usr/X11R5/include
7787 /usr/X11R4/include
7788
7789 /usr/include/X11
7790 /usr/include/X11R6
7791 /usr/include/X11R5
7792 /usr/include/X11R4
7793
7794 /usr/local/X11/include
7795 /usr/local/X11R6/include
7796 /usr/local/X11R5/include
7797 /usr/local/X11R4/include
7798
7799 /usr/local/include/X11
7800 /usr/local/include/X11R6
7801 /usr/local/include/X11R5
7802 /usr/local/include/X11R4
7803
7804 /usr/X386/include
7805 /usr/x386/include
7806 /usr/XFree86/include/X11
7807
7808 /usr/include
7809 /usr/local/include
7810 /usr/unsupported/include
7811 /usr/athena/include
7812 /usr/local/x11r5/include
7813 /usr/lpp/Xamples/include
7814
7815 /usr/openwin/include
7816 /usr/openwin/share/include'
7817
7818 if test "$ac_x_includes" = no; then
7819 # Guess where to find include files, by looking for Xlib.h.
7820 # First, try using that file with no special directory specified.
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 #include <X11/Xlib.h>
7828 _ACEOF
7829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } >/dev/null; then
7837 if test -s conftest.err; then
7838 ac_cpp_err=$ac_c_preproc_warn_flag
7839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7840 else
7841 ac_cpp_err=
7842 fi
7843 else
7844 ac_cpp_err=yes
7845 fi
7846 if test -z "$ac_cpp_err"; then
7847 # We can compile using X headers with no special include directory.
7848 ac_x_includes=
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 for ac_dir in $ac_x_header_dirs; do
7854 if test -r "$ac_dir/X11/Xlib.h"; then
7855 ac_x_includes=$ac_dir
7856 break
7857 fi
7858 done
7859 fi
7860 rm -f conftest.err conftest.$ac_ext
7861 fi # $ac_x_includes = no
7862
7863 if test "$ac_x_libraries" = no; then
7864 # Check for the libraries.
7865 # See if we find them without any special options.
7866 # Don't add to $LIBS permanently.
7867 ac_save_LIBS=$LIBS
7868 LIBS="-lXt $LIBS"
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; }; }
7873 fi
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 #include <X11/Xlib.h>
7881 int
7882 main ()
7883 {
7884 XrmInitialize ()
7885 ;
7886 return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest$ac_exeext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 LIBS=$ac_save_LIBS
7912 # We can link X programs with no special library path.
7913 ac_x_libraries=
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 LIBS=$ac_save_LIBS
7919 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7920 do
7921 # Don't even attempt the hair of trying to link an X program!
7922 for ac_extension in a so sl; do
7923 if test -r $ac_dir/libXt.$ac_extension; then
7924 ac_x_libraries=$ac_dir
7925 break 2
7926 fi
7927 done
7928 done
7929 fi
7930 rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 fi # $ac_x_libraries = no
7933
7934 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7935 # Didn't find X anywhere. Cache the known absence of X.
7936 ac_cv_have_x="have_x=no"
7937 else
7938 # Record where we found X for the cache.
7939 ac_cv_have_x="have_x=yes \
7940 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7941 fi
7942 fi
7943
7944 fi
7945 eval "$ac_cv_have_x"
7946 fi # $with_x != no
7947
7948 if test "$have_x" != yes; then
7949 echo "$as_me:$LINENO: result: $have_x" >&5
7950 echo "${ECHO_T}$have_x" >&6
7951 no_x=yes
7952 else
7953 # If each of the values was on the command line, it overrides each guess.
7954 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7955 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7956 # Update the cache value to reflect the command line values.
7957 ac_cv_have_x="have_x=yes \
7958 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7959 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7960 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7961 fi
7962
7963 if test "$no_x" = yes; then
7964 # Not all programs may use this symbol, but it does not hurt to define it.
7965
7966 cat >>confdefs.h <<\_ACEOF
7967 #define X_DISPLAY_MISSING 1
7968 _ACEOF
7969
7970 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7971 else
7972 if test -n "$x_includes"; then
7973 X_CFLAGS="$X_CFLAGS -I$x_includes"
7974 fi
7975
7976 # It would also be nice to do this for all -L options, not just this one.
7977 if test -n "$x_libraries"; then
7978 X_LIBS="$X_LIBS -L$x_libraries"
7979 # For Solaris; some versions of Sun CC require a space after -R and
7980 # others require no space. Words are not sufficient . . . .
7981 case `(uname -sr) 2>/dev/null` in
7982 "SunOS 5"*)
7983 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7984 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7985 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7986 if test x$gcc_no_link = xyes; then
7987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7989 { (exit 1); exit 1; }; }
7990 fi
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997
7998 int
7999 main ()
8000 {
8001
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8008 (eval $ac_link) 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -z "$ac_c_werror_flag"
8016 || test ! -s conftest.err'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; } &&
8022 { ac_try='test -s conftest$ac_exeext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 ac_R_nospace=yes
8029 else
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033 ac_R_nospace=no
8034 fi
8035 rm -f conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8037 if test $ac_R_nospace = yes; then
8038 echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6
8040 X_LIBS="$X_LIBS -R$x_libraries"
8041 else
8042 LIBS="$ac_xsave_LIBS -R $x_libraries"
8043 if test x$gcc_no_link = xyes; then
8044 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8045 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8046 { (exit 1); exit 1; }; }
8047 fi
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054
8055 int
8056 main ()
8057 {
8058
8059 ;
8060 return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag"
8073 || test ! -s conftest.err'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8085 ac_R_space=yes
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8089
8090 ac_R_space=no
8091 fi
8092 rm -f conftest.err conftest.$ac_objext \
8093 conftest$ac_exeext conftest.$ac_ext
8094 if test $ac_R_space = yes; then
8095 echo "$as_me:$LINENO: result: yes" >&5
8096 echo "${ECHO_T}yes" >&6
8097 X_LIBS="$X_LIBS -R $x_libraries"
8098 else
8099 echo "$as_me:$LINENO: result: neither works" >&5
8100 echo "${ECHO_T}neither works" >&6
8101 fi
8102 fi
8103 LIBS=$ac_xsave_LIBS
8104 esac
8105 fi
8106
8107 # Check for system-dependent libraries X programs must link with.
8108 # Do this before checking for the system-independent R6 libraries
8109 # (-lICE), since we may need -lsocket or whatever for X linking.
8110
8111 if test "$ISC" = yes; then
8112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8113 else
8114 # Martyn Johnson says this is needed for Ultrix, if the X
8115 # libraries were built with DECnet support. And Karl Berry says
8116 # the Alpha needs dnet_stub (dnet does not exist).
8117 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8118 if test x$gcc_no_link = xyes; then
8119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8121 { (exit 1); exit 1; }; }
8122 fi
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h. */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129
8130 /* Override any gcc2 internal prototype to avoid an error. */
8131 #ifdef __cplusplus
8132 extern "C"
8133 #endif
8134 /* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8136 char XOpenDisplay ();
8137 int
8138 main ()
8139 {
8140 XOpenDisplay ();
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 rm -f conftest.$ac_objext conftest$ac_exeext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8147 (eval $ac_link) 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag"
8155 || test ! -s conftest.err'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; } &&
8161 { ac_try='test -s conftest$ac_exeext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 :
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8173 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8174 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 ac_check_lib_save_LIBS=$LIBS
8178 LIBS="-ldnet $LIBS"
8179 if test x$gcc_no_link = xyes; then
8180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8182 { (exit 1); exit 1; }; }
8183 fi
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190
8191 /* Override any gcc2 internal prototype to avoid an error. */
8192 #ifdef __cplusplus
8193 extern "C"
8194 #endif
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8197 char dnet_ntoa ();
8198 int
8199 main ()
8200 {
8201 dnet_ntoa ();
8202 ;
8203 return 0;
8204 }
8205 _ACEOF
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208 (eval $ac_link) 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_cv_lib_dnet_dnet_ntoa=yes
8229 else
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233 ac_cv_lib_dnet_dnet_ntoa=no
8234 fi
8235 rm -f conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext conftest.$ac_ext
8237 LIBS=$ac_check_lib_save_LIBS
8238 fi
8239 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8240 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8241 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8242 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8243 fi
8244
8245 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8246 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8247 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8248 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251 ac_check_lib_save_LIBS=$LIBS
8252 LIBS="-ldnet_stub $LIBS"
8253 if test x$gcc_no_link = xyes; then
8254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8256 { (exit 1); exit 1; }; }
8257 fi
8258 cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264
8265 /* Override any gcc2 internal prototype to avoid an error. */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8271 char dnet_ntoa ();
8272 int
8273 main ()
8274 {
8275 dnet_ntoa ();
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307 ac_cv_lib_dnet_stub_dnet_ntoa=no
8308 fi
8309 rm -f conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 LIBS=$ac_check_lib_save_LIBS
8312 fi
8313 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8314 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8315 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8316 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8317 fi
8318
8319 fi
8320 fi
8321 rm -f conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
8323 LIBS="$ac_xsave_LIBS"
8324
8325 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8326 # to get the SysV transport functions.
8327 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8328 # needs -lnsl.
8329 # The nsl library prevents programs from opening the X display
8330 # on Irix 5.2, according to T.E. Dickey.
8331 # The functions gethostbyname, getservbyname, and inet_addr are
8332 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8333 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8334 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8335 if test "${ac_cv_func_gethostbyname+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338 if test x$gcc_no_link = xyes; then
8339 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8341 { (exit 1); exit 1; }; }
8342 fi
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8351 #define gethostbyname innocuous_gethostbyname
8352
8353 /* System header to define __stub macros and hopefully few prototypes,
8354 which can conflict with char gethostbyname (); below.
8355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8356 <limits.h> exists even on freestanding compilers. */
8357
8358 #ifdef __STDC__
8359 # include <limits.h>
8360 #else
8361 # include <assert.h>
8362 #endif
8363
8364 #undef gethostbyname
8365
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 #ifdef __cplusplus
8368 extern "C"
8369 {
8370 #endif
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373 char gethostbyname ();
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8378 choke me
8379 #else
8380 char (*f) () = gethostbyname;
8381 #endif
8382 #ifdef __cplusplus
8383 }
8384 #endif
8385
8386 int
8387 main ()
8388 {
8389 return f != gethostbyname;
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag"
8404 || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_func_gethostbyname=yes
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 ac_cv_func_gethostbyname=no
8422 fi
8423 rm -f conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8425 fi
8426 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8427 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8428
8429 if test $ac_cv_func_gethostbyname = no; then
8430 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8431 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8432 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435 ac_check_lib_save_LIBS=$LIBS
8436 LIBS="-lnsl $LIBS"
8437 if test x$gcc_no_link = xyes; then
8438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8440 { (exit 1); exit 1; }; }
8441 fi
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h. */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 #ifdef __cplusplus
8451 extern "C"
8452 #endif
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455 char gethostbyname ();
8456 int
8457 main ()
8458 {
8459 gethostbyname ();
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_lib_nsl_gethostbyname=yes
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 ac_cv_lib_nsl_gethostbyname=no
8492 fi
8493 rm -f conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8496 fi
8497 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8498 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8499 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8501 fi
8502
8503 if test $ac_cv_lib_nsl_gethostbyname = no; then
8504 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8505 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8506 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509 ac_check_lib_save_LIBS=$LIBS
8510 LIBS="-lbsd $LIBS"
8511 if test x$gcc_no_link = xyes; then
8512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8514 { (exit 1); exit 1; }; }
8515 fi
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522
8523 /* Override any gcc2 internal prototype to avoid an error. */
8524 #ifdef __cplusplus
8525 extern "C"
8526 #endif
8527 /* We use char because int might match the return type of a gcc2
8528 builtin and then its argument prototype would still apply. */
8529 char gethostbyname ();
8530 int
8531 main ()
8532 {
8533 gethostbyname ();
8534 ;
8535 return 0;
8536 }
8537 _ACEOF
8538 rm -f conftest.$ac_objext conftest$ac_exeext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_lib_bsd_gethostbyname=yes
8561 else
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8564
8565 ac_cv_lib_bsd_gethostbyname=no
8566 fi
8567 rm -f conftest.err conftest.$ac_objext \
8568 conftest$ac_exeext conftest.$ac_ext
8569 LIBS=$ac_check_lib_save_LIBS
8570 fi
8571 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8572 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8573 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8575 fi
8576
8577 fi
8578 fi
8579
8580 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8581 # socket/setsockopt and other routines are undefined under SCO ODT
8582 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8583 # on later versions), says Simon Leinen: it contains gethostby*
8584 # variants that don't use the name server (or something). -lsocket
8585 # must be given before -lnsl if both are needed. We assume that
8586 # if connect needs -lnsl, so does gethostbyname.
8587 echo "$as_me:$LINENO: checking for connect" >&5
8588 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8589 if test "${ac_cv_func_connect+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592 if test x$gcc_no_link = xyes; then
8593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8595 { (exit 1); exit 1; }; }
8596 fi
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h. */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8605 #define connect innocuous_connect
8606
8607 /* System header to define __stub macros and hopefully few prototypes,
8608 which can conflict with char connect (); below.
8609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8610 <limits.h> exists even on freestanding compilers. */
8611
8612 #ifdef __STDC__
8613 # include <limits.h>
8614 #else
8615 # include <assert.h>
8616 #endif
8617
8618 #undef connect
8619
8620 /* Override any gcc2 internal prototype to avoid an error. */
8621 #ifdef __cplusplus
8622 extern "C"
8623 {
8624 #endif
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char connect ();
8628 /* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
8631 #if defined (__stub_connect) || defined (__stub___connect)
8632 choke me
8633 #else
8634 char (*f) () = connect;
8635 #endif
8636 #ifdef __cplusplus
8637 }
8638 #endif
8639
8640 int
8641 main ()
8642 {
8643 return f != connect;
8644 ;
8645 return 0;
8646 }
8647 _ACEOF
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>conftest.er1
8651 ac_status=$?
8652 grep -v '^ *+' conftest.er1 >conftest.err
8653 rm -f conftest.er1
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -z "$ac_c_werror_flag"
8658 || test ! -s conftest.err'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; } &&
8664 { ac_try='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_func_connect=yes
8671 else
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_cv_func_connect=no
8676 fi
8677 rm -f conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 fi
8680 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8681 echo "${ECHO_T}$ac_cv_func_connect" >&6
8682
8683 if test $ac_cv_func_connect = no; then
8684 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8685 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8686 if test "${ac_cv_lib_socket_connect+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689 ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8691 if test x$gcc_no_link = xyes; then
8692 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8694 { (exit 1); exit 1; }; }
8695 fi
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702
8703 /* Override any gcc2 internal prototype to avoid an error. */
8704 #ifdef __cplusplus
8705 extern "C"
8706 #endif
8707 /* We use char because int might match the return type of a gcc2
8708 builtin and then its argument prototype would still apply. */
8709 char connect ();
8710 int
8711 main ()
8712 {
8713 connect ();
8714 ;
8715 return 0;
8716 }
8717 _ACEOF
8718 rm -f conftest.$ac_objext conftest$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -z "$ac_c_werror_flag"
8728 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_lib_socket_connect=yes
8741 else
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_cv_lib_socket_connect=no
8746 fi
8747 rm -f conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 LIBS=$ac_check_lib_save_LIBS
8750 fi
8751 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8752 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8753 if test $ac_cv_lib_socket_connect = yes; then
8754 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8755 fi
8756
8757 fi
8758
8759 # Guillermo Gomez says -lposix is necessary on A/UX.
8760 echo "$as_me:$LINENO: checking for remove" >&5
8761 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8762 if test "${ac_cv_func_remove+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 if test x$gcc_no_link = xyes; then
8766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8768 { (exit 1); exit 1; }; }
8769 fi
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8778 #define remove innocuous_remove
8779
8780 /* System header to define __stub macros and hopefully few prototypes,
8781 which can conflict with char remove (); below.
8782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8783 <limits.h> exists even on freestanding compilers. */
8784
8785 #ifdef __STDC__
8786 # include <limits.h>
8787 #else
8788 # include <assert.h>
8789 #endif
8790
8791 #undef remove
8792
8793 /* Override any gcc2 internal prototype to avoid an error. */
8794 #ifdef __cplusplus
8795 extern "C"
8796 {
8797 #endif
8798 /* We use char because int might match the return type of a gcc2
8799 builtin and then its argument prototype would still apply. */
8800 char remove ();
8801 /* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804 #if defined (__stub_remove) || defined (__stub___remove)
8805 choke me
8806 #else
8807 char (*f) () = remove;
8808 #endif
8809 #ifdef __cplusplus
8810 }
8811 #endif
8812
8813 int
8814 main ()
8815 {
8816 return f != remove;
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag"
8831 || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_func_remove=yes
8844 else
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 ac_cv_func_remove=no
8849 fi
8850 rm -f conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 fi
8853 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8854 echo "${ECHO_T}$ac_cv_func_remove" >&6
8855
8856 if test $ac_cv_func_remove = no; then
8857 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8858 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8859 if test "${ac_cv_lib_posix_remove+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 ac_check_lib_save_LIBS=$LIBS
8863 LIBS="-lposix $LIBS"
8864 if test x$gcc_no_link = xyes; then
8865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8867 { (exit 1); exit 1; }; }
8868 fi
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875
8876 /* Override any gcc2 internal prototype to avoid an error. */
8877 #ifdef __cplusplus
8878 extern "C"
8879 #endif
8880 /* We use char because int might match the return type of a gcc2
8881 builtin and then its argument prototype would still apply. */
8882 char remove ();
8883 int
8884 main ()
8885 {
8886 remove ();
8887 ;
8888 return 0;
8889 }
8890 _ACEOF
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_lib_posix_remove=yes
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918 ac_cv_lib_posix_remove=no
8919 fi
8920 rm -f conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8923 fi
8924 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8925 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8926 if test $ac_cv_lib_posix_remove = yes; then
8927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8928 fi
8929
8930 fi
8931
8932 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8933 echo "$as_me:$LINENO: checking for shmat" >&5
8934 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8935 if test "${ac_cv_func_shmat+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938 if test x$gcc_no_link = xyes; then
8939 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8940 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8941 { (exit 1); exit 1; }; }
8942 fi
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8951 #define shmat innocuous_shmat
8952
8953 /* System header to define __stub macros and hopefully few prototypes,
8954 which can conflict with char shmat (); below.
8955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8956 <limits.h> exists even on freestanding compilers. */
8957
8958 #ifdef __STDC__
8959 # include <limits.h>
8960 #else
8961 # include <assert.h>
8962 #endif
8963
8964 #undef shmat
8965
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 #ifdef __cplusplus
8968 extern "C"
8969 {
8970 #endif
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8973 char shmat ();
8974 /* The GNU C library defines this for functions which it implements
8975 to always fail with ENOSYS. Some functions are actually named
8976 something starting with __ and the normal name is an alias. */
8977 #if defined (__stub_shmat) || defined (__stub___shmat)
8978 choke me
8979 #else
8980 char (*f) () = shmat;
8981 #endif
8982 #ifdef __cplusplus
8983 }
8984 #endif
8985
8986 int
8987 main ()
8988 {
8989 return f != shmat;
8990 ;
8991 return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996 (eval $ac_link) 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -z "$ac_c_werror_flag"
9004 || test ! -s conftest.err'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; } &&
9010 { ac_try='test -s conftest$ac_exeext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 ac_cv_func_shmat=yes
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 ac_cv_func_shmat=no
9022 fi
9023 rm -f conftest.err conftest.$ac_objext \
9024 conftest$ac_exeext conftest.$ac_ext
9025 fi
9026 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9027 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9028
9029 if test $ac_cv_func_shmat = no; then
9030 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9031 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9032 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 ac_check_lib_save_LIBS=$LIBS
9036 LIBS="-lipc $LIBS"
9037 if test x$gcc_no_link = xyes; then
9038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9040 { (exit 1); exit 1; }; }
9041 fi
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048
9049 /* Override any gcc2 internal prototype to avoid an error. */
9050 #ifdef __cplusplus
9051 extern "C"
9052 #endif
9053 /* We use char because int might match the return type of a gcc2
9054 builtin and then its argument prototype would still apply. */
9055 char shmat ();
9056 int
9057 main ()
9058 {
9059 shmat ();
9060 ;
9061 return 0;
9062 }
9063 _ACEOF
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066 (eval $ac_link) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest$ac_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_cv_lib_ipc_shmat=yes
9087 else
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9090
9091 ac_cv_lib_ipc_shmat=no
9092 fi
9093 rm -f conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9095 LIBS=$ac_check_lib_save_LIBS
9096 fi
9097 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9098 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9099 if test $ac_cv_lib_ipc_shmat = yes; then
9100 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9101 fi
9102
9103 fi
9104 fi
9105
9106 # Check for libraries that X11R6 Xt/Xaw programs need.
9107 ac_save_LDFLAGS=$LDFLAGS
9108 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9109 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9110 # check for ICE first), but we must link in the order -lSM -lICE or
9111 # we get undefined symbols. So assume we have SM if we have ICE.
9112 # These have to be linked with before -lX11, unlike the other
9113 # libraries we check for below, so use a different variable.
9114 # John Interrante, Karl Berry
9115 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9116 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9117 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120 ac_check_lib_save_LIBS=$LIBS
9121 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9122 if test x$gcc_no_link = xyes; then
9123 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9125 { (exit 1); exit 1; }; }
9126 fi
9127 cat >conftest.$ac_ext <<_ACEOF
9128 /* confdefs.h. */
9129 _ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9133
9134 /* Override any gcc2 internal prototype to avoid an error. */
9135 #ifdef __cplusplus
9136 extern "C"
9137 #endif
9138 /* We use char because int might match the return type of a gcc2
9139 builtin and then its argument prototype would still apply. */
9140 char IceConnectionNumber ();
9141 int
9142 main ()
9143 {
9144 IceConnectionNumber ();
9145 ;
9146 return 0;
9147 }
9148 _ACEOF
9149 rm -f conftest.$ac_objext conftest$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_lib_ICE_IceConnectionNumber=yes
9172 else
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9175
9176 ac_cv_lib_ICE_IceConnectionNumber=no
9177 fi
9178 rm -f conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 LIBS=$ac_check_lib_save_LIBS
9181 fi
9182 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9183 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9184 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9185 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9186 fi
9187
9188 LDFLAGS=$ac_save_LDFLAGS
9189
9190 fi
9191
9192
9193 # FIXME: this should be _libs on some hosts.
9194 libsubdir=.libs
9195
9196 # extra LD Flags which are required for targets
9197 case "${host}" in
9198 *-*-darwin[0-7].*)
9199 # For now we have to disable it on darwin[8-9] because it slows down
9200 # the linking phase. A possible bug in ld?
9201 # on Darwin -single_module speeds up loading of the dynamic libraries.
9202 extra_ldflags_libjava=-Wl,-single_module
9203 ;;
9204 esac
9205
9206
9207 # Allow the GC to be disabled. Can be useful when debugging.
9208 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9209 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9210 # Check whether --enable-java-gc or --disable-java-gc was given.
9211 if test "${enable_java_gc+set}" = set; then
9212 enableval="$enable_java_gc"
9213 GC=$enableval
9214 else
9215 GC=boehm
9216 fi;
9217 GCLIBS=
9218 GCINCS=
9219 GCDEPS=
9220 GCSPEC=
9221 JC1GCSPEC=
9222 GCTESTSPEC=
9223 case "$GC" in
9224 boehm)
9225 echo "$as_me:$LINENO: result: boehm" >&5
9226 echo "${ECHO_T}boehm" >&6
9227 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9228 JC1GCSPEC='-fuse-boehm-gc'
9229 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9230 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9231 GCOBJS=boehm.lo
9232 GCHDR=boehm-gc.h
9233 # The POSIX thread support needs to know this.
9234
9235 cat >>confdefs.h <<\_ACEOF
9236 #define HAVE_BOEHM_GC 1
9237 _ACEOF
9238
9239 ;;
9240 no)
9241 echo "$as_me:$LINENO: result: none" >&5
9242 echo "${ECHO_T}none" >&6
9243 GCHDR=no-gc.h
9244 ;;
9245 *)
9246 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9247 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9248 { (exit 1); exit 1; }; }
9249 ;;
9250 esac
9251
9252
9253
9254
9255
9256
9257 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9258
9259
9260
9261 if test "$GC" = boehm; then
9262 USING_BOEHMGC_TRUE=
9263 USING_BOEHMGC_FALSE='#'
9264 else
9265 USING_BOEHMGC_TRUE='#'
9266 USING_BOEHMGC_FALSE=
9267 fi
9268
9269
9270
9271 if test "$GC" = no; then
9272 USING_NOGC_TRUE=
9273 USING_NOGC_FALSE='#'
9274 else
9275 USING_NOGC_TRUE='#'
9276 USING_NOGC_FALSE=
9277 fi
9278
9279
9280
9281 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9282 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9283 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9284 echo "$as_me:$LINENO: result: $THREADS" >&5
9285 echo "${ECHO_T}$THREADS" >&6
9286
9287 case "$THREADS" in
9288 no | none | single)
9289 THREADS=none
9290 ;;
9291 posix | posix95 | pthreads)
9292 THREADS=posix
9293 case "$host" in
9294 *-*-linux*)
9295
9296 cat >>confdefs.h <<\_ACEOF
9297 #define LINUX_THREADS 1
9298 _ACEOF
9299
9300 ;;
9301 esac
9302 ;;
9303 win32)
9304 ;;
9305 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9306 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9307 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9308 { (exit 1); exit 1; }; }
9309 ;;
9310 *)
9311 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9312 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9313 { (exit 1); exit 1; }; }
9314 ;;
9315 esac
9316
9317 THREADCXXFLAGS=
9318 THREADLDFLAGS=
9319 THREADLIBS=
9320 THREADINCS=
9321 THREADDEPS=
9322 THREADH=
9323 THREADSPEC=
9324 THREADSTARTFILESPEC=
9325 case "$THREADS" in
9326 posix)
9327 case "$host" in
9328 *-*-cygwin*)
9329 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9330 ;;
9331 *-*-freebsd[1234]*)
9332 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9333 # merely adds pthread_* functions) but it does have a -pthread switch
9334 # which is required at link-time to select -lc_r *instead* of -lc.
9335 THREADLDFLAGS=-pthread
9336 # Don't set THREADSPEC here as might be expected since -pthread is
9337 # not processed when found within a spec file, it must come from
9338 # the command line. For now, the user must provide the -pthread
9339 # switch to link code compiled with gcj. In future, consider adding
9340 # support for weak references to pthread_* functions ala gthr.h API.
9341 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9342 ;;
9343 *-*-freebsd*)
9344 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9345 # systems which support threads and -lpthread.
9346 THREADLDFLAGS=-pthread
9347 THREADSPEC=-lpthread
9348 ;;
9349 alpha*-dec-osf* | hppa*-hp-hpux*)
9350 THREADCXXFLAGS=-pthread
9351 # boehm-gc needs some functions from librt, so link that too.
9352 THREADLIBS='-lpthread -lrt'
9353 THREADSPEC='-lpthread -lrt'
9354 ;;
9355 *)
9356 THREADLIBS=-lpthread
9357 THREADSPEC=-lpthread
9358 ;;
9359 esac
9360 THREADH=posix-threads.h
9361 # MIT pthreads doesn't seem to have the mutexattr functions.
9362 # But for now we don't check for it. We just assume you aren't
9363 # using MIT pthreads.
9364
9365 cat >>confdefs.h <<\_ACEOF
9366 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9367 _ACEOF
9368
9369
9370 # If we're using the Boehm GC, then we happen to know that it
9371 # defines _REENTRANT, so we don't bother. Eww.
9372 if test "$GC" != boehm; then
9373
9374 cat >>confdefs.h <<\_ACEOF
9375 #define _REENTRANT 1
9376 _ACEOF
9377
9378 fi
9379
9380 cat >>confdefs.h <<\_ACEOF
9381 #define _POSIX_PTHREAD_SEMANTICS 1
9382 _ACEOF
9383
9384 ;;
9385
9386 win32)
9387 THREADH=win32-threads.h
9388 THREADCXXFLAGS=-mthreads
9389 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9390 # But we do not want the executables created to be dependent on
9391 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9392 # exception handling contexts. The following kludge achieves this effect
9393 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9394 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9395 # A workaround is to explicitly use -mthreads while linking Java programs.
9396 # See PR libgcj/28263.
9397 #
9398 # FIXME: In Java we are able to detect thread death at the end of
9399 # Thread.run() so we should be able to clean up the exception handling
9400 # contexts ourselves.
9401 THREADSTARTFILESPEC='crtmt%O%s'
9402 ;;
9403
9404 none)
9405 THREADH=no-threads.h
9406 ;;
9407 esac
9408 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419 if test "$THREADS" = posix; then
9420 USING_POSIX_THREADS_TRUE=
9421 USING_POSIX_THREADS_FALSE='#'
9422 else
9423 USING_POSIX_THREADS_TRUE='#'
9424 USING_POSIX_THREADS_FALSE=
9425 fi
9426
9427
9428
9429 if test "$THREADS" = win32; then
9430 USING_WIN32_THREADS_TRUE=
9431 USING_WIN32_THREADS_FALSE='#'
9432 else
9433 USING_WIN32_THREADS_TRUE='#'
9434 USING_WIN32_THREADS_FALSE=
9435 fi
9436
9437
9438
9439 if test "$THREADS" = none; then
9440 USING_NO_THREADS_TRUE=
9441 USING_NO_THREADS_FALSE='#'
9442 else
9443 USING_NO_THREADS_TRUE='#'
9444 USING_NO_THREADS_FALSE=
9445 fi
9446
9447
9448
9449 if test "$use_libgcj_bc" = yes; then
9450 USE_LIBGCJ_BC_TRUE=
9451 USE_LIBGCJ_BC_FALSE='#'
9452 else
9453 USE_LIBGCJ_BC_TRUE='#'
9454 USE_LIBGCJ_BC_FALSE=
9455 fi
9456
9457
9458 if test -d sysdep; then true; else mkdir sysdep; fi
9459 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9460
9461 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9462
9463 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9464
9465
9466 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9467 if test "$use_libgcj_bc" = yes; then
9468 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9469 fi
9470
9471
9472 HASH_SYNC_SPEC=
9473 # Hash synchronization is only useful with posix threads right now.
9474 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9475 HASH_SYNC_SPEC=-fhash-synchronization
9476
9477 cat >>confdefs.h <<\_ACEOF
9478 #define JV_HASH_SYNCHRONIZATION 1
9479 _ACEOF
9480
9481 fi
9482
9483
9484
9485
9486 if test "$GCC" = yes; then
9487 USING_GCC_TRUE=
9488 USING_GCC_FALSE='#'
9489 else
9490 USING_GCC_TRUE='#'
9491 USING_GCC_FALSE=
9492 fi
9493
9494
9495 # We're in the tree with gcc, and need to include some of its headers.
9496 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
9497
9498 if test "x${with_newlib}" = "xyes"; then
9499 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9500 # may not work correctly, because the compiler may not be able to
9501 # link executables.
9502
9503 # We assume newlib. This lets us hard-code the functions we know
9504 # we'll have.
9505
9506 cat >>confdefs.h <<\_ACEOF
9507 #define HAVE_MEMMOVE 1
9508 _ACEOF
9509
9510
9511 cat >>confdefs.h <<\_ACEOF
9512 #define HAVE_MEMCPY 1
9513 _ACEOF
9514
9515
9516 cat >>confdefs.h <<\_ACEOF
9517 #define HAVE_STRERROR 1
9518 _ACEOF
9519
9520
9521 cat >>confdefs.h <<\_ACEOF
9522 #define HAVE_TIME 1
9523 _ACEOF
9524
9525
9526 cat >>confdefs.h <<\_ACEOF
9527 #define HAVE_GMTIME_R 1
9528 _ACEOF
9529
9530
9531 cat >>confdefs.h <<\_ACEOF
9532 #define HAVE_LOCALTIME_R 1
9533 _ACEOF
9534
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_USLEEP_DECL 1
9538 _ACEOF
9539
9540 # This is only for POSIX threads.
9541
9542 cat >>confdefs.h <<\_ACEOF
9543 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9544 _ACEOF
9545
9546 # We also assume we are using gcc, which provides alloca.
9547 cat >>confdefs.h <<\_ACEOF
9548 #define HAVE_ALLOCA 1
9549 _ACEOF
9550
9551
9552 # Assume we do not have getuid and friends.
9553
9554 cat >>confdefs.h <<\_ACEOF
9555 #define NO_GETUID 1
9556 _ACEOF
9557
9558 PLATFORMNET=NoNet
9559 else
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9596 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9597 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9598 nl_langinfo setlocale \
9599 inet_pton uname inet_ntoa \
9600 fork execvp pipe sigaction ftruncate mmap \
9601 getifaddrs
9602 do
9603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9604 echo "$as_me:$LINENO: checking for $ac_func" >&5
9605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9606 if eval "test \"\${$as_ac_var+set}\" = set"; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 if test x$gcc_no_link = xyes; then
9610 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9612 { (exit 1); exit 1; }; }
9613 fi
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622 #define $ac_func innocuous_$ac_func
9623
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char $ac_func (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
9628
9629 #ifdef __STDC__
9630 # include <limits.h>
9631 #else
9632 # include <assert.h>
9633 #endif
9634
9635 #undef $ac_func
9636
9637 /* Override any gcc2 internal prototype to avoid an error. */
9638 #ifdef __cplusplus
9639 extern "C"
9640 {
9641 #endif
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644 char $ac_func ();
9645 /* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9649 choke me
9650 #else
9651 char (*f) () = $ac_func;
9652 #endif
9653 #ifdef __cplusplus
9654 }
9655 #endif
9656
9657 int
9658 main ()
9659 {
9660 return f != $ac_func;
9661 ;
9662 return 0;
9663 }
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667 (eval $ac_link) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest$ac_exeext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 eval "$as_ac_var=yes"
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 eval "$as_ac_var=no"
9693 fi
9694 rm -f conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696 fi
9697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9699 if test `eval echo '${'$as_ac_var'}'` = yes; then
9700 cat >>confdefs.h <<_ACEOF
9701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9702 _ACEOF
9703
9704 fi
9705 done
9706
9707
9708
9709 for ac_func in inet_aton inet_addr
9710 do
9711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9712 echo "$as_me:$LINENO: checking for $ac_func" >&5
9713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9714 if eval "test \"\${$as_ac_var+set}\" = set"; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 if test x$gcc_no_link = xyes; then
9718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9720 { (exit 1); exit 1; }; }
9721 fi
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h. */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9730 #define $ac_func innocuous_$ac_func
9731
9732 /* System header to define __stub macros and hopefully few prototypes,
9733 which can conflict with char $ac_func (); below.
9734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9735 <limits.h> exists even on freestanding compilers. */
9736
9737 #ifdef __STDC__
9738 # include <limits.h>
9739 #else
9740 # include <assert.h>
9741 #endif
9742
9743 #undef $ac_func
9744
9745 /* Override any gcc2 internal prototype to avoid an error. */
9746 #ifdef __cplusplus
9747 extern "C"
9748 {
9749 #endif
9750 /* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9752 char $ac_func ();
9753 /* The GNU C library defines this for functions which it implements
9754 to always fail with ENOSYS. Some functions are actually named
9755 something starting with __ and the normal name is an alias. */
9756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9757 choke me
9758 #else
9759 char (*f) () = $ac_func;
9760 #endif
9761 #ifdef __cplusplus
9762 }
9763 #endif
9764
9765 int
9766 main ()
9767 {
9768 return f != $ac_func;
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag"
9783 || test ! -s conftest.err'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 eval "$as_ac_var=yes"
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800 eval "$as_ac_var=no"
9801 fi
9802 rm -f conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 fi
9805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9807 if test `eval echo '${'$as_ac_var'}'` = yes; then
9808 cat >>confdefs.h <<_ACEOF
9809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9810 _ACEOF
9811 break
9812 fi
9813 done
9814
9815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9817 if test "${ac_cv_header_stdc+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826 #include <stdlib.h>
9827 #include <stdarg.h>
9828 #include <string.h>
9829 #include <float.h>
9830
9831 int
9832 main ()
9833 {
9834
9835 ;
9836 return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841 (eval $ac_compile) 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); } &&
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest.$ac_objext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_header_stdc=yes
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_cv_header_stdc=no
9867 fi
9868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9869
9870 if test $ac_cv_header_stdc = yes; then
9871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #include <string.h>
9879
9880 _ACEOF
9881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9882 $EGREP "memchr" >/dev/null 2>&1; then
9883 :
9884 else
9885 ac_cv_header_stdc=no
9886 fi
9887 rm -f conftest*
9888
9889 fi
9890
9891 if test $ac_cv_header_stdc = yes; then
9892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 #include <stdlib.h>
9900
9901 _ACEOF
9902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9903 $EGREP "free" >/dev/null 2>&1; then
9904 :
9905 else
9906 ac_cv_header_stdc=no
9907 fi
9908 rm -f conftest*
9909
9910 fi
9911
9912 if test $ac_cv_header_stdc = yes; then
9913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9914 if test "$cross_compiling" = yes; then
9915 :
9916 else
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 #include <ctype.h>
9924 #if ((' ' & 0x0FF) == 0x020)
9925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9927 #else
9928 # define ISLOWER(c) \
9929 (('a' <= (c) && (c) <= 'i') \
9930 || ('j' <= (c) && (c) <= 'r') \
9931 || ('s' <= (c) && (c) <= 'z'))
9932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9933 #endif
9934
9935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9936 int
9937 main ()
9938 {
9939 int i;
9940 for (i = 0; i < 256; i++)
9941 if (XOR (islower (i), ISLOWER (i))
9942 || toupper (i) != TOUPPER (i))
9943 exit(2);
9944 exit (0);
9945 }
9946 _ACEOF
9947 rm -f conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 :
9959 else
9960 echo "$as_me: program exited with status $ac_status" >&5
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9963
9964 ( exit $ac_status )
9965 ac_cv_header_stdc=no
9966 fi
9967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9968 fi
9969 fi
9970 fi
9971 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9973 if test $ac_cv_header_stdc = yes; then
9974
9975 cat >>confdefs.h <<\_ACEOF
9976 #define STDC_HEADERS 1
9977 _ACEOF
9978
9979 fi
9980
9981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9992 inttypes.h stdint.h unistd.h
9993 do
9994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9995 echo "$as_me:$LINENO: checking for $ac_header" >&5
9996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h. */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 $ac_includes_default
10007
10008 #include <$ac_header>
10009 _ACEOF
10010 rm -f conftest.$ac_objext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10012 (eval $ac_compile) 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try='test -z "$ac_c_werror_flag"
10020 || test ! -s conftest.err'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try='test -s conftest.$ac_objext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 eval "$as_ac_Header=yes"
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 eval "$as_ac_Header=no"
10038 fi
10039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10040 fi
10041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10044 cat >>confdefs.h <<_ACEOF
10045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10046 _ACEOF
10047
10048 fi
10049
10050 done
10051
10052
10053
10054
10055
10056 for ac_header in execinfo.h unistd.h dlfcn.h
10057 do
10058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060 echo "$as_me:$LINENO: checking for $ac_header" >&5
10061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 fi
10065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10067 else
10068 # Is the header compilable?
10069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 $ac_includes_default
10078 #include <$ac_header>
10079 _ACEOF
10080 rm -f conftest.$ac_objext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest.$ac_objext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_header_compiler=yes
10103 else
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 ac_header_compiler=no
10108 fi
10109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10111 echo "${ECHO_T}$ac_header_compiler" >&6
10112
10113 # Is the header present?
10114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 #include <$ac_header>
10123 _ACEOF
10124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } >/dev/null; then
10132 if test -s conftest.err; then
10133 ac_cpp_err=$ac_c_preproc_warn_flag
10134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10135 else
10136 ac_cpp_err=
10137 fi
10138 else
10139 ac_cpp_err=yes
10140 fi
10141 if test -z "$ac_cpp_err"; then
10142 ac_header_preproc=yes
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147 ac_header_preproc=no
10148 fi
10149 rm -f conftest.err conftest.$ac_ext
10150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10151 echo "${ECHO_T}$ac_header_preproc" >&6
10152
10153 # So? What about this header?
10154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10155 yes:no: )
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10160 ac_header_preproc=yes
10161 ;;
10162 no:yes:* )
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10175 (
10176 cat <<\_ASBOX
10177 ## ---------------------------------- ##
10178 ## Report this to the libjava lists. ##
10179 ## ---------------------------------- ##
10180 _ASBOX
10181 ) |
10182 sed "s/^/$as_me: WARNING: /" >&2
10183 ;;
10184 esac
10185 echo "$as_me:$LINENO: checking for $ac_header" >&5
10186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 eval "$as_ac_Header=\$ac_header_preproc"
10191 fi
10192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10194
10195 fi
10196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10197 cat >>confdefs.h <<_ACEOF
10198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10199 _ACEOF
10200
10201 fi
10202
10203 done
10204
10205 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10206 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10207 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10208 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 ac_check_lib_save_LIBS=$LIBS
10212 LIBS="-ldl $LIBS"
10213 if test x$gcc_no_link = xyes; then
10214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10216 { (exit 1); exit 1; }; }
10217 fi
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224
10225 /* Override any gcc2 internal prototype to avoid an error. */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 /* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10231 char dladdr ();
10232 int
10233 main ()
10234 {
10235 dladdr ();
10236 ;
10237 return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest$ac_exeext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_lib_dl_dladdr=yes
10263 else
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_cv_lib_dl_dladdr=no
10268 fi
10269 rm -f conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10272 fi
10273 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10274 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10275 if test $ac_cv_lib_dl_dladdr = yes; then
10276
10277
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_DLADDR 1
10280 _ACEOF
10281
10282 else
10283
10284 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10285 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10286 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 ac_check_lib_save_LIBS=$LIBS
10290 LIBS="-ldld $LIBS"
10291 if test x$gcc_no_link = xyes; then
10292 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10293 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10294 { (exit 1); exit 1; }; }
10295 fi
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302
10303 /* Override any gcc2 internal prototype to avoid an error. */
10304 #ifdef __cplusplus
10305 extern "C"
10306 #endif
10307 /* We use char because int might match the return type of a gcc2
10308 builtin and then its argument prototype would still apply. */
10309 char dladdr ();
10310 int
10311 main ()
10312 {
10313 dladdr ();
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_lib_dld_dladdr=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 ac_cv_lib_dld_dladdr=no
10346 fi
10347 rm -f conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10350 fi
10351 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10352 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10353 if test $ac_cv_lib_dld_dladdr = yes; then
10354
10355
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_DLADDR 1
10358 _ACEOF
10359
10360 fi
10361
10362 fi
10363
10364
10365 if test x"$cross_compiling" = x"no"; then
10366 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10367 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10368 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371 test "$cross_compiling" = yes &&
10372 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10373 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10374 { (exit 1); exit 1; }; }
10375 if test -r "/proc/self/exe"; then
10376 ac_cv_file__proc_self_exe=yes
10377 else
10378 ac_cv_file__proc_self_exe=no
10379 fi
10380 fi
10381 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10382 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10383 if test $ac_cv_file__proc_self_exe = yes; then
10384
10385 cat >>confdefs.h <<_ACEOF
10386 #define HAVE__PROC_SELF_EXE 1
10387 _ACEOF
10388
10389
10390
10391 cat >>confdefs.h <<\_ACEOF
10392 #define HAVE_PROC_SELF_EXE 1
10393 _ACEOF
10394
10395 fi
10396
10397 else
10398 case $host in
10399 *-linux*)
10400
10401 cat >>confdefs.h <<\_ACEOF
10402 #define HAVE_PROC_SELF_EXE 1
10403 _ACEOF
10404
10405 ;;
10406 esac
10407 fi
10408
10409
10410 if test "X$prefix" = "XNONE"; then
10411 acl_final_prefix="$ac_default_prefix"
10412 else
10413 acl_final_prefix="$prefix"
10414 fi
10415 if test "X$exec_prefix" = "XNONE"; then
10416 acl_final_exec_prefix='${prefix}'
10417 else
10418 acl_final_exec_prefix="$exec_prefix"
10419 fi
10420 acl_save_prefix="$prefix"
10421 prefix="$acl_final_prefix"
10422 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10423 prefix="$acl_save_prefix"
10424
10425
10426 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10427 if test "${with_gnu_ld+set}" = set; then
10428 withval="$with_gnu_ld"
10429 test "$withval" = no || with_gnu_ld=yes
10430 else
10431 with_gnu_ld=no
10432 fi;
10433 # Prepare PATH_SEPARATOR.
10434 # The user is always right.
10435 if test "${PATH_SEPARATOR+set}" != set; then
10436 echo "#! /bin/sh" >conf$$.sh
10437 echo "exit 0" >>conf$$.sh
10438 chmod +x conf$$.sh
10439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10440 PATH_SEPARATOR=';'
10441 else
10442 PATH_SEPARATOR=:
10443 fi
10444 rm -f conf$$.sh
10445 fi
10446 ac_prog=ld
10447 if test "$GCC" = yes; then
10448 # Check if gcc -print-prog-name=ld gives a path.
10449 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10450 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10451 case $host in
10452 *-*-mingw*)
10453 # gcc leaves a trailing carriage return which upsets mingw
10454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10455 *)
10456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10457 esac
10458 case $ac_prog in
10459 # Accept absolute paths.
10460 [\\/]* | [A-Za-z]:[\\/]*)
10461 re_direlt='/[^/][^/]*/\.\./'
10462 # Canonicalize the path of ld
10463 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10465 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10466 done
10467 test -z "$LD" && LD="$ac_prog"
10468 ;;
10469 "")
10470 # If it fails, then pretend we aren't using GCC.
10471 ac_prog=ld
10472 ;;
10473 *)
10474 # If it is relative, then search for the first ld in PATH.
10475 with_gnu_ld=unknown
10476 ;;
10477 esac
10478 elif test "$with_gnu_ld" = yes; then
10479 echo "$as_me:$LINENO: checking for GNU ld" >&5
10480 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10481 else
10482 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10483 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10484 fi
10485 if test "${acl_cv_path_LD+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488 if test -z "$LD"; then
10489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10490 for ac_dir in $PATH; do
10491 test -z "$ac_dir" && ac_dir=.
10492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10493 acl_cv_path_LD="$ac_dir/$ac_prog"
10494 # Check to see if the program is GNU ld. I'd rather use --version,
10495 # but apparently some GNU ld's only accept -v.
10496 # Break only if it was the GNU/non-GNU ld that we prefer.
10497 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10498 test "$with_gnu_ld" != no && break
10499 else
10500 test "$with_gnu_ld" != yes && break
10501 fi
10502 fi
10503 done
10504 IFS="$ac_save_ifs"
10505 else
10506 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10507 fi
10508 fi
10509
10510 LD="$acl_cv_path_LD"
10511 if test -n "$LD"; then
10512 echo "$as_me:$LINENO: result: $LD" >&5
10513 echo "${ECHO_T}$LD" >&6
10514 else
10515 echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6
10517 fi
10518 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10519 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10520 { (exit 1); exit 1; }; }
10521 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10522 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10523 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10527 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10528 acl_cv_prog_gnu_ld=yes
10529 else
10530 acl_cv_prog_gnu_ld=no
10531 fi
10532 fi
10533 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10534 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10535 with_gnu_ld=$acl_cv_prog_gnu_ld
10536
10537
10538
10539 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10540 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10541 if test "${acl_cv_rpath+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544
10545 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10546 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10547 . ./conftest.sh
10548 rm -f ./conftest.sh
10549 acl_cv_rpath=done
10550
10551 fi
10552 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10553 echo "${ECHO_T}$acl_cv_rpath" >&6
10554 wl="$acl_cv_wl"
10555 libext="$acl_cv_libext"
10556 shlibext="$acl_cv_shlibext"
10557 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10558 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10559 hardcode_direct="$acl_cv_hardcode_direct"
10560 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10561 # Check whether --enable-rpath or --disable-rpath was given.
10562 if test "${enable_rpath+set}" = set; then
10563 enableval="$enable_rpath"
10564 :
10565 else
10566 enable_rpath=yes
10567 fi;
10568
10569
10570
10571
10572
10573
10574
10575 use_additional=yes
10576
10577 acl_save_prefix="$prefix"
10578 prefix="$acl_final_prefix"
10579 acl_save_exec_prefix="$exec_prefix"
10580 exec_prefix="$acl_final_exec_prefix"
10581
10582 eval additional_includedir=\"$includedir\"
10583 eval additional_libdir=\"$libdir\"
10584
10585 exec_prefix="$acl_save_exec_prefix"
10586 prefix="$acl_save_prefix"
10587
10588
10589 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10590 if test "${with_libiconv_prefix+set}" = set; then
10591 withval="$with_libiconv_prefix"
10592
10593 if test "X$withval" = "Xno"; then
10594 use_additional=no
10595 else
10596 if test "X$withval" = "X"; then
10597
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
10603 eval additional_includedir=\"$includedir\"
10604 eval additional_libdir=\"$libdir\"
10605
10606 exec_prefix="$acl_save_exec_prefix"
10607 prefix="$acl_save_prefix"
10608
10609 else
10610 additional_includedir="$withval/include"
10611 additional_libdir="$withval/lib"
10612 fi
10613 fi
10614
10615 fi;
10616 LIBICONV=
10617 LTLIBICONV=
10618 INCICONV=
10619 rpathdirs=
10620 ltrpathdirs=
10621 names_already_handled=
10622 names_next_round='iconv '
10623 while test -n "$names_next_round"; do
10624 names_this_round="$names_next_round"
10625 names_next_round=
10626 for name in $names_this_round; do
10627 already_handled=
10628 for n in $names_already_handled; do
10629 if test "$n" = "$name"; then
10630 already_handled=yes
10631 break
10632 fi
10633 done
10634 if test -z "$already_handled"; then
10635 names_already_handled="$names_already_handled $name"
10636 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10637 eval value=\"\$HAVE_LIB$uppername\"
10638 if test -n "$value"; then
10639 if test "$value" = yes; then
10640 eval value=\"\$LIB$uppername\"
10641 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10642 eval value=\"\$LTLIB$uppername\"
10643 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10644 else
10645 :
10646 fi
10647 else
10648 found_dir=
10649 found_la=
10650 found_so=
10651 found_a=
10652 if test $use_additional = yes; then
10653 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10654 found_dir="$additional_libdir"
10655 found_so="$additional_libdir/lib$name.$shlibext"
10656 if test -f "$additional_libdir/lib$name.la"; then
10657 found_la="$additional_libdir/lib$name.la"
10658 fi
10659 else
10660 if test -f "$additional_libdir/lib$name.$libext"; then
10661 found_dir="$additional_libdir"
10662 found_a="$additional_libdir/lib$name.$libext"
10663 if test -f "$additional_libdir/lib$name.la"; then
10664 found_la="$additional_libdir/lib$name.la"
10665 fi
10666 fi
10667 fi
10668 fi
10669 if test "X$found_dir" = "X"; then
10670 for x in $LDFLAGS $LTLIBICONV; do
10671
10672 acl_save_prefix="$prefix"
10673 prefix="$acl_final_prefix"
10674 acl_save_exec_prefix="$exec_prefix"
10675 exec_prefix="$acl_final_exec_prefix"
10676 eval x=\"$x\"
10677 exec_prefix="$acl_save_exec_prefix"
10678 prefix="$acl_save_prefix"
10679
10680 case "$x" in
10681 -L*)
10682 dir=`echo "X$x" | sed -e 's/^X-L//'`
10683 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10684 found_dir="$dir"
10685 found_so="$dir/lib$name.$shlibext"
10686 if test -f "$dir/lib$name.la"; then
10687 found_la="$dir/lib$name.la"
10688 fi
10689 else
10690 if test -f "$dir/lib$name.$libext"; then
10691 found_dir="$dir"
10692 found_a="$dir/lib$name.$libext"
10693 if test -f "$dir/lib$name.la"; then
10694 found_la="$dir/lib$name.la"
10695 fi
10696 fi
10697 fi
10698 ;;
10699 esac
10700 if test "X$found_dir" != "X"; then
10701 break
10702 fi
10703 done
10704 fi
10705 if test "X$found_dir" != "X"; then
10706 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10707 if test "X$found_so" != "X"; then
10708 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10709 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10710 else
10711 haveit=
10712 for x in $ltrpathdirs; do
10713 if test "X$x" = "X$found_dir"; then
10714 haveit=yes
10715 break
10716 fi
10717 done
10718 if test -z "$haveit"; then
10719 ltrpathdirs="$ltrpathdirs $found_dir"
10720 fi
10721 if test "$hardcode_direct" = yes; then
10722 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10723 else
10724 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10726 haveit=
10727 for x in $rpathdirs; do
10728 if test "X$x" = "X$found_dir"; then
10729 haveit=yes
10730 break
10731 fi
10732 done
10733 if test -z "$haveit"; then
10734 rpathdirs="$rpathdirs $found_dir"
10735 fi
10736 else
10737 haveit=
10738 for x in $LDFLAGS $LIBICONV; do
10739
10740 acl_save_prefix="$prefix"
10741 prefix="$acl_final_prefix"
10742 acl_save_exec_prefix="$exec_prefix"
10743 exec_prefix="$acl_final_exec_prefix"
10744 eval x=\"$x\"
10745 exec_prefix="$acl_save_exec_prefix"
10746 prefix="$acl_save_prefix"
10747
10748 if test "X$x" = "X-L$found_dir"; then
10749 haveit=yes
10750 break
10751 fi
10752 done
10753 if test -z "$haveit"; then
10754 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10755 fi
10756 if test "$hardcode_minus_L" != no; then
10757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10758 else
10759 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10760 fi
10761 fi
10762 fi
10763 fi
10764 else
10765 if test "X$found_a" != "X"; then
10766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10767 else
10768 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10769 fi
10770 fi
10771 additional_includedir=
10772 case "$found_dir" in
10773 */lib | */lib/)
10774 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10775 additional_includedir="$basedir/include"
10776 ;;
10777 esac
10778 if test "X$additional_includedir" != "X"; then
10779 if test "X$additional_includedir" != "X/usr/include"; then
10780 haveit=
10781 if test "X$additional_includedir" = "X/usr/local/include"; then
10782 if test -n "$GCC"; then
10783 case $host_os in
10784 linux*) haveit=yes;;
10785 esac
10786 fi
10787 fi
10788 if test -z "$haveit"; then
10789 for x in $CPPFLAGS $INCICONV; do
10790
10791 acl_save_prefix="$prefix"
10792 prefix="$acl_final_prefix"
10793 acl_save_exec_prefix="$exec_prefix"
10794 exec_prefix="$acl_final_exec_prefix"
10795 eval x=\"$x\"
10796 exec_prefix="$acl_save_exec_prefix"
10797 prefix="$acl_save_prefix"
10798
10799 if test "X$x" = "X-I$additional_includedir"; then
10800 haveit=yes
10801 break
10802 fi
10803 done
10804 if test -z "$haveit"; then
10805 if test -d "$additional_includedir"; then
10806 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10807 fi
10808 fi
10809 fi
10810 fi
10811 fi
10812 if test -n "$found_la"; then
10813 save_libdir="$libdir"
10814 case "$found_la" in
10815 */* | *\\*) . "$found_la" ;;
10816 *) . "./$found_la" ;;
10817 esac
10818 libdir="$save_libdir"
10819 for dep in $dependency_libs; do
10820 case "$dep" in
10821 -L*)
10822 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10823 if test "X$additional_libdir" != "X/usr/lib"; then
10824 haveit=
10825 if test "X$additional_libdir" = "X/usr/local/lib"; then
10826 if test -n "$GCC"; then
10827 case $host_os in
10828 linux*) haveit=yes;;
10829 esac
10830 fi
10831 fi
10832 if test -z "$haveit"; then
10833 haveit=
10834 for x in $LDFLAGS $LIBICONV; do
10835
10836 acl_save_prefix="$prefix"
10837 prefix="$acl_final_prefix"
10838 acl_save_exec_prefix="$exec_prefix"
10839 exec_prefix="$acl_final_exec_prefix"
10840 eval x=\"$x\"
10841 exec_prefix="$acl_save_exec_prefix"
10842 prefix="$acl_save_prefix"
10843
10844 if test "X$x" = "X-L$additional_libdir"; then
10845 haveit=yes
10846 break
10847 fi
10848 done
10849 if test -z "$haveit"; then
10850 if test -d "$additional_libdir"; then
10851 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10852 fi
10853 fi
10854 haveit=
10855 for x in $LDFLAGS $LTLIBICONV; do
10856
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10864
10865 if test "X$x" = "X-L$additional_libdir"; then
10866 haveit=yes
10867 break
10868 fi
10869 done
10870 if test -z "$haveit"; then
10871 if test -d "$additional_libdir"; then
10872 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10873 fi
10874 fi
10875 fi
10876 fi
10877 ;;
10878 -R*)
10879 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10880 if test "$enable_rpath" != no; then
10881 haveit=
10882 for x in $rpathdirs; do
10883 if test "X$x" = "X$dir"; then
10884 haveit=yes
10885 break
10886 fi
10887 done
10888 if test -z "$haveit"; then
10889 rpathdirs="$rpathdirs $dir"
10890 fi
10891 haveit=
10892 for x in $ltrpathdirs; do
10893 if test "X$x" = "X$dir"; then
10894 haveit=yes
10895 break
10896 fi
10897 done
10898 if test -z "$haveit"; then
10899 ltrpathdirs="$ltrpathdirs $dir"
10900 fi
10901 fi
10902 ;;
10903 -l*)
10904 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10905 ;;
10906 *.la)
10907 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10908 ;;
10909 *)
10910 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10911 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10912 ;;
10913 esac
10914 done
10915 fi
10916 else
10917 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10918 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10919 fi
10920 fi
10921 fi
10922 done
10923 done
10924 if test "X$rpathdirs" != "X"; then
10925 if test -n "$hardcode_libdir_separator"; then
10926 alldirs=
10927 for found_dir in $rpathdirs; do
10928 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10929 done
10930 acl_save_libdir="$libdir"
10931 libdir="$alldirs"
10932 eval flag=\"$hardcode_libdir_flag_spec\"
10933 libdir="$acl_save_libdir"
10934 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10935 else
10936 for found_dir in $rpathdirs; do
10937 acl_save_libdir="$libdir"
10938 libdir="$found_dir"
10939 eval flag=\"$hardcode_libdir_flag_spec\"
10940 libdir="$acl_save_libdir"
10941 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10942 done
10943 fi
10944 fi
10945 if test "X$ltrpathdirs" != "X"; then
10946 for found_dir in $ltrpathdirs; do
10947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10948 done
10949 fi
10950
10951
10952
10953
10954
10955
10956
10957 am_save_CPPFLAGS="$CPPFLAGS"
10958
10959 for element in $INCICONV; do
10960 haveit=
10961 for x in $CPPFLAGS; do
10962
10963 acl_save_prefix="$prefix"
10964 prefix="$acl_final_prefix"
10965 acl_save_exec_prefix="$exec_prefix"
10966 exec_prefix="$acl_final_exec_prefix"
10967 eval x=\"$x\"
10968 exec_prefix="$acl_save_exec_prefix"
10969 prefix="$acl_save_prefix"
10970
10971 if test "X$x" = "X$element"; then
10972 haveit=yes
10973 break
10974 fi
10975 done
10976 if test -z "$haveit"; then
10977 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10978 fi
10979 done
10980
10981
10982 echo "$as_me:$LINENO: checking for iconv" >&5
10983 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10984 if test "${am_cv_func_iconv+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987
10988 am_cv_func_iconv="no, consider installing GNU libiconv"
10989 am_cv_lib_iconv=no
10990 if test x$gcc_no_link = xyes; then
10991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10993 { (exit 1); exit 1; }; }
10994 fi
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h. */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <stdlib.h>
11002 #include <iconv.h>
11003 int
11004 main ()
11005 {
11006 iconv_t cd = iconv_open("","");
11007 iconv(cd,NULL,NULL,NULL,NULL);
11008 iconv_close(cd);
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 am_cv_func_iconv=yes
11036 else
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040 fi
11041 rm -f conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 if test "$am_cv_func_iconv" != yes; then
11044 am_save_LIBS="$LIBS"
11045 LIBS="$LIBS $LIBICONV"
11046 if test x$gcc_no_link = xyes; then
11047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11049 { (exit 1); exit 1; }; }
11050 fi
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <stdlib.h>
11058 #include <iconv.h>
11059 int
11060 main ()
11061 {
11062 iconv_t cd = iconv_open("","");
11063 iconv(cd,NULL,NULL,NULL,NULL);
11064 iconv_close(cd);
11065 ;
11066 return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 am_cv_lib_iconv=yes
11092 am_cv_func_iconv=yes
11093 else
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097 fi
11098 rm -f conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100 LIBS="$am_save_LIBS"
11101 fi
11102
11103 fi
11104 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11105 echo "${ECHO_T}$am_cv_func_iconv" >&6
11106 if test "$am_cv_func_iconv" = yes; then
11107
11108 cat >>confdefs.h <<\_ACEOF
11109 #define HAVE_ICONV 1
11110 _ACEOF
11111
11112 fi
11113 if test "$am_cv_lib_iconv" = yes; then
11114 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11115 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11116 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11117 echo "${ECHO_T}$LIBICONV" >&6
11118 else
11119 CPPFLAGS="$am_save_CPPFLAGS"
11120 LIBICONV=
11121 LTLIBICONV=
11122 fi
11123
11124
11125
11126 if test "$am_cv_func_iconv" = yes; then
11127 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11128 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11129 if test "${am_cv_proto_iconv+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139
11140 #include <stdlib.h>
11141 #include <iconv.h>
11142 extern
11143 #ifdef __cplusplus
11144 "C"
11145 #endif
11146 #if defined(__STDC__) || defined(__cplusplus)
11147 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11148 #else
11149 size_t iconv();
11150 #endif
11151
11152 int
11153 main ()
11154 {
11155
11156 ;
11157 return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 am_cv_proto_iconv_arg1=""
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187 am_cv_proto_iconv_arg1="const"
11188 fi
11189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11190 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);"
11191 fi
11192
11193 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11194 echo "$as_me:$LINENO: result: ${ac_t:-
11195 }$am_cv_proto_iconv" >&5
11196 echo "${ECHO_T}${ac_t:-
11197 }$am_cv_proto_iconv" >&6
11198
11199 cat >>confdefs.h <<_ACEOF
11200 #define ICONV_CONST $am_cv_proto_iconv_arg1
11201 _ACEOF
11202
11203 fi
11204
11205
11206 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11207 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11208 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211 if test x$gcc_no_link = xyes; then
11212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11214 { (exit 1); exit 1; }; }
11215 fi
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h. */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 #include <locale.h>
11223 int
11224 main ()
11225 {
11226 return LC_MESSAGES
11227 ;
11228 return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_c_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 am_cv_val_LC_MESSAGES=yes
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 am_cv_val_LC_MESSAGES=no
11259 fi
11260 rm -f conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 fi
11263 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11264 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11265 if test $am_cv_val_LC_MESSAGES = yes; then
11266
11267 cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_LC_MESSAGES 1
11269 _ACEOF
11270
11271 fi
11272
11273 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11274 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11275 if test "${ac_cv_struct_tm+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <sys/types.h>
11285 #include <time.h>
11286
11287 int
11288 main ()
11289 {
11290 struct tm *tp; tp->tm_sec;
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 ac_cv_struct_tm=time.h
11318 else
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 ac_cv_struct_tm=sys/time.h
11323 fi
11324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11325 fi
11326 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11327 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11328 if test $ac_cv_struct_tm = sys/time.h; then
11329
11330 cat >>confdefs.h <<\_ACEOF
11331 #define TM_IN_SYS_TIME 1
11332 _ACEOF
11333
11334 fi
11335
11336 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11337 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11338 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 #include <sys/types.h>
11348 #include <$ac_cv_struct_tm>
11349
11350
11351 int
11352 main ()
11353 {
11354 static struct tm ac_aggr;
11355 if (ac_aggr.tm_zone)
11356 return 0;
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11363 (eval $ac_compile) 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag"
11371 || test ! -s conftest.err'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; } &&
11377 { ac_try='test -s conftest.$ac_objext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 ac_cv_member_struct_tm_tm_zone=yes
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #include <sys/types.h>
11395 #include <$ac_cv_struct_tm>
11396
11397
11398 int
11399 main ()
11400 {
11401 static struct tm ac_aggr;
11402 if (sizeof ac_aggr.tm_zone)
11403 return 0;
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11410 (eval $ac_compile) 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -z "$ac_c_werror_flag"
11418 || test ! -s conftest.err'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 ac_cv_member_struct_tm_tm_zone=yes
11431 else
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11434
11435 ac_cv_member_struct_tm_tm_zone=no
11436 fi
11437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11438 fi
11439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11440 fi
11441 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11442 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11443 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11444
11445 cat >>confdefs.h <<_ACEOF
11446 #define HAVE_STRUCT_TM_TM_ZONE 1
11447 _ACEOF
11448
11449
11450 fi
11451
11452 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11453
11454 cat >>confdefs.h <<\_ACEOF
11455 #define HAVE_TM_ZONE 1
11456 _ACEOF
11457
11458 else
11459 echo "$as_me:$LINENO: checking for tzname" >&5
11460 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11461 if test "${ac_cv_var_tzname+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464 if test x$gcc_no_link = xyes; then
11465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11467 { (exit 1); exit 1; }; }
11468 fi
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 #include <time.h>
11476 #ifndef tzname /* For SGI. */
11477 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11478 #endif
11479
11480 int
11481 main ()
11482 {
11483 atoi(*tzname);
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_var_tzname=yes
11511 else
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_cv_var_tzname=no
11516 fi
11517 rm -f conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 fi
11520 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11521 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11522 if test $ac_cv_var_tzname = yes; then
11523
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_TZNAME 1
11526 _ACEOF
11527
11528 fi
11529 fi
11530
11531
11532
11533
11534 for ac_func in gethostbyname_r
11535 do
11536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11537 echo "$as_me:$LINENO: checking for $ac_func" >&5
11538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11539 if eval "test \"\${$as_ac_var+set}\" = set"; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542 if test x$gcc_no_link = xyes; then
11543 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11544 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11545 { (exit 1); exit 1; }; }
11546 fi
11547 cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h. */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11555 #define $ac_func innocuous_$ac_func
11556
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char $ac_func (); below.
11559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 <limits.h> exists even on freestanding compilers. */
11561
11562 #ifdef __STDC__
11563 # include <limits.h>
11564 #else
11565 # include <assert.h>
11566 #endif
11567
11568 #undef $ac_func
11569
11570 /* Override any gcc2 internal prototype to avoid an error. */
11571 #ifdef __cplusplus
11572 extern "C"
11573 {
11574 #endif
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11577 char $ac_func ();
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11582 choke me
11583 #else
11584 char (*f) () = $ac_func;
11585 #endif
11586 #ifdef __cplusplus
11587 }
11588 #endif
11589
11590 int
11591 main ()
11592 {
11593 return f != $ac_func;
11594 ;
11595 return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_c_werror_flag"
11608 || test ! -s conftest.err'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest$ac_exeext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 eval "$as_ac_var=yes"
11621 else
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625 eval "$as_ac_var=no"
11626 fi
11627 rm -f conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11629 fi
11630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11632 if test `eval echo '${'$as_ac_var'}'` = yes; then
11633 cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11635 _ACEOF
11636
11637
11638 cat >>confdefs.h <<\_ACEOF
11639 #define HAVE_GETHOSTBYNAME_R 1
11640 _ACEOF
11641
11642 # There are two different kinds of gethostbyname_r.
11643 # We look for the one that returns `int'.
11644 # Hopefully this check is robust enough.
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h. */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 #include <netdb.h>
11652
11653 _ACEOF
11654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11656
11657
11658 cat >>confdefs.h <<\_ACEOF
11659 #define GETHOSTBYNAME_R_RETURNS_INT 1
11660 _ACEOF
11661
11662 fi
11663 rm -f conftest*
11664
11665
11666 case " $GCINCS " in
11667 *" -D_REENTRANT "*) ;;
11668 *)
11669 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11670 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11671 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 ac_ext=cc
11675 ac_cpp='$CXXCPP $CPPFLAGS'
11676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11679
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 #include <netdb.h>
11687 int
11688 main ()
11689 {
11690 gethostbyname_r("", 0, 0);
11691 ;
11692 return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697 (eval $ac_compile) 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_cxx_werror_flag"
11705 || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 libjava_cv_gethostbyname_r_needs_reentrant=no
11718 else
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 CPPFLAGS_SAVE="$CPPFLAGS"
11723 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 #include <netdb.h>
11731 int
11732 main ()
11733 {
11734 gethostbyname_r("", 0, 0);
11735 ;
11736 return 0;
11737 }
11738 _ACEOF
11739 rm -f conftest.$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -z "$ac_cxx_werror_flag"
11749 || test ! -s conftest.err'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest.$ac_objext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 libjava_cv_gethostbyname_r_needs_reentrant=yes
11762 else
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766 libjava_cv_gethostbyname_r_needs_reentrant=fail
11767 fi
11768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11769 CPPFLAGS="$CPPFLAGS_SAVE"
11770
11771 fi
11772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11773 ac_ext=c
11774 ac_cpp='$CPP $CPPFLAGS'
11775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11778
11779
11780 fi
11781 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11782 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11783 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11784
11785 cat >>confdefs.h <<\_ACEOF
11786 #define _REENTRANT 1
11787 _ACEOF
11788
11789 fi
11790 ;;
11791 esac
11792
11793 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11794 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11795 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804
11805 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11806 # define _REENTRANT 1
11807 #endif
11808 #include <netdb.h>
11809 int
11810 main ()
11811 {
11812 struct hostent_data data;
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -z "$ac_c_werror_flag"
11827 || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest.$ac_objext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 libjava_cv_struct_hostent_data=yes
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11843
11844 libjava_cv_struct_hostent_data=no
11845 fi
11846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11847 fi
11848 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11849 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11850 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11851
11852 cat >>confdefs.h <<\_ACEOF
11853 #define HAVE_STRUCT_HOSTENT_DATA 1
11854 _ACEOF
11855
11856 fi
11857
11858 fi
11859 done
11860
11861
11862 # FIXME: libjava source code expects to find a prototype for
11863 # gethostbyaddr_r in netdb.h. The outer check ensures that
11864 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11865 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11866 # linkage check is enough, yet C++ code requires proper prototypes.)
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 #include <netdb.h>
11874
11875 _ACEOF
11876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11877 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11878
11879
11880 for ac_func in gethostbyaddr_r
11881 do
11882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11883 echo "$as_me:$LINENO: checking for $ac_func" >&5
11884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11885 if eval "test \"\${$as_ac_var+set}\" = set"; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 else
11888 if test x$gcc_no_link = xyes; then
11889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11891 { (exit 1); exit 1; }; }
11892 fi
11893 cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h. */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11901 #define $ac_func innocuous_$ac_func
11902
11903 /* System header to define __stub macros and hopefully few prototypes,
11904 which can conflict with char $ac_func (); below.
11905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11906 <limits.h> exists even on freestanding compilers. */
11907
11908 #ifdef __STDC__
11909 # include <limits.h>
11910 #else
11911 # include <assert.h>
11912 #endif
11913
11914 #undef $ac_func
11915
11916 /* Override any gcc2 internal prototype to avoid an error. */
11917 #ifdef __cplusplus
11918 extern "C"
11919 {
11920 #endif
11921 /* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11923 char $ac_func ();
11924 /* The GNU C library defines this for functions which it implements
11925 to always fail with ENOSYS. Some functions are actually named
11926 something starting with __ and the normal name is an alias. */
11927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11928 choke me
11929 #else
11930 char (*f) () = $ac_func;
11931 #endif
11932 #ifdef __cplusplus
11933 }
11934 #endif
11935
11936 int
11937 main ()
11938 {
11939 return f != $ac_func;
11940 ;
11941 return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946 (eval $ac_link) 2>conftest.er1
11947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -z "$ac_c_werror_flag"
11954 || test ! -s conftest.err'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; } &&
11960 { ac_try='test -s conftest$ac_exeext'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 eval "$as_ac_var=yes"
11967 else
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971 eval "$as_ac_var=no"
11972 fi
11973 rm -f conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 fi
11976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11978 if test `eval echo '${'$as_ac_var'}'` = yes; then
11979 cat >>confdefs.h <<_ACEOF
11980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11981 _ACEOF
11982
11983
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_GETHOSTBYADDR_R 1
11986 _ACEOF
11987
11988 # There are two different kinds of gethostbyaddr_r.
11989 # We look for the one that returns `int'.
11990 # Hopefully this check is robust enough.
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 #include <netdb.h>
11998
11999 _ACEOF
12000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12001 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
12002
12003
12004 cat >>confdefs.h <<\_ACEOF
12005 #define GETHOSTBYADDR_R_RETURNS_INT 1
12006 _ACEOF
12007
12008 fi
12009 rm -f conftest*
12010
12011 fi
12012 done
12013
12014 fi
12015 rm -f conftest*
12016
12017
12018
12019 for ac_func in gethostname
12020 do
12021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12022 echo "$as_me:$LINENO: checking for $ac_func" >&5
12023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12024 if eval "test \"\${$as_ac_var+set}\" = set"; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027 if test x$gcc_no_link = xyes; then
12028 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12030 { (exit 1); exit 1; }; }
12031 fi
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h. */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040 #define $ac_func innocuous_$ac_func
12041
12042 /* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char $ac_func (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12046
12047 #ifdef __STDC__
12048 # include <limits.h>
12049 #else
12050 # include <assert.h>
12051 #endif
12052
12053 #undef $ac_func
12054
12055 /* Override any gcc2 internal prototype to avoid an error. */
12056 #ifdef __cplusplus
12057 extern "C"
12058 {
12059 #endif
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12062 char $ac_func ();
12063 /* The GNU C library defines this for functions which it implements
12064 to always fail with ENOSYS. Some functions are actually named
12065 something starting with __ and the normal name is an alias. */
12066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12067 choke me
12068 #else
12069 char (*f) () = $ac_func;
12070 #endif
12071 #ifdef __cplusplus
12072 }
12073 #endif
12074
12075 int
12076 main ()
12077 {
12078 return f != $ac_func;
12079 ;
12080 return 0;
12081 }
12082 _ACEOF
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -z "$ac_c_werror_flag"
12093 || test ! -s conftest.err'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest$ac_exeext'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 eval "$as_ac_var=yes"
12106 else
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12109
12110 eval "$as_ac_var=no"
12111 fi
12112 rm -f conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12114 fi
12115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12117 if test `eval echo '${'$as_ac_var'}'` = yes; then
12118 cat >>confdefs.h <<_ACEOF
12119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 _ACEOF
12121
12122
12123 cat >>confdefs.h <<\_ACEOF
12124 #define HAVE_GETHOSTNAME 1
12125 _ACEOF
12126
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 #include <unistd.h>
12134
12135 _ACEOF
12136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12137 $EGREP "gethostname" >/dev/null 2>&1; then
12138
12139
12140 cat >>confdefs.h <<\_ACEOF
12141 #define HAVE_GETHOSTNAME_DECL 1
12142 _ACEOF
12143
12144 fi
12145 rm -f conftest*
12146
12147 fi
12148 done
12149
12150
12151
12152 for ac_func in usleep
12153 do
12154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12155 echo "$as_me:$LINENO: checking for $ac_func" >&5
12156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12157 if eval "test \"\${$as_ac_var+set}\" = set"; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160 if test x$gcc_no_link = xyes; then
12161 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12163 { (exit 1); exit 1; }; }
12164 fi
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12173 #define $ac_func innocuous_$ac_func
12174
12175 /* System header to define __stub macros and hopefully few prototypes,
12176 which can conflict with char $ac_func (); below.
12177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178 <limits.h> exists even on freestanding compilers. */
12179
12180 #ifdef __STDC__
12181 # include <limits.h>
12182 #else
12183 # include <assert.h>
12184 #endif
12185
12186 #undef $ac_func
12187
12188 /* Override any gcc2 internal prototype to avoid an error. */
12189 #ifdef __cplusplus
12190 extern "C"
12191 {
12192 #endif
12193 /* We use char because int might match the return type of a gcc2
12194 builtin and then its argument prototype would still apply. */
12195 char $ac_func ();
12196 /* The GNU C library defines this for functions which it implements
12197 to always fail with ENOSYS. Some functions are actually named
12198 something starting with __ and the normal name is an alias. */
12199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12200 choke me
12201 #else
12202 char (*f) () = $ac_func;
12203 #endif
12204 #ifdef __cplusplus
12205 }
12206 #endif
12207
12208 int
12209 main ()
12210 {
12211 return f != $ac_func;
12212 ;
12213 return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -z "$ac_c_werror_flag"
12226 || test ! -s conftest.err'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; } &&
12232 { ac_try='test -s conftest$ac_exeext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 eval "$as_ac_var=yes"
12239 else
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 eval "$as_ac_var=no"
12244 fi
12245 rm -f conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12247 fi
12248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12250 if test `eval echo '${'$as_ac_var'}'` = yes; then
12251 cat >>confdefs.h <<_ACEOF
12252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12253 _ACEOF
12254
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 #include <unistd.h>
12262
12263 _ACEOF
12264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12265 $EGREP "usleep" >/dev/null 2>&1; then
12266
12267
12268 cat >>confdefs.h <<\_ACEOF
12269 #define HAVE_USLEEP_DECL 1
12270 _ACEOF
12271
12272 fi
12273 rm -f conftest*
12274
12275 fi
12276 done
12277
12278
12279 # Look for these functions in the thread library, but only bother
12280 # if using POSIX threads.
12281 if test "$THREADS" = posix; then
12282 save_LIBS="$LIBS"
12283 LIBS="$LIBS $THREADLIBS"
12284 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12285 # E.g., Solaris.
12286
12287
12288 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12289 do
12290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12291 echo "$as_me:$LINENO: checking for $ac_func" >&5
12292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12293 if eval "test \"\${$as_ac_var+set}\" = set"; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296 if test x$gcc_no_link = xyes; then
12297 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12299 { (exit 1); exit 1; }; }
12300 fi
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h. */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12309 #define $ac_func innocuous_$ac_func
12310
12311 /* System header to define __stub macros and hopefully few prototypes,
12312 which can conflict with char $ac_func (); below.
12313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12314 <limits.h> exists even on freestanding compilers. */
12315
12316 #ifdef __STDC__
12317 # include <limits.h>
12318 #else
12319 # include <assert.h>
12320 #endif
12321
12322 #undef $ac_func
12323
12324 /* Override any gcc2 internal prototype to avoid an error. */
12325 #ifdef __cplusplus
12326 extern "C"
12327 {
12328 #endif
12329 /* We use char because int might match the return type of a gcc2
12330 builtin and then its argument prototype would still apply. */
12331 char $ac_func ();
12332 /* The GNU C library defines this for functions which it implements
12333 to always fail with ENOSYS. Some functions are actually named
12334 something starting with __ and the normal name is an alias. */
12335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12336 choke me
12337 #else
12338 char (*f) () = $ac_func;
12339 #endif
12340 #ifdef __cplusplus
12341 }
12342 #endif
12343
12344 int
12345 main ()
12346 {
12347 return f != $ac_func;
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 eval "$as_ac_var=yes"
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 eval "$as_ac_var=no"
12380 fi
12381 rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383 fi
12384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12386 if test `eval echo '${'$as_ac_var'}'` = yes; then
12387 cat >>confdefs.h <<_ACEOF
12388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12389 _ACEOF
12390
12391 fi
12392 done
12393
12394
12395 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12396 # Solaris 7 the name librt is preferred.
12397
12398 for ac_func in sched_yield
12399 do
12400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12401 echo "$as_me:$LINENO: checking for $ac_func" >&5
12402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12403 if eval "test \"\${$as_ac_var+set}\" = set"; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406 if test x$gcc_no_link = xyes; then
12407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12409 { (exit 1); exit 1; }; }
12410 fi
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12419 #define $ac_func innocuous_$ac_func
12420
12421 /* System header to define __stub macros and hopefully few prototypes,
12422 which can conflict with char $ac_func (); below.
12423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424 <limits.h> exists even on freestanding compilers. */
12425
12426 #ifdef __STDC__
12427 # include <limits.h>
12428 #else
12429 # include <assert.h>
12430 #endif
12431
12432 #undef $ac_func
12433
12434 /* Override any gcc2 internal prototype to avoid an error. */
12435 #ifdef __cplusplus
12436 extern "C"
12437 {
12438 #endif
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12441 char $ac_func ();
12442 /* The GNU C library defines this for functions which it implements
12443 to always fail with ENOSYS. Some functions are actually named
12444 something starting with __ and the normal name is an alias. */
12445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12446 choke me
12447 #else
12448 char (*f) () = $ac_func;
12449 #endif
12450 #ifdef __cplusplus
12451 }
12452 #endif
12453
12454 int
12455 main ()
12456 {
12457 return f != $ac_func;
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 eval "$as_ac_var=yes"
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 eval "$as_ac_var=no"
12490 fi
12491 rm -f conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12493 fi
12494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12496 if test `eval echo '${'$as_ac_var'}'` = yes; then
12497 cat >>confdefs.h <<_ACEOF
12498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12499 _ACEOF
12500
12501 else
12502
12503 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12504 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12505 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508 ac_check_lib_save_LIBS=$LIBS
12509 LIBS="-lrt $LIBS"
12510 if test x$gcc_no_link = xyes; then
12511 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12513 { (exit 1); exit 1; }; }
12514 fi
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h. */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521
12522 /* Override any gcc2 internal prototype to avoid an error. */
12523 #ifdef __cplusplus
12524 extern "C"
12525 #endif
12526 /* We use char because int might match the return type of a gcc2
12527 builtin and then its argument prototype would still apply. */
12528 char sched_yield ();
12529 int
12530 main ()
12531 {
12532 sched_yield ();
12533 ;
12534 return 0;
12535 }
12536 _ACEOF
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12539 (eval $ac_link) 2>conftest.er1
12540 ac_status=$?
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_lib_rt_sched_yield=yes
12560 else
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12563
12564 ac_cv_lib_rt_sched_yield=no
12565 fi
12566 rm -f conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12569 fi
12570 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12571 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12572 if test $ac_cv_lib_rt_sched_yield = yes; then
12573
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_SCHED_YIELD 1
12576 _ACEOF
12577
12578 THREADLIBS="$THREADLIBS -lrt"
12579 THREADSPEC="$THREADSPEC -lrt"
12580 else
12581
12582 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12583 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12584 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lposix4 $LIBS"
12589 if test x$gcc_no_link = xyes; then
12590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12592 { (exit 1); exit 1; }; }
12593 fi
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600
12601 /* Override any gcc2 internal prototype to avoid an error. */
12602 #ifdef __cplusplus
12603 extern "C"
12604 #endif
12605 /* We use char because int might match the return type of a gcc2
12606 builtin and then its argument prototype would still apply. */
12607 char sched_yield ();
12608 int
12609 main ()
12610 {
12611 sched_yield ();
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest$ac_exeext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_cv_lib_posix4_sched_yield=yes
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 ac_cv_lib_posix4_sched_yield=no
12644 fi
12645 rm -f conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12648 fi
12649 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12650 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12651 if test $ac_cv_lib_posix4_sched_yield = yes; then
12652
12653 cat >>confdefs.h <<\_ACEOF
12654 #define HAVE_SCHED_YIELD 1
12655 _ACEOF
12656
12657 THREADLIBS="$THREADLIBS -lposix4"
12658 THREADSPEC="$THREADSPEC -lposix4"
12659 fi
12660
12661 fi
12662
12663 fi
12664 done
12665
12666
12667 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12668 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12669 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672 ac_check_lib_save_LIBS=$LIBS
12673 LIBS="-lrt $LIBS"
12674 if test x$gcc_no_link = xyes; then
12675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12677 { (exit 1); exit 1; }; }
12678 fi
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h. */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685
12686 /* Override any gcc2 internal prototype to avoid an error. */
12687 #ifdef __cplusplus
12688 extern "C"
12689 #endif
12690 /* We use char because int might match the return type of a gcc2
12691 builtin and then its argument prototype would still apply. */
12692 char clock_gettime ();
12693 int
12694 main ()
12695 {
12696 clock_gettime ();
12697 ;
12698 return 0;
12699 }
12700 _ACEOF
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_lib_rt_clock_gettime=yes
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_cv_lib_rt_clock_gettime=no
12729 fi
12730 rm -f conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12732 LIBS=$ac_check_lib_save_LIBS
12733 fi
12734 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12735 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12736 if test $ac_cv_lib_rt_clock_gettime = yes; then
12737
12738
12739 cat >>confdefs.h <<\_ACEOF
12740 #define HAVE_CLOCK_GETTIME 1
12741 _ACEOF
12742
12743 case "$THREADSPEC" in
12744 *-lrt*) ;;
12745 *)
12746 THREADSPEC="$THREADSPEC -lrt"
12747 THREADLIBS="$THREADLIBS -lrt"
12748 ;;
12749 esac
12750 fi
12751
12752
12753 LIBS="$save_LIBS"
12754
12755 # We can save a little space at runtime if the mutex has m_count
12756 # or __m_count. This is a nice hack for Linux.
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 #include <pthread.h>
12764 int
12765 main ()
12766 {
12767
12768 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12769
12770 ;
12771 return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12776 (eval $ac_compile) 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag"
12784 || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest.$ac_objext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796
12797 cat >>confdefs.h <<\_ACEOF
12798 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12799 _ACEOF
12800
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #include <pthread.h>
12813 int
12814 main ()
12815 {
12816
12817 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12818
12819 ;
12820 return 0;
12821 }
12822 _ACEOF
12823 rm -f conftest.$ac_objext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12825 (eval $ac_compile) 2>conftest.er1
12826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
12832 { ac_try='test -z "$ac_c_werror_flag"
12833 || test ! -s conftest.err'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; } &&
12839 { ac_try='test -s conftest.$ac_objext'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; }; then
12845
12846 cat >>confdefs.h <<\_ACEOF
12847 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12848 _ACEOF
12849
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12853
12854 fi
12855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12856 fi
12857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12858 fi
12859
12860 # We require a way to get the time.
12861 time_found=no
12862
12863
12864
12865 for ac_func in gettimeofday time ftime
12866 do
12867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12868 echo "$as_me:$LINENO: checking for $ac_func" >&5
12869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12870 if eval "test \"\${$as_ac_var+set}\" = set"; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873 if test x$gcc_no_link = xyes; then
12874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12876 { (exit 1); exit 1; }; }
12877 fi
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12886 #define $ac_func innocuous_$ac_func
12887
12888 /* System header to define __stub macros and hopefully few prototypes,
12889 which can conflict with char $ac_func (); below.
12890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12891 <limits.h> exists even on freestanding compilers. */
12892
12893 #ifdef __STDC__
12894 # include <limits.h>
12895 #else
12896 # include <assert.h>
12897 #endif
12898
12899 #undef $ac_func
12900
12901 /* Override any gcc2 internal prototype to avoid an error. */
12902 #ifdef __cplusplus
12903 extern "C"
12904 {
12905 #endif
12906 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */
12908 char $ac_func ();
12909 /* The GNU C library defines this for functions which it implements
12910 to always fail with ENOSYS. Some functions are actually named
12911 something starting with __ and the normal name is an alias. */
12912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12913 choke me
12914 #else
12915 char (*f) () = $ac_func;
12916 #endif
12917 #ifdef __cplusplus
12918 }
12919 #endif
12920
12921 int
12922 main ()
12923 {
12924 return f != $ac_func;
12925 ;
12926 return 0;
12927 }
12928 _ACEOF
12929 rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931 (eval $ac_link) 2>conftest.er1
12932 ac_status=$?
12933 grep -v '^ *+' conftest.er1 >conftest.err
12934 rm -f conftest.er1
12935 cat conftest.err >&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
12938 { ac_try='test -z "$ac_c_werror_flag"
12939 || test ! -s conftest.err'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try='test -s conftest$ac_exeext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 eval "$as_ac_var=yes"
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 eval "$as_ac_var=no"
12957 fi
12958 rm -f conftest.err conftest.$ac_objext \
12959 conftest$ac_exeext conftest.$ac_ext
12960 fi
12961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12963 if test `eval echo '${'$as_ac_var'}'` = yes; then
12964 cat >>confdefs.h <<_ACEOF
12965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12966 _ACEOF
12967 time_found=yes
12968 fi
12969 done
12970
12971 if test "$time_found" = no; then
12972 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12973 echo "$as_me: error: no function found to get the time" >&2;}
12974 { (exit 1); exit 1; }; }
12975 fi
12976
12977
12978 for ac_func in memmove
12979 do
12980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12981 echo "$as_me:$LINENO: checking for $ac_func" >&5
12982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12983 if eval "test \"\${$as_ac_var+set}\" = set"; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986 if test x$gcc_no_link = xyes; then
12987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12989 { (exit 1); exit 1; }; }
12990 fi
12991 cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h. */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12999 #define $ac_func innocuous_$ac_func
13000
13001 /* System header to define __stub macros and hopefully few prototypes,
13002 which can conflict with char $ac_func (); below.
13003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13004 <limits.h> exists even on freestanding compilers. */
13005
13006 #ifdef __STDC__
13007 # include <limits.h>
13008 #else
13009 # include <assert.h>
13010 #endif
13011
13012 #undef $ac_func
13013
13014 /* Override any gcc2 internal prototype to avoid an error. */
13015 #ifdef __cplusplus
13016 extern "C"
13017 {
13018 #endif
13019 /* We use char because int might match the return type of a gcc2
13020 builtin and then its argument prototype would still apply. */
13021 char $ac_func ();
13022 /* The GNU C library defines this for functions which it implements
13023 to always fail with ENOSYS. Some functions are actually named
13024 something starting with __ and the normal name is an alias. */
13025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13026 choke me
13027 #else
13028 char (*f) () = $ac_func;
13029 #endif
13030 #ifdef __cplusplus
13031 }
13032 #endif
13033
13034 int
13035 main ()
13036 {
13037 return f != $ac_func;
13038 ;
13039 return 0;
13040 }
13041 _ACEOF
13042 rm -f conftest.$ac_objext conftest$ac_exeext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -z "$ac_c_werror_flag"
13052 || test ! -s conftest.err'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 eval "$as_ac_var=yes"
13065 else
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069 eval "$as_ac_var=no"
13070 fi
13071 rm -f conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13073 fi
13074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13076 if test `eval echo '${'$as_ac_var'}'` = yes; then
13077 cat >>confdefs.h <<_ACEOF
13078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13079 _ACEOF
13080
13081 fi
13082 done
13083
13084
13085 # We require memcpy.
13086 memcpy_found=no
13087
13088 for ac_func in memcpy
13089 do
13090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13091 echo "$as_me:$LINENO: checking for $ac_func" >&5
13092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13093 if eval "test \"\${$as_ac_var+set}\" = set"; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096 if test x$gcc_no_link = xyes; then
13097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13099 { (exit 1); exit 1; }; }
13100 fi
13101 cat >conftest.$ac_ext <<_ACEOF
13102 /* confdefs.h. */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13109 #define $ac_func innocuous_$ac_func
13110
13111 /* System header to define __stub macros and hopefully few prototypes,
13112 which can conflict with char $ac_func (); below.
13113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13114 <limits.h> exists even on freestanding compilers. */
13115
13116 #ifdef __STDC__
13117 # include <limits.h>
13118 #else
13119 # include <assert.h>
13120 #endif
13121
13122 #undef $ac_func
13123
13124 /* Override any gcc2 internal prototype to avoid an error. */
13125 #ifdef __cplusplus
13126 extern "C"
13127 {
13128 #endif
13129 /* We use char because int might match the return type of a gcc2
13130 builtin and then its argument prototype would still apply. */
13131 char $ac_func ();
13132 /* The GNU C library defines this for functions which it implements
13133 to always fail with ENOSYS. Some functions are actually named
13134 something starting with __ and the normal name is an alias. */
13135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13136 choke me
13137 #else
13138 char (*f) () = $ac_func;
13139 #endif
13140 #ifdef __cplusplus
13141 }
13142 #endif
13143
13144 int
13145 main ()
13146 {
13147 return f != $ac_func;
13148 ;
13149 return 0;
13150 }
13151 _ACEOF
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13154 (eval $ac_link) 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -z "$ac_c_werror_flag"
13162 || test ! -s conftest.err'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest$ac_exeext'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 eval "$as_ac_var=yes"
13175 else
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13178
13179 eval "$as_ac_var=no"
13180 fi
13181 rm -f conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
13183 fi
13184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13186 if test `eval echo '${'$as_ac_var'}'` = yes; then
13187 cat >>confdefs.h <<_ACEOF
13188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13189 _ACEOF
13190 memcpy_found=yes
13191 fi
13192 done
13193
13194 if test "$memcpy_found" = no; then
13195 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13196 echo "$as_me: error: memcpy is required" >&2;}
13197 { (exit 1); exit 1; }; }
13198 fi
13199 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13200 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13201 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13202 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 else
13205 ac_check_lib_save_LIBS=$LIBS
13206 LIBS="-ldl $LIBS"
13207 if test x$gcc_no_link = xyes; then
13208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13210 { (exit 1); exit 1; }; }
13211 fi
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218
13219 /* Override any gcc2 internal prototype to avoid an error. */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 /* We use char because int might match the return type of a gcc2
13224 builtin and then its argument prototype would still apply. */
13225 char dlopen ();
13226 int
13227 main ()
13228 {
13229 dlopen ();
13230 ;
13231 return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13236 (eval $ac_link) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest$ac_exeext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_cv_lib_dl_dlopen=yes
13257 else
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 ac_cv_lib_dl_dlopen=no
13262 fi
13263 rm -f conftest.err conftest.$ac_objext \
13264 conftest$ac_exeext conftest.$ac_ext
13265 LIBS=$ac_check_lib_save_LIBS
13266 fi
13267 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13268 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13269 if test $ac_cv_lib_dl_dlopen = yes; then
13270
13271
13272 cat >>confdefs.h <<\_ACEOF
13273 #define HAVE_DLOPEN 1
13274 _ACEOF
13275
13276 else
13277
13278 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13279 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13280 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283 ac_check_lib_save_LIBS=$LIBS
13284 LIBS="-ldld $LIBS"
13285 if test x$gcc_no_link = xyes; then
13286 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13287 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13288 { (exit 1); exit 1; }; }
13289 fi
13290 cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h. */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13296
13297 /* Override any gcc2 internal prototype to avoid an error. */
13298 #ifdef __cplusplus
13299 extern "C"
13300 #endif
13301 /* We use char because int might match the return type of a gcc2
13302 builtin and then its argument prototype would still apply. */
13303 char dlopen ();
13304 int
13305 main ()
13306 {
13307 dlopen ();
13308 ;
13309 return 0;
13310 }
13311 _ACEOF
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13314 (eval $ac_link) 2>conftest.er1
13315 ac_status=$?
13316 grep -v '^ *+' conftest.er1 >conftest.err
13317 rm -f conftest.er1
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -z "$ac_c_werror_flag"
13322 || test ! -s conftest.err'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; } &&
13328 { ac_try='test -s conftest$ac_exeext'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_cv_lib_dld_dlopen=yes
13335 else
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339 ac_cv_lib_dld_dlopen=no
13340 fi
13341 rm -f conftest.err conftest.$ac_objext \
13342 conftest$ac_exeext conftest.$ac_ext
13343 LIBS=$ac_check_lib_save_LIBS
13344 fi
13345 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13346 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13347 if test $ac_cv_lib_dld_dlopen = yes; then
13348
13349
13350 cat >>confdefs.h <<\_ACEOF
13351 #define HAVE_DLOPEN 1
13352 _ACEOF
13353
13354 fi
13355
13356 fi
13357
13358
13359 # Some library-finding code we stole from Tcl.
13360 #--------------------------------------------------------------------
13361 # Check for the existence of the -lsocket and -lnsl libraries.
13362 # The order here is important, so that they end up in the right
13363 # order in the command line generated by make. Here are some
13364 # special considerations:
13365 # 1. Use "connect" and "accept" to check for -lsocket, and
13366 # "gethostbyname" to check for -lnsl.
13367 # 2. Use each function name only once: can't redo a check because
13368 # autoconf caches the results of the last check and won't redo it.
13369 # 3. Use -lnsl and -lsocket only if they supply procedures that
13370 # aren't already present in the normal libraries. This is because
13371 # IRIX 5.2 has libraries, but they aren't needed and they're
13372 # bogus: they goof up name resolution if used.
13373 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13374 # To get around this problem, check for both libraries together
13375 # if -lsocket doesn't work by itself.
13376 #--------------------------------------------------------------------
13377
13378 echo "$as_me:$LINENO: checking for socket libraries" >&5
13379 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13380 if test "${gcj_cv_lib_sockets+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383 gcj_cv_lib_sockets=
13384 gcj_checkBoth=0
13385 unset ac_cv_func_connect
13386 echo "$as_me:$LINENO: checking for connect" >&5
13387 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13388 if test "${ac_cv_func_connect+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 if test x$gcc_no_link = xyes; then
13392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13394 { (exit 1); exit 1; }; }
13395 fi
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13404 #define connect innocuous_connect
13405
13406 /* System header to define __stub macros and hopefully few prototypes,
13407 which can conflict with char connect (); below.
13408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13409 <limits.h> exists even on freestanding compilers. */
13410
13411 #ifdef __STDC__
13412 # include <limits.h>
13413 #else
13414 # include <assert.h>
13415 #endif
13416
13417 #undef connect
13418
13419 /* Override any gcc2 internal prototype to avoid an error. */
13420 #ifdef __cplusplus
13421 extern "C"
13422 {
13423 #endif
13424 /* We use char because int might match the return type of a gcc2
13425 builtin and then its argument prototype would still apply. */
13426 char connect ();
13427 /* The GNU C library defines this for functions which it implements
13428 to always fail with ENOSYS. Some functions are actually named
13429 something starting with __ and the normal name is an alias. */
13430 #if defined (__stub_connect) || defined (__stub___connect)
13431 choke me
13432 #else
13433 char (*f) () = connect;
13434 #endif
13435 #ifdef __cplusplus
13436 }
13437 #endif
13438
13439 int
13440 main ()
13441 {
13442 return f != connect;
13443 ;
13444 return 0;
13445 }
13446 _ACEOF
13447 rm -f conftest.$ac_objext conftest$ac_exeext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449 (eval $ac_link) 2>conftest.er1
13450 ac_status=$?
13451 grep -v '^ *+' conftest.er1 >conftest.err
13452 rm -f conftest.er1
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -z "$ac_c_werror_flag"
13457 || test ! -s conftest.err'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try='test -s conftest$ac_exeext'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13469 ac_cv_func_connect=yes
13470 else
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13473
13474 ac_cv_func_connect=no
13475 fi
13476 rm -f conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13478 fi
13479 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13480 echo "${ECHO_T}$ac_cv_func_connect" >&6
13481 if test $ac_cv_func_connect = yes; then
13482 gcj_checkSocket=0
13483 else
13484 gcj_checkSocket=1
13485 fi
13486
13487 if test "$gcj_checkSocket" = 1; then
13488 unset ac_cv_func_connect
13489 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13490 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13491 if test "${ac_cv_lib_socket_main+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 ac_check_lib_save_LIBS=$LIBS
13495 LIBS="-lsocket $LIBS"
13496 if test x$gcc_no_link = xyes; then
13497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13499 { (exit 1); exit 1; }; }
13500 fi
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h. */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13507
13508
13509 int
13510 main ()
13511 {
13512 main ();
13513 ;
13514 return 0;
13515 }
13516 _ACEOF
13517 rm -f conftest.$ac_objext conftest$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519 (eval $ac_link) 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag"
13527 || test ! -s conftest.err'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; } &&
13533 { ac_try='test -s conftest$ac_exeext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_cv_lib_socket_main=yes
13540 else
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13543
13544 ac_cv_lib_socket_main=no
13545 fi
13546 rm -f conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13548 LIBS=$ac_check_lib_save_LIBS
13549 fi
13550 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13551 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13552 if test $ac_cv_lib_socket_main = yes; then
13553 gcj_cv_lib_sockets="-lsocket"
13554 else
13555 gcj_checkBoth=1
13556 fi
13557
13558 fi
13559 if test "$gcj_checkBoth" = 1; then
13560 gcj_oldLibs=$LIBS
13561 LIBS="$LIBS -lsocket -lnsl"
13562 unset ac_cv_func_accept
13563 echo "$as_me:$LINENO: checking for accept" >&5
13564 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13565 if test "${ac_cv_func_accept+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 if test x$gcc_no_link = xyes; then
13569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13571 { (exit 1); exit 1; }; }
13572 fi
13573 cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13581 #define accept innocuous_accept
13582
13583 /* System header to define __stub macros and hopefully few prototypes,
13584 which can conflict with char accept (); below.
13585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13586 <limits.h> exists even on freestanding compilers. */
13587
13588 #ifdef __STDC__
13589 # include <limits.h>
13590 #else
13591 # include <assert.h>
13592 #endif
13593
13594 #undef accept
13595
13596 /* Override any gcc2 internal prototype to avoid an error. */
13597 #ifdef __cplusplus
13598 extern "C"
13599 {
13600 #endif
13601 /* We use char because int might match the return type of a gcc2
13602 builtin and then its argument prototype would still apply. */
13603 char accept ();
13604 /* The GNU C library defines this for functions which it implements
13605 to always fail with ENOSYS. Some functions are actually named
13606 something starting with __ and the normal name is an alias. */
13607 #if defined (__stub_accept) || defined (__stub___accept)
13608 choke me
13609 #else
13610 char (*f) () = accept;
13611 #endif
13612 #ifdef __cplusplus
13613 }
13614 #endif
13615
13616 int
13617 main ()
13618 {
13619 return f != accept;
13620 ;
13621 return 0;
13622 }
13623 _ACEOF
13624 rm -f conftest.$ac_objext conftest$ac_exeext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13626 (eval $ac_link) 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest$ac_exeext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_func_accept=yes
13647 else
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651 ac_cv_func_accept=no
13652 fi
13653 rm -f conftest.err conftest.$ac_objext \
13654 conftest$ac_exeext conftest.$ac_ext
13655 fi
13656 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13657 echo "${ECHO_T}$ac_cv_func_accept" >&6
13658 if test $ac_cv_func_accept = yes; then
13659 gcj_checkNsl=0
13660 gcj_cv_lib_sockets="-lsocket -lnsl"
13661 fi
13662
13663 unset ac_cv_func_accept
13664 LIBS=$gcj_oldLibs
13665 fi
13666 unset ac_cv_func_gethostbyname
13667 gcj_oldLibs=$LIBS
13668 LIBS="$LIBS $gcj_cv_lib_sockets"
13669 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13670 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13671 if test "${ac_cv_func_gethostbyname+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674 if test x$gcc_no_link = xyes; then
13675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13677 { (exit 1); exit 1; }; }
13678 fi
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h. */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13687 #define gethostbyname innocuous_gethostbyname
13688
13689 /* System header to define __stub macros and hopefully few prototypes,
13690 which can conflict with char gethostbyname (); below.
13691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13692 <limits.h> exists even on freestanding compilers. */
13693
13694 #ifdef __STDC__
13695 # include <limits.h>
13696 #else
13697 # include <assert.h>
13698 #endif
13699
13700 #undef gethostbyname
13701
13702 /* Override any gcc2 internal prototype to avoid an error. */
13703 #ifdef __cplusplus
13704 extern "C"
13705 {
13706 #endif
13707 /* We use char because int might match the return type of a gcc2
13708 builtin and then its argument prototype would still apply. */
13709 char gethostbyname ();
13710 /* The GNU C library defines this for functions which it implements
13711 to always fail with ENOSYS. Some functions are actually named
13712 something starting with __ and the normal name is an alias. */
13713 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13714 choke me
13715 #else
13716 char (*f) () = gethostbyname;
13717 #endif
13718 #ifdef __cplusplus
13719 }
13720 #endif
13721
13722 int
13723 main ()
13724 {
13725 return f != gethostbyname;
13726 ;
13727 return 0;
13728 }
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_func_gethostbyname=yes
13753 else
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757 ac_cv_func_gethostbyname=no
13758 fi
13759 rm -f conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13761 fi
13762 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13763 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13764 if test $ac_cv_func_gethostbyname = yes; then
13765 :
13766 else
13767 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13768 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13769 if test "${ac_cv_lib_nsl_main+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772 ac_check_lib_save_LIBS=$LIBS
13773 LIBS="-lnsl $LIBS"
13774 if test x$gcc_no_link = xyes; then
13775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13777 { (exit 1); exit 1; }; }
13778 fi
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785
13786
13787 int
13788 main ()
13789 {
13790 main ();
13791 ;
13792 return 0;
13793 }
13794 _ACEOF
13795 rm -f conftest.$ac_objext conftest$ac_exeext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13797 (eval $ac_link) 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag"
13805 || test ! -s conftest.err'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest$ac_exeext'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_cv_lib_nsl_main=yes
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13821
13822 ac_cv_lib_nsl_main=no
13823 fi
13824 rm -f conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13826 LIBS=$ac_check_lib_save_LIBS
13827 fi
13828 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13829 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13830 if test $ac_cv_lib_nsl_main = yes; then
13831 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13832 fi
13833
13834 fi
13835
13836 unset ac_cv_func_gethostbyname
13837 LIBS=$gcj_oldLIBS
13838
13839 fi
13840 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13841 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13842 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13843
13844 if test "$with_system_zlib" = yes; then
13845 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13846 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13847 if test "${ac_cv_lib_z_deflate+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850 ac_check_lib_save_LIBS=$LIBS
13851 LIBS="-lz $LIBS"
13852 if test x$gcc_no_link = xyes; then
13853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13855 { (exit 1); exit 1; }; }
13856 fi
13857 cat >conftest.$ac_ext <<_ACEOF
13858 /* confdefs.h. */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13863
13864 /* Override any gcc2 internal prototype to avoid an error. */
13865 #ifdef __cplusplus
13866 extern "C"
13867 #endif
13868 /* We use char because int might match the return type of a gcc2
13869 builtin and then its argument prototype would still apply. */
13870 char deflate ();
13871 int
13872 main ()
13873 {
13874 deflate ();
13875 ;
13876 return 0;
13877 }
13878 _ACEOF
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13881 (eval $ac_link) 2>conftest.er1
13882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -z "$ac_c_werror_flag"
13889 || test ! -s conftest.err'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try='test -s conftest$ac_exeext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_lib_z_deflate=yes
13902 else
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906 ac_cv_lib_z_deflate=no
13907 fi
13908 rm -f conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 LIBS=$ac_check_lib_save_LIBS
13911 fi
13912 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13913 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13914 if test $ac_cv_lib_z_deflate = yes; then
13915 ZLIBSPEC=-lz
13916 else
13917 ZLIBSPEC=
13918 fi
13919
13920 fi
13921
13922 LIBMAGIC=
13923 echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
13924 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
13925 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928 ac_check_lib_save_LIBS=$LIBS
13929 LIBS="-lmagic $LIBS"
13930 if test x$gcc_no_link = xyes; then
13931 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13932 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13933 { (exit 1); exit 1; }; }
13934 fi
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h. */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941
13942 /* Override any gcc2 internal prototype to avoid an error. */
13943 #ifdef __cplusplus
13944 extern "C"
13945 #endif
13946 /* We use char because int might match the return type of a gcc2
13947 builtin and then its argument prototype would still apply. */
13948 char magic_open ();
13949 int
13950 main ()
13951 {
13952 magic_open ();
13953 ;
13954 return 0;
13955 }
13956 _ACEOF
13957 rm -f conftest.$ac_objext conftest$ac_exeext
13958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13959 (eval $ac_link) 2>conftest.er1
13960 ac_status=$?
13961 grep -v '^ *+' conftest.er1 >conftest.err
13962 rm -f conftest.er1
13963 cat conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } &&
13966 { ac_try='test -z "$ac_c_werror_flag"
13967 || test ! -s conftest.err'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest$ac_exeext'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_cv_lib_magic_magic_open=yes
13980 else
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13983
13984 ac_cv_lib_magic_magic_open=no
13985 fi
13986 rm -f conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13988 LIBS=$ac_check_lib_save_LIBS
13989 fi
13990 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
13991 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
13992 if test $ac_cv_lib_magic_magic_open = yes; then
13993
13994
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_MAGIC_OPEN 1
13997 _ACEOF
13998
13999 LIBMAGIC="-lmagic"
14000 fi
14001
14002
14003
14004 # Test for Gtk stuff, if asked for.
14005 if test "$use_gtk_awt" = yes; then
14006
14007 succeeded=no
14008
14009 if test -z "$PKG_CONFIG"; then
14010 # Extract the first word of "pkg-config", so it can be a program name with args.
14011 set dummy pkg-config; ac_word=$2
14012 echo "$as_me:$LINENO: checking for $ac_word" >&5
14013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14014 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 case $PKG_CONFIG in
14018 [\\/]* | ?:[\\/]*)
14019 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14020 ;;
14021 *)
14022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14023 for as_dir in $PATH
14024 do
14025 IFS=$as_save_IFS
14026 test -z "$as_dir" && as_dir=.
14027 for ac_exec_ext in '' $ac_executable_extensions; do
14028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14029 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14031 break 2
14032 fi
14033 done
14034 done
14035
14036 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14037 ;;
14038 esac
14039 fi
14040 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14041
14042 if test -n "$PKG_CONFIG"; then
14043 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14044 echo "${ECHO_T}$PKG_CONFIG" >&6
14045 else
14046 echo "$as_me:$LINENO: result: no" >&5
14047 echo "${ECHO_T}no" >&6
14048 fi
14049
14050 fi
14051
14052 if test "$PKG_CONFIG" = "no" ; then
14053 echo "*** The pkg-config script could not be found. Make sure it is"
14054 echo "*** in your path, or set the PKG_CONFIG environment variable"
14055 echo "*** to the full path to pkg-config."
14056 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14057 else
14058 PKG_CONFIG_MIN_VERSION=0.9.0
14059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14060 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
14061 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
14062
14063 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
14064 echo "$as_me:$LINENO: result: yes" >&5
14065 echo "${ECHO_T}yes" >&6
14066 succeeded=yes
14067
14068 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14069 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
14070 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
14071 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14072 echo "${ECHO_T}$GTK_CFLAGS" >&6
14073
14074 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14075 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
14076 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
14077 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14078 echo "${ECHO_T}$GTK_LIBS" >&6
14079 else
14080 GTK_CFLAGS=""
14081 GTK_LIBS=""
14082 ## If we have a custom action on failure, don't print errors, but
14083 ## do set a variable so people can do so.
14084 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14085 echo $GTK_PKG_ERRORS
14086 fi
14087
14088
14089
14090 else
14091 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14092 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14093 fi
14094 fi
14095
14096 if test $succeeded = yes; then
14097 :
14098 else
14099 { { 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
14100 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;}
14101 { (exit 1); exit 1; }; }
14102 fi
14103
14104
14105
14106
14107
14108 succeeded=no
14109
14110 if test -z "$PKG_CONFIG"; then
14111 # Extract the first word of "pkg-config", so it can be a program name with args.
14112 set dummy pkg-config; ac_word=$2
14113 echo "$as_me:$LINENO: checking for $ac_word" >&5
14114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118 case $PKG_CONFIG in
14119 [\\/]* | ?:[\\/]*)
14120 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14121 ;;
14122 *)
14123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14124 for as_dir in $PATH
14125 do
14126 IFS=$as_save_IFS
14127 test -z "$as_dir" && as_dir=.
14128 for ac_exec_ext in '' $ac_executable_extensions; do
14129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14130 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14132 break 2
14133 fi
14134 done
14135 done
14136
14137 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14138 ;;
14139 esac
14140 fi
14141 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14142
14143 if test -n "$PKG_CONFIG"; then
14144 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14145 echo "${ECHO_T}$PKG_CONFIG" >&6
14146 else
14147 echo "$as_me:$LINENO: result: no" >&5
14148 echo "${ECHO_T}no" >&6
14149 fi
14150
14151 fi
14152
14153 if test "$PKG_CONFIG" = "no" ; then
14154 echo "*** The pkg-config script could not be found. Make sure it is"
14155 echo "*** in your path, or set the PKG_CONFIG environment variable"
14156 echo "*** to the full path to pkg-config."
14157 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14158 else
14159 PKG_CONFIG_MIN_VERSION=0.9.0
14160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14161 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14162 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
14163
14164 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14165 echo "$as_me:$LINENO: result: yes" >&5
14166 echo "${ECHO_T}yes" >&6
14167 succeeded=yes
14168
14169 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14170 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14171 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14172 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14173 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14174
14175 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14176 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14177 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14178 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14179 echo "${ECHO_T}$GLIB_LIBS" >&6
14180 else
14181 GLIB_CFLAGS=""
14182 GLIB_LIBS=""
14183 ## If we have a custom action on failure, don't print errors, but
14184 ## do set a variable so people can do so.
14185 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14186 echo $GLIB_PKG_ERRORS
14187 fi
14188
14189
14190
14191 else
14192 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14193 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14194 fi
14195 fi
14196
14197 if test $succeeded = yes; then
14198 :
14199 else
14200 { { 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
14201 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;}
14202 { (exit 1); exit 1; }; }
14203 fi
14204
14205
14206
14207
14208
14209 succeeded=no
14210
14211 if test -z "$PKG_CONFIG"; then
14212 # Extract the first word of "pkg-config", so it can be a program name with args.
14213 set dummy pkg-config; ac_word=$2
14214 echo "$as_me:$LINENO: checking for $ac_word" >&5
14215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14216 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 else
14219 case $PKG_CONFIG in
14220 [\\/]* | ?:[\\/]*)
14221 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14222 ;;
14223 *)
14224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14225 for as_dir in $PATH
14226 do
14227 IFS=$as_save_IFS
14228 test -z "$as_dir" && as_dir=.
14229 for ac_exec_ext in '' $ac_executable_extensions; do
14230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14231 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14233 break 2
14234 fi
14235 done
14236 done
14237
14238 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14239 ;;
14240 esac
14241 fi
14242 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14243
14244 if test -n "$PKG_CONFIG"; then
14245 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14246 echo "${ECHO_T}$PKG_CONFIG" >&6
14247 else
14248 echo "$as_me:$LINENO: result: no" >&5
14249 echo "${ECHO_T}no" >&6
14250 fi
14251
14252 fi
14253
14254 if test "$PKG_CONFIG" = "no" ; then
14255 echo "*** The pkg-config script could not be found. Make sure it is"
14256 echo "*** in your path, or set the PKG_CONFIG environment variable"
14257 echo "*** to the full path to pkg-config."
14258 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14259 else
14260 PKG_CONFIG_MIN_VERSION=0.9.0
14261 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14262 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14263 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14264
14265 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14266 echo "$as_me:$LINENO: result: yes" >&5
14267 echo "${ECHO_T}yes" >&6
14268 succeeded=yes
14269
14270 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14271 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14272 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14273 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14274 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14275
14276 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14277 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14278 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14279 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14280 echo "${ECHO_T}$LIBART_LIBS" >&6
14281 else
14282 LIBART_CFLAGS=""
14283 LIBART_LIBS=""
14284 ## If we have a custom action on failure, don't print errors, but
14285 ## do set a variable so people can do so.
14286 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14287 echo $LIBART_PKG_ERRORS
14288 fi
14289
14290
14291
14292 else
14293 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14294 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14295 fi
14296 fi
14297
14298 if test $succeeded = yes; then
14299 :
14300 else
14301 { { 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
14302 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;}
14303 { (exit 1); exit 1; }; }
14304 fi
14305
14306
14307
14308
14309 # We require the XTest Extension to support java.awt.Robot.
14310 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14311 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14312 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 ac_check_lib_save_LIBS=$LIBS
14316 LIBS="-lXtst ${X_LIBS} $LIBS"
14317 if test x$gcc_no_link = xyes; then
14318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14320 { (exit 1); exit 1; }; }
14321 fi
14322 cat >conftest.$ac_ext <<_ACEOF
14323 /* confdefs.h. */
14324 _ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h. */
14328
14329 /* Override any gcc2 internal prototype to avoid an error. */
14330 #ifdef __cplusplus
14331 extern "C"
14332 #endif
14333 /* We use char because int might match the return type of a gcc2
14334 builtin and then its argument prototype would still apply. */
14335 char XTestQueryExtension ();
14336 int
14337 main ()
14338 {
14339 XTestQueryExtension ();
14340 ;
14341 return 0;
14342 }
14343 _ACEOF
14344 rm -f conftest.$ac_objext conftest$ac_exeext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14346 (eval $ac_link) 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -z "$ac_c_werror_flag"
14354 || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; } &&
14360 { ac_try='test -s conftest$ac_exeext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 ac_cv_lib_Xtst_XTestQueryExtension=yes
14367 else
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14370
14371 ac_cv_lib_Xtst_XTestQueryExtension=no
14372 fi
14373 rm -f conftest.err conftest.$ac_objext \
14374 conftest$ac_exeext conftest.$ac_ext
14375 LIBS=$ac_check_lib_save_LIBS
14376 fi
14377 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14378 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14379 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14380 true
14381 else
14382 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14383 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14384 { (exit 1); exit 1; }; }
14385 fi
14386
14387 fi
14388
14389 # On Solaris, and maybe other architectures, the Boehm collector
14390 # requires -ldl.
14391 if test "$GC" = boehm; then
14392 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14393 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14394 if test "${ac_cv_lib_dl_main+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397 ac_check_lib_save_LIBS=$LIBS
14398 LIBS="-ldl $LIBS"
14399 if test x$gcc_no_link = xyes; then
14400 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14401 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14402 { (exit 1); exit 1; }; }
14403 fi
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h. */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410
14411
14412 int
14413 main ()
14414 {
14415 main ();
14416 ;
14417 return 0;
14418 }
14419 _ACEOF
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14422 (eval $ac_link) 2>conftest.er1
14423 ac_status=$?
14424 grep -v '^ *+' conftest.er1 >conftest.err
14425 rm -f conftest.er1
14426 cat conftest.err >&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -z "$ac_c_werror_flag"
14430 || test ! -s conftest.err'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest$ac_exeext'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 ac_cv_lib_dl_main=yes
14443 else
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 ac_cv_lib_dl_main=no
14448 fi
14449 rm -f conftest.err conftest.$ac_objext \
14450 conftest$ac_exeext conftest.$ac_ext
14451 LIBS=$ac_check_lib_save_LIBS
14452 fi
14453 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14454 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14455 if test $ac_cv_lib_dl_main = yes; then
14456 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14457 fi
14458
14459 fi
14460 fi
14461
14462 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14463 case $build in
14464 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14465 *) CLASSPATH_SEPARATOR=':' ;;
14466 esac
14467
14468
14469 # We must search the source tree for java.lang, since we still don't
14470 # have libgcj.jar nor java/lang/*.class
14471 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14472 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14473
14474 # Since some classes depend on this one, we need its source available
14475 # before we can do any GCJ compilation test :-(
14476 if test ! -f gnu/classpath/Configuration.java; then
14477 test -d gnu || mkdir gnu
14478 test -d gnu/classpath || mkdir gnu/classpath
14479 # Note that it is not crucial that all the values here be correct.
14480 sed -e "s,@prefix@,$prefix," \
14481 -e "s,@VERSION@,$VERSION," \
14482 -e "s,@LIBDEBUG@,false," \
14483 -e "s,@INIT_LOAD_LIBRARY@,false," \
14484 -e "s,@@,$LIBGCJDEBUG," \
14485 -e "s,@default_toolkit@,$TOOLKIT," \
14486 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14487 -e "s,@GTK_CAIRO_ENABLED@,false," \
14488 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14489 > gnu/classpath/Configuration.java
14490 # We do not want to redirect the output of the grep below to /dev/null,
14491 # but we add /dev/null to the input list so that grep will print the
14492 # filename of Configuration.java in case it finds any matches.
14493 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14494 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14495 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14496 { (exit 1); exit 1; }; }
14497 fi
14498 fi
14499
14500 if test -n "$ac_tool_prefix"; then
14501 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14502 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14503 echo "$as_me:$LINENO: checking for $ac_word" >&5
14504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14505 if test "${ac_cv_prog_GCJ+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508 if test -n "$GCJ"; then
14509 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14510 else
14511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14512 for as_dir in $PATH
14513 do
14514 IFS=$as_save_IFS
14515 test -z "$as_dir" && as_dir=.
14516 for ac_exec_ext in '' $ac_executable_extensions; do
14517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14518 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14520 break 2
14521 fi
14522 done
14523 done
14524
14525 fi
14526 fi
14527 GCJ=$ac_cv_prog_GCJ
14528 if test -n "$GCJ"; then
14529 echo "$as_me:$LINENO: result: $GCJ" >&5
14530 echo "${ECHO_T}$GCJ" >&6
14531 else
14532 echo "$as_me:$LINENO: result: no" >&5
14533 echo "${ECHO_T}no" >&6
14534 fi
14535
14536 fi
14537 if test -z "$ac_cv_prog_GCJ"; then
14538 ac_ct_GCJ=$GCJ
14539 # Extract the first word of "gcj", so it can be a program name with args.
14540 set dummy gcj; ac_word=$2
14541 echo "$as_me:$LINENO: checking for $ac_word" >&5
14542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14543 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 else
14546 if test -n "$ac_ct_GCJ"; then
14547 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14548 else
14549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14550 for as_dir in $PATH
14551 do
14552 IFS=$as_save_IFS
14553 test -z "$as_dir" && as_dir=.
14554 for ac_exec_ext in '' $ac_executable_extensions; do
14555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14556 ac_cv_prog_ac_ct_GCJ="gcj"
14557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14558 break 2
14559 fi
14560 done
14561 done
14562
14563 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14564 fi
14565 fi
14566 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14567 if test -n "$ac_ct_GCJ"; then
14568 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14569 echo "${ECHO_T}$ac_ct_GCJ" >&6
14570 else
14571 echo "$as_me:$LINENO: result: no" >&5
14572 echo "${ECHO_T}no" >&6
14573 fi
14574
14575 GCJ=$ac_ct_GCJ
14576 else
14577 GCJ="$ac_cv_prog_GCJ"
14578 fi
14579
14580 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14581
14582
14583
14584
14585 # Now remove it.
14586 rm -f gnu/classpath/Configuration.java
14587
14588 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14589
14590 echo "$as_me:$LINENO: checking for void *" >&5
14591 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14592 if test "${ac_cv_type_void_p+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595 cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h. */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14601 $ac_includes_default
14602 int
14603 main ()
14604 {
14605 if ((void * *) 0)
14606 return 0;
14607 if (sizeof (void *))
14608 return 0;
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615 (eval $ac_compile) 2>conftest.er1
14616 ac_status=$?
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_c_werror_flag"
14623 || test ! -s conftest.err'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest.$ac_objext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_cv_type_void_p=yes
14636 else
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 ac_cv_type_void_p=no
14641 fi
14642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14643 fi
14644 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14645 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14646
14647 echo "$as_me:$LINENO: checking size of void *" >&5
14648 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14649 if test "${ac_cv_sizeof_void_p+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652 if test "$ac_cv_type_void_p" = yes; then
14653 # The cast to unsigned long works around a bug in the HP C Compiler
14654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14656 # This bug is HP SR number 8606223364.
14657 if test "$cross_compiling" = yes; then
14658 # Depending upon the size, compute the lo and hi bounds.
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h. */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 $ac_includes_default
14666 int
14667 main ()
14668 {
14669 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14670 test_array [0] = 0
14671
14672 ;
14673 return 0;
14674 }
14675 _ACEOF
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_lo=0 ac_mid=0
14699 while :; do
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h. */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 $ac_includes_default
14707 int
14708 main ()
14709 {
14710 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14711 test_array [0] = 0
14712
14713 ;
14714 return 0;
14715 }
14716 _ACEOF
14717 rm -f conftest.$ac_objext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14719 (eval $ac_compile) 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag"
14727 || test ! -s conftest.err'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_hi=$ac_mid; break
14740 else
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ac_lo=`expr $ac_mid + 1`
14745 if test $ac_lo -le $ac_mid; then
14746 ac_lo= ac_hi=
14747 break
14748 fi
14749 ac_mid=`expr 2 '*' $ac_mid + 1`
14750 fi
14751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752 done
14753 else
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h. */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 $ac_includes_default
14764 int
14765 main ()
14766 {
14767 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14768 test_array [0] = 0
14769
14770 ;
14771 return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776 (eval $ac_compile) 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag"
14784 || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest.$ac_objext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14793 ac_status=$?
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796 ac_hi=-1 ac_mid=-1
14797 while :; do
14798 cat >conftest.$ac_ext <<_ACEOF
14799 /* confdefs.h. */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 $ac_includes_default
14805 int
14806 main ()
14807 {
14808 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14809 test_array [0] = 0
14810
14811 ;
14812 return 0;
14813 }
14814 _ACEOF
14815 rm -f conftest.$ac_objext
14816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14817 (eval $ac_compile) 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
14824 { ac_try='test -z "$ac_c_werror_flag"
14825 || test ! -s conftest.err'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; } &&
14831 { ac_try='test -s conftest.$ac_objext'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837 ac_lo=$ac_mid; break
14838 else
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14841
14842 ac_hi=`expr '(' $ac_mid ')' - 1`
14843 if test $ac_mid -le $ac_hi; then
14844 ac_lo= ac_hi=
14845 break
14846 fi
14847 ac_mid=`expr 2 '*' $ac_mid`
14848 fi
14849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14850 done
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855 ac_lo= ac_hi=
14856 fi
14857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14858 fi
14859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14860 # Binary search between lo and hi bounds.
14861 while test "x$ac_lo" != "x$ac_hi"; do
14862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h. */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 $ac_includes_default
14870 int
14871 main ()
14872 {
14873 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14874 test_array [0] = 0
14875
14876 ;
14877 return 0;
14878 }
14879 _ACEOF
14880 rm -f conftest.$ac_objext
14881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14882 (eval $ac_compile) 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try='test -z "$ac_c_werror_flag"
14890 || test ! -s conftest.err'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 ac_hi=$ac_mid
14903 else
14904 echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14906
14907 ac_lo=`expr '(' $ac_mid ')' + 1`
14908 fi
14909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14910 done
14911 case $ac_lo in
14912 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14914 See \`config.log' for more details." >&5
14915 echo "$as_me: error: cannot compute sizeof (void *), 77
14916 See \`config.log' for more details." >&2;}
14917 { (exit 1); exit 1; }; } ;;
14918 esac
14919 else
14920 if test "$cross_compiling" = yes; then
14921 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14922 See \`config.log' for more details." >&5
14923 echo "$as_me: error: cannot run test program while cross compiling
14924 See \`config.log' for more details." >&2;}
14925 { (exit 1); exit 1; }; }
14926 else
14927 cat >conftest.$ac_ext <<_ACEOF
14928 /* confdefs.h. */
14929 _ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h. */
14933 $ac_includes_default
14934 long longval () { return (long) (sizeof (void *)); }
14935 unsigned long ulongval () { return (long) (sizeof (void *)); }
14936 #include <stdio.h>
14937 #include <stdlib.h>
14938 int
14939 main ()
14940 {
14941
14942 FILE *f = fopen ("conftest.val", "w");
14943 if (! f)
14944 exit (1);
14945 if (((long) (sizeof (void *))) < 0)
14946 {
14947 long i = longval ();
14948 if (i != ((long) (sizeof (void *))))
14949 exit (1);
14950 fprintf (f, "%ld\n", i);
14951 }
14952 else
14953 {
14954 unsigned long i = ulongval ();
14955 if (i != ((long) (sizeof (void *))))
14956 exit (1);
14957 fprintf (f, "%lu\n", i);
14958 }
14959 exit (ferror (f) || fclose (f) != 0);
14960
14961 ;
14962 return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest$ac_exeext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14967 (eval $ac_link) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_cv_sizeof_void_p=`cat conftest.val`
14977 else
14978 echo "$as_me: program exited with status $ac_status" >&5
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982 ( exit $ac_status )
14983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14984 See \`config.log' for more details." >&5
14985 echo "$as_me: error: cannot compute sizeof (void *), 77
14986 See \`config.log' for more details." >&2;}
14987 { (exit 1); exit 1; }; }
14988 fi
14989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14990 fi
14991 fi
14992 rm -f conftest.val
14993 else
14994 ac_cv_sizeof_void_p=0
14995 fi
14996 fi
14997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14998 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14999 cat >>confdefs.h <<_ACEOF
15000 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15001 _ACEOF
15002
15003
15004
15005 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15006 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15007 if test "${ac_cv_c_bigendian+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 else
15010 # See if sys/param.h defines the BYTE_ORDER macro.
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 #include <sys/types.h>
15018 #include <sys/param.h>
15019
15020 int
15021 main ()
15022 {
15023 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15024 bogus endian macros
15025 #endif
15026
15027 ;
15028 return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033 (eval $ac_compile) 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -z "$ac_c_werror_flag"
15041 || test ! -s conftest.err'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest.$ac_objext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 # It does; now see whether it defined to BIG_ENDIAN or not.
15054 cat >conftest.$ac_ext <<_ACEOF
15055 /* confdefs.h. */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 #include <sys/types.h>
15061 #include <sys/param.h>
15062
15063 int
15064 main ()
15065 {
15066 #if BYTE_ORDER != BIG_ENDIAN
15067 not big endian
15068 #endif
15069
15070 ;
15071 return 0;
15072 }
15073 _ACEOF
15074 rm -f conftest.$ac_objext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15076 (eval $ac_compile) 2>conftest.er1
15077 ac_status=$?
15078 grep -v '^ *+' conftest.er1 >conftest.err
15079 rm -f conftest.er1
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
15083 { ac_try='test -z "$ac_c_werror_flag"
15084 || test ! -s conftest.err'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest.$ac_objext'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_cv_c_bigendian=yes
15097 else
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 ac_cv_c_bigendian=no
15102 fi
15103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15104 else
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108 # It does not; compile a test program.
15109 if test "$cross_compiling" = yes; then
15110 # try to guess the endianness by grepping values into an object file
15111 ac_cv_c_bigendian=unknown
15112 cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h. */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15119 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15120 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15121 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15122 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15123 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15124 int
15125 main ()
15126 {
15127 _ascii (); _ebcdic ();
15128 ;
15129 return 0;
15130 }
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15134 (eval $ac_compile) 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag"
15142 || test ! -s conftest.err'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15155 ac_cv_c_bigendian=yes
15156 fi
15157 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15158 if test "$ac_cv_c_bigendian" = unknown; then
15159 ac_cv_c_bigendian=no
15160 else
15161 # finding both strings is unlikely to happen, but who knows?
15162 ac_cv_c_bigendian=unknown
15163 fi
15164 fi
15165 else
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 fi
15170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15171 else
15172 cat >conftest.$ac_ext <<_ACEOF
15173 /* confdefs.h. */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 int
15179 main ()
15180 {
15181 /* Are we little or big endian? From Harbison&Steele. */
15182 union
15183 {
15184 long l;
15185 char c[sizeof (long)];
15186 } u;
15187 u.l = 1;
15188 exit (u.c[sizeof (long) - 1] == 1);
15189 }
15190 _ACEOF
15191 rm -f conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193 (eval $ac_link) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
15202 ac_cv_c_bigendian=no
15203 else
15204 echo "$as_me: program exited with status $ac_status" >&5
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208 ( exit $ac_status )
15209 ac_cv_c_bigendian=yes
15210 fi
15211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15212 fi
15213 fi
15214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15215 fi
15216 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15217 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15218 case $ac_cv_c_bigendian in
15219 yes)
15220
15221 cat >>confdefs.h <<\_ACEOF
15222 #define WORDS_BIGENDIAN 1
15223 _ACEOF
15224 ;;
15225 no)
15226 ;;
15227 *)
15228 { { echo "$as_me:$LINENO: error: unknown endianness
15229 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15230 echo "$as_me: error: unknown endianness
15231 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15232 { (exit 1); exit 1; }; } ;;
15233 esac
15234
15235
15236 ZLIBS=
15237 SYS_ZLIBS=
15238 ZINCS=
15239
15240 if test -z "$ZLIBSPEC"; then
15241 # Use zlib from the GCC tree.
15242 ZINCS='-I$(top_srcdir)/../zlib'
15243 ZLIBS=../zlib/libzgcj_convenience.la
15244 else
15245 # System's zlib.
15246 SYS_ZLIBS="$ZLIBSPEC"
15247 fi
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259 if test "$NATIVE" = yes; then
15260 NATIVE_TRUE=
15261 NATIVE_FALSE='#'
15262 else
15263 NATIVE_TRUE='#'
15264 NATIVE_FALSE=
15265 fi
15266
15267
15268
15269 if test "$enable_shared" = yes; then
15270 ENABLE_SHARED_TRUE=
15271 ENABLE_SHARED_FALSE='#'
15272 else
15273 ENABLE_SHARED_TRUE='#'
15274 ENABLE_SHARED_FALSE=
15275 fi
15276
15277
15278
15279 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15280 NEEDS_DATA_START_TRUE=
15281 NEEDS_DATA_START_FALSE='#'
15282 else
15283 NEEDS_DATA_START_TRUE='#'
15284 NEEDS_DATA_START_FALSE=
15285 fi
15286
15287
15288
15289 # Process the option "--enable-version-specific-runtime-libs"
15290 # Calculate toolexeclibdir
15291 case ${version_specific_libs} in
15292 yes)
15293 # Need the gcc compiler version to know where to install libraries
15294 # and header files if --enable-version-specific-runtime-libs option
15295 # is selected.
15296 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15297 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15298 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15299 toolexeclibdir=$toolexecmainlibdir
15300 ;;
15301 no)
15302 if test -n "$with_cross_host" &&
15303 test x"$with_cross_host" != x"no"; then
15304 # Install a library built with a cross compiler in tooldir, not libdir.
15305 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15306 toolexecmainlibdir='$(toolexecdir)/lib'
15307 else
15308 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15309 toolexecmainlibdir='$(libdir)'
15310 fi
15311 multi_os_directory=`$CC -print-multi-os-directory`
15312 case $multi_os_directory in
15313 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15314 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15315 esac
15316 ;;
15317 esac
15318
15319
15320
15321
15322 # Determine where the standard .db file and GNU Classpath JNI
15323 # libraries are found.
15324 multi_os_directory=`$CC -print-multi-os-directory`
15325 case $multi_os_directory in
15326 .)
15327 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15328 ;;
15329 *)
15330 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15331 ;;
15332 esac
15333
15334
15335 # Determine gcj version number.
15336 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15337 GCJVERSION=$gcjversion
15338
15339
15340 cat >>confdefs.h <<_ACEOF
15341 #define GCJVERSION "$GCJVERSION"
15342 _ACEOF
15343
15344
15345
15346 cat >>confdefs.h <<\_ACEOF
15347 #define JV_VERSION "1.5.0"
15348 _ACEOF
15349
15350
15351 cat >>confdefs.h <<\_ACEOF
15352 #define JV_API_VERSION "1.5"
15353 _ACEOF
15354
15355
15356
15357 case "${with_gxx_include_dir}" in
15358 yes)
15359 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15360 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15361 { (exit 1); exit 1; }; }
15362 ;;
15363 no | "")
15364 case "${enable_version_specific_runtime_libs}" in
15365 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15366 *)
15367 libstdcxx_incdir='c++/$(gcc_version)'
15368 gxx_include_dir='include/$(libstdcxx_incdir)'
15369 if test -n "$with_cross_host" &&
15370 test x"$with_cross_host" != x"no"; then
15371 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15372 else
15373 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15374 fi;;
15375 esac ;;
15376 *) gxx_include_dir=${with_gxx_include_dir} ;;
15377 esac
15378
15379
15380
15381
15382 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15383 # On that system, sys/ioctl.h will not include sys/filio.h unless
15384 # BSD_COMP is defined; just including sys/filio.h is simpler.
15385 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15386 # for now. If you change this, you also must update natFile.cc.
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15411 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15412 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15413 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15414 dirent.h sys/rw_lock.h magic.h ifaddrs.h
15415 do
15416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15418 echo "$as_me:$LINENO: checking for $ac_header" >&5
15419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 fi
15423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15425 else
15426 # Is the header compilable?
15427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15429 cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h. */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 $ac_includes_default
15436 #include <$ac_header>
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_c_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_header_compiler=yes
15461 else
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 ac_header_compiler=no
15466 fi
15467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15469 echo "${ECHO_T}$ac_header_compiler" >&6
15470
15471 # Is the header present?
15472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 #include <$ac_header>
15481 _ACEOF
15482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15484 ac_status=$?
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } >/dev/null; then
15490 if test -s conftest.err; then
15491 ac_cpp_err=$ac_c_preproc_warn_flag
15492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15493 else
15494 ac_cpp_err=
15495 fi
15496 else
15497 ac_cpp_err=yes
15498 fi
15499 if test -z "$ac_cpp_err"; then
15500 ac_header_preproc=yes
15501 else
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505 ac_header_preproc=no
15506 fi
15507 rm -f conftest.err conftest.$ac_ext
15508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15509 echo "${ECHO_T}$ac_header_preproc" >&6
15510
15511 # So? What about this header?
15512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15513 yes:no: )
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15518 ac_header_preproc=yes
15519 ;;
15520 no:yes:* )
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15533 (
15534 cat <<\_ASBOX
15535 ## ---------------------------------- ##
15536 ## Report this to the libjava lists. ##
15537 ## ---------------------------------- ##
15538 _ASBOX
15539 ) |
15540 sed "s/^/$as_me: WARNING: /" >&2
15541 ;;
15542 esac
15543 echo "$as_me:$LINENO: checking for $ac_header" >&5
15544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 else
15548 eval "$as_ac_Header=\$ac_header_preproc"
15549 fi
15550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15552
15553 fi
15554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15555 cat >>confdefs.h <<_ACEOF
15556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15557 _ACEOF
15558
15559 fi
15560
15561 done
15562
15563
15564 for ac_header in inttypes.h
15565 do
15566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15568 echo "$as_me:$LINENO: checking for $ac_header" >&5
15569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 fi
15573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15575 else
15576 # Is the header compilable?
15577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 $ac_includes_default
15586 #include <$ac_header>
15587 _ACEOF
15588 rm -f conftest.$ac_objext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15590 (eval $ac_compile) 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag"
15598 || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest.$ac_objext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_header_compiler=yes
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 ac_header_compiler=no
15616 fi
15617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15619 echo "${ECHO_T}$ac_header_compiler" >&6
15620
15621 # Is the header present?
15622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630 #include <$ac_header>
15631 _ACEOF
15632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } >/dev/null; then
15640 if test -s conftest.err; then
15641 ac_cpp_err=$ac_c_preproc_warn_flag
15642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15643 else
15644 ac_cpp_err=
15645 fi
15646 else
15647 ac_cpp_err=yes
15648 fi
15649 if test -z "$ac_cpp_err"; then
15650 ac_header_preproc=yes
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 ac_header_preproc=no
15656 fi
15657 rm -f conftest.err conftest.$ac_ext
15658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15659 echo "${ECHO_T}$ac_header_preproc" >&6
15660
15661 # So? What about this header?
15662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15663 yes:no: )
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15668 ac_header_preproc=yes
15669 ;;
15670 no:yes:* )
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15683 (
15684 cat <<\_ASBOX
15685 ## ---------------------------------- ##
15686 ## Report this to the libjava lists. ##
15687 ## ---------------------------------- ##
15688 _ASBOX
15689 ) |
15690 sed "s/^/$as_me: WARNING: /" >&2
15691 ;;
15692 esac
15693 echo "$as_me:$LINENO: checking for $ac_header" >&5
15694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698 eval "$as_ac_Header=\$ac_header_preproc"
15699 fi
15700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15702
15703 fi
15704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15705 cat >>confdefs.h <<_ACEOF
15706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15707 _ACEOF
15708
15709
15710 cat >>confdefs.h <<\_ACEOF
15711 #define HAVE_INTTYPES_H 1
15712 _ACEOF
15713
15714
15715 cat >>confdefs.h <<\_ACEOF
15716 #define JV_HAVE_INTTYPES_H 1
15717 _ACEOF
15718
15719
15720 fi
15721
15722 done
15723
15724 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15725 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15726 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h. */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735 #include <sys/types.h>
15736 #include <sys/wait.h>
15737 #ifndef WEXITSTATUS
15738 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15739 #endif
15740 #ifndef WIFEXITED
15741 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15742 #endif
15743
15744 int
15745 main ()
15746 {
15747 int s;
15748 wait (&s);
15749 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15750 ;
15751 return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15756 (eval $ac_compile) 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -z "$ac_c_werror_flag"
15764 || test ! -s conftest.err'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; } &&
15770 { ac_try='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_header_sys_wait_h=yes
15777 else
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 ac_cv_header_sys_wait_h=no
15782 fi
15783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15784 fi
15785 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15786 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15787 if test $ac_cv_header_sys_wait_h = yes; then
15788
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE_SYS_WAIT_H 1
15791 _ACEOF
15792
15793 fi
15794
15795
15796 echo "$as_me:$LINENO: checking for ssize_t" >&5
15797 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15798 if test "${ac_cv_type_ssize_t+set}" = set; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 else
15801 cat >conftest.$ac_ext <<_ACEOF
15802 /* confdefs.h. */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15807 $ac_includes_default
15808 int
15809 main ()
15810 {
15811 if ((ssize_t *) 0)
15812 return 0;
15813 if (sizeof (ssize_t))
15814 return 0;
15815 ;
15816 return 0;
15817 }
15818 _ACEOF
15819 rm -f conftest.$ac_objext
15820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15821 (eval $ac_compile) 2>conftest.er1
15822 ac_status=$?
15823 grep -v '^ *+' conftest.er1 >conftest.err
15824 rm -f conftest.er1
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } &&
15828 { ac_try='test -z "$ac_c_werror_flag"
15829 || test ! -s conftest.err'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; } &&
15835 { ac_try='test -s conftest.$ac_objext'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15841 ac_cv_type_ssize_t=yes
15842 else
15843 echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 ac_cv_type_ssize_t=no
15847 fi
15848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15849 fi
15850 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15851 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15852 if test $ac_cv_type_ssize_t = yes; then
15853 :
15854 else
15855
15856 cat >>confdefs.h <<_ACEOF
15857 #define ssize_t int
15858 _ACEOF
15859
15860 fi
15861
15862
15863 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15864 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15865 cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h. */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 #include <sys/types.h>
15872 #if STDC_HEADERS
15873 #include <stdlib.h>
15874 #include <stddef.h>
15875 #endif
15876 #if HAVE_NETINET_IN_H
15877 #include <netinet/in.h>
15878 #endif
15879 int
15880 main ()
15881 {
15882 in_addr_t foo;
15883 ;
15884 return 0;
15885 }
15886 _ACEOF
15887 rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>conftest.er1
15890 ac_status=$?
15891 grep -v '^ *+' conftest.er1 >conftest.err
15892 rm -f conftest.er1
15893 cat conftest.err >&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
15896 { ac_try='test -z "$ac_c_werror_flag"
15897 || test ! -s conftest.err'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; } &&
15903 { ac_try='test -s conftest.$ac_objext'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909
15910 cat >>confdefs.h <<\_ACEOF
15911 #define HAVE_IN_ADDR_T 1
15912 _ACEOF
15913
15914 echo "$as_me:$LINENO: result: yes" >&5
15915 echo "${ECHO_T}yes" >&6
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 echo "$as_me:$LINENO: result: no" >&5
15921 echo "${ECHO_T}no" >&6
15922 fi
15923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15924
15925 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15926 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h. */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 #include <netinet/in.h>
15934 int
15935 main ()
15936 {
15937 struct ip_mreq mreq;
15938 ;
15939 return 0;
15940 }
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944 (eval $ac_compile) 2>conftest.er1
15945 ac_status=$?
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964
15965 cat >>confdefs.h <<\_ACEOF
15966 #define HAVE_STRUCT_IP_MREQ 1
15967 _ACEOF
15968
15969 echo "$as_me:$LINENO: result: yes" >&5
15970 echo "${ECHO_T}yes" >&6
15971 else
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975 echo "$as_me:$LINENO: result: no" >&5
15976 echo "${ECHO_T}no" >&6
15977 fi
15978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15979
15980 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15981 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h. */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 #include <netinet/in.h>
15989 int
15990 main ()
15991 {
15992 struct ipv6_mreq mreq6;
15993 ;
15994 return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999 (eval $ac_compile) 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019
16020 cat >>confdefs.h <<\_ACEOF
16021 #define HAVE_STRUCT_IPV6_MREQ 1
16022 _ACEOF
16023
16024 echo "$as_me:$LINENO: result: yes" >&5
16025 echo "${ECHO_T}yes" >&6
16026 else
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16029
16030 echo "$as_me:$LINENO: result: no" >&5
16031 echo "${ECHO_T}no" >&6
16032 fi
16033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16034
16035 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
16036 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 #include <netinet/in.h>
16044 int
16045 main ()
16046 {
16047 struct sockaddr_in6 addr6;
16048 ;
16049 return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16054 (eval $ac_compile) 2>conftest.er1
16055 ac_status=$?
16056 grep -v '^ *+' conftest.er1 >conftest.err
16057 rm -f conftest.er1
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } &&
16061 { ac_try='test -z "$ac_c_werror_flag"
16062 || test ! -s conftest.err'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try='test -s conftest.$ac_objext'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074
16075 cat >>confdefs.h <<\_ACEOF
16076 #define HAVE_INET6 1
16077 _ACEOF
16078
16079 echo "$as_me:$LINENO: result: yes" >&5
16080 echo "${ECHO_T}yes" >&6
16081 else
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085 echo "$as_me:$LINENO: result: no" >&5
16086 echo "${ECHO_T}no" >&6
16087 fi
16088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16089
16090 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16091 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
16092 cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h. */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098 #define _POSIX_PII_SOCKET
16099 #include <sys/types.h>
16100 #include <sys/socket.h>
16101 int
16102 main ()
16103 {
16104 socklen_t x = 5;
16105 ;
16106 return 0;
16107 }
16108 _ACEOF
16109 rm -f conftest.$ac_objext
16110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16111 (eval $ac_compile) 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } &&
16118 { ac_try='test -z "$ac_c_werror_flag"
16119 || test ! -s conftest.err'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; } &&
16125 { ac_try='test -s conftest.$ac_objext'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131
16132 cat >>confdefs.h <<\_ACEOF
16133 #define HAVE_SOCKLEN_T 1
16134 _ACEOF
16135
16136 echo "$as_me:$LINENO: result: yes" >&5
16137 echo "${ECHO_T}yes" >&6
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16141
16142 echo "$as_me:$LINENO: result: no" >&5
16143 echo "${ECHO_T}no" >&6
16144 fi
16145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16146
16147 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16148 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h. */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 #include <time.h>
16156 int
16157 main ()
16158 {
16159 struct tm tim; tim.tm_gmtoff = 0;
16160 ;
16161 return 0;
16162 }
16163 _ACEOF
16164 rm -f conftest.$ac_objext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166 (eval $ac_compile) 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -z "$ac_c_werror_flag"
16174 || test ! -s conftest.err'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest.$ac_objext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186
16187 cat >>confdefs.h <<\_ACEOF
16188 #define STRUCT_TM_HAS_GMTOFF 1
16189 _ACEOF
16190
16191 echo "$as_me:$LINENO: result: yes" >&5
16192 echo "${ECHO_T}yes" >&6
16193 else
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16196
16197 echo "$as_me:$LINENO: result: no" >&5
16198 echo "${ECHO_T}no" >&6
16199 echo "$as_me:$LINENO: checking for global timezone variable" >&5
16200 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h. */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 #include <time.h>
16208 int
16209 main ()
16210 {
16211 void i(){long z2 = 2*timezone;}
16212 ;
16213 return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext
16217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16218 (eval $ac_compile) 2>conftest.er1
16219 ac_status=$?
16220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try='test -z "$ac_c_werror_flag"
16226 || test ! -s conftest.err'
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest.$ac_objext'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238
16239 cat >>confdefs.h <<\_ACEOF
16240 #define HAVE_TIMEZONE 1
16241 _ACEOF
16242
16243 echo "$as_me:$LINENO: result: yes" >&5
16244 echo "${ECHO_T}yes" >&6
16245 else
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249 echo "$as_me:$LINENO: result: no" >&5
16250 echo "${ECHO_T}no" >&6
16251 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16252 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <time.h>
16260 int
16261 main ()
16262 {
16263 long z2 = _timezone;
16264 ;
16265 return 0;
16266 }
16267 _ACEOF
16268 rm -f conftest.$ac_objext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16270 (eval $ac_compile) 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_objext'
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
16291 cat >>confdefs.h <<\_ACEOF
16292 #define HAVE_UNDERSCORE_TIMEZONE 1
16293 _ACEOF
16294
16295 echo "$as_me:$LINENO: result: yes" >&5
16296 echo "${ECHO_T}yes" >&6
16297 else
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301 echo "$as_me:$LINENO: result: no" >&5
16302 echo "${ECHO_T}no" >&6
16303 fi
16304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16305 fi
16306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16307 fi
16308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16309
16310 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16311 # for constant arguments. Useless!
16312 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16313 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16314 if test "${ac_cv_working_alloca_h+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317 if test x$gcc_no_link = xyes; then
16318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16320 { (exit 1); exit 1; }; }
16321 fi
16322 cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h. */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 #include <alloca.h>
16329 int
16330 main ()
16331 {
16332 char *p = (char *) alloca (2 * sizeof (int));
16333 ;
16334 return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag"
16347 || test ! -s conftest.err'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359 ac_cv_working_alloca_h=yes
16360 else
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16363
16364 ac_cv_working_alloca_h=no
16365 fi
16366 rm -f conftest.err conftest.$ac_objext \
16367 conftest$ac_exeext conftest.$ac_ext
16368 fi
16369 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16370 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16371 if test $ac_cv_working_alloca_h = yes; then
16372
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_ALLOCA_H 1
16375 _ACEOF
16376
16377 fi
16378
16379 echo "$as_me:$LINENO: checking for alloca" >&5
16380 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16381 if test "${ac_cv_func_alloca_works+set}" = set; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 else
16384 if test x$gcc_no_link = xyes; then
16385 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16386 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16387 { (exit 1); exit 1; }; }
16388 fi
16389 cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h. */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 #ifdef __GNUC__
16396 # define alloca __builtin_alloca
16397 #else
16398 # ifdef _MSC_VER
16399 # include <malloc.h>
16400 # define alloca _alloca
16401 # else
16402 # if HAVE_ALLOCA_H
16403 # include <alloca.h>
16404 # else
16405 # ifdef _AIX
16406 #pragma alloca
16407 # else
16408 # ifndef alloca /* predefined by HP cc +Olibcalls */
16409 char *alloca ();
16410 # endif
16411 # endif
16412 # endif
16413 # endif
16414 #endif
16415
16416 int
16417 main ()
16418 {
16419 char *p = (char *) alloca (1);
16420 ;
16421 return 0;
16422 }
16423 _ACEOF
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16426 (eval $ac_link) 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -z "$ac_c_werror_flag"
16434 || test ! -s conftest.err'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest$ac_exeext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_func_alloca_works=yes
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 ac_cv_func_alloca_works=no
16452 fi
16453 rm -f conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16455 fi
16456 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16457 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16458
16459 if test $ac_cv_func_alloca_works = yes; then
16460
16461 cat >>confdefs.h <<\_ACEOF
16462 #define HAVE_ALLOCA 1
16463 _ACEOF
16464
16465 else
16466 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16467 # that cause trouble. Some versions do not even contain alloca or
16468 # contain a buggy version. If you still want to use their alloca,
16469 # use ar to extract alloca.o from them instead of compiling alloca.c.
16470
16471 ALLOCA=alloca.$ac_objext
16472
16473 cat >>confdefs.h <<\_ACEOF
16474 #define C_ALLOCA 1
16475 _ACEOF
16476
16477
16478 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16479 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16480 if test "${ac_cv_os_cray+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h. */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #if defined(CRAY) && ! defined(CRAY2)
16490 webecray
16491 #else
16492 wenotbecray
16493 #endif
16494
16495 _ACEOF
16496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16497 $EGREP "webecray" >/dev/null 2>&1; then
16498 ac_cv_os_cray=yes
16499 else
16500 ac_cv_os_cray=no
16501 fi
16502 rm -f conftest*
16503
16504 fi
16505 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16506 echo "${ECHO_T}$ac_cv_os_cray" >&6
16507 if test $ac_cv_os_cray = yes; then
16508 for ac_func in _getb67 GETB67 getb67; do
16509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16510 echo "$as_me:$LINENO: checking for $ac_func" >&5
16511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16512 if eval "test \"\${$as_ac_var+set}\" = set"; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515 if test x$gcc_no_link = xyes; then
16516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16518 { (exit 1); exit 1; }; }
16519 fi
16520 cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h. */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16528 #define $ac_func innocuous_$ac_func
16529
16530 /* System header to define __stub macros and hopefully few prototypes,
16531 which can conflict with char $ac_func (); below.
16532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16533 <limits.h> exists even on freestanding compilers. */
16534
16535 #ifdef __STDC__
16536 # include <limits.h>
16537 #else
16538 # include <assert.h>
16539 #endif
16540
16541 #undef $ac_func
16542
16543 /* Override any gcc2 internal prototype to avoid an error. */
16544 #ifdef __cplusplus
16545 extern "C"
16546 {
16547 #endif
16548 /* We use char because int might match the return type of a gcc2
16549 builtin and then its argument prototype would still apply. */
16550 char $ac_func ();
16551 /* The GNU C library defines this for functions which it implements
16552 to always fail with ENOSYS. Some functions are actually named
16553 something starting with __ and the normal name is an alias. */
16554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16555 choke me
16556 #else
16557 char (*f) () = $ac_func;
16558 #endif
16559 #ifdef __cplusplus
16560 }
16561 #endif
16562
16563 int
16564 main ()
16565 {
16566 return f != $ac_func;
16567 ;
16568 return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag"
16581 || test ! -s conftest.err'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest$ac_exeext'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 eval "$as_ac_var=yes"
16594 else
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16597
16598 eval "$as_ac_var=no"
16599 fi
16600 rm -f conftest.err conftest.$ac_objext \
16601 conftest$ac_exeext conftest.$ac_ext
16602 fi
16603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16605 if test `eval echo '${'$as_ac_var'}'` = yes; then
16606
16607 cat >>confdefs.h <<_ACEOF
16608 #define CRAY_STACKSEG_END $ac_func
16609 _ACEOF
16610
16611 break
16612 fi
16613
16614 done
16615 fi
16616
16617 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16618 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16619 if test "${ac_cv_c_stack_direction+set}" = set; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16621 else
16622 if test "$cross_compiling" = yes; then
16623 ac_cv_c_stack_direction=0
16624 else
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h. */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 int
16632 find_stack_direction ()
16633 {
16634 static char *addr = 0;
16635 auto char dummy;
16636 if (addr == 0)
16637 {
16638 addr = &dummy;
16639 return find_stack_direction ();
16640 }
16641 else
16642 return (&dummy > addr) ? 1 : -1;
16643 }
16644
16645 int
16646 main ()
16647 {
16648 exit (find_stack_direction () < 0);
16649 }
16650 _ACEOF
16651 rm -f conftest$ac_exeext
16652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16653 (eval $ac_link) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_cv_c_stack_direction=1
16663 else
16664 echo "$as_me: program exited with status $ac_status" >&5
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16667
16668 ( exit $ac_status )
16669 ac_cv_c_stack_direction=-1
16670 fi
16671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16672 fi
16673 fi
16674 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16675 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16676
16677 cat >>confdefs.h <<_ACEOF
16678 #define STACK_DIRECTION $ac_cv_c_stack_direction
16679 _ACEOF
16680
16681
16682 fi
16683
16684
16685 for ac_prog in perl
16686 do
16687 # Extract the first word of "$ac_prog", so it can be a program name with args.
16688 set dummy $ac_prog; ac_word=$2
16689 echo "$as_me:$LINENO: checking for $ac_word" >&5
16690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16691 if test "${ac_cv_prog_PERL+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694 if test -n "$PERL"; then
16695 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16696 else
16697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16698 for as_dir in $PATH
16699 do
16700 IFS=$as_save_IFS
16701 test -z "$as_dir" && as_dir=.
16702 for ac_exec_ext in '' $ac_executable_extensions; do
16703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16704 ac_cv_prog_PERL="$ac_prog"
16705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16706 break 2
16707 fi
16708 done
16709 done
16710
16711 fi
16712 fi
16713 PERL=$ac_cv_prog_PERL
16714 if test -n "$PERL"; then
16715 echo "$as_me:$LINENO: result: $PERL" >&5
16716 echo "${ECHO_T}$PERL" >&6
16717 else
16718 echo "$as_me:$LINENO: result: no" >&5
16719 echo "${ECHO_T}no" >&6
16720 fi
16721
16722 test -n "$PERL" && break
16723 done
16724 test -n "$PERL" || PERL="false"
16725
16726
16727 SYSDEP_SOURCES=
16728 SIGNAL_HANDLER_AUX=
16729
16730 case "${host}" in
16731 i?86-*-linux*)
16732 SIGNAL_HANDLER=include/i386-signal.h
16733 ;;
16734 sparc*-sun-solaris*)
16735 SIGNAL_HANDLER=include/sparc-signal.h
16736 ;;
16737 # ia64-*)
16738 # SYSDEP_SOURCES=sysdep/ia64.c
16739 # test -d sysdep || mkdir sysdep
16740 # ;;
16741 hppa*-*-linux*)
16742 SIGNAL_HANDLER=include/pa-signal.h
16743 ;;
16744 hppa*-hp-hpux*)
16745 SIGNAL_HANDLER=include/hppa-signal.h
16746 ;;
16747 ia64-*-linux*)
16748 SIGNAL_HANDLER=include/dwarf2-signal.h
16749 ;;
16750 powerpc*-*-linux*)
16751 SIGNAL_HANDLER=include/powerpc-signal.h
16752 ;;
16753 alpha*-*-linux*)
16754 SIGNAL_HANDLER=include/dwarf2-signal.h
16755 ;;
16756 s390*-*-linux*)
16757 SIGNAL_HANDLER=include/s390-signal.h
16758 ;;
16759 x86_64*-*-linux*)
16760 SIGNAL_HANDLER=include/x86_64-signal.h
16761 SIGNAL_HANDLER_AUX=include/i386-signal.h
16762 ;;
16763 sparc*-*-linux*)
16764 SIGNAL_HANDLER=include/dwarf2-signal.h
16765 ;;
16766 sh*-*-linux*)
16767 SIGNAL_HANDLER=include/sh-signal.h
16768 ;;
16769 *mingw*)
16770 SIGNAL_HANDLER=include/win32-signal.h
16771 ;;
16772 mips*-*-linux*)
16773 SIGNAL_HANDLER=include/mips-signal.h
16774 ;;
16775 powerpc*-*-darwin*)
16776 SIGNAL_HANDLER=include/darwin-signal.h
16777 ;;
16778 *)
16779 SIGNAL_HANDLER=include/default-signal.h
16780 ;;
16781 esac
16782
16783 # If we're using sjlj exceptions, forget what we just learned.
16784 if test "$enable_sjlj_exceptions" = yes; then
16785 SIGNAL_HANDLER=include/default-signal.h
16786 SIGNAL_HANDLER_AUX=
16787 fi
16788
16789
16790
16791 if test -z "$SIGNAL_HANDLER_AUX"; then
16792 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16793 fi
16794
16795 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16796
16797
16798 if test "${multilib}" = "yes"; then
16799 multilib_arg="--enable-multilib"
16800 else
16801 multilib_arg=
16802 fi
16803
16804 # See if we support thread-local storage.
16805
16806 # Check whether --enable-tls or --disable-tls was given.
16807 if test "${enable_tls+set}" = set; then
16808 enableval="$enable_tls"
16809
16810 case "$enableval" in
16811 yes|no) ;;
16812 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16813 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16814 { (exit 1); exit 1; }; } ;;
16815 esac
16816
16817 else
16818 enable_tls=yes
16819 fi;
16820
16821 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16822 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16823 if test "${have_tls+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826
16827 if test "$cross_compiling" = yes; then
16828 if test x$gcc_no_link = xyes; then
16829 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16830 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16831 { (exit 1); exit 1; }; }
16832 fi
16833 cat >conftest.$ac_ext <<_ACEOF
16834 __thread int a; int b; int main() { return a = b; }
16835 _ACEOF
16836 rm -f conftest.$ac_objext conftest$ac_exeext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16838 (eval $ac_link) 2>conftest.er1
16839 ac_status=$?
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -z "$ac_c_werror_flag"
16846 || test ! -s conftest.err'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest$ac_exeext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 have_tls=yes
16859 else
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 have_tls=no
16864 fi
16865 rm -f conftest.err conftest.$ac_objext \
16866 conftest$ac_exeext conftest.$ac_ext
16867
16868 else
16869 cat >conftest.$ac_ext <<_ACEOF
16870 __thread int a; int b; int main() { return a = b; }
16871 _ACEOF
16872 rm -f conftest$ac_exeext
16873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16874 (eval $ac_link) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 save_LDFLAGS="$LDFLAGS"
16884 LDFLAGS="-static $LDFLAGS"
16885 if test x$gcc_no_link = xyes; then
16886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16888 { (exit 1); exit 1; }; }
16889 fi
16890 cat >conftest.$ac_ext <<_ACEOF
16891 int main() { return 0; }
16892 _ACEOF
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16895 (eval $ac_link) 2>conftest.er1
16896 ac_status=$?
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag"
16903 || test ! -s conftest.err'
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest$ac_exeext'
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16915 if test "$cross_compiling" = yes; then
16916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16917 See \`config.log' for more details." >&5
16918 echo "$as_me: error: cannot run test program while cross compiling
16919 See \`config.log' for more details." >&2;}
16920 { (exit 1); exit 1; }; }
16921 else
16922 cat >conftest.$ac_ext <<_ACEOF
16923 __thread int a; int b; int main() { return a = b; }
16924 _ACEOF
16925 rm -f conftest$ac_exeext
16926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16927 (eval $ac_link) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 have_tls=yes
16937 else
16938 echo "$as_me: program exited with status $ac_status" >&5
16939 echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.$ac_ext >&5
16941
16942 ( exit $ac_status )
16943 have_tls=no
16944 fi
16945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16946 fi
16947 else
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 have_tls=yes
16952 fi
16953 rm -f conftest.err conftest.$ac_objext \
16954 conftest$ac_exeext conftest.$ac_ext
16955 LDFLAGS="$save_LDFLAGS"
16956 else
16957 echo "$as_me: program exited with status $ac_status" >&5
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961 ( exit $ac_status )
16962 have_tls=no
16963 fi
16964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16965 fi
16966 fi
16967 echo "$as_me:$LINENO: result: $have_tls" >&5
16968 echo "${ECHO_T}$have_tls" >&6
16969 if test "$enable_tls $have_tls" = "yes yes"; then
16970
16971 cat >>confdefs.h <<\_ACEOF
16972 #define HAVE_TLS 1
16973 _ACEOF
16974
16975 fi
16976
16977 # For _Unwind_GetIPInfo.
16978
16979
16980
16981 ac_ext=cc
16982 ac_cpp='$CXXCPP $CPPFLAGS'
16983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16986
16987 ac_save_CXXFLAGS="$CXXFLAGS"
16988 CXXFLAGS="$CXXFLAGS -fno-exceptions"
16989 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16990 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16991 if test "${gcc_cv_getipinfo+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994
16995 if test x$gcc_no_link = xyes; then
16996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16998 { (exit 1); exit 1; }; }
16999 fi
17000 cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h. */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006 extern "C" { extern void _Unwind_GetIPInfo(); }
17007 int
17008 main ()
17009 {
17010 _Unwind_GetIPInfo();
17011 ;
17012 return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17017 (eval $ac_link) 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_cxx_werror_flag"
17025 || test ! -s conftest.err'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest$ac_exeext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 gcc_cv_getipinfo=yes
17038 else
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042 gcc_cv_getipinfo=no
17043 fi
17044 rm -f conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17046
17047 fi
17048
17049 if test $gcc_cv_getipinfo = yes; then
17050
17051 cat >>confdefs.h <<\_ACEOF
17052 #define HAVE_GETIPINFO 1
17053 _ACEOF
17054
17055 fi
17056 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
17057 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
17058 CXXFLAGS="$ac_save_CXXFLAGS"
17059 ac_ext=c
17060 ac_cpp='$CPP $CPPFLAGS'
17061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17064
17065
17066
17067 # Check if linker supports static linking on a per library basis
17068 LD_START_STATIC_SPEC=
17069 LD_FINISH_STATIC_SPEC=
17070 if $LD --help 2>&1 | grep -q -e -call_shared ; then
17071 if $LD --help 2>&1 | grep -q -e -non_shared ; then
17072 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
17073 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
17074 fi
17075 fi
17076
17077
17078
17079 here=`${PWDCMD-pwd}`
17080
17081
17082 # We get this from the environment.
17083
17084
17085 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17086
17087
17088 ac_config_files="$ac_config_files scripts/jar"
17089
17090
17091 ac_config_commands="$ac_config_commands default"
17092
17093
17094 cat >confcache <<\_ACEOF
17095 # This file is a shell script that caches the results of configure
17096 # tests run on this system so they can be shared between configure
17097 # scripts and configure runs, see configure's option --config-cache.
17098 # It is not useful on other systems. If it contains results you don't
17099 # want to keep, you may remove or edit it.
17100 #
17101 # config.status only pays attention to the cache file if you give it
17102 # the --recheck option to rerun configure.
17103 #
17104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17106 # following values.
17107
17108 _ACEOF
17109
17110 # The following way of writing the cache mishandles newlines in values,
17111 # but we know of no workaround that is simple, portable, and efficient.
17112 # So, don't put newlines in cache variables' values.
17113 # Ultrix sh set writes to stderr and can't be redirected directly,
17114 # and sets the high bit in the cache file unless we assign to the vars.
17115 {
17116 (set) 2>&1 |
17117 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17118 *ac_space=\ *)
17119 # `set' does not quote correctly, so add quotes (double-quote
17120 # substitution turns \\\\ into \\, and sed turns \\ into \).
17121 sed -n \
17122 "s/'/'\\\\''/g;
17123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17124 ;;
17125 *)
17126 # `set' quotes correctly as required by POSIX, so do not add quotes.
17127 sed -n \
17128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17129 ;;
17130 esac;
17131 } |
17132 sed '
17133 t clear
17134 : clear
17135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17136 t end
17137 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17138 : end' >>confcache
17139 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17140 if test -w $cache_file; then
17141 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17142 cat confcache >$cache_file
17143 else
17144 echo "not updating unwritable cache $cache_file"
17145 fi
17146 fi
17147 rm -f confcache
17148
17149 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17150 # Let make expand exec_prefix.
17151 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17152
17153 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17154 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17155 # trailing colons and then remove the whole line if VPATH becomes empty
17156 # (actually we leave an empty line to preserve line numbers).
17157 if test "x$srcdir" = x.; then
17158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17159 s/:*\$(srcdir):*/:/;
17160 s/:*\${srcdir}:*/:/;
17161 s/:*@srcdir@:*/:/;
17162 s/^\([^=]*=[ ]*\):*/\1/;
17163 s/:*$//;
17164 s/^[^=]*=[ ]*$//;
17165 }'
17166 fi
17167
17168 DEFS=-DHAVE_CONFIG_H
17169
17170 ac_libobjs=
17171 ac_ltlibobjs=
17172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17173 # 1. Remove the extension, and $U if already installed.
17174 ac_i=`echo "$ac_i" |
17175 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17176 # 2. Add them.
17177 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17178 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17179 done
17180 LIBOBJS=$ac_libobjs
17181
17182 LTLIBOBJS=$ac_ltlibobjs
17183
17184
17185 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17186 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17187 Usually this means the macro was only invoked conditionally." >&5
17188 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17189 Usually this means the macro was only invoked conditionally." >&2;}
17190 { (exit 1); exit 1; }; }
17191 fi
17192 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17193 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17194 Usually this means the macro was only invoked conditionally." >&5
17195 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17196 Usually this means the macro was only invoked conditionally." >&2;}
17197 { (exit 1); exit 1; }; }
17198 fi
17199 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17200 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17201 Usually this means the macro was only invoked conditionally." >&5
17202 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17203 Usually this means the macro was only invoked conditionally." >&2;}
17204 { (exit 1); exit 1; }; }
17205 fi
17206 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17207 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17208 Usually this means the macro was only invoked conditionally." >&5
17209 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17210 Usually this means the macro was only invoked conditionally." >&2;}
17211 { (exit 1); exit 1; }; }
17212 fi
17213 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
17214 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
17215 Usually this means the macro was only invoked conditionally." >&5
17216 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
17217 Usually this means the macro was only invoked conditionally." >&2;}
17218 { (exit 1); exit 1; }; }
17219 fi
17220 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17221 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17222 Usually this means the macro was only invoked conditionally." >&5
17223 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17224 Usually this means the macro was only invoked conditionally." >&2;}
17225 { (exit 1); exit 1; }; }
17226 fi
17227 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17228 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17229 Usually this means the macro was only invoked conditionally." >&5
17230 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17231 Usually this means the macro was only invoked conditionally." >&2;}
17232 { (exit 1); exit 1; }; }
17233 fi
17234 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17235 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17236 Usually this means the macro was only invoked conditionally." >&5
17237 echo "$as_me: error: conditional \"X_AWT\" was never defined.
17238 Usually this means the macro was only invoked conditionally." >&2;}
17239 { (exit 1); exit 1; }; }
17240 fi
17241 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17242 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17243 Usually this means the macro was only invoked conditionally." >&5
17244 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17245 Usually this means the macro was only invoked conditionally." >&2;}
17246 { (exit 1); exit 1; }; }
17247 fi
17248 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17249 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17250 Usually this means the macro was only invoked conditionally." >&5
17251 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17252 Usually this means the macro was only invoked conditionally." >&2;}
17253 { (exit 1); exit 1; }; }
17254 fi
17255 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17256 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17257 Usually this means the macro was only invoked conditionally." >&5
17258 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
17259 Usually this means the macro was only invoked conditionally." >&2;}
17260 { (exit 1); exit 1; }; }
17261 fi
17262 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17263 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17264 Usually this means the macro was only invoked conditionally." >&5
17265 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17266 Usually this means the macro was only invoked conditionally." >&2;}
17267 { (exit 1); exit 1; }; }
17268 fi
17269 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17270 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17271 Usually this means the macro was only invoked conditionally." >&5
17272 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17273 Usually this means the macro was only invoked conditionally." >&2;}
17274 { (exit 1); exit 1; }; }
17275 fi
17276 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17277 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17278 Usually this means the macro was only invoked conditionally." >&5
17279 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17280 Usually this means the macro was only invoked conditionally." >&2;}
17281 { (exit 1); exit 1; }; }
17282 fi
17283 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17284 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17285 Usually this means the macro was only invoked conditionally." >&5
17286 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17287 Usually this means the macro was only invoked conditionally." >&2;}
17288 { (exit 1); exit 1; }; }
17289 fi
17290 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17291 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17292 Usually this means the macro was only invoked conditionally." >&5
17293 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17294 Usually this means the macro was only invoked conditionally." >&2;}
17295 { (exit 1); exit 1; }; }
17296 fi
17297 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17298 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17299 Usually this means the macro was only invoked conditionally." >&5
17300 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17301 Usually this means the macro was only invoked conditionally." >&2;}
17302 { (exit 1); exit 1; }; }
17303 fi
17304 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17305 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17306 Usually this means the macro was only invoked conditionally." >&5
17307 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17308 Usually this means the macro was only invoked conditionally." >&2;}
17309 { (exit 1); exit 1; }; }
17310 fi
17311 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17312 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17313 Usually this means the macro was only invoked conditionally." >&5
17314 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17315 Usually this means the macro was only invoked conditionally." >&2;}
17316 { (exit 1); exit 1; }; }
17317 fi
17318 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17319 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17320 Usually this means the macro was only invoked conditionally." >&5
17321 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17322 Usually this means the macro was only invoked conditionally." >&2;}
17323 { (exit 1); exit 1; }; }
17324 fi
17325 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17326 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17327 Usually this means the macro was only invoked conditionally." >&5
17328 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17329 Usually this means the macro was only invoked conditionally." >&2;}
17330 { (exit 1); exit 1; }; }
17331 fi
17332 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17333 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17334 Usually this means the macro was only invoked conditionally." >&5
17335 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17336 Usually this means the macro was only invoked conditionally." >&2;}
17337 { (exit 1); exit 1; }; }
17338 fi
17339 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17340 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17341 Usually this means the macro was only invoked conditionally." >&5
17342 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17343 Usually this means the macro was only invoked conditionally." >&2;}
17344 { (exit 1); exit 1; }; }
17345 fi
17346 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17347 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17348 Usually this means the macro was only invoked conditionally." >&5
17349 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17350 Usually this means the macro was only invoked conditionally." >&2;}
17351 { (exit 1); exit 1; }; }
17352 fi
17353 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17354 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17355 Usually this means the macro was only invoked conditionally." >&5
17356 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17357 Usually this means the macro was only invoked conditionally." >&2;}
17358 { (exit 1); exit 1; }; }
17359 fi
17360 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17361 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17362 Usually this means the macro was only invoked conditionally." >&5
17363 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17364 Usually this means the macro was only invoked conditionally." >&2;}
17365 { (exit 1); exit 1; }; }
17366 fi
17367
17368 : ${CONFIG_STATUS=./config.status}
17369 ac_clean_files_save=$ac_clean_files
17370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17373 cat >$CONFIG_STATUS <<_ACEOF
17374 #! $SHELL
17375 # Generated by $as_me.
17376 # Run this file to recreate the current configuration.
17377 # Compiler output produced by configure, useful for debugging
17378 # configure, is in config.log if it exists.
17379
17380 debug=false
17381 ac_cs_recheck=false
17382 ac_cs_silent=false
17383 SHELL=\${CONFIG_SHELL-$SHELL}
17384 _ACEOF
17385
17386 cat >>$CONFIG_STATUS <<\_ACEOF
17387 ## --------------------- ##
17388 ## M4sh Initialization. ##
17389 ## --------------------- ##
17390
17391 # Be Bourne compatible
17392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17393 emulate sh
17394 NULLCMD=:
17395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17396 # is contrary to our usage. Disable this feature.
17397 alias -g '${1+"$@"}'='"$@"'
17398 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17399 set -o posix
17400 fi
17401 DUALCASE=1; export DUALCASE # for MKS sh
17402
17403 # Support unset when possible.
17404 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17405 as_unset=unset
17406 else
17407 as_unset=false
17408 fi
17409
17410
17411 # Work around bugs in pre-3.0 UWIN ksh.
17412 $as_unset ENV MAIL MAILPATH
17413 PS1='$ '
17414 PS2='> '
17415 PS4='+ '
17416
17417 # NLS nuisances.
17418 for as_var in \
17419 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17420 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17421 LC_TELEPHONE LC_TIME
17422 do
17423 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17424 eval $as_var=C; export $as_var
17425 else
17426 $as_unset $as_var
17427 fi
17428 done
17429
17430 # Required to use basename.
17431 if expr a : '\(a\)' >/dev/null 2>&1; then
17432 as_expr=expr
17433 else
17434 as_expr=false
17435 fi
17436
17437 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17438 as_basename=basename
17439 else
17440 as_basename=false
17441 fi
17442
17443
17444 # Name of the executable.
17445 as_me=`$as_basename "$0" ||
17446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17447 X"$0" : 'X\(//\)$' \| \
17448 X"$0" : 'X\(/\)$' \| \
17449 . : '\(.\)' 2>/dev/null ||
17450 echo X/"$0" |
17451 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17452 /^X\/\(\/\/\)$/{ s//\1/; q; }
17453 /^X\/\(\/\).*/{ s//\1/; q; }
17454 s/.*/./; q'`
17455
17456
17457 # PATH needs CR, and LINENO needs CR and PATH.
17458 # Avoid depending upon Character Ranges.
17459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17462 as_cr_digits='0123456789'
17463 as_cr_alnum=$as_cr_Letters$as_cr_digits
17464
17465 # The user is always right.
17466 if test "${PATH_SEPARATOR+set}" != set; then
17467 echo "#! /bin/sh" >conf$$.sh
17468 echo "exit 0" >>conf$$.sh
17469 chmod +x conf$$.sh
17470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17471 PATH_SEPARATOR=';'
17472 else
17473 PATH_SEPARATOR=:
17474 fi
17475 rm -f conf$$.sh
17476 fi
17477
17478
17479 as_lineno_1=$LINENO
17480 as_lineno_2=$LINENO
17481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17482 test "x$as_lineno_1" != "x$as_lineno_2" &&
17483 test "x$as_lineno_3" = "x$as_lineno_2" || {
17484 # Find who we are. Look in the path if we contain no path at all
17485 # relative or not.
17486 case $0 in
17487 *[\\/]* ) as_myself=$0 ;;
17488 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17489 for as_dir in $PATH
17490 do
17491 IFS=$as_save_IFS
17492 test -z "$as_dir" && as_dir=.
17493 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17494 done
17495
17496 ;;
17497 esac
17498 # We did not find ourselves, most probably we were run as `sh COMMAND'
17499 # in which case we are not to be found in the path.
17500 if test "x$as_myself" = x; then
17501 as_myself=$0
17502 fi
17503 if test ! -f "$as_myself"; then
17504 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17505 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17506 { (exit 1); exit 1; }; }
17507 fi
17508 case $CONFIG_SHELL in
17509 '')
17510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17511 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17512 do
17513 IFS=$as_save_IFS
17514 test -z "$as_dir" && as_dir=.
17515 for as_base in sh bash ksh sh5; do
17516 case $as_dir in
17517 /*)
17518 if ("$as_dir/$as_base" -c '
17519 as_lineno_1=$LINENO
17520 as_lineno_2=$LINENO
17521 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17522 test "x$as_lineno_1" != "x$as_lineno_2" &&
17523 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17524 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17525 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17526 CONFIG_SHELL=$as_dir/$as_base
17527 export CONFIG_SHELL
17528 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17529 fi;;
17530 esac
17531 done
17532 done
17533 ;;
17534 esac
17535
17536 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17537 # uniformly replaced by the line number. The first 'sed' inserts a
17538 # line-number line before each line; the second 'sed' does the real
17539 # work. The second script uses 'N' to pair each line-number line
17540 # with the numbered line, and appends trailing '-' during
17541 # substitution so that $LINENO is not a special case at line end.
17542 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17543 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17544 sed '=' <$as_myself |
17545 sed '
17546 N
17547 s,$,-,
17548 : loop
17549 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17550 t loop
17551 s,-$,,
17552 s,^['$as_cr_digits']*\n,,
17553 ' >$as_me.lineno &&
17554 chmod +x $as_me.lineno ||
17555 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17556 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17557 { (exit 1); exit 1; }; }
17558
17559 # Don't try to exec as it changes $[0], causing all sort of problems
17560 # (the dirname of $[0] is not the place where we might find the
17561 # original and so on. Autoconf is especially sensible to this).
17562 . ./$as_me.lineno
17563 # Exit status is that of the last command.
17564 exit
17565 }
17566
17567
17568 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17569 *c*,-n*) ECHO_N= ECHO_C='
17570 ' ECHO_T=' ' ;;
17571 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17572 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17573 esac
17574
17575 if expr a : '\(a\)' >/dev/null 2>&1; then
17576 as_expr=expr
17577 else
17578 as_expr=false
17579 fi
17580
17581 rm -f conf$$ conf$$.exe conf$$.file
17582 echo >conf$$.file
17583 if ln -s conf$$.file conf$$ 2>/dev/null; then
17584 # We could just check for DJGPP; but this test a) works b) is more generic
17585 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17586 if test -f conf$$.exe; then
17587 # Don't use ln at all; we don't have any links
17588 as_ln_s='cp -p'
17589 else
17590 as_ln_s='ln -s'
17591 fi
17592 elif ln conf$$.file conf$$ 2>/dev/null; then
17593 as_ln_s=ln
17594 else
17595 as_ln_s='cp -p'
17596 fi
17597 rm -f conf$$ conf$$.exe conf$$.file
17598
17599 if mkdir -p . 2>/dev/null; then
17600 as_mkdir_p=:
17601 else
17602 test -d ./-p && rmdir ./-p
17603 as_mkdir_p=false
17604 fi
17605
17606 as_executable_p="test -f"
17607
17608 # Sed expression to map a string onto a valid CPP name.
17609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17610
17611 # Sed expression to map a string onto a valid variable name.
17612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17613
17614
17615 # IFS
17616 # We need space, tab and new line, in precisely that order.
17617 as_nl='
17618 '
17619 IFS=" $as_nl"
17620
17621 # CDPATH.
17622 $as_unset CDPATH
17623
17624 exec 6>&1
17625
17626 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17627 # report actual input values of CONFIG_FILES etc. instead of their
17628 # values after options handling. Logging --version etc. is OK.
17629 exec 5>>config.log
17630 {
17631 echo
17632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17633 ## Running $as_me. ##
17634 _ASBOX
17635 } >&5
17636 cat >&5 <<_CSEOF
17637
17638 This file was extended by libjava $as_me version-unused, which was
17639 generated by GNU Autoconf 2.59. Invocation command line was
17640
17641 CONFIG_FILES = $CONFIG_FILES
17642 CONFIG_HEADERS = $CONFIG_HEADERS
17643 CONFIG_LINKS = $CONFIG_LINKS
17644 CONFIG_COMMANDS = $CONFIG_COMMANDS
17645 $ $0 $@
17646
17647 _CSEOF
17648 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17649 echo >&5
17650 _ACEOF
17651
17652 # Files that config.status was made for.
17653 if test -n "$ac_config_files"; then
17654 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17655 fi
17656
17657 if test -n "$ac_config_headers"; then
17658 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17659 fi
17660
17661 if test -n "$ac_config_links"; then
17662 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17663 fi
17664
17665 if test -n "$ac_config_commands"; then
17666 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17667 fi
17668
17669 cat >>$CONFIG_STATUS <<\_ACEOF
17670
17671 ac_cs_usage="\
17672 \`$as_me' instantiates files from templates according to the
17673 current configuration.
17674
17675 Usage: $0 [OPTIONS] [FILE]...
17676
17677 -h, --help print this help, then exit
17678 -V, --version print version number, then exit
17679 -q, --quiet do not print progress messages
17680 -d, --debug don't remove temporary files
17681 --recheck update $as_me by reconfiguring in the same conditions
17682 --file=FILE[:TEMPLATE]
17683 instantiate the configuration file FILE
17684 --header=FILE[:TEMPLATE]
17685 instantiate the configuration header FILE
17686
17687 Configuration files:
17688 $config_files
17689
17690 Configuration headers:
17691 $config_headers
17692
17693 Configuration links:
17694 $config_links
17695
17696 Configuration commands:
17697 $config_commands
17698
17699 Report bugs to <bug-autoconf@gnu.org>."
17700 _ACEOF
17701
17702 cat >>$CONFIG_STATUS <<_ACEOF
17703 ac_cs_version="\\
17704 libjava config.status version-unused
17705 configured by $0, generated by GNU Autoconf 2.59,
17706 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17707
17708 Copyright (C) 2003 Free Software Foundation, Inc.
17709 This config.status script is free software; the Free Software Foundation
17710 gives unlimited permission to copy, distribute and modify it."
17711 srcdir=$srcdir
17712 INSTALL="$INSTALL"
17713 _ACEOF
17714
17715 cat >>$CONFIG_STATUS <<\_ACEOF
17716 # If no file are specified by the user, then we need to provide default
17717 # value. By we need to know if files were specified by the user.
17718 ac_need_defaults=:
17719 while test $# != 0
17720 do
17721 case $1 in
17722 --*=*)
17723 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17724 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17725 ac_shift=:
17726 ;;
17727 -*)
17728 ac_option=$1
17729 ac_optarg=$2
17730 ac_shift=shift
17731 ;;
17732 *) # This is not an option, so the user has probably given explicit
17733 # arguments.
17734 ac_option=$1
17735 ac_need_defaults=false;;
17736 esac
17737
17738 case $ac_option in
17739 # Handling of the options.
17740 _ACEOF
17741 cat >>$CONFIG_STATUS <<\_ACEOF
17742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17743 ac_cs_recheck=: ;;
17744 --version | --vers* | -V )
17745 echo "$ac_cs_version"; exit 0 ;;
17746 --he | --h)
17747 # Conflict between --help and --header
17748 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17749 Try \`$0 --help' for more information." >&5
17750 echo "$as_me: error: ambiguous option: $1
17751 Try \`$0 --help' for more information." >&2;}
17752 { (exit 1); exit 1; }; };;
17753 --help | --hel | -h )
17754 echo "$ac_cs_usage"; exit 0 ;;
17755 --debug | --d* | -d )
17756 debug=: ;;
17757 --file | --fil | --fi | --f )
17758 $ac_shift
17759 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17760 ac_need_defaults=false;;
17761 --header | --heade | --head | --hea )
17762 $ac_shift
17763 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17764 ac_need_defaults=false;;
17765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17766 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17767 ac_cs_silent=: ;;
17768
17769 # This is an error.
17770 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17771 Try \`$0 --help' for more information." >&5
17772 echo "$as_me: error: unrecognized option: $1
17773 Try \`$0 --help' for more information." >&2;}
17774 { (exit 1); exit 1; }; } ;;
17775
17776 *) ac_config_targets="$ac_config_targets $1" ;;
17777
17778 esac
17779 shift
17780 done
17781
17782 ac_configure_extra_args=
17783
17784 if $ac_cs_silent; then
17785 exec 6>/dev/null
17786 ac_configure_extra_args="$ac_configure_extra_args --silent"
17787 fi
17788
17789 _ACEOF
17790 cat >>$CONFIG_STATUS <<_ACEOF
17791 if \$ac_cs_recheck; then
17792 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17793 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17794 fi
17795
17796 _ACEOF
17797
17798 cat >>$CONFIG_STATUS <<_ACEOF
17799 #
17800 # INIT-COMMANDS section.
17801 #
17802
17803
17804 srcdir="$srcdir"
17805 host="$host"
17806 target="$target"
17807 with_multisubdir="$with_multisubdir"
17808 with_multisrctop="$with_multisrctop"
17809 with_target_subdir="$with_target_subdir"
17810 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17811 multi_basedir="$multi_basedir"
17812 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17813 CC="$CC"
17814 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17815 srcdir=${srcdir}
17816 host=${host}
17817 target=${target}
17818 with_multisubdir=${with_multisubdir}
17819 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17820 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17821 multi_basedir=${multi_basedir}
17822 CC="${CC}"
17823 CXX="${CXX}"
17824 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17825
17826
17827 _ACEOF
17828
17829
17830
17831 cat >>$CONFIG_STATUS <<\_ACEOF
17832 for ac_config_target in $ac_config_targets
17833 do
17834 case "$ac_config_target" in
17835 # Handling of arguments.
17836 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17837 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17838 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17839 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17840 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17841 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17842 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17843 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17844 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17845 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17846 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17847 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
17848 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17849 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17850 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17851 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
17852 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
17853 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17854 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17855 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17856 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17857 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17858 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17859 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17860 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17861 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17862 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17863 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17864 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17865 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17866 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17867 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17868 { (exit 1); exit 1; }; };;
17869 esac
17870 done
17871
17872 # If the user did not use the arguments to specify the items to instantiate,
17873 # then the envvar interface is used. Set only those that are not.
17874 # We use the long form for the default assignment because of an extremely
17875 # bizarre bug on SunOS 4.1.3.
17876 if $ac_need_defaults; then
17877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17878 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17879 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17880 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17881 fi
17882
17883 # Have a temporary directory for convenience. Make it in the build tree
17884 # simply because there is no reason to put it here, and in addition,
17885 # creating and moving files from /tmp can sometimes cause problems.
17886 # Create a temporary directory, and hook for its removal unless debugging.
17887 $debug ||
17888 {
17889 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17890 trap '{ (exit 1); exit 1; }' 1 2 13 15
17891 }
17892
17893 # Create a (secure) tmp directory for tmp files.
17894
17895 {
17896 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17897 test -n "$tmp" && test -d "$tmp"
17898 } ||
17899 {
17900 tmp=./confstat$$-$RANDOM
17901 (umask 077 && mkdir $tmp)
17902 } ||
17903 {
17904 echo "$me: cannot create a temporary directory in ." >&2
17905 { (exit 1); exit 1; }
17906 }
17907
17908 _ACEOF
17909
17910 cat >>$CONFIG_STATUS <<_ACEOF
17911
17912 #
17913 # CONFIG_FILES section.
17914 #
17915
17916 # No need to generate the scripts if there are no CONFIG_FILES.
17917 # This happens for instance when ./config.status config.h
17918 if test -n "\$CONFIG_FILES"; then
17919 # Protect against being on the right side of a sed subst in config.status.
17920 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17921 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17922 s,@SHELL@,$SHELL,;t t
17923 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17924 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17925 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17926 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17927 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17928 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17929 s,@exec_prefix@,$exec_prefix,;t t
17930 s,@prefix@,$prefix,;t t
17931 s,@program_transform_name@,$program_transform_name,;t t
17932 s,@bindir@,$bindir,;t t
17933 s,@sbindir@,$sbindir,;t t
17934 s,@libexecdir@,$libexecdir,;t t
17935 s,@datadir@,$datadir,;t t
17936 s,@sysconfdir@,$sysconfdir,;t t
17937 s,@sharedstatedir@,$sharedstatedir,;t t
17938 s,@localstatedir@,$localstatedir,;t t
17939 s,@libdir@,$libdir,;t t
17940 s,@includedir@,$includedir,;t t
17941 s,@oldincludedir@,$oldincludedir,;t t
17942 s,@infodir@,$infodir,;t t
17943 s,@mandir@,$mandir,;t t
17944 s,@build_alias@,$build_alias,;t t
17945 s,@host_alias@,$host_alias,;t t
17946 s,@target_alias@,$target_alias,;t t
17947 s,@DEFS@,$DEFS,;t t
17948 s,@ECHO_C@,$ECHO_C,;t t
17949 s,@ECHO_N@,$ECHO_N,;t t
17950 s,@ECHO_T@,$ECHO_T,;t t
17951 s,@LIBS@,$LIBS,;t t
17952 s,@build@,$build,;t t
17953 s,@build_cpu@,$build_cpu,;t t
17954 s,@build_vendor@,$build_vendor,;t t
17955 s,@build_os@,$build_os,;t t
17956 s,@build_libsubdir@,$build_libsubdir,;t t
17957 s,@build_subdir@,$build_subdir,;t t
17958 s,@host_subdir@,$host_subdir,;t t
17959 s,@target_subdir@,$target_subdir,;t t
17960 s,@multi_basedir@,$multi_basedir,;t t
17961 s,@host@,$host,;t t
17962 s,@host_cpu@,$host_cpu,;t t
17963 s,@host_vendor@,$host_vendor,;t t
17964 s,@host_os@,$host_os,;t t
17965 s,@target@,$target,;t t
17966 s,@target_cpu@,$target_cpu,;t t
17967 s,@target_vendor@,$target_vendor,;t t
17968 s,@target_os@,$target_os,;t t
17969 s,@target_noncanonical@,$target_noncanonical,;t t
17970 s,@LN_S@,$LN_S,;t t
17971 s,@mkinstalldirs@,$mkinstalldirs,;t t
17972 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
17973 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
17974 s,@CC@,$CC,;t t
17975 s,@ac_ct_CC@,$ac_ct_CC,;t t
17976 s,@EXEEXT@,$EXEEXT,;t t
17977 s,@OBJEXT@,$OBJEXT,;t t
17978 s,@CXX@,$CXX,;t t
17979 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17980 s,@CFLAGS@,$CFLAGS,;t t
17981 s,@CXXFLAGS@,$CXXFLAGS,;t t
17982 s,@LDFLAGS@,$LDFLAGS,;t t
17983 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17984 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17985 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17986 s,@CYGPATH_W@,$CYGPATH_W,;t t
17987 s,@PACKAGE@,$PACKAGE,;t t
17988 s,@VERSION@,$VERSION,;t t
17989 s,@ACLOCAL@,$ACLOCAL,;t t
17990 s,@AUTOCONF@,$AUTOCONF,;t t
17991 s,@AUTOMAKE@,$AUTOMAKE,;t t
17992 s,@AUTOHEADER@,$AUTOHEADER,;t t
17993 s,@MAKEINFO@,$MAKEINFO,;t t
17994 s,@install_sh@,$install_sh,;t t
17995 s,@STRIP@,$STRIP,;t t
17996 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17997 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17998 s,@mkdir_p@,$mkdir_p,;t t
17999 s,@AWK@,$AWK,;t t
18000 s,@SET_MAKE@,$SET_MAKE,;t t
18001 s,@am__leading_dot@,$am__leading_dot,;t t
18002 s,@AMTAR@,$AMTAR,;t t
18003 s,@am__tar@,$am__tar,;t t
18004 s,@am__untar@,$am__untar,;t t
18005 s,@DEPDIR@,$DEPDIR,;t t
18006 s,@am__include@,$am__include,;t t
18007 s,@am__quote@,$am__quote,;t t
18008 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18009 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18010 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18011 s,@CCDEPMODE@,$CCDEPMODE,;t t
18012 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18013 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18014 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18015 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18016 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18017 s,@AS@,$AS,;t t
18018 s,@ac_ct_AS@,$ac_ct_AS,;t t
18019 s,@LD@,$LD,;t t
18020 s,@ac_ct_LD@,$ac_ct_LD,;t t
18021 s,@AR@,$AR,;t t
18022 s,@ac_ct_AR@,$ac_ct_AR,;t t
18023 s,@RANLIB@,$RANLIB,;t t
18024 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18025 s,@JAR@,$JAR,;t t
18026 s,@ZIP@,$ZIP,;t t
18027 s,@UNZIP@,$UNZIP,;t t
18028 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
18029 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
18030 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18031 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18032 s,@MAINT@,$MAINT,;t t
18033 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
18034 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
18035 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
18036 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
18037 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
18038 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
18039 s,@TOOLKIT@,$TOOLKIT,;t t
18040 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
18041 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
18042 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
18043 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
18044 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
18045 s,@GCJH@,$GCJH,;t t
18046 s,@host_exeext@,$host_exeext,;t t
18047 s,@INCLTDL@,$INCLTDL,;t t
18048 s,@LIBLTDL@,$LIBLTDL,;t t
18049 s,@DIRLTDL@,$DIRLTDL,;t t
18050 s,@LIBTOOL@,$LIBTOOL,;t t
18051 s,@CXXCPP@,$CXXCPP,;t t
18052 s,@CPPFLAGS@,$CPPFLAGS,;t t
18053 s,@GCJ@,$GCJ,;t t
18054 s,@GCJFLAGS@,$GCJFLAGS,;t t
18055 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
18056 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
18057 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
18058 s,@subdirs@,$subdirs,;t t
18059 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
18060 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
18061 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
18062 s,@ECJ_JAR@,$ECJ_JAR,;t t
18063 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
18064 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
18065 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
18066 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
18067 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
18068 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
18069 s,@JAVA_HOME@,$JAVA_HOME,;t t
18070 s,@INTERPRETER@,$INTERPRETER,;t t
18071 s,@LIBFFI@,$LIBFFI,;t t
18072 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
18073 s,@PLATFORM@,$PLATFORM,;t t
18074 s,@CPP@,$CPP,;t t
18075 s,@EGREP@,$EGREP,;t t
18076 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
18077 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
18078 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
18079 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
18080 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
18081 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
18082 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
18083 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
18084 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
18085 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
18086 s,@X_CFLAGS@,$X_CFLAGS,;t t
18087 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18088 s,@X_LIBS@,$X_LIBS,;t t
18089 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18090 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
18091 s,@GCLIBS@,$GCLIBS,;t t
18092 s,@GCINCS@,$GCINCS,;t t
18093 s,@GCDEPS@,$GCDEPS,;t t
18094 s,@GCSPEC@,$GCSPEC,;t t
18095 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
18096 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
18097 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
18098 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
18099 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18100 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18101 s,@THREADLIBS@,$THREADLIBS,;t t
18102 s,@THREADINCS@,$THREADINCS,;t t
18103 s,@THREADDEPS@,$THREADDEPS,;t t
18104 s,@THREADSPEC@,$THREADSPEC,;t t
18105 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
18106 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18107 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18108 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18109 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18110 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18111 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18112 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18113 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
18114 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18115 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18116 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
18117 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18118 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18119 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18120 s,@LIBICONV@,$LIBICONV,;t t
18121 s,@LTLIBICONV@,$LTLIBICONV,;t t
18122 s,@LIBMAGIC@,$LIBMAGIC,;t t
18123 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18124 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18125 s,@GTK_LIBS@,$GTK_LIBS,;t t
18126 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18127 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18128 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18129 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18130 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18131 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18132 s,@ZLIBS@,$ZLIBS,;t t
18133 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18134 s,@ZINCS@,$ZINCS,;t t
18135 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18136 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18137 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18138 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18139 s,@IEEESPEC@,$IEEESPEC,;t t
18140 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18141 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
18142 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18143 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
18144 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18145 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18146 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18147 s,@toolexecdir@,$toolexecdir,;t t
18148 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18149 s,@toolexeclibdir@,$toolexeclibdir,;t t
18150 s,@dbexecdir@,$dbexecdir,;t t
18151 s,@GCJVERSION@,$GCJVERSION,;t t
18152 s,@gxx_include_dir@,$gxx_include_dir,;t t
18153 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18154 s,@ALLOCA@,$ALLOCA,;t t
18155 s,@PERL@,$PERL,;t t
18156 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18157 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18158 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18159 s,@here@,$here,;t t
18160 s,@LIBOBJS@,$LIBOBJS,;t t
18161 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18162 CEOF
18163
18164 _ACEOF
18165
18166 cat >>$CONFIG_STATUS <<\_ACEOF
18167 # Split the substitutions into bite-sized pieces for seds with
18168 # small command number limits, like on Digital OSF/1 and HP-UX.
18169 ac_max_sed_lines=48
18170 ac_sed_frag=1 # Number of current file.
18171 ac_beg=1 # First line for current file.
18172 ac_end=$ac_max_sed_lines # Line after last line for current file.
18173 ac_more_lines=:
18174 ac_sed_cmds=
18175 while $ac_more_lines; do
18176 if test $ac_beg -gt 1; then
18177 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18178 else
18179 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18180 fi
18181 if test ! -s $tmp/subs.frag; then
18182 ac_more_lines=false
18183 else
18184 # The purpose of the label and of the branching condition is to
18185 # speed up the sed processing (if there are no `@' at all, there
18186 # is no need to browse any of the substitutions).
18187 # These are the two extra sed commands mentioned above.
18188 (echo ':t
18189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18190 if test -z "$ac_sed_cmds"; then
18191 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18192 else
18193 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18194 fi
18195 ac_sed_frag=`expr $ac_sed_frag + 1`
18196 ac_beg=$ac_end
18197 ac_end=`expr $ac_end + $ac_max_sed_lines`
18198 fi
18199 done
18200 if test -z "$ac_sed_cmds"; then
18201 ac_sed_cmds=cat
18202 fi
18203 fi # test -n "$CONFIG_FILES"
18204
18205 _ACEOF
18206 cat >>$CONFIG_STATUS <<\_ACEOF
18207 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18208 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18209 case $ac_file in
18210 - | *:- | *:-:* ) # input from stdin
18211 cat >$tmp/stdin
18212 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18213 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18214 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18215 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18216 * ) ac_file_in=$ac_file.in ;;
18217 esac
18218
18219 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18220 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18221 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18222 X"$ac_file" : 'X\(//\)[^/]' \| \
18223 X"$ac_file" : 'X\(//\)$' \| \
18224 X"$ac_file" : 'X\(/\)' \| \
18225 . : '\(.\)' 2>/dev/null ||
18226 echo X"$ac_file" |
18227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18229 /^X\(\/\/\)$/{ s//\1/; q; }
18230 /^X\(\/\).*/{ s//\1/; q; }
18231 s/.*/./; q'`
18232 { if $as_mkdir_p; then
18233 mkdir -p "$ac_dir"
18234 else
18235 as_dir="$ac_dir"
18236 as_dirs=
18237 while test ! -d "$as_dir"; do
18238 as_dirs="$as_dir $as_dirs"
18239 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18241 X"$as_dir" : 'X\(//\)[^/]' \| \
18242 X"$as_dir" : 'X\(//\)$' \| \
18243 X"$as_dir" : 'X\(/\)' \| \
18244 . : '\(.\)' 2>/dev/null ||
18245 echo X"$as_dir" |
18246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18248 /^X\(\/\/\)$/{ s//\1/; q; }
18249 /^X\(\/\).*/{ s//\1/; q; }
18250 s/.*/./; q'`
18251 done
18252 test ! -n "$as_dirs" || mkdir $as_dirs
18253 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18254 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18255 { (exit 1); exit 1; }; }; }
18256
18257 ac_builddir=.
18258
18259 if test "$ac_dir" != .; then
18260 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18261 # A "../" for each directory in $ac_dir_suffix.
18262 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18263 else
18264 ac_dir_suffix= ac_top_builddir=
18265 fi
18266
18267 case $srcdir in
18268 .) # No --srcdir option. We are building in place.
18269 ac_srcdir=.
18270 if test -z "$ac_top_builddir"; then
18271 ac_top_srcdir=.
18272 else
18273 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18274 fi ;;
18275 [\\/]* | ?:[\\/]* ) # Absolute path.
18276 ac_srcdir=$srcdir$ac_dir_suffix;
18277 ac_top_srcdir=$srcdir ;;
18278 *) # Relative path.
18279 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18280 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18281 esac
18282
18283 # Do not use `cd foo && pwd` to compute absolute paths, because
18284 # the directories may not exist.
18285 case `pwd` in
18286 .) ac_abs_builddir="$ac_dir";;
18287 *)
18288 case "$ac_dir" in
18289 .) ac_abs_builddir=`pwd`;;
18290 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18291 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18292 esac;;
18293 esac
18294 case $ac_abs_builddir in
18295 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18296 *)
18297 case ${ac_top_builddir}. in
18298 .) ac_abs_top_builddir=$ac_abs_builddir;;
18299 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18300 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18301 esac;;
18302 esac
18303 case $ac_abs_builddir in
18304 .) ac_abs_srcdir=$ac_srcdir;;
18305 *)
18306 case $ac_srcdir in
18307 .) ac_abs_srcdir=$ac_abs_builddir;;
18308 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18309 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18310 esac;;
18311 esac
18312 case $ac_abs_builddir in
18313 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18314 *)
18315 case $ac_top_srcdir in
18316 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18317 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18318 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18319 esac;;
18320 esac
18321
18322
18323 case $INSTALL in
18324 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18325 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18326 esac
18327
18328 if test x"$ac_file" != x-; then
18329 { echo "$as_me:$LINENO: creating $ac_file" >&5
18330 echo "$as_me: creating $ac_file" >&6;}
18331 rm -f "$ac_file"
18332 fi
18333 # Let's still pretend it is `configure' which instantiates (i.e., don't
18334 # use $as_me), people would be surprised to read:
18335 # /* config.h. Generated by config.status. */
18336 if test x"$ac_file" = x-; then
18337 configure_input=
18338 else
18339 configure_input="$ac_file. "
18340 fi
18341 configure_input=$configure_input"Generated from `echo $ac_file_in |
18342 sed 's,.*/,,'` by configure."
18343
18344 # First look for the input files in the build tree, otherwise in the
18345 # src tree.
18346 ac_file_inputs=`IFS=:
18347 for f in $ac_file_in; do
18348 case $f in
18349 -) echo $tmp/stdin ;;
18350 [\\/$]*)
18351 # Absolute (can't be DOS-style, as IFS=:)
18352 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18353 echo "$as_me: error: cannot find input file: $f" >&2;}
18354 { (exit 1); exit 1; }; }
18355 echo "$f";;
18356 *) # Relative
18357 if test -f "$f"; then
18358 # Build tree
18359 echo "$f"
18360 elif test -f "$srcdir/$f"; then
18361 # Source tree
18362 echo "$srcdir/$f"
18363 else
18364 # /dev/null tree
18365 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18366 echo "$as_me: error: cannot find input file: $f" >&2;}
18367 { (exit 1); exit 1; }; }
18368 fi;;
18369 esac
18370 done` || { (exit 1); exit 1; }
18371 _ACEOF
18372 cat >>$CONFIG_STATUS <<_ACEOF
18373 sed "$ac_vpsub
18374 $extrasub
18375 _ACEOF
18376 cat >>$CONFIG_STATUS <<\_ACEOF
18377 :t
18378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18379 s,@configure_input@,$configure_input,;t t
18380 s,@srcdir@,$ac_srcdir,;t t
18381 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18382 s,@top_srcdir@,$ac_top_srcdir,;t t
18383 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18384 s,@builddir@,$ac_builddir,;t t
18385 s,@abs_builddir@,$ac_abs_builddir,;t t
18386 s,@top_builddir@,$ac_top_builddir,;t t
18387 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18388 s,@INSTALL@,$ac_INSTALL,;t t
18389 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18390 rm -f $tmp/stdin
18391 if test x"$ac_file" != x-; then
18392 mv $tmp/out $ac_file
18393 else
18394 cat $tmp/out
18395 rm -f $tmp/out
18396 fi
18397
18398 # Run the commands associated with the file.
18399 case $ac_file in
18400 scripts/jar ) chmod +x scripts/jar ;;
18401 esac
18402 done
18403 _ACEOF
18404 cat >>$CONFIG_STATUS <<\_ACEOF
18405
18406 #
18407 # CONFIG_HEADER section.
18408 #
18409
18410 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18411 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18412 #
18413 # ac_d sets the value in "#define NAME VALUE" lines.
18414 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18415 ac_dB='[ ].*$,\1#\2'
18416 ac_dC=' '
18417 ac_dD=',;t'
18418 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18419 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18420 ac_uB='$,\1#\2define\3'
18421 ac_uC=' '
18422 ac_uD=',;t'
18423
18424 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18426 case $ac_file in
18427 - | *:- | *:-:* ) # input from stdin
18428 cat >$tmp/stdin
18429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18433 * ) ac_file_in=$ac_file.in ;;
18434 esac
18435
18436 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18437 echo "$as_me: creating $ac_file" >&6;}
18438
18439 # First look for the input files in the build tree, otherwise in the
18440 # src tree.
18441 ac_file_inputs=`IFS=:
18442 for f in $ac_file_in; do
18443 case $f in
18444 -) echo $tmp/stdin ;;
18445 [\\/$]*)
18446 # Absolute (can't be DOS-style, as IFS=:)
18447 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18448 echo "$as_me: error: cannot find input file: $f" >&2;}
18449 { (exit 1); exit 1; }; }
18450 # Do quote $f, to prevent DOS paths from being IFS'd.
18451 echo "$f";;
18452 *) # Relative
18453 if test -f "$f"; then
18454 # Build tree
18455 echo "$f"
18456 elif test -f "$srcdir/$f"; then
18457 # Source tree
18458 echo "$srcdir/$f"
18459 else
18460 # /dev/null tree
18461 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18462 echo "$as_me: error: cannot find input file: $f" >&2;}
18463 { (exit 1); exit 1; }; }
18464 fi;;
18465 esac
18466 done` || { (exit 1); exit 1; }
18467 # Remove the trailing spaces.
18468 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18469
18470 _ACEOF
18471
18472 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18473 # `conftest.undefs', that substitutes the proper values into
18474 # config.h.in to produce config.h. The first handles `#define'
18475 # templates, and the second `#undef' templates.
18476 # And first: Protect against being on the right side of a sed subst in
18477 # config.status. Protect against being in an unquoted here document
18478 # in config.status.
18479 rm -f conftest.defines conftest.undefs
18480 # Using a here document instead of a string reduces the quoting nightmare.
18481 # Putting comments in sed scripts is not portable.
18482 #
18483 # `end' is used to avoid that the second main sed command (meant for
18484 # 0-ary CPP macros) applies to n-ary macro definitions.
18485 # See the Autoconf documentation for `clear'.
18486 cat >confdef2sed.sed <<\_ACEOF
18487 s/[\\&,]/\\&/g
18488 s,[\\$`],\\&,g
18489 t clear
18490 : clear
18491 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18492 t end
18493 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18494 : end
18495 _ACEOF
18496 # If some macros were called several times there might be several times
18497 # the same #defines, which is useless. Nevertheless, we may not want to
18498 # sort them, since we want the *last* AC-DEFINE to be honored.
18499 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18500 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18501 rm -f confdef2sed.sed
18502
18503 # This sed command replaces #undef with comments. This is necessary, for
18504 # example, in the case of _POSIX_SOURCE, which is predefined and required
18505 # on some systems where configure will not decide to define it.
18506 cat >>conftest.undefs <<\_ACEOF
18507 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18508 _ACEOF
18509
18510 # Break up conftest.defines because some shells have a limit on the size
18511 # of here documents, and old seds have small limits too (100 cmds).
18512 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18513 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18514 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18515 echo ' :' >>$CONFIG_STATUS
18516 rm -f conftest.tail
18517 while grep . conftest.defines >/dev/null
18518 do
18519 # Write a limited-size here document to $tmp/defines.sed.
18520 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18521 # Speed up: don't consider the non `#define' lines.
18522 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18523 # Work around the forget-to-reset-the-flag bug.
18524 echo 't clr' >>$CONFIG_STATUS
18525 echo ': clr' >>$CONFIG_STATUS
18526 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18527 echo 'CEOF
18528 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18529 rm -f $tmp/in
18530 mv $tmp/out $tmp/in
18531 ' >>$CONFIG_STATUS
18532 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18533 rm -f conftest.defines
18534 mv conftest.tail conftest.defines
18535 done
18536 rm -f conftest.defines
18537 echo ' fi # grep' >>$CONFIG_STATUS
18538 echo >>$CONFIG_STATUS
18539
18540 # Break up conftest.undefs because some shells have a limit on the size
18541 # of here documents, and old seds have small limits too (100 cmds).
18542 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18543 rm -f conftest.tail
18544 while grep . conftest.undefs >/dev/null
18545 do
18546 # Write a limited-size here document to $tmp/undefs.sed.
18547 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18548 # Speed up: don't consider the non `#undef'
18549 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18550 # Work around the forget-to-reset-the-flag bug.
18551 echo 't clr' >>$CONFIG_STATUS
18552 echo ': clr' >>$CONFIG_STATUS
18553 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18554 echo 'CEOF
18555 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18556 rm -f $tmp/in
18557 mv $tmp/out $tmp/in
18558 ' >>$CONFIG_STATUS
18559 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18560 rm -f conftest.undefs
18561 mv conftest.tail conftest.undefs
18562 done
18563 rm -f conftest.undefs
18564
18565 cat >>$CONFIG_STATUS <<\_ACEOF
18566 # Let's still pretend it is `configure' which instantiates (i.e., don't
18567 # use $as_me), people would be surprised to read:
18568 # /* config.h. Generated by config.status. */
18569 if test x"$ac_file" = x-; then
18570 echo "/* Generated by configure. */" >$tmp/config.h
18571 else
18572 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18573 fi
18574 cat $tmp/in >>$tmp/config.h
18575 rm -f $tmp/in
18576 if test x"$ac_file" != x-; then
18577 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18578 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18579 echo "$as_me: $ac_file is unchanged" >&6;}
18580 else
18581 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18582 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18583 X"$ac_file" : 'X\(//\)[^/]' \| \
18584 X"$ac_file" : 'X\(//\)$' \| \
18585 X"$ac_file" : 'X\(/\)' \| \
18586 . : '\(.\)' 2>/dev/null ||
18587 echo X"$ac_file" |
18588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18590 /^X\(\/\/\)$/{ s//\1/; q; }
18591 /^X\(\/\).*/{ s//\1/; q; }
18592 s/.*/./; q'`
18593 { if $as_mkdir_p; then
18594 mkdir -p "$ac_dir"
18595 else
18596 as_dir="$ac_dir"
18597 as_dirs=
18598 while test ! -d "$as_dir"; do
18599 as_dirs="$as_dir $as_dirs"
18600 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18602 X"$as_dir" : 'X\(//\)[^/]' \| \
18603 X"$as_dir" : 'X\(//\)$' \| \
18604 X"$as_dir" : 'X\(/\)' \| \
18605 . : '\(.\)' 2>/dev/null ||
18606 echo X"$as_dir" |
18607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18609 /^X\(\/\/\)$/{ s//\1/; q; }
18610 /^X\(\/\).*/{ s//\1/; q; }
18611 s/.*/./; q'`
18612 done
18613 test ! -n "$as_dirs" || mkdir $as_dirs
18614 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18615 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18616 { (exit 1); exit 1; }; }; }
18617
18618 rm -f $ac_file
18619 mv $tmp/config.h $ac_file
18620 fi
18621 else
18622 cat $tmp/config.h
18623 rm -f $tmp/config.h
18624 fi
18625 # Compute $ac_file's index in $config_headers.
18626 _am_stamp_count=1
18627 for _am_header in $config_headers :; do
18628 case $_am_header in
18629 $ac_file | $ac_file:* )
18630 break ;;
18631 * )
18632 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18633 esac
18634 done
18635 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18636 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18637 X$ac_file : 'X\(//\)[^/]' \| \
18638 X$ac_file : 'X\(//\)$' \| \
18639 X$ac_file : 'X\(/\)' \| \
18640 . : '\(.\)' 2>/dev/null ||
18641 echo X$ac_file |
18642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18644 /^X\(\/\/\)$/{ s//\1/; q; }
18645 /^X\(\/\).*/{ s//\1/; q; }
18646 s/.*/./; q'`/stamp-h$_am_stamp_count
18647 done
18648 _ACEOF
18649 cat >>$CONFIG_STATUS <<\_ACEOF
18650
18651 #
18652 # CONFIG_LINKS section.
18653 #
18654
18655 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18656 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18657 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18658
18659 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18660 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18661
18662 if test ! -r $srcdir/$ac_source; then
18663 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18664 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18665 { (exit 1); exit 1; }; }
18666 fi
18667 rm -f $ac_dest
18668
18669 # Make relative symlinks.
18670 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18671 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18672 X"$ac_dest" : 'X\(//\)[^/]' \| \
18673 X"$ac_dest" : 'X\(//\)$' \| \
18674 X"$ac_dest" : 'X\(/\)' \| \
18675 . : '\(.\)' 2>/dev/null ||
18676 echo X"$ac_dest" |
18677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18679 /^X\(\/\/\)$/{ s//\1/; q; }
18680 /^X\(\/\).*/{ s//\1/; q; }
18681 s/.*/./; q'`
18682 { if $as_mkdir_p; then
18683 mkdir -p "$ac_dest_dir"
18684 else
18685 as_dir="$ac_dest_dir"
18686 as_dirs=
18687 while test ! -d "$as_dir"; do
18688 as_dirs="$as_dir $as_dirs"
18689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18691 X"$as_dir" : 'X\(//\)[^/]' \| \
18692 X"$as_dir" : 'X\(//\)$' \| \
18693 X"$as_dir" : 'X\(/\)' \| \
18694 . : '\(.\)' 2>/dev/null ||
18695 echo X"$as_dir" |
18696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18698 /^X\(\/\/\)$/{ s//\1/; q; }
18699 /^X\(\/\).*/{ s//\1/; q; }
18700 s/.*/./; q'`
18701 done
18702 test ! -n "$as_dirs" || mkdir $as_dirs
18703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18704 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18705 { (exit 1); exit 1; }; }; }
18706
18707 ac_builddir=.
18708
18709 if test "$ac_dest_dir" != .; then
18710 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18711 # A "../" for each directory in $ac_dir_suffix.
18712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18713 else
18714 ac_dir_suffix= ac_top_builddir=
18715 fi
18716
18717 case $srcdir in
18718 .) # No --srcdir option. We are building in place.
18719 ac_srcdir=.
18720 if test -z "$ac_top_builddir"; then
18721 ac_top_srcdir=.
18722 else
18723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18724 fi ;;
18725 [\\/]* | ?:[\\/]* ) # Absolute path.
18726 ac_srcdir=$srcdir$ac_dir_suffix;
18727 ac_top_srcdir=$srcdir ;;
18728 *) # Relative path.
18729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18731 esac
18732
18733 # Do not use `cd foo && pwd` to compute absolute paths, because
18734 # the directories may not exist.
18735 case `pwd` in
18736 .) ac_abs_builddir="$ac_dest_dir";;
18737 *)
18738 case "$ac_dest_dir" in
18739 .) ac_abs_builddir=`pwd`;;
18740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18741 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18742 esac;;
18743 esac
18744 case $ac_abs_builddir in
18745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18746 *)
18747 case ${ac_top_builddir}. in
18748 .) ac_abs_top_builddir=$ac_abs_builddir;;
18749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18751 esac;;
18752 esac
18753 case $ac_abs_builddir in
18754 .) ac_abs_srcdir=$ac_srcdir;;
18755 *)
18756 case $ac_srcdir in
18757 .) ac_abs_srcdir=$ac_abs_builddir;;
18758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18760 esac;;
18761 esac
18762 case $ac_abs_builddir in
18763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18764 *)
18765 case $ac_top_srcdir in
18766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18769 esac;;
18770 esac
18771
18772
18773 case $srcdir in
18774 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18775 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18776 esac
18777
18778 # Try a symlink, then a hard link, then a copy.
18779 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18780 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18781 cp -p $srcdir/$ac_source $ac_dest ||
18782 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18783 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18784 { (exit 1); exit 1; }; }
18785 done
18786 _ACEOF
18787 cat >>$CONFIG_STATUS <<\_ACEOF
18788
18789 #
18790 # CONFIG_COMMANDS section.
18791 #
18792 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18793 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18794 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18795 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18796 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18797 X"$ac_dest" : 'X\(//\)[^/]' \| \
18798 X"$ac_dest" : 'X\(//\)$' \| \
18799 X"$ac_dest" : 'X\(/\)' \| \
18800 . : '\(.\)' 2>/dev/null ||
18801 echo X"$ac_dest" |
18802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18804 /^X\(\/\/\)$/{ s//\1/; q; }
18805 /^X\(\/\).*/{ s//\1/; q; }
18806 s/.*/./; q'`
18807 { if $as_mkdir_p; then
18808 mkdir -p "$ac_dir"
18809 else
18810 as_dir="$ac_dir"
18811 as_dirs=
18812 while test ! -d "$as_dir"; do
18813 as_dirs="$as_dir $as_dirs"
18814 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18816 X"$as_dir" : 'X\(//\)[^/]' \| \
18817 X"$as_dir" : 'X\(//\)$' \| \
18818 X"$as_dir" : 'X\(/\)' \| \
18819 . : '\(.\)' 2>/dev/null ||
18820 echo X"$as_dir" |
18821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18823 /^X\(\/\/\)$/{ s//\1/; q; }
18824 /^X\(\/\).*/{ s//\1/; q; }
18825 s/.*/./; q'`
18826 done
18827 test ! -n "$as_dirs" || mkdir $as_dirs
18828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18830 { (exit 1); exit 1; }; }; }
18831
18832 ac_builddir=.
18833
18834 if test "$ac_dir" != .; then
18835 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18836 # A "../" for each directory in $ac_dir_suffix.
18837 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18838 else
18839 ac_dir_suffix= ac_top_builddir=
18840 fi
18841
18842 case $srcdir in
18843 .) # No --srcdir option. We are building in place.
18844 ac_srcdir=.
18845 if test -z "$ac_top_builddir"; then
18846 ac_top_srcdir=.
18847 else
18848 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18849 fi ;;
18850 [\\/]* | ?:[\\/]* ) # Absolute path.
18851 ac_srcdir=$srcdir$ac_dir_suffix;
18852 ac_top_srcdir=$srcdir ;;
18853 *) # Relative path.
18854 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18855 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18856 esac
18857
18858 # Do not use `cd foo && pwd` to compute absolute paths, because
18859 # the directories may not exist.
18860 case `pwd` in
18861 .) ac_abs_builddir="$ac_dir";;
18862 *)
18863 case "$ac_dir" in
18864 .) ac_abs_builddir=`pwd`;;
18865 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18866 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18867 esac;;
18868 esac
18869 case $ac_abs_builddir in
18870 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18871 *)
18872 case ${ac_top_builddir}. in
18873 .) ac_abs_top_builddir=$ac_abs_builddir;;
18874 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18875 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18876 esac;;
18877 esac
18878 case $ac_abs_builddir in
18879 .) ac_abs_srcdir=$ac_srcdir;;
18880 *)
18881 case $ac_srcdir in
18882 .) ac_abs_srcdir=$ac_abs_builddir;;
18883 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18884 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18885 esac;;
18886 esac
18887 case $ac_abs_builddir in
18888 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18889 *)
18890 case $ac_top_srcdir in
18891 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18892 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18893 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18894 esac;;
18895 esac
18896
18897
18898 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18899 echo "$as_me: executing $ac_dest commands" >&6;}
18900 case $ac_dest in
18901 default-1 )
18902 # Only add multilib support code if we just rebuilt the top-level
18903 # Makefile.
18904 case " $CONFIG_FILES " in
18905 *" Makefile "*)
18906 ac_file=Makefile . ${multi_basedir}/config-ml.in
18907 ;;
18908 esac ;;
18909 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18910 # Strip MF so we end up with the name of the file.
18911 mf=`echo "$mf" | sed -e 's/:.*$//'`
18912 # Check whether this is an Automake generated Makefile or not.
18913 # We used to match only the files named `Makefile.in', but
18914 # some people rename them; so instead we look at the file content.
18915 # Grep'ing the first line is not enough: some people post-process
18916 # each Makefile.in and add a new line on top of each file to say so.
18917 # So let's grep whole file.
18918 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18919 dirpart=`(dirname "$mf") 2>/dev/null ||
18920 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18921 X"$mf" : 'X\(//\)[^/]' \| \
18922 X"$mf" : 'X\(//\)$' \| \
18923 X"$mf" : 'X\(/\)' \| \
18924 . : '\(.\)' 2>/dev/null ||
18925 echo X"$mf" |
18926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18928 /^X\(\/\/\)$/{ s//\1/; q; }
18929 /^X\(\/\).*/{ s//\1/; q; }
18930 s/.*/./; q'`
18931 else
18932 continue
18933 fi
18934 # Extract the definition of DEPDIR, am__include, and am__quote
18935 # from the Makefile without running `make'.
18936 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18937 test -z "$DEPDIR" && continue
18938 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18939 test -z "am__include" && continue
18940 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18941 # When using ansi2knr, U may be empty or an underscore; expand it
18942 U=`sed -n 's/^U = //p' < "$mf"`
18943 # Find all dependency output files, they are included files with
18944 # $(DEPDIR) in their names. We invoke sed twice because it is the
18945 # simplest approach to changing $(DEPDIR) to its actual value in the
18946 # expansion.
18947 for file in `sed -n "
18948 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18949 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18950 # Make sure the directory exists.
18951 test -f "$dirpart/$file" && continue
18952 fdir=`(dirname "$file") 2>/dev/null ||
18953 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18954 X"$file" : 'X\(//\)[^/]' \| \
18955 X"$file" : 'X\(//\)$' \| \
18956 X"$file" : 'X\(/\)' \| \
18957 . : '\(.\)' 2>/dev/null ||
18958 echo X"$file" |
18959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18961 /^X\(\/\/\)$/{ s//\1/; q; }
18962 /^X\(\/\).*/{ s//\1/; q; }
18963 s/.*/./; q'`
18964 { if $as_mkdir_p; then
18965 mkdir -p $dirpart/$fdir
18966 else
18967 as_dir=$dirpart/$fdir
18968 as_dirs=
18969 while test ! -d "$as_dir"; do
18970 as_dirs="$as_dir $as_dirs"
18971 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18973 X"$as_dir" : 'X\(//\)[^/]' \| \
18974 X"$as_dir" : 'X\(//\)$' \| \
18975 X"$as_dir" : 'X\(/\)' \| \
18976 . : '\(.\)' 2>/dev/null ||
18977 echo X"$as_dir" |
18978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18980 /^X\(\/\/\)$/{ s//\1/; q; }
18981 /^X\(\/\).*/{ s//\1/; q; }
18982 s/.*/./; q'`
18983 done
18984 test ! -n "$as_dirs" || mkdir $as_dirs
18985 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18986 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18987 { (exit 1); exit 1; }; }; }
18988
18989 # echo "creating $dirpart/$file"
18990 echo '# dummy' > "$dirpart/$file"
18991 done
18992 done
18993 ;;
18994 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18995 case " $CONFIG_FILES " in
18996 *" Makefile "*)
18997 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18998 ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
18999 ;;
19000 esac
19001 for ac_multi_file in $CONFIG_FILES; do
19002 case $ac_multi_file in
19003 */Makefile)
19004 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
19005 esac
19006 done
19007 ;;
19008 esac
19009 done
19010 _ACEOF
19011
19012 cat >>$CONFIG_STATUS <<\_ACEOF
19013
19014 { (exit 0); exit 0; }
19015 _ACEOF
19016 chmod +x $CONFIG_STATUS
19017 ac_clean_files=$ac_clean_files_save
19018
19019
19020 # configure is writing to config.log, and then calls config.status.
19021 # config.status does its own redirection, appending to config.log.
19022 # Unfortunately, on DOS this fails, as config.log is still kept open
19023 # by configure, so config.status won't be able to write to it; its
19024 # output is simply discarded. So we exec the FD to /dev/null,
19025 # effectively closing config.log, so it can be properly (re)opened and
19026 # appended to by config.status. When coming back to configure, we
19027 # need to make the FD available again.
19028 if test "$no_create" != yes; then
19029 ac_cs_success=:
19030 ac_config_status_args=
19031 test "$silent" = yes &&
19032 ac_config_status_args="$ac_config_status_args --quiet"
19033 exec 5>/dev/null
19034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19035 exec 5>>config.log
19036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19037 # would make configure fail if this is the last instruction.
19038 $ac_cs_success || { (exit 1); exit 1; }
19039 fi
19040
19041 #
19042 # CONFIG_SUBDIRS section.
19043 #
19044 if test "$no_recursion" != yes; then
19045
19046 # Remove --cache-file and --srcdir arguments so they do not pile up.
19047 ac_sub_configure_args=
19048 ac_prev=
19049 for ac_arg in $ac_configure_args; do
19050 if test -n "$ac_prev"; then
19051 ac_prev=
19052 continue
19053 fi
19054 case $ac_arg in
19055 -cache-file | --cache-file | --cache-fil | --cache-fi \
19056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19057 ac_prev=cache_file ;;
19058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19060 | --c=*)
19061 ;;
19062 --config-cache | -C)
19063 ;;
19064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19065 ac_prev=srcdir ;;
19066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19067 ;;
19068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19069 ac_prev=prefix ;;
19070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19071 ;;
19072 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19073 esac
19074 done
19075
19076 # Always prepend --prefix to ensure using the same prefix
19077 # in subdir configurations.
19078 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
19079
19080 ac_popdir=`pwd`
19081 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19082
19083 # Do not complain, so a configure script can configure whichever
19084 # parts of a large source tree are present.
19085 test -d $srcdir/$ac_dir || continue
19086
19087 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
19088 echo "$as_me: configuring in $ac_dir" >&6;}
19089 { if $as_mkdir_p; then
19090 mkdir -p "$ac_dir"
19091 else
19092 as_dir="$ac_dir"
19093 as_dirs=
19094 while test ! -d "$as_dir"; do
19095 as_dirs="$as_dir $as_dirs"
19096 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19098 X"$as_dir" : 'X\(//\)[^/]' \| \
19099 X"$as_dir" : 'X\(//\)$' \| \
19100 X"$as_dir" : 'X\(/\)' \| \
19101 . : '\(.\)' 2>/dev/null ||
19102 echo X"$as_dir" |
19103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19105 /^X\(\/\/\)$/{ s//\1/; q; }
19106 /^X\(\/\).*/{ s//\1/; q; }
19107 s/.*/./; q'`
19108 done
19109 test ! -n "$as_dirs" || mkdir $as_dirs
19110 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19111 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19112 { (exit 1); exit 1; }; }; }
19113
19114 ac_builddir=.
19115
19116 if test "$ac_dir" != .; then
19117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19118 # A "../" for each directory in $ac_dir_suffix.
19119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19120 else
19121 ac_dir_suffix= ac_top_builddir=
19122 fi
19123
19124 case $srcdir in
19125 .) # No --srcdir option. We are building in place.
19126 ac_srcdir=.
19127 if test -z "$ac_top_builddir"; then
19128 ac_top_srcdir=.
19129 else
19130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19131 fi ;;
19132 [\\/]* | ?:[\\/]* ) # Absolute path.
19133 ac_srcdir=$srcdir$ac_dir_suffix;
19134 ac_top_srcdir=$srcdir ;;
19135 *) # Relative path.
19136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19138 esac
19139
19140 # Do not use `cd foo && pwd` to compute absolute paths, because
19141 # the directories may not exist.
19142 case `pwd` in
19143 .) ac_abs_builddir="$ac_dir";;
19144 *)
19145 case "$ac_dir" in
19146 .) ac_abs_builddir=`pwd`;;
19147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19149 esac;;
19150 esac
19151 case $ac_abs_builddir in
19152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19153 *)
19154 case ${ac_top_builddir}. in
19155 .) ac_abs_top_builddir=$ac_abs_builddir;;
19156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19158 esac;;
19159 esac
19160 case $ac_abs_builddir in
19161 .) ac_abs_srcdir=$ac_srcdir;;
19162 *)
19163 case $ac_srcdir in
19164 .) ac_abs_srcdir=$ac_abs_builddir;;
19165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19167 esac;;
19168 esac
19169 case $ac_abs_builddir in
19170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19171 *)
19172 case $ac_top_srcdir in
19173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19176 esac;;
19177 esac
19178
19179
19180 cd $ac_dir
19181
19182 # Check for guested configure; otherwise get Cygnus style configure.
19183 if test -f $ac_srcdir/configure.gnu; then
19184 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19185 elif test -f $ac_srcdir/configure; then
19186 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19187 elif test -f $ac_srcdir/configure.in; then
19188 ac_sub_configure=$ac_configure
19189 else
19190 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19192 ac_sub_configure=
19193 fi
19194
19195 # The recursion is here.
19196 if test -n "$ac_sub_configure"; then
19197 # Make the cache file name correct relative to the subdirectory.
19198 case $cache_file in
19199 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19200 *) # Relative path.
19201 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
19202 esac
19203
19204 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19205 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19206 # The eval makes quoting arguments work.
19207 eval $ac_sub_configure $ac_sub_configure_args \
19208 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19209 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19210 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19211 { (exit 1); exit 1; }; }
19212 fi
19213
19214 cd $ac_popdir
19215 done
19216 fi
19217