]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/configure
aclocal.m4: Regenerate to use multi.m4.
[thirdparty/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 natPipeImpl.cc and natSelectorImpl.cc.
7686 test -d gnu/java/nio || mkdir gnu/java/nio
7687 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7688
7689 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7690
7691 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7692 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7693
7694
7695 case "${host}" in
7696 *mingw*)
7697 SYSTEMSPEC="-lgdi32 -lws2_32"
7698 if test "${with_win32_nlsapi}" = "unicows"; then
7699 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7700 fi
7701 ;;
7702 *)
7703 SYSTEMSPEC=
7704 ;;
7705 esac
7706
7707
7708 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7709
7710
7711
7712 # Check whether --with-system-zlib or --without-system-zlib was given.
7713 if test "${with_system_zlib+set}" = set; then
7714 withval="$with_system_zlib"
7715
7716 fi;
7717 ZLIBSPEC=
7718
7719 ZLIBTESTSPEC=
7720
7721
7722 echo "$as_me:$LINENO: checking for X" >&5
7723 echo $ECHO_N "checking for X... $ECHO_C" >&6
7724
7725
7726 # Check whether --with-x or --without-x was given.
7727 if test "${with_x+set}" = set; then
7728 withval="$with_x"
7729
7730 fi;
7731 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7732 if test "x$with_x" = xno; then
7733 # The user explicitly disabled X.
7734 have_x=disabled
7735 else
7736 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7737 # Both variables are already set.
7738 have_x=yes
7739 else
7740 if test "${ac_cv_have_x+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743 # One or both of the vars are not set, and there is no cached value.
7744 ac_x_includes=no ac_x_libraries=no
7745 rm -fr conftest.dir
7746 if mkdir conftest.dir; then
7747 cd conftest.dir
7748 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7749 cat >Imakefile <<'_ACEOF'
7750 acfindx:
7751 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7752 _ACEOF
7753 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7755 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7756 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7757 for ac_extension in a so sl; do
7758 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7759 test -f $ac_im_libdir/libX11.$ac_extension; then
7760 ac_im_usrlibdir=$ac_im_libdir; break
7761 fi
7762 done
7763 # Screen out bogus values from the imake configuration. They are
7764 # bogus both because they are the default anyway, and because
7765 # using them would break gcc on systems where it needs fixed includes.
7766 case $ac_im_incroot in
7767 /usr/include) ;;
7768 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7769 esac
7770 case $ac_im_usrlibdir in
7771 /usr/lib | /lib) ;;
7772 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7773 esac
7774 fi
7775 cd ..
7776 rm -fr conftest.dir
7777 fi
7778
7779 # Standard set of common directories for X headers.
7780 # Check X11 before X11Rn because it is often a symlink to the current release.
7781 ac_x_header_dirs='
7782 /usr/X11/include
7783 /usr/X11R6/include
7784 /usr/X11R5/include
7785 /usr/X11R4/include
7786
7787 /usr/include/X11
7788 /usr/include/X11R6
7789 /usr/include/X11R5
7790 /usr/include/X11R4
7791
7792 /usr/local/X11/include
7793 /usr/local/X11R6/include
7794 /usr/local/X11R5/include
7795 /usr/local/X11R4/include
7796
7797 /usr/local/include/X11
7798 /usr/local/include/X11R6
7799 /usr/local/include/X11R5
7800 /usr/local/include/X11R4
7801
7802 /usr/X386/include
7803 /usr/x386/include
7804 /usr/XFree86/include/X11
7805
7806 /usr/include
7807 /usr/local/include
7808 /usr/unsupported/include
7809 /usr/athena/include
7810 /usr/local/x11r5/include
7811 /usr/lpp/Xamples/include
7812
7813 /usr/openwin/include
7814 /usr/openwin/share/include'
7815
7816 if test "$ac_x_includes" = no; then
7817 # Guess where to find include files, by looking for Xlib.h.
7818 # First, try using that file with no special directory specified.
7819 cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h. */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 #include <X11/Xlib.h>
7826 _ACEOF
7827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } >/dev/null; then
7835 if test -s conftest.err; then
7836 ac_cpp_err=$ac_c_preproc_warn_flag
7837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7838 else
7839 ac_cpp_err=
7840 fi
7841 else
7842 ac_cpp_err=yes
7843 fi
7844 if test -z "$ac_cpp_err"; then
7845 # We can compile using X headers with no special include directory.
7846 ac_x_includes=
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 for ac_dir in $ac_x_header_dirs; do
7852 if test -r "$ac_dir/X11/Xlib.h"; then
7853 ac_x_includes=$ac_dir
7854 break
7855 fi
7856 done
7857 fi
7858 rm -f conftest.err conftest.$ac_ext
7859 fi # $ac_x_includes = no
7860
7861 if test "$ac_x_libraries" = no; then
7862 # Check for the libraries.
7863 # See if we find them without any special options.
7864 # Don't add to $LIBS permanently.
7865 ac_save_LIBS=$LIBS
7866 LIBS="-lXt $LIBS"
7867 if test x$gcc_no_link = xyes; then
7868 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7870 { (exit 1); exit 1; }; }
7871 fi
7872 cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h. */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 #include <X11/Xlib.h>
7879 int
7880 main ()
7881 {
7882 XrmInitialize ()
7883 ;
7884 return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext conftest$ac_exeext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7889 (eval $ac_link) 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -z "$ac_c_werror_flag"
7897 || test ! -s conftest.err'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; } &&
7903 { ac_try='test -s conftest$ac_exeext'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 (eval $ac_try) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 LIBS=$ac_save_LIBS
7910 # We can link X programs with no special library path.
7911 ac_x_libraries=
7912 else
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 LIBS=$ac_save_LIBS
7917 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7918 do
7919 # Don't even attempt the hair of trying to link an X program!
7920 for ac_extension in a so sl; do
7921 if test -r $ac_dir/libXt.$ac_extension; then
7922 ac_x_libraries=$ac_dir
7923 break 2
7924 fi
7925 done
7926 done
7927 fi
7928 rm -f conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930 fi # $ac_x_libraries = no
7931
7932 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7933 # Didn't find X anywhere. Cache the known absence of X.
7934 ac_cv_have_x="have_x=no"
7935 else
7936 # Record where we found X for the cache.
7937 ac_cv_have_x="have_x=yes \
7938 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7939 fi
7940 fi
7941
7942 fi
7943 eval "$ac_cv_have_x"
7944 fi # $with_x != no
7945
7946 if test "$have_x" != yes; then
7947 echo "$as_me:$LINENO: result: $have_x" >&5
7948 echo "${ECHO_T}$have_x" >&6
7949 no_x=yes
7950 else
7951 # If each of the values was on the command line, it overrides each guess.
7952 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7953 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7954 # Update the cache value to reflect the command line values.
7955 ac_cv_have_x="have_x=yes \
7956 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7957 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7958 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7959 fi
7960
7961 if test "$no_x" = yes; then
7962 # Not all programs may use this symbol, but it does not hurt to define it.
7963
7964 cat >>confdefs.h <<\_ACEOF
7965 #define X_DISPLAY_MISSING 1
7966 _ACEOF
7967
7968 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7969 else
7970 if test -n "$x_includes"; then
7971 X_CFLAGS="$X_CFLAGS -I$x_includes"
7972 fi
7973
7974 # It would also be nice to do this for all -L options, not just this one.
7975 if test -n "$x_libraries"; then
7976 X_LIBS="$X_LIBS -L$x_libraries"
7977 # For Solaris; some versions of Sun CC require a space after -R and
7978 # others require no space. Words are not sufficient . . . .
7979 case `(uname -sr) 2>/dev/null` in
7980 "SunOS 5"*)
7981 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7982 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7983 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7984 if test x$gcc_no_link = xyes; then
7985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7987 { (exit 1); exit 1; }; }
7988 fi
7989 cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h. */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7995
7996 int
7997 main ()
7998 {
7999
8000 ;
8001 return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_R_nospace=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 ac_R_nospace=no
8032 fi
8033 rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 if test $ac_R_nospace = yes; then
8036 echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8038 X_LIBS="$X_LIBS -R$x_libraries"
8039 else
8040 LIBS="$ac_xsave_LIBS -R $x_libraries"
8041 if test x$gcc_no_link = xyes; then
8042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8044 { (exit 1); exit 1; }; }
8045 fi
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052
8053 int
8054 main ()
8055 {
8056
8057 ;
8058 return 0;
8059 }
8060 _ACEOF
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -z "$ac_c_werror_flag"
8071 || test ! -s conftest.err'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest$ac_exeext'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 ac_R_space=yes
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088 ac_R_space=no
8089 fi
8090 rm -f conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092 if test $ac_R_space = yes; then
8093 echo "$as_me:$LINENO: result: yes" >&5
8094 echo "${ECHO_T}yes" >&6
8095 X_LIBS="$X_LIBS -R $x_libraries"
8096 else
8097 echo "$as_me:$LINENO: result: neither works" >&5
8098 echo "${ECHO_T}neither works" >&6
8099 fi
8100 fi
8101 LIBS=$ac_xsave_LIBS
8102 esac
8103 fi
8104
8105 # Check for system-dependent libraries X programs must link with.
8106 # Do this before checking for the system-independent R6 libraries
8107 # (-lICE), since we may need -lsocket or whatever for X linking.
8108
8109 if test "$ISC" = yes; then
8110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8111 else
8112 # Martyn Johnson says this is needed for Ultrix, if the X
8113 # libraries were built with DECnet support. And Karl Berry says
8114 # the Alpha needs dnet_stub (dnet does not exist).
8115 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8116 if test x$gcc_no_link = xyes; then
8117 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8118 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8119 { (exit 1); exit 1; }; }
8120 fi
8121 cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h. */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 #ifdef __cplusplus
8130 extern "C"
8131 #endif
8132 /* We use char because int might match the return type of a gcc2
8133 builtin and then its argument prototype would still apply. */
8134 char XOpenDisplay ();
8135 int
8136 main ()
8137 {
8138 XOpenDisplay ();
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext conftest$ac_exeext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145 (eval $ac_link) 2>conftest.er1
8146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag"
8153 || test ! -s conftest.err'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; } &&
8159 { ac_try='test -s conftest$ac_exeext'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 (eval $ac_try) 2>&5
8162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 :
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8171 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8172 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 ac_check_lib_save_LIBS=$LIBS
8176 LIBS="-ldnet $LIBS"
8177 if test x$gcc_no_link = xyes; then
8178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8180 { (exit 1); exit 1; }; }
8181 fi
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188
8189 /* Override any gcc2 internal prototype to avoid an error. */
8190 #ifdef __cplusplus
8191 extern "C"
8192 #endif
8193 /* We use char because int might match the return type of a gcc2
8194 builtin and then its argument prototype would still apply. */
8195 char dnet_ntoa ();
8196 int
8197 main ()
8198 {
8199 dnet_ntoa ();
8200 ;
8201 return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext conftest$ac_exeext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8206 (eval $ac_link) 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag"
8214 || test ! -s conftest.err'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_cv_lib_dnet_dnet_ntoa=yes
8227 else
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 ac_cv_lib_dnet_dnet_ntoa=no
8232 fi
8233 rm -f conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
8235 LIBS=$ac_check_lib_save_LIBS
8236 fi
8237 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8238 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8239 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8240 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8241 fi
8242
8243 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8244 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8245 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8246 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 else
8249 ac_check_lib_save_LIBS=$LIBS
8250 LIBS="-ldnet_stub $LIBS"
8251 if test x$gcc_no_link = xyes; then
8252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8254 { (exit 1); exit 1; }; }
8255 fi
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262
8263 /* Override any gcc2 internal prototype to avoid an error. */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8269 char dnet_ntoa ();
8270 int
8271 main ()
8272 {
8273 dnet_ntoa ();
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -z "$ac_c_werror_flag"
8288 || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest$ac_exeext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8301 else
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305 ac_cv_lib_dnet_stub_dnet_ntoa=no
8306 fi
8307 rm -f conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309 LIBS=$ac_check_lib_save_LIBS
8310 fi
8311 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8312 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8313 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8315 fi
8316
8317 fi
8318 fi
8319 rm -f conftest.err conftest.$ac_objext \
8320 conftest$ac_exeext conftest.$ac_ext
8321 LIBS="$ac_xsave_LIBS"
8322
8323 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8324 # to get the SysV transport functions.
8325 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8326 # needs -lnsl.
8327 # The nsl library prevents programs from opening the X display
8328 # on Irix 5.2, according to T.E. Dickey.
8329 # The functions gethostbyname, getservbyname, and inet_addr are
8330 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8331 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8332 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8333 if test "${ac_cv_func_gethostbyname+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336 if test x$gcc_no_link = xyes; then
8337 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8339 { (exit 1); exit 1; }; }
8340 fi
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h. */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8349 #define gethostbyname innocuous_gethostbyname
8350
8351 /* System header to define __stub macros and hopefully few prototypes,
8352 which can conflict with char gethostbyname (); below.
8353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8354 <limits.h> exists even on freestanding compilers. */
8355
8356 #ifdef __STDC__
8357 # include <limits.h>
8358 #else
8359 # include <assert.h>
8360 #endif
8361
8362 #undef gethostbyname
8363
8364 /* Override any gcc2 internal prototype to avoid an error. */
8365 #ifdef __cplusplus
8366 extern "C"
8367 {
8368 #endif
8369 /* We use char because int might match the return type of a gcc2
8370 builtin and then its argument prototype would still apply. */
8371 char gethostbyname ();
8372 /* The GNU C library defines this for functions which it implements
8373 to always fail with ENOSYS. Some functions are actually named
8374 something starting with __ and the normal name is an alias. */
8375 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8376 choke me
8377 #else
8378 char (*f) () = gethostbyname;
8379 #endif
8380 #ifdef __cplusplus
8381 }
8382 #endif
8383
8384 int
8385 main ()
8386 {
8387 return f != gethostbyname;
8388 ;
8389 return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>conftest.er1
8395 ac_status=$?
8396 grep -v '^ *+' conftest.er1 >conftest.err
8397 rm -f conftest.er1
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -z "$ac_c_werror_flag"
8402 || test ! -s conftest.err'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; } &&
8408 { ac_try='test -s conftest$ac_exeext'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_cv_func_gethostbyname=yes
8415 else
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419 ac_cv_func_gethostbyname=no
8420 fi
8421 rm -f conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
8423 fi
8424 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8425 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8426
8427 if test $ac_cv_func_gethostbyname = no; then
8428 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8429 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8430 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433 ac_check_lib_save_LIBS=$LIBS
8434 LIBS="-lnsl $LIBS"
8435 if test x$gcc_no_link = xyes; then
8436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8438 { (exit 1); exit 1; }; }
8439 fi
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 /* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8453 char gethostbyname ();
8454 int
8455 main ()
8456 {
8457 gethostbyname ();
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_lib_nsl_gethostbyname=yes
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489 ac_cv_lib_nsl_gethostbyname=no
8490 fi
8491 rm -f conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8493 LIBS=$ac_check_lib_save_LIBS
8494 fi
8495 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8496 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8497 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8498 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8499 fi
8500
8501 if test $ac_cv_lib_nsl_gethostbyname = no; then
8502 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8503 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8504 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507 ac_check_lib_save_LIBS=$LIBS
8508 LIBS="-lbsd $LIBS"
8509 if test x$gcc_no_link = xyes; then
8510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8512 { (exit 1); exit 1; }; }
8513 fi
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520
8521 /* Override any gcc2 internal prototype to avoid an error. */
8522 #ifdef __cplusplus
8523 extern "C"
8524 #endif
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8527 char gethostbyname ();
8528 int
8529 main ()
8530 {
8531 gethostbyname ();
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 rm -f conftest.$ac_objext conftest$ac_exeext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8538 (eval $ac_link) 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -z "$ac_c_werror_flag"
8546 || test ! -s conftest.err'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest$ac_exeext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_lib_bsd_gethostbyname=yes
8559 else
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563 ac_cv_lib_bsd_gethostbyname=no
8564 fi
8565 rm -f conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 LIBS=$ac_check_lib_save_LIBS
8568 fi
8569 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8570 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8571 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8572 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8573 fi
8574
8575 fi
8576 fi
8577
8578 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8579 # socket/setsockopt and other routines are undefined under SCO ODT
8580 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8581 # on later versions), says Simon Leinen: it contains gethostby*
8582 # variants that don't use the name server (or something). -lsocket
8583 # must be given before -lnsl if both are needed. We assume that
8584 # if connect needs -lnsl, so does gethostbyname.
8585 echo "$as_me:$LINENO: checking for connect" >&5
8586 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8587 if test "${ac_cv_func_connect+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 if test x$gcc_no_link = xyes; then
8591 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8593 { (exit 1); exit 1; }; }
8594 fi
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8603 #define connect innocuous_connect
8604
8605 /* System header to define __stub macros and hopefully few prototypes,
8606 which can conflict with char connect (); below.
8607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8608 <limits.h> exists even on freestanding compilers. */
8609
8610 #ifdef __STDC__
8611 # include <limits.h>
8612 #else
8613 # include <assert.h>
8614 #endif
8615
8616 #undef connect
8617
8618 /* Override any gcc2 internal prototype to avoid an error. */
8619 #ifdef __cplusplus
8620 extern "C"
8621 {
8622 #endif
8623 /* We use char because int might match the return type of a gcc2
8624 builtin and then its argument prototype would still apply. */
8625 char connect ();
8626 /* The GNU C library defines this for functions which it implements
8627 to always fail with ENOSYS. Some functions are actually named
8628 something starting with __ and the normal name is an alias. */
8629 #if defined (__stub_connect) || defined (__stub___connect)
8630 choke me
8631 #else
8632 char (*f) () = connect;
8633 #endif
8634 #ifdef __cplusplus
8635 }
8636 #endif
8637
8638 int
8639 main ()
8640 {
8641 return f != connect;
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag"
8656 || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_func_connect=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_cv_func_connect=no
8674 fi
8675 rm -f conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8677 fi
8678 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8679 echo "${ECHO_T}$ac_cv_func_connect" >&6
8680
8681 if test $ac_cv_func_connect = no; then
8682 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8683 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8684 if test "${ac_cv_lib_socket_connect+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687 ac_check_lib_save_LIBS=$LIBS
8688 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8689 if test x$gcc_no_link = xyes; then
8690 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8692 { (exit 1); exit 1; }; }
8693 fi
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h. */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700
8701 /* Override any gcc2 internal prototype to avoid an error. */
8702 #ifdef __cplusplus
8703 extern "C"
8704 #endif
8705 /* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8707 char connect ();
8708 int
8709 main ()
8710 {
8711 connect ();
8712 ;
8713 return 0;
8714 }
8715 _ACEOF
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8718 (eval $ac_link) 2>conftest.er1
8719 ac_status=$?
8720 grep -v '^ *+' conftest.er1 >conftest.err
8721 rm -f conftest.er1
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } &&
8725 { ac_try='test -z "$ac_c_werror_flag"
8726 || test ! -s conftest.err'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest$ac_exeext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 (eval $ac_try) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 ac_cv_lib_socket_connect=yes
8739 else
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743 ac_cv_lib_socket_connect=no
8744 fi
8745 rm -f conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8747 LIBS=$ac_check_lib_save_LIBS
8748 fi
8749 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8750 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8751 if test $ac_cv_lib_socket_connect = yes; then
8752 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8753 fi
8754
8755 fi
8756
8757 # Guillermo Gomez says -lposix is necessary on A/UX.
8758 echo "$as_me:$LINENO: checking for remove" >&5
8759 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8760 if test "${ac_cv_func_remove+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 if test x$gcc_no_link = xyes; then
8764 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8765 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8766 { (exit 1); exit 1; }; }
8767 fi
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8776 #define remove innocuous_remove
8777
8778 /* System header to define __stub macros and hopefully few prototypes,
8779 which can conflict with char remove (); below.
8780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8781 <limits.h> exists even on freestanding compilers. */
8782
8783 #ifdef __STDC__
8784 # include <limits.h>
8785 #else
8786 # include <assert.h>
8787 #endif
8788
8789 #undef remove
8790
8791 /* Override any gcc2 internal prototype to avoid an error. */
8792 #ifdef __cplusplus
8793 extern "C"
8794 {
8795 #endif
8796 /* We use char because int might match the return type of a gcc2
8797 builtin and then its argument prototype would still apply. */
8798 char remove ();
8799 /* The GNU C library defines this for functions which it implements
8800 to always fail with ENOSYS. Some functions are actually named
8801 something starting with __ and the normal name is an alias. */
8802 #if defined (__stub_remove) || defined (__stub___remove)
8803 choke me
8804 #else
8805 char (*f) () = remove;
8806 #endif
8807 #ifdef __cplusplus
8808 }
8809 #endif
8810
8811 int
8812 main ()
8813 {
8814 return f != remove;
8815 ;
8816 return 0;
8817 }
8818 _ACEOF
8819 rm -f conftest.$ac_objext conftest$ac_exeext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8821 (eval $ac_link) 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -z "$ac_c_werror_flag"
8829 || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_func_remove=yes
8842 else
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846 ac_cv_func_remove=no
8847 fi
8848 rm -f conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8850 fi
8851 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8852 echo "${ECHO_T}$ac_cv_func_remove" >&6
8853
8854 if test $ac_cv_func_remove = no; then
8855 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8856 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8857 if test "${ac_cv_lib_posix_remove+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-lposix $LIBS"
8862 if test x$gcc_no_link = xyes; then
8863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8865 { (exit 1); exit 1; }; }
8866 fi
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873
8874 /* Override any gcc2 internal prototype to avoid an error. */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 /* We use char because int might match the return type of a gcc2
8879 builtin and then its argument prototype would still apply. */
8880 char remove ();
8881 int
8882 main ()
8883 {
8884 remove ();
8885 ;
8886 return 0;
8887 }
8888 _ACEOF
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -z "$ac_c_werror_flag"
8899 || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_lib_posix_remove=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 ac_cv_lib_posix_remove=no
8917 fi
8918 rm -f conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8921 fi
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8923 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8924 if test $ac_cv_lib_posix_remove = yes; then
8925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8926 fi
8927
8928 fi
8929
8930 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8931 echo "$as_me:$LINENO: checking for shmat" >&5
8932 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8933 if test "${ac_cv_func_shmat+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936 if test x$gcc_no_link = xyes; then
8937 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8939 { (exit 1); exit 1; }; }
8940 fi
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8949 #define shmat innocuous_shmat
8950
8951 /* System header to define __stub macros and hopefully few prototypes,
8952 which can conflict with char shmat (); below.
8953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8954 <limits.h> exists even on freestanding compilers. */
8955
8956 #ifdef __STDC__
8957 # include <limits.h>
8958 #else
8959 # include <assert.h>
8960 #endif
8961
8962 #undef shmat
8963
8964 /* Override any gcc2 internal prototype to avoid an error. */
8965 #ifdef __cplusplus
8966 extern "C"
8967 {
8968 #endif
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971 char shmat ();
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_shmat) || defined (__stub___shmat)
8976 choke me
8977 #else
8978 char (*f) () = shmat;
8979 #endif
8980 #ifdef __cplusplus
8981 }
8982 #endif
8983
8984 int
8985 main ()
8986 {
8987 return f != shmat;
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try='test -z "$ac_c_werror_flag"
9002 || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_cv_func_shmat=yes
9015 else
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019 ac_cv_func_shmat=no
9020 fi
9021 rm -f conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 fi
9024 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9025 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9026
9027 if test $ac_cv_func_shmat = no; then
9028 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9029 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9030 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033 ac_check_lib_save_LIBS=$LIBS
9034 LIBS="-lipc $LIBS"
9035 if test x$gcc_no_link = xyes; then
9036 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9038 { (exit 1); exit 1; }; }
9039 fi
9040 cat >conftest.$ac_ext <<_ACEOF
9041 /* confdefs.h. */
9042 _ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9046
9047 /* Override any gcc2 internal prototype to avoid an error. */
9048 #ifdef __cplusplus
9049 extern "C"
9050 #endif
9051 /* We use char because int might match the return type of a gcc2
9052 builtin and then its argument prototype would still apply. */
9053 char shmat ();
9054 int
9055 main ()
9056 {
9057 shmat ();
9058 ;
9059 return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>conftest.er1
9065 ac_status=$?
9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest$ac_exeext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_lib_ipc_shmat=yes
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 ac_cv_lib_ipc_shmat=no
9090 fi
9091 rm -f conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093 LIBS=$ac_check_lib_save_LIBS
9094 fi
9095 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9096 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9097 if test $ac_cv_lib_ipc_shmat = yes; then
9098 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9099 fi
9100
9101 fi
9102 fi
9103
9104 # Check for libraries that X11R6 Xt/Xaw programs need.
9105 ac_save_LDFLAGS=$LDFLAGS
9106 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9107 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9108 # check for ICE first), but we must link in the order -lSM -lICE or
9109 # we get undefined symbols. So assume we have SM if we have ICE.
9110 # These have to be linked with before -lX11, unlike the other
9111 # libraries we check for below, so use a different variable.
9112 # John Interrante, Karl Berry
9113 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9114 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9115 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118 ac_check_lib_save_LIBS=$LIBS
9119 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9120 if test x$gcc_no_link = xyes; then
9121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9123 { (exit 1); exit 1; }; }
9124 fi
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131
9132 /* Override any gcc2 internal prototype to avoid an error. */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 /* We use char because int might match the return type of a gcc2
9137 builtin and then its argument prototype would still apply. */
9138 char IceConnectionNumber ();
9139 int
9140 main ()
9141 {
9142 IceConnectionNumber ();
9143 ;
9144 return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_lib_ICE_IceConnectionNumber=yes
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9173
9174 ac_cv_lib_ICE_IceConnectionNumber=no
9175 fi
9176 rm -f conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9179 fi
9180 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9181 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9182 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9183 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9184 fi
9185
9186 LDFLAGS=$ac_save_LDFLAGS
9187
9188 fi
9189
9190
9191 # FIXME: this should be _libs on some hosts.
9192 libsubdir=.libs
9193
9194 # extra LD Flags which are required for targets
9195 case "${host}" in
9196 *-*-darwin[0-7].*)
9197 # For now we have to disable it on darwin[8-9] because it slows down
9198 # the linking phase. A possible bug in ld?
9199 # on Darwin -single_module speeds up loading of the dynamic libraries.
9200 extra_ldflags_libjava=-Wl,-single_module
9201 ;;
9202 esac
9203
9204
9205 # Allow the GC to be disabled. Can be useful when debugging.
9206 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9207 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9208 # Check whether --enable-java-gc or --disable-java-gc was given.
9209 if test "${enable_java_gc+set}" = set; then
9210 enableval="$enable_java_gc"
9211 GC=$enableval
9212 else
9213 GC=boehm
9214 fi;
9215 GCLIBS=
9216 GCINCS=
9217 GCDEPS=
9218 GCSPEC=
9219 JC1GCSPEC=
9220 GCTESTSPEC=
9221 case "$GC" in
9222 boehm)
9223 echo "$as_me:$LINENO: result: boehm" >&5
9224 echo "${ECHO_T}boehm" >&6
9225 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9226 JC1GCSPEC='-fuse-boehm-gc'
9227 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9228 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9229 GCOBJS=boehm.lo
9230 GCHDR=boehm-gc.h
9231 # The POSIX thread support needs to know this.
9232
9233 cat >>confdefs.h <<\_ACEOF
9234 #define HAVE_BOEHM_GC 1
9235 _ACEOF
9236
9237 ;;
9238 no)
9239 echo "$as_me:$LINENO: result: none" >&5
9240 echo "${ECHO_T}none" >&6
9241 GCHDR=no-gc.h
9242 ;;
9243 *)
9244 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9245 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9246 { (exit 1); exit 1; }; }
9247 ;;
9248 esac
9249
9250
9251
9252
9253
9254
9255 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9256
9257
9258
9259 if test "$GC" = boehm; then
9260 USING_BOEHMGC_TRUE=
9261 USING_BOEHMGC_FALSE='#'
9262 else
9263 USING_BOEHMGC_TRUE='#'
9264 USING_BOEHMGC_FALSE=
9265 fi
9266
9267
9268
9269 if test "$GC" = no; then
9270 USING_NOGC_TRUE=
9271 USING_NOGC_FALSE='#'
9272 else
9273 USING_NOGC_TRUE='#'
9274 USING_NOGC_FALSE=
9275 fi
9276
9277
9278
9279 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9280 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9281 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9282 echo "$as_me:$LINENO: result: $THREADS" >&5
9283 echo "${ECHO_T}$THREADS" >&6
9284
9285 case "$THREADS" in
9286 no | none | single)
9287 THREADS=none
9288 ;;
9289 posix | posix95 | pthreads)
9290 THREADS=posix
9291 case "$host" in
9292 *-*-linux*)
9293
9294 cat >>confdefs.h <<\_ACEOF
9295 #define LINUX_THREADS 1
9296 _ACEOF
9297
9298 ;;
9299 esac
9300 ;;
9301 win32)
9302 ;;
9303 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9304 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9305 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9306 { (exit 1); exit 1; }; }
9307 ;;
9308 *)
9309 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9310 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9311 { (exit 1); exit 1; }; }
9312 ;;
9313 esac
9314
9315 THREADCXXFLAGS=
9316 THREADLDFLAGS=
9317 THREADLIBS=
9318 THREADINCS=
9319 THREADDEPS=
9320 THREADH=
9321 THREADSPEC=
9322 THREADSTARTFILESPEC=
9323 case "$THREADS" in
9324 posix)
9325 case "$host" in
9326 *-*-cygwin*)
9327 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9328 ;;
9329 *-*-freebsd[1234]*)
9330 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9331 # merely adds pthread_* functions) but it does have a -pthread switch
9332 # which is required at link-time to select -lc_r *instead* of -lc.
9333 THREADLDFLAGS=-pthread
9334 # Don't set THREADSPEC here as might be expected since -pthread is
9335 # not processed when found within a spec file, it must come from
9336 # the command line. For now, the user must provide the -pthread
9337 # switch to link code compiled with gcj. In future, consider adding
9338 # support for weak references to pthread_* functions ala gthr.h API.
9339 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9340 ;;
9341 *-*-freebsd*)
9342 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9343 # systems which support threads and -lpthread.
9344 THREADLDFLAGS=-pthread
9345 THREADSPEC=-lpthread
9346 ;;
9347 alpha*-dec-osf* | hppa*-hp-hpux*)
9348 THREADCXXFLAGS=-pthread
9349 # boehm-gc needs some functions from librt, so link that too.
9350 THREADLIBS='-lpthread -lrt'
9351 THREADSPEC='-lpthread -lrt'
9352 ;;
9353 *)
9354 THREADLIBS=-lpthread
9355 THREADSPEC=-lpthread
9356 ;;
9357 esac
9358 THREADH=posix-threads.h
9359 # MIT pthreads doesn't seem to have the mutexattr functions.
9360 # But for now we don't check for it. We just assume you aren't
9361 # using MIT pthreads.
9362
9363 cat >>confdefs.h <<\_ACEOF
9364 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9365 _ACEOF
9366
9367
9368 # If we're using the Boehm GC, then we happen to know that it
9369 # defines _REENTRANT, so we don't bother. Eww.
9370 if test "$GC" != boehm; then
9371
9372 cat >>confdefs.h <<\_ACEOF
9373 #define _REENTRANT 1
9374 _ACEOF
9375
9376 fi
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define _POSIX_PTHREAD_SEMANTICS 1
9380 _ACEOF
9381
9382 ;;
9383
9384 win32)
9385 THREADH=win32-threads.h
9386 THREADCXXFLAGS=-mthreads
9387 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9388 # But we do not want the executables created to be dependent on
9389 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9390 # exception handling contexts. The following kludge achieves this effect
9391 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9392 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9393 # A workaround is to explicitly use -mthreads while linking Java programs.
9394 # See PR libgcj/28263.
9395 #
9396 # FIXME: In Java we are able to detect thread death at the end of
9397 # Thread.run() so we should be able to clean up the exception handling
9398 # contexts ourselves.
9399 THREADSTARTFILESPEC='crtmt%O%s'
9400 ;;
9401
9402 none)
9403 THREADH=no-threads.h
9404 ;;
9405 esac
9406 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417 if test "$THREADS" = posix; then
9418 USING_POSIX_THREADS_TRUE=
9419 USING_POSIX_THREADS_FALSE='#'
9420 else
9421 USING_POSIX_THREADS_TRUE='#'
9422 USING_POSIX_THREADS_FALSE=
9423 fi
9424
9425
9426
9427 if test "$THREADS" = win32; then
9428 USING_WIN32_THREADS_TRUE=
9429 USING_WIN32_THREADS_FALSE='#'
9430 else
9431 USING_WIN32_THREADS_TRUE='#'
9432 USING_WIN32_THREADS_FALSE=
9433 fi
9434
9435
9436
9437 if test "$THREADS" = none; then
9438 USING_NO_THREADS_TRUE=
9439 USING_NO_THREADS_FALSE='#'
9440 else
9441 USING_NO_THREADS_TRUE='#'
9442 USING_NO_THREADS_FALSE=
9443 fi
9444
9445
9446
9447 if test "$use_libgcj_bc" = yes; then
9448 USE_LIBGCJ_BC_TRUE=
9449 USE_LIBGCJ_BC_FALSE='#'
9450 else
9451 USE_LIBGCJ_BC_TRUE='#'
9452 USE_LIBGCJ_BC_FALSE=
9453 fi
9454
9455
9456 if test -d sysdep; then true; else mkdir sysdep; fi
9457 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9458
9459 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9460
9461 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9462
9463
9464 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9465 if test "$use_libgcj_bc" = yes; then
9466 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9467 fi
9468
9469
9470 HASH_SYNC_SPEC=
9471 # Hash synchronization is only useful with posix threads right now.
9472 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9473 HASH_SYNC_SPEC=-fhash-synchronization
9474
9475 cat >>confdefs.h <<\_ACEOF
9476 #define JV_HASH_SYNCHRONIZATION 1
9477 _ACEOF
9478
9479 fi
9480
9481
9482
9483
9484 if test "$GCC" = yes; then
9485 USING_GCC_TRUE=
9486 USING_GCC_FALSE='#'
9487 else
9488 USING_GCC_TRUE='#'
9489 USING_GCC_FALSE=
9490 fi
9491
9492
9493 # We're in the tree with gcc, and need to include some of its headers.
9494 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
9495
9496 if test "x${with_newlib}" = "xyes"; then
9497 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9498 # may not work correctly, because the compiler may not be able to
9499 # link executables.
9500
9501 # We assume newlib. This lets us hard-code the functions we know
9502 # we'll have.
9503
9504 cat >>confdefs.h <<\_ACEOF
9505 #define HAVE_MEMMOVE 1
9506 _ACEOF
9507
9508
9509 cat >>confdefs.h <<\_ACEOF
9510 #define HAVE_MEMCPY 1
9511 _ACEOF
9512
9513
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_STRERROR 1
9516 _ACEOF
9517
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_TIME 1
9521 _ACEOF
9522
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define HAVE_GMTIME_R 1
9526 _ACEOF
9527
9528
9529 cat >>confdefs.h <<\_ACEOF
9530 #define HAVE_LOCALTIME_R 1
9531 _ACEOF
9532
9533
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_USLEEP_DECL 1
9536 _ACEOF
9537
9538 # This is only for POSIX threads.
9539
9540 cat >>confdefs.h <<\_ACEOF
9541 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9542 _ACEOF
9543
9544 # We also assume we are using gcc, which provides alloca.
9545 cat >>confdefs.h <<\_ACEOF
9546 #define HAVE_ALLOCA 1
9547 _ACEOF
9548
9549
9550 # Assume we do not have getuid and friends.
9551
9552 cat >>confdefs.h <<\_ACEOF
9553 #define NO_GETUID 1
9554 _ACEOF
9555
9556 PLATFORMNET=NoNet
9557 else
9558
9559
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 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9594 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9595 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9596 nl_langinfo setlocale \
9597 inet_pton uname inet_ntoa \
9598 fork execvp pipe sigaction ftruncate mmap \
9599 getifaddrs
9600 do
9601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602 echo "$as_me:$LINENO: checking for $ac_func" >&5
9603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9604 if eval "test \"\${$as_ac_var+set}\" = set"; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607 if test x$gcc_no_link = xyes; then
9608 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9609 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9610 { (exit 1); exit 1; }; }
9611 fi
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9620 #define $ac_func innocuous_$ac_func
9621
9622 /* System header to define __stub macros and hopefully few prototypes,
9623 which can conflict with char $ac_func (); below.
9624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9625 <limits.h> exists even on freestanding compilers. */
9626
9627 #ifdef __STDC__
9628 # include <limits.h>
9629 #else
9630 # include <assert.h>
9631 #endif
9632
9633 #undef $ac_func
9634
9635 /* Override any gcc2 internal prototype to avoid an error. */
9636 #ifdef __cplusplus
9637 extern "C"
9638 {
9639 #endif
9640 /* We use char because int might match the return type of a gcc2
9641 builtin and then its argument prototype would still apply. */
9642 char $ac_func ();
9643 /* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9647 choke me
9648 #else
9649 char (*f) () = $ac_func;
9650 #endif
9651 #ifdef __cplusplus
9652 }
9653 #endif
9654
9655 int
9656 main ()
9657 {
9658 return f != $ac_func;
9659 ;
9660 return 0;
9661 }
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag"
9673 || test ! -s conftest.err'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9685 eval "$as_ac_var=yes"
9686 else
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9689
9690 eval "$as_ac_var=no"
9691 fi
9692 rm -f conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694 fi
9695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9697 if test `eval echo '${'$as_ac_var'}'` = yes; then
9698 cat >>confdefs.h <<_ACEOF
9699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9700 _ACEOF
9701
9702 fi
9703 done
9704
9705
9706
9707 for ac_func in inet_aton inet_addr
9708 do
9709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9710 echo "$as_me:$LINENO: checking for $ac_func" >&5
9711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9712 if eval "test \"\${$as_ac_var+set}\" = set"; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715 if test x$gcc_no_link = xyes; then
9716 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9718 { (exit 1); exit 1; }; }
9719 fi
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h. */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9728 #define $ac_func innocuous_$ac_func
9729
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char $ac_func (); below.
9732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9733 <limits.h> exists even on freestanding compilers. */
9734
9735 #ifdef __STDC__
9736 # include <limits.h>
9737 #else
9738 # include <assert.h>
9739 #endif
9740
9741 #undef $ac_func
9742
9743 /* Override any gcc2 internal prototype to avoid an error. */
9744 #ifdef __cplusplus
9745 extern "C"
9746 {
9747 #endif
9748 /* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */
9750 char $ac_func ();
9751 /* The GNU C library defines this for functions which it implements
9752 to always fail with ENOSYS. Some functions are actually named
9753 something starting with __ and the normal name is an alias. */
9754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9755 choke me
9756 #else
9757 char (*f) () = $ac_func;
9758 #endif
9759 #ifdef __cplusplus
9760 }
9761 #endif
9762
9763 int
9764 main ()
9765 {
9766 return f != $ac_func;
9767 ;
9768 return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773 (eval $ac_link) 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -z "$ac_c_werror_flag"
9781 || test ! -s conftest.err'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; } &&
9787 { ac_try='test -s conftest$ac_exeext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 eval "$as_ac_var=yes"
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 eval "$as_ac_var=no"
9799 fi
9800 rm -f conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802 fi
9803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9805 if test `eval echo '${'$as_ac_var'}'` = yes; then
9806 cat >>confdefs.h <<_ACEOF
9807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9808 _ACEOF
9809 break
9810 fi
9811 done
9812
9813 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9815 if test "${ac_cv_header_stdc+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 #include <stdlib.h>
9825 #include <stdarg.h>
9826 #include <string.h>
9827 #include <float.h>
9828
9829 int
9830 main ()
9831 {
9832
9833 ;
9834 return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9839 (eval $ac_compile) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest.$ac_objext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_cv_header_stdc=yes
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 ac_cv_header_stdc=no
9865 fi
9866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9867
9868 if test $ac_cv_header_stdc = yes; then
9869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h. */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9876 #include <string.h>
9877
9878 _ACEOF
9879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9880 $EGREP "memchr" >/dev/null 2>&1; then
9881 :
9882 else
9883 ac_cv_header_stdc=no
9884 fi
9885 rm -f conftest*
9886
9887 fi
9888
9889 if test $ac_cv_header_stdc = yes; then
9890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <stdlib.h>
9898
9899 _ACEOF
9900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9901 $EGREP "free" >/dev/null 2>&1; then
9902 :
9903 else
9904 ac_cv_header_stdc=no
9905 fi
9906 rm -f conftest*
9907
9908 fi
9909
9910 if test $ac_cv_header_stdc = yes; then
9911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9912 if test "$cross_compiling" = yes; then
9913 :
9914 else
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h. */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 #include <ctype.h>
9922 #if ((' ' & 0x0FF) == 0x020)
9923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9925 #else
9926 # define ISLOWER(c) \
9927 (('a' <= (c) && (c) <= 'i') \
9928 || ('j' <= (c) && (c) <= 'r') \
9929 || ('s' <= (c) && (c) <= 'z'))
9930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9931 #endif
9932
9933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9934 int
9935 main ()
9936 {
9937 int i;
9938 for (i = 0; i < 256; i++)
9939 if (XOR (islower (i), ISLOWER (i))
9940 || toupper (i) != TOUPPER (i))
9941 exit(2);
9942 exit (0);
9943 }
9944 _ACEOF
9945 rm -f conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; }; then
9956 :
9957 else
9958 echo "$as_me: program exited with status $ac_status" >&5
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9961
9962 ( exit $ac_status )
9963 ac_cv_header_stdc=no
9964 fi
9965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9966 fi
9967 fi
9968 fi
9969 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9970 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9971 if test $ac_cv_header_stdc = yes; then
9972
9973 cat >>confdefs.h <<\_ACEOF
9974 #define STDC_HEADERS 1
9975 _ACEOF
9976
9977 fi
9978
9979 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9990 inttypes.h stdint.h unistd.h
9991 do
9992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9993 echo "$as_me:$LINENO: checking for $ac_header" >&5
9994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h. */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 $ac_includes_default
10005
10006 #include <$ac_header>
10007 _ACEOF
10008 rm -f conftest.$ac_objext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10010 (eval $ac_compile) 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag"
10018 || test ! -s conftest.err'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest.$ac_objext'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 eval "$as_ac_Header=yes"
10031 else
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035 eval "$as_ac_Header=no"
10036 fi
10037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10038 fi
10039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10042 cat >>confdefs.h <<_ACEOF
10043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10044 _ACEOF
10045
10046 fi
10047
10048 done
10049
10050
10051
10052
10053
10054 for ac_header in execinfo.h unistd.h dlfcn.h
10055 do
10056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10058 echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 fi
10063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10065 else
10066 # Is the header compilable?
10067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 $ac_includes_default
10076 #include <$ac_header>
10077 _ACEOF
10078 rm -f conftest.$ac_objext
10079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10080 (eval $ac_compile) 2>conftest.er1
10081 ac_status=$?
10082 grep -v '^ *+' conftest.er1 >conftest.err
10083 rm -f conftest.er1
10084 cat conftest.err >&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } &&
10087 { ac_try='test -z "$ac_c_werror_flag"
10088 || test ! -s conftest.err'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; } &&
10094 { ac_try='test -s conftest.$ac_objext'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 ac_header_compiler=yes
10101 else
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105 ac_header_compiler=no
10106 fi
10107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10109 echo "${ECHO_T}$ac_header_compiler" >&6
10110
10111 # Is the header present?
10112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <$ac_header>
10121 _ACEOF
10122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } >/dev/null; then
10130 if test -s conftest.err; then
10131 ac_cpp_err=$ac_c_preproc_warn_flag
10132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10133 else
10134 ac_cpp_err=
10135 fi
10136 else
10137 ac_cpp_err=yes
10138 fi
10139 if test -z "$ac_cpp_err"; then
10140 ac_header_preproc=yes
10141 else
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 ac_header_preproc=no
10146 fi
10147 rm -f conftest.err conftest.$ac_ext
10148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10149 echo "${ECHO_T}$ac_header_preproc" >&6
10150
10151 # So? What about this header?
10152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10153 yes:no: )
10154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10158 ac_header_preproc=yes
10159 ;;
10160 no:yes:* )
10161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10173 (
10174 cat <<\_ASBOX
10175 ## ---------------------------------- ##
10176 ## Report this to the libjava lists. ##
10177 ## ---------------------------------- ##
10178 _ASBOX
10179 ) |
10180 sed "s/^/$as_me: WARNING: /" >&2
10181 ;;
10182 esac
10183 echo "$as_me:$LINENO: checking for $ac_header" >&5
10184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188 eval "$as_ac_Header=\$ac_header_preproc"
10189 fi
10190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10192
10193 fi
10194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10195 cat >>confdefs.h <<_ACEOF
10196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10197 _ACEOF
10198
10199 fi
10200
10201 done
10202
10203 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10204 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10205 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10206 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 ac_check_lib_save_LIBS=$LIBS
10210 LIBS="-ldl $LIBS"
10211 if test x$gcc_no_link = xyes; then
10212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10214 { (exit 1); exit 1; }; }
10215 fi
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h. */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222
10223 /* Override any gcc2 internal prototype to avoid an error. */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 /* We use char because int might match the return type of a gcc2
10228 builtin and then its argument prototype would still apply. */
10229 char dladdr ();
10230 int
10231 main ()
10232 {
10233 dladdr ();
10234 ;
10235 return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240 (eval $ac_link) 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_c_werror_flag"
10248 || test ! -s conftest.err'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_dl_dladdr=yes
10261 else
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 ac_cv_lib_dl_dladdr=no
10266 fi
10267 rm -f conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10270 fi
10271 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10272 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10273 if test $ac_cv_lib_dl_dladdr = yes; then
10274
10275
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_DLADDR 1
10278 _ACEOF
10279
10280 else
10281
10282 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10283 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10284 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287 ac_check_lib_save_LIBS=$LIBS
10288 LIBS="-ldld $LIBS"
10289 if test x$gcc_no_link = xyes; then
10290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10292 { (exit 1); exit 1; }; }
10293 fi
10294 cat >conftest.$ac_ext <<_ACEOF
10295 /* confdefs.h. */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10300
10301 /* Override any gcc2 internal prototype to avoid an error. */
10302 #ifdef __cplusplus
10303 extern "C"
10304 #endif
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10307 char dladdr ();
10308 int
10309 main ()
10310 {
10311 dladdr ();
10312 ;
10313 return 0;
10314 }
10315 _ACEOF
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318 (eval $ac_link) 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag"
10326 || test ! -s conftest.err'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; } &&
10332 { ac_try='test -s conftest$ac_exeext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_cv_lib_dld_dladdr=yes
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 ac_cv_lib_dld_dladdr=no
10344 fi
10345 rm -f conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10348 fi
10349 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10350 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10351 if test $ac_cv_lib_dld_dladdr = yes; then
10352
10353
10354 cat >>confdefs.h <<\_ACEOF
10355 #define HAVE_DLADDR 1
10356 _ACEOF
10357
10358 fi
10359
10360 fi
10361
10362
10363 if test x"$cross_compiling" = x"no"; then
10364 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10365 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10366 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369 test "$cross_compiling" = yes &&
10370 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10371 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10372 { (exit 1); exit 1; }; }
10373 if test -r "/proc/self/exe"; then
10374 ac_cv_file__proc_self_exe=yes
10375 else
10376 ac_cv_file__proc_self_exe=no
10377 fi
10378 fi
10379 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10380 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10381 if test $ac_cv_file__proc_self_exe = yes; then
10382
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE__PROC_SELF_EXE 1
10385 _ACEOF
10386
10387
10388
10389 cat >>confdefs.h <<\_ACEOF
10390 #define HAVE_PROC_SELF_EXE 1
10391 _ACEOF
10392
10393 fi
10394
10395 else
10396 case $host in
10397 *-linux*)
10398
10399 cat >>confdefs.h <<\_ACEOF
10400 #define HAVE_PROC_SELF_EXE 1
10401 _ACEOF
10402
10403 ;;
10404 esac
10405 fi
10406
10407
10408 if test "X$prefix" = "XNONE"; then
10409 acl_final_prefix="$ac_default_prefix"
10410 else
10411 acl_final_prefix="$prefix"
10412 fi
10413 if test "X$exec_prefix" = "XNONE"; then
10414 acl_final_exec_prefix='${prefix}'
10415 else
10416 acl_final_exec_prefix="$exec_prefix"
10417 fi
10418 acl_save_prefix="$prefix"
10419 prefix="$acl_final_prefix"
10420 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10421 prefix="$acl_save_prefix"
10422
10423
10424 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10425 if test "${with_gnu_ld+set}" = set; then
10426 withval="$with_gnu_ld"
10427 test "$withval" = no || with_gnu_ld=yes
10428 else
10429 with_gnu_ld=no
10430 fi;
10431 # Prepare PATH_SEPARATOR.
10432 # The user is always right.
10433 if test "${PATH_SEPARATOR+set}" != set; then
10434 echo "#! /bin/sh" >conf$$.sh
10435 echo "exit 0" >>conf$$.sh
10436 chmod +x conf$$.sh
10437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10438 PATH_SEPARATOR=';'
10439 else
10440 PATH_SEPARATOR=:
10441 fi
10442 rm -f conf$$.sh
10443 fi
10444 ac_prog=ld
10445 if test "$GCC" = yes; then
10446 # Check if gcc -print-prog-name=ld gives a path.
10447 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10448 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10449 case $host in
10450 *-*-mingw*)
10451 # gcc leaves a trailing carriage return which upsets mingw
10452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10453 *)
10454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10455 esac
10456 case $ac_prog in
10457 # Accept absolute paths.
10458 [\\/]* | [A-Za-z]:[\\/]*)
10459 re_direlt='/[^/][^/]*/\.\./'
10460 # Canonicalize the path of ld
10461 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10462 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10463 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10464 done
10465 test -z "$LD" && LD="$ac_prog"
10466 ;;
10467 "")
10468 # If it fails, then pretend we aren't using GCC.
10469 ac_prog=ld
10470 ;;
10471 *)
10472 # If it is relative, then search for the first ld in PATH.
10473 with_gnu_ld=unknown
10474 ;;
10475 esac
10476 elif test "$with_gnu_ld" = yes; then
10477 echo "$as_me:$LINENO: checking for GNU ld" >&5
10478 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10479 else
10480 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10481 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10482 fi
10483 if test "${acl_cv_path_LD+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486 if test -z "$LD"; then
10487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10488 for ac_dir in $PATH; do
10489 test -z "$ac_dir" && ac_dir=.
10490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10491 acl_cv_path_LD="$ac_dir/$ac_prog"
10492 # Check to see if the program is GNU ld. I'd rather use --version,
10493 # but apparently some GNU ld's only accept -v.
10494 # Break only if it was the GNU/non-GNU ld that we prefer.
10495 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10496 test "$with_gnu_ld" != no && break
10497 else
10498 test "$with_gnu_ld" != yes && break
10499 fi
10500 fi
10501 done
10502 IFS="$ac_save_ifs"
10503 else
10504 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10505 fi
10506 fi
10507
10508 LD="$acl_cv_path_LD"
10509 if test -n "$LD"; then
10510 echo "$as_me:$LINENO: result: $LD" >&5
10511 echo "${ECHO_T}$LD" >&6
10512 else
10513 echo "$as_me:$LINENO: result: no" >&5
10514 echo "${ECHO_T}no" >&6
10515 fi
10516 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10517 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10518 { (exit 1); exit 1; }; }
10519 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10520 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10521 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10525 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10526 acl_cv_prog_gnu_ld=yes
10527 else
10528 acl_cv_prog_gnu_ld=no
10529 fi
10530 fi
10531 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10532 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10533 with_gnu_ld=$acl_cv_prog_gnu_ld
10534
10535
10536
10537 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10538 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10539 if test "${acl_cv_rpath+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542
10543 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10544 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10545 . ./conftest.sh
10546 rm -f ./conftest.sh
10547 acl_cv_rpath=done
10548
10549 fi
10550 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10551 echo "${ECHO_T}$acl_cv_rpath" >&6
10552 wl="$acl_cv_wl"
10553 libext="$acl_cv_libext"
10554 shlibext="$acl_cv_shlibext"
10555 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10556 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10557 hardcode_direct="$acl_cv_hardcode_direct"
10558 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10559 # Check whether --enable-rpath or --disable-rpath was given.
10560 if test "${enable_rpath+set}" = set; then
10561 enableval="$enable_rpath"
10562 :
10563 else
10564 enable_rpath=yes
10565 fi;
10566
10567
10568
10569
10570
10571
10572
10573 use_additional=yes
10574
10575 acl_save_prefix="$prefix"
10576 prefix="$acl_final_prefix"
10577 acl_save_exec_prefix="$exec_prefix"
10578 exec_prefix="$acl_final_exec_prefix"
10579
10580 eval additional_includedir=\"$includedir\"
10581 eval additional_libdir=\"$libdir\"
10582
10583 exec_prefix="$acl_save_exec_prefix"
10584 prefix="$acl_save_prefix"
10585
10586
10587 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10588 if test "${with_libiconv_prefix+set}" = set; then
10589 withval="$with_libiconv_prefix"
10590
10591 if test "X$withval" = "Xno"; then
10592 use_additional=no
10593 else
10594 if test "X$withval" = "X"; then
10595
10596 acl_save_prefix="$prefix"
10597 prefix="$acl_final_prefix"
10598 acl_save_exec_prefix="$exec_prefix"
10599 exec_prefix="$acl_final_exec_prefix"
10600
10601 eval additional_includedir=\"$includedir\"
10602 eval additional_libdir=\"$libdir\"
10603
10604 exec_prefix="$acl_save_exec_prefix"
10605 prefix="$acl_save_prefix"
10606
10607 else
10608 additional_includedir="$withval/include"
10609 additional_libdir="$withval/lib"
10610 fi
10611 fi
10612
10613 fi;
10614 LIBICONV=
10615 LTLIBICONV=
10616 INCICONV=
10617 rpathdirs=
10618 ltrpathdirs=
10619 names_already_handled=
10620 names_next_round='iconv '
10621 while test -n "$names_next_round"; do
10622 names_this_round="$names_next_round"
10623 names_next_round=
10624 for name in $names_this_round; do
10625 already_handled=
10626 for n in $names_already_handled; do
10627 if test "$n" = "$name"; then
10628 already_handled=yes
10629 break
10630 fi
10631 done
10632 if test -z "$already_handled"; then
10633 names_already_handled="$names_already_handled $name"
10634 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10635 eval value=\"\$HAVE_LIB$uppername\"
10636 if test -n "$value"; then
10637 if test "$value" = yes; then
10638 eval value=\"\$LIB$uppername\"
10639 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10640 eval value=\"\$LTLIB$uppername\"
10641 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10642 else
10643 :
10644 fi
10645 else
10646 found_dir=
10647 found_la=
10648 found_so=
10649 found_a=
10650 if test $use_additional = yes; then
10651 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10652 found_dir="$additional_libdir"
10653 found_so="$additional_libdir/lib$name.$shlibext"
10654 if test -f "$additional_libdir/lib$name.la"; then
10655 found_la="$additional_libdir/lib$name.la"
10656 fi
10657 else
10658 if test -f "$additional_libdir/lib$name.$libext"; then
10659 found_dir="$additional_libdir"
10660 found_a="$additional_libdir/lib$name.$libext"
10661 if test -f "$additional_libdir/lib$name.la"; then
10662 found_la="$additional_libdir/lib$name.la"
10663 fi
10664 fi
10665 fi
10666 fi
10667 if test "X$found_dir" = "X"; then
10668 for x in $LDFLAGS $LTLIBICONV; do
10669
10670 acl_save_prefix="$prefix"
10671 prefix="$acl_final_prefix"
10672 acl_save_exec_prefix="$exec_prefix"
10673 exec_prefix="$acl_final_exec_prefix"
10674 eval x=\"$x\"
10675 exec_prefix="$acl_save_exec_prefix"
10676 prefix="$acl_save_prefix"
10677
10678 case "$x" in
10679 -L*)
10680 dir=`echo "X$x" | sed -e 's/^X-L//'`
10681 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10682 found_dir="$dir"
10683 found_so="$dir/lib$name.$shlibext"
10684 if test -f "$dir/lib$name.la"; then
10685 found_la="$dir/lib$name.la"
10686 fi
10687 else
10688 if test -f "$dir/lib$name.$libext"; then
10689 found_dir="$dir"
10690 found_a="$dir/lib$name.$libext"
10691 if test -f "$dir/lib$name.la"; then
10692 found_la="$dir/lib$name.la"
10693 fi
10694 fi
10695 fi
10696 ;;
10697 esac
10698 if test "X$found_dir" != "X"; then
10699 break
10700 fi
10701 done
10702 fi
10703 if test "X$found_dir" != "X"; then
10704 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10705 if test "X$found_so" != "X"; then
10706 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10707 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10708 else
10709 haveit=
10710 for x in $ltrpathdirs; do
10711 if test "X$x" = "X$found_dir"; then
10712 haveit=yes
10713 break
10714 fi
10715 done
10716 if test -z "$haveit"; then
10717 ltrpathdirs="$ltrpathdirs $found_dir"
10718 fi
10719 if test "$hardcode_direct" = yes; then
10720 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10721 else
10722 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10723 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10724 haveit=
10725 for x in $rpathdirs; do
10726 if test "X$x" = "X$found_dir"; then
10727 haveit=yes
10728 break
10729 fi
10730 done
10731 if test -z "$haveit"; then
10732 rpathdirs="$rpathdirs $found_dir"
10733 fi
10734 else
10735 haveit=
10736 for x in $LDFLAGS $LIBICONV; do
10737
10738 acl_save_prefix="$prefix"
10739 prefix="$acl_final_prefix"
10740 acl_save_exec_prefix="$exec_prefix"
10741 exec_prefix="$acl_final_exec_prefix"
10742 eval x=\"$x\"
10743 exec_prefix="$acl_save_exec_prefix"
10744 prefix="$acl_save_prefix"
10745
10746 if test "X$x" = "X-L$found_dir"; then
10747 haveit=yes
10748 break
10749 fi
10750 done
10751 if test -z "$haveit"; then
10752 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10753 fi
10754 if test "$hardcode_minus_L" != no; then
10755 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10756 else
10757 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10758 fi
10759 fi
10760 fi
10761 fi
10762 else
10763 if test "X$found_a" != "X"; then
10764 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10765 else
10766 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10767 fi
10768 fi
10769 additional_includedir=
10770 case "$found_dir" in
10771 */lib | */lib/)
10772 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10773 additional_includedir="$basedir/include"
10774 ;;
10775 esac
10776 if test "X$additional_includedir" != "X"; then
10777 if test "X$additional_includedir" != "X/usr/include"; then
10778 haveit=
10779 if test "X$additional_includedir" = "X/usr/local/include"; then
10780 if test -n "$GCC"; then
10781 case $host_os in
10782 linux*) haveit=yes;;
10783 esac
10784 fi
10785 fi
10786 if test -z "$haveit"; then
10787 for x in $CPPFLAGS $INCICONV; do
10788
10789 acl_save_prefix="$prefix"
10790 prefix="$acl_final_prefix"
10791 acl_save_exec_prefix="$exec_prefix"
10792 exec_prefix="$acl_final_exec_prefix"
10793 eval x=\"$x\"
10794 exec_prefix="$acl_save_exec_prefix"
10795 prefix="$acl_save_prefix"
10796
10797 if test "X$x" = "X-I$additional_includedir"; then
10798 haveit=yes
10799 break
10800 fi
10801 done
10802 if test -z "$haveit"; then
10803 if test -d "$additional_includedir"; then
10804 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10805 fi
10806 fi
10807 fi
10808 fi
10809 fi
10810 if test -n "$found_la"; then
10811 save_libdir="$libdir"
10812 case "$found_la" in
10813 */* | *\\*) . "$found_la" ;;
10814 *) . "./$found_la" ;;
10815 esac
10816 libdir="$save_libdir"
10817 for dep in $dependency_libs; do
10818 case "$dep" in
10819 -L*)
10820 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10821 if test "X$additional_libdir" != "X/usr/lib"; then
10822 haveit=
10823 if test "X$additional_libdir" = "X/usr/local/lib"; then
10824 if test -n "$GCC"; then
10825 case $host_os in
10826 linux*) haveit=yes;;
10827 esac
10828 fi
10829 fi
10830 if test -z "$haveit"; then
10831 haveit=
10832 for x in $LDFLAGS $LIBICONV; do
10833
10834 acl_save_prefix="$prefix"
10835 prefix="$acl_final_prefix"
10836 acl_save_exec_prefix="$exec_prefix"
10837 exec_prefix="$acl_final_exec_prefix"
10838 eval x=\"$x\"
10839 exec_prefix="$acl_save_exec_prefix"
10840 prefix="$acl_save_prefix"
10841
10842 if test "X$x" = "X-L$additional_libdir"; then
10843 haveit=yes
10844 break
10845 fi
10846 done
10847 if test -z "$haveit"; then
10848 if test -d "$additional_libdir"; then
10849 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10850 fi
10851 fi
10852 haveit=
10853 for x in $LDFLAGS $LTLIBICONV; do
10854
10855 acl_save_prefix="$prefix"
10856 prefix="$acl_final_prefix"
10857 acl_save_exec_prefix="$exec_prefix"
10858 exec_prefix="$acl_final_exec_prefix"
10859 eval x=\"$x\"
10860 exec_prefix="$acl_save_exec_prefix"
10861 prefix="$acl_save_prefix"
10862
10863 if test "X$x" = "X-L$additional_libdir"; then
10864 haveit=yes
10865 break
10866 fi
10867 done
10868 if test -z "$haveit"; then
10869 if test -d "$additional_libdir"; then
10870 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10871 fi
10872 fi
10873 fi
10874 fi
10875 ;;
10876 -R*)
10877 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10878 if test "$enable_rpath" != no; then
10879 haveit=
10880 for x in $rpathdirs; do
10881 if test "X$x" = "X$dir"; then
10882 haveit=yes
10883 break
10884 fi
10885 done
10886 if test -z "$haveit"; then
10887 rpathdirs="$rpathdirs $dir"
10888 fi
10889 haveit=
10890 for x in $ltrpathdirs; do
10891 if test "X$x" = "X$dir"; then
10892 haveit=yes
10893 break
10894 fi
10895 done
10896 if test -z "$haveit"; then
10897 ltrpathdirs="$ltrpathdirs $dir"
10898 fi
10899 fi
10900 ;;
10901 -l*)
10902 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10903 ;;
10904 *.la)
10905 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10906 ;;
10907 *)
10908 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10910 ;;
10911 esac
10912 done
10913 fi
10914 else
10915 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10916 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10917 fi
10918 fi
10919 fi
10920 done
10921 done
10922 if test "X$rpathdirs" != "X"; then
10923 if test -n "$hardcode_libdir_separator"; then
10924 alldirs=
10925 for found_dir in $rpathdirs; do
10926 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10927 done
10928 acl_save_libdir="$libdir"
10929 libdir="$alldirs"
10930 eval flag=\"$hardcode_libdir_flag_spec\"
10931 libdir="$acl_save_libdir"
10932 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10933 else
10934 for found_dir in $rpathdirs; do
10935 acl_save_libdir="$libdir"
10936 libdir="$found_dir"
10937 eval flag=\"$hardcode_libdir_flag_spec\"
10938 libdir="$acl_save_libdir"
10939 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10940 done
10941 fi
10942 fi
10943 if test "X$ltrpathdirs" != "X"; then
10944 for found_dir in $ltrpathdirs; do
10945 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10946 done
10947 fi
10948
10949
10950
10951
10952
10953
10954
10955 am_save_CPPFLAGS="$CPPFLAGS"
10956
10957 for element in $INCICONV; do
10958 haveit=
10959 for x in $CPPFLAGS; do
10960
10961 acl_save_prefix="$prefix"
10962 prefix="$acl_final_prefix"
10963 acl_save_exec_prefix="$exec_prefix"
10964 exec_prefix="$acl_final_exec_prefix"
10965 eval x=\"$x\"
10966 exec_prefix="$acl_save_exec_prefix"
10967 prefix="$acl_save_prefix"
10968
10969 if test "X$x" = "X$element"; then
10970 haveit=yes
10971 break
10972 fi
10973 done
10974 if test -z "$haveit"; then
10975 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10976 fi
10977 done
10978
10979
10980 echo "$as_me:$LINENO: checking for iconv" >&5
10981 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10982 if test "${am_cv_func_iconv+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985
10986 am_cv_func_iconv="no, consider installing GNU libiconv"
10987 am_cv_lib_iconv=no
10988 if test x$gcc_no_link = xyes; then
10989 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10990 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10991 { (exit 1); exit 1; }; }
10992 fi
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h. */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 #include <stdlib.h>
11000 #include <iconv.h>
11001 int
11002 main ()
11003 {
11004 iconv_t cd = iconv_open("","");
11005 iconv(cd,NULL,NULL,NULL,NULL);
11006 iconv_close(cd);
11007 ;
11008 return 0;
11009 }
11010 _ACEOF
11011 rm -f conftest.$ac_objext conftest$ac_exeext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013 (eval $ac_link) 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest$ac_exeext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 am_cv_func_iconv=yes
11034 else
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 fi
11039 rm -f conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11041 if test "$am_cv_func_iconv" != yes; then
11042 am_save_LIBS="$LIBS"
11043 LIBS="$LIBS $LIBICONV"
11044 if test x$gcc_no_link = xyes; then
11045 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11046 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11047 { (exit 1); exit 1; }; }
11048 fi
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #include <stdlib.h>
11056 #include <iconv.h>
11057 int
11058 main ()
11059 {
11060 iconv_t cd = iconv_open("","");
11061 iconv(cd,NULL,NULL,NULL,NULL);
11062 iconv_close(cd);
11063 ;
11064 return 0;
11065 }
11066 _ACEOF
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11069 (eval $ac_link) 2>conftest.er1
11070 ac_status=$?
11071 grep -v '^ *+' conftest.er1 >conftest.err
11072 rm -f conftest.er1
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } &&
11076 { ac_try='test -z "$ac_c_werror_flag"
11077 || test ! -s conftest.err'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
11083 { ac_try='test -s conftest$ac_exeext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 am_cv_lib_iconv=yes
11090 am_cv_func_iconv=yes
11091 else
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 fi
11096 rm -f conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098 LIBS="$am_save_LIBS"
11099 fi
11100
11101 fi
11102 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11103 echo "${ECHO_T}$am_cv_func_iconv" >&6
11104 if test "$am_cv_func_iconv" = yes; then
11105
11106 cat >>confdefs.h <<\_ACEOF
11107 #define HAVE_ICONV 1
11108 _ACEOF
11109
11110 fi
11111 if test "$am_cv_lib_iconv" = yes; then
11112 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11113 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11114 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11115 echo "${ECHO_T}$LIBICONV" >&6
11116 else
11117 CPPFLAGS="$am_save_CPPFLAGS"
11118 LIBICONV=
11119 LTLIBICONV=
11120 fi
11121
11122
11123
11124 if test "$am_cv_func_iconv" = yes; then
11125 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11126 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11127 if test "${am_cv_proto_iconv+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h. */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137
11138 #include <stdlib.h>
11139 #include <iconv.h>
11140 extern
11141 #ifdef __cplusplus
11142 "C"
11143 #endif
11144 #if defined(__STDC__) || defined(__cplusplus)
11145 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11146 #else
11147 size_t iconv();
11148 #endif
11149
11150 int
11151 main ()
11152 {
11153
11154 ;
11155 return 0;
11156 }
11157 _ACEOF
11158 rm -f conftest.$ac_objext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160 (eval $ac_compile) 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest.$ac_objext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 am_cv_proto_iconv_arg1=""
11181 else
11182 echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11184
11185 am_cv_proto_iconv_arg1="const"
11186 fi
11187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11188 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);"
11189 fi
11190
11191 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11192 echo "$as_me:$LINENO: result: ${ac_t:-
11193 }$am_cv_proto_iconv" >&5
11194 echo "${ECHO_T}${ac_t:-
11195 }$am_cv_proto_iconv" >&6
11196
11197 cat >>confdefs.h <<_ACEOF
11198 #define ICONV_CONST $am_cv_proto_iconv_arg1
11199 _ACEOF
11200
11201 fi
11202
11203
11204 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11205 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11206 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209 if test x$gcc_no_link = xyes; then
11210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11212 { (exit 1); exit 1; }; }
11213 fi
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 #include <locale.h>
11221 int
11222 main ()
11223 {
11224 return LC_MESSAGES
11225 ;
11226 return 0;
11227 }
11228 _ACEOF
11229 rm -f conftest.$ac_objext conftest$ac_exeext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>conftest.er1
11232 ac_status=$?
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
11238 { ac_try='test -z "$ac_c_werror_flag"
11239 || test ! -s conftest.err'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; } &&
11245 { ac_try='test -s conftest$ac_exeext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 am_cv_val_LC_MESSAGES=yes
11252 else
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256 am_cv_val_LC_MESSAGES=no
11257 fi
11258 rm -f conftest.err conftest.$ac_objext \
11259 conftest$ac_exeext conftest.$ac_ext
11260 fi
11261 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11262 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11263 if test $am_cv_val_LC_MESSAGES = yes; then
11264
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_LC_MESSAGES 1
11267 _ACEOF
11268
11269 fi
11270
11271 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11272 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11273 if test "${ac_cv_struct_tm+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h. */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 #include <sys/types.h>
11283 #include <time.h>
11284
11285 int
11286 main ()
11287 {
11288 struct tm *tp; tp->tm_sec;
11289 ;
11290 return 0;
11291 }
11292 _ACEOF
11293 rm -f conftest.$ac_objext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295 (eval $ac_compile) 2>conftest.er1
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_c_werror_flag"
11303 || test ! -s conftest.err'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 ac_cv_struct_tm=time.h
11316 else
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11319
11320 ac_cv_struct_tm=sys/time.h
11321 fi
11322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11323 fi
11324 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11325 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11326 if test $ac_cv_struct_tm = sys/time.h; then
11327
11328 cat >>confdefs.h <<\_ACEOF
11329 #define TM_IN_SYS_TIME 1
11330 _ACEOF
11331
11332 fi
11333
11334 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11335 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11336 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #include <sys/types.h>
11346 #include <$ac_cv_struct_tm>
11347
11348
11349 int
11350 main ()
11351 {
11352 static struct tm ac_aggr;
11353 if (ac_aggr.tm_zone)
11354 return 0;
11355 ;
11356 return 0;
11357 }
11358 _ACEOF
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361 (eval $ac_compile) 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_member_struct_tm_tm_zone=yes
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11385
11386 cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h. */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 #include <sys/types.h>
11393 #include <$ac_cv_struct_tm>
11394
11395
11396 int
11397 main ()
11398 {
11399 static struct tm ac_aggr;
11400 if (sizeof ac_aggr.tm_zone)
11401 return 0;
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 rm -f conftest.$ac_objext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11408 (eval $ac_compile) 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_cv_member_struct_tm_tm_zone=yes
11429 else
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_cv_member_struct_tm_tm_zone=no
11434 fi
11435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11436 fi
11437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11438 fi
11439 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11440 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11441 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11442
11443 cat >>confdefs.h <<_ACEOF
11444 #define HAVE_STRUCT_TM_TM_ZONE 1
11445 _ACEOF
11446
11447
11448 fi
11449
11450 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11451
11452 cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_TM_ZONE 1
11454 _ACEOF
11455
11456 else
11457 echo "$as_me:$LINENO: checking for tzname" >&5
11458 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11459 if test "${ac_cv_var_tzname+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 if test x$gcc_no_link = xyes; then
11463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11464 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11465 { (exit 1); exit 1; }; }
11466 fi
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 #include <time.h>
11474 #ifndef tzname /* For SGI. */
11475 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11476 #endif
11477
11478 int
11479 main ()
11480 {
11481 atoi(*tzname);
11482 ;
11483 return 0;
11484 }
11485 _ACEOF
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11488 (eval $ac_link) 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag"
11496 || test ! -s conftest.err'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest$ac_exeext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_cv_var_tzname=yes
11509 else
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 ac_cv_var_tzname=no
11514 fi
11515 rm -f conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11517 fi
11518 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11519 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11520 if test $ac_cv_var_tzname = yes; then
11521
11522 cat >>confdefs.h <<\_ACEOF
11523 #define HAVE_TZNAME 1
11524 _ACEOF
11525
11526 fi
11527 fi
11528
11529
11530
11531
11532 for ac_func in gethostbyname_r
11533 do
11534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11535 echo "$as_me:$LINENO: checking for $ac_func" >&5
11536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11537 if eval "test \"\${$as_ac_var+set}\" = set"; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 if test x$gcc_no_link = xyes; then
11541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11543 { (exit 1); exit 1; }; }
11544 fi
11545 cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h. */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11553 #define $ac_func innocuous_$ac_func
11554
11555 /* System header to define __stub macros and hopefully few prototypes,
11556 which can conflict with char $ac_func (); below.
11557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11558 <limits.h> exists even on freestanding compilers. */
11559
11560 #ifdef __STDC__
11561 # include <limits.h>
11562 #else
11563 # include <assert.h>
11564 #endif
11565
11566 #undef $ac_func
11567
11568 /* Override any gcc2 internal prototype to avoid an error. */
11569 #ifdef __cplusplus
11570 extern "C"
11571 {
11572 #endif
11573 /* We use char because int might match the return type of a gcc2
11574 builtin and then its argument prototype would still apply. */
11575 char $ac_func ();
11576 /* The GNU C library defines this for functions which it implements
11577 to always fail with ENOSYS. Some functions are actually named
11578 something starting with __ and the normal name is an alias. */
11579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11580 choke me
11581 #else
11582 char (*f) () = $ac_func;
11583 #endif
11584 #ifdef __cplusplus
11585 }
11586 #endif
11587
11588 int
11589 main ()
11590 {
11591 return f != $ac_func;
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 rm -f conftest.$ac_objext conftest$ac_exeext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11598 (eval $ac_link) 2>conftest.er1
11599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag"
11606 || test ! -s conftest.err'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } &&
11612 { ac_try='test -s conftest$ac_exeext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 eval "$as_ac_var=yes"
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 eval "$as_ac_var=no"
11624 fi
11625 rm -f conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627 fi
11628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11630 if test `eval echo '${'$as_ac_var'}'` = yes; then
11631 cat >>confdefs.h <<_ACEOF
11632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11633 _ACEOF
11634
11635
11636 cat >>confdefs.h <<\_ACEOF
11637 #define HAVE_GETHOSTBYNAME_R 1
11638 _ACEOF
11639
11640 # There are two different kinds of gethostbyname_r.
11641 # We look for the one that returns `int'.
11642 # Hopefully this check is robust enough.
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h. */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 #include <netdb.h>
11650
11651 _ACEOF
11652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11653 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11654
11655
11656 cat >>confdefs.h <<\_ACEOF
11657 #define GETHOSTBYNAME_R_RETURNS_INT 1
11658 _ACEOF
11659
11660 fi
11661 rm -f conftest*
11662
11663
11664 case " $GCINCS " in
11665 *" -D_REENTRANT "*) ;;
11666 *)
11667 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11668 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11669 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672 ac_ext=cc
11673 ac_cpp='$CXXCPP $CPPFLAGS'
11674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11677
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 #include <netdb.h>
11685 int
11686 main ()
11687 {
11688 gethostbyname_r("", 0, 0);
11689 ;
11690 return 0;
11691 }
11692 _ACEOF
11693 rm -f conftest.$ac_objext
11694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11695 (eval $ac_compile) 2>conftest.er1
11696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } &&
11702 { ac_try='test -z "$ac_cxx_werror_flag"
11703 || test ! -s conftest.err'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; } &&
11709 { ac_try='test -s conftest.$ac_objext'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 libjava_cv_gethostbyname_r_needs_reentrant=no
11716 else
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 CPPFLAGS_SAVE="$CPPFLAGS"
11721 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h. */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 #include <netdb.h>
11729 int
11730 main ()
11731 {
11732 gethostbyname_r("", 0, 0);
11733 ;
11734 return 0;
11735 }
11736 _ACEOF
11737 rm -f conftest.$ac_objext
11738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11739 (eval $ac_compile) 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try='test -z "$ac_cxx_werror_flag"
11747 || test ! -s conftest.err'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; } &&
11753 { ac_try='test -s conftest.$ac_objext'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 libjava_cv_gethostbyname_r_needs_reentrant=yes
11760 else
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764 libjava_cv_gethostbyname_r_needs_reentrant=fail
11765 fi
11766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11767 CPPFLAGS="$CPPFLAGS_SAVE"
11768
11769 fi
11770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771 ac_ext=c
11772 ac_cpp='$CPP $CPPFLAGS'
11773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11776
11777
11778 fi
11779 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11780 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11781 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11782
11783 cat >>confdefs.h <<\_ACEOF
11784 #define _REENTRANT 1
11785 _ACEOF
11786
11787 fi
11788 ;;
11789 esac
11790
11791 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11792 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11793 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h. */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11802
11803 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11804 # define _REENTRANT 1
11805 #endif
11806 #include <netdb.h>
11807 int
11808 main ()
11809 {
11810 struct hostent_data data;
11811 ;
11812 return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817 (eval $ac_compile) 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_c_werror_flag"
11825 || test ! -s conftest.err'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest.$ac_objext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 libjava_cv_struct_hostent_data=yes
11838 else
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842 libjava_cv_struct_hostent_data=no
11843 fi
11844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11845 fi
11846 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11847 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11848 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11849
11850 cat >>confdefs.h <<\_ACEOF
11851 #define HAVE_STRUCT_HOSTENT_DATA 1
11852 _ACEOF
11853
11854 fi
11855
11856 fi
11857 done
11858
11859
11860 # FIXME: libjava source code expects to find a prototype for
11861 # gethostbyaddr_r in netdb.h. The outer check ensures that
11862 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11863 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11864 # linkage check is enough, yet C++ code requires proper prototypes.)
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h. */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 #include <netdb.h>
11872
11873 _ACEOF
11874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11875 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11876
11877
11878 for ac_func in gethostbyaddr_r
11879 do
11880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881 echo "$as_me:$LINENO: checking for $ac_func" >&5
11882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11883 if eval "test \"\${$as_ac_var+set}\" = set"; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886 if test x$gcc_no_link = xyes; then
11887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11889 { (exit 1); exit 1; }; }
11890 fi
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11899 #define $ac_func innocuous_$ac_func
11900
11901 /* System header to define __stub macros and hopefully few prototypes,
11902 which can conflict with char $ac_func (); below.
11903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11904 <limits.h> exists even on freestanding compilers. */
11905
11906 #ifdef __STDC__
11907 # include <limits.h>
11908 #else
11909 # include <assert.h>
11910 #endif
11911
11912 #undef $ac_func
11913
11914 /* Override any gcc2 internal prototype to avoid an error. */
11915 #ifdef __cplusplus
11916 extern "C"
11917 {
11918 #endif
11919 /* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11921 char $ac_func ();
11922 /* The GNU C library defines this for functions which it implements
11923 to always fail with ENOSYS. Some functions are actually named
11924 something starting with __ and the normal name is an alias. */
11925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11926 choke me
11927 #else
11928 char (*f) () = $ac_func;
11929 #endif
11930 #ifdef __cplusplus
11931 }
11932 #endif
11933
11934 int
11935 main ()
11936 {
11937 return f != $ac_func;
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11944 (eval $ac_link) 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_c_werror_flag"
11952 || test ! -s conftest.err'
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11955 ac_status=$?
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
11958 { ac_try='test -s conftest$ac_exeext'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11964 eval "$as_ac_var=yes"
11965 else
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 eval "$as_ac_var=no"
11970 fi
11971 rm -f conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 fi
11974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11976 if test `eval echo '${'$as_ac_var'}'` = yes; then
11977 cat >>confdefs.h <<_ACEOF
11978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11979 _ACEOF
11980
11981
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_GETHOSTBYADDR_R 1
11984 _ACEOF
11985
11986 # There are two different kinds of gethostbyaddr_r.
11987 # We look for the one that returns `int'.
11988 # Hopefully this check is robust enough.
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 #include <netdb.h>
11996
11997 _ACEOF
11998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
12000
12001
12002 cat >>confdefs.h <<\_ACEOF
12003 #define GETHOSTBYADDR_R_RETURNS_INT 1
12004 _ACEOF
12005
12006 fi
12007 rm -f conftest*
12008
12009 fi
12010 done
12011
12012 fi
12013 rm -f conftest*
12014
12015
12016
12017 for ac_func in gethostname
12018 do
12019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12020 echo "$as_me:$LINENO: checking for $ac_func" >&5
12021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12022 if eval "test \"\${$as_ac_var+set}\" = set"; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025 if test x$gcc_no_link = xyes; then
12026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12028 { (exit 1); exit 1; }; }
12029 fi
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12038 #define $ac_func innocuous_$ac_func
12039
12040 /* System header to define __stub macros and hopefully few prototypes,
12041 which can conflict with char $ac_func (); below.
12042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043 <limits.h> exists even on freestanding compilers. */
12044
12045 #ifdef __STDC__
12046 # include <limits.h>
12047 #else
12048 # include <assert.h>
12049 #endif
12050
12051 #undef $ac_func
12052
12053 /* Override any gcc2 internal prototype to avoid an error. */
12054 #ifdef __cplusplus
12055 extern "C"
12056 {
12057 #endif
12058 /* We use char because int might match the return type of a gcc2
12059 builtin and then its argument prototype would still apply. */
12060 char $ac_func ();
12061 /* The GNU C library defines this for functions which it implements
12062 to always fail with ENOSYS. Some functions are actually named
12063 something starting with __ and the normal name is an alias. */
12064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12065 choke me
12066 #else
12067 char (*f) () = $ac_func;
12068 #endif
12069 #ifdef __cplusplus
12070 }
12071 #endif
12072
12073 int
12074 main ()
12075 {
12076 return f != $ac_func;
12077 ;
12078 return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083 (eval $ac_link) 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -z "$ac_c_werror_flag"
12091 || test ! -s conftest.err'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 eval "$as_ac_var=yes"
12104 else
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 eval "$as_ac_var=no"
12109 fi
12110 rm -f conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12112 fi
12113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12115 if test `eval echo '${'$as_ac_var'}'` = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118 _ACEOF
12119
12120
12121 cat >>confdefs.h <<\_ACEOF
12122 #define HAVE_GETHOSTNAME 1
12123 _ACEOF
12124
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 #include <unistd.h>
12132
12133 _ACEOF
12134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12135 $EGREP "gethostname" >/dev/null 2>&1; then
12136
12137
12138 cat >>confdefs.h <<\_ACEOF
12139 #define HAVE_GETHOSTNAME_DECL 1
12140 _ACEOF
12141
12142 fi
12143 rm -f conftest*
12144
12145 fi
12146 done
12147
12148
12149
12150 for ac_func in usleep
12151 do
12152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12153 echo "$as_me:$LINENO: checking for $ac_func" >&5
12154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12155 if eval "test \"\${$as_ac_var+set}\" = set"; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158 if test x$gcc_no_link = xyes; then
12159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12161 { (exit 1); exit 1; }; }
12162 fi
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12171 #define $ac_func innocuous_$ac_func
12172
12173 /* System header to define __stub macros and hopefully few prototypes,
12174 which can conflict with char $ac_func (); below.
12175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12176 <limits.h> exists even on freestanding compilers. */
12177
12178 #ifdef __STDC__
12179 # include <limits.h>
12180 #else
12181 # include <assert.h>
12182 #endif
12183
12184 #undef $ac_func
12185
12186 /* Override any gcc2 internal prototype to avoid an error. */
12187 #ifdef __cplusplus
12188 extern "C"
12189 {
12190 #endif
12191 /* We use char because int might match the return type of a gcc2
12192 builtin and then its argument prototype would still apply. */
12193 char $ac_func ();
12194 /* The GNU C library defines this for functions which it implements
12195 to always fail with ENOSYS. Some functions are actually named
12196 something starting with __ and the normal name is an alias. */
12197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12198 choke me
12199 #else
12200 char (*f) () = $ac_func;
12201 #endif
12202 #ifdef __cplusplus
12203 }
12204 #endif
12205
12206 int
12207 main ()
12208 {
12209 return f != $ac_func;
12210 ;
12211 return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216 (eval $ac_link) 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag"
12224 || test ! -s conftest.err'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest$ac_exeext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 eval "$as_ac_var=yes"
12237 else
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 eval "$as_ac_var=no"
12242 fi
12243 rm -f conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245 fi
12246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12248 if test `eval echo '${'$as_ac_var'}'` = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12251 _ACEOF
12252
12253 cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h. */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 #include <unistd.h>
12260
12261 _ACEOF
12262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12263 $EGREP "usleep" >/dev/null 2>&1; then
12264
12265
12266 cat >>confdefs.h <<\_ACEOF
12267 #define HAVE_USLEEP_DECL 1
12268 _ACEOF
12269
12270 fi
12271 rm -f conftest*
12272
12273 fi
12274 done
12275
12276
12277 # Look for these functions in the thread library, but only bother
12278 # if using POSIX threads.
12279 if test "$THREADS" = posix; then
12280 save_LIBS="$LIBS"
12281 LIBS="$LIBS $THREADLIBS"
12282 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12283 # E.g., Solaris.
12284
12285
12286 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12287 do
12288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12289 echo "$as_me:$LINENO: checking for $ac_func" >&5
12290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12291 if eval "test \"\${$as_ac_var+set}\" = set"; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294 if test x$gcc_no_link = xyes; then
12295 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12297 { (exit 1); exit 1; }; }
12298 fi
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h. */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12307 #define $ac_func innocuous_$ac_func
12308
12309 /* System header to define __stub macros and hopefully few prototypes,
12310 which can conflict with char $ac_func (); below.
12311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12312 <limits.h> exists even on freestanding compilers. */
12313
12314 #ifdef __STDC__
12315 # include <limits.h>
12316 #else
12317 # include <assert.h>
12318 #endif
12319
12320 #undef $ac_func
12321
12322 /* Override any gcc2 internal prototype to avoid an error. */
12323 #ifdef __cplusplus
12324 extern "C"
12325 {
12326 #endif
12327 /* We use char because int might match the return type of a gcc2
12328 builtin and then its argument prototype would still apply. */
12329 char $ac_func ();
12330 /* The GNU C library defines this for functions which it implements
12331 to always fail with ENOSYS. Some functions are actually named
12332 something starting with __ and the normal name is an alias. */
12333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12334 choke me
12335 #else
12336 char (*f) () = $ac_func;
12337 #endif
12338 #ifdef __cplusplus
12339 }
12340 #endif
12341
12342 int
12343 main ()
12344 {
12345 return f != $ac_func;
12346 ;
12347 return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352 (eval $ac_link) 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -z "$ac_c_werror_flag"
12360 || test ! -s conftest.err'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } &&
12366 { ac_try='test -s conftest$ac_exeext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 eval "$as_ac_var=yes"
12373 else
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12376
12377 eval "$as_ac_var=no"
12378 fi
12379 rm -f conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12381 fi
12382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12384 if test `eval echo '${'$as_ac_var'}'` = yes; then
12385 cat >>confdefs.h <<_ACEOF
12386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12387 _ACEOF
12388
12389 fi
12390 done
12391
12392
12393 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12394 # Solaris 7 the name librt is preferred.
12395
12396 for ac_func in sched_yield
12397 do
12398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12399 echo "$as_me:$LINENO: checking for $ac_func" >&5
12400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12401 if eval "test \"\${$as_ac_var+set}\" = set"; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404 if test x$gcc_no_link = xyes; then
12405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12407 { (exit 1); exit 1; }; }
12408 fi
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12417 #define $ac_func innocuous_$ac_func
12418
12419 /* System header to define __stub macros and hopefully few prototypes,
12420 which can conflict with char $ac_func (); below.
12421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12422 <limits.h> exists even on freestanding compilers. */
12423
12424 #ifdef __STDC__
12425 # include <limits.h>
12426 #else
12427 # include <assert.h>
12428 #endif
12429
12430 #undef $ac_func
12431
12432 /* Override any gcc2 internal prototype to avoid an error. */
12433 #ifdef __cplusplus
12434 extern "C"
12435 {
12436 #endif
12437 /* We use char because int might match the return type of a gcc2
12438 builtin and then its argument prototype would still apply. */
12439 char $ac_func ();
12440 /* The GNU C library defines this for functions which it implements
12441 to always fail with ENOSYS. Some functions are actually named
12442 something starting with __ and the normal name is an alias. */
12443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12444 choke me
12445 #else
12446 char (*f) () = $ac_func;
12447 #endif
12448 #ifdef __cplusplus
12449 }
12450 #endif
12451
12452 int
12453 main ()
12454 {
12455 return f != $ac_func;
12456 ;
12457 return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>conftest.er1
12463 ac_status=$?
12464 grep -v '^ *+' conftest.er1 >conftest.err
12465 rm -f conftest.er1
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest$ac_exeext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 eval "$as_ac_var=yes"
12483 else
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 eval "$as_ac_var=no"
12488 fi
12489 rm -f conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 fi
12492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12494 if test `eval echo '${'$as_ac_var'}'` = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12497 _ACEOF
12498
12499 else
12500
12501 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12502 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12503 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506 ac_check_lib_save_LIBS=$LIBS
12507 LIBS="-lrt $LIBS"
12508 if test x$gcc_no_link = xyes; then
12509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12511 { (exit 1); exit 1; }; }
12512 fi
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519
12520 /* Override any gcc2 internal prototype to avoid an error. */
12521 #ifdef __cplusplus
12522 extern "C"
12523 #endif
12524 /* We use char because int might match the return type of a gcc2
12525 builtin and then its argument prototype would still apply. */
12526 char sched_yield ();
12527 int
12528 main ()
12529 {
12530 sched_yield ();
12531 ;
12532 return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537 (eval $ac_link) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest$ac_exeext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_lib_rt_sched_yield=yes
12558 else
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12561
12562 ac_cv_lib_rt_sched_yield=no
12563 fi
12564 rm -f conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12567 fi
12568 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12569 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12570 if test $ac_cv_lib_rt_sched_yield = yes; then
12571
12572 cat >>confdefs.h <<\_ACEOF
12573 #define HAVE_SCHED_YIELD 1
12574 _ACEOF
12575
12576 THREADLIBS="$THREADLIBS -lrt"
12577 THREADSPEC="$THREADSPEC -lrt"
12578 else
12579
12580 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12581 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12582 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585 ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-lposix4 $LIBS"
12587 if test x$gcc_no_link = xyes; then
12588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12590 { (exit 1); exit 1; }; }
12591 fi
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h. */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598
12599 /* Override any gcc2 internal prototype to avoid an error. */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 /* We use char because int might match the return type of a gcc2
12604 builtin and then its argument prototype would still apply. */
12605 char sched_yield ();
12606 int
12607 main ()
12608 {
12609 sched_yield ();
12610 ;
12611 return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12616 (eval $ac_link) 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_c_werror_flag"
12624 || test ! -s conftest.err'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest$ac_exeext'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_cv_lib_posix4_sched_yield=yes
12637 else
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 ac_cv_lib_posix4_sched_yield=no
12642 fi
12643 rm -f conftest.err conftest.$ac_objext \
12644 conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_lib_save_LIBS
12646 fi
12647 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12648 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12649 if test $ac_cv_lib_posix4_sched_yield = yes; then
12650
12651 cat >>confdefs.h <<\_ACEOF
12652 #define HAVE_SCHED_YIELD 1
12653 _ACEOF
12654
12655 THREADLIBS="$THREADLIBS -lposix4"
12656 THREADSPEC="$THREADSPEC -lposix4"
12657 fi
12658
12659 fi
12660
12661 fi
12662 done
12663
12664
12665 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12666 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12667 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670 ac_check_lib_save_LIBS=$LIBS
12671 LIBS="-lrt $LIBS"
12672 if test x$gcc_no_link = xyes; then
12673 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12675 { (exit 1); exit 1; }; }
12676 fi
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h. */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683
12684 /* Override any gcc2 internal prototype to avoid an error. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 /* We use char because int might match the return type of a gcc2
12689 builtin and then its argument prototype would still apply. */
12690 char clock_gettime ();
12691 int
12692 main ()
12693 {
12694 clock_gettime ();
12695 ;
12696 return 0;
12697 }
12698 _ACEOF
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -z "$ac_c_werror_flag"
12709 || test ! -s conftest.err'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try='test -s conftest$ac_exeext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_lib_rt_clock_gettime=yes
12722 else
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 ac_cv_lib_rt_clock_gettime=no
12727 fi
12728 rm -f conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12731 fi
12732 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12733 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12734 if test $ac_cv_lib_rt_clock_gettime = yes; then
12735
12736
12737 cat >>confdefs.h <<\_ACEOF
12738 #define HAVE_CLOCK_GETTIME 1
12739 _ACEOF
12740
12741 case "$THREADSPEC" in
12742 *-lrt*) ;;
12743 *)
12744 THREADSPEC="$THREADSPEC -lrt"
12745 THREADLIBS="$THREADLIBS -lrt"
12746 ;;
12747 esac
12748 fi
12749
12750
12751 LIBS="$save_LIBS"
12752
12753 # We can save a little space at runtime if the mutex has m_count
12754 # or __m_count. This is a nice hack for Linux.
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h. */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 #include <pthread.h>
12762 int
12763 main ()
12764 {
12765
12766 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12767
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 rm -f conftest.$ac_objext
12773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12774 (eval $ac_compile) 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag"
12782 || test ! -s conftest.err'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; } &&
12788 { ac_try='test -s conftest.$ac_objext'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12794
12795 cat >>confdefs.h <<\_ACEOF
12796 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12797 _ACEOF
12798
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12802
12803
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 #include <pthread.h>
12811 int
12812 main ()
12813 {
12814
12815 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12816
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -z "$ac_c_werror_flag"
12831 || test ! -s conftest.err'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest.$ac_objext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843
12844 cat >>confdefs.h <<\_ACEOF
12845 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12846 _ACEOF
12847
12848 else
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852 fi
12853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12854 fi
12855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12856 fi
12857
12858 # We require a way to get the time.
12859 time_found=no
12860
12861
12862
12863 for ac_func in gettimeofday time ftime
12864 do
12865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12866 echo "$as_me:$LINENO: checking for $ac_func" >&5
12867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12868 if eval "test \"\${$as_ac_var+set}\" = set"; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 else
12871 if test x$gcc_no_link = xyes; then
12872 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12874 { (exit 1); exit 1; }; }
12875 fi
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h. */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12884 #define $ac_func innocuous_$ac_func
12885
12886 /* System header to define __stub macros and hopefully few prototypes,
12887 which can conflict with char $ac_func (); below.
12888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12889 <limits.h> exists even on freestanding compilers. */
12890
12891 #ifdef __STDC__
12892 # include <limits.h>
12893 #else
12894 # include <assert.h>
12895 #endif
12896
12897 #undef $ac_func
12898
12899 /* Override any gcc2 internal prototype to avoid an error. */
12900 #ifdef __cplusplus
12901 extern "C"
12902 {
12903 #endif
12904 /* We use char because int might match the return type of a gcc2
12905 builtin and then its argument prototype would still apply. */
12906 char $ac_func ();
12907 /* The GNU C library defines this for functions which it implements
12908 to always fail with ENOSYS. Some functions are actually named
12909 something starting with __ and the normal name is an alias. */
12910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12911 choke me
12912 #else
12913 char (*f) () = $ac_func;
12914 #endif
12915 #ifdef __cplusplus
12916 }
12917 #endif
12918
12919 int
12920 main ()
12921 {
12922 return f != $ac_func;
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12929 (eval $ac_link) 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -z "$ac_c_werror_flag"
12937 || test ! -s conftest.err'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try='test -s conftest$ac_exeext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 eval "$as_ac_var=yes"
12950 else
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 eval "$as_ac_var=no"
12955 fi
12956 rm -f conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958 fi
12959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12961 if test `eval echo '${'$as_ac_var'}'` = yes; then
12962 cat >>confdefs.h <<_ACEOF
12963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12964 _ACEOF
12965 time_found=yes
12966 fi
12967 done
12968
12969 if test "$time_found" = no; then
12970 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12971 echo "$as_me: error: no function found to get the time" >&2;}
12972 { (exit 1); exit 1; }; }
12973 fi
12974
12975
12976 for ac_func in memmove
12977 do
12978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12979 echo "$as_me:$LINENO: checking for $ac_func" >&5
12980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12981 if eval "test \"\${$as_ac_var+set}\" = set"; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 else
12984 if test x$gcc_no_link = xyes; then
12985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12987 { (exit 1); exit 1; }; }
12988 fi
12989 cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h. */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12997 #define $ac_func innocuous_$ac_func
12998
12999 /* System header to define __stub macros and hopefully few prototypes,
13000 which can conflict with char $ac_func (); below.
13001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13002 <limits.h> exists even on freestanding compilers. */
13003
13004 #ifdef __STDC__
13005 # include <limits.h>
13006 #else
13007 # include <assert.h>
13008 #endif
13009
13010 #undef $ac_func
13011
13012 /* Override any gcc2 internal prototype to avoid an error. */
13013 #ifdef __cplusplus
13014 extern "C"
13015 {
13016 #endif
13017 /* We use char because int might match the return type of a gcc2
13018 builtin and then its argument prototype would still apply. */
13019 char $ac_func ();
13020 /* The GNU C library defines this for functions which it implements
13021 to always fail with ENOSYS. Some functions are actually named
13022 something starting with __ and the normal name is an alias. */
13023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13024 choke me
13025 #else
13026 char (*f) () = $ac_func;
13027 #endif
13028 #ifdef __cplusplus
13029 }
13030 #endif
13031
13032 int
13033 main ()
13034 {
13035 return f != $ac_func;
13036 ;
13037 return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13042 (eval $ac_link) 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag"
13050 || test ! -s conftest.err'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest$ac_exeext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 eval "$as_ac_var=yes"
13063 else
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067 eval "$as_ac_var=no"
13068 fi
13069 rm -f conftest.err conftest.$ac_objext \
13070 conftest$ac_exeext conftest.$ac_ext
13071 fi
13072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13074 if test `eval echo '${'$as_ac_var'}'` = yes; then
13075 cat >>confdefs.h <<_ACEOF
13076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13077 _ACEOF
13078
13079 fi
13080 done
13081
13082
13083 # We require memcpy.
13084 memcpy_found=no
13085
13086 for ac_func in memcpy
13087 do
13088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13089 echo "$as_me:$LINENO: checking for $ac_func" >&5
13090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13091 if eval "test \"\${$as_ac_var+set}\" = set"; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094 if test x$gcc_no_link = xyes; then
13095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13097 { (exit 1); exit 1; }; }
13098 fi
13099 cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h. */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13107 #define $ac_func innocuous_$ac_func
13108
13109 /* System header to define __stub macros and hopefully few prototypes,
13110 which can conflict with char $ac_func (); below.
13111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13112 <limits.h> exists even on freestanding compilers. */
13113
13114 #ifdef __STDC__
13115 # include <limits.h>
13116 #else
13117 # include <assert.h>
13118 #endif
13119
13120 #undef $ac_func
13121
13122 /* Override any gcc2 internal prototype to avoid an error. */
13123 #ifdef __cplusplus
13124 extern "C"
13125 {
13126 #endif
13127 /* We use char because int might match the return type of a gcc2
13128 builtin and then its argument prototype would still apply. */
13129 char $ac_func ();
13130 /* The GNU C library defines this for functions which it implements
13131 to always fail with ENOSYS. Some functions are actually named
13132 something starting with __ and the normal name is an alias. */
13133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13134 choke me
13135 #else
13136 char (*f) () = $ac_func;
13137 #endif
13138 #ifdef __cplusplus
13139 }
13140 #endif
13141
13142 int
13143 main ()
13144 {
13145 return f != $ac_func;
13146 ;
13147 return 0;
13148 }
13149 _ACEOF
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13152 (eval $ac_link) 2>conftest.er1
13153 ac_status=$?
13154 grep -v '^ *+' conftest.er1 >conftest.err
13155 rm -f conftest.er1
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -z "$ac_c_werror_flag"
13160 || test ! -s conftest.err'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; } &&
13166 { ac_try='test -s conftest$ac_exeext'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13169 ac_status=$?
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172 eval "$as_ac_var=yes"
13173 else
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13176
13177 eval "$as_ac_var=no"
13178 fi
13179 rm -f conftest.err conftest.$ac_objext \
13180 conftest$ac_exeext conftest.$ac_ext
13181 fi
13182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13184 if test `eval echo '${'$as_ac_var'}'` = yes; then
13185 cat >>confdefs.h <<_ACEOF
13186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13187 _ACEOF
13188 memcpy_found=yes
13189 fi
13190 done
13191
13192 if test "$memcpy_found" = no; then
13193 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13194 echo "$as_me: error: memcpy is required" >&2;}
13195 { (exit 1); exit 1; }; }
13196 fi
13197 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13198 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13199 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13200 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203 ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-ldl $LIBS"
13205 if test x$gcc_no_link = xyes; then
13206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13208 { (exit 1); exit 1; }; }
13209 fi
13210 cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h. */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216
13217 /* Override any gcc2 internal prototype to avoid an error. */
13218 #ifdef __cplusplus
13219 extern "C"
13220 #endif
13221 /* We use char because int might match the return type of a gcc2
13222 builtin and then its argument prototype would still apply. */
13223 char dlopen ();
13224 int
13225 main ()
13226 {
13227 dlopen ();
13228 ;
13229 return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13234 (eval $ac_link) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -z "$ac_c_werror_flag"
13242 || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_lib_dl_dlopen=yes
13255 else
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259 ac_cv_lib_dl_dlopen=no
13260 fi
13261 rm -f conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
13263 LIBS=$ac_check_lib_save_LIBS
13264 fi
13265 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13266 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13267 if test $ac_cv_lib_dl_dlopen = yes; then
13268
13269
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_DLOPEN 1
13272 _ACEOF
13273
13274 else
13275
13276 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13277 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13278 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281 ac_check_lib_save_LIBS=$LIBS
13282 LIBS="-ldld $LIBS"
13283 if test x$gcc_no_link = xyes; then
13284 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13285 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13286 { (exit 1); exit 1; }; }
13287 fi
13288 cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h. */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294
13295 /* Override any gcc2 internal prototype to avoid an error. */
13296 #ifdef __cplusplus
13297 extern "C"
13298 #endif
13299 /* We use char because int might match the return type of a gcc2
13300 builtin and then its argument prototype would still apply. */
13301 char dlopen ();
13302 int
13303 main ()
13304 {
13305 dlopen ();
13306 ;
13307 return 0;
13308 }
13309 _ACEOF
13310 rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312 (eval $ac_link) 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -z "$ac_c_werror_flag"
13320 || test ! -s conftest.err'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest$ac_exeext'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_lib_dld_dlopen=yes
13333 else
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337 ac_cv_lib_dld_dlopen=no
13338 fi
13339 rm -f conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13341 LIBS=$ac_check_lib_save_LIBS
13342 fi
13343 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13344 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13345 if test $ac_cv_lib_dld_dlopen = yes; then
13346
13347
13348 cat >>confdefs.h <<\_ACEOF
13349 #define HAVE_DLOPEN 1
13350 _ACEOF
13351
13352 fi
13353
13354 fi
13355
13356
13357 # Some library-finding code we stole from Tcl.
13358 #--------------------------------------------------------------------
13359 # Check for the existence of the -lsocket and -lnsl libraries.
13360 # The order here is important, so that they end up in the right
13361 # order in the command line generated by make. Here are some
13362 # special considerations:
13363 # 1. Use "connect" and "accept" to check for -lsocket, and
13364 # "gethostbyname" to check for -lnsl.
13365 # 2. Use each function name only once: can't redo a check because
13366 # autoconf caches the results of the last check and won't redo it.
13367 # 3. Use -lnsl and -lsocket only if they supply procedures that
13368 # aren't already present in the normal libraries. This is because
13369 # IRIX 5.2 has libraries, but they aren't needed and they're
13370 # bogus: they goof up name resolution if used.
13371 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13372 # To get around this problem, check for both libraries together
13373 # if -lsocket doesn't work by itself.
13374 #--------------------------------------------------------------------
13375
13376 echo "$as_me:$LINENO: checking for socket libraries" >&5
13377 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13378 if test "${gcj_cv_lib_sockets+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381 gcj_cv_lib_sockets=
13382 gcj_checkBoth=0
13383 unset ac_cv_func_connect
13384 echo "$as_me:$LINENO: checking for connect" >&5
13385 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13386 if test "${ac_cv_func_connect+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 else
13389 if test x$gcc_no_link = xyes; then
13390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13392 { (exit 1); exit 1; }; }
13393 fi
13394 cat >conftest.$ac_ext <<_ACEOF
13395 /* confdefs.h. */
13396 _ACEOF
13397 cat confdefs.h >>conftest.$ac_ext
13398 cat >>conftest.$ac_ext <<_ACEOF
13399 /* end confdefs.h. */
13400 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13402 #define connect innocuous_connect
13403
13404 /* System header to define __stub macros and hopefully few prototypes,
13405 which can conflict with char connect (); below.
13406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13407 <limits.h> exists even on freestanding compilers. */
13408
13409 #ifdef __STDC__
13410 # include <limits.h>
13411 #else
13412 # include <assert.h>
13413 #endif
13414
13415 #undef connect
13416
13417 /* Override any gcc2 internal prototype to avoid an error. */
13418 #ifdef __cplusplus
13419 extern "C"
13420 {
13421 #endif
13422 /* We use char because int might match the return type of a gcc2
13423 builtin and then its argument prototype would still apply. */
13424 char connect ();
13425 /* The GNU C library defines this for functions which it implements
13426 to always fail with ENOSYS. Some functions are actually named
13427 something starting with __ and the normal name is an alias. */
13428 #if defined (__stub_connect) || defined (__stub___connect)
13429 choke me
13430 #else
13431 char (*f) () = connect;
13432 #endif
13433 #ifdef __cplusplus
13434 }
13435 #endif
13436
13437 int
13438 main ()
13439 {
13440 return f != connect;
13441 ;
13442 return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447 (eval $ac_link) 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -z "$ac_c_werror_flag"
13455 || test ! -s conftest.err'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
13467 ac_cv_func_connect=yes
13468 else
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 ac_cv_func_connect=no
13473 fi
13474 rm -f conftest.err conftest.$ac_objext \
13475 conftest$ac_exeext conftest.$ac_ext
13476 fi
13477 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13478 echo "${ECHO_T}$ac_cv_func_connect" >&6
13479 if test $ac_cv_func_connect = yes; then
13480 gcj_checkSocket=0
13481 else
13482 gcj_checkSocket=1
13483 fi
13484
13485 if test "$gcj_checkSocket" = 1; then
13486 unset ac_cv_func_connect
13487 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13488 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13489 if test "${ac_cv_lib_socket_main+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 else
13492 ac_check_lib_save_LIBS=$LIBS
13493 LIBS="-lsocket $LIBS"
13494 if test x$gcc_no_link = xyes; then
13495 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13496 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13497 { (exit 1); exit 1; }; }
13498 fi
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h. */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505
13506
13507 int
13508 main ()
13509 {
13510 main ();
13511 ;
13512 return 0;
13513 }
13514 _ACEOF
13515 rm -f conftest.$ac_objext conftest$ac_exeext
13516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13517 (eval $ac_link) 2>conftest.er1
13518 ac_status=$?
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -f conftest.er1
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } &&
13524 { ac_try='test -z "$ac_c_werror_flag"
13525 || test ! -s conftest.err'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; } &&
13531 { ac_try='test -s conftest$ac_exeext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 ac_cv_lib_socket_main=yes
13538 else
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 ac_cv_lib_socket_main=no
13543 fi
13544 rm -f conftest.err conftest.$ac_objext \
13545 conftest$ac_exeext conftest.$ac_ext
13546 LIBS=$ac_check_lib_save_LIBS
13547 fi
13548 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13549 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13550 if test $ac_cv_lib_socket_main = yes; then
13551 gcj_cv_lib_sockets="-lsocket"
13552 else
13553 gcj_checkBoth=1
13554 fi
13555
13556 fi
13557 if test "$gcj_checkBoth" = 1; then
13558 gcj_oldLibs=$LIBS
13559 LIBS="$LIBS -lsocket -lnsl"
13560 unset ac_cv_func_accept
13561 echo "$as_me:$LINENO: checking for accept" >&5
13562 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13563 if test "${ac_cv_func_accept+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 if test x$gcc_no_link = xyes; then
13567 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13568 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13569 { (exit 1); exit 1; }; }
13570 fi
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h. */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13579 #define accept innocuous_accept
13580
13581 /* System header to define __stub macros and hopefully few prototypes,
13582 which can conflict with char accept (); below.
13583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13584 <limits.h> exists even on freestanding compilers. */
13585
13586 #ifdef __STDC__
13587 # include <limits.h>
13588 #else
13589 # include <assert.h>
13590 #endif
13591
13592 #undef accept
13593
13594 /* Override any gcc2 internal prototype to avoid an error. */
13595 #ifdef __cplusplus
13596 extern "C"
13597 {
13598 #endif
13599 /* We use char because int might match the return type of a gcc2
13600 builtin and then its argument prototype would still apply. */
13601 char accept ();
13602 /* The GNU C library defines this for functions which it implements
13603 to always fail with ENOSYS. Some functions are actually named
13604 something starting with __ and the normal name is an alias. */
13605 #if defined (__stub_accept) || defined (__stub___accept)
13606 choke me
13607 #else
13608 char (*f) () = accept;
13609 #endif
13610 #ifdef __cplusplus
13611 }
13612 #endif
13613
13614 int
13615 main ()
13616 {
13617 return f != accept;
13618 ;
13619 return 0;
13620 }
13621 _ACEOF
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13624 (eval $ac_link) 2>conftest.er1
13625 ac_status=$?
13626 grep -v '^ *+' conftest.er1 >conftest.err
13627 rm -f conftest.er1
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -z "$ac_c_werror_flag"
13632 || test ! -s conftest.err'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest$ac_exeext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_cv_func_accept=yes
13645 else
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13648
13649 ac_cv_func_accept=no
13650 fi
13651 rm -f conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13653 fi
13654 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13655 echo "${ECHO_T}$ac_cv_func_accept" >&6
13656 if test $ac_cv_func_accept = yes; then
13657 gcj_checkNsl=0
13658 gcj_cv_lib_sockets="-lsocket -lnsl"
13659 fi
13660
13661 unset ac_cv_func_accept
13662 LIBS=$gcj_oldLibs
13663 fi
13664 unset ac_cv_func_gethostbyname
13665 gcj_oldLibs=$LIBS
13666 LIBS="$LIBS $gcj_cv_lib_sockets"
13667 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13668 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13669 if test "${ac_cv_func_gethostbyname+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672 if test x$gcc_no_link = xyes; then
13673 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13675 { (exit 1); exit 1; }; }
13676 fi
13677 cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h. */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13685 #define gethostbyname innocuous_gethostbyname
13686
13687 /* System header to define __stub macros and hopefully few prototypes,
13688 which can conflict with char gethostbyname (); below.
13689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13690 <limits.h> exists even on freestanding compilers. */
13691
13692 #ifdef __STDC__
13693 # include <limits.h>
13694 #else
13695 # include <assert.h>
13696 #endif
13697
13698 #undef gethostbyname
13699
13700 /* Override any gcc2 internal prototype to avoid an error. */
13701 #ifdef __cplusplus
13702 extern "C"
13703 {
13704 #endif
13705 /* We use char because int might match the return type of a gcc2
13706 builtin and then its argument prototype would still apply. */
13707 char gethostbyname ();
13708 /* The GNU C library defines this for functions which it implements
13709 to always fail with ENOSYS. Some functions are actually named
13710 something starting with __ and the normal name is an alias. */
13711 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13712 choke me
13713 #else
13714 char (*f) () = gethostbyname;
13715 #endif
13716 #ifdef __cplusplus
13717 }
13718 #endif
13719
13720 int
13721 main ()
13722 {
13723 return f != gethostbyname;
13724 ;
13725 return 0;
13726 }
13727 _ACEOF
13728 rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13730 (eval $ac_link) 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -z "$ac_c_werror_flag"
13738 || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest$ac_exeext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_func_gethostbyname=yes
13751 else
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13754
13755 ac_cv_func_gethostbyname=no
13756 fi
13757 rm -f conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13759 fi
13760 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13761 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13762 if test $ac_cv_func_gethostbyname = yes; then
13763 :
13764 else
13765 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13766 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13767 if test "${ac_cv_lib_nsl_main+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770 ac_check_lib_save_LIBS=$LIBS
13771 LIBS="-lnsl $LIBS"
13772 if test x$gcc_no_link = xyes; then
13773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13775 { (exit 1); exit 1; }; }
13776 fi
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783
13784
13785 int
13786 main ()
13787 {
13788 main ();
13789 ;
13790 return 0;
13791 }
13792 _ACEOF
13793 rm -f conftest.$ac_objext conftest$ac_exeext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13795 (eval $ac_link) 2>conftest.er1
13796 ac_status=$?
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -z "$ac_c_werror_flag"
13803 || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_lib_nsl_main=yes
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 ac_cv_lib_nsl_main=no
13821 fi
13822 rm -f conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext conftest.$ac_ext
13824 LIBS=$ac_check_lib_save_LIBS
13825 fi
13826 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13827 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13828 if test $ac_cv_lib_nsl_main = yes; then
13829 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13830 fi
13831
13832 fi
13833
13834 unset ac_cv_func_gethostbyname
13835 LIBS=$gcj_oldLIBS
13836
13837 fi
13838 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13839 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13840 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13841
13842 if test "$with_system_zlib" = yes; then
13843 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13844 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13845 if test "${ac_cv_lib_z_deflate+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848 ac_check_lib_save_LIBS=$LIBS
13849 LIBS="-lz $LIBS"
13850 if test x$gcc_no_link = xyes; then
13851 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13852 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13853 { (exit 1); exit 1; }; }
13854 fi
13855 cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h. */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861
13862 /* Override any gcc2 internal prototype to avoid an error. */
13863 #ifdef __cplusplus
13864 extern "C"
13865 #endif
13866 /* We use char because int might match the return type of a gcc2
13867 builtin and then its argument prototype would still apply. */
13868 char deflate ();
13869 int
13870 main ()
13871 {
13872 deflate ();
13873 ;
13874 return 0;
13875 }
13876 _ACEOF
13877 rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13879 (eval $ac_link) 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag"
13887 || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest$ac_exeext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_cv_lib_z_deflate=yes
13900 else
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 ac_cv_lib_z_deflate=no
13905 fi
13906 rm -f conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext conftest.$ac_ext
13908 LIBS=$ac_check_lib_save_LIBS
13909 fi
13910 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13911 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13912 if test $ac_cv_lib_z_deflate = yes; then
13913 ZLIBSPEC=-lz
13914 else
13915 ZLIBSPEC=
13916 fi
13917
13918 fi
13919
13920 LIBMAGIC=
13921 echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
13922 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
13923 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926 ac_check_lib_save_LIBS=$LIBS
13927 LIBS="-lmagic $LIBS"
13928 if test x$gcc_no_link = xyes; then
13929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13931 { (exit 1); exit 1; }; }
13932 fi
13933 cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h. */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939
13940 /* Override any gcc2 internal prototype to avoid an error. */
13941 #ifdef __cplusplus
13942 extern "C"
13943 #endif
13944 /* We use char because int might match the return type of a gcc2
13945 builtin and then its argument prototype would still apply. */
13946 char magic_open ();
13947 int
13948 main ()
13949 {
13950 magic_open ();
13951 ;
13952 return 0;
13953 }
13954 _ACEOF
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13957 (eval $ac_link) 2>conftest.er1
13958 ac_status=$?
13959 grep -v '^ *+' conftest.er1 >conftest.err
13960 rm -f conftest.er1
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
13964 { ac_try='test -z "$ac_c_werror_flag"
13965 || test ! -s conftest.err'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; } &&
13971 { ac_try='test -s conftest$ac_exeext'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 ac_cv_lib_magic_magic_open=yes
13978 else
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 ac_cv_lib_magic_magic_open=no
13983 fi
13984 rm -f conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
13986 LIBS=$ac_check_lib_save_LIBS
13987 fi
13988 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
13989 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
13990 if test $ac_cv_lib_magic_magic_open = yes; then
13991
13992
13993 cat >>confdefs.h <<\_ACEOF
13994 #define HAVE_MAGIC_OPEN 1
13995 _ACEOF
13996
13997 LIBMAGIC="-lmagic"
13998 fi
13999
14000
14001
14002 # Test for Gtk stuff, if asked for.
14003 if test "$use_gtk_awt" = yes; then
14004
14005 succeeded=no
14006
14007 if test -z "$PKG_CONFIG"; then
14008 # Extract the first word of "pkg-config", so it can be a program name with args.
14009 set dummy pkg-config; ac_word=$2
14010 echo "$as_me:$LINENO: checking for $ac_word" >&5
14011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14012 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015 case $PKG_CONFIG in
14016 [\\/]* | ?:[\\/]*)
14017 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14018 ;;
14019 *)
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14022 do
14023 IFS=$as_save_IFS
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14027 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14029 break 2
14030 fi
14031 done
14032 done
14033
14034 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14035 ;;
14036 esac
14037 fi
14038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14039
14040 if test -n "$PKG_CONFIG"; then
14041 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14042 echo "${ECHO_T}$PKG_CONFIG" >&6
14043 else
14044 echo "$as_me:$LINENO: result: no" >&5
14045 echo "${ECHO_T}no" >&6
14046 fi
14047
14048 fi
14049
14050 if test "$PKG_CONFIG" = "no" ; then
14051 echo "*** The pkg-config script could not be found. Make sure it is"
14052 echo "*** in your path, or set the PKG_CONFIG environment variable"
14053 echo "*** to the full path to pkg-config."
14054 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14055 else
14056 PKG_CONFIG_MIN_VERSION=0.9.0
14057 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14058 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
14059 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
14060
14061 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
14062 echo "$as_me:$LINENO: result: yes" >&5
14063 echo "${ECHO_T}yes" >&6
14064 succeeded=yes
14065
14066 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14067 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
14068 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
14069 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14070 echo "${ECHO_T}$GTK_CFLAGS" >&6
14071
14072 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14073 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
14074 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
14075 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14076 echo "${ECHO_T}$GTK_LIBS" >&6
14077 else
14078 GTK_CFLAGS=""
14079 GTK_LIBS=""
14080 ## If we have a custom action on failure, don't print errors, but
14081 ## do set a variable so people can do so.
14082 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14083 echo $GTK_PKG_ERRORS
14084 fi
14085
14086
14087
14088 else
14089 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14090 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14091 fi
14092 fi
14093
14094 if test $succeeded = yes; then
14095 :
14096 else
14097 { { 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
14098 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;}
14099 { (exit 1); exit 1; }; }
14100 fi
14101
14102
14103
14104
14105
14106 succeeded=no
14107
14108 if test -z "$PKG_CONFIG"; then
14109 # Extract the first word of "pkg-config", so it can be a program name with args.
14110 set dummy pkg-config; ac_word=$2
14111 echo "$as_me:$LINENO: checking for $ac_word" >&5
14112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14113 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 case $PKG_CONFIG in
14117 [\\/]* | ?:[\\/]*)
14118 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14119 ;;
14120 *)
14121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14122 for as_dir in $PATH
14123 do
14124 IFS=$as_save_IFS
14125 test -z "$as_dir" && as_dir=.
14126 for ac_exec_ext in '' $ac_executable_extensions; do
14127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14128 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14130 break 2
14131 fi
14132 done
14133 done
14134
14135 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14136 ;;
14137 esac
14138 fi
14139 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14140
14141 if test -n "$PKG_CONFIG"; then
14142 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14143 echo "${ECHO_T}$PKG_CONFIG" >&6
14144 else
14145 echo "$as_me:$LINENO: result: no" >&5
14146 echo "${ECHO_T}no" >&6
14147 fi
14148
14149 fi
14150
14151 if test "$PKG_CONFIG" = "no" ; then
14152 echo "*** The pkg-config script could not be found. Make sure it is"
14153 echo "*** in your path, or set the PKG_CONFIG environment variable"
14154 echo "*** to the full path to pkg-config."
14155 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14156 else
14157 PKG_CONFIG_MIN_VERSION=0.9.0
14158 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14159 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14160 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
14161
14162 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14163 echo "$as_me:$LINENO: result: yes" >&5
14164 echo "${ECHO_T}yes" >&6
14165 succeeded=yes
14166
14167 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14168 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14169 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14170 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14171 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14172
14173 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14174 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14175 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14176 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14177 echo "${ECHO_T}$GLIB_LIBS" >&6
14178 else
14179 GLIB_CFLAGS=""
14180 GLIB_LIBS=""
14181 ## If we have a custom action on failure, don't print errors, but
14182 ## do set a variable so people can do so.
14183 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14184 echo $GLIB_PKG_ERRORS
14185 fi
14186
14187
14188
14189 else
14190 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14191 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14192 fi
14193 fi
14194
14195 if test $succeeded = yes; then
14196 :
14197 else
14198 { { 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
14199 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;}
14200 { (exit 1); exit 1; }; }
14201 fi
14202
14203
14204
14205
14206
14207 succeeded=no
14208
14209 if test -z "$PKG_CONFIG"; then
14210 # Extract the first word of "pkg-config", so it can be a program name with args.
14211 set dummy pkg-config; ac_word=$2
14212 echo "$as_me:$LINENO: checking for $ac_word" >&5
14213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14214 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 case $PKG_CONFIG in
14218 [\\/]* | ?:[\\/]*)
14219 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14220 ;;
14221 *)
14222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14223 for as_dir in $PATH
14224 do
14225 IFS=$as_save_IFS
14226 test -z "$as_dir" && as_dir=.
14227 for ac_exec_ext in '' $ac_executable_extensions; do
14228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14229 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14231 break 2
14232 fi
14233 done
14234 done
14235
14236 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14237 ;;
14238 esac
14239 fi
14240 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14241
14242 if test -n "$PKG_CONFIG"; then
14243 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14244 echo "${ECHO_T}$PKG_CONFIG" >&6
14245 else
14246 echo "$as_me:$LINENO: result: no" >&5
14247 echo "${ECHO_T}no" >&6
14248 fi
14249
14250 fi
14251
14252 if test "$PKG_CONFIG" = "no" ; then
14253 echo "*** The pkg-config script could not be found. Make sure it is"
14254 echo "*** in your path, or set the PKG_CONFIG environment variable"
14255 echo "*** to the full path to pkg-config."
14256 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14257 else
14258 PKG_CONFIG_MIN_VERSION=0.9.0
14259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14260 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14261 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14262
14263 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14264 echo "$as_me:$LINENO: result: yes" >&5
14265 echo "${ECHO_T}yes" >&6
14266 succeeded=yes
14267
14268 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14269 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14270 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14271 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14272 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14273
14274 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14275 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14276 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14277 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14278 echo "${ECHO_T}$LIBART_LIBS" >&6
14279 else
14280 LIBART_CFLAGS=""
14281 LIBART_LIBS=""
14282 ## If we have a custom action on failure, don't print errors, but
14283 ## do set a variable so people can do so.
14284 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14285 echo $LIBART_PKG_ERRORS
14286 fi
14287
14288
14289
14290 else
14291 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14292 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14293 fi
14294 fi
14295
14296 if test $succeeded = yes; then
14297 :
14298 else
14299 { { 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
14300 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;}
14301 { (exit 1); exit 1; }; }
14302 fi
14303
14304
14305
14306
14307 # We require the XTest Extension to support java.awt.Robot.
14308 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14309 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14310 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 else
14313 ac_check_lib_save_LIBS=$LIBS
14314 LIBS="-lXtst ${X_LIBS} $LIBS"
14315 if test x$gcc_no_link = xyes; then
14316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14318 { (exit 1); exit 1; }; }
14319 fi
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h. */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326
14327 /* Override any gcc2 internal prototype to avoid an error. */
14328 #ifdef __cplusplus
14329 extern "C"
14330 #endif
14331 /* We use char because int might match the return type of a gcc2
14332 builtin and then its argument prototype would still apply. */
14333 char XTestQueryExtension ();
14334 int
14335 main ()
14336 {
14337 XTestQueryExtension ();
14338 ;
14339 return 0;
14340 }
14341 _ACEOF
14342 rm -f conftest.$ac_objext conftest$ac_exeext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag"
14352 || test ! -s conftest.err'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest$ac_exeext'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_cv_lib_Xtst_XTestQueryExtension=yes
14365 else
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369 ac_cv_lib_Xtst_XTestQueryExtension=no
14370 fi
14371 rm -f conftest.err conftest.$ac_objext \
14372 conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14374 fi
14375 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14376 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14377 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14378 true
14379 else
14380 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14381 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14382 { (exit 1); exit 1; }; }
14383 fi
14384
14385 fi
14386
14387 # On Solaris, and maybe other architectures, the Boehm collector
14388 # requires -ldl.
14389 if test "$GC" = boehm; then
14390 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14391 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14392 if test "${ac_cv_lib_dl_main+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395 ac_check_lib_save_LIBS=$LIBS
14396 LIBS="-ldl $LIBS"
14397 if test x$gcc_no_link = xyes; then
14398 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14399 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14400 { (exit 1); exit 1; }; }
14401 fi
14402 cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h. */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408
14409
14410 int
14411 main ()
14412 {
14413 main ();
14414 ;
14415 return 0;
14416 }
14417 _ACEOF
14418 rm -f conftest.$ac_objext conftest$ac_exeext
14419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14420 (eval $ac_link) 2>conftest.er1
14421 ac_status=$?
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
14427 { ac_try='test -z "$ac_c_werror_flag"
14428 || test ! -s conftest.err'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest$ac_exeext'
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_cv_lib_dl_main=yes
14441 else
14442 echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14444
14445 ac_cv_lib_dl_main=no
14446 fi
14447 rm -f conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext conftest.$ac_ext
14449 LIBS=$ac_check_lib_save_LIBS
14450 fi
14451 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14452 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14453 if test $ac_cv_lib_dl_main = yes; then
14454 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14455 fi
14456
14457 fi
14458 fi
14459
14460 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14461 case $build in
14462 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14463 *) CLASSPATH_SEPARATOR=':' ;;
14464 esac
14465
14466
14467 # We must search the source tree for java.lang, since we still don't
14468 # have libgcj.jar nor java/lang/*.class
14469 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14470 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14471
14472 # Since some classes depend on this one, we need its source available
14473 # before we can do any GCJ compilation test :-(
14474 if test ! -f gnu/classpath/Configuration.java; then
14475 test -d gnu || mkdir gnu
14476 test -d gnu/classpath || mkdir gnu/classpath
14477 # Note that it is not crucial that all the values here be correct.
14478 sed -e "s,@prefix@,$prefix," \
14479 -e "s,@VERSION@,$VERSION," \
14480 -e "s,@LIBDEBUG@,false," \
14481 -e "s,@INIT_LOAD_LIBRARY@,false," \
14482 -e "s,@@,$LIBGCJDEBUG," \
14483 -e "s,@default_toolkit@,$TOOLKIT," \
14484 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14485 -e "s,@GTK_CAIRO_ENABLED@,false," \
14486 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14487 > gnu/classpath/Configuration.java
14488 # We do not want to redirect the output of the grep below to /dev/null,
14489 # but we add /dev/null to the input list so that grep will print the
14490 # filename of Configuration.java in case it finds any matches.
14491 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14492 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14493 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14494 { (exit 1); exit 1; }; }
14495 fi
14496 fi
14497
14498 if test -n "$ac_tool_prefix"; then
14499 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14500 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14501 echo "$as_me:$LINENO: checking for $ac_word" >&5
14502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14503 if test "${ac_cv_prog_GCJ+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506 if test -n "$GCJ"; then
14507 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14508 else
14509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14510 for as_dir in $PATH
14511 do
14512 IFS=$as_save_IFS
14513 test -z "$as_dir" && as_dir=.
14514 for ac_exec_ext in '' $ac_executable_extensions; do
14515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14516 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14518 break 2
14519 fi
14520 done
14521 done
14522
14523 fi
14524 fi
14525 GCJ=$ac_cv_prog_GCJ
14526 if test -n "$GCJ"; then
14527 echo "$as_me:$LINENO: result: $GCJ" >&5
14528 echo "${ECHO_T}$GCJ" >&6
14529 else
14530 echo "$as_me:$LINENO: result: no" >&5
14531 echo "${ECHO_T}no" >&6
14532 fi
14533
14534 fi
14535 if test -z "$ac_cv_prog_GCJ"; then
14536 ac_ct_GCJ=$GCJ
14537 # Extract the first word of "gcj", so it can be a program name with args.
14538 set dummy gcj; ac_word=$2
14539 echo "$as_me:$LINENO: checking for $ac_word" >&5
14540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14541 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 else
14544 if test -n "$ac_ct_GCJ"; then
14545 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14546 else
14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $PATH
14549 do
14550 IFS=$as_save_IFS
14551 test -z "$as_dir" && as_dir=.
14552 for ac_exec_ext in '' $ac_executable_extensions; do
14553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14554 ac_cv_prog_ac_ct_GCJ="gcj"
14555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14556 break 2
14557 fi
14558 done
14559 done
14560
14561 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14562 fi
14563 fi
14564 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14565 if test -n "$ac_ct_GCJ"; then
14566 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14567 echo "${ECHO_T}$ac_ct_GCJ" >&6
14568 else
14569 echo "$as_me:$LINENO: result: no" >&5
14570 echo "${ECHO_T}no" >&6
14571 fi
14572
14573 GCJ=$ac_ct_GCJ
14574 else
14575 GCJ="$ac_cv_prog_GCJ"
14576 fi
14577
14578 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14579
14580
14581
14582
14583 # Now remove it.
14584 rm -f gnu/classpath/Configuration.java
14585
14586 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14587
14588 echo "$as_me:$LINENO: checking for void *" >&5
14589 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14590 if test "${ac_cv_type_void_p+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593 cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h. */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599 $ac_includes_default
14600 int
14601 main ()
14602 {
14603 if ((void * *) 0)
14604 return 0;
14605 if (sizeof (void *))
14606 return 0;
14607 ;
14608 return 0;
14609 }
14610 _ACEOF
14611 rm -f conftest.$ac_objext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613 (eval $ac_compile) 2>conftest.er1
14614 ac_status=$?
14615 grep -v '^ *+' conftest.er1 >conftest.err
14616 rm -f conftest.er1
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } &&
14620 { ac_try='test -z "$ac_c_werror_flag"
14621 || test ! -s conftest.err'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try='test -s conftest.$ac_objext'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_cv_type_void_p=yes
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14637
14638 ac_cv_type_void_p=no
14639 fi
14640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14641 fi
14642 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14643 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14644
14645 echo "$as_me:$LINENO: checking size of void *" >&5
14646 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14647 if test "${ac_cv_sizeof_void_p+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650 if test "$ac_cv_type_void_p" = yes; then
14651 # The cast to unsigned long works around a bug in the HP C Compiler
14652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14654 # This bug is HP SR number 8606223364.
14655 if test "$cross_compiling" = yes; then
14656 # Depending upon the size, compute the lo and hi bounds.
14657 cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h. */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 $ac_includes_default
14664 int
14665 main ()
14666 {
14667 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14668 test_array [0] = 0
14669
14670 ;
14671 return 0;
14672 }
14673 _ACEOF
14674 rm -f conftest.$ac_objext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14676 (eval $ac_compile) 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -z "$ac_c_werror_flag"
14684 || test ! -s conftest.err'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; } &&
14690 { ac_try='test -s conftest.$ac_objext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_lo=0 ac_mid=0
14697 while :; do
14698 cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h. */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14704 $ac_includes_default
14705 int
14706 main ()
14707 {
14708 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14709 test_array [0] = 0
14710
14711 ;
14712 return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>conftest.er1
14718 ac_status=$?
14719 grep -v '^ *+' conftest.er1 >conftest.err
14720 rm -f conftest.er1
14721 cat conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -z "$ac_c_werror_flag"
14725 || test ! -s conftest.err'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; } &&
14731 { ac_try='test -s conftest.$ac_objext'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14737 ac_hi=$ac_mid; break
14738 else
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14741
14742 ac_lo=`expr $ac_mid + 1`
14743 if test $ac_lo -le $ac_mid; then
14744 ac_lo= ac_hi=
14745 break
14746 fi
14747 ac_mid=`expr 2 '*' $ac_mid + 1`
14748 fi
14749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14750 done
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755 cat >conftest.$ac_ext <<_ACEOF
14756 /* confdefs.h. */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14761 $ac_includes_default
14762 int
14763 main ()
14764 {
14765 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14766 test_array [0] = 0
14767
14768 ;
14769 return 0;
14770 }
14771 _ACEOF
14772 rm -f conftest.$ac_objext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14774 (eval $ac_compile) 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
14781 { ac_try='test -z "$ac_c_werror_flag"
14782 || test ! -s conftest.err'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest.$ac_objext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_hi=-1 ac_mid=-1
14795 while :; do
14796 cat >conftest.$ac_ext <<_ACEOF
14797 /* confdefs.h. */
14798 _ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14802 $ac_includes_default
14803 int
14804 main ()
14805 {
14806 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14807 test_array [0] = 0
14808
14809 ;
14810 return 0;
14811 }
14812 _ACEOF
14813 rm -f conftest.$ac_objext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14815 (eval $ac_compile) 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag"
14823 || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try='test -s conftest.$ac_objext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 ac_lo=$ac_mid; break
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840 ac_hi=`expr '(' $ac_mid ')' - 1`
14841 if test $ac_mid -le $ac_hi; then
14842 ac_lo= ac_hi=
14843 break
14844 fi
14845 ac_mid=`expr 2 '*' $ac_mid`
14846 fi
14847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14848 done
14849 else
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853 ac_lo= ac_hi=
14854 fi
14855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14856 fi
14857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14858 # Binary search between lo and hi bounds.
14859 while test "x$ac_lo" != "x$ac_hi"; do
14860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h. */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 $ac_includes_default
14868 int
14869 main ()
14870 {
14871 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14872 test_array [0] = 0
14873
14874 ;
14875 return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14880 (eval $ac_compile) 2>conftest.er1
14881 ac_status=$?
14882 grep -v '^ *+' conftest.er1 >conftest.err
14883 rm -f conftest.er1
14884 cat conftest.err >&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } &&
14887 { ac_try='test -z "$ac_c_werror_flag"
14888 || test ! -s conftest.err'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 ac_hi=$ac_mid
14901 else
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14904
14905 ac_lo=`expr '(' $ac_mid ')' + 1`
14906 fi
14907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14908 done
14909 case $ac_lo in
14910 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14911 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14912 See \`config.log' for more details." >&5
14913 echo "$as_me: error: cannot compute sizeof (void *), 77
14914 See \`config.log' for more details." >&2;}
14915 { (exit 1); exit 1; }; } ;;
14916 esac
14917 else
14918 if test "$cross_compiling" = yes; then
14919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14920 See \`config.log' for more details." >&5
14921 echo "$as_me: error: cannot run test program while cross compiling
14922 See \`config.log' for more details." >&2;}
14923 { (exit 1); exit 1; }; }
14924 else
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h. */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 $ac_includes_default
14932 long longval () { return (long) (sizeof (void *)); }
14933 unsigned long ulongval () { return (long) (sizeof (void *)); }
14934 #include <stdio.h>
14935 #include <stdlib.h>
14936 int
14937 main ()
14938 {
14939
14940 FILE *f = fopen ("conftest.val", "w");
14941 if (! f)
14942 exit (1);
14943 if (((long) (sizeof (void *))) < 0)
14944 {
14945 long i = longval ();
14946 if (i != ((long) (sizeof (void *))))
14947 exit (1);
14948 fprintf (f, "%ld\n", i);
14949 }
14950 else
14951 {
14952 unsigned long i = ulongval ();
14953 if (i != ((long) (sizeof (void *))))
14954 exit (1);
14955 fprintf (f, "%lu\n", i);
14956 }
14957 exit (ferror (f) || fclose (f) != 0);
14958
14959 ;
14960 return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965 (eval $ac_link) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14974 ac_cv_sizeof_void_p=`cat conftest.val`
14975 else
14976 echo "$as_me: program exited with status $ac_status" >&5
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980 ( exit $ac_status )
14981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14982 See \`config.log' for more details." >&5
14983 echo "$as_me: error: cannot compute sizeof (void *), 77
14984 See \`config.log' for more details." >&2;}
14985 { (exit 1); exit 1; }; }
14986 fi
14987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14988 fi
14989 fi
14990 rm -f conftest.val
14991 else
14992 ac_cv_sizeof_void_p=0
14993 fi
14994 fi
14995 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14996 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14997 cat >>confdefs.h <<_ACEOF
14998 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14999 _ACEOF
15000
15001
15002
15003 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15004 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15005 if test "${ac_cv_c_bigendian+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 else
15008 # See if sys/param.h defines the BYTE_ORDER macro.
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h. */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 #include <sys/types.h>
15016 #include <sys/param.h>
15017
15018 int
15019 main ()
15020 {
15021 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15022 bogus endian macros
15023 #endif
15024
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 # It does; now see whether it defined to BIG_ENDIAN or not.
15052 cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h. */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 #include <sys/types.h>
15059 #include <sys/param.h>
15060
15061 int
15062 main ()
15063 {
15064 #if BYTE_ORDER != BIG_ENDIAN
15065 not big endian
15066 #endif
15067
15068 ;
15069 return 0;
15070 }
15071 _ACEOF
15072 rm -f conftest.$ac_objext
15073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15074 (eval $ac_compile) 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -z "$ac_c_werror_flag"
15082 || test ! -s conftest.err'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; } &&
15088 { ac_try='test -s conftest.$ac_objext'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15094 ac_cv_c_bigendian=yes
15095 else
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 ac_cv_c_bigendian=no
15100 fi
15101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15102 else
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15105
15106 # It does not; compile a test program.
15107 if test "$cross_compiling" = yes; then
15108 # try to guess the endianness by grepping values into an object file
15109 ac_cv_c_bigendian=unknown
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15117 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15118 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15119 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15120 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15121 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15122 int
15123 main ()
15124 {
15125 _ascii (); _ebcdic ();
15126 ;
15127 return 0;
15128 }
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15132 (eval $ac_compile) 2>conftest.er1
15133 ac_status=$?
15134 grep -v '^ *+' conftest.er1 >conftest.err
15135 rm -f conftest.er1
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } &&
15139 { ac_try='test -z "$ac_c_werror_flag"
15140 || test ! -s conftest.err'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest.$ac_objext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15153 ac_cv_c_bigendian=yes
15154 fi
15155 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15156 if test "$ac_cv_c_bigendian" = unknown; then
15157 ac_cv_c_bigendian=no
15158 else
15159 # finding both strings is unlikely to happen, but who knows?
15160 ac_cv_c_bigendian=unknown
15161 fi
15162 fi
15163 else
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167 fi
15168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15169 else
15170 cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h. */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 int
15177 main ()
15178 {
15179 /* Are we little or big endian? From Harbison&Steele. */
15180 union
15181 {
15182 long l;
15183 char c[sizeof (long)];
15184 } u;
15185 u.l = 1;
15186 exit (u.c[sizeof (long) - 1] == 1);
15187 }
15188 _ACEOF
15189 rm -f conftest$ac_exeext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15191 (eval $ac_link) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; }; then
15200 ac_cv_c_bigendian=no
15201 else
15202 echo "$as_me: program exited with status $ac_status" >&5
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206 ( exit $ac_status )
15207 ac_cv_c_bigendian=yes
15208 fi
15209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15210 fi
15211 fi
15212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15213 fi
15214 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15215 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15216 case $ac_cv_c_bigendian in
15217 yes)
15218
15219 cat >>confdefs.h <<\_ACEOF
15220 #define WORDS_BIGENDIAN 1
15221 _ACEOF
15222 ;;
15223 no)
15224 ;;
15225 *)
15226 { { echo "$as_me:$LINENO: error: unknown endianness
15227 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15228 echo "$as_me: error: unknown endianness
15229 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15230 { (exit 1); exit 1; }; } ;;
15231 esac
15232
15233
15234 ZLIBS=
15235 SYS_ZLIBS=
15236 ZINCS=
15237
15238 if test -z "$ZLIBSPEC"; then
15239 # Use zlib from the GCC tree.
15240 ZINCS='-I$(top_srcdir)/../zlib'
15241 ZLIBS=../zlib/libzgcj_convenience.la
15242 else
15243 # System's zlib.
15244 SYS_ZLIBS="$ZLIBSPEC"
15245 fi
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257 if test "$NATIVE" = yes; then
15258 NATIVE_TRUE=
15259 NATIVE_FALSE='#'
15260 else
15261 NATIVE_TRUE='#'
15262 NATIVE_FALSE=
15263 fi
15264
15265
15266
15267 if test "$enable_shared" = yes; then
15268 ENABLE_SHARED_TRUE=
15269 ENABLE_SHARED_FALSE='#'
15270 else
15271 ENABLE_SHARED_TRUE='#'
15272 ENABLE_SHARED_FALSE=
15273 fi
15274
15275
15276
15277 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15278 NEEDS_DATA_START_TRUE=
15279 NEEDS_DATA_START_FALSE='#'
15280 else
15281 NEEDS_DATA_START_TRUE='#'
15282 NEEDS_DATA_START_FALSE=
15283 fi
15284
15285
15286
15287 # Process the option "--enable-version-specific-runtime-libs"
15288 # Calculate toolexeclibdir
15289 case ${version_specific_libs} in
15290 yes)
15291 # Need the gcc compiler version to know where to install libraries
15292 # and header files if --enable-version-specific-runtime-libs option
15293 # is selected.
15294 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15295 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15296 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15297 toolexeclibdir=$toolexecmainlibdir
15298 ;;
15299 no)
15300 if test -n "$with_cross_host" &&
15301 test x"$with_cross_host" != x"no"; then
15302 # Install a library built with a cross compiler in tooldir, not libdir.
15303 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15304 toolexecmainlibdir='$(toolexecdir)/lib'
15305 else
15306 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15307 toolexecmainlibdir='$(libdir)'
15308 fi
15309 multi_os_directory=`$CC -print-multi-os-directory`
15310 case $multi_os_directory in
15311 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15312 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15313 esac
15314 ;;
15315 esac
15316
15317
15318
15319
15320 # Determine where the standard .db file and GNU Classpath JNI
15321 # libraries are found.
15322 multi_os_directory=`$CC -print-multi-os-directory`
15323 case $multi_os_directory in
15324 .)
15325 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15326 ;;
15327 *)
15328 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15329 ;;
15330 esac
15331
15332
15333 # Determine gcj version number.
15334 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15335 GCJVERSION=$gcjversion
15336
15337
15338 cat >>confdefs.h <<_ACEOF
15339 #define GCJVERSION "$GCJVERSION"
15340 _ACEOF
15341
15342
15343
15344 cat >>confdefs.h <<\_ACEOF
15345 #define JV_VERSION "1.5.0"
15346 _ACEOF
15347
15348
15349 cat >>confdefs.h <<\_ACEOF
15350 #define JV_API_VERSION "1.5"
15351 _ACEOF
15352
15353
15354
15355 case "${with_gxx_include_dir}" in
15356 yes)
15357 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15358 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15359 { (exit 1); exit 1; }; }
15360 ;;
15361 no | "")
15362 case "${enable_version_specific_runtime_libs}" in
15363 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15364 *)
15365 libstdcxx_incdir='c++/$(gcc_version)'
15366 gxx_include_dir='include/$(libstdcxx_incdir)'
15367 if test -n "$with_cross_host" &&
15368 test x"$with_cross_host" != x"no"; then
15369 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15370 else
15371 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15372 fi;;
15373 esac ;;
15374 *) gxx_include_dir=${with_gxx_include_dir} ;;
15375 esac
15376
15377
15378
15379
15380 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15381 # On that system, sys/ioctl.h will not include sys/filio.h unless
15382 # BSD_COMP is defined; just including sys/filio.h is simpler.
15383 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15384 # for now. If you change this, you also must update natFile.cc.
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15409 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15410 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15411 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15412 dirent.h sys/rw_lock.h magic.h ifaddrs.h
15413 do
15414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15416 echo "$as_me:$LINENO: checking for $ac_header" >&5
15417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 fi
15421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15423 else
15424 # Is the header compilable?
15425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15427 cat >conftest.$ac_ext <<_ACEOF
15428 /* confdefs.h. */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15433 $ac_includes_default
15434 #include <$ac_header>
15435 _ACEOF
15436 rm -f conftest.$ac_objext
15437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15438 (eval $ac_compile) 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -z "$ac_c_werror_flag"
15446 || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_header_compiler=yes
15459 else
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 ac_header_compiler=no
15464 fi
15465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15467 echo "${ECHO_T}$ac_header_compiler" >&6
15468
15469 # Is the header present?
15470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15472 cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h. */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15478 #include <$ac_header>
15479 _ACEOF
15480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15482 ac_status=$?
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } >/dev/null; then
15488 if test -s conftest.err; then
15489 ac_cpp_err=$ac_c_preproc_warn_flag
15490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15491 else
15492 ac_cpp_err=
15493 fi
15494 else
15495 ac_cpp_err=yes
15496 fi
15497 if test -z "$ac_cpp_err"; then
15498 ac_header_preproc=yes
15499 else
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15502
15503 ac_header_preproc=no
15504 fi
15505 rm -f conftest.err conftest.$ac_ext
15506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15507 echo "${ECHO_T}$ac_header_preproc" >&6
15508
15509 # So? What about this header?
15510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15511 yes:no: )
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15516 ac_header_preproc=yes
15517 ;;
15518 no:yes:* )
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15531 (
15532 cat <<\_ASBOX
15533 ## ---------------------------------- ##
15534 ## Report this to the libjava lists. ##
15535 ## ---------------------------------- ##
15536 _ASBOX
15537 ) |
15538 sed "s/^/$as_me: WARNING: /" >&2
15539 ;;
15540 esac
15541 echo "$as_me:$LINENO: checking for $ac_header" >&5
15542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546 eval "$as_ac_Header=\$ac_header_preproc"
15547 fi
15548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15550
15551 fi
15552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15553 cat >>confdefs.h <<_ACEOF
15554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15555 _ACEOF
15556
15557 fi
15558
15559 done
15560
15561
15562 for ac_header in inttypes.h
15563 do
15564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15566 echo "$as_me:$LINENO: checking for $ac_header" >&5
15567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 fi
15571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15573 else
15574 # Is the header compilable?
15575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h. */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15584 #include <$ac_header>
15585 _ACEOF
15586 rm -f conftest.$ac_objext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15588 (eval $ac_compile) 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest.$ac_objext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_header_compiler=yes
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_header_compiler=no
15614 fi
15615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15617 echo "${ECHO_T}$ac_header_compiler" >&6
15618
15619 # Is the header present?
15620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h. */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 #include <$ac_header>
15629 _ACEOF
15630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15632 ac_status=$?
15633 grep -v '^ *+' conftest.er1 >conftest.err
15634 rm -f conftest.er1
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } >/dev/null; then
15638 if test -s conftest.err; then
15639 ac_cpp_err=$ac_c_preproc_warn_flag
15640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15641 else
15642 ac_cpp_err=
15643 fi
15644 else
15645 ac_cpp_err=yes
15646 fi
15647 if test -z "$ac_cpp_err"; then
15648 ac_header_preproc=yes
15649 else
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652
15653 ac_header_preproc=no
15654 fi
15655 rm -f conftest.err conftest.$ac_ext
15656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15657 echo "${ECHO_T}$ac_header_preproc" >&6
15658
15659 # So? What about this header?
15660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15661 yes:no: )
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15666 ac_header_preproc=yes
15667 ;;
15668 no:yes:* )
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15681 (
15682 cat <<\_ASBOX
15683 ## ---------------------------------- ##
15684 ## Report this to the libjava lists. ##
15685 ## ---------------------------------- ##
15686 _ASBOX
15687 ) |
15688 sed "s/^/$as_me: WARNING: /" >&2
15689 ;;
15690 esac
15691 echo "$as_me:$LINENO: checking for $ac_header" >&5
15692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696 eval "$as_ac_Header=\$ac_header_preproc"
15697 fi
15698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15700
15701 fi
15702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15703 cat >>confdefs.h <<_ACEOF
15704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15705 _ACEOF
15706
15707
15708 cat >>confdefs.h <<\_ACEOF
15709 #define HAVE_INTTYPES_H 1
15710 _ACEOF
15711
15712
15713 cat >>confdefs.h <<\_ACEOF
15714 #define JV_HAVE_INTTYPES_H 1
15715 _ACEOF
15716
15717
15718 fi
15719
15720 done
15721
15722 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15723 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15724 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727 cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h. */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15733 #include <sys/types.h>
15734 #include <sys/wait.h>
15735 #ifndef WEXITSTATUS
15736 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15737 #endif
15738 #ifndef WIFEXITED
15739 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15740 #endif
15741
15742 int
15743 main ()
15744 {
15745 int s;
15746 wait (&s);
15747 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15748 ;
15749 return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754 (eval $ac_compile) 2>conftest.er1
15755 ac_status=$?
15756 grep -v '^ *+' conftest.er1 >conftest.err
15757 rm -f conftest.er1
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
15761 { ac_try='test -z "$ac_c_werror_flag"
15762 || test ! -s conftest.err'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest.$ac_objext'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 ac_cv_header_sys_wait_h=yes
15775 else
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15778
15779 ac_cv_header_sys_wait_h=no
15780 fi
15781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15782 fi
15783 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15784 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15785 if test $ac_cv_header_sys_wait_h = yes; then
15786
15787 cat >>confdefs.h <<\_ACEOF
15788 #define HAVE_SYS_WAIT_H 1
15789 _ACEOF
15790
15791 fi
15792
15793
15794 echo "$as_me:$LINENO: checking for ssize_t" >&5
15795 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15796 if test "${ac_cv_type_ssize_t+set}" = set; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 else
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h. */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 $ac_includes_default
15806 int
15807 main ()
15808 {
15809 if ((ssize_t *) 0)
15810 return 0;
15811 if (sizeof (ssize_t))
15812 return 0;
15813 ;
15814 return 0;
15815 }
15816 _ACEOF
15817 rm -f conftest.$ac_objext
15818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15819 (eval $ac_compile) 2>conftest.er1
15820 ac_status=$?
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
15826 { ac_try='test -z "$ac_c_werror_flag"
15827 || test ! -s conftest.err'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; } &&
15833 { ac_try='test -s conftest.$ac_objext'
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; }; then
15839 ac_cv_type_ssize_t=yes
15840 else
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15843
15844 ac_cv_type_ssize_t=no
15845 fi
15846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15847 fi
15848 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15849 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15850 if test $ac_cv_type_ssize_t = yes; then
15851 :
15852 else
15853
15854 cat >>confdefs.h <<_ACEOF
15855 #define ssize_t int
15856 _ACEOF
15857
15858 fi
15859
15860
15861 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15862 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15863 cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h. */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 #include <sys/types.h>
15870 #if STDC_HEADERS
15871 #include <stdlib.h>
15872 #include <stddef.h>
15873 #endif
15874 #if HAVE_NETINET_IN_H
15875 #include <netinet/in.h>
15876 #endif
15877 int
15878 main ()
15879 {
15880 in_addr_t foo;
15881 ;
15882 return 0;
15883 }
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907
15908 cat >>confdefs.h <<\_ACEOF
15909 #define HAVE_IN_ADDR_T 1
15910 _ACEOF
15911
15912 echo "$as_me:$LINENO: result: yes" >&5
15913 echo "${ECHO_T}yes" >&6
15914 else
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15917
15918 echo "$as_me:$LINENO: result: no" >&5
15919 echo "${ECHO_T}no" >&6
15920 fi
15921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15922
15923 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15924 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h. */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 #include <netinet/in.h>
15932 int
15933 main ()
15934 {
15935 struct ip_mreq mreq;
15936 ;
15937 return 0;
15938 }
15939 _ACEOF
15940 rm -f conftest.$ac_objext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15942 (eval $ac_compile) 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag"
15950 || test ! -s conftest.err'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try='test -s conftest.$ac_objext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE_STRUCT_IP_MREQ 1
15965 _ACEOF
15966
15967 echo "$as_me:$LINENO: result: yes" >&5
15968 echo "${ECHO_T}yes" >&6
15969 else
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 echo "$as_me:$LINENO: result: no" >&5
15974 echo "${ECHO_T}no" >&6
15975 fi
15976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15977
15978 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15979 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15980 cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h. */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986 #include <netinet/in.h>
15987 int
15988 main ()
15989 {
15990 struct ipv6_mreq mreq6;
15991 ;
15992 return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15997 (eval $ac_compile) 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag"
16005 || test ! -s conftest.err'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest.$ac_objext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16017
16018 cat >>confdefs.h <<\_ACEOF
16019 #define HAVE_STRUCT_IPV6_MREQ 1
16020 _ACEOF
16021
16022 echo "$as_me:$LINENO: result: yes" >&5
16023 echo "${ECHO_T}yes" >&6
16024 else
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16027
16028 echo "$as_me:$LINENO: result: no" >&5
16029 echo "${ECHO_T}no" >&6
16030 fi
16031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16032
16033 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
16034 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h. */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 #include <netinet/in.h>
16042 int
16043 main ()
16044 {
16045 struct sockaddr_in6 addr6;
16046 ;
16047 return 0;
16048 }
16049 _ACEOF
16050 rm -f conftest.$ac_objext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>conftest.er1
16053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag"
16060 || test ! -s conftest.err'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; } &&
16066 { ac_try='test -s conftest.$ac_objext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072
16073 cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_INET6 1
16075 _ACEOF
16076
16077 echo "$as_me:$LINENO: result: yes" >&5
16078 echo "${ECHO_T}yes" >&6
16079 else
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16082
16083 echo "$as_me:$LINENO: result: no" >&5
16084 echo "${ECHO_T}no" >&6
16085 fi
16086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16087
16088 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16089 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
16090 cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h. */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 #define _POSIX_PII_SOCKET
16097 #include <sys/types.h>
16098 #include <sys/socket.h>
16099 int
16100 main ()
16101 {
16102 socklen_t x = 5;
16103 ;
16104 return 0;
16105 }
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag"
16117 || test ! -s conftest.err'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } &&
16123 { ac_try='test -s conftest.$ac_objext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129
16130 cat >>confdefs.h <<\_ACEOF
16131 #define HAVE_SOCKLEN_T 1
16132 _ACEOF
16133
16134 echo "$as_me:$LINENO: result: yes" >&5
16135 echo "${ECHO_T}yes" >&6
16136 else
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 echo "$as_me:$LINENO: result: no" >&5
16141 echo "${ECHO_T}no" >&6
16142 fi
16143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16144
16145 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16146 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h. */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 #include <time.h>
16154 int
16155 main ()
16156 {
16157 struct tm tim; tim.tm_gmtoff = 0;
16158 ;
16159 return 0;
16160 }
16161 _ACEOF
16162 rm -f conftest.$ac_objext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164 (eval $ac_compile) 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag"
16172 || test ! -s conftest.err'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try='test -s conftest.$ac_objext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184
16185 cat >>confdefs.h <<\_ACEOF
16186 #define STRUCT_TM_HAS_GMTOFF 1
16187 _ACEOF
16188
16189 echo "$as_me:$LINENO: result: yes" >&5
16190 echo "${ECHO_T}yes" >&6
16191 else
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 echo "$as_me:$LINENO: result: no" >&5
16196 echo "${ECHO_T}no" >&6
16197 echo "$as_me:$LINENO: checking for global timezone variable" >&5
16198 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16199 cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h. */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16205 #include <time.h>
16206 int
16207 main ()
16208 {
16209 void i(){long z2 = 2*timezone;}
16210 ;
16211 return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16216 (eval $ac_compile) 2>conftest.er1
16217 ac_status=$?
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
16223 { ac_try='test -z "$ac_c_werror_flag"
16224 || test ! -s conftest.err'
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest.$ac_objext'
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_TIMEZONE 1
16239 _ACEOF
16240
16241 echo "$as_me:$LINENO: result: yes" >&5
16242 echo "${ECHO_T}yes" >&6
16243 else
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16246
16247 echo "$as_me:$LINENO: result: no" >&5
16248 echo "${ECHO_T}no" >&6
16249 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16250 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 #include <time.h>
16258 int
16259 main ()
16260 {
16261 long z2 = _timezone;
16262 ;
16263 return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268 (eval $ac_compile) 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -z "$ac_c_werror_flag"
16276 || test ! -s conftest.err'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288
16289 cat >>confdefs.h <<\_ACEOF
16290 #define HAVE_UNDERSCORE_TIMEZONE 1
16291 _ACEOF
16292
16293 echo "$as_me:$LINENO: result: yes" >&5
16294 echo "${ECHO_T}yes" >&6
16295 else
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16298
16299 echo "$as_me:$LINENO: result: no" >&5
16300 echo "${ECHO_T}no" >&6
16301 fi
16302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
16308 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16309 # for constant arguments. Useless!
16310 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16311 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16312 if test "${ac_cv_working_alloca_h+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 else
16315 if test x$gcc_no_link = xyes; then
16316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16318 { (exit 1); exit 1; }; }
16319 fi
16320 cat >conftest.$ac_ext <<_ACEOF
16321 /* confdefs.h. */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16326 #include <alloca.h>
16327 int
16328 main ()
16329 {
16330 char *p = (char *) alloca (2 * sizeof (int));
16331 ;
16332 return 0;
16333 }
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16337 (eval $ac_link) 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag"
16345 || test ! -s conftest.err'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest$ac_exeext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_working_alloca_h=yes
16358 else
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16361
16362 ac_cv_working_alloca_h=no
16363 fi
16364 rm -f conftest.err conftest.$ac_objext \
16365 conftest$ac_exeext conftest.$ac_ext
16366 fi
16367 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16368 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16369 if test $ac_cv_working_alloca_h = yes; then
16370
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_ALLOCA_H 1
16373 _ACEOF
16374
16375 fi
16376
16377 echo "$as_me:$LINENO: checking for alloca" >&5
16378 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16379 if test "${ac_cv_func_alloca_works+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382 if test x$gcc_no_link = xyes; then
16383 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16385 { (exit 1); exit 1; }; }
16386 fi
16387 cat >conftest.$ac_ext <<_ACEOF
16388 /* confdefs.h. */
16389 _ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h. */
16393 #ifdef __GNUC__
16394 # define alloca __builtin_alloca
16395 #else
16396 # ifdef _MSC_VER
16397 # include <malloc.h>
16398 # define alloca _alloca
16399 # else
16400 # if HAVE_ALLOCA_H
16401 # include <alloca.h>
16402 # else
16403 # ifdef _AIX
16404 #pragma alloca
16405 # else
16406 # ifndef alloca /* predefined by HP cc +Olibcalls */
16407 char *alloca ();
16408 # endif
16409 # endif
16410 # endif
16411 # endif
16412 #endif
16413
16414 int
16415 main ()
16416 {
16417 char *p = (char *) alloca (1);
16418 ;
16419 return 0;
16420 }
16421 _ACEOF
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16424 (eval $ac_link) 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -z "$ac_c_werror_flag"
16432 || test ! -s conftest.err'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try='test -s conftest$ac_exeext'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 ac_cv_func_alloca_works=yes
16445 else
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16448
16449 ac_cv_func_alloca_works=no
16450 fi
16451 rm -f conftest.err conftest.$ac_objext \
16452 conftest$ac_exeext conftest.$ac_ext
16453 fi
16454 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16455 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16456
16457 if test $ac_cv_func_alloca_works = yes; then
16458
16459 cat >>confdefs.h <<\_ACEOF
16460 #define HAVE_ALLOCA 1
16461 _ACEOF
16462
16463 else
16464 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16465 # that cause trouble. Some versions do not even contain alloca or
16466 # contain a buggy version. If you still want to use their alloca,
16467 # use ar to extract alloca.o from them instead of compiling alloca.c.
16468
16469 ALLOCA=alloca.$ac_objext
16470
16471 cat >>confdefs.h <<\_ACEOF
16472 #define C_ALLOCA 1
16473 _ACEOF
16474
16475
16476 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16477 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16478 if test "${ac_cv_os_cray+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481 cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h. */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16487 #if defined(CRAY) && ! defined(CRAY2)
16488 webecray
16489 #else
16490 wenotbecray
16491 #endif
16492
16493 _ACEOF
16494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16495 $EGREP "webecray" >/dev/null 2>&1; then
16496 ac_cv_os_cray=yes
16497 else
16498 ac_cv_os_cray=no
16499 fi
16500 rm -f conftest*
16501
16502 fi
16503 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16504 echo "${ECHO_T}$ac_cv_os_cray" >&6
16505 if test $ac_cv_os_cray = yes; then
16506 for ac_func in _getb67 GETB67 getb67; do
16507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16508 echo "$as_me:$LINENO: checking for $ac_func" >&5
16509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16510 if eval "test \"\${$as_ac_var+set}\" = set"; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513 if test x$gcc_no_link = xyes; then
16514 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16515 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16516 { (exit 1); exit 1; }; }
16517 fi
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h. */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16526 #define $ac_func innocuous_$ac_func
16527
16528 /* System header to define __stub macros and hopefully few prototypes,
16529 which can conflict with char $ac_func (); below.
16530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16531 <limits.h> exists even on freestanding compilers. */
16532
16533 #ifdef __STDC__
16534 # include <limits.h>
16535 #else
16536 # include <assert.h>
16537 #endif
16538
16539 #undef $ac_func
16540
16541 /* Override any gcc2 internal prototype to avoid an error. */
16542 #ifdef __cplusplus
16543 extern "C"
16544 {
16545 #endif
16546 /* We use char because int might match the return type of a gcc2
16547 builtin and then its argument prototype would still apply. */
16548 char $ac_func ();
16549 /* The GNU C library defines this for functions which it implements
16550 to always fail with ENOSYS. Some functions are actually named
16551 something starting with __ and the normal name is an alias. */
16552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16553 choke me
16554 #else
16555 char (*f) () = $ac_func;
16556 #endif
16557 #ifdef __cplusplus
16558 }
16559 #endif
16560
16561 int
16562 main ()
16563 {
16564 return f != $ac_func;
16565 ;
16566 return 0;
16567 }
16568 _ACEOF
16569 rm -f conftest.$ac_objext conftest$ac_exeext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16571 (eval $ac_link) 2>conftest.er1
16572 ac_status=$?
16573 grep -v '^ *+' conftest.er1 >conftest.err
16574 rm -f conftest.er1
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try='test -z "$ac_c_werror_flag"
16579 || test ! -s conftest.err'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest$ac_exeext'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 eval "$as_ac_var=yes"
16592 else
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16595
16596 eval "$as_ac_var=no"
16597 fi
16598 rm -f conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16600 fi
16601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16603 if test `eval echo '${'$as_ac_var'}'` = yes; then
16604
16605 cat >>confdefs.h <<_ACEOF
16606 #define CRAY_STACKSEG_END $ac_func
16607 _ACEOF
16608
16609 break
16610 fi
16611
16612 done
16613 fi
16614
16615 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16616 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16617 if test "${ac_cv_c_stack_direction+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620 if test "$cross_compiling" = yes; then
16621 ac_cv_c_stack_direction=0
16622 else
16623 cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h. */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 int
16630 find_stack_direction ()
16631 {
16632 static char *addr = 0;
16633 auto char dummy;
16634 if (addr == 0)
16635 {
16636 addr = &dummy;
16637 return find_stack_direction ();
16638 }
16639 else
16640 return (&dummy > addr) ? 1 : -1;
16641 }
16642
16643 int
16644 main ()
16645 {
16646 exit (find_stack_direction () < 0);
16647 }
16648 _ACEOF
16649 rm -f conftest$ac_exeext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16651 (eval $ac_link) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_c_stack_direction=1
16661 else
16662 echo "$as_me: program exited with status $ac_status" >&5
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666 ( exit $ac_status )
16667 ac_cv_c_stack_direction=-1
16668 fi
16669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16670 fi
16671 fi
16672 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16673 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16674
16675 cat >>confdefs.h <<_ACEOF
16676 #define STACK_DIRECTION $ac_cv_c_stack_direction
16677 _ACEOF
16678
16679
16680 fi
16681
16682
16683 for ac_prog in perl
16684 do
16685 # Extract the first word of "$ac_prog", so it can be a program name with args.
16686 set dummy $ac_prog; ac_word=$2
16687 echo "$as_me:$LINENO: checking for $ac_word" >&5
16688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16689 if test "${ac_cv_prog_PERL+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692 if test -n "$PERL"; then
16693 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16694 else
16695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16696 for as_dir in $PATH
16697 do
16698 IFS=$as_save_IFS
16699 test -z "$as_dir" && as_dir=.
16700 for ac_exec_ext in '' $ac_executable_extensions; do
16701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16702 ac_cv_prog_PERL="$ac_prog"
16703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16704 break 2
16705 fi
16706 done
16707 done
16708
16709 fi
16710 fi
16711 PERL=$ac_cv_prog_PERL
16712 if test -n "$PERL"; then
16713 echo "$as_me:$LINENO: result: $PERL" >&5
16714 echo "${ECHO_T}$PERL" >&6
16715 else
16716 echo "$as_me:$LINENO: result: no" >&5
16717 echo "${ECHO_T}no" >&6
16718 fi
16719
16720 test -n "$PERL" && break
16721 done
16722 test -n "$PERL" || PERL="false"
16723
16724
16725 SYSDEP_SOURCES=
16726 SIGNAL_HANDLER_AUX=
16727
16728 case "${host}" in
16729 i?86-*-linux*)
16730 SIGNAL_HANDLER=include/i386-signal.h
16731 ;;
16732 sparc*-sun-solaris*)
16733 SIGNAL_HANDLER=include/sparc-signal.h
16734 ;;
16735 # ia64-*)
16736 # SYSDEP_SOURCES=sysdep/ia64.c
16737 # test -d sysdep || mkdir sysdep
16738 # ;;
16739 hppa*-*-linux*)
16740 SIGNAL_HANDLER=include/pa-signal.h
16741 ;;
16742 hppa*-hp-hpux*)
16743 SIGNAL_HANDLER=include/hppa-signal.h
16744 ;;
16745 ia64-*-linux*)
16746 SIGNAL_HANDLER=include/dwarf2-signal.h
16747 ;;
16748 powerpc*-*-linux*)
16749 SIGNAL_HANDLER=include/powerpc-signal.h
16750 ;;
16751 alpha*-*-linux*)
16752 SIGNAL_HANDLER=include/dwarf2-signal.h
16753 ;;
16754 s390*-*-linux*)
16755 SIGNAL_HANDLER=include/s390-signal.h
16756 ;;
16757 x86_64*-*-linux*)
16758 SIGNAL_HANDLER=include/x86_64-signal.h
16759 SIGNAL_HANDLER_AUX=include/i386-signal.h
16760 ;;
16761 sparc*-*-linux*)
16762 SIGNAL_HANDLER=include/dwarf2-signal.h
16763 ;;
16764 sh*-*-linux*)
16765 SIGNAL_HANDLER=include/sh-signal.h
16766 ;;
16767 *mingw*)
16768 SIGNAL_HANDLER=include/win32-signal.h
16769 ;;
16770 mips*-*-linux*)
16771 SIGNAL_HANDLER=include/mips-signal.h
16772 ;;
16773 powerpc*-*-darwin*)
16774 SIGNAL_HANDLER=include/darwin-signal.h
16775 ;;
16776 *)
16777 SIGNAL_HANDLER=include/default-signal.h
16778 ;;
16779 esac
16780
16781 # If we're using sjlj exceptions, forget what we just learned.
16782 if test "$enable_sjlj_exceptions" = yes; then
16783 SIGNAL_HANDLER=include/default-signal.h
16784 SIGNAL_HANDLER_AUX=
16785 fi
16786
16787
16788
16789 if test -z "$SIGNAL_HANDLER_AUX"; then
16790 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16791 fi
16792
16793 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16794
16795
16796 if test "${multilib}" = "yes"; then
16797 multilib_arg="--enable-multilib"
16798 else
16799 multilib_arg=
16800 fi
16801
16802 # See if we support thread-local storage.
16803
16804 # Check whether --enable-tls or --disable-tls was given.
16805 if test "${enable_tls+set}" = set; then
16806 enableval="$enable_tls"
16807
16808 case "$enableval" in
16809 yes|no) ;;
16810 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16811 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16812 { (exit 1); exit 1; }; } ;;
16813 esac
16814
16815 else
16816 enable_tls=yes
16817 fi;
16818
16819 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16820 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16821 if test "${have_tls+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824
16825 if test "$cross_compiling" = yes; then
16826 if test x$gcc_no_link = xyes; then
16827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16829 { (exit 1); exit 1; }; }
16830 fi
16831 cat >conftest.$ac_ext <<_ACEOF
16832 __thread int a; int b; int main() { return a = b; }
16833 _ACEOF
16834 rm -f conftest.$ac_objext conftest$ac_exeext
16835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16836 (eval $ac_link) 2>conftest.er1
16837 ac_status=$?
16838 grep -v '^ *+' conftest.er1 >conftest.err
16839 rm -f conftest.er1
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
16843 { ac_try='test -z "$ac_c_werror_flag"
16844 || test ! -s conftest.err'
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest$ac_exeext'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 have_tls=yes
16857 else
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16860
16861 have_tls=no
16862 fi
16863 rm -f conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16865
16866 else
16867 cat >conftest.$ac_ext <<_ACEOF
16868 __thread int a; int b; int main() { return a = b; }
16869 _ACEOF
16870 rm -f conftest$ac_exeext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872 (eval $ac_link) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16881 save_LDFLAGS="$LDFLAGS"
16882 LDFLAGS="-static $LDFLAGS"
16883 if test x$gcc_no_link = xyes; then
16884 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16886 { (exit 1); exit 1; }; }
16887 fi
16888 cat >conftest.$ac_ext <<_ACEOF
16889 int main() { return 0; }
16890 _ACEOF
16891 rm -f conftest.$ac_objext conftest$ac_exeext
16892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16893 (eval $ac_link) 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
16900 { ac_try='test -z "$ac_c_werror_flag"
16901 || test ! -s conftest.err'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest$ac_exeext'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 if test "$cross_compiling" = yes; then
16914 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16915 See \`config.log' for more details." >&5
16916 echo "$as_me: error: cannot run test program while cross compiling
16917 See \`config.log' for more details." >&2;}
16918 { (exit 1); exit 1; }; }
16919 else
16920 cat >conftest.$ac_ext <<_ACEOF
16921 __thread int a; int b; int main() { return a = b; }
16922 _ACEOF
16923 rm -f conftest$ac_exeext
16924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16925 (eval $ac_link) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 have_tls=yes
16935 else
16936 echo "$as_me: program exited with status $ac_status" >&5
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940 ( exit $ac_status )
16941 have_tls=no
16942 fi
16943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16944 fi
16945 else
16946 echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16948
16949 have_tls=yes
16950 fi
16951 rm -f conftest.err conftest.$ac_objext \
16952 conftest$ac_exeext conftest.$ac_ext
16953 LDFLAGS="$save_LDFLAGS"
16954 else
16955 echo "$as_me: program exited with status $ac_status" >&5
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16958
16959 ( exit $ac_status )
16960 have_tls=no
16961 fi
16962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16963 fi
16964 fi
16965 echo "$as_me:$LINENO: result: $have_tls" >&5
16966 echo "${ECHO_T}$have_tls" >&6
16967 if test "$enable_tls $have_tls" = "yes yes"; then
16968
16969 cat >>confdefs.h <<\_ACEOF
16970 #define HAVE_TLS 1
16971 _ACEOF
16972
16973 fi
16974
16975 # For _Unwind_GetIPInfo.
16976
16977
16978
16979 ac_ext=cc
16980 ac_cpp='$CXXCPP $CPPFLAGS'
16981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16984
16985 ac_save_CXXFLAGS="$CXXFLAGS"
16986 CXXFLAGS="$CXXFLAGS -fno-exceptions"
16987 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16988 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16989 if test "${gcc_cv_getipinfo+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992
16993 if test x$gcc_no_link = xyes; then
16994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16996 { (exit 1); exit 1; }; }
16997 fi
16998 cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h. */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 extern "C" { extern void _Unwind_GetIPInfo(); }
17005 int
17006 main ()
17007 {
17008 _Unwind_GetIPInfo();
17009 ;
17010 return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_cxx_werror_flag"
17023 || test ! -s conftest.err'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 gcc_cv_getipinfo=yes
17036 else
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 gcc_cv_getipinfo=no
17041 fi
17042 rm -f conftest.err conftest.$ac_objext \
17043 conftest$ac_exeext conftest.$ac_ext
17044
17045 fi
17046
17047 if test $gcc_cv_getipinfo = yes; then
17048
17049 cat >>confdefs.h <<\_ACEOF
17050 #define HAVE_GETIPINFO 1
17051 _ACEOF
17052
17053 fi
17054 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
17055 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
17056 CXXFLAGS="$ac_save_CXXFLAGS"
17057 ac_ext=c
17058 ac_cpp='$CPP $CPPFLAGS'
17059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17062
17063
17064
17065 # Check if linker supports static linking on a per library basis
17066 LD_START_STATIC_SPEC=
17067 LD_FINISH_STATIC_SPEC=
17068 if $LD --help 2>&1 | grep -q -e -call_shared ; then
17069 if $LD --help 2>&1 | grep -q -e -non_shared ; then
17070 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
17071 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
17072 fi
17073 fi
17074
17075
17076
17077 here=`${PWDCMD-pwd}`
17078
17079
17080 # We get this from the environment.
17081
17082
17083 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17084
17085
17086 ac_config_files="$ac_config_files scripts/jar"
17087
17088
17089 ac_config_commands="$ac_config_commands default"
17090
17091
17092 cat >confcache <<\_ACEOF
17093 # This file is a shell script that caches the results of configure
17094 # tests run on this system so they can be shared between configure
17095 # scripts and configure runs, see configure's option --config-cache.
17096 # It is not useful on other systems. If it contains results you don't
17097 # want to keep, you may remove or edit it.
17098 #
17099 # config.status only pays attention to the cache file if you give it
17100 # the --recheck option to rerun configure.
17101 #
17102 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17104 # following values.
17105
17106 _ACEOF
17107
17108 # The following way of writing the cache mishandles newlines in values,
17109 # but we know of no workaround that is simple, portable, and efficient.
17110 # So, don't put newlines in cache variables' values.
17111 # Ultrix sh set writes to stderr and can't be redirected directly,
17112 # and sets the high bit in the cache file unless we assign to the vars.
17113 {
17114 (set) 2>&1 |
17115 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17116 *ac_space=\ *)
17117 # `set' does not quote correctly, so add quotes (double-quote
17118 # substitution turns \\\\ into \\, and sed turns \\ into \).
17119 sed -n \
17120 "s/'/'\\\\''/g;
17121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17122 ;;
17123 *)
17124 # `set' quotes correctly as required by POSIX, so do not add quotes.
17125 sed -n \
17126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17127 ;;
17128 esac;
17129 } |
17130 sed '
17131 t clear
17132 : clear
17133 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17134 t end
17135 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17136 : end' >>confcache
17137 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17138 if test -w $cache_file; then
17139 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17140 cat confcache >$cache_file
17141 else
17142 echo "not updating unwritable cache $cache_file"
17143 fi
17144 fi
17145 rm -f confcache
17146
17147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17148 # Let make expand exec_prefix.
17149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17150
17151 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17152 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17153 # trailing colons and then remove the whole line if VPATH becomes empty
17154 # (actually we leave an empty line to preserve line numbers).
17155 if test "x$srcdir" = x.; then
17156 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17157 s/:*\$(srcdir):*/:/;
17158 s/:*\${srcdir}:*/:/;
17159 s/:*@srcdir@:*/:/;
17160 s/^\([^=]*=[ ]*\):*/\1/;
17161 s/:*$//;
17162 s/^[^=]*=[ ]*$//;
17163 }'
17164 fi
17165
17166 DEFS=-DHAVE_CONFIG_H
17167
17168 ac_libobjs=
17169 ac_ltlibobjs=
17170 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17171 # 1. Remove the extension, and $U if already installed.
17172 ac_i=`echo "$ac_i" |
17173 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17174 # 2. Add them.
17175 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17176 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17177 done
17178 LIBOBJS=$ac_libobjs
17179
17180 LTLIBOBJS=$ac_ltlibobjs
17181
17182
17183 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17184 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17185 Usually this means the macro was only invoked conditionally." >&5
17186 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17187 Usually this means the macro was only invoked conditionally." >&2;}
17188 { (exit 1); exit 1; }; }
17189 fi
17190 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17191 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17192 Usually this means the macro was only invoked conditionally." >&5
17193 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17194 Usually this means the macro was only invoked conditionally." >&2;}
17195 { (exit 1); exit 1; }; }
17196 fi
17197 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17198 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17199 Usually this means the macro was only invoked conditionally." >&5
17200 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17201 Usually this means the macro was only invoked conditionally." >&2;}
17202 { (exit 1); exit 1; }; }
17203 fi
17204 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17205 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17206 Usually this means the macro was only invoked conditionally." >&5
17207 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17208 Usually this means the macro was only invoked conditionally." >&2;}
17209 { (exit 1); exit 1; }; }
17210 fi
17211 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
17212 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
17213 Usually this means the macro was only invoked conditionally." >&5
17214 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
17215 Usually this means the macro was only invoked conditionally." >&2;}
17216 { (exit 1); exit 1; }; }
17217 fi
17218 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17219 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17220 Usually this means the macro was only invoked conditionally." >&5
17221 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17222 Usually this means the macro was only invoked conditionally." >&2;}
17223 { (exit 1); exit 1; }; }
17224 fi
17225 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17226 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17227 Usually this means the macro was only invoked conditionally." >&5
17228 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17229 Usually this means the macro was only invoked conditionally." >&2;}
17230 { (exit 1); exit 1; }; }
17231 fi
17232 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17233 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17234 Usually this means the macro was only invoked conditionally." >&5
17235 echo "$as_me: error: conditional \"X_AWT\" was never defined.
17236 Usually this means the macro was only invoked conditionally." >&2;}
17237 { (exit 1); exit 1; }; }
17238 fi
17239 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17240 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17241 Usually this means the macro was only invoked conditionally." >&5
17242 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17243 Usually this means the macro was only invoked conditionally." >&2;}
17244 { (exit 1); exit 1; }; }
17245 fi
17246 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17247 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17248 Usually this means the macro was only invoked conditionally." >&5
17249 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17250 Usually this means the macro was only invoked conditionally." >&2;}
17251 { (exit 1); exit 1; }; }
17252 fi
17253 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17254 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17255 Usually this means the macro was only invoked conditionally." >&5
17256 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
17257 Usually this means the macro was only invoked conditionally." >&2;}
17258 { (exit 1); exit 1; }; }
17259 fi
17260 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17261 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17262 Usually this means the macro was only invoked conditionally." >&5
17263 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17264 Usually this means the macro was only invoked conditionally." >&2;}
17265 { (exit 1); exit 1; }; }
17266 fi
17267 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17268 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17269 Usually this means the macro was only invoked conditionally." >&5
17270 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17271 Usually this means the macro was only invoked conditionally." >&2;}
17272 { (exit 1); exit 1; }; }
17273 fi
17274 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17275 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17276 Usually this means the macro was only invoked conditionally." >&5
17277 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17278 Usually this means the macro was only invoked conditionally." >&2;}
17279 { (exit 1); exit 1; }; }
17280 fi
17281 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17282 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17283 Usually this means the macro was only invoked conditionally." >&5
17284 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17285 Usually this means the macro was only invoked conditionally." >&2;}
17286 { (exit 1); exit 1; }; }
17287 fi
17288 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17289 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17290 Usually this means the macro was only invoked conditionally." >&5
17291 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17292 Usually this means the macro was only invoked conditionally." >&2;}
17293 { (exit 1); exit 1; }; }
17294 fi
17295 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17296 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17297 Usually this means the macro was only invoked conditionally." >&5
17298 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17299 Usually this means the macro was only invoked conditionally." >&2;}
17300 { (exit 1); exit 1; }; }
17301 fi
17302 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17303 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17304 Usually this means the macro was only invoked conditionally." >&5
17305 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17306 Usually this means the macro was only invoked conditionally." >&2;}
17307 { (exit 1); exit 1; }; }
17308 fi
17309 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17310 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17311 Usually this means the macro was only invoked conditionally." >&5
17312 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17313 Usually this means the macro was only invoked conditionally." >&2;}
17314 { (exit 1); exit 1; }; }
17315 fi
17316 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17317 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17318 Usually this means the macro was only invoked conditionally." >&5
17319 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17320 Usually this means the macro was only invoked conditionally." >&2;}
17321 { (exit 1); exit 1; }; }
17322 fi
17323 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17324 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17325 Usually this means the macro was only invoked conditionally." >&5
17326 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17327 Usually this means the macro was only invoked conditionally." >&2;}
17328 { (exit 1); exit 1; }; }
17329 fi
17330 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17331 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17332 Usually this means the macro was only invoked conditionally." >&5
17333 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17334 Usually this means the macro was only invoked conditionally." >&2;}
17335 { (exit 1); exit 1; }; }
17336 fi
17337 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17338 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17339 Usually this means the macro was only invoked conditionally." >&5
17340 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17341 Usually this means the macro was only invoked conditionally." >&2;}
17342 { (exit 1); exit 1; }; }
17343 fi
17344 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17345 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17346 Usually this means the macro was only invoked conditionally." >&5
17347 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17348 Usually this means the macro was only invoked conditionally." >&2;}
17349 { (exit 1); exit 1; }; }
17350 fi
17351 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17352 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17353 Usually this means the macro was only invoked conditionally." >&5
17354 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17355 Usually this means the macro was only invoked conditionally." >&2;}
17356 { (exit 1); exit 1; }; }
17357 fi
17358 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17359 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17360 Usually this means the macro was only invoked conditionally." >&5
17361 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17362 Usually this means the macro was only invoked conditionally." >&2;}
17363 { (exit 1); exit 1; }; }
17364 fi
17365
17366 : ${CONFIG_STATUS=./config.status}
17367 ac_clean_files_save=$ac_clean_files
17368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17369 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17370 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17371 cat >$CONFIG_STATUS <<_ACEOF
17372 #! $SHELL
17373 # Generated by $as_me.
17374 # Run this file to recreate the current configuration.
17375 # Compiler output produced by configure, useful for debugging
17376 # configure, is in config.log if it exists.
17377
17378 debug=false
17379 ac_cs_recheck=false
17380 ac_cs_silent=false
17381 SHELL=\${CONFIG_SHELL-$SHELL}
17382 _ACEOF
17383
17384 cat >>$CONFIG_STATUS <<\_ACEOF
17385 ## --------------------- ##
17386 ## M4sh Initialization. ##
17387 ## --------------------- ##
17388
17389 # Be Bourne compatible
17390 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17391 emulate sh
17392 NULLCMD=:
17393 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17394 # is contrary to our usage. Disable this feature.
17395 alias -g '${1+"$@"}'='"$@"'
17396 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17397 set -o posix
17398 fi
17399 DUALCASE=1; export DUALCASE # for MKS sh
17400
17401 # Support unset when possible.
17402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17403 as_unset=unset
17404 else
17405 as_unset=false
17406 fi
17407
17408
17409 # Work around bugs in pre-3.0 UWIN ksh.
17410 $as_unset ENV MAIL MAILPATH
17411 PS1='$ '
17412 PS2='> '
17413 PS4='+ '
17414
17415 # NLS nuisances.
17416 for as_var in \
17417 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17418 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17419 LC_TELEPHONE LC_TIME
17420 do
17421 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17422 eval $as_var=C; export $as_var
17423 else
17424 $as_unset $as_var
17425 fi
17426 done
17427
17428 # Required to use basename.
17429 if expr a : '\(a\)' >/dev/null 2>&1; then
17430 as_expr=expr
17431 else
17432 as_expr=false
17433 fi
17434
17435 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17436 as_basename=basename
17437 else
17438 as_basename=false
17439 fi
17440
17441
17442 # Name of the executable.
17443 as_me=`$as_basename "$0" ||
17444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17445 X"$0" : 'X\(//\)$' \| \
17446 X"$0" : 'X\(/\)$' \| \
17447 . : '\(.\)' 2>/dev/null ||
17448 echo X/"$0" |
17449 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17450 /^X\/\(\/\/\)$/{ s//\1/; q; }
17451 /^X\/\(\/\).*/{ s//\1/; q; }
17452 s/.*/./; q'`
17453
17454
17455 # PATH needs CR, and LINENO needs CR and PATH.
17456 # Avoid depending upon Character Ranges.
17457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17460 as_cr_digits='0123456789'
17461 as_cr_alnum=$as_cr_Letters$as_cr_digits
17462
17463 # The user is always right.
17464 if test "${PATH_SEPARATOR+set}" != set; then
17465 echo "#! /bin/sh" >conf$$.sh
17466 echo "exit 0" >>conf$$.sh
17467 chmod +x conf$$.sh
17468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17469 PATH_SEPARATOR=';'
17470 else
17471 PATH_SEPARATOR=:
17472 fi
17473 rm -f conf$$.sh
17474 fi
17475
17476
17477 as_lineno_1=$LINENO
17478 as_lineno_2=$LINENO
17479 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17480 test "x$as_lineno_1" != "x$as_lineno_2" &&
17481 test "x$as_lineno_3" = "x$as_lineno_2" || {
17482 # Find who we are. Look in the path if we contain no path at all
17483 # relative or not.
17484 case $0 in
17485 *[\\/]* ) as_myself=$0 ;;
17486 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17487 for as_dir in $PATH
17488 do
17489 IFS=$as_save_IFS
17490 test -z "$as_dir" && as_dir=.
17491 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17492 done
17493
17494 ;;
17495 esac
17496 # We did not find ourselves, most probably we were run as `sh COMMAND'
17497 # in which case we are not to be found in the path.
17498 if test "x$as_myself" = x; then
17499 as_myself=$0
17500 fi
17501 if test ! -f "$as_myself"; then
17502 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17503 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17504 { (exit 1); exit 1; }; }
17505 fi
17506 case $CONFIG_SHELL in
17507 '')
17508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17509 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17510 do
17511 IFS=$as_save_IFS
17512 test -z "$as_dir" && as_dir=.
17513 for as_base in sh bash ksh sh5; do
17514 case $as_dir in
17515 /*)
17516 if ("$as_dir/$as_base" -c '
17517 as_lineno_1=$LINENO
17518 as_lineno_2=$LINENO
17519 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17520 test "x$as_lineno_1" != "x$as_lineno_2" &&
17521 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17522 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17523 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17524 CONFIG_SHELL=$as_dir/$as_base
17525 export CONFIG_SHELL
17526 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17527 fi;;
17528 esac
17529 done
17530 done
17531 ;;
17532 esac
17533
17534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17535 # uniformly replaced by the line number. The first 'sed' inserts a
17536 # line-number line before each line; the second 'sed' does the real
17537 # work. The second script uses 'N' to pair each line-number line
17538 # with the numbered line, and appends trailing '-' during
17539 # substitution so that $LINENO is not a special case at line end.
17540 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17541 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17542 sed '=' <$as_myself |
17543 sed '
17544 N
17545 s,$,-,
17546 : loop
17547 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17548 t loop
17549 s,-$,,
17550 s,^['$as_cr_digits']*\n,,
17551 ' >$as_me.lineno &&
17552 chmod +x $as_me.lineno ||
17553 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17554 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17555 { (exit 1); exit 1; }; }
17556
17557 # Don't try to exec as it changes $[0], causing all sort of problems
17558 # (the dirname of $[0] is not the place where we might find the
17559 # original and so on. Autoconf is especially sensible to this).
17560 . ./$as_me.lineno
17561 # Exit status is that of the last command.
17562 exit
17563 }
17564
17565
17566 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17567 *c*,-n*) ECHO_N= ECHO_C='
17568 ' ECHO_T=' ' ;;
17569 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17570 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17571 esac
17572
17573 if expr a : '\(a\)' >/dev/null 2>&1; then
17574 as_expr=expr
17575 else
17576 as_expr=false
17577 fi
17578
17579 rm -f conf$$ conf$$.exe conf$$.file
17580 echo >conf$$.file
17581 if ln -s conf$$.file conf$$ 2>/dev/null; then
17582 # We could just check for DJGPP; but this test a) works b) is more generic
17583 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17584 if test -f conf$$.exe; then
17585 # Don't use ln at all; we don't have any links
17586 as_ln_s='cp -p'
17587 else
17588 as_ln_s='ln -s'
17589 fi
17590 elif ln conf$$.file conf$$ 2>/dev/null; then
17591 as_ln_s=ln
17592 else
17593 as_ln_s='cp -p'
17594 fi
17595 rm -f conf$$ conf$$.exe conf$$.file
17596
17597 if mkdir -p . 2>/dev/null; then
17598 as_mkdir_p=:
17599 else
17600 test -d ./-p && rmdir ./-p
17601 as_mkdir_p=false
17602 fi
17603
17604 as_executable_p="test -f"
17605
17606 # Sed expression to map a string onto a valid CPP name.
17607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17608
17609 # Sed expression to map a string onto a valid variable name.
17610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17611
17612
17613 # IFS
17614 # We need space, tab and new line, in precisely that order.
17615 as_nl='
17616 '
17617 IFS=" $as_nl"
17618
17619 # CDPATH.
17620 $as_unset CDPATH
17621
17622 exec 6>&1
17623
17624 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17625 # report actual input values of CONFIG_FILES etc. instead of their
17626 # values after options handling. Logging --version etc. is OK.
17627 exec 5>>config.log
17628 {
17629 echo
17630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17631 ## Running $as_me. ##
17632 _ASBOX
17633 } >&5
17634 cat >&5 <<_CSEOF
17635
17636 This file was extended by libjava $as_me version-unused, which was
17637 generated by GNU Autoconf 2.59. Invocation command line was
17638
17639 CONFIG_FILES = $CONFIG_FILES
17640 CONFIG_HEADERS = $CONFIG_HEADERS
17641 CONFIG_LINKS = $CONFIG_LINKS
17642 CONFIG_COMMANDS = $CONFIG_COMMANDS
17643 $ $0 $@
17644
17645 _CSEOF
17646 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17647 echo >&5
17648 _ACEOF
17649
17650 # Files that config.status was made for.
17651 if test -n "$ac_config_files"; then
17652 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17653 fi
17654
17655 if test -n "$ac_config_headers"; then
17656 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17657 fi
17658
17659 if test -n "$ac_config_links"; then
17660 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17661 fi
17662
17663 if test -n "$ac_config_commands"; then
17664 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17665 fi
17666
17667 cat >>$CONFIG_STATUS <<\_ACEOF
17668
17669 ac_cs_usage="\
17670 \`$as_me' instantiates files from templates according to the
17671 current configuration.
17672
17673 Usage: $0 [OPTIONS] [FILE]...
17674
17675 -h, --help print this help, then exit
17676 -V, --version print version number, then exit
17677 -q, --quiet do not print progress messages
17678 -d, --debug don't remove temporary files
17679 --recheck update $as_me by reconfiguring in the same conditions
17680 --file=FILE[:TEMPLATE]
17681 instantiate the configuration file FILE
17682 --header=FILE[:TEMPLATE]
17683 instantiate the configuration header FILE
17684
17685 Configuration files:
17686 $config_files
17687
17688 Configuration headers:
17689 $config_headers
17690
17691 Configuration links:
17692 $config_links
17693
17694 Configuration commands:
17695 $config_commands
17696
17697 Report bugs to <bug-autoconf@gnu.org>."
17698 _ACEOF
17699
17700 cat >>$CONFIG_STATUS <<_ACEOF
17701 ac_cs_version="\\
17702 libjava config.status version-unused
17703 configured by $0, generated by GNU Autoconf 2.59,
17704 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17705
17706 Copyright (C) 2003 Free Software Foundation, Inc.
17707 This config.status script is free software; the Free Software Foundation
17708 gives unlimited permission to copy, distribute and modify it."
17709 srcdir=$srcdir
17710 INSTALL="$INSTALL"
17711 _ACEOF
17712
17713 cat >>$CONFIG_STATUS <<\_ACEOF
17714 # If no file are specified by the user, then we need to provide default
17715 # value. By we need to know if files were specified by the user.
17716 ac_need_defaults=:
17717 while test $# != 0
17718 do
17719 case $1 in
17720 --*=*)
17721 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17722 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17723 ac_shift=:
17724 ;;
17725 -*)
17726 ac_option=$1
17727 ac_optarg=$2
17728 ac_shift=shift
17729 ;;
17730 *) # This is not an option, so the user has probably given explicit
17731 # arguments.
17732 ac_option=$1
17733 ac_need_defaults=false;;
17734 esac
17735
17736 case $ac_option in
17737 # Handling of the options.
17738 _ACEOF
17739 cat >>$CONFIG_STATUS <<\_ACEOF
17740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17741 ac_cs_recheck=: ;;
17742 --version | --vers* | -V )
17743 echo "$ac_cs_version"; exit 0 ;;
17744 --he | --h)
17745 # Conflict between --help and --header
17746 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17747 Try \`$0 --help' for more information." >&5
17748 echo "$as_me: error: ambiguous option: $1
17749 Try \`$0 --help' for more information." >&2;}
17750 { (exit 1); exit 1; }; };;
17751 --help | --hel | -h )
17752 echo "$ac_cs_usage"; exit 0 ;;
17753 --debug | --d* | -d )
17754 debug=: ;;
17755 --file | --fil | --fi | --f )
17756 $ac_shift
17757 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17758 ac_need_defaults=false;;
17759 --header | --heade | --head | --hea )
17760 $ac_shift
17761 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17762 ac_need_defaults=false;;
17763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17765 ac_cs_silent=: ;;
17766
17767 # This is an error.
17768 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17769 Try \`$0 --help' for more information." >&5
17770 echo "$as_me: error: unrecognized option: $1
17771 Try \`$0 --help' for more information." >&2;}
17772 { (exit 1); exit 1; }; } ;;
17773
17774 *) ac_config_targets="$ac_config_targets $1" ;;
17775
17776 esac
17777 shift
17778 done
17779
17780 ac_configure_extra_args=
17781
17782 if $ac_cs_silent; then
17783 exec 6>/dev/null
17784 ac_configure_extra_args="$ac_configure_extra_args --silent"
17785 fi
17786
17787 _ACEOF
17788 cat >>$CONFIG_STATUS <<_ACEOF
17789 if \$ac_cs_recheck; then
17790 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17791 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17792 fi
17793
17794 _ACEOF
17795
17796 cat >>$CONFIG_STATUS <<_ACEOF
17797 #
17798 # INIT-COMMANDS section.
17799 #
17800
17801
17802 srcdir="$srcdir"
17803 host="$host"
17804 target="$target"
17805 with_multisubdir="$with_multisubdir"
17806 with_multisrctop="$with_multisrctop"
17807 with_target_subdir="$with_target_subdir"
17808 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17809 multi_basedir="$multi_basedir"
17810 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17811 CC="$CC"
17812 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17813 srcdir=${srcdir}
17814 host=${host}
17815 target=${target}
17816 with_multisubdir=${with_multisubdir}
17817 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17818 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17819 multi_basedir=${multi_basedir}
17820 CC="${CC}"
17821 CXX="${CXX}"
17822 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17823
17824
17825 _ACEOF
17826
17827
17828
17829 cat >>$CONFIG_STATUS <<\_ACEOF
17830 for ac_config_target in $ac_config_targets
17831 do
17832 case "$ac_config_target" in
17833 # Handling of arguments.
17834 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17835 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17836 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17837 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17838 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17839 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17840 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17841 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17842 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17843 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17844 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17845 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
17846 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17847 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17848 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17849 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17850 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17851 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17852 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17853 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17854 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17855 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17856 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17857 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17858 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17859 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17860 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17861 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17862 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17863 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17865 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17866 { (exit 1); exit 1; }; };;
17867 esac
17868 done
17869
17870 # If the user did not use the arguments to specify the items to instantiate,
17871 # then the envvar interface is used. Set only those that are not.
17872 # We use the long form for the default assignment because of an extremely
17873 # bizarre bug on SunOS 4.1.3.
17874 if $ac_need_defaults; then
17875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17877 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17879 fi
17880
17881 # Have a temporary directory for convenience. Make it in the build tree
17882 # simply because there is no reason to put it here, and in addition,
17883 # creating and moving files from /tmp can sometimes cause problems.
17884 # Create a temporary directory, and hook for its removal unless debugging.
17885 $debug ||
17886 {
17887 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17888 trap '{ (exit 1); exit 1; }' 1 2 13 15
17889 }
17890
17891 # Create a (secure) tmp directory for tmp files.
17892
17893 {
17894 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17895 test -n "$tmp" && test -d "$tmp"
17896 } ||
17897 {
17898 tmp=./confstat$$-$RANDOM
17899 (umask 077 && mkdir $tmp)
17900 } ||
17901 {
17902 echo "$me: cannot create a temporary directory in ." >&2
17903 { (exit 1); exit 1; }
17904 }
17905
17906 _ACEOF
17907
17908 cat >>$CONFIG_STATUS <<_ACEOF
17909
17910 #
17911 # CONFIG_FILES section.
17912 #
17913
17914 # No need to generate the scripts if there are no CONFIG_FILES.
17915 # This happens for instance when ./config.status config.h
17916 if test -n "\$CONFIG_FILES"; then
17917 # Protect against being on the right side of a sed subst in config.status.
17918 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17919 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17920 s,@SHELL@,$SHELL,;t t
17921 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17922 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17923 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17924 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17925 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17926 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17927 s,@exec_prefix@,$exec_prefix,;t t
17928 s,@prefix@,$prefix,;t t
17929 s,@program_transform_name@,$program_transform_name,;t t
17930 s,@bindir@,$bindir,;t t
17931 s,@sbindir@,$sbindir,;t t
17932 s,@libexecdir@,$libexecdir,;t t
17933 s,@datadir@,$datadir,;t t
17934 s,@sysconfdir@,$sysconfdir,;t t
17935 s,@sharedstatedir@,$sharedstatedir,;t t
17936 s,@localstatedir@,$localstatedir,;t t
17937 s,@libdir@,$libdir,;t t
17938 s,@includedir@,$includedir,;t t
17939 s,@oldincludedir@,$oldincludedir,;t t
17940 s,@infodir@,$infodir,;t t
17941 s,@mandir@,$mandir,;t t
17942 s,@build_alias@,$build_alias,;t t
17943 s,@host_alias@,$host_alias,;t t
17944 s,@target_alias@,$target_alias,;t t
17945 s,@DEFS@,$DEFS,;t t
17946 s,@ECHO_C@,$ECHO_C,;t t
17947 s,@ECHO_N@,$ECHO_N,;t t
17948 s,@ECHO_T@,$ECHO_T,;t t
17949 s,@LIBS@,$LIBS,;t t
17950 s,@build@,$build,;t t
17951 s,@build_cpu@,$build_cpu,;t t
17952 s,@build_vendor@,$build_vendor,;t t
17953 s,@build_os@,$build_os,;t t
17954 s,@build_libsubdir@,$build_libsubdir,;t t
17955 s,@build_subdir@,$build_subdir,;t t
17956 s,@host_subdir@,$host_subdir,;t t
17957 s,@target_subdir@,$target_subdir,;t t
17958 s,@multi_basedir@,$multi_basedir,;t t
17959 s,@host@,$host,;t t
17960 s,@host_cpu@,$host_cpu,;t t
17961 s,@host_vendor@,$host_vendor,;t t
17962 s,@host_os@,$host_os,;t t
17963 s,@target@,$target,;t t
17964 s,@target_cpu@,$target_cpu,;t t
17965 s,@target_vendor@,$target_vendor,;t t
17966 s,@target_os@,$target_os,;t t
17967 s,@target_noncanonical@,$target_noncanonical,;t t
17968 s,@LN_S@,$LN_S,;t t
17969 s,@mkinstalldirs@,$mkinstalldirs,;t t
17970 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
17971 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
17972 s,@CC@,$CC,;t t
17973 s,@ac_ct_CC@,$ac_ct_CC,;t t
17974 s,@EXEEXT@,$EXEEXT,;t t
17975 s,@OBJEXT@,$OBJEXT,;t t
17976 s,@CXX@,$CXX,;t t
17977 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17978 s,@CFLAGS@,$CFLAGS,;t t
17979 s,@CXXFLAGS@,$CXXFLAGS,;t t
17980 s,@LDFLAGS@,$LDFLAGS,;t t
17981 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17982 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17984 s,@CYGPATH_W@,$CYGPATH_W,;t t
17985 s,@PACKAGE@,$PACKAGE,;t t
17986 s,@VERSION@,$VERSION,;t t
17987 s,@ACLOCAL@,$ACLOCAL,;t t
17988 s,@AUTOCONF@,$AUTOCONF,;t t
17989 s,@AUTOMAKE@,$AUTOMAKE,;t t
17990 s,@AUTOHEADER@,$AUTOHEADER,;t t
17991 s,@MAKEINFO@,$MAKEINFO,;t t
17992 s,@install_sh@,$install_sh,;t t
17993 s,@STRIP@,$STRIP,;t t
17994 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17995 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17996 s,@mkdir_p@,$mkdir_p,;t t
17997 s,@AWK@,$AWK,;t t
17998 s,@SET_MAKE@,$SET_MAKE,;t t
17999 s,@am__leading_dot@,$am__leading_dot,;t t
18000 s,@AMTAR@,$AMTAR,;t t
18001 s,@am__tar@,$am__tar,;t t
18002 s,@am__untar@,$am__untar,;t t
18003 s,@DEPDIR@,$DEPDIR,;t t
18004 s,@am__include@,$am__include,;t t
18005 s,@am__quote@,$am__quote,;t t
18006 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18007 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18008 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18009 s,@CCDEPMODE@,$CCDEPMODE,;t t
18010 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18011 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18012 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18013 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18014 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18015 s,@AS@,$AS,;t t
18016 s,@ac_ct_AS@,$ac_ct_AS,;t t
18017 s,@LD@,$LD,;t t
18018 s,@ac_ct_LD@,$ac_ct_LD,;t t
18019 s,@AR@,$AR,;t t
18020 s,@ac_ct_AR@,$ac_ct_AR,;t t
18021 s,@RANLIB@,$RANLIB,;t t
18022 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18023 s,@JAR@,$JAR,;t t
18024 s,@ZIP@,$ZIP,;t t
18025 s,@UNZIP@,$UNZIP,;t t
18026 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
18027 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
18028 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18029 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18030 s,@MAINT@,$MAINT,;t t
18031 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
18032 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
18033 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
18034 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
18035 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
18036 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
18037 s,@TOOLKIT@,$TOOLKIT,;t t
18038 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
18039 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
18040 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
18041 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
18042 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
18043 s,@GCJH@,$GCJH,;t t
18044 s,@host_exeext@,$host_exeext,;t t
18045 s,@INCLTDL@,$INCLTDL,;t t
18046 s,@LIBLTDL@,$LIBLTDL,;t t
18047 s,@DIRLTDL@,$DIRLTDL,;t t
18048 s,@LIBTOOL@,$LIBTOOL,;t t
18049 s,@CXXCPP@,$CXXCPP,;t t
18050 s,@CPPFLAGS@,$CPPFLAGS,;t t
18051 s,@GCJ@,$GCJ,;t t
18052 s,@GCJFLAGS@,$GCJFLAGS,;t t
18053 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
18054 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
18055 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
18056 s,@subdirs@,$subdirs,;t t
18057 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
18058 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
18059 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
18060 s,@ECJ_JAR@,$ECJ_JAR,;t t
18061 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
18062 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
18063 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
18064 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
18065 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
18066 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
18067 s,@JAVA_HOME@,$JAVA_HOME,;t t
18068 s,@INTERPRETER@,$INTERPRETER,;t t
18069 s,@LIBFFI@,$LIBFFI,;t t
18070 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
18071 s,@PLATFORM@,$PLATFORM,;t t
18072 s,@CPP@,$CPP,;t t
18073 s,@EGREP@,$EGREP,;t t
18074 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
18075 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
18076 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
18077 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
18078 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
18079 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
18080 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
18081 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
18082 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
18083 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
18084 s,@X_CFLAGS@,$X_CFLAGS,;t t
18085 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18086 s,@X_LIBS@,$X_LIBS,;t t
18087 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18088 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
18089 s,@GCLIBS@,$GCLIBS,;t t
18090 s,@GCINCS@,$GCINCS,;t t
18091 s,@GCDEPS@,$GCDEPS,;t t
18092 s,@GCSPEC@,$GCSPEC,;t t
18093 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
18094 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
18095 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
18096 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
18097 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18098 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18099 s,@THREADLIBS@,$THREADLIBS,;t t
18100 s,@THREADINCS@,$THREADINCS,;t t
18101 s,@THREADDEPS@,$THREADDEPS,;t t
18102 s,@THREADSPEC@,$THREADSPEC,;t t
18103 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
18104 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18105 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18106 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18107 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18108 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18109 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18110 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18111 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
18112 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18113 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18114 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
18115 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18116 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18117 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18118 s,@LIBICONV@,$LIBICONV,;t t
18119 s,@LTLIBICONV@,$LTLIBICONV,;t t
18120 s,@LIBMAGIC@,$LIBMAGIC,;t t
18121 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18122 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18123 s,@GTK_LIBS@,$GTK_LIBS,;t t
18124 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18125 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18126 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18127 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18128 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18129 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18130 s,@ZLIBS@,$ZLIBS,;t t
18131 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18132 s,@ZINCS@,$ZINCS,;t t
18133 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18134 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18135 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18136 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18137 s,@IEEESPEC@,$IEEESPEC,;t t
18138 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18139 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
18140 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18141 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
18142 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18143 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18144 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18145 s,@toolexecdir@,$toolexecdir,;t t
18146 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18147 s,@toolexeclibdir@,$toolexeclibdir,;t t
18148 s,@dbexecdir@,$dbexecdir,;t t
18149 s,@GCJVERSION@,$GCJVERSION,;t t
18150 s,@gxx_include_dir@,$gxx_include_dir,;t t
18151 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18152 s,@ALLOCA@,$ALLOCA,;t t
18153 s,@PERL@,$PERL,;t t
18154 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18155 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18156 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18157 s,@here@,$here,;t t
18158 s,@LIBOBJS@,$LIBOBJS,;t t
18159 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18160 CEOF
18161
18162 _ACEOF
18163
18164 cat >>$CONFIG_STATUS <<\_ACEOF
18165 # Split the substitutions into bite-sized pieces for seds with
18166 # small command number limits, like on Digital OSF/1 and HP-UX.
18167 ac_max_sed_lines=48
18168 ac_sed_frag=1 # Number of current file.
18169 ac_beg=1 # First line for current file.
18170 ac_end=$ac_max_sed_lines # Line after last line for current file.
18171 ac_more_lines=:
18172 ac_sed_cmds=
18173 while $ac_more_lines; do
18174 if test $ac_beg -gt 1; then
18175 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18176 else
18177 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18178 fi
18179 if test ! -s $tmp/subs.frag; then
18180 ac_more_lines=false
18181 else
18182 # The purpose of the label and of the branching condition is to
18183 # speed up the sed processing (if there are no `@' at all, there
18184 # is no need to browse any of the substitutions).
18185 # These are the two extra sed commands mentioned above.
18186 (echo ':t
18187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18188 if test -z "$ac_sed_cmds"; then
18189 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18190 else
18191 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18192 fi
18193 ac_sed_frag=`expr $ac_sed_frag + 1`
18194 ac_beg=$ac_end
18195 ac_end=`expr $ac_end + $ac_max_sed_lines`
18196 fi
18197 done
18198 if test -z "$ac_sed_cmds"; then
18199 ac_sed_cmds=cat
18200 fi
18201 fi # test -n "$CONFIG_FILES"
18202
18203 _ACEOF
18204 cat >>$CONFIG_STATUS <<\_ACEOF
18205 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18206 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18207 case $ac_file in
18208 - | *:- | *:-:* ) # input from stdin
18209 cat >$tmp/stdin
18210 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18211 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18212 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18213 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18214 * ) ac_file_in=$ac_file.in ;;
18215 esac
18216
18217 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18218 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18219 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18220 X"$ac_file" : 'X\(//\)[^/]' \| \
18221 X"$ac_file" : 'X\(//\)$' \| \
18222 X"$ac_file" : 'X\(/\)' \| \
18223 . : '\(.\)' 2>/dev/null ||
18224 echo X"$ac_file" |
18225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18227 /^X\(\/\/\)$/{ s//\1/; q; }
18228 /^X\(\/\).*/{ s//\1/; q; }
18229 s/.*/./; q'`
18230 { if $as_mkdir_p; then
18231 mkdir -p "$ac_dir"
18232 else
18233 as_dir="$ac_dir"
18234 as_dirs=
18235 while test ! -d "$as_dir"; do
18236 as_dirs="$as_dir $as_dirs"
18237 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18239 X"$as_dir" : 'X\(//\)[^/]' \| \
18240 X"$as_dir" : 'X\(//\)$' \| \
18241 X"$as_dir" : 'X\(/\)' \| \
18242 . : '\(.\)' 2>/dev/null ||
18243 echo X"$as_dir" |
18244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18246 /^X\(\/\/\)$/{ s//\1/; q; }
18247 /^X\(\/\).*/{ s//\1/; q; }
18248 s/.*/./; q'`
18249 done
18250 test ! -n "$as_dirs" || mkdir $as_dirs
18251 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18252 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18253 { (exit 1); exit 1; }; }; }
18254
18255 ac_builddir=.
18256
18257 if test "$ac_dir" != .; then
18258 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18259 # A "../" for each directory in $ac_dir_suffix.
18260 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18261 else
18262 ac_dir_suffix= ac_top_builddir=
18263 fi
18264
18265 case $srcdir in
18266 .) # No --srcdir option. We are building in place.
18267 ac_srcdir=.
18268 if test -z "$ac_top_builddir"; then
18269 ac_top_srcdir=.
18270 else
18271 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18272 fi ;;
18273 [\\/]* | ?:[\\/]* ) # Absolute path.
18274 ac_srcdir=$srcdir$ac_dir_suffix;
18275 ac_top_srcdir=$srcdir ;;
18276 *) # Relative path.
18277 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18278 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18279 esac
18280
18281 # Do not use `cd foo && pwd` to compute absolute paths, because
18282 # the directories may not exist.
18283 case `pwd` in
18284 .) ac_abs_builddir="$ac_dir";;
18285 *)
18286 case "$ac_dir" in
18287 .) ac_abs_builddir=`pwd`;;
18288 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18289 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18290 esac;;
18291 esac
18292 case $ac_abs_builddir in
18293 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18294 *)
18295 case ${ac_top_builddir}. in
18296 .) ac_abs_top_builddir=$ac_abs_builddir;;
18297 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18298 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18299 esac;;
18300 esac
18301 case $ac_abs_builddir in
18302 .) ac_abs_srcdir=$ac_srcdir;;
18303 *)
18304 case $ac_srcdir in
18305 .) ac_abs_srcdir=$ac_abs_builddir;;
18306 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18307 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18308 esac;;
18309 esac
18310 case $ac_abs_builddir in
18311 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18312 *)
18313 case $ac_top_srcdir in
18314 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18315 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18316 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18317 esac;;
18318 esac
18319
18320
18321 case $INSTALL in
18322 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18323 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18324 esac
18325
18326 if test x"$ac_file" != x-; then
18327 { echo "$as_me:$LINENO: creating $ac_file" >&5
18328 echo "$as_me: creating $ac_file" >&6;}
18329 rm -f "$ac_file"
18330 fi
18331 # Let's still pretend it is `configure' which instantiates (i.e., don't
18332 # use $as_me), people would be surprised to read:
18333 # /* config.h. Generated by config.status. */
18334 if test x"$ac_file" = x-; then
18335 configure_input=
18336 else
18337 configure_input="$ac_file. "
18338 fi
18339 configure_input=$configure_input"Generated from `echo $ac_file_in |
18340 sed 's,.*/,,'` by configure."
18341
18342 # First look for the input files in the build tree, otherwise in the
18343 # src tree.
18344 ac_file_inputs=`IFS=:
18345 for f in $ac_file_in; do
18346 case $f in
18347 -) echo $tmp/stdin ;;
18348 [\\/$]*)
18349 # Absolute (can't be DOS-style, as IFS=:)
18350 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18351 echo "$as_me: error: cannot find input file: $f" >&2;}
18352 { (exit 1); exit 1; }; }
18353 echo "$f";;
18354 *) # Relative
18355 if test -f "$f"; then
18356 # Build tree
18357 echo "$f"
18358 elif test -f "$srcdir/$f"; then
18359 # Source tree
18360 echo "$srcdir/$f"
18361 else
18362 # /dev/null tree
18363 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18364 echo "$as_me: error: cannot find input file: $f" >&2;}
18365 { (exit 1); exit 1; }; }
18366 fi;;
18367 esac
18368 done` || { (exit 1); exit 1; }
18369 _ACEOF
18370 cat >>$CONFIG_STATUS <<_ACEOF
18371 sed "$ac_vpsub
18372 $extrasub
18373 _ACEOF
18374 cat >>$CONFIG_STATUS <<\_ACEOF
18375 :t
18376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18377 s,@configure_input@,$configure_input,;t t
18378 s,@srcdir@,$ac_srcdir,;t t
18379 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18380 s,@top_srcdir@,$ac_top_srcdir,;t t
18381 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18382 s,@builddir@,$ac_builddir,;t t
18383 s,@abs_builddir@,$ac_abs_builddir,;t t
18384 s,@top_builddir@,$ac_top_builddir,;t t
18385 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18386 s,@INSTALL@,$ac_INSTALL,;t t
18387 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18388 rm -f $tmp/stdin
18389 if test x"$ac_file" != x-; then
18390 mv $tmp/out $ac_file
18391 else
18392 cat $tmp/out
18393 rm -f $tmp/out
18394 fi
18395
18396 # Run the commands associated with the file.
18397 case $ac_file in
18398 scripts/jar ) chmod +x scripts/jar ;;
18399 esac
18400 done
18401 _ACEOF
18402 cat >>$CONFIG_STATUS <<\_ACEOF
18403
18404 #
18405 # CONFIG_HEADER section.
18406 #
18407
18408 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18409 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18410 #
18411 # ac_d sets the value in "#define NAME VALUE" lines.
18412 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18413 ac_dB='[ ].*$,\1#\2'
18414 ac_dC=' '
18415 ac_dD=',;t'
18416 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18417 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18418 ac_uB='$,\1#\2define\3'
18419 ac_uC=' '
18420 ac_uD=',;t'
18421
18422 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18423 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18424 case $ac_file in
18425 - | *:- | *:-:* ) # input from stdin
18426 cat >$tmp/stdin
18427 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18428 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18429 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18431 * ) ac_file_in=$ac_file.in ;;
18432 esac
18433
18434 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18435 echo "$as_me: creating $ac_file" >&6;}
18436
18437 # First look for the input files in the build tree, otherwise in the
18438 # src tree.
18439 ac_file_inputs=`IFS=:
18440 for f in $ac_file_in; do
18441 case $f in
18442 -) echo $tmp/stdin ;;
18443 [\\/$]*)
18444 # Absolute (can't be DOS-style, as IFS=:)
18445 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18446 echo "$as_me: error: cannot find input file: $f" >&2;}
18447 { (exit 1); exit 1; }; }
18448 # Do quote $f, to prevent DOS paths from being IFS'd.
18449 echo "$f";;
18450 *) # Relative
18451 if test -f "$f"; then
18452 # Build tree
18453 echo "$f"
18454 elif test -f "$srcdir/$f"; then
18455 # Source tree
18456 echo "$srcdir/$f"
18457 else
18458 # /dev/null tree
18459 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18460 echo "$as_me: error: cannot find input file: $f" >&2;}
18461 { (exit 1); exit 1; }; }
18462 fi;;
18463 esac
18464 done` || { (exit 1); exit 1; }
18465 # Remove the trailing spaces.
18466 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18467
18468 _ACEOF
18469
18470 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18471 # `conftest.undefs', that substitutes the proper values into
18472 # config.h.in to produce config.h. The first handles `#define'
18473 # templates, and the second `#undef' templates.
18474 # And first: Protect against being on the right side of a sed subst in
18475 # config.status. Protect against being in an unquoted here document
18476 # in config.status.
18477 rm -f conftest.defines conftest.undefs
18478 # Using a here document instead of a string reduces the quoting nightmare.
18479 # Putting comments in sed scripts is not portable.
18480 #
18481 # `end' is used to avoid that the second main sed command (meant for
18482 # 0-ary CPP macros) applies to n-ary macro definitions.
18483 # See the Autoconf documentation for `clear'.
18484 cat >confdef2sed.sed <<\_ACEOF
18485 s/[\\&,]/\\&/g
18486 s,[\\$`],\\&,g
18487 t clear
18488 : clear
18489 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18490 t end
18491 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18492 : end
18493 _ACEOF
18494 # If some macros were called several times there might be several times
18495 # the same #defines, which is useless. Nevertheless, we may not want to
18496 # sort them, since we want the *last* AC-DEFINE to be honored.
18497 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18498 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18499 rm -f confdef2sed.sed
18500
18501 # This sed command replaces #undef with comments. This is necessary, for
18502 # example, in the case of _POSIX_SOURCE, which is predefined and required
18503 # on some systems where configure will not decide to define it.
18504 cat >>conftest.undefs <<\_ACEOF
18505 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18506 _ACEOF
18507
18508 # Break up conftest.defines because some shells have a limit on the size
18509 # of here documents, and old seds have small limits too (100 cmds).
18510 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18511 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18512 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18513 echo ' :' >>$CONFIG_STATUS
18514 rm -f conftest.tail
18515 while grep . conftest.defines >/dev/null
18516 do
18517 # Write a limited-size here document to $tmp/defines.sed.
18518 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18519 # Speed up: don't consider the non `#define' lines.
18520 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18521 # Work around the forget-to-reset-the-flag bug.
18522 echo 't clr' >>$CONFIG_STATUS
18523 echo ': clr' >>$CONFIG_STATUS
18524 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18525 echo 'CEOF
18526 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18527 rm -f $tmp/in
18528 mv $tmp/out $tmp/in
18529 ' >>$CONFIG_STATUS
18530 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18531 rm -f conftest.defines
18532 mv conftest.tail conftest.defines
18533 done
18534 rm -f conftest.defines
18535 echo ' fi # grep' >>$CONFIG_STATUS
18536 echo >>$CONFIG_STATUS
18537
18538 # Break up conftest.undefs because some shells have a limit on the size
18539 # of here documents, and old seds have small limits too (100 cmds).
18540 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18541 rm -f conftest.tail
18542 while grep . conftest.undefs >/dev/null
18543 do
18544 # Write a limited-size here document to $tmp/undefs.sed.
18545 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18546 # Speed up: don't consider the non `#undef'
18547 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18548 # Work around the forget-to-reset-the-flag bug.
18549 echo 't clr' >>$CONFIG_STATUS
18550 echo ': clr' >>$CONFIG_STATUS
18551 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18552 echo 'CEOF
18553 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18554 rm -f $tmp/in
18555 mv $tmp/out $tmp/in
18556 ' >>$CONFIG_STATUS
18557 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18558 rm -f conftest.undefs
18559 mv conftest.tail conftest.undefs
18560 done
18561 rm -f conftest.undefs
18562
18563 cat >>$CONFIG_STATUS <<\_ACEOF
18564 # Let's still pretend it is `configure' which instantiates (i.e., don't
18565 # use $as_me), people would be surprised to read:
18566 # /* config.h. Generated by config.status. */
18567 if test x"$ac_file" = x-; then
18568 echo "/* Generated by configure. */" >$tmp/config.h
18569 else
18570 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18571 fi
18572 cat $tmp/in >>$tmp/config.h
18573 rm -f $tmp/in
18574 if test x"$ac_file" != x-; then
18575 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18576 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18577 echo "$as_me: $ac_file is unchanged" >&6;}
18578 else
18579 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18580 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18581 X"$ac_file" : 'X\(//\)[^/]' \| \
18582 X"$ac_file" : 'X\(//\)$' \| \
18583 X"$ac_file" : 'X\(/\)' \| \
18584 . : '\(.\)' 2>/dev/null ||
18585 echo X"$ac_file" |
18586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18588 /^X\(\/\/\)$/{ s//\1/; q; }
18589 /^X\(\/\).*/{ s//\1/; q; }
18590 s/.*/./; q'`
18591 { if $as_mkdir_p; then
18592 mkdir -p "$ac_dir"
18593 else
18594 as_dir="$ac_dir"
18595 as_dirs=
18596 while test ! -d "$as_dir"; do
18597 as_dirs="$as_dir $as_dirs"
18598 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18600 X"$as_dir" : 'X\(//\)[^/]' \| \
18601 X"$as_dir" : 'X\(//\)$' \| \
18602 X"$as_dir" : 'X\(/\)' \| \
18603 . : '\(.\)' 2>/dev/null ||
18604 echo X"$as_dir" |
18605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18607 /^X\(\/\/\)$/{ s//\1/; q; }
18608 /^X\(\/\).*/{ s//\1/; q; }
18609 s/.*/./; q'`
18610 done
18611 test ! -n "$as_dirs" || mkdir $as_dirs
18612 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18613 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18614 { (exit 1); exit 1; }; }; }
18615
18616 rm -f $ac_file
18617 mv $tmp/config.h $ac_file
18618 fi
18619 else
18620 cat $tmp/config.h
18621 rm -f $tmp/config.h
18622 fi
18623 # Compute $ac_file's index in $config_headers.
18624 _am_stamp_count=1
18625 for _am_header in $config_headers :; do
18626 case $_am_header in
18627 $ac_file | $ac_file:* )
18628 break ;;
18629 * )
18630 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18631 esac
18632 done
18633 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18634 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18635 X$ac_file : 'X\(//\)[^/]' \| \
18636 X$ac_file : 'X\(//\)$' \| \
18637 X$ac_file : 'X\(/\)' \| \
18638 . : '\(.\)' 2>/dev/null ||
18639 echo X$ac_file |
18640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18642 /^X\(\/\/\)$/{ s//\1/; q; }
18643 /^X\(\/\).*/{ s//\1/; q; }
18644 s/.*/./; q'`/stamp-h$_am_stamp_count
18645 done
18646 _ACEOF
18647 cat >>$CONFIG_STATUS <<\_ACEOF
18648
18649 #
18650 # CONFIG_LINKS section.
18651 #
18652
18653 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18654 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18655 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18656
18657 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18658 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18659
18660 if test ! -r $srcdir/$ac_source; then
18661 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18662 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18663 { (exit 1); exit 1; }; }
18664 fi
18665 rm -f $ac_dest
18666
18667 # Make relative symlinks.
18668 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18669 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18670 X"$ac_dest" : 'X\(//\)[^/]' \| \
18671 X"$ac_dest" : 'X\(//\)$' \| \
18672 X"$ac_dest" : 'X\(/\)' \| \
18673 . : '\(.\)' 2>/dev/null ||
18674 echo X"$ac_dest" |
18675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18677 /^X\(\/\/\)$/{ s//\1/; q; }
18678 /^X\(\/\).*/{ s//\1/; q; }
18679 s/.*/./; q'`
18680 { if $as_mkdir_p; then
18681 mkdir -p "$ac_dest_dir"
18682 else
18683 as_dir="$ac_dest_dir"
18684 as_dirs=
18685 while test ! -d "$as_dir"; do
18686 as_dirs="$as_dir $as_dirs"
18687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18689 X"$as_dir" : 'X\(//\)[^/]' \| \
18690 X"$as_dir" : 'X\(//\)$' \| \
18691 X"$as_dir" : 'X\(/\)' \| \
18692 . : '\(.\)' 2>/dev/null ||
18693 echo X"$as_dir" |
18694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18696 /^X\(\/\/\)$/{ s//\1/; q; }
18697 /^X\(\/\).*/{ s//\1/; q; }
18698 s/.*/./; q'`
18699 done
18700 test ! -n "$as_dirs" || mkdir $as_dirs
18701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18702 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18703 { (exit 1); exit 1; }; }; }
18704
18705 ac_builddir=.
18706
18707 if test "$ac_dest_dir" != .; then
18708 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18709 # A "../" for each directory in $ac_dir_suffix.
18710 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18711 else
18712 ac_dir_suffix= ac_top_builddir=
18713 fi
18714
18715 case $srcdir in
18716 .) # No --srcdir option. We are building in place.
18717 ac_srcdir=.
18718 if test -z "$ac_top_builddir"; then
18719 ac_top_srcdir=.
18720 else
18721 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18722 fi ;;
18723 [\\/]* | ?:[\\/]* ) # Absolute path.
18724 ac_srcdir=$srcdir$ac_dir_suffix;
18725 ac_top_srcdir=$srcdir ;;
18726 *) # Relative path.
18727 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18728 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18729 esac
18730
18731 # Do not use `cd foo && pwd` to compute absolute paths, because
18732 # the directories may not exist.
18733 case `pwd` in
18734 .) ac_abs_builddir="$ac_dest_dir";;
18735 *)
18736 case "$ac_dest_dir" in
18737 .) ac_abs_builddir=`pwd`;;
18738 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18739 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18740 esac;;
18741 esac
18742 case $ac_abs_builddir in
18743 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18744 *)
18745 case ${ac_top_builddir}. in
18746 .) ac_abs_top_builddir=$ac_abs_builddir;;
18747 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18748 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18749 esac;;
18750 esac
18751 case $ac_abs_builddir in
18752 .) ac_abs_srcdir=$ac_srcdir;;
18753 *)
18754 case $ac_srcdir in
18755 .) ac_abs_srcdir=$ac_abs_builddir;;
18756 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18757 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18758 esac;;
18759 esac
18760 case $ac_abs_builddir in
18761 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18762 *)
18763 case $ac_top_srcdir in
18764 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18765 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18766 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18767 esac;;
18768 esac
18769
18770
18771 case $srcdir in
18772 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18773 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18774 esac
18775
18776 # Try a symlink, then a hard link, then a copy.
18777 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18778 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18779 cp -p $srcdir/$ac_source $ac_dest ||
18780 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18781 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18782 { (exit 1); exit 1; }; }
18783 done
18784 _ACEOF
18785 cat >>$CONFIG_STATUS <<\_ACEOF
18786
18787 #
18788 # CONFIG_COMMANDS section.
18789 #
18790 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18791 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18792 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18793 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18794 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18795 X"$ac_dest" : 'X\(//\)[^/]' \| \
18796 X"$ac_dest" : 'X\(//\)$' \| \
18797 X"$ac_dest" : 'X\(/\)' \| \
18798 . : '\(.\)' 2>/dev/null ||
18799 echo X"$ac_dest" |
18800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18802 /^X\(\/\/\)$/{ s//\1/; q; }
18803 /^X\(\/\).*/{ s//\1/; q; }
18804 s/.*/./; q'`
18805 { if $as_mkdir_p; then
18806 mkdir -p "$ac_dir"
18807 else
18808 as_dir="$ac_dir"
18809 as_dirs=
18810 while test ! -d "$as_dir"; do
18811 as_dirs="$as_dir $as_dirs"
18812 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18814 X"$as_dir" : 'X\(//\)[^/]' \| \
18815 X"$as_dir" : 'X\(//\)$' \| \
18816 X"$as_dir" : 'X\(/\)' \| \
18817 . : '\(.\)' 2>/dev/null ||
18818 echo X"$as_dir" |
18819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18821 /^X\(\/\/\)$/{ s//\1/; q; }
18822 /^X\(\/\).*/{ s//\1/; q; }
18823 s/.*/./; q'`
18824 done
18825 test ! -n "$as_dirs" || mkdir $as_dirs
18826 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18827 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18828 { (exit 1); exit 1; }; }; }
18829
18830 ac_builddir=.
18831
18832 if test "$ac_dir" != .; then
18833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18834 # A "../" for each directory in $ac_dir_suffix.
18835 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18836 else
18837 ac_dir_suffix= ac_top_builddir=
18838 fi
18839
18840 case $srcdir in
18841 .) # No --srcdir option. We are building in place.
18842 ac_srcdir=.
18843 if test -z "$ac_top_builddir"; then
18844 ac_top_srcdir=.
18845 else
18846 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18847 fi ;;
18848 [\\/]* | ?:[\\/]* ) # Absolute path.
18849 ac_srcdir=$srcdir$ac_dir_suffix;
18850 ac_top_srcdir=$srcdir ;;
18851 *) # Relative path.
18852 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18853 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18854 esac
18855
18856 # Do not use `cd foo && pwd` to compute absolute paths, because
18857 # the directories may not exist.
18858 case `pwd` in
18859 .) ac_abs_builddir="$ac_dir";;
18860 *)
18861 case "$ac_dir" in
18862 .) ac_abs_builddir=`pwd`;;
18863 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18864 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18865 esac;;
18866 esac
18867 case $ac_abs_builddir in
18868 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18869 *)
18870 case ${ac_top_builddir}. in
18871 .) ac_abs_top_builddir=$ac_abs_builddir;;
18872 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18873 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18874 esac;;
18875 esac
18876 case $ac_abs_builddir in
18877 .) ac_abs_srcdir=$ac_srcdir;;
18878 *)
18879 case $ac_srcdir in
18880 .) ac_abs_srcdir=$ac_abs_builddir;;
18881 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18882 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18883 esac;;
18884 esac
18885 case $ac_abs_builddir in
18886 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18887 *)
18888 case $ac_top_srcdir in
18889 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18890 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18891 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18892 esac;;
18893 esac
18894
18895
18896 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18897 echo "$as_me: executing $ac_dest commands" >&6;}
18898 case $ac_dest in
18899 default-1 )
18900 # Only add multilib support code if we just rebuilt the top-level
18901 # Makefile.
18902 case " $CONFIG_FILES " in
18903 *" Makefile "*)
18904 ac_file=Makefile . ${multi_basedir}/config-ml.in
18905 ;;
18906 esac ;;
18907 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18908 # Strip MF so we end up with the name of the file.
18909 mf=`echo "$mf" | sed -e 's/:.*$//'`
18910 # Check whether this is an Automake generated Makefile or not.
18911 # We used to match only the files named `Makefile.in', but
18912 # some people rename them; so instead we look at the file content.
18913 # Grep'ing the first line is not enough: some people post-process
18914 # each Makefile.in and add a new line on top of each file to say so.
18915 # So let's grep whole file.
18916 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18917 dirpart=`(dirname "$mf") 2>/dev/null ||
18918 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18919 X"$mf" : 'X\(//\)[^/]' \| \
18920 X"$mf" : 'X\(//\)$' \| \
18921 X"$mf" : 'X\(/\)' \| \
18922 . : '\(.\)' 2>/dev/null ||
18923 echo X"$mf" |
18924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18926 /^X\(\/\/\)$/{ s//\1/; q; }
18927 /^X\(\/\).*/{ s//\1/; q; }
18928 s/.*/./; q'`
18929 else
18930 continue
18931 fi
18932 # Extract the definition of DEPDIR, am__include, and am__quote
18933 # from the Makefile without running `make'.
18934 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18935 test -z "$DEPDIR" && continue
18936 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18937 test -z "am__include" && continue
18938 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18939 # When using ansi2knr, U may be empty or an underscore; expand it
18940 U=`sed -n 's/^U = //p' < "$mf"`
18941 # Find all dependency output files, they are included files with
18942 # $(DEPDIR) in their names. We invoke sed twice because it is the
18943 # simplest approach to changing $(DEPDIR) to its actual value in the
18944 # expansion.
18945 for file in `sed -n "
18946 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18947 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18948 # Make sure the directory exists.
18949 test -f "$dirpart/$file" && continue
18950 fdir=`(dirname "$file") 2>/dev/null ||
18951 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18952 X"$file" : 'X\(//\)[^/]' \| \
18953 X"$file" : 'X\(//\)$' \| \
18954 X"$file" : 'X\(/\)' \| \
18955 . : '\(.\)' 2>/dev/null ||
18956 echo X"$file" |
18957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18959 /^X\(\/\/\)$/{ s//\1/; q; }
18960 /^X\(\/\).*/{ s//\1/; q; }
18961 s/.*/./; q'`
18962 { if $as_mkdir_p; then
18963 mkdir -p $dirpart/$fdir
18964 else
18965 as_dir=$dirpart/$fdir
18966 as_dirs=
18967 while test ! -d "$as_dir"; do
18968 as_dirs="$as_dir $as_dirs"
18969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18971 X"$as_dir" : 'X\(//\)[^/]' \| \
18972 X"$as_dir" : 'X\(//\)$' \| \
18973 X"$as_dir" : 'X\(/\)' \| \
18974 . : '\(.\)' 2>/dev/null ||
18975 echo X"$as_dir" |
18976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18978 /^X\(\/\/\)$/{ s//\1/; q; }
18979 /^X\(\/\).*/{ s//\1/; q; }
18980 s/.*/./; q'`
18981 done
18982 test ! -n "$as_dirs" || mkdir $as_dirs
18983 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18984 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18985 { (exit 1); exit 1; }; }; }
18986
18987 # echo "creating $dirpart/$file"
18988 echo '# dummy' > "$dirpart/$file"
18989 done
18990 done
18991 ;;
18992 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18993 case " $CONFIG_FILES " in
18994 *" Makefile "*)
18995 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18996 ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
18997 ;;
18998 esac
18999 for ac_multi_file in $CONFIG_FILES; do
19000 case $ac_multi_file in
19001 */Makefile)
19002 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
19003 esac
19004 done
19005 ;;
19006 esac
19007 done
19008 _ACEOF
19009
19010 cat >>$CONFIG_STATUS <<\_ACEOF
19011
19012 { (exit 0); exit 0; }
19013 _ACEOF
19014 chmod +x $CONFIG_STATUS
19015 ac_clean_files=$ac_clean_files_save
19016
19017
19018 # configure is writing to config.log, and then calls config.status.
19019 # config.status does its own redirection, appending to config.log.
19020 # Unfortunately, on DOS this fails, as config.log is still kept open
19021 # by configure, so config.status won't be able to write to it; its
19022 # output is simply discarded. So we exec the FD to /dev/null,
19023 # effectively closing config.log, so it can be properly (re)opened and
19024 # appended to by config.status. When coming back to configure, we
19025 # need to make the FD available again.
19026 if test "$no_create" != yes; then
19027 ac_cs_success=:
19028 ac_config_status_args=
19029 test "$silent" = yes &&
19030 ac_config_status_args="$ac_config_status_args --quiet"
19031 exec 5>/dev/null
19032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19033 exec 5>>config.log
19034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19035 # would make configure fail if this is the last instruction.
19036 $ac_cs_success || { (exit 1); exit 1; }
19037 fi
19038
19039 #
19040 # CONFIG_SUBDIRS section.
19041 #
19042 if test "$no_recursion" != yes; then
19043
19044 # Remove --cache-file and --srcdir arguments so they do not pile up.
19045 ac_sub_configure_args=
19046 ac_prev=
19047 for ac_arg in $ac_configure_args; do
19048 if test -n "$ac_prev"; then
19049 ac_prev=
19050 continue
19051 fi
19052 case $ac_arg in
19053 -cache-file | --cache-file | --cache-fil | --cache-fi \
19054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19055 ac_prev=cache_file ;;
19056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19058 | --c=*)
19059 ;;
19060 --config-cache | -C)
19061 ;;
19062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19063 ac_prev=srcdir ;;
19064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19065 ;;
19066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19067 ac_prev=prefix ;;
19068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19069 ;;
19070 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19071 esac
19072 done
19073
19074 # Always prepend --prefix to ensure using the same prefix
19075 # in subdir configurations.
19076 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
19077
19078 ac_popdir=`pwd`
19079 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19080
19081 # Do not complain, so a configure script can configure whichever
19082 # parts of a large source tree are present.
19083 test -d $srcdir/$ac_dir || continue
19084
19085 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
19086 echo "$as_me: configuring in $ac_dir" >&6;}
19087 { if $as_mkdir_p; then
19088 mkdir -p "$ac_dir"
19089 else
19090 as_dir="$ac_dir"
19091 as_dirs=
19092 while test ! -d "$as_dir"; do
19093 as_dirs="$as_dir $as_dirs"
19094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19096 X"$as_dir" : 'X\(//\)[^/]' \| \
19097 X"$as_dir" : 'X\(//\)$' \| \
19098 X"$as_dir" : 'X\(/\)' \| \
19099 . : '\(.\)' 2>/dev/null ||
19100 echo X"$as_dir" |
19101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19103 /^X\(\/\/\)$/{ s//\1/; q; }
19104 /^X\(\/\).*/{ s//\1/; q; }
19105 s/.*/./; q'`
19106 done
19107 test ! -n "$as_dirs" || mkdir $as_dirs
19108 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19110 { (exit 1); exit 1; }; }; }
19111
19112 ac_builddir=.
19113
19114 if test "$ac_dir" != .; then
19115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19116 # A "../" for each directory in $ac_dir_suffix.
19117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19118 else
19119 ac_dir_suffix= ac_top_builddir=
19120 fi
19121
19122 case $srcdir in
19123 .) # No --srcdir option. We are building in place.
19124 ac_srcdir=.
19125 if test -z "$ac_top_builddir"; then
19126 ac_top_srcdir=.
19127 else
19128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19129 fi ;;
19130 [\\/]* | ?:[\\/]* ) # Absolute path.
19131 ac_srcdir=$srcdir$ac_dir_suffix;
19132 ac_top_srcdir=$srcdir ;;
19133 *) # Relative path.
19134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19136 esac
19137
19138 # Do not use `cd foo && pwd` to compute absolute paths, because
19139 # the directories may not exist.
19140 case `pwd` in
19141 .) ac_abs_builddir="$ac_dir";;
19142 *)
19143 case "$ac_dir" in
19144 .) ac_abs_builddir=`pwd`;;
19145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19147 esac;;
19148 esac
19149 case $ac_abs_builddir in
19150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19151 *)
19152 case ${ac_top_builddir}. in
19153 .) ac_abs_top_builddir=$ac_abs_builddir;;
19154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19156 esac;;
19157 esac
19158 case $ac_abs_builddir in
19159 .) ac_abs_srcdir=$ac_srcdir;;
19160 *)
19161 case $ac_srcdir in
19162 .) ac_abs_srcdir=$ac_abs_builddir;;
19163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19165 esac;;
19166 esac
19167 case $ac_abs_builddir in
19168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19169 *)
19170 case $ac_top_srcdir in
19171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19174 esac;;
19175 esac
19176
19177
19178 cd $ac_dir
19179
19180 # Check for guested configure; otherwise get Cygnus style configure.
19181 if test -f $ac_srcdir/configure.gnu; then
19182 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19183 elif test -f $ac_srcdir/configure; then
19184 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19185 elif test -f $ac_srcdir/configure.in; then
19186 ac_sub_configure=$ac_configure
19187 else
19188 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19190 ac_sub_configure=
19191 fi
19192
19193 # The recursion is here.
19194 if test -n "$ac_sub_configure"; then
19195 # Make the cache file name correct relative to the subdirectory.
19196 case $cache_file in
19197 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19198 *) # Relative path.
19199 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
19200 esac
19201
19202 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19203 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19204 # The eval makes quoting arguments work.
19205 eval $ac_sub_configure $ac_sub_configure_args \
19206 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19207 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19208 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19209 { (exit 1); exit 1; }; }
19210 fi
19211
19212 cd $ac_popdir
19213 done
19214 fi
19215