OSDN Git Service

* configure.ac (libjava_cv_anon_version_script): New test.
[pf3gnuchains/gcc-fork.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 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 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 ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE 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 # We need a jar that supports -@.  This is a GNU extension.
4203 if test "$JAR" != no; then
4204    rm -f config-test.jar
4205    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4206    if test -f config-test.jar; then
4207      rm -f config-test.jar
4208    else
4209      JAR=no
4210    fi
4211 fi
4212
4213 # Prefer the jar we found, but fall back to our jar script.
4214 if test "$JAR" = no; then
4215   if test "$ZIP" = no; then
4216     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4217 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4218    { (exit 1); exit 1; }; }
4219   else
4220     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4221     JAR=`pwd`/scripts/jar
4222   fi
4223 fi
4224
4225 # Find a good install program.  We prefer a C program (faster),
4226 # so one script is as good as another.  But avoid the broken or
4227 # incompatible versions:
4228 # SysV /etc/install, /usr/sbin/install
4229 # SunOS /usr/etc/install
4230 # IRIX /sbin/install
4231 # AIX /bin/install
4232 # AmigaOS /C/install, which installs bootblocks on floppy discs
4233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4236 # OS/2's system install, which has a completely different semantic
4237 # ./install, which can be erroneously created by make from ./install.sh.
4238 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4240 if test -z "$INSTALL"; then
4241 if test "${ac_cv_path_install+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   # Account for people who put trailing slashes in PATH elements.
4250 case $as_dir/ in
4251   ./ | .// | /cC/* | \
4252   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4253   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4254   /usr/ucb/* ) ;;
4255   *)
4256     # OSF1 and SCO ODT 3.0 have their own names for install.
4257     # Don't use installbsd from OSF since it installs stuff as root
4258     # by default.
4259     for ac_prog in ginstall scoinst install; do
4260       for ac_exec_ext in '' $ac_executable_extensions; do
4261         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4262           if test $ac_prog = install &&
4263             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4264             # AIX install.  It has an incompatible calling convention.
4265             :
4266           elif test $ac_prog = install &&
4267             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268             # program-specific install script used by HP pwplus--don't use.
4269             :
4270           else
4271             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4272             break 3
4273           fi
4274         fi
4275       done
4276     done
4277     ;;
4278 esac
4279 done
4280
4281
4282 fi
4283   if test "${ac_cv_path_install+set}" = set; then
4284     INSTALL=$ac_cv_path_install
4285   else
4286     # As a last resort, use the slow shell script.  We don't cache a
4287     # path for INSTALL within a source directory, because that will
4288     # break other packages using the cache if that directory is
4289     # removed, or if the path is relative.
4290     INSTALL=$ac_install_sh
4291   fi
4292 fi
4293 echo "$as_me:$LINENO: result: $INSTALL" >&5
4294 echo "${ECHO_T}$INSTALL" >&6
4295
4296 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4297 # It thinks the first close brace ends the variable substitution.
4298 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4299
4300 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4301
4302 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4303
4304
4305 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4306 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4307     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4308 if test "${enable_maintainer_mode+set}" = set; then
4309   enableval="$enable_maintainer_mode"
4310   USE_MAINTAINER_MODE=$enableval
4311 else
4312   USE_MAINTAINER_MODE=no
4313 fi;
4314   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4315 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4316
4317
4318 if test $USE_MAINTAINER_MODE = yes; then
4319   MAINTAINER_MODE_TRUE=
4320   MAINTAINER_MODE_FALSE='#'
4321 else
4322   MAINTAINER_MODE_TRUE='#'
4323   MAINTAINER_MODE_FALSE=
4324 fi
4325
4326   MAINT=$MAINTAINER_MODE_TRUE
4327
4328
4329
4330
4331
4332 # configure.host sets the following important variables
4333 #       libgcj_cflags    - host specific C compiler flags
4334 #       libgcj_cxxflags  - host specific C++ compiler flags
4335 #       libgcj_javaflags - host specific Java compiler flags
4336
4337 libgcj_cflags=
4338 libgcj_cxxflags=
4339 libgcj_javaflags=
4340
4341 . ${srcdir}/configure.host
4342
4343 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4344 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4345 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4349 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4350   acl_cv_prog_gnu_ld=yes
4351 else
4352   acl_cv_prog_gnu_ld=no
4353 fi
4354 fi
4355 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4356 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4357 with_gnu_ld=$acl_cv_prog_gnu_ld
4358
4359 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4360 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4361 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364
4365 acl_cv_prog_gnu_ld_symbolic=no
4366
4367 if test x"$with_gnu_ld" = x"yes"; then
4368   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4369     acl_cv_prog_gnu_ld_symbolic=yes
4370   fi
4371 fi
4372 fi
4373 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4374 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4375 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4376   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4377 else
4378   SYMBOLIC_LDFLAGS=''
4379 fi
4380
4381 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4382 if test -z "$libgcj_ld_symbolic"; then
4383   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4384 fi
4385
4386 LIBGCJ_CFLAGS="${libgcj_cflags}"
4387 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4388 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4389 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4390 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4391
4392
4393
4394
4395
4396
4397 # Only use libltdl for non-newlib builds.
4398 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4399    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4400 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4401 library_names_spec=
4402 libname_spec='lib$name'
4403 soname_spec=
4404 shrext=".so"
4405 postinstall_cmds=
4406 postuninstall_cmds=
4407 finish_cmds=
4408 finish_eval=
4409 shlibpath_var=
4410 shlibpath_overrides_runpath=unknown
4411 version_type=none
4412 dynamic_linker="$host_os ld.so"
4413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4414 if test "$GCC" = yes; then
4415   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4416   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4417     # if the path contains ";" then we assume it to be the separator
4418     # otherwise default to the standard path separator (i.e. ":") - it is
4419     # assumed that no part of a normal pathname contains ";" but that should
4420     # okay in the real world where ";" in dirpaths is itself problematic.
4421     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4422   else
4423     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4424   fi
4425 else
4426   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4427 fi
4428 need_lib_prefix=unknown
4429 hardcode_into_libs=no
4430
4431 # when you set need_version to no, make sure it does not cause -set_version
4432 # flags to be left without arguments
4433 need_version=unknown
4434
4435 case $host_os in
4436 aix3*)
4437   version_type=linux
4438   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4439   shlibpath_var=LIBPATH
4440
4441   # AIX 3 has no versioning support, so we append a major version to the name.
4442   soname_spec='${libname}${release}${shared_ext}$major'
4443   ;;
4444
4445 aix4* | aix5*)
4446   version_type=linux
4447   need_lib_prefix=no
4448   need_version=no
4449   hardcode_into_libs=yes
4450   if test "$host_cpu" = ia64; then
4451     # AIX 5 supports IA64
4452     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4453     shlibpath_var=LD_LIBRARY_PATH
4454   else
4455     # With GCC up to 2.95.x, collect2 would create an import file
4456     # for dependence libraries.  The import file would start with
4457     # the line `#! .'.  This would cause the generated library to
4458     # depend on `.', always an invalid library.  This was fixed in
4459     # development snapshots of GCC prior to 3.0.
4460     case $host_os in
4461       aix4 | aix4.[01] | aix4.[01].*)
4462       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4463            echo ' yes '
4464            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4465         :
4466       else
4467         can_build_shared=no
4468       fi
4469       ;;
4470     esac
4471     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4472     # soname into executable. Probably we can add versioning support to
4473     # collect2, so additional links can be useful in future.
4474     if test "$aix_use_runtimelinking" = yes; then
4475       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4476       # instead of lib<name>.a to let people know that these are not
4477       # typical AIX shared libraries.
4478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4479     else
4480       # We preserve .a as extension for shared libraries through AIX4.2
4481       # and later when we are not doing run time linking.
4482       library_names_spec='${libname}${release}.a $libname.a'
4483       soname_spec='${libname}${release}${shared_ext}$major'
4484     fi
4485     shlibpath_var=LIBPATH
4486   fi
4487   ;;
4488
4489 amigaos*)
4490   library_names_spec='$libname.ixlibrary $libname.a'
4491   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4492   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'
4493   ;;
4494
4495 beos*)
4496   library_names_spec='${libname}${shared_ext}'
4497   dynamic_linker="$host_os ld.so"
4498   shlibpath_var=LIBRARY_PATH
4499   ;;
4500
4501 bsdi4*)
4502   version_type=linux
4503   need_version=no
4504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4505   soname_spec='${libname}${release}${shared_ext}$major'
4506   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4507   shlibpath_var=LD_LIBRARY_PATH
4508   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4509   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4510   # the default ld.so.conf also contains /usr/contrib/lib and
4511   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4512   # libtool to hard-code these into programs
4513   ;;
4514
4515 cygwin* | mingw* | pw32*)
4516   version_type=windows
4517   shrext=".dll"
4518   need_version=no
4519   need_lib_prefix=no
4520
4521   case $GCC,$host_os in
4522   yes,cygwin* | yes,mingw* | yes,pw32*)
4523     library_names_spec='$libname.dll.a'
4524     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4525     postinstall_cmds='base_file=`basename \${file}`~
4526       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4527       dldir=$destdir/`dirname \$dlpath`~
4528       test -d \$dldir || mkdir -p \$dldir~
4529       $install_prog $dir/$dlname \$dldir/$dlname'
4530     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4531       dlpath=$dir/\$dldll~
4532        $rm \$dlpath'
4533     shlibpath_overrides_runpath=yes
4534
4535     case $host_os in
4536     cygwin*)
4537       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4538       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4539       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4540       ;;
4541     mingw*)
4542       # MinGW DLLs use traditional 'lib' prefix
4543       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4544       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4545       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4546         # It is most probably a Windows format PATH printed by
4547         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4548         # path with ; separators, and with drive letters. We can handle the
4549         # drive letters (cygwin fileutils understands them), so leave them,
4550         # especially as we might pass files found there to a mingw objdump,
4551         # which wouldn't understand a cygwinified path. Ahh.
4552         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4553       else
4554         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4555       fi
4556       ;;
4557     pw32*)
4558       # pw32 DLLs use 'pw' prefix rather than 'lib'
4559       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4560       ;;
4561     esac
4562     ;;
4563
4564   *)
4565     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4566     ;;
4567   esac
4568   dynamic_linker='Win32 ld.exe'
4569   # FIXME: first we should search . and the directory the executable is in
4570   shlibpath_var=PATH
4571   ;;
4572
4573 darwin* | rhapsody*)
4574   dynamic_linker="$host_os dyld"
4575   version_type=darwin
4576   need_lib_prefix=no
4577   need_version=no
4578   # FIXME: Relying on posixy $() will cause problems for
4579   #        cross-compilation, but unfortunately the echo tests do not
4580   #        yet detect zsh echo's removal of \ escapes.
4581   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4582   soname_spec='${libname}${release}${major}$shared_ext'
4583   shlibpath_overrides_runpath=yes
4584   shlibpath_var=DYLD_LIBRARY_PATH
4585   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4586   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4587   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4588   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"`
4589   fi
4590   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4591   ;;
4592
4593 dgux*)
4594   version_type=linux
4595   need_lib_prefix=no
4596   need_version=no
4597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4598   soname_spec='${libname}${release}${shared_ext}$major'
4599   shlibpath_var=LD_LIBRARY_PATH
4600   ;;
4601
4602 freebsd1*)
4603   dynamic_linker=no
4604   ;;
4605
4606 freebsd*)
4607   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4608   version_type=freebsd-$objformat
4609   case $version_type in
4610     freebsd-elf*)
4611       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4612       need_version=no
4613       need_lib_prefix=no
4614       ;;
4615     freebsd-*)
4616       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4617       need_version=yes
4618       ;;
4619   esac
4620   shlibpath_var=LD_LIBRARY_PATH
4621   case $host_os in
4622   freebsd2*)
4623     shlibpath_overrides_runpath=yes
4624     ;;
4625   freebsd3.01* | freebsdelf3.01*)
4626     shlibpath_overrides_runpath=yes
4627     hardcode_into_libs=yes
4628     ;;
4629   *) # from 3.2 on
4630     shlibpath_overrides_runpath=no
4631     hardcode_into_libs=yes
4632     ;;
4633   esac
4634   ;;
4635
4636 gnu*)
4637   version_type=linux
4638   need_lib_prefix=no
4639   need_version=no
4640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4641   soname_spec='${libname}${release}${shared_ext}$major'
4642   shlibpath_var=LD_LIBRARY_PATH
4643   hardcode_into_libs=yes
4644   ;;
4645
4646 hpux9* | hpux10* | hpux11*)
4647   # Give a soname corresponding to the major version so that dld.sl refuses to
4648   # link against other versions.
4649   version_type=sunos
4650   need_lib_prefix=no
4651   need_version=no
4652   case "$host_cpu" in
4653   ia64*)
4654     shrext='.so'
4655     hardcode_into_libs=yes
4656     dynamic_linker="$host_os dld.so"
4657     shlibpath_var=LD_LIBRARY_PATH
4658     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4660     soname_spec='${libname}${release}${shared_ext}$major'
4661     if test "X$HPUX_IA64_MODE" = X32; then
4662       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4663     else
4664       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4665     fi
4666     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4667     ;;
4668    hppa*64*)
4669      shrext='.sl'
4670      hardcode_into_libs=yes
4671      dynamic_linker="$host_os dld.sl"
4672      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4673      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4675      soname_spec='${libname}${release}${shared_ext}$major'
4676      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4677      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4678      ;;
4679    *)
4680     shrext='.sl'
4681     dynamic_linker="$host_os dld.sl"
4682     shlibpath_var=SHLIB_PATH
4683     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4685     soname_spec='${libname}${release}${shared_ext}$major'
4686     ;;
4687   esac
4688   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4689   postinstall_cmds='chmod 555 $lib'
4690   ;;
4691
4692 irix5* | irix6* | nonstopux*)
4693   case $host_os in
4694     nonstopux*) version_type=nonstopux ;;
4695     *)
4696         if test "$lt_cv_prog_gnu_ld" = yes; then
4697                 version_type=linux
4698         else
4699                 version_type=irix
4700         fi ;;
4701   esac
4702   need_lib_prefix=no
4703   need_version=no
4704   soname_spec='${libname}${release}${shared_ext}$major'
4705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4706   case $host_os in
4707   irix5* | nonstopux*)
4708     libsuff= shlibsuff=
4709     ;;
4710   *)
4711     case $LD in # libtool.m4 will add one of these switches to LD
4712     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4713       libsuff= shlibsuff= libmagic=32-bit;;
4714     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4715       libsuff=32 shlibsuff=N32 libmagic=N32;;
4716     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4717       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4718     *) libsuff= shlibsuff= libmagic=never-match;;
4719     esac
4720     ;;
4721   esac
4722   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4723   shlibpath_overrides_runpath=no
4724   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4725   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4726   hardcode_into_libs=yes
4727   ;;
4728
4729 # No shared lib support for Linux oldld, aout, or coff.
4730 linux*oldld* | linux*aout* | linux*coff*)
4731   dynamic_linker=no
4732   ;;
4733
4734 # This must be Linux ELF.
4735 linux*|k*bsd*-gnu)
4736   version_type=linux
4737   need_lib_prefix=no
4738   need_version=no
4739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4740   soname_spec='${libname}${release}${shared_ext}$major'
4741   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4742   shlibpath_var=LD_LIBRARY_PATH
4743   shlibpath_overrides_runpath=no
4744   # This implies no fast_install, which is unacceptable.
4745   # Some rework will be needed to allow for fast_install
4746   # before this can be enabled.
4747   hardcode_into_libs=yes
4748
4749   # We used to test for /lib/ld.so.1 and disable shared libraries on
4750   # powerpc, because MkLinux only supported shared libraries with the
4751   # GNU dynamic linker.  Since this was broken with cross compilers,
4752   # most powerpc-linux boxes support dynamic linking these days and
4753   # people can always --disable-shared, the test was removed, and we
4754   # assume the GNU/Linux dynamic linker is in use.
4755   dynamic_linker='GNU/Linux ld.so'
4756   ;;
4757
4758 netbsd*)
4759   version_type=sunos
4760   need_lib_prefix=no
4761   need_version=no
4762   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4764     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4765     dynamic_linker='NetBSD (a.out) ld.so'
4766   else
4767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4768     soname_spec='${libname}${release}${shared_ext}$major'
4769     dynamic_linker='NetBSD ld.elf_so'
4770   fi
4771   shlibpath_var=LD_LIBRARY_PATH
4772   shlibpath_overrides_runpath=yes
4773   hardcode_into_libs=yes
4774   ;;
4775
4776 newsos6)
4777   version_type=linux
4778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4779   shlibpath_var=LD_LIBRARY_PATH
4780   shlibpath_overrides_runpath=yes
4781   ;;
4782
4783 nto-qnx)
4784   version_type=linux
4785   need_lib_prefix=no
4786   need_version=no
4787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4788   soname_spec='${libname}${release}${shared_ext}$major'
4789   shlibpath_var=LD_LIBRARY_PATH
4790   shlibpath_overrides_runpath=yes
4791   ;;
4792
4793 openbsd*)
4794   version_type=sunos
4795   need_lib_prefix=no
4796   need_version=no
4797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4798   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4799   shlibpath_var=LD_LIBRARY_PATH
4800   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4801     case $host_os in
4802       openbsd2.[89] | openbsd2.[89].*)
4803         shlibpath_overrides_runpath=no
4804         ;;
4805       *)
4806         shlibpath_overrides_runpath=yes
4807         ;;
4808       esac
4809   else
4810     shlibpath_overrides_runpath=yes
4811   fi
4812   ;;
4813
4814 os2*)
4815   libname_spec='$name'
4816   shrext=".dll"
4817   need_lib_prefix=no
4818   library_names_spec='$libname${shared_ext} $libname.a'
4819   dynamic_linker='OS/2 ld.exe'
4820   shlibpath_var=LIBPATH
4821   ;;
4822
4823 osf3* | osf4* | osf5*)
4824   version_type=osf
4825   need_lib_prefix=no
4826   need_version=no
4827   soname_spec='${libname}${release}${shared_ext}$major'
4828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4829   shlibpath_var=LD_LIBRARY_PATH
4830   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4831   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4832   ;;
4833
4834 sco3.2v5*)
4835   version_type=osf
4836   soname_spec='${libname}${release}${shared_ext}$major'
4837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4838   shlibpath_var=LD_LIBRARY_PATH
4839   ;;
4840
4841 solaris*)
4842   version_type=linux
4843   need_lib_prefix=no
4844   need_version=no
4845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4846   soname_spec='${libname}${release}${shared_ext}$major'
4847   shlibpath_var=LD_LIBRARY_PATH
4848   shlibpath_overrides_runpath=yes
4849   hardcode_into_libs=yes
4850   # ldd complains unless libraries are executable
4851   postinstall_cmds='chmod +x $lib'
4852   ;;
4853
4854 sunos4*)
4855   version_type=sunos
4856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4857   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4858   shlibpath_var=LD_LIBRARY_PATH
4859   shlibpath_overrides_runpath=yes
4860   if test "$with_gnu_ld" = yes; then
4861     need_lib_prefix=no
4862   fi
4863   need_version=yes
4864   ;;
4865
4866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4867   version_type=linux
4868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4869   soname_spec='${libname}${release}${shared_ext}$major'
4870   shlibpath_var=LD_LIBRARY_PATH
4871   case $host_vendor in
4872     sni)
4873       shlibpath_overrides_runpath=no
4874       need_lib_prefix=no
4875       export_dynamic_flag_spec='${wl}-Blargedynsym'
4876       runpath_var=LD_RUN_PATH
4877       ;;
4878     siemens)
4879       need_lib_prefix=no
4880       ;;
4881     motorola)
4882       need_lib_prefix=no
4883       need_version=no
4884       shlibpath_overrides_runpath=no
4885       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4886       ;;
4887   esac
4888   ;;
4889
4890 sysv4*MP*)
4891   if test -d /usr/nec ;then
4892     version_type=linux
4893     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4894     soname_spec='$libname${shared_ext}.$major'
4895     shlibpath_var=LD_LIBRARY_PATH
4896   fi
4897   ;;
4898
4899 uts4*)
4900   version_type=linux
4901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4902   soname_spec='${libname}${release}${shared_ext}$major'
4903   shlibpath_var=LD_LIBRARY_PATH
4904   ;;
4905
4906 *)
4907   dynamic_linker=no
4908   ;;
4909 esac
4910 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4911 echo "${ECHO_T}$dynamic_linker" >&6
4912 test "$dynamic_linker" = no && can_build_shared=no
4913
4914
4915 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4916 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4917 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   libltdl_cv_shlibpath_var="$shlibpath_var"
4921 fi
4922 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4923 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4924 if test -n "$libltdl_cv_shlibpath_var"; then
4925
4926 cat >>confdefs.h <<_ACEOF
4927 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4928 _ACEOF
4929
4930 fi
4931
4932 fi
4933
4934                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4935
4936
4937 # See if the user has requested runtime debugging.
4938 LIBGCJDEBUG="disable"
4939
4940 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4941 if test "${enable_libgcj_debug+set}" = set; then
4942   enableval="$enable_libgcj_debug"
4943   if test "$enable_libgcj_debug" = yes; then
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define DEBUG 1
4947 _ACEOF
4948
4949     LIBGCJDEBUG="enable"
4950   fi
4951 fi;
4952
4953
4954 # Check whether --with-escher or --without-escher was given.
4955 if test "${with_escher+set}" = set; then
4956   withval="$with_escher"
4957
4958 fi;
4959 case "$with_escher" in
4960 "")
4961         use_escher=false
4962         ;;
4963 "no")
4964         use_escher=false
4965         ;;
4966 "yes")
4967         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
4968 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
4969    { (exit 1); exit 1; }; }
4970         ;;
4971 *)
4972         use_escher=true
4973         ;;
4974 esac
4975
4976 # Determine which AWT peer libraries to build
4977 # Check whether --enable-java-awt or --disable-java-awt was given.
4978 if test "${enable_java_awt+set}" = set; then
4979   enableval="$enable_java_awt"
4980
4981 fi;
4982
4983 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4984 use_xlib_awt=""
4985 use_gtk_awt=""
4986 use_qt_awt=""
4987 use_x_awt=""
4988 # The default toolkit to use is the first one specified.
4989 TOOLKIT=
4990
4991
4992 for peer in $peerlibs ; do
4993   case $peer in
4994     xlib)
4995       if test "$no_x" = yes; then
4996         echo "*** xlib peers requested but no X library available" 1>&2
4997         exit 1
4998       else
4999         use_xlib_awt="yes"
5000         if test -z "$TOOLKIT"; then
5001            TOOLKIT=gnu.awt.xlib.XToolkit
5002         fi
5003       fi
5004       ;;
5005     gtk)
5006       if test "$no_x" = yes; then
5007          echo "*** gtk peers requested but no X library available" 1>&2
5008          exit 1
5009       else
5010          use_gtk_awt=yes
5011          if test -z "$TOOLKIT"; then
5012             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5013          fi
5014       fi
5015       ;;
5016     qt)
5017       if test "$no_x" = yes; then
5018          # Perhaps we should admit the possibility of embedded Qt.
5019          echo "*** Qt peers requested but no X library available" 1>&2
5020          exit 1
5021       else
5022          use_qt_awt=yes
5023          if test -z "$TOOLKIT"; then
5024             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5025          fi
5026       fi
5027       ;;
5028     x)
5029       use_x_awt=yes
5030       if test -z "$TOOLKIT"; then
5031          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5032       fi
5033       ;;
5034     no)
5035       use_xlib_awt=
5036       use_gtk_awt=
5037       use_qt_awt=
5038       use_x_awt=
5039       break
5040       ;;
5041     *)
5042       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5043       exit 1
5044   esac
5045 done
5046
5047
5048
5049 if test "$use_xlib_awt" = yes; then
5050   XLIB_AWT_TRUE=
5051   XLIB_AWT_FALSE='#'
5052 else
5053   XLIB_AWT_TRUE='#'
5054   XLIB_AWT_FALSE=
5055 fi
5056
5057
5058
5059 if test "$use_x_awt" = yes; then
5060   X_AWT_TRUE=
5061   X_AWT_FALSE='#'
5062 else
5063   X_AWT_TRUE='#'
5064   X_AWT_FALSE=
5065 fi
5066
5067
5068
5069 cat >>confdefs.h <<_ACEOF
5070 #define AWT_TOOLKIT "$TOOLKIT"
5071 _ACEOF
5072
5073
5074
5075 cat >>confdefs.h <<_ACEOF
5076 #define LIBGCJ_PREFIX "$prefix"
5077 _ACEOF
5078
5079
5080 # Create standard.omit based on decisions we just made.
5081 cp $srcdir/standard.omit.in standard.omit
5082 if test "$use_xlib_awt" != yes; then
5083    echo gnu/awt/xlib >> standard.omit
5084    echo gnu/gcj/xlib >> standard.omit
5085 fi
5086 if test "$use_x_awt" != yes; then
5087    echo gnu/java/awt/peer/x >> standard.omit
5088 fi
5089
5090 if test -z "${with_multisubdir}"; then
5091    builddotdot=.
5092 else
5093    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5094 fi
5095
5096 NATIVE=yes
5097
5098 # Which gcj and host gcj (for ecjx) do we use?
5099 which_gcj=default
5100 host_exeext=${ac_exeext}
5101 GCJ_FOR_ECJX=
5102 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5103 if test -n "${with_cross_host}"; then
5104   # We are being configured with a cross compiler. We can't
5105   # use ac_exeext, because that is for the target platform.
5106   NATIVE=no
5107   cross_host_exeext=
5108   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5109   case "${with_cross_host}" in
5110      *mingw* | *cygwin*)
5111          cross_host_exeext=.exe
5112      ;;
5113   esac
5114   host_exeext=${cross_host_exeext}
5115   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5116      if test x"$build_noncanonical" = x"$with_cross_host"; then
5117         # Ordinary cross (host!=target and host=build)
5118         which_gcj=built
5119      else
5120         # Canadian cross (host!=target and host!=build)
5121         which_gcj=cross
5122      fi
5123   else
5124      which_gcj=cross
5125   fi
5126 else
5127   # We are being configured with a native or crossed-native compiler
5128   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5129      if test x"$build" = x"$host"; then
5130         # True native build (host=target and host=build)
5131         which_gcj=built
5132      else
5133         # Crossed-native build (host=target and host!=build)
5134         which_gcj=cross
5135      fi
5136   else
5137      which_gcj=path
5138   fi
5139 fi
5140 case "${which_gcj}" in
5141    built)
5142       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5143       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5144    ;;
5145    cross)
5146       if test "x${with_newlib}" = "xyes"; then
5147          # FIXME (comment): Why is this needed?
5148          GCC_UNWIND_INCLUDE=
5149          GCJ="${target_noncanonical}-gcj"
5150       else
5151          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5152       fi
5153       GCJH="$built_gcc_dir/gcjh"
5154    ;;
5155    path)
5156       GCJ="gcj -B`${PWDCMD-pwd}`/"
5157       GCJH=gcjh
5158    ;;
5159 esac
5160
5161
5162
5163
5164
5165 # Create it, so that compile/link tests don't fail
5166 test -f libgcj.spec || touch libgcj.spec
5167
5168
5169
5170 # Set up to configure Classpath.
5171 # FIXME: no supported way to pass args in autoconf.
5172 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5173 # Disable tool wrappers to avoid ltdl.h configure check.
5174 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5175 ac_configure_args="$ac_configure_args --disable-load-library"
5176 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5177 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5178 dir1=`cd $srcdir && pwd`
5179 dir2=`pwd`
5180 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5181 ac_configure_args="$ac_configure_args --disable-core-jni"
5182 ac_configure_args="$ac_configure_args --disable-examples"
5183 ac_configure_args="$ac_configure_args --with-glibj=build"
5184 if test "$plugin_enabled" != yes; then
5185   ac_configure_args="$ac_configure_args --disable-plugin"
5186 fi
5187 if test "$gconf_enabled" != yes; then
5188   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5189   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5190 fi
5191 if test "$use_gtk_awt" != yes; then
5192   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5193 fi
5194 if test "$use_qt_awt" != yes; then
5195   ac_configure_args="$ac_configure_args --disable-qt-peer"
5196 else
5197   # We need this as qt is disabled by default in classpath.
5198   ac_configure_args="$ac_configure_args --enable-qt-peer"
5199 fi
5200 if test "$use_x_awt" != yes; then
5201   ac_configure_args="$ac_configure_args --without-escher"
5202 else
5203   # We need this as escher is disabled by default in classpath.
5204   if test "$use_escher" != true; then
5205     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5206 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5207    { (exit 1); exit 1; }; }
5208   else
5209     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5210   fi
5211 fi
5212 # -Werror causes unavoidable problems in code using alsa.
5213 ac_configure_args="$ac_configure_args --disable-Werror"
5214
5215 # Only use libltdl for non-newlib builds.
5216 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5217      case $enable_ltdl_convenience in
5218   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5219 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5220    { (exit 1); exit 1; }; } ;;
5221   "") enable_ltdl_convenience=yes
5222       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5223   esac
5224   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5225   INCLTDL='-I${top_srcdir}/''libltdl'
5226
5227
5228    DIRLTDL=libltdl
5229
5230 cat >>confdefs.h <<\_ACEOF
5231 #define USE_LTDL 1
5232 _ACEOF
5233
5234    # Sigh.  Libtool's macro doesn't do the right thing.
5235    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5236    # FIXME: this is a hack.
5237    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5238    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5239 fi
5240
5241
5242
5243 # Check whether --enable-shared or --disable-shared was given.
5244 if test "${enable_shared+set}" = set; then
5245   enableval="$enable_shared"
5246   p=${PACKAGE-default}
5247 case $enableval in
5248 yes) enable_shared=yes ;;
5249 no) enable_shared=no ;;
5250 *)
5251   enable_shared=no
5252   # Look at the argument we got.  We use all the common list separators.
5253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5254   for pkg in $enableval; do
5255     if test "X$pkg" = "X$p"; then
5256       enable_shared=yes
5257     fi
5258   done
5259   IFS="$ac_save_ifs"
5260   ;;
5261 esac
5262 else
5263   enable_shared=yes
5264 fi;
5265 # Check whether --enable-static or --disable-static was given.
5266 if test "${enable_static+set}" = set; then
5267   enableval="$enable_static"
5268   p=${PACKAGE-default}
5269 case $enableval in
5270 yes) enable_static=yes ;;
5271 no) enable_static=no ;;
5272 *)
5273   enable_static=no
5274   # Look at the argument we got.  We use all the common list separators.
5275   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5276   for pkg in $enableval; do
5277     if test "X$pkg" = "X$p"; then
5278       enable_static=yes
5279     fi
5280   done
5281   IFS="$ac_save_ifs"
5282   ;;
5283 esac
5284 else
5285   enable_static=yes
5286 fi;
5287 # Check whether --enable-fast-install or --disable-fast-install was given.
5288 if test "${enable_fast_install+set}" = set; then
5289   enableval="$enable_fast_install"
5290   p=${PACKAGE-default}
5291 case $enableval in
5292 yes) enable_fast_install=yes ;;
5293 no) enable_fast_install=no ;;
5294 *)
5295   enable_fast_install=no
5296   # Look at the argument we got.  We use all the common list separators.
5297   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5298   for pkg in $enableval; do
5299     if test "X$pkg" = "X$p"; then
5300       enable_fast_install=yes
5301     fi
5302   done
5303   IFS="$ac_save_ifs"
5304   ;;
5305 esac
5306 else
5307   enable_fast_install=yes
5308 fi;
5309
5310 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5311 if test "${with_gnu_ld+set}" = set; then
5312   withval="$with_gnu_ld"
5313   test "$withval" = no || with_gnu_ld=yes
5314 else
5315   with_gnu_ld=no
5316 fi;
5317 ac_prog=ld
5318 if test "$GCC" = yes; then
5319   # Check if gcc -print-prog-name=ld gives a path.
5320   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5321 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5322   case $host in
5323   *-*-mingw*)
5324     # gcc leaves a trailing carriage return which upsets mingw
5325     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5326   *)
5327     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5328   esac
5329   case $ac_prog in
5330     # Accept absolute paths.
5331     [\\/]* | [A-Za-z]:[\\/]*)
5332       re_direlt='/[^/][^/]*/\.\./'
5333       # Canonicalize the path of ld
5334       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5335       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5336         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5337       done
5338       test -z "$LD" && LD="$ac_prog"
5339       ;;
5340   "")
5341     # If it fails, then pretend we aren't using GCC.
5342     ac_prog=ld
5343     ;;
5344   *)
5345     # If it is relative, then search for the first ld in PATH.
5346     with_gnu_ld=unknown
5347     ;;
5348   esac
5349 elif test "$with_gnu_ld" = yes; then
5350   echo "$as_me:$LINENO: checking for GNU ld" >&5
5351 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5352 else
5353   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5354 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5355 fi
5356 if test "${lt_cv_path_LD+set}" = set; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   if test -z "$LD"; then
5360   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5361   for ac_dir in $PATH; do
5362     test -z "$ac_dir" && ac_dir=.
5363     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5364       lt_cv_path_LD="$ac_dir/$ac_prog"
5365       # Check to see if the program is GNU ld.  I'd rather use --version,
5366       # but apparently some GNU ld's only accept -v.
5367       # Break only if it was the GNU/non-GNU ld that we prefer.
5368       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5369         test "$with_gnu_ld" != no && break
5370       else
5371         test "$with_gnu_ld" != yes && break
5372       fi
5373     fi
5374   done
5375   IFS="$ac_save_ifs"
5376 else
5377   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5378 fi
5379 fi
5380
5381 LD="$lt_cv_path_LD"
5382 if test -n "$LD"; then
5383   echo "$as_me:$LINENO: result: $LD" >&5
5384 echo "${ECHO_T}$LD" >&6
5385 else
5386   echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5388 fi
5389 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5390 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5391    { (exit 1); exit 1; }; }
5392 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5393 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5394 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5398 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5399   lt_cv_prog_gnu_ld=yes
5400 else
5401   lt_cv_prog_gnu_ld=no
5402 fi
5403 fi
5404 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5405 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5406 with_gnu_ld=$lt_cv_prog_gnu_ld
5407
5408
5409 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5410 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5411 if test "${lt_cv_ld_reload_flag+set}" = set; then
5412   echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414   lt_cv_ld_reload_flag='-r'
5415 fi
5416 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5417 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5418 reload_flag=$lt_cv_ld_reload_flag
5419 test -n "$reload_flag" && reload_flag=" $reload_flag"
5420
5421 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5422 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5423 if test "${lt_cv_path_NM+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   if test -n "$NM"; then
5427   # Let the user override the test.
5428   lt_cv_path_NM="$NM"
5429 else
5430   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5431   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5432     test -z "$ac_dir" && ac_dir=.
5433     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5434     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5435       # Check to see if the nm accepts a BSD-compat flag.
5436       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5437       #   nm: unknown option "B" ignored
5438       # Tru64's nm complains that /dev/null is an invalid object file
5439       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5440         lt_cv_path_NM="$tmp_nm -B"
5441         break
5442       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5443         lt_cv_path_NM="$tmp_nm -p"
5444         break
5445       else
5446         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5447         continue # so that we can try to find one that supports BSD flags
5448       fi
5449     fi
5450   done
5451   IFS="$ac_save_ifs"
5452   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5453 fi
5454 fi
5455
5456 NM="$lt_cv_path_NM"
5457 echo "$as_me:$LINENO: result: $NM" >&5
5458 echo "${ECHO_T}$NM" >&6
5459
5460 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5461 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5462 if test "${lt_cv_deplibs_check_method+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   lt_cv_file_magic_cmd='$MAGIC_CMD'
5466 lt_cv_file_magic_test_file=
5467 lt_cv_deplibs_check_method='unknown'
5468 # Need to set the preceding variable on all platforms that support
5469 # interlibrary dependencies.
5470 # 'none' -- dependencies not supported.
5471 # `unknown' -- same as none, but documents that we really don't know.
5472 # 'pass_all' -- all dependencies passed with no checks.
5473 # 'test_compile' -- check by making test program.
5474 # 'file_magic [regex]' -- check by looking for files in library path
5475 # which responds to the $file_magic_cmd with a given egrep regex.
5476 # If you have `file' or equivalent on your system and you're not sure
5477 # whether `pass_all' will *always* work, you probably want this one.
5478
5479 case $host_os in
5480 aix*)
5481   lt_cv_deplibs_check_method=pass_all
5482   ;;
5483
5484 beos*)
5485   lt_cv_deplibs_check_method=pass_all
5486   ;;
5487
5488 bsdi4*)
5489   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5490   lt_cv_file_magic_cmd='/usr/bin/file -L'
5491   lt_cv_file_magic_test_file=/shlib/libc.so
5492   ;;
5493
5494 cygwin* | mingw* |pw32*)
5495   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5496   lt_cv_file_magic_cmd='$OBJDUMP -f'
5497   ;;
5498
5499 darwin* | rhapsody*)
5500   # this will be overwritten by pass_all, but leave it in just in case
5501   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5502   lt_cv_file_magic_cmd='/usr/bin/file -L'
5503   case "$host_os" in
5504   rhapsody* | darwin1.012)
5505     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5506     ;;
5507   *) # Darwin 1.3 on
5508     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5509     ;;
5510   esac
5511   lt_cv_deplibs_check_method=pass_all
5512   ;;
5513
5514 freebsd* | kfreebsd*-gnu)
5515   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5516     case $host_cpu in
5517     i*86 )
5518       # Not sure whether the presence of OpenBSD here was a mistake.
5519       # Let's accept both of them until this is cleared up.
5520       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5521       lt_cv_file_magic_cmd=/usr/bin/file
5522       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5523       ;;
5524     esac
5525   else
5526     lt_cv_deplibs_check_method=pass_all
5527   fi
5528   ;;
5529
5530 gnu*)
5531   lt_cv_deplibs_check_method=pass_all
5532   ;;
5533
5534 hpux10.20*|hpux11*)
5535   case $host_cpu in
5536   hppa*)
5537     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5538     lt_cv_file_magic_cmd=/usr/bin/file
5539     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5540     ;;
5541   ia64*)
5542     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5543     lt_cv_file_magic_cmd=/usr/bin/file
5544     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5545     ;;
5546   esac
5547   ;;
5548
5549 irix5* | irix6*)
5550   case $host_os in
5551   irix5*)
5552     # this will be overridden with pass_all, but let us keep it just in case
5553     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5554     ;;
5555   *)
5556     case $LD in
5557     *-32|*"-32 ") libmagic=32-bit;;
5558     *-n32|*"-n32 ") libmagic=N32;;
5559     *-64|*"-64 ") libmagic=64-bit;;
5560     *) libmagic=never-match;;
5561     esac
5562     # this will be overridden with pass_all, but let us keep it just in case
5563     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5564     ;;
5565   esac
5566   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5567   lt_cv_deplibs_check_method=pass_all
5568   ;;
5569
5570 # This must be Linux ELF.
5571 linux-gnu*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 netbsd* | knetbsd*-gnu)
5576   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5577     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5578   else
5579     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5580   fi
5581   ;;
5582
5583 newsos6)
5584   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5585   lt_cv_file_magic_cmd=/usr/bin/file
5586   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5587   ;;
5588
5589 osf3* | osf4* | osf5*)
5590   # this will be overridden with pass_all, but let us keep it just in case
5591   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5592   lt_cv_file_magic_test_file=/shlib/libc.so
5593   lt_cv_deplibs_check_method=pass_all
5594   ;;
5595
5596 sco3.2v5*)
5597   lt_cv_deplibs_check_method=pass_all
5598   ;;
5599
5600 solaris*)
5601   lt_cv_deplibs_check_method=pass_all
5602   lt_cv_file_magic_test_file=/lib/libc.so
5603   ;;
5604
5605 sysv5uw[78]* | sysv4*uw2*)
5606   lt_cv_deplibs_check_method=pass_all
5607   ;;
5608
5609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5610   case $host_vendor in
5611   ncr)
5612     lt_cv_deplibs_check_method=pass_all
5613     ;;
5614   motorola)
5615     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]'
5616     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5617     ;;
5618   esac
5619   ;;
5620 esac
5621
5622 fi
5623 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5624 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5625 file_magic_cmd=$lt_cv_file_magic_cmd
5626 deplibs_check_method=$lt_cv_deplibs_check_method
5627
5628
5629
5630
5631 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5632
5633 # find the maximum length of command line arguments
5634 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5635 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5636 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639     i=0
5640   teststring="ABCD"
5641
5642   case $build_os in
5643   msdosdjgpp*)
5644     # On DJGPP, this test can blow up pretty badly due to problems in libc
5645     # (any single argument exceeding 2000 bytes causes a buffer overrun
5646     # during glob expansion).  Even if it were fixed, the result of this
5647     # check would be larger than it should be.
5648     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5649     ;;
5650
5651   cygwin* | mingw*)
5652     # On Win9x/ME, this test blows up -- it succeeds, but takes
5653     # about 5 minutes as the teststring grows exponentially.
5654     # Worse, since 9x/ME are not pre-emptively multitasking,
5655     # you end up with a "frozen" computer, even though with patience
5656     # the test eventually succeeds (with a max line length of 256k).
5657     # Instead, let's just punt: use the minimum linelength reported by
5658     # all of the supported platforms: 8192 (on NT/2K/XP).
5659     lt_cv_sys_max_cmd_len=8192;
5660     ;;
5661
5662   amigaos*)
5663     # On AmigaOS with pdksh, this test takes hours, literally.
5664     # So we just punt and use a minimum line length of 8192.
5665     lt_cv_sys_max_cmd_len=8192;
5666     ;;
5667
5668   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5669     # This has been around since 386BSD, at least.  Likely further.
5670     if test -x /sbin/sysctl; then
5671       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5672     elif test -x /usr/sbin/sysctl; then
5673       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5674     else
5675       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5676     fi
5677     # And add a safety zone
5678     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5679     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5680     ;;
5681   esac
5682
5683 fi
5684
5685 if test -n "$lt_cv_sys_max_cmd_len" ; then
5686   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5687 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5688 else
5689   echo "$as_me:$LINENO: result: none" >&5
5690 echo "${ECHO_T}none" >&6
5691 fi
5692
5693
5694 # Only perform the check for file, if the check method requires it
5695 case $deplibs_check_method in
5696 file_magic*)
5697   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5698     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5699 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5700 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   case $MAGIC_CMD in
5704   /*)
5705   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5706   ;;
5707   ?:/*)
5708   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5709   ;;
5710   *)
5711   ac_save_MAGIC_CMD="$MAGIC_CMD"
5712   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5713   ac_dummy="/usr/bin:$PATH"
5714   for ac_dir in $ac_dummy; do
5715     test -z "$ac_dir" && ac_dir=.
5716     if test -f $ac_dir/${ac_tool_prefix}file; then
5717       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5718       if test -n "$file_magic_test_file"; then
5719         case $deplibs_check_method in
5720         "file_magic "*)
5721           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5722           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5723           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5724             egrep "$file_magic_regex" > /dev/null; then
5725             :
5726           else
5727             cat <<EOF 1>&2
5728
5729 *** Warning: the command libtool uses to detect shared libraries,
5730 *** $file_magic_cmd, produces output that libtool cannot recognize.
5731 *** The result is that libtool may fail to recognize shared libraries
5732 *** as such.  This will affect the creation of libtool libraries that
5733 *** depend on shared libraries, but programs linked with such libtool
5734 *** libraries will work regardless of this problem.  Nevertheless, you
5735 *** may want to report the problem to your system manager and/or to
5736 *** bug-libtool@gnu.org
5737
5738 EOF
5739           fi ;;
5740         esac
5741       fi
5742       break
5743     fi
5744   done
5745   IFS="$ac_save_ifs"
5746   MAGIC_CMD="$ac_save_MAGIC_CMD"
5747   ;;
5748 esac
5749 fi
5750
5751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5752 if test -n "$MAGIC_CMD"; then
5753   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5754 echo "${ECHO_T}$MAGIC_CMD" >&6
5755 else
5756   echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5758 fi
5759
5760 if test -z "$lt_cv_path_MAGIC_CMD"; then
5761   if test -n "$ac_tool_prefix"; then
5762     echo "$as_me:$LINENO: checking for file" >&5
5763 echo $ECHO_N "checking for file... $ECHO_C" >&6
5764 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   case $MAGIC_CMD in
5768   /*)
5769   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5770   ;;
5771   ?:/*)
5772   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5773   ;;
5774   *)
5775   ac_save_MAGIC_CMD="$MAGIC_CMD"
5776   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5777   ac_dummy="/usr/bin:$PATH"
5778   for ac_dir in $ac_dummy; do
5779     test -z "$ac_dir" && ac_dir=.
5780     if test -f $ac_dir/file; then
5781       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5782       if test -n "$file_magic_test_file"; then
5783         case $deplibs_check_method in
5784         "file_magic "*)
5785           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5786           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5787           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5788             egrep "$file_magic_regex" > /dev/null; then
5789             :
5790           else
5791             cat <<EOF 1>&2
5792
5793 *** Warning: the command libtool uses to detect shared libraries,
5794 *** $file_magic_cmd, produces output that libtool cannot recognize.
5795 *** The result is that libtool may fail to recognize shared libraries
5796 *** as such.  This will affect the creation of libtool libraries that
5797 *** depend on shared libraries, but programs linked with such libtool
5798 *** libraries will work regardless of this problem.  Nevertheless, you
5799 *** may want to report the problem to your system manager and/or to
5800 *** bug-libtool@gnu.org
5801
5802 EOF
5803           fi ;;
5804         esac
5805       fi
5806       break
5807     fi
5808   done
5809   IFS="$ac_save_ifs"
5810   MAGIC_CMD="$ac_save_MAGIC_CMD"
5811   ;;
5812 esac
5813 fi
5814
5815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5816 if test -n "$MAGIC_CMD"; then
5817   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5818 echo "${ECHO_T}$MAGIC_CMD" >&6
5819 else
5820   echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6
5822 fi
5823
5824   else
5825     MAGIC_CMD=:
5826   fi
5827 fi
5828
5829   fi
5830   ;;
5831 esac
5832
5833 if test -n "$ac_tool_prefix"; then
5834   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5836 echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838 if test "${ac_cv_prog_RANLIB+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   if test -n "$RANLIB"; then
5842   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847   IFS=$as_save_IFS
5848   test -z "$as_dir" && as_dir=.
5849   for ac_exec_ext in '' $ac_executable_extensions; do
5850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854   fi
5855 done
5856 done
5857
5858 fi
5859 fi
5860 RANLIB=$ac_cv_prog_RANLIB
5861 if test -n "$RANLIB"; then
5862   echo "$as_me:$LINENO: result: $RANLIB" >&5
5863 echo "${ECHO_T}$RANLIB" >&6
5864 else
5865   echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5867 fi
5868
5869 fi
5870 if test -z "$ac_cv_prog_RANLIB"; then
5871   ac_ct_RANLIB=$RANLIB
5872   # Extract the first word of "ranlib", so it can be a program name with args.
5873 set dummy ranlib; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   if test -n "$ac_ct_RANLIB"; then
5880   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_exec_ext in '' $ac_executable_extensions; do
5888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889     ac_cv_prog_ac_ct_RANLIB="ranlib"
5890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894 done
5895
5896   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5897 fi
5898 fi
5899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900 if test -n "$ac_ct_RANLIB"; then
5901   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5902 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5903 else
5904   echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5906 fi
5907
5908   RANLIB=$ac_ct_RANLIB
5909 else
5910   RANLIB="$ac_cv_prog_RANLIB"
5911 fi
5912
5913 if test -n "$ac_tool_prefix"; then
5914   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}strip; ac_word=$2
5916 echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918 if test "${ac_cv_prog_STRIP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   if test -n "$STRIP"; then
5922   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927   IFS=$as_save_IFS
5928   test -z "$as_dir" && as_dir=.
5929   for ac_exec_ext in '' $ac_executable_extensions; do
5930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933     break 2
5934   fi
5935 done
5936 done
5937
5938 fi
5939 fi
5940 STRIP=$ac_cv_prog_STRIP
5941 if test -n "$STRIP"; then
5942   echo "$as_me:$LINENO: result: $STRIP" >&5
5943 echo "${ECHO_T}$STRIP" >&6
5944 else
5945   echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5947 fi
5948
5949 fi
5950 if test -z "$ac_cv_prog_STRIP"; then
5951   ac_ct_STRIP=$STRIP
5952   # Extract the first word of "strip", so it can be a program name with args.
5953 set dummy strip; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   if test -n "$ac_ct_STRIP"; then
5960   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_exec_ext in '' $ac_executable_extensions; do
5968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969     ac_cv_prog_ac_ct_STRIP="strip"
5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974 done
5975
5976   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5977 fi
5978 fi
5979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5980 if test -n "$ac_ct_STRIP"; then
5981   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5982 echo "${ECHO_T}$ac_ct_STRIP" >&6
5983 else
5984   echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5986 fi
5987
5988   STRIP=$ac_ct_STRIP
5989 else
5990   STRIP="$ac_cv_prog_STRIP"
5991 fi
5992
5993
5994 # Check for any special flags to pass to ltconfig.
5995 libtool_flags="--cache-file=$cache_file"
5996 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5997 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5998 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5999 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
6000 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6001
6002
6003 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6004 if test "${enable_libtool_lock+set}" = set; then
6005   enableval="$enable_libtool_lock"
6006
6007 fi;
6008 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6009 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6010
6011
6012 # Check whether --with-pic or --without-pic was given.
6013 if test "${with_pic+set}" = set; then
6014   withval="$with_pic"
6015   pic_mode="$withval"
6016 else
6017   pic_mode=default
6018 fi;
6019 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6020 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6021
6022 # Some flags need to be propagated to the compiler or linker for good
6023 # libtool support.
6024 case $host in
6025 *-*-irix6*)
6026   # Find out which ABI we are using.
6027   echo '#line 6027 "configure"' > conftest.$ac_ext
6028   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029   (eval $ac_compile) 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; then
6033    if test "$lt_cv_prog_gnu_ld" = yes; then
6034     case `/usr/bin/file conftest.$ac_objext` in
6035     *32-bit*)
6036       LD="${LD-ld} -melf32bsmip"
6037       ;;
6038     *N32*)
6039       LD="${LD-ld} -melf32bmipn32"
6040       ;;
6041     *64-bit*)
6042       LD="${LD-ld} -melf64bmip"
6043       ;;
6044     esac
6045    else
6046     case `/usr/bin/file conftest.$ac_objext` in
6047     *32-bit*)
6048       LD="${LD-ld} -32"
6049       ;;
6050     *N32*)
6051       LD="${LD-ld} -n32"
6052       ;;
6053     *64-bit*)
6054       LD="${LD-ld} -64"
6055       ;;
6056     esac
6057    fi
6058   fi
6059   rm -rf conftest*
6060   ;;
6061
6062 ia64-*-hpux*)
6063   # Find out which ABI we are using.
6064   echo 'int i;' > conftest.$ac_ext
6065   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066   (eval $ac_compile) 2>&5
6067   ac_status=$?
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); }; then
6070     case "`/usr/bin/file conftest.o`" in
6071     *ELF-32*)
6072       HPUX_IA64_MODE="32"
6073       ;;
6074     *ELF-64*)
6075       HPUX_IA64_MODE="64"
6076       ;;
6077     esac
6078   fi
6079   rm -rf conftest*
6080   ;;
6081
6082 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6083   # Find out which ABI we are using.
6084   echo 'int i;' > conftest.$ac_ext
6085   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086   (eval $ac_compile) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; then
6090     case "`/usr/bin/file conftest.o`" in
6091     *32-bit*)
6092       case $host in
6093         x86_64-*linux*)
6094           LD="${LD-ld} -m elf_i386"
6095           ;;
6096         ppc64-*linux*|powerpc64-*linux*)
6097           LD="${LD-ld} -m elf32ppclinux"
6098           ;;
6099         s390x-*linux*)
6100           LD="${LD-ld} -m elf_s390"
6101           ;;
6102         sparc64-*linux*)
6103           LD="${LD-ld} -m elf32_sparc"
6104           ;;
6105       esac
6106       ;;
6107     *64-bit*)
6108       case $host in
6109         x86_64-*linux*)
6110           LD="${LD-ld} -m elf_x86_64"
6111           ;;
6112         ppc*-*linux*|powerpc*-*linux*)
6113           LD="${LD-ld} -m elf64ppc"
6114           ;;
6115         s390*-*linux*)
6116           LD="${LD-ld} -m elf64_s390"
6117           ;;
6118         sparc*-*linux*)
6119           LD="${LD-ld} -m elf64_sparc"
6120           ;;
6121       esac
6122       ;;
6123     esac
6124   fi
6125   rm -rf conftest*
6126   ;;
6127
6128 *-*-sco3.2v5*)
6129   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6130   SAVE_CFLAGS="$CFLAGS"
6131   CFLAGS="$CFLAGS -belf"
6132   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6133 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6134 if test "${lt_cv_cc_needs_belf+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137
6138
6139      ac_ext=c
6140 ac_cpp='$CPP $CPPFLAGS'
6141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144
6145      if test x$gcc_no_link = xyes; then
6146   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6147 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6148    { (exit 1); exit 1; }; }
6149 fi
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156
6157 int
6158 main ()
6159 {
6160
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 rm -f conftest.$ac_objext conftest$ac_exeext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167   (eval $ac_link) 2>conftest.er1
6168   ac_status=$?
6169   grep -v '^ *+' conftest.er1 >conftest.err
6170   rm -f conftest.er1
6171   cat conftest.err >&5
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } &&
6174          { ac_try='test -z "$ac_c_werror_flag"
6175                          || test ! -s conftest.err'
6176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177   (eval $ac_try) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); }; } &&
6181          { ac_try='test -s conftest$ac_exeext'
6182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183   (eval $ac_try) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   lt_cv_cc_needs_belf=yes
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 lt_cv_cc_needs_belf=no
6193 fi
6194 rm -f conftest.err conftest.$ac_objext \
6195       conftest$ac_exeext conftest.$ac_ext
6196      ac_ext=c
6197 ac_cpp='$CPP $CPPFLAGS'
6198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201
6202 fi
6203 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6204 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6205   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6206     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6207     CFLAGS="$SAVE_CFLAGS"
6208   fi
6209   ;;
6210
6211
6212 esac
6213
6214
6215 # Save cache, so that ltconfig can load it
6216 cat >confcache <<\_ACEOF
6217 # This file is a shell script that caches the results of configure
6218 # tests run on this system so they can be shared between configure
6219 # scripts and configure runs, see configure's option --config-cache.
6220 # It is not useful on other systems.  If it contains results you don't
6221 # want to keep, you may remove or edit it.
6222 #
6223 # config.status only pays attention to the cache file if you give it
6224 # the --recheck option to rerun configure.
6225 #
6226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6228 # following values.
6229
6230 _ACEOF
6231
6232 # The following way of writing the cache mishandles newlines in values,
6233 # but we know of no workaround that is simple, portable, and efficient.
6234 # So, don't put newlines in cache variables' values.
6235 # Ultrix sh set writes to stderr and can't be redirected directly,
6236 # and sets the high bit in the cache file unless we assign to the vars.
6237 {
6238   (set) 2>&1 |
6239     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6240     *ac_space=\ *)
6241       # `set' does not quote correctly, so add quotes (double-quote
6242       # substitution turns \\\\ into \\, and sed turns \\ into \).
6243       sed -n \
6244         "s/'/'\\\\''/g;
6245           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6246       ;;
6247     *)
6248       # `set' quotes correctly as required by POSIX, so do not add quotes.
6249       sed -n \
6250         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6251       ;;
6252     esac;
6253 } |
6254   sed '
6255      t clear
6256      : clear
6257      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6258      t end
6259      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6260      : end' >>confcache
6261 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6262   if test -w $cache_file; then
6263     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6264     cat confcache >$cache_file
6265   else
6266     echo "not updating unwritable cache $cache_file"
6267   fi
6268 fi
6269 rm -f confcache
6270
6271 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6272 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6273 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6274 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6275 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6276 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6277 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6278 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6279 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6280 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6281 echo "$as_me: error: libtool configure failed" >&2;}
6282    { (exit 1); exit 1; }; }
6283
6284 # Reload cache, that may have been modified by ltconfig
6285 if test -r "$cache_file"; then
6286   # Some versions of bash will fail to source /dev/null (special
6287   # files actually), so we avoid doing that.
6288   if test -f "$cache_file"; then
6289     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6290 echo "$as_me: loading cache $cache_file" >&6;}
6291     case $cache_file in
6292       [\\/]* | ?:[\\/]* ) . $cache_file;;
6293       *)                      . ./$cache_file;;
6294     esac
6295   fi
6296 else
6297   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6298 echo "$as_me: creating cache $cache_file" >&6;}
6299   >$cache_file
6300 fi
6301
6302
6303 # This can be used to rebuild libtool when needed
6304 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6305
6306 # Always use our own libtool.
6307 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6308
6309 # Redirect the config.log output again, so that the ltconfig log is not
6310 # clobbered by the next message.
6311 exec 5>>./config.log
6312
6313 ac_ext=cc
6314 ac_cpp='$CXXCPP $CPPFLAGS'
6315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6318 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6319 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6320 if test -z "$CXXCPP"; then
6321   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324       # Double quotes because CXXCPP needs to be expanded
6325     for CXXCPP in "$CXX -E" "/lib/cpp"
6326     do
6327       ac_preproc_ok=false
6328 for ac_cxx_preproc_warn_flag in '' yes
6329 do
6330   # Use a header file that comes with gcc, so configuring glibc
6331   # with a fresh cross-compiler works.
6332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6333   # <limits.h> exists even on freestanding compilers.
6334   # On the NeXT, cc -E runs the code through the compiler's parser,
6335   # not just through cpp. "Syntax error" is here to catch this case.
6336   cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h.  */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h.  */
6342 #ifdef __STDC__
6343 # include <limits.h>
6344 #else
6345 # include <assert.h>
6346 #endif
6347                      Syntax error
6348 _ACEOF
6349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6351   ac_status=$?
6352   grep -v '^ *+' conftest.er1 >conftest.err
6353   rm -f conftest.er1
6354   cat conftest.err >&5
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } >/dev/null; then
6357   if test -s conftest.err; then
6358     ac_cpp_err=$ac_cxx_preproc_warn_flag
6359     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6360   else
6361     ac_cpp_err=
6362   fi
6363 else
6364   ac_cpp_err=yes
6365 fi
6366 if test -z "$ac_cpp_err"; then
6367   :
6368 else
6369   echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6371
6372   # Broken: fails on valid input.
6373 continue
6374 fi
6375 rm -f conftest.err conftest.$ac_ext
6376
6377   # OK, works on sane cases.  Now check whether non-existent headers
6378   # can be detected and how.
6379   cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385 #include <ac_nonexistent.h>
6386 _ACEOF
6387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6389   ac_status=$?
6390   grep -v '^ *+' conftest.er1 >conftest.err
6391   rm -f conftest.er1
6392   cat conftest.err >&5
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); } >/dev/null; then
6395   if test -s conftest.err; then
6396     ac_cpp_err=$ac_cxx_preproc_warn_flag
6397     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6398   else
6399     ac_cpp_err=
6400   fi
6401 else
6402   ac_cpp_err=yes
6403 fi
6404 if test -z "$ac_cpp_err"; then
6405   # Broken: success on invalid input.
6406 continue
6407 else
6408   echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6410
6411   # Passes both tests.
6412 ac_preproc_ok=:
6413 break
6414 fi
6415 rm -f conftest.err conftest.$ac_ext
6416
6417 done
6418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6419 rm -f conftest.err conftest.$ac_ext
6420 if $ac_preproc_ok; then
6421   break
6422 fi
6423
6424     done
6425     ac_cv_prog_CXXCPP=$CXXCPP
6426
6427 fi
6428   CXXCPP=$ac_cv_prog_CXXCPP
6429 else
6430   ac_cv_prog_CXXCPP=$CXXCPP
6431 fi
6432 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6433 echo "${ECHO_T}$CXXCPP" >&6
6434 ac_preproc_ok=false
6435 for ac_cxx_preproc_warn_flag in '' yes
6436 do
6437   # Use a header file that comes with gcc, so configuring glibc
6438   # with a fresh cross-compiler works.
6439   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6440   # <limits.h> exists even on freestanding compilers.
6441   # On the NeXT, cc -E runs the code through the compiler's parser,
6442   # not just through cpp. "Syntax error" is here to catch this case.
6443   cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h.  */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h.  */
6449 #ifdef __STDC__
6450 # include <limits.h>
6451 #else
6452 # include <assert.h>
6453 #endif
6454                      Syntax error
6455 _ACEOF
6456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6458   ac_status=$?
6459   grep -v '^ *+' conftest.er1 >conftest.err
6460   rm -f conftest.er1
6461   cat conftest.err >&5
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); } >/dev/null; then
6464   if test -s conftest.err; then
6465     ac_cpp_err=$ac_cxx_preproc_warn_flag
6466     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6467   else
6468     ac_cpp_err=
6469   fi
6470 else
6471   ac_cpp_err=yes
6472 fi
6473 if test -z "$ac_cpp_err"; then
6474   :
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479   # Broken: fails on valid input.
6480 continue
6481 fi
6482 rm -f conftest.err conftest.$ac_ext
6483
6484   # OK, works on sane cases.  Now check whether non-existent headers
6485   # can be detected and how.
6486   cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492 #include <ac_nonexistent.h>
6493 _ACEOF
6494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6496   ac_status=$?
6497   grep -v '^ *+' conftest.er1 >conftest.err
6498   rm -f conftest.er1
6499   cat conftest.err >&5
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); } >/dev/null; then
6502   if test -s conftest.err; then
6503     ac_cpp_err=$ac_cxx_preproc_warn_flag
6504     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6505   else
6506     ac_cpp_err=
6507   fi
6508 else
6509   ac_cpp_err=yes
6510 fi
6511 if test -z "$ac_cpp_err"; then
6512   # Broken: success on invalid input.
6513 continue
6514 else
6515   echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518   # Passes both tests.
6519 ac_preproc_ok=:
6520 break
6521 fi
6522 rm -f conftest.err conftest.$ac_ext
6523
6524 done
6525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6526 rm -f conftest.err conftest.$ac_ext
6527 if $ac_preproc_ok; then
6528   :
6529 else
6530   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6531 See \`config.log' for more details." >&5
6532 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6533 See \`config.log' for more details." >&2;}
6534    { (exit 1); exit 1; }; }
6535 fi
6536
6537 ac_ext=c
6538 ac_cpp='$CPP $CPPFLAGS'
6539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6542
6543
6544
6545 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6546 lt_save_CC="$CC"
6547 lt_save_CFLAGS="$CFLAGS"
6548 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6549 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6550 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6551 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6552 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6553 deplibs_check_method="$deplibs_check_method" \
6554 file_magic_cmd="$file_magic_cmd" \
6555 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6556 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6557 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6558 echo "$as_me: error: libtool tag configuration failed" >&2;}
6559    { (exit 1); exit 1; }; }
6560 CC="$lt_save_CC"
6561 CFLAGS="$lt_save_CFLAGS"
6562
6563 # Redirect the config.log output again, so that the ltconfig log is not
6564 # clobbered by the next message.
6565 exec 5>>./config.log
6566
6567
6568
6569
6570
6571
6572
6573 for ac_prog in gcj
6574 do
6575   # Extract the first word of "$ac_prog", so it can be a program name with args.
6576 set dummy $ac_prog; ac_word=$2
6577 echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6579 if test "${ac_cv_prog_GCJ+set}" = set; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   if test -n "$GCJ"; then
6583   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592     ac_cv_prog_GCJ="$ac_prog"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598
6599 fi
6600 fi
6601 GCJ=$ac_cv_prog_GCJ
6602 if test -n "$GCJ"; then
6603   echo "$as_me:$LINENO: result: $GCJ" >&5
6604 echo "${ECHO_T}$GCJ" >&6
6605 else
6606   echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6
6608 fi
6609
6610   test -n "$GCJ" && break
6611 done
6612 test -n "$GCJ" || GCJ="gcj"
6613
6614 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6615 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6616    { (exit 1); exit 1; }; }
6617 if test "x${GCJFLAGS-unset}" = xunset; then
6618    GCJFLAGS="-g -O2"
6619 fi
6620
6621
6622 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6623
6624 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6625 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6626 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6630   # We make a subdir and do the tests there.  Otherwise we can end up
6631   # making bogus files that we don't know about and never remove.  For
6632   # instance it was reported that on HP-UX the gcc test will end up
6633   # making a dummy file named `D' -- because `-MD' means `put the output
6634   # in D'.
6635   mkdir conftest.dir
6636   # Copy depcomp to subdir because otherwise we won't find it if we're
6637   # using a relative directory.
6638   cp "$am_depcomp" conftest.dir
6639   cd conftest.dir
6640   # We will build objects and dependencies in a subdirectory because
6641   # it helps to detect inapplicable dependency modes.  For instance
6642   # both Tru64's cc and ICC support -MD to output dependencies as a
6643   # side effect of compilation, but ICC will put the dependencies in
6644   # the current directory while Tru64 will put them in the object
6645   # directory.
6646   mkdir sub
6647
6648   am_cv_GCJ_dependencies_compiler_type=none
6649   if test "$am_compiler_list" = ""; then
6650      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6651   fi
6652   for depmode in $am_compiler_list; do
6653     # Setup a source with many dependencies, because some compilers
6654     # like to wrap large dependency lists on column 80 (with \), and
6655     # we should not choose a depcomp mode which is confused by this.
6656     #
6657     # We need to recreate these files for each test, as the compiler may
6658     # overwrite some of them when testing with obscure command lines.
6659     # This happens at least with the AIX C compiler.
6660     : > sub/conftest.c
6661     for i in 1 2 3 4 5 6; do
6662       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6663       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6664       # Solaris 8's {/usr,}/bin/sh.
6665       touch sub/conftst$i.h
6666     done
6667     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6668
6669     case $depmode in
6670     nosideeffect)
6671       # after this tag, mechanisms are not by side-effect, so they'll
6672       # only be used when explicitly requested
6673       if test "x$enable_dependency_tracking" = xyes; then
6674         continue
6675       else
6676         break
6677       fi
6678       ;;
6679     none) break ;;
6680     esac
6681     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6682     # mode.  It turns out that the SunPro C++ compiler does not properly
6683     # handle `-M -o', and we need to detect this.
6684     if depmode=$depmode \
6685        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6686        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6687        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6688          >/dev/null 2>conftest.err &&
6689        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6690        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6691        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6692       # icc doesn't choke on unknown options, it will just issue warnings
6693       # or remarks (even with -Werror).  So we grep stderr for any message
6694       # that says an option was ignored or not supported.
6695       # When given -MP, icc 7.0 and 7.1 complain thusly:
6696       #   icc: Command line warning: ignoring option '-M'; no argument required
6697       # The diagnosis changed in icc 8.0:
6698       #   icc: Command line remark: option '-MP' not supported
6699       if (grep 'ignoring option' conftest.err ||
6700           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6701         am_cv_GCJ_dependencies_compiler_type=$depmode
6702         break
6703       fi
6704     fi
6705   done
6706
6707   cd ..
6708   rm -rf conftest.dir
6709 else
6710   am_cv_GCJ_dependencies_compiler_type=none
6711 fi
6712
6713 fi
6714 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6715 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6716 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6717
6718
6719
6720 if
6721   test "x$enable_dependency_tracking" != xno \
6722   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6723   am__fastdepGCJ_TRUE=
6724   am__fastdepGCJ_FALSE='#'
6725 else
6726   am__fastdepGCJ_TRUE='#'
6727   am__fastdepGCJ_FALSE=
6728 fi
6729
6730
6731
6732
6733 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6734 lt_save_CC="$CC"
6735 lt_save_CFLAGS="$CFLAGS"
6736 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6737 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6738 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6739 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6740 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6741 deplibs_check_method="$deplibs_check_method" \
6742 file_magic_cmd="$file_magic_cmd" \
6743 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6744 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6745 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6746 echo "$as_me: error: libtool tag configuration failed" >&2;}
6747    { (exit 1); exit 1; }; }
6748 CC="$lt_save_CC"
6749 CFLAGS="$lt_save_CFLAGS"
6750
6751 # Redirect the config.log output again, so that the ltconfig log is not
6752 # clobbered by the next message.
6753 exec 5>>./config.log
6754
6755
6756
6757 if test "x$CC" != xcc; then
6758   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6759 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6760 else
6761   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6762 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6763 fi
6764 set dummy $CC; ac_cc=`echo $2 |
6765                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6766 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h.  */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h.  */
6775
6776 int
6777 main ()
6778 {
6779
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 # Make sure it works both with $CC and with simple cc.
6785 # We do the test twice because some compilers refuse to overwrite an
6786 # existing .o file with -o, though they will create one.
6787 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6788 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789   (eval $ac_try) 2>&5
6790   ac_status=$?
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); } &&
6793    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794   (eval $ac_try) 2>&5
6795   ac_status=$?
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); };
6798 then
6799   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6800   if test "x$CC" != xcc; then
6801     # Test first that cc exists at all.
6802     if { ac_try='cc -c conftest.$ac_ext >&5'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; }; then
6808       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6809       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810   (eval $ac_try) 2>&5
6811   ac_status=$?
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); } &&
6814          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815   (eval $ac_try) 2>&5
6816   ac_status=$?
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); };
6819       then
6820         # cc works too.
6821         :
6822       else
6823         # cc exists but doesn't like -o.
6824         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6825       fi
6826     fi
6827   fi
6828 else
6829   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6830 fi
6831 rm -f conftest*
6832
6833 fi
6834 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6835   echo "$as_me:$LINENO: result: yes" >&5
6836 echo "${ECHO_T}yes" >&6
6837 else
6838   echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6
6840
6841 cat >>confdefs.h <<\_ACEOF
6842 #define NO_MINUS_C_MINUS_O 1
6843 _ACEOF
6844
6845 fi
6846
6847 # FIXME: we rely on the cache variable name because
6848 # there is no other way.
6849 set dummy $CC
6850 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6851 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6852    # Losing compiler, so override with the script.
6853    # FIXME: It is wrong to rewrite CC.
6854    # But if we don't then we get into trouble of one sort or another.
6855    # A longer-term fix would be to have automake use am__CC in this case,
6856    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6857    CC="$am_aux_dir/compile $CC"
6858 fi
6859
6860
6861
6862
6863 subdirs="$subdirs classpath libltdl"
6864
6865
6866 # The -no-testsuite modules omit the test subdir.
6867
6868
6869 if test -d $srcdir/testsuite; then
6870   TESTSUBDIR_TRUE=
6871   TESTSUBDIR_FALSE='#'
6872 else
6873   TESTSUBDIR_TRUE='#'
6874   TESTSUBDIR_FALSE=
6875 fi
6876
6877
6878 # Should the runtime set system properties by examining the
6879 # environment variable GCJ_PROPERTIES?
6880 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6881 if test "${enable_getenv_properties+set}" = set; then
6882   enableval="$enable_getenv_properties"
6883
6884 fi;
6885
6886 # Whether GCJ_PROPERTIES is used depends on the target.
6887 if test -z "$enable_getenv_properties"; then
6888    enable_getenv_properties=${enable_getenv_properties_default-yes}
6889 fi
6890 if test "$enable_getenv_properties" = no; then
6891
6892 cat >>confdefs.h <<\_ACEOF
6893 #define DISABLE_GETENV_PROPERTIES 1
6894 _ACEOF
6895
6896 fi
6897
6898 # Whether we should use arguments to main()
6899 if test -z "$enable_main_args"; then
6900    enable_main_args=${enable_main_args_default-yes}
6901 fi
6902 if test "$enable_main_args" = no; then
6903
6904 cat >>confdefs.h <<\_ACEOF
6905 #define DISABLE_MAIN_ARGS 1
6906 _ACEOF
6907
6908 fi
6909
6910
6911 # Should we use hashtable-based synchronization?
6912 # Currently works only for Linux X86/ia64
6913 # Typically faster and more space-efficient
6914 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6915 if test "${enable_hash_synchronization+set}" = set; then
6916   enableval="$enable_hash_synchronization"
6917
6918 fi;
6919
6920 if test -z "$enable_hash_synchronization"; then
6921    enable_hash_synchronization=$enable_hash_synchronization_default
6922 fi
6923
6924
6925 install_ecj_jar=no
6926 ECJ_BUILD_JAR=
6927 ECJ_JAR=
6928
6929 # Check whether --with-ecj-jar or --without-ecj-jar was given.
6930 if test "${with_ecj_jar+set}" = set; then
6931   withval="$with_ecj_jar"
6932   ECJ_JAR=$withval
6933 else
6934   if test -f $multi_basedir/ecj.jar; then
6935            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
6936            ECJ_JAR='$(jardir)/ecj.jar'
6937            install_ecj_jar=yes
6938          fi
6939 fi;
6940
6941
6942
6943
6944 if test "$ECJ_JAR" != ""; then
6945   BUILD_ECJ1_TRUE=
6946   BUILD_ECJ1_FALSE='#'
6947 else
6948   BUILD_ECJ1_TRUE='#'
6949   BUILD_ECJ1_FALSE=
6950 fi
6951
6952
6953
6954 if test $install_ecj_jar = yes; then
6955   INSTALL_ECJ_JAR_TRUE=
6956   INSTALL_ECJ_JAR_FALSE='#'
6957 else
6958   INSTALL_ECJ_JAR_TRUE='#'
6959   INSTALL_ECJ_JAR_FALSE=
6960 fi
6961
6962
6963
6964 # Check whether --with-java-home or --without-java-home was given.
6965 if test "${with_java_home+set}" = set; then
6966   withval="$with_java_home"
6967   JAVA_HOME="${withval}"
6968 else
6969   JAVA_HOME=""
6970 fi;
6971
6972
6973 if test ! -z "$JAVA_HOME"; then
6974   JAVA_HOME_SET_TRUE=
6975   JAVA_HOME_SET_FALSE='#'
6976 else
6977   JAVA_HOME_SET_TRUE='#'
6978   JAVA_HOME_SET_FALSE=
6979 fi
6980
6981
6982
6983 # What is the native OS API for MinGW?
6984
6985 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6986 if test "${with_win32_nlsapi+set}" = set; then
6987   withval="$with_win32_nlsapi"
6988   case "${withval}" in
6989   ansi) with_win32_nlsapi=ansi ;;
6990   unicows) with_win32_nlsapi=unicows ;;
6991   unicode) with_win32_nlsapi=unicode ;;
6992   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6993 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6994    { (exit 1); exit 1; }; } ;;
6995 esac
6996 else
6997   with_win32_nlsapi=ansi
6998 fi;
6999
7000 case "${with_win32_nlsapi}" in
7001   unicows | unicode)
7002
7003 cat >>confdefs.h <<\_ACEOF
7004 #define MINGW_LIBGCJ_UNICODE 1
7005 _ACEOF
7006
7007     ;;
7008 esac
7009
7010 # configure.host sets slow_pthread_self if the synchronization code should
7011 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7012 if test "${slow_pthread_self}" = "yes"; then
7013
7014 cat >>confdefs.h <<\_ACEOF
7015 #define SLOW_PTHREAD_SELF 1
7016 _ACEOF
7017
7018 fi
7019
7020 # Check for gc debugging.  This option is handled both here and in the GC.
7021 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7022 if test "${enable_gc_debug+set}" = set; then
7023   enableval="$enable_gc_debug"
7024    if test "$enable_gc_debug" = "yes"; then
7025
7026 cat >>confdefs.h <<\_ACEOF
7027 #define LIBGCJ_GC_DEBUG 1
7028 _ACEOF
7029
7030   fi
7031 fi;
7032
7033 # See if the user has the interpreter included.
7034 # Check whether --enable-interpreter or --disable-interpreter was given.
7035 if test "${enable_interpreter+set}" = set; then
7036   enableval="$enable_interpreter"
7037   if test "$enable_interpreter" = yes; then
7038     # This can also be set in configure.host.
7039     libgcj_interpreter=yes
7040   elif test "$enable_interpreter" = no; then
7041     libgcj_interpreter=no
7042   fi
7043 fi;
7044
7045 if test "$libgcj_interpreter" = yes; then
7046
7047 cat >>confdefs.h <<\_ACEOF
7048 #define INTERPRETER 1
7049 _ACEOF
7050
7051 fi
7052 INTERPRETER="$libgcj_interpreter"
7053
7054
7055 echo "$as_me:$LINENO: checking for exception model to use" >&5
7056 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7057 ac_ext=cc
7058 ac_cpp='$CXXCPP $CPPFLAGS'
7059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7062
7063 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7064 if test "${enable_sjlj_exceptions+set}" = set; then
7065   enableval="$enable_sjlj_exceptions"
7066   :
7067 else
7068   cat > conftest.$ac_ext << EOF
7069 #line 7069 "configure"
7070 struct S { ~S(); };
7071 void bar();
7072 void foo()
7073 {
7074   S s;
7075   bar();
7076 }
7077 EOF
7078 old_CXXFLAGS="$CXXFLAGS"
7079 CXXFLAGS=-S
7080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7081   (eval $ac_compile) 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); }; then
7085   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7086     enable_sjlj_exceptions=yes
7087   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7088     enable_sjlj_exceptions=no
7089   fi
7090 fi
7091 CXXFLAGS="$old_CXXFLAGS"
7092 rm -f conftest*
7093 fi;
7094 if test x$enable_sjlj_exceptions = xyes; then
7095
7096 cat >>confdefs.h <<\_ACEOF
7097 #define SJLJ_EXCEPTIONS 1
7098 _ACEOF
7099
7100   ac_exception_model_name=sjlj
7101 elif test x$enable_sjlj_exceptions = xno; then
7102   ac_exception_model_name="call frame"
7103 else
7104   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7105 echo "$as_me: error: unable to detect exception model" >&2;}
7106    { (exit 1); exit 1; }; }
7107 fi
7108 ac_ext=c
7109 ac_cpp='$CPP $CPPFLAGS'
7110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113
7114 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7115 echo "${ECHO_T}$ac_exception_model_name" >&6
7116
7117 # If we are non using SJLJ exceptions, and this host does not have support
7118 # for unwinding from a signal handler, enable checked dereferences and divides.
7119 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7120   CHECKREFSPEC=-fcheck-references
7121   DIVIDESPEC=-fuse-divide-subroutine
7122   EXCEPTIONSPEC=
7123 fi
7124
7125 # See if the user wants to disable java.net.  This is the mildly
7126 # ugly way that we admit that target-side configuration sucks.
7127 # Check whether --enable-java-net or --disable-java-net was given.
7128 if test "${enable_java_net+set}" = set; then
7129   enableval="$enable_java_net"
7130
7131 fi;
7132
7133 # Whether java.net is built by default can depend on the target.
7134 if test -z "$enable_java_net"; then
7135    enable_java_net=${enable_java_net_default-yes}
7136 fi
7137 if test "$enable_java_net" = no; then
7138
7139 cat >>confdefs.h <<\_ACEOF
7140 #define DISABLE_JAVA_NET 1
7141 _ACEOF
7142
7143 fi
7144
7145 # See if the user wants to configure without libffi.  Some
7146 # architectures don't support it, and default values are set in
7147 # configure.host.
7148
7149 # Check whether --with-libffi or --without-libffi was given.
7150 if test "${with_libffi+set}" = set; then
7151   withval="$with_libffi"
7152   :
7153 else
7154   with_libffi=${with_libffi_default-yes}
7155 fi;
7156
7157 LIBFFI=
7158 LIBFFIINCS=
7159 if test "$with_libffi" != no; then
7160
7161 cat >>confdefs.h <<\_ACEOF
7162 #define USE_LIBFFI 1
7163 _ACEOF
7164
7165    LIBFFI=../libffi/libffi_convenience.la
7166    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7167 fi
7168
7169
7170
7171 # See if the user wants to disable JVMPI support.
7172 # Check whether --enable-jvmpi or --disable-jvmpi was given.
7173 if test "${enable_jvmpi+set}" = set; then
7174   enableval="$enable_jvmpi"
7175
7176 fi;
7177
7178 if test "$enable_jvmpi" != no; then
7179
7180 cat >>confdefs.h <<\_ACEOF
7181 #define ENABLE_JVMPI 1
7182 _ACEOF
7183
7184 fi
7185
7186 # If the target is an eCos system, use the appropriate eCos
7187 # I/O routines.
7188 # FIXME: this should not be a local option but a global target
7189 # system; at present there is no eCos target.
7190 TARGET_ECOS=${PROCESS-"no"}
7191
7192 # Check whether --with-ecos or --without-ecos was given.
7193 if test "${with_ecos+set}" = set; then
7194   withval="$with_ecos"
7195   TARGET_ECOS="$with_ecos"
7196
7197 fi;
7198
7199 case "$TARGET_ECOS" in
7200    no) case "$host" in
7201       *mingw*)
7202             PLATFORM=Win32
7203             PLATFORMNET=Win32
7204             PLATFORMH=win32.h
7205
7206 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7207 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7208 LD_PROG=`$CC --print-prog-name=ld`
7209 LD_VERSION=`$LD_PROG --version`
7210 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7211 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7212 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7213   LD_OK="ok"
7214 else
7215   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7216     LD_OK="ok"
7217   fi
7218 fi
7219 if test "x$LD_OK" != x; then
7220   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7221 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7222 else
7223   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7224 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7225   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7226 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7227
7228 cat >>confdefs.h <<\_ACEOF
7229 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7230 _ACEOF
7231
7232 fi
7233       ;;
7234       *)
7235             PLATFORM=Posix
7236             PLATFORMNET=Posix
7237             PLATFORMH=posix.h
7238       ;;
7239       esac
7240       ;;
7241    *)
7242       PLATFORM=Ecos
7243       PLATFORMNET=NoNet
7244
7245 cat >>confdefs.h <<\_ACEOF
7246 #define ECOS 1
7247 _ACEOF
7248
7249       PLATFORMH=posix.h
7250       ;;
7251 esac
7252
7253           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7254
7255
7256 ac_ext=c
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7262 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7263 # On Suns, sometimes $CPP names a directory.
7264 if test -n "$CPP" && test -d "$CPP"; then
7265   CPP=
7266 fi
7267 if test -z "$CPP"; then
7268   if test "${ac_cv_prog_CPP+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271       # Double quotes because CPP needs to be expanded
7272     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7273     do
7274       ac_preproc_ok=false
7275 for ac_c_preproc_warn_flag in '' yes
7276 do
7277   # Use a header file that comes with gcc, so configuring glibc
7278   # with a fresh cross-compiler works.
7279   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7280   # <limits.h> exists even on freestanding compilers.
7281   # On the NeXT, cc -E runs the code through the compiler's parser,
7282   # not just through cpp. "Syntax error" is here to catch this case.
7283   cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h.  */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h.  */
7289 #ifdef __STDC__
7290 # include <limits.h>
7291 #else
7292 # include <assert.h>
7293 #endif
7294                      Syntax error
7295 _ACEOF
7296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7297   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } >/dev/null; then
7304   if test -s conftest.err; then
7305     ac_cpp_err=$ac_c_preproc_warn_flag
7306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7307   else
7308     ac_cpp_err=
7309   fi
7310 else
7311   ac_cpp_err=yes
7312 fi
7313 if test -z "$ac_cpp_err"; then
7314   :
7315 else
7316   echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319   # Broken: fails on valid input.
7320 continue
7321 fi
7322 rm -f conftest.err conftest.$ac_ext
7323
7324   # OK, works on sane cases.  Now check whether non-existent headers
7325   # can be detected and how.
7326   cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h.  */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h.  */
7332 #include <ac_nonexistent.h>
7333 _ACEOF
7334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7336   ac_status=$?
7337   grep -v '^ *+' conftest.er1 >conftest.err
7338   rm -f conftest.er1
7339   cat conftest.err >&5
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); } >/dev/null; then
7342   if test -s conftest.err; then
7343     ac_cpp_err=$ac_c_preproc_warn_flag
7344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7345   else
7346     ac_cpp_err=
7347   fi
7348 else
7349   ac_cpp_err=yes
7350 fi
7351 if test -z "$ac_cpp_err"; then
7352   # Broken: success on invalid input.
7353 continue
7354 else
7355   echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.$ac_ext >&5
7357
7358   # Passes both tests.
7359 ac_preproc_ok=:
7360 break
7361 fi
7362 rm -f conftest.err conftest.$ac_ext
7363
7364 done
7365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7366 rm -f conftest.err conftest.$ac_ext
7367 if $ac_preproc_ok; then
7368   break
7369 fi
7370
7371     done
7372     ac_cv_prog_CPP=$CPP
7373
7374 fi
7375   CPP=$ac_cv_prog_CPP
7376 else
7377   ac_cv_prog_CPP=$CPP
7378 fi
7379 echo "$as_me:$LINENO: result: $CPP" >&5
7380 echo "${ECHO_T}$CPP" >&6
7381 ac_preproc_ok=false
7382 for ac_c_preproc_warn_flag in '' yes
7383 do
7384   # Use a header file that comes with gcc, so configuring glibc
7385   # with a fresh cross-compiler works.
7386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7387   # <limits.h> exists even on freestanding compilers.
7388   # On the NeXT, cc -E runs the code through the compiler's parser,
7389   # not just through cpp. "Syntax error" is here to catch this case.
7390   cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h.  */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h.  */
7396 #ifdef __STDC__
7397 # include <limits.h>
7398 #else
7399 # include <assert.h>
7400 #endif
7401                      Syntax error
7402 _ACEOF
7403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7405   ac_status=$?
7406   grep -v '^ *+' conftest.er1 >conftest.err
7407   rm -f conftest.er1
7408   cat conftest.err >&5
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); } >/dev/null; then
7411   if test -s conftest.err; then
7412     ac_cpp_err=$ac_c_preproc_warn_flag
7413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7414   else
7415     ac_cpp_err=
7416   fi
7417 else
7418   ac_cpp_err=yes
7419 fi
7420 if test -z "$ac_cpp_err"; then
7421   :
7422 else
7423   echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426   # Broken: fails on valid input.
7427 continue
7428 fi
7429 rm -f conftest.err conftest.$ac_ext
7430
7431   # OK, works on sane cases.  Now check whether non-existent headers
7432   # can be detected and how.
7433   cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 #include <ac_nonexistent.h>
7440 _ACEOF
7441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7443   ac_status=$?
7444   grep -v '^ *+' conftest.er1 >conftest.err
7445   rm -f conftest.er1
7446   cat conftest.err >&5
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } >/dev/null; then
7449   if test -s conftest.err; then
7450     ac_cpp_err=$ac_c_preproc_warn_flag
7451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7452   else
7453     ac_cpp_err=
7454   fi
7455 else
7456   ac_cpp_err=yes
7457 fi
7458 if test -z "$ac_cpp_err"; then
7459   # Broken: success on invalid input.
7460 continue
7461 else
7462   echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465   # Passes both tests.
7466 ac_preproc_ok=:
7467 break
7468 fi
7469 rm -f conftest.err conftest.$ac_ext
7470
7471 done
7472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7473 rm -f conftest.err conftest.$ac_ext
7474 if $ac_preproc_ok; then
7475   :
7476 else
7477   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7478 See \`config.log' for more details." >&5
7479 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7480 See \`config.log' for more details." >&2;}
7481    { (exit 1); exit 1; }; }
7482 fi
7483
7484 ac_ext=c
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489
7490
7491 echo "$as_me:$LINENO: checking for egrep" >&5
7492 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7493 if test "${ac_cv_prog_egrep+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7497     then ac_cv_prog_egrep='grep -E'
7498     else ac_cv_prog_egrep='egrep'
7499     fi
7500 fi
7501 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7502 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7503  EGREP=$ac_cv_prog_egrep
7504
7505
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512 #include <stdint.h>
7513
7514 _ACEOF
7515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7516   $EGREP "uint32_t" >/dev/null 2>&1; then
7517
7518 cat >>confdefs.h <<\_ACEOF
7519 #define HAVE_INT32_DEFINED 1
7520 _ACEOF
7521
7522 fi
7523 rm -f conftest*
7524
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h.  */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h.  */
7531 #include <inttypes.h>
7532
7533 _ACEOF
7534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535   $EGREP "uint32_t" >/dev/null 2>&1; then
7536
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_INT32_DEFINED 1
7539 _ACEOF
7540
7541 fi
7542 rm -f conftest*
7543
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h.  */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h.  */
7550 #include <sys/types.h>
7551
7552 _ACEOF
7553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7554   $EGREP "u_int32_t" >/dev/null 2>&1; then
7555
7556 cat >>confdefs.h <<\_ACEOF
7557 #define HAVE_BSD_INT32_DEFINED 1
7558 _ACEOF
7559
7560 fi
7561 rm -f conftest*
7562
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h.  */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h.  */
7569 #include <sys/config.h>
7570
7571 _ACEOF
7572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7573   $EGREP "u_int32_t" >/dev/null 2>&1; then
7574
7575 cat >>confdefs.h <<\_ACEOF
7576 #define HAVE_BSD_INT32_DEFINED 1
7577 _ACEOF
7578
7579 fi
7580 rm -f conftest*
7581
7582
7583
7584
7585 if test "$PLATFORM" = Win32; then
7586   USING_WIN32_PLATFORM_TRUE=
7587   USING_WIN32_PLATFORM_FALSE='#'
7588 else
7589   USING_WIN32_PLATFORM_TRUE='#'
7590   USING_WIN32_PLATFORM_FALSE=
7591 fi
7592
7593
7594
7595 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7596   USING_POSIX_PLATFORM_TRUE=
7597   USING_POSIX_PLATFORM_FALSE='#'
7598 else
7599   USING_POSIX_PLATFORM_TRUE='#'
7600   USING_POSIX_PLATFORM_FALSE=
7601 fi
7602
7603
7604 case "$host" in
7605   *-darwin*) DARWIN_CRT=true ;;
7606   *) DARWIN_CRT=false ;;
7607 esac
7608
7609
7610 if $DARWIN_CRT; then
7611   USING_DARWIN_CRT_TRUE=
7612   USING_DARWIN_CRT_FALSE='#'
7613 else
7614   USING_DARWIN_CRT_TRUE='#'
7615   USING_DARWIN_CRT_FALSE=
7616 fi
7617
7618
7619 # These may not be defined in a non-ANS conformant embedded system.
7620 # FIXME: Should these case a runtime exception in that case?
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h.  */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h.  */
7627 #include <time.h>
7628
7629 _ACEOF
7630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7631   $EGREP "mktime" >/dev/null 2>&1; then
7632
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_MKTIME 1
7635 _ACEOF
7636
7637 fi
7638 rm -f conftest*
7639
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h.  */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h.  */
7646 #include <time.h>
7647
7648 _ACEOF
7649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7650   $EGREP "localtime" >/dev/null 2>&1; then
7651
7652 cat >>confdefs.h <<\_ACEOF
7653 #define HAVE_LOCALTIME 1
7654 _ACEOF
7655
7656 fi
7657 rm -f conftest*
7658
7659
7660 # Create the subdirectory for natFile.cc, or the attempt
7661 # to create the link will fail.
7662 test -d java || mkdir java
7663 test -d java/io || mkdir java/io
7664 test -d gnu || mkdir gnu
7665           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7666
7667
7668 # Likewise for natConcreteProcess.cc.
7669 test -d java/lang || mkdir java/lang
7670           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7671
7672
7673 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7674 test -d java/net || mkdir java/net
7675           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7676
7677           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7678
7679
7680 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7681 test -d gnu/java || mkdir gnu/java
7682 test -d gnu/java/net || mkdir gnu/java/net
7683           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7684
7685           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7686
7687
7688 # Likewise for natVMPipe.cc and natVMSelector.cc.
7689 test -d gnu/java/nio || mkdir gnu/java/nio
7690           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
7691
7692           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
7693
7694
7695 # Likewise for natFileChannelImpl.cc
7696 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7697           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7698
7699
7700 case "${host}" in
7701     *mingw*)
7702       SYSTEMSPEC="-lgdi32 -lws2_32"
7703       if test "${with_win32_nlsapi}" = "unicows"; then
7704         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7705       fi
7706     ;;
7707     *)
7708       SYSTEMSPEC=
7709     ;;
7710 esac
7711
7712
7713 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7714
7715
7716
7717 # Check whether --with-system-zlib or --without-system-zlib was given.
7718 if test "${with_system_zlib+set}" = set; then
7719   withval="$with_system_zlib"
7720
7721 fi;
7722 ZLIBSPEC=
7723
7724 ZLIBTESTSPEC=
7725
7726
7727 echo "$as_me:$LINENO: checking for X" >&5
7728 echo $ECHO_N "checking for X... $ECHO_C" >&6
7729
7730
7731 # Check whether --with-x or --without-x was given.
7732 if test "${with_x+set}" = set; then
7733   withval="$with_x"
7734
7735 fi;
7736 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7737 if test "x$with_x" = xno; then
7738   # The user explicitly disabled X.
7739   have_x=disabled
7740 else
7741   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7742     # Both variables are already set.
7743     have_x=yes
7744   else
7745     if test "${ac_cv_have_x+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   # One or both of the vars are not set, and there is no cached value.
7749 ac_x_includes=no ac_x_libraries=no
7750 rm -fr conftest.dir
7751 if mkdir conftest.dir; then
7752   cd conftest.dir
7753   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7754   cat >Imakefile <<'_ACEOF'
7755 acfindx:
7756         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7757 _ACEOF
7758   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7759     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7760     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7761     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7762     for ac_extension in a so sl; do
7763       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7764          test -f $ac_im_libdir/libX11.$ac_extension; then
7765         ac_im_usrlibdir=$ac_im_libdir; break
7766       fi
7767     done
7768     # Screen out bogus values from the imake configuration.  They are
7769     # bogus both because they are the default anyway, and because
7770     # using them would break gcc on systems where it needs fixed includes.
7771     case $ac_im_incroot in
7772         /usr/include) ;;
7773         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7774     esac
7775     case $ac_im_usrlibdir in
7776         /usr/lib | /lib) ;;
7777         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7778     esac
7779   fi
7780   cd ..
7781   rm -fr conftest.dir
7782 fi
7783
7784 # Standard set of common directories for X headers.
7785 # Check X11 before X11Rn because it is often a symlink to the current release.
7786 ac_x_header_dirs='
7787 /usr/X11/include
7788 /usr/X11R6/include
7789 /usr/X11R5/include
7790 /usr/X11R4/include
7791
7792 /usr/include/X11
7793 /usr/include/X11R6
7794 /usr/include/X11R5
7795 /usr/include/X11R4
7796
7797 /usr/local/X11/include
7798 /usr/local/X11R6/include
7799 /usr/local/X11R5/include
7800 /usr/local/X11R4/include
7801
7802 /usr/local/include/X11
7803 /usr/local/include/X11R6
7804 /usr/local/include/X11R5
7805 /usr/local/include/X11R4
7806
7807 /usr/X386/include
7808 /usr/x386/include
7809 /usr/XFree86/include/X11
7810
7811 /usr/include
7812 /usr/local/include
7813 /usr/unsupported/include
7814 /usr/athena/include
7815 /usr/local/x11r5/include
7816 /usr/lpp/Xamples/include
7817
7818 /usr/openwin/include
7819 /usr/openwin/share/include'
7820
7821 if test "$ac_x_includes" = no; then
7822   # Guess where to find include files, by looking for Xlib.h.
7823   # First, try using that file with no special directory specified.
7824   cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h.  */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h.  */
7830 #include <X11/Xlib.h>
7831 _ACEOF
7832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7834   ac_status=$?
7835   grep -v '^ *+' conftest.er1 >conftest.err
7836   rm -f conftest.er1
7837   cat conftest.err >&5
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } >/dev/null; then
7840   if test -s conftest.err; then
7841     ac_cpp_err=$ac_c_preproc_warn_flag
7842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7843   else
7844     ac_cpp_err=
7845   fi
7846 else
7847   ac_cpp_err=yes
7848 fi
7849 if test -z "$ac_cpp_err"; then
7850   # We can compile using X headers with no special include directory.
7851 ac_x_includes=
7852 else
7853   echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7855
7856   for ac_dir in $ac_x_header_dirs; do
7857   if test -r "$ac_dir/X11/Xlib.h"; then
7858     ac_x_includes=$ac_dir
7859     break
7860   fi
7861 done
7862 fi
7863 rm -f conftest.err conftest.$ac_ext
7864 fi # $ac_x_includes = no
7865
7866 if test "$ac_x_libraries" = no; then
7867   # Check for the libraries.
7868   # See if we find them without any special options.
7869   # Don't add to $LIBS permanently.
7870   ac_save_LIBS=$LIBS
7871   LIBS="-lX11 $LIBS"
7872   if test x$gcc_no_link = xyes; then
7873   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7875    { (exit 1); exit 1; }; }
7876 fi
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h.  */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h.  */
7883 #include <X11/Xlib.h>
7884 int
7885 main ()
7886 {
7887 XrmInitialize ()
7888   ;
7889   return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894   (eval $ac_link) 2>conftest.er1
7895   ac_status=$?
7896   grep -v '^ *+' conftest.er1 >conftest.err
7897   rm -f conftest.er1
7898   cat conftest.err >&5
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); } &&
7901          { ac_try='test -z "$ac_c_werror_flag"
7902                          || test ! -s conftest.err'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; } &&
7908          { ac_try='test -s conftest$ac_exeext'
7909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; }; then
7914   LIBS=$ac_save_LIBS
7915 # We can link X programs with no special library path.
7916 ac_x_libraries=
7917 else
7918   echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921 LIBS=$ac_save_LIBS
7922 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7923 do
7924   # Don't even attempt the hair of trying to link an X program!
7925   for ac_extension in a so sl; do
7926     if test -r $ac_dir/libXt.$ac_extension; then
7927       ac_x_libraries=$ac_dir
7928       break 2
7929     fi
7930   done
7931 done
7932 fi
7933 rm -f conftest.err conftest.$ac_objext \
7934       conftest$ac_exeext conftest.$ac_ext
7935 fi # $ac_x_libraries = no
7936
7937 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7938   # Didn't find X anywhere.  Cache the known absence of X.
7939   ac_cv_have_x="have_x=no"
7940 else
7941   # Record where we found X for the cache.
7942   ac_cv_have_x="have_x=yes \
7943                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7944 fi
7945 fi
7946
7947   fi
7948   eval "$ac_cv_have_x"
7949 fi # $with_x != no
7950
7951 if test "$have_x" != yes; then
7952   echo "$as_me:$LINENO: result: $have_x" >&5
7953 echo "${ECHO_T}$have_x" >&6
7954   no_x=yes
7955 else
7956   # If each of the values was on the command line, it overrides each guess.
7957   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7958   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7959   # Update the cache value to reflect the command line values.
7960   ac_cv_have_x="have_x=yes \
7961                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7962   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7963 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7964 fi
7965
7966 if test "$no_x" = yes; then
7967   # Not all programs may use this symbol, but it does not hurt to define it.
7968
7969 cat >>confdefs.h <<\_ACEOF
7970 #define X_DISPLAY_MISSING 1
7971 _ACEOF
7972
7973   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7974 else
7975   if test -n "$x_includes"; then
7976     X_CFLAGS="$X_CFLAGS -I$x_includes"
7977   fi
7978
7979   # It would also be nice to do this for all -L options, not just this one.
7980   if test -n "$x_libraries"; then
7981     X_LIBS="$X_LIBS -L$x_libraries"
7982     # For Solaris; some versions of Sun CC require a space after -R and
7983     # others require no space.  Words are not sufficient . . . .
7984     case `(uname -sr) 2>/dev/null` in
7985     "SunOS 5"*)
7986       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7987 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7988       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7989       if test x$gcc_no_link = xyes; then
7990   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7992    { (exit 1); exit 1; }; }
7993 fi
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000
8001 int
8002 main ()
8003 {
8004
8005   ;
8006   return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8011   (eval $ac_link) 2>conftest.er1
8012   ac_status=$?
8013   grep -v '^ *+' conftest.er1 >conftest.err
8014   rm -f conftest.er1
8015   cat conftest.err >&5
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); } &&
8018          { ac_try='test -z "$ac_c_werror_flag"
8019                          || test ! -s conftest.err'
8020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021   (eval $ac_try) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; } &&
8025          { ac_try='test -s conftest$ac_exeext'
8026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027   (eval $ac_try) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); }; }; then
8031   ac_R_nospace=yes
8032 else
8033   echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 ac_R_nospace=no
8037 fi
8038 rm -f conftest.err conftest.$ac_objext \
8039       conftest$ac_exeext conftest.$ac_ext
8040       if test $ac_R_nospace = yes; then
8041         echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6
8043         X_LIBS="$X_LIBS -R$x_libraries"
8044       else
8045         LIBS="$ac_xsave_LIBS -R $x_libraries"
8046         if test x$gcc_no_link = xyes; then
8047   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8049    { (exit 1); exit 1; }; }
8050 fi
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057
8058 int
8059 main ()
8060 {
8061
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068   (eval $ac_link) 2>conftest.er1
8069   ac_status=$?
8070   grep -v '^ *+' conftest.er1 >conftest.err
8071   rm -f conftest.er1
8072   cat conftest.err >&5
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } &&
8075          { ac_try='test -z "$ac_c_werror_flag"
8076                          || test ! -s conftest.err'
8077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078   (eval $ac_try) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; } &&
8082          { ac_try='test -s conftest$ac_exeext'
8083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084   (eval $ac_try) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); }; }; then
8088   ac_R_space=yes
8089 else
8090   echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8092
8093 ac_R_space=no
8094 fi
8095 rm -f conftest.err conftest.$ac_objext \
8096       conftest$ac_exeext conftest.$ac_ext
8097         if test $ac_R_space = yes; then
8098           echo "$as_me:$LINENO: result: yes" >&5
8099 echo "${ECHO_T}yes" >&6
8100           X_LIBS="$X_LIBS -R $x_libraries"
8101         else
8102           echo "$as_me:$LINENO: result: neither works" >&5
8103 echo "${ECHO_T}neither works" >&6
8104         fi
8105       fi
8106       LIBS=$ac_xsave_LIBS
8107     esac
8108   fi
8109
8110   # Check for system-dependent libraries X programs must link with.
8111   # Do this before checking for the system-independent R6 libraries
8112   # (-lICE), since we may need -lsocket or whatever for X linking.
8113
8114   if test "$ISC" = yes; then
8115     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8116   else
8117     # Martyn Johnson says this is needed for Ultrix, if the X
8118     # libraries were built with DECnet support.  And Karl Berry says
8119     # the Alpha needs dnet_stub (dnet does not exist).
8120     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8121     if test x$gcc_no_link = xyes; then
8122   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8124    { (exit 1); exit 1; }; }
8125 fi
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h.  */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h.  */
8132
8133 /* Override any gcc2 internal prototype to avoid an error.  */
8134 #ifdef __cplusplus
8135 extern "C"
8136 #endif
8137 /* We use char because int might match the return type of a gcc2
8138    builtin and then its argument prototype would still apply.  */
8139 char XOpenDisplay ();
8140 int
8141 main ()
8142 {
8143 XOpenDisplay ();
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8150   (eval $ac_link) 2>conftest.er1
8151   ac_status=$?
8152   grep -v '^ *+' conftest.er1 >conftest.err
8153   rm -f conftest.er1
8154   cat conftest.err >&5
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); } &&
8157          { ac_try='test -z "$ac_c_werror_flag"
8158                          || test ! -s conftest.err'
8159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160   (eval $ac_try) 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; } &&
8164          { ac_try='test -s conftest$ac_exeext'
8165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166   (eval $ac_try) 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); }; }; then
8170   :
8171 else
8172   echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8176 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8177 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   ac_check_lib_save_LIBS=$LIBS
8181 LIBS="-ldnet  $LIBS"
8182 if test x$gcc_no_link = xyes; then
8183   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8185    { (exit 1); exit 1; }; }
8186 fi
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h.  */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h.  */
8193
8194 /* Override any gcc2 internal prototype to avoid an error.  */
8195 #ifdef __cplusplus
8196 extern "C"
8197 #endif
8198 /* We use char because int might match the return type of a gcc2
8199    builtin and then its argument prototype would still apply.  */
8200 char dnet_ntoa ();
8201 int
8202 main ()
8203 {
8204 dnet_ntoa ();
8205   ;
8206   return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211   (eval $ac_link) 2>conftest.er1
8212   ac_status=$?
8213   grep -v '^ *+' conftest.er1 >conftest.err
8214   rm -f conftest.er1
8215   cat conftest.err >&5
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); } &&
8218          { ac_try='test -z "$ac_c_werror_flag"
8219                          || test ! -s conftest.err'
8220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221   (eval $ac_try) 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; } &&
8225          { ac_try='test -s conftest$ac_exeext'
8226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227   (eval $ac_try) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; }; then
8231   ac_cv_lib_dnet_dnet_ntoa=yes
8232 else
8233   echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236 ac_cv_lib_dnet_dnet_ntoa=no
8237 fi
8238 rm -f conftest.err conftest.$ac_objext \
8239       conftest$ac_exeext conftest.$ac_ext
8240 LIBS=$ac_check_lib_save_LIBS
8241 fi
8242 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8243 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8244 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8245   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8246 fi
8247
8248     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8249       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8250 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8251 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   ac_check_lib_save_LIBS=$LIBS
8255 LIBS="-ldnet_stub  $LIBS"
8256 if test x$gcc_no_link = xyes; then
8257   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8258 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8259    { (exit 1); exit 1; }; }
8260 fi
8261 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267
8268 /* Override any gcc2 internal prototype to avoid an error.  */
8269 #ifdef __cplusplus
8270 extern "C"
8271 #endif
8272 /* We use char because int might match the return type of a gcc2
8273    builtin and then its argument prototype would still apply.  */
8274 char dnet_ntoa ();
8275 int
8276 main ()
8277 {
8278 dnet_ntoa ();
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285   (eval $ac_link) 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -z "$ac_c_werror_flag"
8293                          || test ! -s conftest.err'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest$ac_exeext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 ac_cv_lib_dnet_stub_dnet_ntoa=no
8311 fi
8312 rm -f conftest.err conftest.$ac_objext \
8313       conftest$ac_exeext conftest.$ac_ext
8314 LIBS=$ac_check_lib_save_LIBS
8315 fi
8316 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8317 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8318 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8319   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8320 fi
8321
8322     fi
8323 fi
8324 rm -f conftest.err conftest.$ac_objext \
8325       conftest$ac_exeext conftest.$ac_ext
8326     LIBS="$ac_xsave_LIBS"
8327
8328     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8329     # to get the SysV transport functions.
8330     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8331     # needs -lnsl.
8332     # The nsl library prevents programs from opening the X display
8333     # on Irix 5.2, according to T.E. Dickey.
8334     # The functions gethostbyname, getservbyname, and inet_addr are
8335     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8336     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8337 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8338 if test "${ac_cv_func_gethostbyname+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   if test x$gcc_no_link = xyes; then
8342   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8344    { (exit 1); exit 1; }; }
8345 fi
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h.  */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h.  */
8352 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8354 #define gethostbyname innocuous_gethostbyname
8355
8356 /* System header to define __stub macros and hopefully few prototypes,
8357     which can conflict with char gethostbyname (); below.
8358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8359     <limits.h> exists even on freestanding compilers.  */
8360
8361 #ifdef __STDC__
8362 # include <limits.h>
8363 #else
8364 # include <assert.h>
8365 #endif
8366
8367 #undef gethostbyname
8368
8369 /* Override any gcc2 internal prototype to avoid an error.  */
8370 #ifdef __cplusplus
8371 extern "C"
8372 {
8373 #endif
8374 /* We use char because int might match the return type of a gcc2
8375    builtin and then its argument prototype would still apply.  */
8376 char gethostbyname ();
8377 /* The GNU C library defines this for functions which it implements
8378     to always fail with ENOSYS.  Some functions are actually named
8379     something starting with __ and the normal name is an alias.  */
8380 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8381 choke me
8382 #else
8383 char (*f) () = gethostbyname;
8384 #endif
8385 #ifdef __cplusplus
8386 }
8387 #endif
8388
8389 int
8390 main ()
8391 {
8392 return f != gethostbyname;
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8399   (eval $ac_link) 2>conftest.er1
8400   ac_status=$?
8401   grep -v '^ *+' conftest.er1 >conftest.err
8402   rm -f conftest.er1
8403   cat conftest.err >&5
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); } &&
8406          { ac_try='test -z "$ac_c_werror_flag"
8407                          || test ! -s conftest.err'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; } &&
8413          { ac_try='test -s conftest$ac_exeext'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_cv_func_gethostbyname=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 ac_cv_func_gethostbyname=no
8425 fi
8426 rm -f conftest.err conftest.$ac_objext \
8427       conftest$ac_exeext conftest.$ac_ext
8428 fi
8429 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8430 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8431
8432     if test $ac_cv_func_gethostbyname = no; then
8433       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8434 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8435 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   ac_check_lib_save_LIBS=$LIBS
8439 LIBS="-lnsl  $LIBS"
8440 if test x$gcc_no_link = xyes; then
8441   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8442 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8443    { (exit 1); exit 1; }; }
8444 fi
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h.  */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h.  */
8451
8452 /* Override any gcc2 internal prototype to avoid an error.  */
8453 #ifdef __cplusplus
8454 extern "C"
8455 #endif
8456 /* We use char because int might match the return type of a gcc2
8457    builtin and then its argument prototype would still apply.  */
8458 char gethostbyname ();
8459 int
8460 main ()
8461 {
8462 gethostbyname ();
8463   ;
8464   return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest.$ac_objext conftest$ac_exeext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469   (eval $ac_link) 2>conftest.er1
8470   ac_status=$?
8471   grep -v '^ *+' conftest.er1 >conftest.err
8472   rm -f conftest.er1
8473   cat conftest.err >&5
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } &&
8476          { ac_try='test -z "$ac_c_werror_flag"
8477                          || test ! -s conftest.err'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; } &&
8483          { ac_try='test -s conftest$ac_exeext'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; }; then
8489   ac_cv_lib_nsl_gethostbyname=yes
8490 else
8491   echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_cv_lib_nsl_gethostbyname=no
8495 fi
8496 rm -f conftest.err conftest.$ac_objext \
8497       conftest$ac_exeext conftest.$ac_ext
8498 LIBS=$ac_check_lib_save_LIBS
8499 fi
8500 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8501 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8502 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8503   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8504 fi
8505
8506       if test $ac_cv_lib_nsl_gethostbyname = no; then
8507         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8508 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8509 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512   ac_check_lib_save_LIBS=$LIBS
8513 LIBS="-lbsd  $LIBS"
8514 if test x$gcc_no_link = xyes; then
8515   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8517    { (exit 1); exit 1; }; }
8518 fi
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h.  */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h.  */
8525
8526 /* Override any gcc2 internal prototype to avoid an error.  */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 /* We use char because int might match the return type of a gcc2
8531    builtin and then its argument prototype would still apply.  */
8532 char gethostbyname ();
8533 int
8534 main ()
8535 {
8536 gethostbyname ();
8537   ;
8538   return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543   (eval $ac_link) 2>conftest.er1
8544   ac_status=$?
8545   grep -v '^ *+' conftest.er1 >conftest.err
8546   rm -f conftest.er1
8547   cat conftest.err >&5
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } &&
8550          { ac_try='test -z "$ac_c_werror_flag"
8551                          || test ! -s conftest.err'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; } &&
8557          { ac_try='test -s conftest$ac_exeext'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; }; then
8563   ac_cv_lib_bsd_gethostbyname=yes
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568 ac_cv_lib_bsd_gethostbyname=no
8569 fi
8570 rm -f conftest.err conftest.$ac_objext \
8571       conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8573 fi
8574 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8575 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8576 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8577   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8578 fi
8579
8580       fi
8581     fi
8582
8583     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8584     # socket/setsockopt and other routines are undefined under SCO ODT
8585     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8586     # on later versions), says Simon Leinen: it contains gethostby*
8587     # variants that don't use the name server (or something).  -lsocket
8588     # must be given before -lnsl if both are needed.  We assume that
8589     # if connect needs -lnsl, so does gethostbyname.
8590     echo "$as_me:$LINENO: checking for connect" >&5
8591 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8592 if test "${ac_cv_func_connect+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   if test x$gcc_no_link = xyes; then
8596   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8598    { (exit 1); exit 1; }; }
8599 fi
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8608 #define connect innocuous_connect
8609
8610 /* System header to define __stub macros and hopefully few prototypes,
8611     which can conflict with char connect (); below.
8612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8613     <limits.h> exists even on freestanding compilers.  */
8614
8615 #ifdef __STDC__
8616 # include <limits.h>
8617 #else
8618 # include <assert.h>
8619 #endif
8620
8621 #undef connect
8622
8623 /* Override any gcc2 internal prototype to avoid an error.  */
8624 #ifdef __cplusplus
8625 extern "C"
8626 {
8627 #endif
8628 /* We use char because int might match the return type of a gcc2
8629    builtin and then its argument prototype would still apply.  */
8630 char connect ();
8631 /* The GNU C library defines this for functions which it implements
8632     to always fail with ENOSYS.  Some functions are actually named
8633     something starting with __ and the normal name is an alias.  */
8634 #if defined (__stub_connect) || defined (__stub___connect)
8635 choke me
8636 #else
8637 char (*f) () = connect;
8638 #endif
8639 #ifdef __cplusplus
8640 }
8641 #endif
8642
8643 int
8644 main ()
8645 {
8646 return f != connect;
8647   ;
8648   return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext conftest$ac_exeext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653   (eval $ac_link) 2>conftest.er1
8654   ac_status=$?
8655   grep -v '^ *+' conftest.er1 >conftest.err
8656   rm -f conftest.er1
8657   cat conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } &&
8660          { ac_try='test -z "$ac_c_werror_flag"
8661                          || test ! -s conftest.err'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; } &&
8667          { ac_try='test -s conftest$ac_exeext'
8668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669   (eval $ac_try) 2>&5
8670   ac_status=$?
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); }; }; then
8673   ac_cv_func_connect=yes
8674 else
8675   echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 ac_cv_func_connect=no
8679 fi
8680 rm -f conftest.err conftest.$ac_objext \
8681       conftest$ac_exeext conftest.$ac_ext
8682 fi
8683 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8684 echo "${ECHO_T}$ac_cv_func_connect" >&6
8685
8686     if test $ac_cv_func_connect = no; then
8687       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8688 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8689 if test "${ac_cv_lib_socket_connect+set}" = set; then
8690   echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692   ac_check_lib_save_LIBS=$LIBS
8693 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8694 if test x$gcc_no_link = xyes; then
8695   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8696 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8697    { (exit 1); exit 1; }; }
8698 fi
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h.  */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h.  */
8705
8706 /* Override any gcc2 internal prototype to avoid an error.  */
8707 #ifdef __cplusplus
8708 extern "C"
8709 #endif
8710 /* We use char because int might match the return type of a gcc2
8711    builtin and then its argument prototype would still apply.  */
8712 char connect ();
8713 int
8714 main ()
8715 {
8716 connect ();
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723   (eval $ac_link) 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } &&
8730          { ac_try='test -z "$ac_c_werror_flag"
8731                          || test ! -s conftest.err'
8732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733   (eval $ac_try) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; } &&
8737          { ac_try='test -s conftest$ac_exeext'
8738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739   (eval $ac_try) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; }; then
8743   ac_cv_lib_socket_connect=yes
8744 else
8745   echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8747
8748 ac_cv_lib_socket_connect=no
8749 fi
8750 rm -f conftest.err conftest.$ac_objext \
8751       conftest$ac_exeext conftest.$ac_ext
8752 LIBS=$ac_check_lib_save_LIBS
8753 fi
8754 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8755 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8756 if test $ac_cv_lib_socket_connect = yes; then
8757   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8758 fi
8759
8760     fi
8761
8762     # Guillermo Gomez says -lposix is necessary on A/UX.
8763     echo "$as_me:$LINENO: checking for remove" >&5
8764 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8765 if test "${ac_cv_func_remove+set}" = set; then
8766   echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768   if test x$gcc_no_link = xyes; then
8769   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8771    { (exit 1); exit 1; }; }
8772 fi
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8781 #define remove innocuous_remove
8782
8783 /* System header to define __stub macros and hopefully few prototypes,
8784     which can conflict with char remove (); below.
8785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8786     <limits.h> exists even on freestanding compilers.  */
8787
8788 #ifdef __STDC__
8789 # include <limits.h>
8790 #else
8791 # include <assert.h>
8792 #endif
8793
8794 #undef remove
8795
8796 /* Override any gcc2 internal prototype to avoid an error.  */
8797 #ifdef __cplusplus
8798 extern "C"
8799 {
8800 #endif
8801 /* We use char because int might match the return type of a gcc2
8802    builtin and then its argument prototype would still apply.  */
8803 char remove ();
8804 /* The GNU C library defines this for functions which it implements
8805     to always fail with ENOSYS.  Some functions are actually named
8806     something starting with __ and the normal name is an alias.  */
8807 #if defined (__stub_remove) || defined (__stub___remove)
8808 choke me
8809 #else
8810 char (*f) () = remove;
8811 #endif
8812 #ifdef __cplusplus
8813 }
8814 #endif
8815
8816 int
8817 main ()
8818 {
8819 return f != remove;
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext conftest$ac_exeext
8825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8826   (eval $ac_link) 2>conftest.er1
8827   ac_status=$?
8828   grep -v '^ *+' conftest.er1 >conftest.err
8829   rm -f conftest.er1
8830   cat conftest.err >&5
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } &&
8833          { ac_try='test -z "$ac_c_werror_flag"
8834                          || test ! -s conftest.err'
8835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836   (eval $ac_try) 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }; } &&
8840          { ac_try='test -s conftest$ac_exeext'
8841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842   (eval $ac_try) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); }; }; then
8846   ac_cv_func_remove=yes
8847 else
8848   echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851 ac_cv_func_remove=no
8852 fi
8853 rm -f conftest.err conftest.$ac_objext \
8854       conftest$ac_exeext conftest.$ac_ext
8855 fi
8856 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8857 echo "${ECHO_T}$ac_cv_func_remove" >&6
8858
8859     if test $ac_cv_func_remove = no; then
8860       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8861 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8862 if test "${ac_cv_lib_posix_remove+set}" = set; then
8863   echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865   ac_check_lib_save_LIBS=$LIBS
8866 LIBS="-lposix  $LIBS"
8867 if test x$gcc_no_link = xyes; then
8868   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8870    { (exit 1); exit 1; }; }
8871 fi
8872 cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h.  */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h.  */
8878
8879 /* Override any gcc2 internal prototype to avoid an error.  */
8880 #ifdef __cplusplus
8881 extern "C"
8882 #endif
8883 /* We use char because int might match the return type of a gcc2
8884    builtin and then its argument prototype would still apply.  */
8885 char remove ();
8886 int
8887 main ()
8888 {
8889 remove ();
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896   (eval $ac_link) 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -z "$ac_c_werror_flag"
8904                          || test ! -s conftest.err'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; } &&
8910          { ac_try='test -s conftest$ac_exeext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_lib_posix_remove=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_cv_lib_posix_remove=no
8922 fi
8923 rm -f conftest.err conftest.$ac_objext \
8924       conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8926 fi
8927 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8928 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8929 if test $ac_cv_lib_posix_remove = yes; then
8930   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8931 fi
8932
8933     fi
8934
8935     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8936     echo "$as_me:$LINENO: checking for shmat" >&5
8937 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8938 if test "${ac_cv_func_shmat+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   if test x$gcc_no_link = xyes; then
8942   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8943 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8944    { (exit 1); exit 1; }; }
8945 fi
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8954 #define shmat innocuous_shmat
8955
8956 /* System header to define __stub macros and hopefully few prototypes,
8957     which can conflict with char shmat (); below.
8958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8959     <limits.h> exists even on freestanding compilers.  */
8960
8961 #ifdef __STDC__
8962 # include <limits.h>
8963 #else
8964 # include <assert.h>
8965 #endif
8966
8967 #undef shmat
8968
8969 /* Override any gcc2 internal prototype to avoid an error.  */
8970 #ifdef __cplusplus
8971 extern "C"
8972 {
8973 #endif
8974 /* We use char because int might match the return type of a gcc2
8975    builtin and then its argument prototype would still apply.  */
8976 char shmat ();
8977 /* The GNU C library defines this for functions which it implements
8978     to always fail with ENOSYS.  Some functions are actually named
8979     something starting with __ and the normal name is an alias.  */
8980 #if defined (__stub_shmat) || defined (__stub___shmat)
8981 choke me
8982 #else
8983 char (*f) () = shmat;
8984 #endif
8985 #ifdef __cplusplus
8986 }
8987 #endif
8988
8989 int
8990 main ()
8991 {
8992 return f != shmat;
8993   ;
8994   return 0;
8995 }
8996 _ACEOF
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999   (eval $ac_link) 2>conftest.er1
9000   ac_status=$?
9001   grep -v '^ *+' conftest.er1 >conftest.err
9002   rm -f conftest.er1
9003   cat conftest.err >&5
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); } &&
9006          { ac_try='test -z "$ac_c_werror_flag"
9007                          || test ! -s conftest.err'
9008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009   (eval $ac_try) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; } &&
9013          { ac_try='test -s conftest$ac_exeext'
9014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015   (eval $ac_try) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; }; then
9019   ac_cv_func_shmat=yes
9020 else
9021   echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9023
9024 ac_cv_func_shmat=no
9025 fi
9026 rm -f conftest.err conftest.$ac_objext \
9027       conftest$ac_exeext conftest.$ac_ext
9028 fi
9029 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9030 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9031
9032     if test $ac_cv_func_shmat = no; then
9033       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9034 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9035 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9036   echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038   ac_check_lib_save_LIBS=$LIBS
9039 LIBS="-lipc  $LIBS"
9040 if test x$gcc_no_link = xyes; then
9041   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9043    { (exit 1); exit 1; }; }
9044 fi
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h.  */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h.  */
9051
9052 /* Override any gcc2 internal prototype to avoid an error.  */
9053 #ifdef __cplusplus
9054 extern "C"
9055 #endif
9056 /* We use char because int might match the return type of a gcc2
9057    builtin and then its argument prototype would still apply.  */
9058 char shmat ();
9059 int
9060 main ()
9061 {
9062 shmat ();
9063   ;
9064   return 0;
9065 }
9066 _ACEOF
9067 rm -f conftest.$ac_objext conftest$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069   (eval $ac_link) 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -z "$ac_c_werror_flag"
9077                          || test ! -s conftest.err'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; } &&
9083          { ac_try='test -s conftest$ac_exeext'
9084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085   (eval $ac_try) 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); }; }; then
9089   ac_cv_lib_ipc_shmat=yes
9090 else
9091   echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9093
9094 ac_cv_lib_ipc_shmat=no
9095 fi
9096 rm -f conftest.err conftest.$ac_objext \
9097       conftest$ac_exeext conftest.$ac_ext
9098 LIBS=$ac_check_lib_save_LIBS
9099 fi
9100 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9101 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9102 if test $ac_cv_lib_ipc_shmat = yes; then
9103   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9104 fi
9105
9106     fi
9107   fi
9108
9109   # Check for libraries that X11R6 Xt/Xaw programs need.
9110   ac_save_LDFLAGS=$LDFLAGS
9111   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9112   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9113   # check for ICE first), but we must link in the order -lSM -lICE or
9114   # we get undefined symbols.  So assume we have SM if we have ICE.
9115   # These have to be linked with before -lX11, unlike the other
9116   # libraries we check for below, so use a different variable.
9117   # John Interrante, Karl Berry
9118   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9119 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9120 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9121   echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123   ac_check_lib_save_LIBS=$LIBS
9124 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9125 if test x$gcc_no_link = xyes; then
9126   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9128    { (exit 1); exit 1; }; }
9129 fi
9130 cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h.  */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h.  */
9136
9137 /* Override any gcc2 internal prototype to avoid an error.  */
9138 #ifdef __cplusplus
9139 extern "C"
9140 #endif
9141 /* We use char because int might match the return type of a gcc2
9142    builtin and then its argument prototype would still apply.  */
9143 char IceConnectionNumber ();
9144 int
9145 main ()
9146 {
9147 IceConnectionNumber ();
9148   ;
9149   return 0;
9150 }
9151 _ACEOF
9152 rm -f conftest.$ac_objext conftest$ac_exeext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9154   (eval $ac_link) 2>conftest.er1
9155   ac_status=$?
9156   grep -v '^ *+' conftest.er1 >conftest.err
9157   rm -f conftest.er1
9158   cat conftest.err >&5
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); } &&
9161          { ac_try='test -z "$ac_c_werror_flag"
9162                          || test ! -s conftest.err'
9163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164   (eval $ac_try) 2>&5
9165   ac_status=$?
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   (exit $ac_status); }; } &&
9168          { ac_try='test -s conftest$ac_exeext'
9169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170   (eval $ac_try) 2>&5
9171   ac_status=$?
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); }; }; then
9174   ac_cv_lib_ICE_IceConnectionNumber=yes
9175 else
9176   echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179 ac_cv_lib_ICE_IceConnectionNumber=no
9180 fi
9181 rm -f conftest.err conftest.$ac_objext \
9182       conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_check_lib_save_LIBS
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9186 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9187 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9188   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9189 fi
9190
9191   LDFLAGS=$ac_save_LDFLAGS
9192
9193 fi
9194
9195
9196 # FIXME: this should be _libs on some hosts.
9197 libsubdir=.libs
9198
9199 # extra LD Flags which are required for targets
9200 case "${host}" in
9201 *-*-darwin[0-7].*)
9202     # For now we have to disable it on darwin[8-9] because it slows down
9203     # the linking phase. A possible bug in ld?
9204     # on Darwin -single_module speeds up loading of the dynamic libraries.
9205     extra_ldflags_libjava=-Wl,-single_module
9206     ;;
9207 esac
9208
9209
9210 # Allow the GC to be disabled.  Can be useful when debugging.
9211 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9212 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9213 # Check whether --enable-java-gc or --disable-java-gc was given.
9214 if test "${enable_java_gc+set}" = set; then
9215   enableval="$enable_java_gc"
9216   GC=$enableval
9217 else
9218   GC=boehm
9219 fi;
9220 GCLIBS=
9221 GCINCS=
9222 GCDEPS=
9223 GCSPEC=
9224 JC1GCSPEC=
9225 GCTESTSPEC=
9226 case "$GC" in
9227  boehm)
9228     echo "$as_me:$LINENO: result: boehm" >&5
9229 echo "${ECHO_T}boehm" >&6
9230     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9231     JC1GCSPEC='-fuse-boehm-gc'
9232     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9233     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9234     GCOBJS=boehm.lo
9235     GCHDR=boehm-gc.h
9236     # The POSIX thread support needs to know this.
9237
9238 cat >>confdefs.h <<\_ACEOF
9239 #define HAVE_BOEHM_GC 1
9240 _ACEOF
9241
9242     ;;
9243  no)
9244     echo "$as_me:$LINENO: result: none" >&5
9245 echo "${ECHO_T}none" >&6
9246     GCHDR=no-gc.h
9247     ;;
9248  *)
9249     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9250 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9251    { (exit 1); exit 1; }; }
9252     ;;
9253 esac
9254
9255
9256
9257
9258
9259
9260           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9261
9262
9263
9264 if test "$GC" = boehm; then
9265   USING_BOEHMGC_TRUE=
9266   USING_BOEHMGC_FALSE='#'
9267 else
9268   USING_BOEHMGC_TRUE='#'
9269   USING_BOEHMGC_FALSE=
9270 fi
9271
9272
9273
9274 if test "$GC" = no; then
9275   USING_NOGC_TRUE=
9276   USING_NOGC_FALSE='#'
9277 else
9278   USING_NOGC_TRUE='#'
9279   USING_NOGC_FALSE=
9280 fi
9281
9282
9283
9284 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9285 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9286 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9287 echo "$as_me:$LINENO: result: $THREADS" >&5
9288 echo "${ECHO_T}$THREADS" >&6
9289
9290 case "$THREADS" in
9291  no | none | single)
9292     THREADS=none
9293     ;;
9294  posix | posix95 | pthreads)
9295     THREADS=posix
9296     case "$host" in
9297      *-*-linux*)
9298
9299 cat >>confdefs.h <<\_ACEOF
9300 #define LINUX_THREADS 1
9301 _ACEOF
9302
9303         ;;
9304     esac
9305     ;;
9306  win32)
9307     ;;
9308  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9309     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9310 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9311    { (exit 1); exit 1; }; }
9312     ;;
9313  *)
9314     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9315 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9316    { (exit 1); exit 1; }; }
9317     ;;
9318 esac
9319
9320 THREADCXXFLAGS=
9321 THREADLDFLAGS=
9322 THREADLIBS=
9323 THREADINCS=
9324 THREADDEPS=
9325 THREADH=
9326 THREADSPEC=
9327 THREADSTARTFILESPEC=
9328 case "$THREADS" in
9329  posix)
9330     case "$host" in
9331      *-*-cygwin*)
9332         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9333         ;;
9334      *-*-freebsd[1234]*)
9335         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9336         # merely adds pthread_* functions) but it does have a -pthread switch
9337         # which is required at link-time to select -lc_r *instead* of -lc.
9338         THREADLDFLAGS=-pthread
9339         # Don't set THREADSPEC here as might be expected since -pthread is
9340         # not processed when found within a spec file, it must come from
9341         # the command line.  For now, the user must provide the -pthread
9342         # switch to link code compiled with gcj.  In future, consider adding
9343         # support for weak references to pthread_* functions ala gthr.h API.
9344         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9345         ;;
9346      *-*-freebsd*)
9347         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9348         # systems which support threads and -lpthread.
9349         THREADLDFLAGS=-pthread
9350         THREADSPEC=-lpthread
9351         ;;
9352      alpha*-dec-osf* | hppa*-hp-hpux*)
9353         THREADCXXFLAGS=-pthread
9354         # boehm-gc needs some functions from librt, so link that too.
9355         THREADLIBS='-lpthread -lrt'
9356         THREADSPEC='-lpthread -lrt'
9357         ;;
9358      *)
9359         THREADLIBS=-lpthread
9360         THREADSPEC=-lpthread
9361         ;;
9362     esac
9363     THREADH=posix-threads.h
9364     # MIT pthreads doesn't seem to have the mutexattr functions.
9365     # But for now we don't check for it.  We just assume you aren't
9366     # using MIT pthreads.
9367
9368 cat >>confdefs.h <<\_ACEOF
9369 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9370 _ACEOF
9371
9372
9373     # If we're using the Boehm GC, then we happen to know that it
9374     # defines _REENTRANT, so we don't bother.  Eww.
9375     if test "$GC" != boehm; then
9376
9377 cat >>confdefs.h <<\_ACEOF
9378 #define _REENTRANT 1
9379 _ACEOF
9380
9381     fi
9382
9383 cat >>confdefs.h <<\_ACEOF
9384 #define _POSIX_PTHREAD_SEMANTICS 1
9385 _ACEOF
9386
9387     ;;
9388
9389  win32)
9390     THREADH=win32-threads.h
9391     THREADCXXFLAGS=-mthreads
9392     # We need thread-safe exception handling so _CRT_MT should be set to 1.
9393     # But we do not want the executables created to be dependent on
9394     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9395     # exception handling contexts.  The following kludge achieves this effect
9396     # and causes a dummy __mingwthr_key_dtor() to be linked in from
9397     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
9398     # A workaround is to explicitly use -mthreads while linking Java programs.
9399     # See PR libgcj/28263.
9400     #
9401     # FIXME: In Java we are able to detect thread death at the end of
9402     # Thread.run() so we should be able to clean up the exception handling
9403     # contexts ourselves.
9404     THREADSTARTFILESPEC='crtmt%O%s'
9405     ;;
9406
9407  none)
9408     THREADH=no-threads.h
9409     ;;
9410 esac
9411           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422 if test "$THREADS" = posix; then
9423   USING_POSIX_THREADS_TRUE=
9424   USING_POSIX_THREADS_FALSE='#'
9425 else
9426   USING_POSIX_THREADS_TRUE='#'
9427   USING_POSIX_THREADS_FALSE=
9428 fi
9429
9430
9431
9432 if test "$THREADS" = win32; then
9433   USING_WIN32_THREADS_TRUE=
9434   USING_WIN32_THREADS_FALSE='#'
9435 else
9436   USING_WIN32_THREADS_TRUE='#'
9437   USING_WIN32_THREADS_FALSE=
9438 fi
9439
9440
9441
9442 if test "$THREADS" = none; then
9443   USING_NO_THREADS_TRUE=
9444   USING_NO_THREADS_FALSE='#'
9445 else
9446   USING_NO_THREADS_TRUE='#'
9447   USING_NO_THREADS_FALSE=
9448 fi
9449
9450
9451
9452 if test "$use_libgcj_bc" = yes; then
9453   USE_LIBGCJ_BC_TRUE=
9454   USE_LIBGCJ_BC_FALSE='#'
9455 else
9456   USE_LIBGCJ_BC_TRUE='#'
9457   USE_LIBGCJ_BC_FALSE=
9458 fi
9459
9460
9461 if test -d sysdep; then true; else mkdir sysdep; fi
9462           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9463
9464           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9465
9466           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9467
9468
9469 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9470 if test "$use_libgcj_bc" = yes; then
9471   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9472 fi
9473
9474
9475 HASH_SYNC_SPEC=
9476 # Hash synchronization is only useful with posix threads right now.
9477 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9478    HASH_SYNC_SPEC=-fhash-synchronization
9479
9480 cat >>confdefs.h <<\_ACEOF
9481 #define JV_HASH_SYNCHRONIZATION 1
9482 _ACEOF
9483
9484 fi
9485
9486
9487
9488
9489 if test "$GCC" = yes; then
9490   USING_GCC_TRUE=
9491   USING_GCC_FALSE='#'
9492 else
9493   USING_GCC_TRUE='#'
9494   USING_GCC_FALSE=
9495 fi
9496
9497
9498 # We're in the tree with gcc, and need to include some of its headers.
9499 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
9500
9501 if test "x${with_newlib}" = "xyes"; then
9502    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9503    # may not work correctly, because the compiler may not be able to
9504    # link executables.
9505
9506    # We assume newlib.  This lets us hard-code the functions we know
9507    # we'll have.
9508
9509 cat >>confdefs.h <<\_ACEOF
9510 #define HAVE_MEMMOVE 1
9511 _ACEOF
9512
9513
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_MEMCPY 1
9516 _ACEOF
9517
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_STRERROR 1
9521 _ACEOF
9522
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define HAVE_TIME 1
9526 _ACEOF
9527
9528
9529 cat >>confdefs.h <<\_ACEOF
9530 #define HAVE_GMTIME_R 1
9531 _ACEOF
9532
9533
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_LOCALTIME_R 1
9536 _ACEOF
9537
9538
9539 cat >>confdefs.h <<\_ACEOF
9540 #define HAVE_USLEEP_DECL 1
9541 _ACEOF
9542
9543    # This is only for POSIX threads.
9544
9545 cat >>confdefs.h <<\_ACEOF
9546 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9547 _ACEOF
9548
9549    # We also assume we are using gcc, which provides alloca.
9550    cat >>confdefs.h <<\_ACEOF
9551 #define HAVE_ALLOCA 1
9552 _ACEOF
9553
9554
9555    # Assume we do not have getuid and friends.
9556
9557 cat >>confdefs.h <<\_ACEOF
9558 #define NO_GETUID 1
9559 _ACEOF
9560
9561    PLATFORMNET=NoNet
9562 else
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9599                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9600                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9601                    nl_langinfo setlocale \
9602                    inet_pton uname inet_ntoa \
9603                    fork execvp pipe sigaction ftruncate mmap \
9604                    getifaddrs
9605 do
9606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9607 echo "$as_me:$LINENO: checking for $ac_func" >&5
9608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9609 if eval "test \"\${$as_ac_var+set}\" = set"; then
9610   echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612   if test x$gcc_no_link = xyes; then
9613   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9614 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9615    { (exit 1); exit 1; }; }
9616 fi
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h.  */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h.  */
9623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9625 #define $ac_func innocuous_$ac_func
9626
9627 /* System header to define __stub macros and hopefully few prototypes,
9628     which can conflict with char $ac_func (); below.
9629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9630     <limits.h> exists even on freestanding compilers.  */
9631
9632 #ifdef __STDC__
9633 # include <limits.h>
9634 #else
9635 # include <assert.h>
9636 #endif
9637
9638 #undef $ac_func
9639
9640 /* Override any gcc2 internal prototype to avoid an error.  */
9641 #ifdef __cplusplus
9642 extern "C"
9643 {
9644 #endif
9645 /* We use char because int might match the return type of a gcc2
9646    builtin and then its argument prototype would still apply.  */
9647 char $ac_func ();
9648 /* The GNU C library defines this for functions which it implements
9649     to always fail with ENOSYS.  Some functions are actually named
9650     something starting with __ and the normal name is an alias.  */
9651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9652 choke me
9653 #else
9654 char (*f) () = $ac_func;
9655 #endif
9656 #ifdef __cplusplus
9657 }
9658 #endif
9659
9660 int
9661 main ()
9662 {
9663 return f != $ac_func;
9664   ;
9665   return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670   (eval $ac_link) 2>conftest.er1
9671   ac_status=$?
9672   grep -v '^ *+' conftest.er1 >conftest.err
9673   rm -f conftest.er1
9674   cat conftest.err >&5
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -z "$ac_c_werror_flag"
9678                          || test ! -s conftest.err'
9679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680   (eval $ac_try) 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; } &&
9684          { ac_try='test -s conftest$ac_exeext'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; }; then
9690   eval "$as_ac_var=yes"
9691 else
9692   echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695 eval "$as_ac_var=no"
9696 fi
9697 rm -f conftest.err conftest.$ac_objext \
9698       conftest$ac_exeext conftest.$ac_ext
9699 fi
9700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9702 if test `eval echo '${'$as_ac_var'}'` = yes; then
9703   cat >>confdefs.h <<_ACEOF
9704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9705 _ACEOF
9706
9707 fi
9708 done
9709
9710
9711
9712 for ac_func in inet_aton inet_addr
9713 do
9714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9715 echo "$as_me:$LINENO: checking for $ac_func" >&5
9716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9717 if eval "test \"\${$as_ac_var+set}\" = set"; then
9718   echo $ECHO_N "(cached) $ECHO_C" >&6
9719 else
9720   if test x$gcc_no_link = xyes; then
9721   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9723    { (exit 1); exit 1; }; }
9724 fi
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9733 #define $ac_func innocuous_$ac_func
9734
9735 /* System header to define __stub macros and hopefully few prototypes,
9736     which can conflict with char $ac_func (); below.
9737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738     <limits.h> exists even on freestanding compilers.  */
9739
9740 #ifdef __STDC__
9741 # include <limits.h>
9742 #else
9743 # include <assert.h>
9744 #endif
9745
9746 #undef $ac_func
9747
9748 /* Override any gcc2 internal prototype to avoid an error.  */
9749 #ifdef __cplusplus
9750 extern "C"
9751 {
9752 #endif
9753 /* We use char because int might match the return type of a gcc2
9754    builtin and then its argument prototype would still apply.  */
9755 char $ac_func ();
9756 /* The GNU C library defines this for functions which it implements
9757     to always fail with ENOSYS.  Some functions are actually named
9758     something starting with __ and the normal name is an alias.  */
9759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9760 choke me
9761 #else
9762 char (*f) () = $ac_func;
9763 #endif
9764 #ifdef __cplusplus
9765 }
9766 #endif
9767
9768 int
9769 main ()
9770 {
9771 return f != $ac_func;
9772   ;
9773   return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778   (eval $ac_link) 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } &&
9785          { ac_try='test -z "$ac_c_werror_flag"
9786                          || test ! -s conftest.err'
9787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788   (eval $ac_try) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; } &&
9792          { ac_try='test -s conftest$ac_exeext'
9793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794   (eval $ac_try) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; }; then
9798   eval "$as_ac_var=yes"
9799 else
9800   echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 eval "$as_ac_var=no"
9804 fi
9805 rm -f conftest.err conftest.$ac_objext \
9806       conftest$ac_exeext conftest.$ac_ext
9807 fi
9808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9810 if test `eval echo '${'$as_ac_var'}'` = yes; then
9811   cat >>confdefs.h <<_ACEOF
9812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9813 _ACEOF
9814  break
9815 fi
9816 done
9817
9818    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9819 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9820 if test "${ac_cv_header_stdc+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829 #include <stdlib.h>
9830 #include <stdarg.h>
9831 #include <string.h>
9832 #include <float.h>
9833
9834 int
9835 main ()
9836 {
9837
9838   ;
9839   return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9844   (eval $ac_compile) 2>conftest.er1
9845   ac_status=$?
9846   grep -v '^ *+' conftest.er1 >conftest.err
9847   rm -f conftest.er1
9848   cat conftest.err >&5
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } &&
9851          { ac_try='test -z "$ac_c_werror_flag"
9852                          || test ! -s conftest.err'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; } &&
9858          { ac_try='test -s conftest.$ac_objext'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_cv_header_stdc=yes
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_cv_header_stdc=no
9870 fi
9871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9872
9873 if test $ac_cv_header_stdc = yes; then
9874   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9875   cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881 #include <string.h>
9882
9883 _ACEOF
9884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9885   $EGREP "memchr" >/dev/null 2>&1; then
9886   :
9887 else
9888   ac_cv_header_stdc=no
9889 fi
9890 rm -f conftest*
9891
9892 fi
9893
9894 if test $ac_cv_header_stdc = yes; then
9895   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9896   cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902 #include <stdlib.h>
9903
9904 _ACEOF
9905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9906   $EGREP "free" >/dev/null 2>&1; then
9907   :
9908 else
9909   ac_cv_header_stdc=no
9910 fi
9911 rm -f conftest*
9912
9913 fi
9914
9915 if test $ac_cv_header_stdc = yes; then
9916   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9917   if test "$cross_compiling" = yes; then
9918   :
9919 else
9920   cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926 #include <ctype.h>
9927 #if ((' ' & 0x0FF) == 0x020)
9928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9930 #else
9931 # define ISLOWER(c) \
9932                    (('a' <= (c) && (c) <= 'i') \
9933                      || ('j' <= (c) && (c) <= 'r') \
9934                      || ('s' <= (c) && (c) <= 'z'))
9935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9936 #endif
9937
9938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9939 int
9940 main ()
9941 {
9942   int i;
9943   for (i = 0; i < 256; i++)
9944     if (XOR (islower (i), ISLOWER (i))
9945         || toupper (i) != TOUPPER (i))
9946       exit(2);
9947   exit (0);
9948 }
9949 _ACEOF
9950 rm -f conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952   (eval $ac_link) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; }; then
9961   :
9962 else
9963   echo "$as_me: program exited with status $ac_status" >&5
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9966
9967 ( exit $ac_status )
9968 ac_cv_header_stdc=no
9969 fi
9970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9971 fi
9972 fi
9973 fi
9974 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9975 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9976 if test $ac_cv_header_stdc = yes; then
9977
9978 cat >>confdefs.h <<\_ACEOF
9979 #define STDC_HEADERS 1
9980 _ACEOF
9981
9982 fi
9983
9984 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9995                   inttypes.h stdint.h unistd.h
9996 do
9997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9998 echo "$as_me:$LINENO: checking for $ac_header" >&5
9999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10001   echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003   cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h.  */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h.  */
10009 $ac_includes_default
10010
10011 #include <$ac_header>
10012 _ACEOF
10013 rm -f conftest.$ac_objext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10015   (eval $ac_compile) 2>conftest.er1
10016   ac_status=$?
10017   grep -v '^ *+' conftest.er1 >conftest.err
10018   rm -f conftest.er1
10019   cat conftest.err >&5
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } &&
10022          { ac_try='test -z "$ac_c_werror_flag"
10023                          || test ! -s conftest.err'
10024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025   (eval $ac_try) 2>&5
10026   ac_status=$?
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); }; } &&
10029          { ac_try='test -s conftest.$ac_objext'
10030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031   (eval $ac_try) 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); }; }; then
10035   eval "$as_ac_Header=yes"
10036 else
10037   echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 eval "$as_ac_Header=no"
10041 fi
10042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10043 fi
10044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10047   cat >>confdefs.h <<_ACEOF
10048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10049 _ACEOF
10050
10051 fi
10052
10053 done
10054
10055
10056
10057
10058
10059 for ac_header in execinfo.h unistd.h dlfcn.h
10060 do
10061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10063   echo "$as_me:$LINENO: checking for $ac_header" >&5
10064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10066   echo $ECHO_N "(cached) $ECHO_C" >&6
10067 fi
10068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10070 else
10071   # Is the header compilable?
10072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h.  */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h.  */
10080 $ac_includes_default
10081 #include <$ac_header>
10082 _ACEOF
10083 rm -f conftest.$ac_objext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085   (eval $ac_compile) 2>conftest.er1
10086   ac_status=$?
10087   grep -v '^ *+' conftest.er1 >conftest.err
10088   rm -f conftest.er1
10089   cat conftest.err >&5
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } &&
10092          { ac_try='test -z "$ac_c_werror_flag"
10093                          || test ! -s conftest.err'
10094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095   (eval $ac_try) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; } &&
10099          { ac_try='test -s conftest.$ac_objext'
10100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101   (eval $ac_try) 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); }; }; then
10105   ac_header_compiler=yes
10106 else
10107   echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110 ac_header_compiler=no
10111 fi
10112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10114 echo "${ECHO_T}$ac_header_compiler" >&6
10115
10116 # Is the header present?
10117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10119 cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h.  */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h.  */
10125 #include <$ac_header>
10126 _ACEOF
10127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10129   ac_status=$?
10130   grep -v '^ *+' conftest.er1 >conftest.err
10131   rm -f conftest.er1
10132   cat conftest.err >&5
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); } >/dev/null; then
10135   if test -s conftest.err; then
10136     ac_cpp_err=$ac_c_preproc_warn_flag
10137     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10138   else
10139     ac_cpp_err=
10140   fi
10141 else
10142   ac_cpp_err=yes
10143 fi
10144 if test -z "$ac_cpp_err"; then
10145   ac_header_preproc=yes
10146 else
10147   echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150   ac_header_preproc=no
10151 fi
10152 rm -f conftest.err conftest.$ac_ext
10153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10154 echo "${ECHO_T}$ac_header_preproc" >&6
10155
10156 # So?  What about this header?
10157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10158   yes:no: )
10159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10163     ac_header_preproc=yes
10164     ;;
10165   no:yes:* )
10166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10168     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10169 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10170     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10172     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10173 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10176     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10178     (
10179       cat <<\_ASBOX
10180 ## ---------------------------------- ##
10181 ## Report this to the libjava lists.  ##
10182 ## ---------------------------------- ##
10183 _ASBOX
10184     ) |
10185       sed "s/^/$as_me: WARNING:     /" >&2
10186     ;;
10187 esac
10188 echo "$as_me:$LINENO: checking for $ac_header" >&5
10189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10191   echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193   eval "$as_ac_Header=\$ac_header_preproc"
10194 fi
10195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10197
10198 fi
10199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10200   cat >>confdefs.h <<_ACEOF
10201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10202 _ACEOF
10203
10204 fi
10205
10206 done
10207
10208    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10209    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10210 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10211 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   ac_check_lib_save_LIBS=$LIBS
10215 LIBS="-ldl  $LIBS"
10216 if test x$gcc_no_link = xyes; then
10217   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10219    { (exit 1); exit 1; }; }
10220 fi
10221 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227
10228 /* Override any gcc2 internal prototype to avoid an error.  */
10229 #ifdef __cplusplus
10230 extern "C"
10231 #endif
10232 /* We use char because int might match the return type of a gcc2
10233    builtin and then its argument prototype would still apply.  */
10234 char dladdr ();
10235 int
10236 main ()
10237 {
10238 dladdr ();
10239   ;
10240   return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245   (eval $ac_link) 2>conftest.er1
10246   ac_status=$?
10247   grep -v '^ *+' conftest.er1 >conftest.err
10248   rm -f conftest.er1
10249   cat conftest.err >&5
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); } &&
10252          { ac_try='test -z "$ac_c_werror_flag"
10253                          || test ! -s conftest.err'
10254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255   (eval $ac_try) 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); }; } &&
10259          { ac_try='test -s conftest$ac_exeext'
10260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261   (eval $ac_try) 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; }; then
10265   ac_cv_lib_dl_dladdr=yes
10266 else
10267   echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 ac_cv_lib_dl_dladdr=no
10271 fi
10272 rm -f conftest.err conftest.$ac_objext \
10273       conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10277 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10278 if test $ac_cv_lib_dl_dladdr = yes; then
10279
10280
10281 cat >>confdefs.h <<\_ACEOF
10282 #define HAVE_DLADDR 1
10283 _ACEOF
10284
10285 else
10286
10287        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10288 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10289 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   ac_check_lib_save_LIBS=$LIBS
10293 LIBS="-ldld  $LIBS"
10294 if test x$gcc_no_link = xyes; then
10295   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10297    { (exit 1); exit 1; }; }
10298 fi
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h.  */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h.  */
10305
10306 /* Override any gcc2 internal prototype to avoid an error.  */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 /* We use char because int might match the return type of a gcc2
10311    builtin and then its argument prototype would still apply.  */
10312 char dladdr ();
10313 int
10314 main ()
10315 {
10316 dladdr ();
10317   ;
10318   return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323   (eval $ac_link) 2>conftest.er1
10324   ac_status=$?
10325   grep -v '^ *+' conftest.er1 >conftest.err
10326   rm -f conftest.er1
10327   cat conftest.err >&5
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); } &&
10330          { ac_try='test -z "$ac_c_werror_flag"
10331                          || test ! -s conftest.err'
10332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333   (eval $ac_try) 2>&5
10334   ac_status=$?
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); }; } &&
10337          { ac_try='test -s conftest$ac_exeext'
10338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339   (eval $ac_try) 2>&5
10340   ac_status=$?
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); }; }; then
10343   ac_cv_lib_dld_dladdr=yes
10344 else
10345   echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 ac_cv_lib_dld_dladdr=no
10349 fi
10350 rm -f conftest.err conftest.$ac_objext \
10351       conftest$ac_exeext conftest.$ac_ext
10352 LIBS=$ac_check_lib_save_LIBS
10353 fi
10354 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10355 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10356 if test $ac_cv_lib_dld_dladdr = yes; then
10357
10358
10359 cat >>confdefs.h <<\_ACEOF
10360 #define HAVE_DLADDR 1
10361 _ACEOF
10362
10363 fi
10364
10365 fi
10366
10367
10368    if test x"$cross_compiling" = x"no"; then
10369      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10370 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10371 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10372   echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374   test "$cross_compiling" = yes &&
10375   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10376 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10377    { (exit 1); exit 1; }; }
10378 if test -r "/proc/self/exe"; then
10379   ac_cv_file__proc_self_exe=yes
10380 else
10381   ac_cv_file__proc_self_exe=no
10382 fi
10383 fi
10384 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10385 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10386 if test $ac_cv_file__proc_self_exe = yes; then
10387
10388 cat >>confdefs.h <<_ACEOF
10389 #define HAVE__PROC_SELF_EXE 1
10390 _ACEOF
10391
10392
10393
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_PROC_SELF_EXE 1
10396 _ACEOF
10397
10398 fi
10399
10400    else
10401      case $host in
10402      *-linux*)
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_PROC_SELF_EXE 1
10406 _ACEOF
10407
10408        ;;
10409      esac
10410    fi
10411
10412
10413       if test "X$prefix" = "XNONE"; then
10414     acl_final_prefix="$ac_default_prefix"
10415   else
10416     acl_final_prefix="$prefix"
10417   fi
10418   if test "X$exec_prefix" = "XNONE"; then
10419     acl_final_exec_prefix='${prefix}'
10420   else
10421     acl_final_exec_prefix="$exec_prefix"
10422   fi
10423   acl_save_prefix="$prefix"
10424   prefix="$acl_final_prefix"
10425   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10426   prefix="$acl_save_prefix"
10427
10428
10429 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10430 if test "${with_gnu_ld+set}" = set; then
10431   withval="$with_gnu_ld"
10432   test "$withval" = no || with_gnu_ld=yes
10433 else
10434   with_gnu_ld=no
10435 fi;
10436 # Prepare PATH_SEPARATOR.
10437 # The user is always right.
10438 if test "${PATH_SEPARATOR+set}" != set; then
10439   echo "#! /bin/sh" >conf$$.sh
10440   echo  "exit 0"   >>conf$$.sh
10441   chmod +x conf$$.sh
10442   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10443     PATH_SEPARATOR=';'
10444   else
10445     PATH_SEPARATOR=:
10446   fi
10447   rm -f conf$$.sh
10448 fi
10449 ac_prog=ld
10450 if test "$GCC" = yes; then
10451   # Check if gcc -print-prog-name=ld gives a path.
10452   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10453 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10454   case $host in
10455   *-*-mingw*)
10456     # gcc leaves a trailing carriage return which upsets mingw
10457     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10458   *)
10459     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10460   esac
10461   case $ac_prog in
10462     # Accept absolute paths.
10463     [\\/]* | [A-Za-z]:[\\/]*)
10464       re_direlt='/[^/][^/]*/\.\./'
10465       # Canonicalize the path of ld
10466       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10467       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10468         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10469       done
10470       test -z "$LD" && LD="$ac_prog"
10471       ;;
10472   "")
10473     # If it fails, then pretend we aren't using GCC.
10474     ac_prog=ld
10475     ;;
10476   *)
10477     # If it is relative, then search for the first ld in PATH.
10478     with_gnu_ld=unknown
10479     ;;
10480   esac
10481 elif test "$with_gnu_ld" = yes; then
10482   echo "$as_me:$LINENO: checking for GNU ld" >&5
10483 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10484 else
10485   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10486 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10487 fi
10488 if test "${acl_cv_path_LD+set}" = set; then
10489   echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491   if test -z "$LD"; then
10492   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10493   for ac_dir in $PATH; do
10494     test -z "$ac_dir" && ac_dir=.
10495     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10496       acl_cv_path_LD="$ac_dir/$ac_prog"
10497       # Check to see if the program is GNU ld.  I'd rather use --version,
10498       # but apparently some GNU ld's only accept -v.
10499       # Break only if it was the GNU/non-GNU ld that we prefer.
10500       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10501         test "$with_gnu_ld" != no && break
10502       else
10503         test "$with_gnu_ld" != yes && break
10504       fi
10505     fi
10506   done
10507   IFS="$ac_save_ifs"
10508 else
10509   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10510 fi
10511 fi
10512
10513 LD="$acl_cv_path_LD"
10514 if test -n "$LD"; then
10515   echo "$as_me:$LINENO: result: $LD" >&5
10516 echo "${ECHO_T}$LD" >&6
10517 else
10518   echo "$as_me:$LINENO: result: no" >&5
10519 echo "${ECHO_T}no" >&6
10520 fi
10521 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10522 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10523    { (exit 1); exit 1; }; }
10524 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10525 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10526 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10530 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10531   acl_cv_prog_gnu_ld=yes
10532 else
10533   acl_cv_prog_gnu_ld=no
10534 fi
10535 fi
10536 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10537 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10538 with_gnu_ld=$acl_cv_prog_gnu_ld
10539
10540
10541
10542                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10543 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10544 if test "${acl_cv_rpath+set}" = set; then
10545   echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547
10548     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10549     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10550     . ./conftest.sh
10551     rm -f ./conftest.sh
10552     acl_cv_rpath=done
10553
10554 fi
10555 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10556 echo "${ECHO_T}$acl_cv_rpath" >&6
10557   wl="$acl_cv_wl"
10558   libext="$acl_cv_libext"
10559   shlibext="$acl_cv_shlibext"
10560   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10561   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10562   hardcode_direct="$acl_cv_hardcode_direct"
10563   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10564     # Check whether --enable-rpath or --disable-rpath was given.
10565 if test "${enable_rpath+set}" = set; then
10566   enableval="$enable_rpath"
10567   :
10568 else
10569   enable_rpath=yes
10570 fi;
10571
10572
10573
10574
10575
10576
10577
10578     use_additional=yes
10579
10580   acl_save_prefix="$prefix"
10581   prefix="$acl_final_prefix"
10582   acl_save_exec_prefix="$exec_prefix"
10583   exec_prefix="$acl_final_exec_prefix"
10584
10585     eval additional_includedir=\"$includedir\"
10586     eval additional_libdir=\"$libdir\"
10587
10588   exec_prefix="$acl_save_exec_prefix"
10589   prefix="$acl_save_prefix"
10590
10591
10592 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10593 if test "${with_libiconv_prefix+set}" = set; then
10594   withval="$with_libiconv_prefix"
10595
10596     if test "X$withval" = "Xno"; then
10597       use_additional=no
10598     else
10599       if test "X$withval" = "X"; then
10600
10601   acl_save_prefix="$prefix"
10602   prefix="$acl_final_prefix"
10603   acl_save_exec_prefix="$exec_prefix"
10604   exec_prefix="$acl_final_exec_prefix"
10605
10606           eval additional_includedir=\"$includedir\"
10607           eval additional_libdir=\"$libdir\"
10608
10609   exec_prefix="$acl_save_exec_prefix"
10610   prefix="$acl_save_prefix"
10611
10612       else
10613         additional_includedir="$withval/include"
10614         additional_libdir="$withval/lib"
10615       fi
10616     fi
10617
10618 fi;
10619       LIBICONV=
10620   LTLIBICONV=
10621   INCICONV=
10622   rpathdirs=
10623   ltrpathdirs=
10624   names_already_handled=
10625   names_next_round='iconv '
10626   while test -n "$names_next_round"; do
10627     names_this_round="$names_next_round"
10628     names_next_round=
10629     for name in $names_this_round; do
10630       already_handled=
10631       for n in $names_already_handled; do
10632         if test "$n" = "$name"; then
10633           already_handled=yes
10634           break
10635         fi
10636       done
10637       if test -z "$already_handled"; then
10638         names_already_handled="$names_already_handled $name"
10639                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10640         eval value=\"\$HAVE_LIB$uppername\"
10641         if test -n "$value"; then
10642           if test "$value" = yes; then
10643             eval value=\"\$LIB$uppername\"
10644             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10645             eval value=\"\$LTLIB$uppername\"
10646             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10647           else
10648                                     :
10649           fi
10650         else
10651                               found_dir=
10652           found_la=
10653           found_so=
10654           found_a=
10655           if test $use_additional = yes; then
10656             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10657               found_dir="$additional_libdir"
10658               found_so="$additional_libdir/lib$name.$shlibext"
10659               if test -f "$additional_libdir/lib$name.la"; then
10660                 found_la="$additional_libdir/lib$name.la"
10661               fi
10662             else
10663               if test -f "$additional_libdir/lib$name.$libext"; then
10664                 found_dir="$additional_libdir"
10665                 found_a="$additional_libdir/lib$name.$libext"
10666                 if test -f "$additional_libdir/lib$name.la"; then
10667                   found_la="$additional_libdir/lib$name.la"
10668                 fi
10669               fi
10670             fi
10671           fi
10672           if test "X$found_dir" = "X"; then
10673             for x in $LDFLAGS $LTLIBICONV; do
10674
10675   acl_save_prefix="$prefix"
10676   prefix="$acl_final_prefix"
10677   acl_save_exec_prefix="$exec_prefix"
10678   exec_prefix="$acl_final_exec_prefix"
10679   eval x=\"$x\"
10680   exec_prefix="$acl_save_exec_prefix"
10681   prefix="$acl_save_prefix"
10682
10683               case "$x" in
10684                 -L*)
10685                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10686                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10687                     found_dir="$dir"
10688                     found_so="$dir/lib$name.$shlibext"
10689                     if test -f "$dir/lib$name.la"; then
10690                       found_la="$dir/lib$name.la"
10691                     fi
10692                   else
10693                     if test -f "$dir/lib$name.$libext"; then
10694                       found_dir="$dir"
10695                       found_a="$dir/lib$name.$libext"
10696                       if test -f "$dir/lib$name.la"; then
10697                         found_la="$dir/lib$name.la"
10698                       fi
10699                     fi
10700                   fi
10701                   ;;
10702               esac
10703               if test "X$found_dir" != "X"; then
10704                 break
10705               fi
10706             done
10707           fi
10708           if test "X$found_dir" != "X"; then
10709                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10710             if test "X$found_so" != "X"; then
10711                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10712                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10713               else
10714                                                                                 haveit=
10715                 for x in $ltrpathdirs; do
10716                   if test "X$x" = "X$found_dir"; then
10717                     haveit=yes
10718                     break
10719                   fi
10720                 done
10721                 if test -z "$haveit"; then
10722                   ltrpathdirs="$ltrpathdirs $found_dir"
10723                 fi
10724                                 if test "$hardcode_direct" = yes; then
10725                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10726                 else
10727                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10728                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10729                                                             haveit=
10730                     for x in $rpathdirs; do
10731                       if test "X$x" = "X$found_dir"; then
10732                         haveit=yes
10733                         break
10734                       fi
10735                     done
10736                     if test -z "$haveit"; then
10737                       rpathdirs="$rpathdirs $found_dir"
10738                     fi
10739                   else
10740                                                                                 haveit=
10741                     for x in $LDFLAGS $LIBICONV; do
10742
10743   acl_save_prefix="$prefix"
10744   prefix="$acl_final_prefix"
10745   acl_save_exec_prefix="$exec_prefix"
10746   exec_prefix="$acl_final_exec_prefix"
10747   eval x=\"$x\"
10748   exec_prefix="$acl_save_exec_prefix"
10749   prefix="$acl_save_prefix"
10750
10751                       if test "X$x" = "X-L$found_dir"; then
10752                         haveit=yes
10753                         break
10754                       fi
10755                     done
10756                     if test -z "$haveit"; then
10757                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10758                     fi
10759                     if test "$hardcode_minus_L" != no; then
10760                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10761                     else
10762                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10763                     fi
10764                   fi
10765                 fi
10766               fi
10767             else
10768               if test "X$found_a" != "X"; then
10769                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10770               else
10771                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10772               fi
10773             fi
10774                         additional_includedir=
10775             case "$found_dir" in
10776               */lib | */lib/)
10777                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10778                 additional_includedir="$basedir/include"
10779                 ;;
10780             esac
10781             if test "X$additional_includedir" != "X"; then
10782                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10783                 haveit=
10784                 if test "X$additional_includedir" = "X/usr/local/include"; then
10785                   if test -n "$GCC"; then
10786                     case $host_os in
10787                       linux*) haveit=yes;;
10788                     esac
10789                   fi
10790                 fi
10791                 if test -z "$haveit"; then
10792                   for x in $CPPFLAGS $INCICONV; do
10793
10794   acl_save_prefix="$prefix"
10795   prefix="$acl_final_prefix"
10796   acl_save_exec_prefix="$exec_prefix"
10797   exec_prefix="$acl_final_exec_prefix"
10798   eval x=\"$x\"
10799   exec_prefix="$acl_save_exec_prefix"
10800   prefix="$acl_save_prefix"
10801
10802                     if test "X$x" = "X-I$additional_includedir"; then
10803                       haveit=yes
10804                       break
10805                     fi
10806                   done
10807                   if test -z "$haveit"; then
10808                     if test -d "$additional_includedir"; then
10809                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10810                     fi
10811                   fi
10812                 fi
10813               fi
10814             fi
10815                         if test -n "$found_la"; then
10816                                                         save_libdir="$libdir"
10817               case "$found_la" in
10818                 */* | *\\*) . "$found_la" ;;
10819                 *) . "./$found_la" ;;
10820               esac
10821               libdir="$save_libdir"
10822                             for dep in $dependency_libs; do
10823                 case "$dep" in
10824                   -L*)
10825                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10826                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10827                       haveit=
10828                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10829                         if test -n "$GCC"; then
10830                           case $host_os in
10831                             linux*) haveit=yes;;
10832                           esac
10833                         fi
10834                       fi
10835                       if test -z "$haveit"; then
10836                         haveit=
10837                         for x in $LDFLAGS $LIBICONV; do
10838
10839   acl_save_prefix="$prefix"
10840   prefix="$acl_final_prefix"
10841   acl_save_exec_prefix="$exec_prefix"
10842   exec_prefix="$acl_final_exec_prefix"
10843   eval x=\"$x\"
10844   exec_prefix="$acl_save_exec_prefix"
10845   prefix="$acl_save_prefix"
10846
10847                           if test "X$x" = "X-L$additional_libdir"; then
10848                             haveit=yes
10849                             break
10850                           fi
10851                         done
10852                         if test -z "$haveit"; then
10853                           if test -d "$additional_libdir"; then
10854                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10855                           fi
10856                         fi
10857                         haveit=
10858                         for x in $LDFLAGS $LTLIBICONV; do
10859
10860   acl_save_prefix="$prefix"
10861   prefix="$acl_final_prefix"
10862   acl_save_exec_prefix="$exec_prefix"
10863   exec_prefix="$acl_final_exec_prefix"
10864   eval x=\"$x\"
10865   exec_prefix="$acl_save_exec_prefix"
10866   prefix="$acl_save_prefix"
10867
10868                           if test "X$x" = "X-L$additional_libdir"; then
10869                             haveit=yes
10870                             break
10871                           fi
10872                         done
10873                         if test -z "$haveit"; then
10874                           if test -d "$additional_libdir"; then
10875                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10876                           fi
10877                         fi
10878                       fi
10879                     fi
10880                     ;;
10881                   -R*)
10882                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10883                     if test "$enable_rpath" != no; then
10884                                                                   haveit=
10885                       for x in $rpathdirs; do
10886                         if test "X$x" = "X$dir"; then
10887                           haveit=yes
10888                           break
10889                         fi
10890                       done
10891                       if test -z "$haveit"; then
10892                         rpathdirs="$rpathdirs $dir"
10893                       fi
10894                                                                   haveit=
10895                       for x in $ltrpathdirs; do
10896                         if test "X$x" = "X$dir"; then
10897                           haveit=yes
10898                           break
10899                         fi
10900                       done
10901                       if test -z "$haveit"; then
10902                         ltrpathdirs="$ltrpathdirs $dir"
10903                       fi
10904                     fi
10905                     ;;
10906                   -l*)
10907                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10908                     ;;
10909                   *.la)
10910                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10911                     ;;
10912                   *)
10913                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10914                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10915                     ;;
10916                 esac
10917               done
10918             fi
10919           else
10920                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10921             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10922           fi
10923         fi
10924       fi
10925     done
10926   done
10927   if test "X$rpathdirs" != "X"; then
10928     if test -n "$hardcode_libdir_separator"; then
10929                         alldirs=
10930       for found_dir in $rpathdirs; do
10931         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10932       done
10933             acl_save_libdir="$libdir"
10934       libdir="$alldirs"
10935       eval flag=\"$hardcode_libdir_flag_spec\"
10936       libdir="$acl_save_libdir"
10937       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10938     else
10939             for found_dir in $rpathdirs; do
10940         acl_save_libdir="$libdir"
10941         libdir="$found_dir"
10942         eval flag=\"$hardcode_libdir_flag_spec\"
10943         libdir="$acl_save_libdir"
10944         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10945       done
10946     fi
10947   fi
10948   if test "X$ltrpathdirs" != "X"; then
10949             for found_dir in $ltrpathdirs; do
10950       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10951     done
10952   fi
10953
10954
10955
10956
10957
10958
10959
10960           am_save_CPPFLAGS="$CPPFLAGS"
10961
10962   for element in $INCICONV; do
10963     haveit=
10964     for x in $CPPFLAGS; do
10965
10966   acl_save_prefix="$prefix"
10967   prefix="$acl_final_prefix"
10968   acl_save_exec_prefix="$exec_prefix"
10969   exec_prefix="$acl_final_exec_prefix"
10970   eval x=\"$x\"
10971   exec_prefix="$acl_save_exec_prefix"
10972   prefix="$acl_save_prefix"
10973
10974       if test "X$x" = "X$element"; then
10975         haveit=yes
10976         break
10977       fi
10978     done
10979     if test -z "$haveit"; then
10980       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10981     fi
10982   done
10983
10984
10985   echo "$as_me:$LINENO: checking for iconv" >&5
10986 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10987 if test "${am_cv_func_iconv+set}" = set; then
10988   echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990
10991     am_cv_func_iconv="no, consider installing GNU libiconv"
10992     am_cv_lib_iconv=no
10993     if test x$gcc_no_link = xyes; then
10994   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10996    { (exit 1); exit 1; }; }
10997 fi
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004 #include <stdlib.h>
11005 #include <iconv.h>
11006 int
11007 main ()
11008 {
11009 iconv_t cd = iconv_open("","");
11010        iconv(cd,NULL,NULL,NULL,NULL);
11011        iconv_close(cd);
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018   (eval $ac_link) 2>conftest.er1
11019   ac_status=$?
11020   grep -v '^ *+' conftest.er1 >conftest.err
11021   rm -f conftest.er1
11022   cat conftest.err >&5
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } &&
11025          { ac_try='test -z "$ac_c_werror_flag"
11026                          || test ! -s conftest.err'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; } &&
11032          { ac_try='test -s conftest$ac_exeext'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; }; then
11038   am_cv_func_iconv=yes
11039 else
11040   echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 fi
11044 rm -f conftest.err conftest.$ac_objext \
11045       conftest$ac_exeext conftest.$ac_ext
11046     if test "$am_cv_func_iconv" != yes; then
11047       am_save_LIBS="$LIBS"
11048       LIBS="$LIBS $LIBICONV"
11049       if test x$gcc_no_link = xyes; then
11050   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11052    { (exit 1); exit 1; }; }
11053 fi
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h.  */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h.  */
11060 #include <stdlib.h>
11061 #include <iconv.h>
11062 int
11063 main ()
11064 {
11065 iconv_t cd = iconv_open("","");
11066          iconv(cd,NULL,NULL,NULL,NULL);
11067          iconv_close(cd);
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074   (eval $ac_link) 2>conftest.er1
11075   ac_status=$?
11076   grep -v '^ *+' conftest.er1 >conftest.err
11077   rm -f conftest.er1
11078   cat conftest.err >&5
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } &&
11081          { ac_try='test -z "$ac_c_werror_flag"
11082                          || test ! -s conftest.err'
11083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084   (eval $ac_try) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); }; } &&
11088          { ac_try='test -s conftest$ac_exeext'
11089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090   (eval $ac_try) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   am_cv_lib_iconv=yes
11095         am_cv_func_iconv=yes
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 fi
11101 rm -f conftest.err conftest.$ac_objext \
11102       conftest$ac_exeext conftest.$ac_ext
11103       LIBS="$am_save_LIBS"
11104     fi
11105
11106 fi
11107 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11108 echo "${ECHO_T}$am_cv_func_iconv" >&6
11109   if test "$am_cv_func_iconv" = yes; then
11110
11111 cat >>confdefs.h <<\_ACEOF
11112 #define HAVE_ICONV 1
11113 _ACEOF
11114
11115   fi
11116   if test "$am_cv_lib_iconv" = yes; then
11117     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11118 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11119     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11120 echo "${ECHO_T}$LIBICONV" >&6
11121   else
11122             CPPFLAGS="$am_save_CPPFLAGS"
11123     LIBICONV=
11124     LTLIBICONV=
11125   fi
11126
11127
11128
11129   if test "$am_cv_func_iconv" = yes; then
11130     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11131 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11132     if test "${am_cv_proto_iconv+set}" = set; then
11133   echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135
11136       cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142
11143 #include <stdlib.h>
11144 #include <iconv.h>
11145 extern
11146 #ifdef __cplusplus
11147 "C"
11148 #endif
11149 #if defined(__STDC__) || defined(__cplusplus)
11150 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11151 #else
11152 size_t iconv();
11153 #endif
11154
11155 int
11156 main ()
11157 {
11158
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165   (eval $ac_compile) 2>conftest.er1
11166   ac_status=$?
11167   grep -v '^ *+' conftest.er1 >conftest.err
11168   rm -f conftest.er1
11169   cat conftest.err >&5
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); } &&
11172          { ac_try='test -z "$ac_c_werror_flag"
11173                          || test ! -s conftest.err'
11174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175   (eval $ac_try) 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; } &&
11179          { ac_try='test -s conftest.$ac_objext'
11180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181   (eval $ac_try) 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   am_cv_proto_iconv_arg1=""
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 am_cv_proto_iconv_arg1="const"
11191 fi
11192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11193       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);"
11194 fi
11195
11196     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11197     echo "$as_me:$LINENO: result: ${ac_t:-
11198          }$am_cv_proto_iconv" >&5
11199 echo "${ECHO_T}${ac_t:-
11200          }$am_cv_proto_iconv" >&6
11201
11202 cat >>confdefs.h <<_ACEOF
11203 #define ICONV_CONST $am_cv_proto_iconv_arg1
11204 _ACEOF
11205
11206   fi
11207
11208
11209   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11210 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11211 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11212   echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214   if test x$gcc_no_link = xyes; then
11215   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11217    { (exit 1); exit 1; }; }
11218 fi
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h.  */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h.  */
11225 #include <locale.h>
11226 int
11227 main ()
11228 {
11229 return LC_MESSAGES
11230   ;
11231   return 0;
11232 }
11233 _ACEOF
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236   (eval $ac_link) 2>conftest.er1
11237   ac_status=$?
11238   grep -v '^ *+' conftest.er1 >conftest.err
11239   rm -f conftest.er1
11240   cat conftest.err >&5
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } &&
11243          { ac_try='test -z "$ac_c_werror_flag"
11244                          || test ! -s conftest.err'
11245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246   (eval $ac_try) 2>&5
11247   ac_status=$?
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); }; } &&
11250          { ac_try='test -s conftest$ac_exeext'
11251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252   (eval $ac_try) 2>&5
11253   ac_status=$?
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); }; }; then
11256   am_cv_val_LC_MESSAGES=yes
11257 else
11258   echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11260
11261 am_cv_val_LC_MESSAGES=no
11262 fi
11263 rm -f conftest.err conftest.$ac_objext \
11264       conftest$ac_exeext conftest.$ac_ext
11265 fi
11266 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11267 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11268   if test $am_cv_val_LC_MESSAGES = yes; then
11269
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_LC_MESSAGES 1
11272 _ACEOF
11273
11274   fi
11275
11276    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11277 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11278 if test "${ac_cv_struct_tm+set}" = set; then
11279   echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281   cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287 #include <sys/types.h>
11288 #include <time.h>
11289
11290 int
11291 main ()
11292 {
11293 struct tm *tp; tp->tm_sec;
11294   ;
11295   return 0;
11296 }
11297 _ACEOF
11298 rm -f conftest.$ac_objext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11300   (eval $ac_compile) 2>conftest.er1
11301   ac_status=$?
11302   grep -v '^ *+' conftest.er1 >conftest.err
11303   rm -f conftest.er1
11304   cat conftest.err >&5
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); } &&
11307          { ac_try='test -z "$ac_c_werror_flag"
11308                          || test ! -s conftest.err'
11309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310   (eval $ac_try) 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; } &&
11314          { ac_try='test -s conftest.$ac_objext'
11315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316   (eval $ac_try) 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); }; }; then
11320   ac_cv_struct_tm=time.h
11321 else
11322   echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11324
11325 ac_cv_struct_tm=sys/time.h
11326 fi
11327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11328 fi
11329 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11330 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11331 if test $ac_cv_struct_tm = sys/time.h; then
11332
11333 cat >>confdefs.h <<\_ACEOF
11334 #define TM_IN_SYS_TIME 1
11335 _ACEOF
11336
11337 fi
11338
11339 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11340 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11341 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11342   echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344   cat >conftest.$ac_ext <<_ACEOF
11345 /* confdefs.h.  */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h.  */
11350 #include <sys/types.h>
11351 #include <$ac_cv_struct_tm>
11352
11353
11354 int
11355 main ()
11356 {
11357 static struct tm ac_aggr;
11358 if (ac_aggr.tm_zone)
11359 return 0;
11360   ;
11361   return 0;
11362 }
11363 _ACEOF
11364 rm -f conftest.$ac_objext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366   (eval $ac_compile) 2>conftest.er1
11367   ac_status=$?
11368   grep -v '^ *+' conftest.er1 >conftest.err
11369   rm -f conftest.er1
11370   cat conftest.err >&5
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); } &&
11373          { ac_try='test -z "$ac_c_werror_flag"
11374                          || test ! -s conftest.err'
11375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376   (eval $ac_try) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; } &&
11380          { ac_try='test -s conftest.$ac_objext'
11381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382   (eval $ac_try) 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); }; }; then
11386   ac_cv_member_struct_tm_tm_zone=yes
11387 else
11388   echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 #include <sys/types.h>
11398 #include <$ac_cv_struct_tm>
11399
11400
11401 int
11402 main ()
11403 {
11404 static struct tm ac_aggr;
11405 if (sizeof ac_aggr.tm_zone)
11406 return 0;
11407   ;
11408   return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext
11412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11413   (eval $ac_compile) 2>conftest.er1
11414   ac_status=$?
11415   grep -v '^ *+' conftest.er1 >conftest.err
11416   rm -f conftest.er1
11417   cat conftest.err >&5
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); } &&
11420          { ac_try='test -z "$ac_c_werror_flag"
11421                          || test ! -s conftest.err'
11422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423   (eval $ac_try) 2>&5
11424   ac_status=$?
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); }; } &&
11427          { ac_try='test -s conftest.$ac_objext'
11428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429   (eval $ac_try) 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); }; }; then
11433   ac_cv_member_struct_tm_tm_zone=yes
11434 else
11435   echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11437
11438 ac_cv_member_struct_tm_tm_zone=no
11439 fi
11440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11441 fi
11442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11443 fi
11444 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11445 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11446 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11447
11448 cat >>confdefs.h <<_ACEOF
11449 #define HAVE_STRUCT_TM_TM_ZONE 1
11450 _ACEOF
11451
11452
11453 fi
11454
11455 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11456
11457 cat >>confdefs.h <<\_ACEOF
11458 #define HAVE_TM_ZONE 1
11459 _ACEOF
11460
11461 else
11462   echo "$as_me:$LINENO: checking for tzname" >&5
11463 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11464 if test "${ac_cv_var_tzname+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   if test x$gcc_no_link = xyes; then
11468   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11470    { (exit 1); exit 1; }; }
11471 fi
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478 #include <time.h>
11479 #ifndef tzname /* For SGI.  */
11480 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11481 #endif
11482
11483 int
11484 main ()
11485 {
11486 atoi(*tzname);
11487   ;
11488   return 0;
11489 }
11490 _ACEOF
11491 rm -f conftest.$ac_objext conftest$ac_exeext
11492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11493   (eval $ac_link) 2>conftest.er1
11494   ac_status=$?
11495   grep -v '^ *+' conftest.er1 >conftest.err
11496   rm -f conftest.er1
11497   cat conftest.err >&5
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } &&
11500          { ac_try='test -z "$ac_c_werror_flag"
11501                          || test ! -s conftest.err'
11502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503   (eval $ac_try) 2>&5
11504   ac_status=$?
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); }; } &&
11507          { ac_try='test -s conftest$ac_exeext'
11508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509   (eval $ac_try) 2>&5
11510   ac_status=$?
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); }; }; then
11513   ac_cv_var_tzname=yes
11514 else
11515   echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11517
11518 ac_cv_var_tzname=no
11519 fi
11520 rm -f conftest.err conftest.$ac_objext \
11521       conftest$ac_exeext conftest.$ac_ext
11522 fi
11523 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11524 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11525   if test $ac_cv_var_tzname = yes; then
11526
11527 cat >>confdefs.h <<\_ACEOF
11528 #define HAVE_TZNAME 1
11529 _ACEOF
11530
11531   fi
11532 fi
11533
11534
11535
11536
11537 for ac_func in gethostbyname_r
11538 do
11539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11540 echo "$as_me:$LINENO: checking for $ac_func" >&5
11541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11542 if eval "test \"\${$as_ac_var+set}\" = set"; then
11543   echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545   if test x$gcc_no_link = xyes; then
11546   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11548    { (exit 1); exit 1; }; }
11549 fi
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h.  */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h.  */
11556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11558 #define $ac_func innocuous_$ac_func
11559
11560 /* System header to define __stub macros and hopefully few prototypes,
11561     which can conflict with char $ac_func (); below.
11562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11563     <limits.h> exists even on freestanding compilers.  */
11564
11565 #ifdef __STDC__
11566 # include <limits.h>
11567 #else
11568 # include <assert.h>
11569 #endif
11570
11571 #undef $ac_func
11572
11573 /* Override any gcc2 internal prototype to avoid an error.  */
11574 #ifdef __cplusplus
11575 extern "C"
11576 {
11577 #endif
11578 /* We use char because int might match the return type of a gcc2
11579    builtin and then its argument prototype would still apply.  */
11580 char $ac_func ();
11581 /* The GNU C library defines this for functions which it implements
11582     to always fail with ENOSYS.  Some functions are actually named
11583     something starting with __ and the normal name is an alias.  */
11584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11585 choke me
11586 #else
11587 char (*f) () = $ac_func;
11588 #endif
11589 #ifdef __cplusplus
11590 }
11591 #endif
11592
11593 int
11594 main ()
11595 {
11596 return f != $ac_func;
11597   ;
11598   return 0;
11599 }
11600 _ACEOF
11601 rm -f conftest.$ac_objext conftest$ac_exeext
11602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11603   (eval $ac_link) 2>conftest.er1
11604   ac_status=$?
11605   grep -v '^ *+' conftest.er1 >conftest.err
11606   rm -f conftest.er1
11607   cat conftest.err >&5
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); } &&
11610          { ac_try='test -z "$ac_c_werror_flag"
11611                          || test ! -s conftest.err'
11612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613   (eval $ac_try) 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; } &&
11617          { ac_try='test -s conftest$ac_exeext'
11618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619   (eval $ac_try) 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); }; }; then
11623   eval "$as_ac_var=yes"
11624 else
11625   echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 eval "$as_ac_var=no"
11629 fi
11630 rm -f conftest.err conftest.$ac_objext \
11631       conftest$ac_exeext conftest.$ac_ext
11632 fi
11633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11635 if test `eval echo '${'$as_ac_var'}'` = yes; then
11636   cat >>confdefs.h <<_ACEOF
11637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11638 _ACEOF
11639
11640
11641 cat >>confdefs.h <<\_ACEOF
11642 #define HAVE_GETHOSTBYNAME_R 1
11643 _ACEOF
11644
11645      # There are two different kinds of gethostbyname_r.
11646      # We look for the one that returns `int'.
11647      # Hopefully this check is robust enough.
11648      cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654 #include <netdb.h>
11655
11656 _ACEOF
11657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11658   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11659
11660
11661 cat >>confdefs.h <<\_ACEOF
11662 #define GETHOSTBYNAME_R_RETURNS_INT 1
11663 _ACEOF
11664
11665 fi
11666 rm -f conftest*
11667
11668
11669      case " $GCINCS " in
11670      *" -D_REENTRANT "*) ;;
11671      *)
11672                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11673 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11674 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677    ac_ext=cc
11678 ac_cpp='$CXXCPP $CPPFLAGS'
11679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11682
11683           cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689 #include <netdb.h>
11690 int
11691 main ()
11692 {
11693 gethostbyname_r("", 0, 0);
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700   (eval $ac_compile) 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -z "$ac_cxx_werror_flag"
11708                          || test ! -s conftest.err'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; } &&
11714          { ac_try='test -s conftest.$ac_objext'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   libjava_cv_gethostbyname_r_needs_reentrant=no
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725                 CPPFLAGS_SAVE="$CPPFLAGS"
11726                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11727                 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h.  */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h.  */
11733 #include <netdb.h>
11734 int
11735 main ()
11736 {
11737 gethostbyname_r("", 0, 0);
11738   ;
11739   return 0;
11740 }
11741 _ACEOF
11742 rm -f conftest.$ac_objext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11744   (eval $ac_compile) 2>conftest.er1
11745   ac_status=$?
11746   grep -v '^ *+' conftest.er1 >conftest.err
11747   rm -f conftest.er1
11748   cat conftest.err >&5
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); } &&
11751          { ac_try='test -z "$ac_cxx_werror_flag"
11752                          || test ! -s conftest.err'
11753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754   (eval $ac_try) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); }; } &&
11758          { ac_try='test -s conftest.$ac_objext'
11759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760   (eval $ac_try) 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); }; }; then
11764   libjava_cv_gethostbyname_r_needs_reentrant=yes
11765 else
11766   echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 libjava_cv_gethostbyname_r_needs_reentrant=fail
11770 fi
11771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11772                 CPPFLAGS="$CPPFLAGS_SAVE"
11773
11774 fi
11775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11776           ac_ext=c
11777 ac_cpp='$CPP $CPPFLAGS'
11778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11781
11782
11783 fi
11784 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11785 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11786         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11787
11788 cat >>confdefs.h <<\_ACEOF
11789 #define _REENTRANT 1
11790 _ACEOF
11791
11792         fi
11793      ;;
11794      esac
11795
11796      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11797 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11798 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11799   echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801         cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807
11808 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11809 # define _REENTRANT 1
11810 #endif
11811 #include <netdb.h>
11812 int
11813 main ()
11814 {
11815 struct hostent_data data;
11816   ;
11817   return 0;
11818 }
11819 _ACEOF
11820 rm -f conftest.$ac_objext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822   (eval $ac_compile) 2>conftest.er1
11823   ac_status=$?
11824   grep -v '^ *+' conftest.er1 >conftest.err
11825   rm -f conftest.er1
11826   cat conftest.err >&5
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); } &&
11829          { ac_try='test -z "$ac_c_werror_flag"
11830                          || test ! -s conftest.err'
11831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832   (eval $ac_try) 2>&5
11833   ac_status=$?
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); }; } &&
11836          { ac_try='test -s conftest.$ac_objext'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; }; then
11842   libjava_cv_struct_hostent_data=yes
11843 else
11844   echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847 libjava_cv_struct_hostent_data=no
11848 fi
11849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850 fi
11851 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11852 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11853      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11854
11855 cat >>confdefs.h <<\_ACEOF
11856 #define HAVE_STRUCT_HOSTENT_DATA 1
11857 _ACEOF
11858
11859      fi
11860
11861 fi
11862 done
11863
11864
11865    # FIXME: libjava source code expects to find a prototype for
11866    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11867    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11868    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11869    # linkage check is enough, yet C++ code requires proper prototypes.)
11870    cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 #include <netdb.h>
11877
11878 _ACEOF
11879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11880   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11881
11882
11883 for ac_func in gethostbyaddr_r
11884 do
11885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11886 echo "$as_me:$LINENO: checking for $ac_func" >&5
11887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11888 if eval "test \"\${$as_ac_var+set}\" = set"; then
11889   echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891   if test x$gcc_no_link = xyes; then
11892   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11894    { (exit 1); exit 1; }; }
11895 fi
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h.  */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h.  */
11902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11904 #define $ac_func innocuous_$ac_func
11905
11906 /* System header to define __stub macros and hopefully few prototypes,
11907     which can conflict with char $ac_func (); below.
11908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11909     <limits.h> exists even on freestanding compilers.  */
11910
11911 #ifdef __STDC__
11912 # include <limits.h>
11913 #else
11914 # include <assert.h>
11915 #endif
11916
11917 #undef $ac_func
11918
11919 /* Override any gcc2 internal prototype to avoid an error.  */
11920 #ifdef __cplusplus
11921 extern "C"
11922 {
11923 #endif
11924 /* We use char because int might match the return type of a gcc2
11925    builtin and then its argument prototype would still apply.  */
11926 char $ac_func ();
11927 /* The GNU C library defines this for functions which it implements
11928     to always fail with ENOSYS.  Some functions are actually named
11929     something starting with __ and the normal name is an alias.  */
11930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11931 choke me
11932 #else
11933 char (*f) () = $ac_func;
11934 #endif
11935 #ifdef __cplusplus
11936 }
11937 #endif
11938
11939 int
11940 main ()
11941 {
11942 return f != $ac_func;
11943   ;
11944   return 0;
11945 }
11946 _ACEOF
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11949   (eval $ac_link) 2>conftest.er1
11950   ac_status=$?
11951   grep -v '^ *+' conftest.er1 >conftest.err
11952   rm -f conftest.er1
11953   cat conftest.err >&5
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } &&
11956          { ac_try='test -z "$ac_c_werror_flag"
11957                          || test ! -s conftest.err'
11958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959   (eval $ac_try) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; } &&
11963          { ac_try='test -s conftest$ac_exeext'
11964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965   (eval $ac_try) 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); }; }; then
11969   eval "$as_ac_var=yes"
11970 else
11971   echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974 eval "$as_ac_var=no"
11975 fi
11976 rm -f conftest.err conftest.$ac_objext \
11977       conftest$ac_exeext conftest.$ac_ext
11978 fi
11979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11981 if test `eval echo '${'$as_ac_var'}'` = yes; then
11982   cat >>confdefs.h <<_ACEOF
11983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11984 _ACEOF
11985
11986
11987 cat >>confdefs.h <<\_ACEOF
11988 #define HAVE_GETHOSTBYADDR_R 1
11989 _ACEOF
11990
11991      # There are two different kinds of gethostbyaddr_r.
11992      # We look for the one that returns `int'.
11993      # Hopefully this check is robust enough.
11994      cat >conftest.$ac_ext <<_ACEOF
11995 /* confdefs.h.  */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h.  */
12000 #include <netdb.h>
12001
12002 _ACEOF
12003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12004   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
12005
12006
12007 cat >>confdefs.h <<\_ACEOF
12008 #define GETHOSTBYADDR_R_RETURNS_INT 1
12009 _ACEOF
12010
12011 fi
12012 rm -f conftest*
12013
12014 fi
12015 done
12016
12017 fi
12018 rm -f conftest*
12019
12020
12021
12022 for ac_func in gethostname
12023 do
12024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12025 echo "$as_me:$LINENO: checking for $ac_func" >&5
12026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12027 if eval "test \"\${$as_ac_var+set}\" = set"; then
12028   echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030   if test x$gcc_no_link = xyes; then
12031   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12033    { (exit 1); exit 1; }; }
12034 fi
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12043 #define $ac_func innocuous_$ac_func
12044
12045 /* System header to define __stub macros and hopefully few prototypes,
12046     which can conflict with char $ac_func (); below.
12047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048     <limits.h> exists even on freestanding compilers.  */
12049
12050 #ifdef __STDC__
12051 # include <limits.h>
12052 #else
12053 # include <assert.h>
12054 #endif
12055
12056 #undef $ac_func
12057
12058 /* Override any gcc2 internal prototype to avoid an error.  */
12059 #ifdef __cplusplus
12060 extern "C"
12061 {
12062 #endif
12063 /* We use char because int might match the return type of a gcc2
12064    builtin and then its argument prototype would still apply.  */
12065 char $ac_func ();
12066 /* The GNU C library defines this for functions which it implements
12067     to always fail with ENOSYS.  Some functions are actually named
12068     something starting with __ and the normal name is an alias.  */
12069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12070 choke me
12071 #else
12072 char (*f) () = $ac_func;
12073 #endif
12074 #ifdef __cplusplus
12075 }
12076 #endif
12077
12078 int
12079 main ()
12080 {
12081 return f != $ac_func;
12082   ;
12083   return 0;
12084 }
12085 _ACEOF
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088   (eval $ac_link) 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -z "$ac_c_werror_flag"
12096                          || test ! -s conftest.err'
12097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098   (eval $ac_try) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; } &&
12102          { ac_try='test -s conftest$ac_exeext'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; }; then
12108   eval "$as_ac_var=yes"
12109 else
12110   echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 eval "$as_ac_var=no"
12114 fi
12115 rm -f conftest.err conftest.$ac_objext \
12116       conftest$ac_exeext conftest.$ac_ext
12117 fi
12118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12120 if test `eval echo '${'$as_ac_var'}'` = yes; then
12121   cat >>confdefs.h <<_ACEOF
12122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12123 _ACEOF
12124
12125
12126 cat >>confdefs.h <<\_ACEOF
12127 #define HAVE_GETHOSTNAME 1
12128 _ACEOF
12129
12130      cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136 #include <unistd.h>
12137
12138 _ACEOF
12139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12140   $EGREP "gethostname" >/dev/null 2>&1; then
12141
12142
12143 cat >>confdefs.h <<\_ACEOF
12144 #define HAVE_GETHOSTNAME_DECL 1
12145 _ACEOF
12146
12147 fi
12148 rm -f conftest*
12149
12150 fi
12151 done
12152
12153
12154
12155 for ac_func in usleep
12156 do
12157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12158 echo "$as_me:$LINENO: checking for $ac_func" >&5
12159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12160 if eval "test \"\${$as_ac_var+set}\" = set"; then
12161   echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163   if test x$gcc_no_link = xyes; then
12164   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12165 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12166    { (exit 1); exit 1; }; }
12167 fi
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h.  */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h.  */
12174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12176 #define $ac_func innocuous_$ac_func
12177
12178 /* System header to define __stub macros and hopefully few prototypes,
12179     which can conflict with char $ac_func (); below.
12180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181     <limits.h> exists even on freestanding compilers.  */
12182
12183 #ifdef __STDC__
12184 # include <limits.h>
12185 #else
12186 # include <assert.h>
12187 #endif
12188
12189 #undef $ac_func
12190
12191 /* Override any gcc2 internal prototype to avoid an error.  */
12192 #ifdef __cplusplus
12193 extern "C"
12194 {
12195 #endif
12196 /* We use char because int might match the return type of a gcc2
12197    builtin and then its argument prototype would still apply.  */
12198 char $ac_func ();
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12203 choke me
12204 #else
12205 char (*f) () = $ac_func;
12206 #endif
12207 #ifdef __cplusplus
12208 }
12209 #endif
12210
12211 int
12212 main ()
12213 {
12214 return f != $ac_func;
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221   (eval $ac_link) 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -z "$ac_c_werror_flag"
12229                          || test ! -s conftest.err'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; } &&
12235          { ac_try='test -s conftest$ac_exeext'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241   eval "$as_ac_var=yes"
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 eval "$as_ac_var=no"
12247 fi
12248 rm -f conftest.err conftest.$ac_objext \
12249       conftest$ac_exeext conftest.$ac_ext
12250 fi
12251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12253 if test `eval echo '${'$as_ac_var'}'` = yes; then
12254   cat >>confdefs.h <<_ACEOF
12255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12256 _ACEOF
12257
12258      cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h.  */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h.  */
12264 #include <unistd.h>
12265
12266 _ACEOF
12267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12268   $EGREP "usleep" >/dev/null 2>&1; then
12269
12270
12271 cat >>confdefs.h <<\_ACEOF
12272 #define HAVE_USLEEP_DECL 1
12273 _ACEOF
12274
12275 fi
12276 rm -f conftest*
12277
12278 fi
12279 done
12280
12281
12282    # Look for these functions in the thread library, but only bother
12283    # if using POSIX threads.
12284    if test "$THREADS" = posix; then
12285       save_LIBS="$LIBS"
12286       LIBS="$LIBS $THREADLIBS"
12287       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12288       # E.g., Solaris.
12289
12290
12291 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12292 do
12293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12294 echo "$as_me:$LINENO: checking for $ac_func" >&5
12295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12296 if eval "test \"\${$as_ac_var+set}\" = set"; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   if test x$gcc_no_link = xyes; then
12300   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12301 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12302    { (exit 1); exit 1; }; }
12303 fi
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h.  */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h.  */
12310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12312 #define $ac_func innocuous_$ac_func
12313
12314 /* System header to define __stub macros and hopefully few prototypes,
12315     which can conflict with char $ac_func (); below.
12316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317     <limits.h> exists even on freestanding compilers.  */
12318
12319 #ifdef __STDC__
12320 # include <limits.h>
12321 #else
12322 # include <assert.h>
12323 #endif
12324
12325 #undef $ac_func
12326
12327 /* Override any gcc2 internal prototype to avoid an error.  */
12328 #ifdef __cplusplus
12329 extern "C"
12330 {
12331 #endif
12332 /* We use char because int might match the return type of a gcc2
12333    builtin and then its argument prototype would still apply.  */
12334 char $ac_func ();
12335 /* The GNU C library defines this for functions which it implements
12336     to always fail with ENOSYS.  Some functions are actually named
12337     something starting with __ and the normal name is an alias.  */
12338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12339 choke me
12340 #else
12341 char (*f) () = $ac_func;
12342 #endif
12343 #ifdef __cplusplus
12344 }
12345 #endif
12346
12347 int
12348 main ()
12349 {
12350 return f != $ac_func;
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357   (eval $ac_link) 2>conftest.er1
12358   ac_status=$?
12359   grep -v '^ *+' conftest.er1 >conftest.err
12360   rm -f conftest.er1
12361   cat conftest.err >&5
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } &&
12364          { ac_try='test -z "$ac_c_werror_flag"
12365                          || test ! -s conftest.err'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; } &&
12371          { ac_try='test -s conftest$ac_exeext'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   eval "$as_ac_var=yes"
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 eval "$as_ac_var=no"
12383 fi
12384 rm -f conftest.err conftest.$ac_objext \
12385       conftest$ac_exeext conftest.$ac_ext
12386 fi
12387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12389 if test `eval echo '${'$as_ac_var'}'` = yes; then
12390   cat >>confdefs.h <<_ACEOF
12391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12392 _ACEOF
12393
12394 fi
12395 done
12396
12397
12398       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12399       # Solaris 7 the name librt is preferred.
12400
12401 for ac_func in sched_yield
12402 do
12403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12404 echo "$as_me:$LINENO: checking for $ac_func" >&5
12405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12406 if eval "test \"\${$as_ac_var+set}\" = set"; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   if test x$gcc_no_link = xyes; then
12410   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12412    { (exit 1); exit 1; }; }
12413 fi
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h.  */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h.  */
12420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12422 #define $ac_func innocuous_$ac_func
12423
12424 /* System header to define __stub macros and hopefully few prototypes,
12425     which can conflict with char $ac_func (); below.
12426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427     <limits.h> exists even on freestanding compilers.  */
12428
12429 #ifdef __STDC__
12430 # include <limits.h>
12431 #else
12432 # include <assert.h>
12433 #endif
12434
12435 #undef $ac_func
12436
12437 /* Override any gcc2 internal prototype to avoid an error.  */
12438 #ifdef __cplusplus
12439 extern "C"
12440 {
12441 #endif
12442 /* We use char because int might match the return type of a gcc2
12443    builtin and then its argument prototype would still apply.  */
12444 char $ac_func ();
12445 /* The GNU C library defines this for functions which it implements
12446     to always fail with ENOSYS.  Some functions are actually named
12447     something starting with __ and the normal name is an alias.  */
12448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12449 choke me
12450 #else
12451 char (*f) () = $ac_func;
12452 #endif
12453 #ifdef __cplusplus
12454 }
12455 #endif
12456
12457 int
12458 main ()
12459 {
12460 return f != $ac_func;
12461   ;
12462   return 0;
12463 }
12464 _ACEOF
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467   (eval $ac_link) 2>conftest.er1
12468   ac_status=$?
12469   grep -v '^ *+' conftest.er1 >conftest.err
12470   rm -f conftest.er1
12471   cat conftest.err >&5
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } &&
12474          { ac_try='test -z "$ac_c_werror_flag"
12475                          || test ! -s conftest.err'
12476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477   (eval $ac_try) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; } &&
12481          { ac_try='test -s conftest$ac_exeext'
12482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483   (eval $ac_try) 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; }; then
12487   eval "$as_ac_var=yes"
12488 else
12489   echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12491
12492 eval "$as_ac_var=no"
12493 fi
12494 rm -f conftest.err conftest.$ac_objext \
12495       conftest$ac_exeext conftest.$ac_ext
12496 fi
12497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12499 if test `eval echo '${'$as_ac_var'}'` = yes; then
12500   cat >>confdefs.h <<_ACEOF
12501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12502 _ACEOF
12503
12504 else
12505
12506         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12507 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12508 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511   ac_check_lib_save_LIBS=$LIBS
12512 LIBS="-lrt  $LIBS"
12513 if test x$gcc_no_link = xyes; then
12514   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12515 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12516    { (exit 1); exit 1; }; }
12517 fi
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h.  */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h.  */
12524
12525 /* Override any gcc2 internal prototype to avoid an error.  */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 /* We use char because int might match the return type of a gcc2
12530    builtin and then its argument prototype would still apply.  */
12531 char sched_yield ();
12532 int
12533 main ()
12534 {
12535 sched_yield ();
12536   ;
12537   return 0;
12538 }
12539 _ACEOF
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542   (eval $ac_link) 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } &&
12549          { ac_try='test -z "$ac_c_werror_flag"
12550                          || test ! -s conftest.err'
12551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552   (eval $ac_try) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; } &&
12556          { ac_try='test -s conftest$ac_exeext'
12557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558   (eval $ac_try) 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   ac_cv_lib_rt_sched_yield=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_cv_lib_rt_sched_yield=no
12568 fi
12569 rm -f conftest.err conftest.$ac_objext \
12570       conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12572 fi
12573 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12574 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12575 if test $ac_cv_lib_rt_sched_yield = yes; then
12576
12577           cat >>confdefs.h <<\_ACEOF
12578 #define HAVE_SCHED_YIELD 1
12579 _ACEOF
12580
12581           THREADLIBS="$THREADLIBS -lrt"
12582           THREADSPEC="$THREADSPEC -lrt"
12583 else
12584
12585           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12586 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12587 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12588   echo $ECHO_N "(cached) $ECHO_C" >&6
12589 else
12590   ac_check_lib_save_LIBS=$LIBS
12591 LIBS="-lposix4  $LIBS"
12592 if test x$gcc_no_link = xyes; then
12593   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12595    { (exit 1); exit 1; }; }
12596 fi
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h.  */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h.  */
12603
12604 /* Override any gcc2 internal prototype to avoid an error.  */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 /* We use char because int might match the return type of a gcc2
12609    builtin and then its argument prototype would still apply.  */
12610 char sched_yield ();
12611 int
12612 main ()
12613 {
12614 sched_yield ();
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12621   (eval $ac_link) 2>conftest.er1
12622   ac_status=$?
12623   grep -v '^ *+' conftest.er1 >conftest.err
12624   rm -f conftest.er1
12625   cat conftest.err >&5
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); } &&
12628          { ac_try='test -z "$ac_c_werror_flag"
12629                          || test ! -s conftest.err'
12630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631   (eval $ac_try) 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); }; } &&
12635          { ac_try='test -s conftest$ac_exeext'
12636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637   (eval $ac_try) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; }; then
12641   ac_cv_lib_posix4_sched_yield=yes
12642 else
12643   echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12645
12646 ac_cv_lib_posix4_sched_yield=no
12647 fi
12648 rm -f conftest.err conftest.$ac_objext \
12649       conftest$ac_exeext conftest.$ac_ext
12650 LIBS=$ac_check_lib_save_LIBS
12651 fi
12652 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12653 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12654 if test $ac_cv_lib_posix4_sched_yield = yes; then
12655
12656             cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_SCHED_YIELD 1
12658 _ACEOF
12659
12660             THREADLIBS="$THREADLIBS -lposix4"
12661             THREADSPEC="$THREADSPEC -lposix4"
12662 fi
12663
12664 fi
12665
12666 fi
12667 done
12668
12669
12670       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12671 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12672 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12673   echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675   ac_check_lib_save_LIBS=$LIBS
12676 LIBS="-lrt  $LIBS"
12677 if test x$gcc_no_link = xyes; then
12678   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12680    { (exit 1); exit 1; }; }
12681 fi
12682 cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12688
12689 /* Override any gcc2 internal prototype to avoid an error.  */
12690 #ifdef __cplusplus
12691 extern "C"
12692 #endif
12693 /* We use char because int might match the return type of a gcc2
12694    builtin and then its argument prototype would still apply.  */
12695 char clock_gettime ();
12696 int
12697 main ()
12698 {
12699 clock_gettime ();
12700   ;
12701   return 0;
12702 }
12703 _ACEOF
12704 rm -f conftest.$ac_objext conftest$ac_exeext
12705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12706   (eval $ac_link) 2>conftest.er1
12707   ac_status=$?
12708   grep -v '^ *+' conftest.er1 >conftest.err
12709   rm -f conftest.er1
12710   cat conftest.err >&5
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } &&
12713          { ac_try='test -z "$ac_c_werror_flag"
12714                          || test ! -s conftest.err'
12715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716   (eval $ac_try) 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }; } &&
12720          { ac_try='test -s conftest$ac_exeext'
12721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722   (eval $ac_try) 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; }; then
12726   ac_cv_lib_rt_clock_gettime=yes
12727 else
12728   echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731 ac_cv_lib_rt_clock_gettime=no
12732 fi
12733 rm -f conftest.err conftest.$ac_objext \
12734       conftest$ac_exeext conftest.$ac_ext
12735 LIBS=$ac_check_lib_save_LIBS
12736 fi
12737 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12738 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12739 if test $ac_cv_lib_rt_clock_gettime = yes; then
12740
12741
12742 cat >>confdefs.h <<\_ACEOF
12743 #define HAVE_CLOCK_GETTIME 1
12744 _ACEOF
12745
12746          case "$THREADSPEC" in
12747            *-lrt*) ;;
12748            *)
12749              THREADSPEC="$THREADSPEC -lrt"
12750              THREADLIBS="$THREADLIBS -lrt"
12751              ;;
12752          esac
12753 fi
12754
12755
12756       LIBS="$save_LIBS"
12757
12758       # We can save a little space at runtime if the mutex has m_count
12759       # or __m_count.  This is a nice hack for Linux.
12760       cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h.  */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h.  */
12766 #include <pthread.h>
12767 int
12768 main ()
12769 {
12770
12771           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12772
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 rm -f conftest.$ac_objext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779   (eval $ac_compile) 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } &&
12786          { ac_try='test -z "$ac_c_werror_flag"
12787                          || test ! -s conftest.err'
12788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789   (eval $ac_try) 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); }; } &&
12793          { ac_try='test -s conftest.$ac_objext'
12794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795   (eval $ac_try) 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; }; then
12799
12800 cat >>confdefs.h <<\_ACEOF
12801 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12802 _ACEOF
12803
12804 else
12805   echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808
12809         cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h.  */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h.  */
12815 #include <pthread.h>
12816 int
12817 main ()
12818 {
12819
12820             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12821
12822   ;
12823   return 0;
12824 }
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828   (eval $ac_compile) 2>conftest.er1
12829   ac_status=$?
12830   grep -v '^ *+' conftest.er1 >conftest.err
12831   rm -f conftest.er1
12832   cat conftest.err >&5
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); } &&
12835          { ac_try='test -z "$ac_c_werror_flag"
12836                          || test ! -s conftest.err'
12837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838   (eval $ac_try) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); }; } &&
12842          { ac_try='test -s conftest.$ac_objext'
12843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; }; then
12848
12849 cat >>confdefs.h <<\_ACEOF
12850 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12851 _ACEOF
12852
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 fi
12858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12859 fi
12860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12861    fi
12862
12863    # We require a way to get the time.
12864    time_found=no
12865
12866
12867
12868 for ac_func in gettimeofday time ftime
12869 do
12870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12871 echo "$as_me:$LINENO: checking for $ac_func" >&5
12872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12873 if eval "test \"\${$as_ac_var+set}\" = set"; then
12874   echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876   if test x$gcc_no_link = xyes; then
12877   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12879    { (exit 1); exit 1; }; }
12880 fi
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h.  */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h.  */
12887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12889 #define $ac_func innocuous_$ac_func
12890
12891 /* System header to define __stub macros and hopefully few prototypes,
12892     which can conflict with char $ac_func (); below.
12893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12894     <limits.h> exists even on freestanding compilers.  */
12895
12896 #ifdef __STDC__
12897 # include <limits.h>
12898 #else
12899 # include <assert.h>
12900 #endif
12901
12902 #undef $ac_func
12903
12904 /* Override any gcc2 internal prototype to avoid an error.  */
12905 #ifdef __cplusplus
12906 extern "C"
12907 {
12908 #endif
12909 /* We use char because int might match the return type of a gcc2
12910    builtin and then its argument prototype would still apply.  */
12911 char $ac_func ();
12912 /* The GNU C library defines this for functions which it implements
12913     to always fail with ENOSYS.  Some functions are actually named
12914     something starting with __ and the normal name is an alias.  */
12915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12916 choke me
12917 #else
12918 char (*f) () = $ac_func;
12919 #endif
12920 #ifdef __cplusplus
12921 }
12922 #endif
12923
12924 int
12925 main ()
12926 {
12927 return f != $ac_func;
12928   ;
12929   return 0;
12930 }
12931 _ACEOF
12932 rm -f conftest.$ac_objext conftest$ac_exeext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12934   (eval $ac_link) 2>conftest.er1
12935   ac_status=$?
12936   grep -v '^ *+' conftest.er1 >conftest.err
12937   rm -f conftest.er1
12938   cat conftest.err >&5
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } &&
12941          { ac_try='test -z "$ac_c_werror_flag"
12942                          || test ! -s conftest.err'
12943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944   (eval $ac_try) 2>&5
12945   ac_status=$?
12946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); }; } &&
12948          { ac_try='test -s conftest$ac_exeext'
12949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950   (eval $ac_try) 2>&5
12951   ac_status=$?
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); }; }; then
12954   eval "$as_ac_var=yes"
12955 else
12956   echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959 eval "$as_ac_var=no"
12960 fi
12961 rm -f conftest.err conftest.$ac_objext \
12962       conftest$ac_exeext conftest.$ac_ext
12963 fi
12964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12966 if test `eval echo '${'$as_ac_var'}'` = yes; then
12967   cat >>confdefs.h <<_ACEOF
12968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12969 _ACEOF
12970  time_found=yes
12971 fi
12972 done
12973
12974    if test "$time_found" = no; then
12975       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12976 echo "$as_me: error: no function found to get the time" >&2;}
12977    { (exit 1); exit 1; }; }
12978    fi
12979
12980
12981 for ac_func in memmove
12982 do
12983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12984 echo "$as_me:$LINENO: checking for $ac_func" >&5
12985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12986 if eval "test \"\${$as_ac_var+set}\" = set"; then
12987   echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989   if test x$gcc_no_link = xyes; then
12990   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12992    { (exit 1); exit 1; }; }
12993 fi
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13002 #define $ac_func innocuous_$ac_func
13003
13004 /* System header to define __stub macros and hopefully few prototypes,
13005     which can conflict with char $ac_func (); below.
13006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13007     <limits.h> exists even on freestanding compilers.  */
13008
13009 #ifdef __STDC__
13010 # include <limits.h>
13011 #else
13012 # include <assert.h>
13013 #endif
13014
13015 #undef $ac_func
13016
13017 /* Override any gcc2 internal prototype to avoid an error.  */
13018 #ifdef __cplusplus
13019 extern "C"
13020 {
13021 #endif
13022 /* We use char because int might match the return type of a gcc2
13023    builtin and then its argument prototype would still apply.  */
13024 char $ac_func ();
13025 /* The GNU C library defines this for functions which it implements
13026     to always fail with ENOSYS.  Some functions are actually named
13027     something starting with __ and the normal name is an alias.  */
13028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13029 choke me
13030 #else
13031 char (*f) () = $ac_func;
13032 #endif
13033 #ifdef __cplusplus
13034 }
13035 #endif
13036
13037 int
13038 main ()
13039 {
13040 return f != $ac_func;
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 rm -f conftest.$ac_objext conftest$ac_exeext
13046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13047   (eval $ac_link) 2>conftest.er1
13048   ac_status=$?
13049   grep -v '^ *+' conftest.er1 >conftest.err
13050   rm -f conftest.er1
13051   cat conftest.err >&5
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); } &&
13054          { ac_try='test -z "$ac_c_werror_flag"
13055                          || test ! -s conftest.err'
13056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057   (eval $ac_try) 2>&5
13058   ac_status=$?
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); }; } &&
13061          { ac_try='test -s conftest$ac_exeext'
13062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063   (eval $ac_try) 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); }; }; then
13067   eval "$as_ac_var=yes"
13068 else
13069   echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13071
13072 eval "$as_ac_var=no"
13073 fi
13074 rm -f conftest.err conftest.$ac_objext \
13075       conftest$ac_exeext conftest.$ac_ext
13076 fi
13077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13079 if test `eval echo '${'$as_ac_var'}'` = yes; then
13080   cat >>confdefs.h <<_ACEOF
13081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13082 _ACEOF
13083
13084 fi
13085 done
13086
13087
13088    # We require memcpy.
13089    memcpy_found=no
13090
13091 for ac_func in memcpy
13092 do
13093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 echo "$as_me:$LINENO: checking for $ac_func" >&5
13095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13096 if eval "test \"\${$as_ac_var+set}\" = set"; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   if test x$gcc_no_link = xyes; then
13100   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13102    { (exit 1); exit 1; }; }
13103 fi
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h.  */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h.  */
13110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13112 #define $ac_func innocuous_$ac_func
13113
13114 /* System header to define __stub macros and hopefully few prototypes,
13115     which can conflict with char $ac_func (); below.
13116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13117     <limits.h> exists even on freestanding compilers.  */
13118
13119 #ifdef __STDC__
13120 # include <limits.h>
13121 #else
13122 # include <assert.h>
13123 #endif
13124
13125 #undef $ac_func
13126
13127 /* Override any gcc2 internal prototype to avoid an error.  */
13128 #ifdef __cplusplus
13129 extern "C"
13130 {
13131 #endif
13132 /* We use char because int might match the return type of a gcc2
13133    builtin and then its argument prototype would still apply.  */
13134 char $ac_func ();
13135 /* The GNU C library defines this for functions which it implements
13136     to always fail with ENOSYS.  Some functions are actually named
13137     something starting with __ and the normal name is an alias.  */
13138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13139 choke me
13140 #else
13141 char (*f) () = $ac_func;
13142 #endif
13143 #ifdef __cplusplus
13144 }
13145 #endif
13146
13147 int
13148 main ()
13149 {
13150 return f != $ac_func;
13151   ;
13152   return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13157   (eval $ac_link) 2>conftest.er1
13158   ac_status=$?
13159   grep -v '^ *+' conftest.er1 >conftest.err
13160   rm -f conftest.er1
13161   cat conftest.err >&5
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -z "$ac_c_werror_flag"
13165                          || test ! -s conftest.err'
13166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167   (eval $ac_try) 2>&5
13168   ac_status=$?
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); }; } &&
13171          { ac_try='test -s conftest$ac_exeext'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; }; then
13177   eval "$as_ac_var=yes"
13178 else
13179   echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 eval "$as_ac_var=no"
13183 fi
13184 rm -f conftest.err conftest.$ac_objext \
13185       conftest$ac_exeext conftest.$ac_ext
13186 fi
13187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13189 if test `eval echo '${'$as_ac_var'}'` = yes; then
13190   cat >>confdefs.h <<_ACEOF
13191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13192 _ACEOF
13193  memcpy_found=yes
13194 fi
13195 done
13196
13197    if test "$memcpy_found" = no; then
13198       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13199 echo "$as_me: error: memcpy is required" >&2;}
13200    { (exit 1); exit 1; }; }
13201    fi
13202    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13203    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13204 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13206   echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208   ac_check_lib_save_LIBS=$LIBS
13209 LIBS="-ldl  $LIBS"
13210 if test x$gcc_no_link = xyes; then
13211   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13212 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13213    { (exit 1); exit 1; }; }
13214 fi
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h.  */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h.  */
13221
13222 /* Override any gcc2 internal prototype to avoid an error.  */
13223 #ifdef __cplusplus
13224 extern "C"
13225 #endif
13226 /* We use char because int might match the return type of a gcc2
13227    builtin and then its argument prototype would still apply.  */
13228 char dlopen ();
13229 int
13230 main ()
13231 {
13232 dlopen ();
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239   (eval $ac_link) 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } &&
13246          { ac_try='test -z "$ac_c_werror_flag"
13247                          || test ! -s conftest.err'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; } &&
13253          { ac_try='test -s conftest$ac_exeext'
13254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255   (eval $ac_try) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; }; then
13259   ac_cv_lib_dl_dlopen=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_cv_lib_dl_dlopen=no
13265 fi
13266 rm -f conftest.err conftest.$ac_objext \
13267       conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13269 fi
13270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13271 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13272 if test $ac_cv_lib_dl_dlopen = yes; then
13273
13274
13275 cat >>confdefs.h <<\_ACEOF
13276 #define HAVE_DLOPEN 1
13277 _ACEOF
13278
13279 else
13280
13281        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13282 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13283 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13284   echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286   ac_check_lib_save_LIBS=$LIBS
13287 LIBS="-ldld  $LIBS"
13288 if test x$gcc_no_link = xyes; then
13289   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13291    { (exit 1); exit 1; }; }
13292 fi
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299
13300 /* Override any gcc2 internal prototype to avoid an error.  */
13301 #ifdef __cplusplus
13302 extern "C"
13303 #endif
13304 /* We use char because int might match the return type of a gcc2
13305    builtin and then its argument prototype would still apply.  */
13306 char dlopen ();
13307 int
13308 main ()
13309 {
13310 dlopen ();
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317   (eval $ac_link) 2>conftest.er1
13318   ac_status=$?
13319   grep -v '^ *+' conftest.er1 >conftest.err
13320   rm -f conftest.er1
13321   cat conftest.err >&5
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -z "$ac_c_werror_flag"
13325                          || test ! -s conftest.err'
13326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327   (eval $ac_try) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; } &&
13331          { ac_try='test -s conftest$ac_exeext'
13332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333   (eval $ac_try) 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; }; then
13337   ac_cv_lib_dld_dlopen=yes
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342 ac_cv_lib_dld_dlopen=no
13343 fi
13344 rm -f conftest.err conftest.$ac_objext \
13345       conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13347 fi
13348 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13349 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13350 if test $ac_cv_lib_dld_dlopen = yes; then
13351
13352
13353 cat >>confdefs.h <<\_ACEOF
13354 #define HAVE_DLOPEN 1
13355 _ACEOF
13356
13357 fi
13358
13359 fi
13360
13361
13362    # Some library-finding code we stole from Tcl.
13363    #--------------------------------------------------------------------
13364    #    Check for the existence of the -lsocket and -lnsl libraries.
13365    #    The order here is important, so that they end up in the right
13366    #    order in the command line generated by make.  Here are some
13367    #    special considerations:
13368    #    1. Use "connect" and "accept" to check for -lsocket, and
13369    #       "gethostbyname" to check for -lnsl.
13370    #    2. Use each function name only once:  can't redo a check because
13371    #       autoconf caches the results of the last check and won't redo it.
13372    #    3. Use -lnsl and -lsocket only if they supply procedures that
13373    #       aren't already present in the normal libraries.  This is because
13374    #       IRIX 5.2 has libraries, but they aren't needed and they're
13375    #       bogus:  they goof up name resolution if used.
13376    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13377    #       To get around this problem, check for both libraries together
13378    #       if -lsocket doesn't work by itself.
13379    #--------------------------------------------------------------------
13380
13381    echo "$as_me:$LINENO: checking for socket libraries" >&5
13382 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13383 if test "${gcj_cv_lib_sockets+set}" = set; then
13384   echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386   gcj_cv_lib_sockets=
13387      gcj_checkBoth=0
13388      unset ac_cv_func_connect
13389      echo "$as_me:$LINENO: checking for connect" >&5
13390 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13391 if test "${ac_cv_func_connect+set}" = set; then
13392   echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394   if test x$gcc_no_link = xyes; then
13395   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13397    { (exit 1); exit 1; }; }
13398 fi
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13407 #define connect innocuous_connect
13408
13409 /* System header to define __stub macros and hopefully few prototypes,
13410     which can conflict with char connect (); below.
13411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13412     <limits.h> exists even on freestanding compilers.  */
13413
13414 #ifdef __STDC__
13415 # include <limits.h>
13416 #else
13417 # include <assert.h>
13418 #endif
13419
13420 #undef connect
13421
13422 /* Override any gcc2 internal prototype to avoid an error.  */
13423 #ifdef __cplusplus
13424 extern "C"
13425 {
13426 #endif
13427 /* We use char because int might match the return type of a gcc2
13428    builtin and then its argument prototype would still apply.  */
13429 char connect ();
13430 /* The GNU C library defines this for functions which it implements
13431     to always fail with ENOSYS.  Some functions are actually named
13432     something starting with __ and the normal name is an alias.  */
13433 #if defined (__stub_connect) || defined (__stub___connect)
13434 choke me
13435 #else
13436 char (*f) () = connect;
13437 #endif
13438 #ifdef __cplusplus
13439 }
13440 #endif
13441
13442 int
13443 main ()
13444 {
13445 return f != connect;
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 rm -f conftest.$ac_objext conftest$ac_exeext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13452   (eval $ac_link) 2>conftest.er1
13453   ac_status=$?
13454   grep -v '^ *+' conftest.er1 >conftest.err
13455   rm -f conftest.er1
13456   cat conftest.err >&5
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); } &&
13459          { ac_try='test -z "$ac_c_werror_flag"
13460                          || test ! -s conftest.err'
13461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462   (eval $ac_try) 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); }; } &&
13466          { ac_try='test -s conftest$ac_exeext'
13467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468   (eval $ac_try) 2>&5
13469   ac_status=$?
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); }; }; then
13472   ac_cv_func_connect=yes
13473 else
13474   echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 ac_cv_func_connect=no
13478 fi
13479 rm -f conftest.err conftest.$ac_objext \
13480       conftest$ac_exeext conftest.$ac_ext
13481 fi
13482 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13483 echo "${ECHO_T}$ac_cv_func_connect" >&6
13484 if test $ac_cv_func_connect = yes; then
13485   gcj_checkSocket=0
13486 else
13487   gcj_checkSocket=1
13488 fi
13489
13490      if test "$gcj_checkSocket" = 1; then
13491          unset ac_cv_func_connect
13492          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13493 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13494 if test "${ac_cv_lib_socket_main+set}" = set; then
13495   echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497   ac_check_lib_save_LIBS=$LIBS
13498 LIBS="-lsocket  $LIBS"
13499 if test x$gcc_no_link = xyes; then
13500   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13501 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13502    { (exit 1); exit 1; }; }
13503 fi
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h.  */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h.  */
13510
13511
13512 int
13513 main ()
13514 {
13515 main ();
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522   (eval $ac_link) 2>conftest.er1
13523   ac_status=$?
13524   grep -v '^ *+' conftest.er1 >conftest.err
13525   rm -f conftest.er1
13526   cat conftest.err >&5
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -z "$ac_c_werror_flag"
13530                          || test ! -s conftest.err'
13531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; } &&
13536          { ac_try='test -s conftest$ac_exeext'
13537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538   (eval $ac_try) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); }; }; then
13542   ac_cv_lib_socket_main=yes
13543 else
13544   echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13546
13547 ac_cv_lib_socket_main=no
13548 fi
13549 rm -f conftest.err conftest.$ac_objext \
13550       conftest$ac_exeext conftest.$ac_ext
13551 LIBS=$ac_check_lib_save_LIBS
13552 fi
13553 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13554 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13555 if test $ac_cv_lib_socket_main = yes; then
13556   gcj_cv_lib_sockets="-lsocket"
13557 else
13558   gcj_checkBoth=1
13559 fi
13560
13561      fi
13562      if test "$gcj_checkBoth" = 1; then
13563          gcj_oldLibs=$LIBS
13564          LIBS="$LIBS -lsocket -lnsl"
13565          unset ac_cv_func_accept
13566          echo "$as_me:$LINENO: checking for accept" >&5
13567 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13568 if test "${ac_cv_func_accept+set}" = set; then
13569   echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571   if test x$gcc_no_link = xyes; then
13572   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13573 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13574    { (exit 1); exit 1; }; }
13575 fi
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13584 #define accept innocuous_accept
13585
13586 /* System header to define __stub macros and hopefully few prototypes,
13587     which can conflict with char accept (); below.
13588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13589     <limits.h> exists even on freestanding compilers.  */
13590
13591 #ifdef __STDC__
13592 # include <limits.h>
13593 #else
13594 # include <assert.h>
13595 #endif
13596
13597 #undef accept
13598
13599 /* Override any gcc2 internal prototype to avoid an error.  */
13600 #ifdef __cplusplus
13601 extern "C"
13602 {
13603 #endif
13604 /* We use char because int might match the return type of a gcc2
13605    builtin and then its argument prototype would still apply.  */
13606 char accept ();
13607 /* The GNU C library defines this for functions which it implements
13608     to always fail with ENOSYS.  Some functions are actually named
13609     something starting with __ and the normal name is an alias.  */
13610 #if defined (__stub_accept) || defined (__stub___accept)
13611 choke me
13612 #else
13613 char (*f) () = accept;
13614 #endif
13615 #ifdef __cplusplus
13616 }
13617 #endif
13618
13619 int
13620 main ()
13621 {
13622 return f != accept;
13623   ;
13624   return 0;
13625 }
13626 _ACEOF
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13629   (eval $ac_link) 2>conftest.er1
13630   ac_status=$?
13631   grep -v '^ *+' conftest.er1 >conftest.err
13632   rm -f conftest.er1
13633   cat conftest.err >&5
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); } &&
13636          { ac_try='test -z "$ac_c_werror_flag"
13637                          || test ! -s conftest.err'
13638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639   (eval $ac_try) 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; } &&
13643          { ac_try='test -s conftest$ac_exeext'
13644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645   (eval $ac_try) 2>&5
13646   ac_status=$?
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); }; }; then
13649   ac_cv_func_accept=yes
13650 else
13651   echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 ac_cv_func_accept=no
13655 fi
13656 rm -f conftest.err conftest.$ac_objext \
13657       conftest$ac_exeext conftest.$ac_ext
13658 fi
13659 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13660 echo "${ECHO_T}$ac_cv_func_accept" >&6
13661 if test $ac_cv_func_accept = yes; then
13662   gcj_checkNsl=0
13663                         gcj_cv_lib_sockets="-lsocket -lnsl"
13664 fi
13665
13666          unset ac_cv_func_accept
13667          LIBS=$gcj_oldLibs
13668      fi
13669      unset ac_cv_func_gethostbyname
13670      gcj_oldLibs=$LIBS
13671      LIBS="$LIBS $gcj_cv_lib_sockets"
13672      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13673 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13674 if test "${ac_cv_func_gethostbyname+set}" = set; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677   if test x$gcc_no_link = xyes; then
13678   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13680    { (exit 1); exit 1; }; }
13681 fi
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h.  */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h.  */
13688 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13690 #define gethostbyname innocuous_gethostbyname
13691
13692 /* System header to define __stub macros and hopefully few prototypes,
13693     which can conflict with char gethostbyname (); below.
13694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13695     <limits.h> exists even on freestanding compilers.  */
13696
13697 #ifdef __STDC__
13698 # include <limits.h>
13699 #else
13700 # include <assert.h>
13701 #endif
13702
13703 #undef gethostbyname
13704
13705 /* Override any gcc2 internal prototype to avoid an error.  */
13706 #ifdef __cplusplus
13707 extern "C"
13708 {
13709 #endif
13710 /* We use char because int might match the return type of a gcc2
13711    builtin and then its argument prototype would still apply.  */
13712 char gethostbyname ();
13713 /* The GNU C library defines this for functions which it implements
13714     to always fail with ENOSYS.  Some functions are actually named
13715     something starting with __ and the normal name is an alias.  */
13716 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13717 choke me
13718 #else
13719 char (*f) () = gethostbyname;
13720 #endif
13721 #ifdef __cplusplus
13722 }
13723 #endif
13724
13725 int
13726 main ()
13727 {
13728 return f != gethostbyname;
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext conftest$ac_exeext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735   (eval $ac_link) 2>conftest.er1
13736   ac_status=$?
13737   grep -v '^ *+' conftest.er1 >conftest.err
13738   rm -f conftest.er1
13739   cat conftest.err >&5
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } &&
13742          { ac_try='test -z "$ac_c_werror_flag"
13743                          || test ! -s conftest.err'
13744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745   (eval $ac_try) 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); }; } &&
13749          { ac_try='test -s conftest$ac_exeext'
13750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751   (eval $ac_try) 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); }; }; then
13755   ac_cv_func_gethostbyname=yes
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 ac_cv_func_gethostbyname=no
13761 fi
13762 rm -f conftest.err conftest.$ac_objext \
13763       conftest$ac_exeext conftest.$ac_ext
13764 fi
13765 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13766 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13767 if test $ac_cv_func_gethostbyname = yes; then
13768   :
13769 else
13770   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13771 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13772 if test "${ac_cv_lib_nsl_main+set}" = set; then
13773   echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775   ac_check_lib_save_LIBS=$LIBS
13776 LIBS="-lnsl  $LIBS"
13777 if test x$gcc_no_link = xyes; then
13778   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13779 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13780    { (exit 1); exit 1; }; }
13781 fi
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788
13789
13790 int
13791 main ()
13792 {
13793 main ();
13794   ;
13795   return 0;
13796 }
13797 _ACEOF
13798 rm -f conftest.$ac_objext conftest$ac_exeext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800   (eval $ac_link) 2>conftest.er1
13801   ac_status=$?
13802   grep -v '^ *+' conftest.er1 >conftest.err
13803   rm -f conftest.er1
13804   cat conftest.err >&5
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); } &&
13807          { ac_try='test -z "$ac_c_werror_flag"
13808                          || test ! -s conftest.err'
13809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810   (eval $ac_try) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; } &&
13814          { ac_try='test -s conftest$ac_exeext'
13815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816   (eval $ac_try) 2>&5
13817   ac_status=$?
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); }; }; then
13820   ac_cv_lib_nsl_main=yes
13821 else
13822   echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13824
13825 ac_cv_lib_nsl_main=no
13826 fi
13827 rm -f conftest.err conftest.$ac_objext \
13828       conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13830 fi
13831 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13832 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13833 if test $ac_cv_lib_nsl_main = yes; then
13834   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13835 fi
13836
13837 fi
13838
13839      unset ac_cv_func_gethostbyname
13840      LIBS=$gcj_oldLIBS
13841
13842 fi
13843 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13844 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13845    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13846
13847    if test "$with_system_zlib" = yes; then
13848       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13849 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13850 if test "${ac_cv_lib_z_deflate+set}" = set; then
13851   echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853   ac_check_lib_save_LIBS=$LIBS
13854 LIBS="-lz  $LIBS"
13855 if test x$gcc_no_link = xyes; then
13856   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13858    { (exit 1); exit 1; }; }
13859 fi
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h.  */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h.  */
13866
13867 /* Override any gcc2 internal prototype to avoid an error.  */
13868 #ifdef __cplusplus
13869 extern "C"
13870 #endif
13871 /* We use char because int might match the return type of a gcc2
13872    builtin and then its argument prototype would still apply.  */
13873 char deflate ();
13874 int
13875 main ()
13876 {
13877 deflate ();
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13884   (eval $ac_link) 2>conftest.er1
13885   ac_status=$?
13886   grep -v '^ *+' conftest.er1 >conftest.err
13887   rm -f conftest.er1
13888   cat conftest.err >&5
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -z "$ac_c_werror_flag"
13892                          || test ! -s conftest.err'
13893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894   (eval $ac_try) 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; } &&
13898          { ac_try='test -s conftest$ac_exeext'
13899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900   (eval $ac_try) 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; }; then
13904   ac_cv_lib_z_deflate=yes
13905 else
13906   echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909 ac_cv_lib_z_deflate=no
13910 fi
13911 rm -f conftest.err conftest.$ac_objext \
13912       conftest$ac_exeext conftest.$ac_ext
13913 LIBS=$ac_check_lib_save_LIBS
13914 fi
13915 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13916 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13917 if test $ac_cv_lib_z_deflate = yes; then
13918   ZLIBSPEC=-lz
13919 else
13920   ZLIBSPEC=
13921 fi
13922
13923    fi
13924
13925    # Test for Gtk stuff, if asked for.
13926    if test "$use_gtk_awt" = yes; then
13927
13928   succeeded=no
13929
13930   if test -z "$PKG_CONFIG"; then
13931     # Extract the first word of "pkg-config", so it can be a program name with args.
13932 set dummy pkg-config; ac_word=$2
13933 echo "$as_me:$LINENO: checking for $ac_word" >&5
13934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13935 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938   case $PKG_CONFIG in
13939   [\\/]* | ?:[\\/]*)
13940   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13941   ;;
13942   *)
13943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944 for as_dir in $PATH
13945 do
13946   IFS=$as_save_IFS
13947   test -z "$as_dir" && as_dir=.
13948   for ac_exec_ext in '' $ac_executable_extensions; do
13949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13950     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13952     break 2
13953   fi
13954 done
13955 done
13956
13957   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13958   ;;
13959 esac
13960 fi
13961 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13962
13963 if test -n "$PKG_CONFIG"; then
13964   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13965 echo "${ECHO_T}$PKG_CONFIG" >&6
13966 else
13967   echo "$as_me:$LINENO: result: no" >&5
13968 echo "${ECHO_T}no" >&6
13969 fi
13970
13971   fi
13972
13973   if test "$PKG_CONFIG" = "no" ; then
13974      echo "*** The pkg-config script could not be found. Make sure it is"
13975      echo "*** in your path, or set the PKG_CONFIG environment variable"
13976      echo "*** to the full path to pkg-config."
13977      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13978   else
13979      PKG_CONFIG_MIN_VERSION=0.9.0
13980      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13981         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13982 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13983
13984         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13985             echo "$as_me:$LINENO: result: yes" >&5
13986 echo "${ECHO_T}yes" >&6
13987             succeeded=yes
13988
13989             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13990 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13991             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13992             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13993 echo "${ECHO_T}$GTK_CFLAGS" >&6
13994
13995             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13996 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13997             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13998             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13999 echo "${ECHO_T}$GTK_LIBS" >&6
14000         else
14001             GTK_CFLAGS=""
14002             GTK_LIBS=""
14003             ## If we have a custom action on failure, don't print errors, but
14004             ## do set a variable so people can do so.
14005             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14006             echo $GTK_PKG_ERRORS
14007         fi
14008
14009
14010
14011      else
14012         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14013         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14014      fi
14015   fi
14016
14017   if test $succeeded = yes; then
14018      :
14019   else
14020      { { 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
14021 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;}
14022    { (exit 1); exit 1; }; }
14023   fi
14024
14025
14026
14027
14028
14029   succeeded=no
14030
14031   if test -z "$PKG_CONFIG"; then
14032     # Extract the first word of "pkg-config", so it can be a program name with args.
14033 set dummy pkg-config; ac_word=$2
14034 echo "$as_me:$LINENO: checking for $ac_word" >&5
14035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14036 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14037   echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039   case $PKG_CONFIG in
14040   [\\/]* | ?:[\\/]*)
14041   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14042   ;;
14043   *)
14044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14045 for as_dir in $PATH
14046 do
14047   IFS=$as_save_IFS
14048   test -z "$as_dir" && as_dir=.
14049   for ac_exec_ext in '' $ac_executable_extensions; do
14050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14051     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14053     break 2
14054   fi
14055 done
14056 done
14057
14058   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14059   ;;
14060 esac
14061 fi
14062 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14063
14064 if test -n "$PKG_CONFIG"; then
14065   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14066 echo "${ECHO_T}$PKG_CONFIG" >&6
14067 else
14068   echo "$as_me:$LINENO: result: no" >&5
14069 echo "${ECHO_T}no" >&6
14070 fi
14071
14072   fi
14073
14074   if test "$PKG_CONFIG" = "no" ; then
14075      echo "*** The pkg-config script could not be found. Make sure it is"
14076      echo "*** in your path, or set the PKG_CONFIG environment variable"
14077      echo "*** to the full path to pkg-config."
14078      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14079   else
14080      PKG_CONFIG_MIN_VERSION=0.9.0
14081      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14082         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14083 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
14084
14085         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14086             echo "$as_me:$LINENO: result: yes" >&5
14087 echo "${ECHO_T}yes" >&6
14088             succeeded=yes
14089
14090             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14091 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14092             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14093             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14094 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14095
14096             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14097 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14098             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14099             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14100 echo "${ECHO_T}$GLIB_LIBS" >&6
14101         else
14102             GLIB_CFLAGS=""
14103             GLIB_LIBS=""
14104             ## If we have a custom action on failure, don't print errors, but
14105             ## do set a variable so people can do so.
14106             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14107             echo $GLIB_PKG_ERRORS
14108         fi
14109
14110
14111
14112      else
14113         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14114         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14115      fi
14116   fi
14117
14118   if test $succeeded = yes; then
14119      :
14120   else
14121      { { 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
14122 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;}
14123    { (exit 1); exit 1; }; }
14124   fi
14125
14126
14127
14128
14129
14130   succeeded=no
14131
14132   if test -z "$PKG_CONFIG"; then
14133     # Extract the first word of "pkg-config", so it can be a program name with args.
14134 set dummy pkg-config; ac_word=$2
14135 echo "$as_me:$LINENO: checking for $ac_word" >&5
14136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14137 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140   case $PKG_CONFIG in
14141   [\\/]* | ?:[\\/]*)
14142   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14143   ;;
14144   *)
14145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14147 do
14148   IFS=$as_save_IFS
14149   test -z "$as_dir" && as_dir=.
14150   for ac_exec_ext in '' $ac_executable_extensions; do
14151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14152     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14154     break 2
14155   fi
14156 done
14157 done
14158
14159   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14160   ;;
14161 esac
14162 fi
14163 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14164
14165 if test -n "$PKG_CONFIG"; then
14166   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14167 echo "${ECHO_T}$PKG_CONFIG" >&6
14168 else
14169   echo "$as_me:$LINENO: result: no" >&5
14170 echo "${ECHO_T}no" >&6
14171 fi
14172
14173   fi
14174
14175   if test "$PKG_CONFIG" = "no" ; then
14176      echo "*** The pkg-config script could not be found. Make sure it is"
14177      echo "*** in your path, or set the PKG_CONFIG environment variable"
14178      echo "*** to the full path to pkg-config."
14179      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14180   else
14181      PKG_CONFIG_MIN_VERSION=0.9.0
14182      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14183         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14184 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14185
14186         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14187             echo "$as_me:$LINENO: result: yes" >&5
14188 echo "${ECHO_T}yes" >&6
14189             succeeded=yes
14190
14191             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14192 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14193             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14194             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14195 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14196
14197             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14198 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14199             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14200             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14201 echo "${ECHO_T}$LIBART_LIBS" >&6
14202         else
14203             LIBART_CFLAGS=""
14204             LIBART_LIBS=""
14205             ## If we have a custom action on failure, don't print errors, but
14206             ## do set a variable so people can do so.
14207             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14208             echo $LIBART_PKG_ERRORS
14209         fi
14210
14211
14212
14213      else
14214         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14215         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14216      fi
14217   fi
14218
14219   if test $succeeded = yes; then
14220      :
14221   else
14222      { { 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
14223 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;}
14224    { (exit 1); exit 1; }; }
14225   fi
14226
14227
14228
14229
14230       # We require the XTest Extension to support java.awt.Robot.
14231       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14232 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14233 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14234   echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236   ac_check_lib_save_LIBS=$LIBS
14237 LIBS="-lXtst ${X_LIBS} $LIBS"
14238 if test x$gcc_no_link = xyes; then
14239   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14241    { (exit 1); exit 1; }; }
14242 fi
14243 cat >conftest.$ac_ext <<_ACEOF
14244 /* confdefs.h.  */
14245 _ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h.  */
14249
14250 /* Override any gcc2 internal prototype to avoid an error.  */
14251 #ifdef __cplusplus
14252 extern "C"
14253 #endif
14254 /* We use char because int might match the return type of a gcc2
14255    builtin and then its argument prototype would still apply.  */
14256 char XTestQueryExtension ();
14257 int
14258 main ()
14259 {
14260 XTestQueryExtension ();
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 rm -f conftest.$ac_objext conftest$ac_exeext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14267   (eval $ac_link) 2>conftest.er1
14268   ac_status=$?
14269   grep -v '^ *+' conftest.er1 >conftest.err
14270   rm -f conftest.er1
14271   cat conftest.err >&5
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); } &&
14274          { ac_try='test -z "$ac_c_werror_flag"
14275                          || test ! -s conftest.err'
14276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277   (eval $ac_try) 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; } &&
14281          { ac_try='test -s conftest$ac_exeext'
14282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283   (eval $ac_try) 2>&5
14284   ac_status=$?
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); }; }; then
14287   ac_cv_lib_Xtst_XTestQueryExtension=yes
14288 else
14289   echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 ac_cv_lib_Xtst_XTestQueryExtension=no
14293 fi
14294 rm -f conftest.err conftest.$ac_objext \
14295       conftest$ac_exeext conftest.$ac_ext
14296 LIBS=$ac_check_lib_save_LIBS
14297 fi
14298 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14299 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14300 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14301   true
14302 else
14303   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14304 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14305    { (exit 1); exit 1; }; }
14306 fi
14307
14308    fi
14309
14310    # On Solaris, and maybe other architectures, the Boehm collector
14311    # requires -ldl.
14312    if test "$GC" = boehm; then
14313       echo "$as_me:$LINENO: checking for main in -ldl" >&5
14314 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14315 if test "${ac_cv_lib_dl_main+set}" = set; then
14316   echo $ECHO_N "(cached) $ECHO_C" >&6
14317 else
14318   ac_check_lib_save_LIBS=$LIBS
14319 LIBS="-ldl  $LIBS"
14320 if test x$gcc_no_link = xyes; then
14321   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14322 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14323    { (exit 1); exit 1; }; }
14324 fi
14325 cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h.  */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h.  */
14331
14332
14333 int
14334 main ()
14335 {
14336 main ();
14337   ;
14338   return 0;
14339 }
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14343   (eval $ac_link) 2>conftest.er1
14344   ac_status=$?
14345   grep -v '^ *+' conftest.er1 >conftest.err
14346   rm -f conftest.er1
14347   cat conftest.err >&5
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); } &&
14350          { ac_try='test -z "$ac_c_werror_flag"
14351                          || test ! -s conftest.err'
14352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353   (eval $ac_try) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; } &&
14357          { ac_try='test -s conftest$ac_exeext'
14358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359   (eval $ac_try) 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; }; then
14363   ac_cv_lib_dl_main=yes
14364 else
14365   echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14367
14368 ac_cv_lib_dl_main=no
14369 fi
14370 rm -f conftest.err conftest.$ac_objext \
14371       conftest$ac_exeext conftest.$ac_ext
14372 LIBS=$ac_check_lib_save_LIBS
14373 fi
14374 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14375 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14376 if test $ac_cv_lib_dl_main = yes; then
14377   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14378 fi
14379
14380    fi
14381 fi
14382
14383 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14384 case $build in
14385     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14386     *)         CLASSPATH_SEPARATOR=':' ;;
14387 esac
14388
14389
14390 # We must search the source tree for java.lang, since we still don't
14391 # have libgcj.jar nor java/lang/*.class
14392 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14393 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14394
14395 # Since some classes depend on this one, we need its source available
14396 # before we can do any GCJ compilation test :-(
14397 if test ! -f gnu/classpath/Configuration.java; then
14398   test -d gnu || mkdir gnu
14399   test -d gnu/classpath || mkdir gnu/classpath
14400   # Note that it is not crucial that all the values here be correct.
14401   sed -e "s,@prefix@,$prefix," \
14402       -e "s,@VERSION@,$VERSION," \
14403       -e "s,@LIBDEBUG@,false," \
14404       -e "s,@INIT_LOAD_LIBRARY@,false," \
14405       -e "s,@@,$LIBGCJDEBUG," \
14406       -e "s,@default_toolkit@,$TOOLKIT," \
14407       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14408       -e "s,@GTK_CAIRO_ENABLED@,false," \
14409         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14410         > gnu/classpath/Configuration.java
14411   # We do not want to redirect the output of the grep below to /dev/null,
14412   # but we add /dev/null to the input list so that grep will print the
14413   # filename of Configuration.java in case it finds any matches.
14414   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14415     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14416 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14417    { (exit 1); exit 1; }; }
14418   fi
14419 fi
14420
14421 if test -n "$ac_tool_prefix"; then
14422   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14423 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14424 echo "$as_me:$LINENO: checking for $ac_word" >&5
14425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14426 if test "${ac_cv_prog_GCJ+set}" = set; then
14427   echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429   if test -n "$GCJ"; then
14430   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14431 else
14432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14433 for as_dir in $PATH
14434 do
14435   IFS=$as_save_IFS
14436   test -z "$as_dir" && as_dir=.
14437   for ac_exec_ext in '' $ac_executable_extensions; do
14438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14439     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14441     break 2
14442   fi
14443 done
14444 done
14445
14446 fi
14447 fi
14448 GCJ=$ac_cv_prog_GCJ
14449 if test -n "$GCJ"; then
14450   echo "$as_me:$LINENO: result: $GCJ" >&5
14451 echo "${ECHO_T}$GCJ" >&6
14452 else
14453   echo "$as_me:$LINENO: result: no" >&5
14454 echo "${ECHO_T}no" >&6
14455 fi
14456
14457 fi
14458 if test -z "$ac_cv_prog_GCJ"; then
14459   ac_ct_GCJ=$GCJ
14460   # Extract the first word of "gcj", so it can be a program name with args.
14461 set dummy gcj; ac_word=$2
14462 echo "$as_me:$LINENO: checking for $ac_word" >&5
14463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14464 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14465   echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467   if test -n "$ac_ct_GCJ"; then
14468   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14469 else
14470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471 for as_dir in $PATH
14472 do
14473   IFS=$as_save_IFS
14474   test -z "$as_dir" && as_dir=.
14475   for ac_exec_ext in '' $ac_executable_extensions; do
14476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14477     ac_cv_prog_ac_ct_GCJ="gcj"
14478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14479     break 2
14480   fi
14481 done
14482 done
14483
14484   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14485 fi
14486 fi
14487 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14488 if test -n "$ac_ct_GCJ"; then
14489   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14490 echo "${ECHO_T}$ac_ct_GCJ" >&6
14491 else
14492   echo "$as_me:$LINENO: result: no" >&5
14493 echo "${ECHO_T}no" >&6
14494 fi
14495
14496   GCJ=$ac_ct_GCJ
14497 else
14498   GCJ="$ac_cv_prog_GCJ"
14499 fi
14500
14501   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14502
14503
14504
14505
14506 # Now remove it.
14507 rm -f gnu/classpath/Configuration.java
14508
14509 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14510
14511 echo "$as_me:$LINENO: checking for void *" >&5
14512 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14513 if test "${ac_cv_type_void_p+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h.  */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h.  */
14522 $ac_includes_default
14523 int
14524 main ()
14525 {
14526 if ((void * *) 0)
14527   return 0;
14528 if (sizeof (void *))
14529   return 0;
14530   ;
14531   return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14536   (eval $ac_compile) 2>conftest.er1
14537   ac_status=$?
14538   grep -v '^ *+' conftest.er1 >conftest.err
14539   rm -f conftest.er1
14540   cat conftest.err >&5
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); } &&
14543          { ac_try='test -z "$ac_c_werror_flag"
14544                          || test ! -s conftest.err'
14545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546   (eval $ac_try) 2>&5
14547   ac_status=$?
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); }; } &&
14550          { ac_try='test -s conftest.$ac_objext'
14551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552   (eval $ac_try) 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; }; then
14556   ac_cv_type_void_p=yes
14557 else
14558   echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 ac_cv_type_void_p=no
14562 fi
14563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564 fi
14565 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14566 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14567
14568 echo "$as_me:$LINENO: checking size of void *" >&5
14569 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14570 if test "${ac_cv_sizeof_void_p+set}" = set; then
14571   echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573   if test "$ac_cv_type_void_p" = yes; then
14574   # The cast to unsigned long works around a bug in the HP C Compiler
14575   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14576   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14577   # This bug is HP SR number 8606223364.
14578   if test "$cross_compiling" = yes; then
14579   # Depending upon the size, compute the lo and hi bounds.
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h.  */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h.  */
14586 $ac_includes_default
14587 int
14588 main ()
14589 {
14590 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14591 test_array [0] = 0
14592
14593   ;
14594   return 0;
14595 }
14596 _ACEOF
14597 rm -f conftest.$ac_objext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14599   (eval $ac_compile) 2>conftest.er1
14600   ac_status=$?
14601   grep -v '^ *+' conftest.er1 >conftest.err
14602   rm -f conftest.er1
14603   cat conftest.err >&5
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -z "$ac_c_werror_flag"
14607                          || test ! -s conftest.err'
14608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609   (eval $ac_try) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); }; } &&
14613          { ac_try='test -s conftest.$ac_objext'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }; then
14619   ac_lo=0 ac_mid=0
14620   while :; do
14621     cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h.  */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h.  */
14627 $ac_includes_default
14628 int
14629 main ()
14630 {
14631 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14632 test_array [0] = 0
14633
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640   (eval $ac_compile) 2>conftest.er1
14641   ac_status=$?
14642   grep -v '^ *+' conftest.er1 >conftest.err
14643   rm -f conftest.er1
14644   cat conftest.err >&5
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); } &&
14647          { ac_try='test -z "$ac_c_werror_flag"
14648                          || test ! -s conftest.err'
14649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650   (eval $ac_try) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); }; } &&
14654          { ac_try='test -s conftest.$ac_objext'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; }; then
14660   ac_hi=$ac_mid; break
14661 else
14662   echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 ac_lo=`expr $ac_mid + 1`
14666                     if test $ac_lo -le $ac_mid; then
14667                       ac_lo= ac_hi=
14668                       break
14669                     fi
14670                     ac_mid=`expr 2 '*' $ac_mid + 1`
14671 fi
14672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14673   done
14674 else
14675   echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14677
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684 $ac_includes_default
14685 int
14686 main ()
14687 {
14688 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14689 test_array [0] = 0
14690
14691   ;
14692   return 0;
14693 }
14694 _ACEOF
14695 rm -f conftest.$ac_objext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14697   (eval $ac_compile) 2>conftest.er1
14698   ac_status=$?
14699   grep -v '^ *+' conftest.er1 >conftest.err
14700   rm -f conftest.er1
14701   cat conftest.err >&5
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } &&
14704          { ac_try='test -z "$ac_c_werror_flag"
14705                          || test ! -s conftest.err'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; } &&
14711          { ac_try='test -s conftest.$ac_objext'
14712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713   (eval $ac_try) 2>&5
14714   ac_status=$?
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); }; }; then
14717   ac_hi=-1 ac_mid=-1
14718   while :; do
14719     cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 $ac_includes_default
14726 int
14727 main ()
14728 {
14729 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14730 test_array [0] = 0
14731
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738   (eval $ac_compile) 2>conftest.er1
14739   ac_status=$?
14740   grep -v '^ *+' conftest.er1 >conftest.err
14741   rm -f conftest.er1
14742   cat conftest.err >&5
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } &&
14745          { ac_try='test -z "$ac_c_werror_flag"
14746                          || test ! -s conftest.err'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; } &&
14752          { ac_try='test -s conftest.$ac_objext'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; }; then
14758   ac_lo=$ac_mid; break
14759 else
14760   echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 ac_hi=`expr '(' $ac_mid ')' - 1`
14764                        if test $ac_mid -le $ac_hi; then
14765                          ac_lo= ac_hi=
14766                          break
14767                        fi
14768                        ac_mid=`expr 2 '*' $ac_mid`
14769 fi
14770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14771   done
14772 else
14773   echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_lo= ac_hi=
14777 fi
14778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14779 fi
14780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14781 # Binary search between lo and hi bounds.
14782 while test "x$ac_lo" != "x$ac_hi"; do
14783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14784   cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h.  */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h.  */
14790 $ac_includes_default
14791 int
14792 main ()
14793 {
14794 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14795 test_array [0] = 0
14796
14797   ;
14798   return 0;
14799 }
14800 _ACEOF
14801 rm -f conftest.$ac_objext
14802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14803   (eval $ac_compile) 2>conftest.er1
14804   ac_status=$?
14805   grep -v '^ *+' conftest.er1 >conftest.err
14806   rm -f conftest.er1
14807   cat conftest.err >&5
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } &&
14810          { ac_try='test -z "$ac_c_werror_flag"
14811                          || test ! -s conftest.err'
14812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813   (eval $ac_try) 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; } &&
14817          { ac_try='test -s conftest.$ac_objext'
14818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819   (eval $ac_try) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; }; then
14823   ac_hi=$ac_mid
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 ac_lo=`expr '(' $ac_mid ')' + 1`
14829 fi
14830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14831 done
14832 case $ac_lo in
14833 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14835 See \`config.log' for more details." >&5
14836 echo "$as_me: error: cannot compute sizeof (void *), 77
14837 See \`config.log' for more details." >&2;}
14838    { (exit 1); exit 1; }; } ;;
14839 esac
14840 else
14841   if test "$cross_compiling" = yes; then
14842   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14843 See \`config.log' for more details." >&5
14844 echo "$as_me: error: cannot run test program while cross compiling
14845 See \`config.log' for more details." >&2;}
14846    { (exit 1); exit 1; }; }
14847 else
14848   cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h.  */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h.  */
14854 $ac_includes_default
14855 long longval () { return (long) (sizeof (void *)); }
14856 unsigned long ulongval () { return (long) (sizeof (void *)); }
14857 #include <stdio.h>
14858 #include <stdlib.h>
14859 int
14860 main ()
14861 {
14862
14863   FILE *f = fopen ("conftest.val", "w");
14864   if (! f)
14865     exit (1);
14866   if (((long) (sizeof (void *))) < 0)
14867     {
14868       long i = longval ();
14869       if (i != ((long) (sizeof (void *))))
14870         exit (1);
14871       fprintf (f, "%ld\n", i);
14872     }
14873   else
14874     {
14875       unsigned long i = ulongval ();
14876       if (i != ((long) (sizeof (void *))))
14877         exit (1);
14878       fprintf (f, "%lu\n", i);
14879     }
14880   exit (ferror (f) || fclose (f) != 0);
14881
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888   (eval $ac_link) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893   (eval $ac_try) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; }; then
14897   ac_cv_sizeof_void_p=`cat conftest.val`
14898 else
14899   echo "$as_me: program exited with status $ac_status" >&5
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 ( exit $ac_status )
14904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14905 See \`config.log' for more details." >&5
14906 echo "$as_me: error: cannot compute sizeof (void *), 77
14907 See \`config.log' for more details." >&2;}
14908    { (exit 1); exit 1; }; }
14909 fi
14910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14911 fi
14912 fi
14913 rm -f conftest.val
14914 else
14915   ac_cv_sizeof_void_p=0
14916 fi
14917 fi
14918 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14919 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14920 cat >>confdefs.h <<_ACEOF
14921 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14922 _ACEOF
14923
14924
14925
14926 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14927 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14928 if test "${ac_cv_c_bigendian+set}" = set; then
14929   echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931   # See if sys/param.h defines the BYTE_ORDER macro.
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h.  */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h.  */
14938 #include <sys/types.h>
14939 #include <sys/param.h>
14940
14941 int
14942 main ()
14943 {
14944 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14945  bogus endian macros
14946 #endif
14947
14948   ;
14949   return 0;
14950 }
14951 _ACEOF
14952 rm -f conftest.$ac_objext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14954   (eval $ac_compile) 2>conftest.er1
14955   ac_status=$?
14956   grep -v '^ *+' conftest.er1 >conftest.err
14957   rm -f conftest.er1
14958   cat conftest.err >&5
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); } &&
14961          { ac_try='test -z "$ac_c_werror_flag"
14962                          || test ! -s conftest.err'
14963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964   (eval $ac_try) 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; } &&
14968          { ac_try='test -s conftest.$ac_objext'
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   # It does; now see whether it defined to BIG_ENDIAN or not.
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h.  */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h.  */
14981 #include <sys/types.h>
14982 #include <sys/param.h>
14983
14984 int
14985 main ()
14986 {
14987 #if BYTE_ORDER != BIG_ENDIAN
14988  not big endian
14989 #endif
14990
14991   ;
14992   return 0;
14993 }
14994 _ACEOF
14995 rm -f conftest.$ac_objext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997   (eval $ac_compile) 2>conftest.er1
14998   ac_status=$?
14999   grep -v '^ *+' conftest.er1 >conftest.err
15000   rm -f conftest.er1
15001   cat conftest.err >&5
15002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003   (exit $ac_status); } &&
15004          { ac_try='test -z "$ac_c_werror_flag"
15005                          || test ! -s conftest.err'
15006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007   (eval $ac_try) 2>&5
15008   ac_status=$?
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   (exit $ac_status); }; } &&
15011          { ac_try='test -s conftest.$ac_objext'
15012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013   (eval $ac_try) 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); }; }; then
15017   ac_cv_c_bigendian=yes
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_cv_c_bigendian=no
15023 fi
15024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15025 else
15026   echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029 # It does not; compile a test program.
15030 if test "$cross_compiling" = yes; then
15031   # try to guess the endianness by grepping values into an object file
15032   ac_cv_c_bigendian=unknown
15033   cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15040 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15041 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15042 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15043 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15044 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15045 int
15046 main ()
15047 {
15048  _ascii (); _ebcdic ();
15049   ;
15050   return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055   (eval $ac_compile) 2>conftest.er1
15056   ac_status=$?
15057   grep -v '^ *+' conftest.er1 >conftest.err
15058   rm -f conftest.er1
15059   cat conftest.err >&5
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -z "$ac_c_werror_flag"
15063                          || test ! -s conftest.err'
15064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065   (eval $ac_try) 2>&5
15066   ac_status=$?
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); }; } &&
15069          { ac_try='test -s conftest.$ac_objext'
15070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071   (eval $ac_try) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; }; then
15075   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15076   ac_cv_c_bigendian=yes
15077 fi
15078 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15079   if test "$ac_cv_c_bigendian" = unknown; then
15080     ac_cv_c_bigendian=no
15081   else
15082     # finding both strings is unlikely to happen, but who knows?
15083     ac_cv_c_bigendian=unknown
15084   fi
15085 fi
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090 fi
15091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15092 else
15093   cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h.  */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h.  */
15099 int
15100 main ()
15101 {
15102   /* Are we little or big endian?  From Harbison&Steele.  */
15103   union
15104   {
15105     long l;
15106     char c[sizeof (long)];
15107   } u;
15108   u.l = 1;
15109   exit (u.c[sizeof (long) - 1] == 1);
15110 }
15111 _ACEOF
15112 rm -f conftest$ac_exeext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114   (eval $ac_link) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119   (eval $ac_try) 2>&5
15120   ac_status=$?
15121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   (exit $ac_status); }; }; then
15123   ac_cv_c_bigendian=no
15124 else
15125   echo "$as_me: program exited with status $ac_status" >&5
15126 echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15128
15129 ( exit $ac_status )
15130 ac_cv_c_bigendian=yes
15131 fi
15132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15133 fi
15134 fi
15135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 fi
15137 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15138 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15139 case $ac_cv_c_bigendian in
15140   yes)
15141
15142 cat >>confdefs.h <<\_ACEOF
15143 #define WORDS_BIGENDIAN 1
15144 _ACEOF
15145  ;;
15146   no)
15147      ;;
15148   *)
15149     { { echo "$as_me:$LINENO: error: unknown endianness
15150 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15151 echo "$as_me: error: unknown endianness
15152 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15153    { (exit 1); exit 1; }; } ;;
15154 esac
15155
15156
15157 ZLIBS=
15158 SYS_ZLIBS=
15159 ZINCS=
15160
15161 if test -z "$ZLIBSPEC"; then
15162    # Use zlib from the GCC tree.
15163    ZINCS='-I$(top_srcdir)/../zlib'
15164    ZLIBS=../zlib/libzgcj_convenience.la
15165 else
15166    # System's zlib.
15167    SYS_ZLIBS="$ZLIBSPEC"
15168 fi
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180 if test "$NATIVE" = yes; then
15181   NATIVE_TRUE=
15182   NATIVE_FALSE='#'
15183 else
15184   NATIVE_TRUE='#'
15185   NATIVE_FALSE=
15186 fi
15187
15188
15189
15190 if test "$enable_shared" = yes; then
15191   ENABLE_SHARED_TRUE=
15192   ENABLE_SHARED_FALSE='#'
15193 else
15194   ENABLE_SHARED_TRUE='#'
15195   ENABLE_SHARED_FALSE=
15196 fi
15197
15198
15199
15200 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15201   NEEDS_DATA_START_TRUE=
15202   NEEDS_DATA_START_FALSE='#'
15203 else
15204   NEEDS_DATA_START_TRUE='#'
15205   NEEDS_DATA_START_FALSE=
15206 fi
15207
15208
15209
15210 # Process the option "--enable-version-specific-runtime-libs"
15211 # Calculate toolexeclibdir
15212 case ${version_specific_libs} in
15213   yes)
15214     # Need the gcc compiler version to know where to install libraries
15215     # and header files if --enable-version-specific-runtime-libs option
15216     # is selected.
15217     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15218     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15219     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15220     toolexeclibdir=$toolexecmainlibdir
15221     ;;
15222   no)
15223     if test -n "$with_cross_host" &&
15224        test x"$with_cross_host" != x"no"; then
15225       # Install a library built with a cross compiler in tooldir, not libdir.
15226       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15227       toolexecmainlibdir='$(toolexecdir)/lib'
15228     else
15229       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15230       toolexecmainlibdir='$(libdir)'
15231     fi
15232     multi_os_directory=`$CC -print-multi-os-directory`
15233     case $multi_os_directory in
15234       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15235       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15236     esac
15237     ;;
15238 esac
15239
15240
15241
15242
15243 # Determine where the standard .db file and GNU Classpath JNI
15244 # libraries are found.
15245 multi_os_directory=`$CC -print-multi-os-directory`
15246 case $multi_os_directory in
15247   .)
15248    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15249    ;;
15250   *)
15251    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15252    ;;
15253 esac
15254
15255
15256 # Determine gcj version number.
15257 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15258 GCJVERSION=$gcjversion
15259
15260
15261 cat >>confdefs.h <<_ACEOF
15262 #define GCJVERSION "$GCJVERSION"
15263 _ACEOF
15264
15265
15266
15267 cat >>confdefs.h <<\_ACEOF
15268 #define JV_VERSION "1.5.0"
15269 _ACEOF
15270
15271
15272 cat >>confdefs.h <<\_ACEOF
15273 #define JV_API_VERSION "1.5"
15274 _ACEOF
15275
15276
15277
15278 case "${with_gxx_include_dir}" in
15279   yes)
15280     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15281 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15282    { (exit 1); exit 1; }; }
15283     ;;
15284   no | "")
15285     case "${enable_version_specific_runtime_libs}" in
15286       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15287       *)
15288         libstdcxx_incdir='c++/$(gcc_version)'
15289         gxx_include_dir='include/$(libstdcxx_incdir)'
15290         if test -n "$with_cross_host" &&
15291            test x"$with_cross_host" != x"no"; then
15292           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15293         else
15294           gxx_include_dir='${prefix}/'"$gxx_include_dir"
15295         fi;;
15296     esac ;;
15297   *) gxx_include_dir=${with_gxx_include_dir} ;;
15298 esac
15299
15300
15301
15302
15303 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15304 # On that system, sys/ioctl.h will not include sys/filio.h unless
15305 # BSD_COMP is defined; just including sys/filio.h is simpler.
15306 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15307 # for now.  If you change this, you also must update natFile.cc.
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15332                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15333                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15334                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
15335                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
15336 do
15337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15339   echo "$as_me:$LINENO: checking for $ac_header" >&5
15340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15342   echo $ECHO_N "(cached) $ECHO_C" >&6
15343 fi
15344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15346 else
15347   # Is the header compilable?
15348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15350 cat >conftest.$ac_ext <<_ACEOF
15351 /* confdefs.h.  */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h.  */
15356 $ac_includes_default
15357 #include <$ac_header>
15358 _ACEOF
15359 rm -f conftest.$ac_objext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15361   (eval $ac_compile) 2>conftest.er1
15362   ac_status=$?
15363   grep -v '^ *+' conftest.er1 >conftest.err
15364   rm -f conftest.er1
15365   cat conftest.err >&5
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); } &&
15368          { ac_try='test -z "$ac_c_werror_flag"
15369                          || test ! -s conftest.err'
15370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371   (eval $ac_try) 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; } &&
15375          { ac_try='test -s conftest.$ac_objext'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; }; then
15381   ac_header_compiler=yes
15382 else
15383   echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386 ac_header_compiler=no
15387 fi
15388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15390 echo "${ECHO_T}$ac_header_compiler" >&6
15391
15392 # Is the header present?
15393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15395 cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 #include <$ac_header>
15402 _ACEOF
15403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15405   ac_status=$?
15406   grep -v '^ *+' conftest.er1 >conftest.err
15407   rm -f conftest.er1
15408   cat conftest.err >&5
15409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); } >/dev/null; then
15411   if test -s conftest.err; then
15412     ac_cpp_err=$ac_c_preproc_warn_flag
15413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15414   else
15415     ac_cpp_err=
15416   fi
15417 else
15418   ac_cpp_err=yes
15419 fi
15420 if test -z "$ac_cpp_err"; then
15421   ac_header_preproc=yes
15422 else
15423   echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15425
15426   ac_header_preproc=no
15427 fi
15428 rm -f conftest.err conftest.$ac_ext
15429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15430 echo "${ECHO_T}$ac_header_preproc" >&6
15431
15432 # So?  What about this header?
15433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15434   yes:no: )
15435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15439     ac_header_preproc=yes
15440     ;;
15441   no:yes:* )
15442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15454     (
15455       cat <<\_ASBOX
15456 ## ---------------------------------- ##
15457 ## Report this to the libjava lists.  ##
15458 ## ---------------------------------- ##
15459 _ASBOX
15460     ) |
15461       sed "s/^/$as_me: WARNING:     /" >&2
15462     ;;
15463 esac
15464 echo "$as_me:$LINENO: checking for $ac_header" >&5
15465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15467   echo $ECHO_N "(cached) $ECHO_C" >&6
15468 else
15469   eval "$as_ac_Header=\$ac_header_preproc"
15470 fi
15471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15473
15474 fi
15475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15476   cat >>confdefs.h <<_ACEOF
15477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15478 _ACEOF
15479
15480 fi
15481
15482 done
15483
15484
15485 for ac_header in inttypes.h
15486 do
15487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15489   echo "$as_me:$LINENO: checking for $ac_header" >&5
15490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 fi
15494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15496 else
15497   # Is the header compilable?
15498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15500 cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506 $ac_includes_default
15507 #include <$ac_header>
15508 _ACEOF
15509 rm -f conftest.$ac_objext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15511   (eval $ac_compile) 2>conftest.er1
15512   ac_status=$?
15513   grep -v '^ *+' conftest.er1 >conftest.err
15514   rm -f conftest.er1
15515   cat conftest.err >&5
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); } &&
15518          { ac_try='test -z "$ac_c_werror_flag"
15519                          || test ! -s conftest.err'
15520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521   (eval $ac_try) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); }; } &&
15525          { ac_try='test -s conftest.$ac_objext'
15526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527   (eval $ac_try) 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531   ac_header_compiler=yes
15532 else
15533   echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15535
15536 ac_header_compiler=no
15537 fi
15538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15540 echo "${ECHO_T}$ac_header_compiler" >&6
15541
15542 # Is the header present?
15543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h.  */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h.  */
15551 #include <$ac_header>
15552 _ACEOF
15553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15554   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15555   ac_status=$?
15556   grep -v '^ *+' conftest.er1 >conftest.err
15557   rm -f conftest.er1
15558   cat conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } >/dev/null; then
15561   if test -s conftest.err; then
15562     ac_cpp_err=$ac_c_preproc_warn_flag
15563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15564   else
15565     ac_cpp_err=
15566   fi
15567 else
15568   ac_cpp_err=yes
15569 fi
15570 if test -z "$ac_cpp_err"; then
15571   ac_header_preproc=yes
15572 else
15573   echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15575
15576   ac_header_preproc=no
15577 fi
15578 rm -f conftest.err conftest.$ac_ext
15579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15580 echo "${ECHO_T}$ac_header_preproc" >&6
15581
15582 # So?  What about this header?
15583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15584   yes:no: )
15585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15589     ac_header_preproc=yes
15590     ;;
15591   no:yes:* )
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15604     (
15605       cat <<\_ASBOX
15606 ## ---------------------------------- ##
15607 ## Report this to the libjava lists.  ##
15608 ## ---------------------------------- ##
15609 _ASBOX
15610     ) |
15611       sed "s/^/$as_me: WARNING:     /" >&2
15612     ;;
15613 esac
15614 echo "$as_me:$LINENO: checking for $ac_header" >&5
15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619   eval "$as_ac_Header=\$ac_header_preproc"
15620 fi
15621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15623
15624 fi
15625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15626   cat >>confdefs.h <<_ACEOF
15627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15628 _ACEOF
15629
15630
15631 cat >>confdefs.h <<\_ACEOF
15632 #define HAVE_INTTYPES_H 1
15633 _ACEOF
15634
15635
15636 cat >>confdefs.h <<\_ACEOF
15637 #define JV_HAVE_INTTYPES_H 1
15638 _ACEOF
15639
15640
15641 fi
15642
15643 done
15644
15645 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15646 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15647 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15648   echo $ECHO_N "(cached) $ECHO_C" >&6
15649 else
15650   cat >conftest.$ac_ext <<_ACEOF
15651 /* confdefs.h.  */
15652 _ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h.  */
15656 #include <sys/types.h>
15657 #include <sys/wait.h>
15658 #ifndef WEXITSTATUS
15659 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15660 #endif
15661 #ifndef WIFEXITED
15662 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15663 #endif
15664
15665 int
15666 main ()
15667 {
15668   int s;
15669   wait (&s);
15670   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15671   ;
15672   return 0;
15673 }
15674 _ACEOF
15675 rm -f conftest.$ac_objext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15677   (eval $ac_compile) 2>conftest.er1
15678   ac_status=$?
15679   grep -v '^ *+' conftest.er1 >conftest.err
15680   rm -f conftest.er1
15681   cat conftest.err >&5
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } &&
15684          { ac_try='test -z "$ac_c_werror_flag"
15685                          || test ! -s conftest.err'
15686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687   (eval $ac_try) 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; } &&
15691          { ac_try='test -s conftest.$ac_objext'
15692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693   (eval $ac_try) 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); }; }; then
15697   ac_cv_header_sys_wait_h=yes
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_cv_header_sys_wait_h=no
15703 fi
15704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15705 fi
15706 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15707 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15708 if test $ac_cv_header_sys_wait_h = yes; then
15709
15710 cat >>confdefs.h <<\_ACEOF
15711 #define HAVE_SYS_WAIT_H 1
15712 _ACEOF
15713
15714 fi
15715
15716
15717 echo "$as_me:$LINENO: checking for ssize_t" >&5
15718 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15719 if test "${ac_cv_type_ssize_t+set}" = set; then
15720   echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722   cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728 $ac_includes_default
15729 int
15730 main ()
15731 {
15732 if ((ssize_t *) 0)
15733   return 0;
15734 if (sizeof (ssize_t))
15735   return 0;
15736   ;
15737   return 0;
15738 }
15739 _ACEOF
15740 rm -f conftest.$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742   (eval $ac_compile) 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } &&
15749          { ac_try='test -z "$ac_c_werror_flag"
15750                          || test ! -s conftest.err'
15751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752   (eval $ac_try) 2>&5
15753   ac_status=$?
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); }; } &&
15756          { ac_try='test -s conftest.$ac_objext'
15757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758   (eval $ac_try) 2>&5
15759   ac_status=$?
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); }; }; then
15762   ac_cv_type_ssize_t=yes
15763 else
15764   echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15766
15767 ac_cv_type_ssize_t=no
15768 fi
15769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15770 fi
15771 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15772 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15773 if test $ac_cv_type_ssize_t = yes; then
15774   :
15775 else
15776
15777 cat >>confdefs.h <<_ACEOF
15778 #define ssize_t int
15779 _ACEOF
15780
15781 fi
15782
15783 echo "$as_me:$LINENO: checking for magic_t" >&5
15784 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
15785 if test "${ac_cv_type_magic_t+set}" = set; then
15786   echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788   cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h.  */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h.  */
15794
15795 #ifdef HAVE_MAGIC_H
15796 #include <magic.h>
15797 #endif
15798
15799 int
15800 main ()
15801 {
15802 if ((magic_t *) 0)
15803   return 0;
15804 if (sizeof (magic_t))
15805   return 0;
15806   ;
15807   return 0;
15808 }
15809 _ACEOF
15810 rm -f conftest.$ac_objext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15812   (eval $ac_compile) 2>conftest.er1
15813   ac_status=$?
15814   grep -v '^ *+' conftest.er1 >conftest.err
15815   rm -f conftest.er1
15816   cat conftest.err >&5
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } &&
15819          { ac_try='test -z "$ac_c_werror_flag"
15820                          || test ! -s conftest.err'
15821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822   (eval $ac_try) 2>&5
15823   ac_status=$?
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); }; } &&
15826          { ac_try='test -s conftest.$ac_objext'
15827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828   (eval $ac_try) 2>&5
15829   ac_status=$?
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); }; }; then
15832   ac_cv_type_magic_t=yes
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837 ac_cv_type_magic_t=no
15838 fi
15839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15840 fi
15841 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
15842 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
15843 if test $ac_cv_type_magic_t = yes; then
15844
15845
15846 cat >>confdefs.h <<\_ACEOF
15847 #define HAVE_MAGIC_T 1
15848 _ACEOF
15849
15850 fi
15851
15852
15853 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15854 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15855 cat >conftest.$ac_ext <<_ACEOF
15856 /* confdefs.h.  */
15857 _ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h.  */
15861 #include <sys/types.h>
15862 #if STDC_HEADERS
15863 #include <stdlib.h>
15864 #include <stddef.h>
15865 #endif
15866 #if HAVE_NETINET_IN_H
15867 #include <netinet/in.h>
15868 #endif
15869 int
15870 main ()
15871 {
15872 in_addr_t foo;
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879   (eval $ac_compile) 2>conftest.er1
15880   ac_status=$?
15881   grep -v '^ *+' conftest.er1 >conftest.err
15882   rm -f conftest.er1
15883   cat conftest.err >&5
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); } &&
15886          { ac_try='test -z "$ac_c_werror_flag"
15887                          || test ! -s conftest.err'
15888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889   (eval $ac_try) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); }; } &&
15893          { ac_try='test -s conftest.$ac_objext'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899
15900 cat >>confdefs.h <<\_ACEOF
15901 #define HAVE_IN_ADDR_T 1
15902 _ACEOF
15903
15904    echo "$as_me:$LINENO: result: yes" >&5
15905 echo "${ECHO_T}yes" >&6
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 echo "$as_me:$LINENO: result: no" >&5
15911 echo "${ECHO_T}no" >&6
15912 fi
15913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15914
15915 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15916 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h.  */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h.  */
15923 #include <netinet/in.h>
15924 int
15925 main ()
15926 {
15927 struct ip_mreq mreq;
15928   ;
15929   return 0;
15930 }
15931 _ACEOF
15932 rm -f conftest.$ac_objext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934   (eval $ac_compile) 2>conftest.er1
15935   ac_status=$?
15936   grep -v '^ *+' conftest.er1 >conftest.err
15937   rm -f conftest.er1
15938   cat conftest.err >&5
15939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940   (exit $ac_status); } &&
15941          { ac_try='test -z "$ac_c_werror_flag"
15942                          || test ! -s conftest.err'
15943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944   (eval $ac_try) 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; } &&
15948          { ac_try='test -s conftest.$ac_objext'
15949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950   (eval $ac_try) 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; }; then
15954
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_STRUCT_IP_MREQ 1
15957 _ACEOF
15958
15959    echo "$as_me:$LINENO: result: yes" >&5
15960 echo "${ECHO_T}yes" >&6
15961 else
15962   echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965 echo "$as_me:$LINENO: result: no" >&5
15966 echo "${ECHO_T}no" >&6
15967 fi
15968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15969
15970 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15971 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 #include <netinet/in.h>
15979 int
15980 main ()
15981 {
15982 struct ipv6_mreq mreq6;
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 rm -f conftest.$ac_objext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15989   (eval $ac_compile) 2>conftest.er1
15990   ac_status=$?
15991   grep -v '^ *+' conftest.er1 >conftest.err
15992   rm -f conftest.er1
15993   cat conftest.err >&5
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } &&
15996          { ac_try='test -z "$ac_c_werror_flag"
15997                          || test ! -s conftest.err'
15998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999   (eval $ac_try) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; } &&
16003          { ac_try='test -s conftest.$ac_objext'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; }; then
16009
16010 cat >>confdefs.h <<\_ACEOF
16011 #define HAVE_STRUCT_IPV6_MREQ 1
16012 _ACEOF
16013
16014    echo "$as_me:$LINENO: result: yes" >&5
16015 echo "${ECHO_T}yes" >&6
16016 else
16017   echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020 echo "$as_me:$LINENO: result: no" >&5
16021 echo "${ECHO_T}no" >&6
16022 fi
16023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16024
16025 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
16026 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
16027 cat >conftest.$ac_ext <<_ACEOF
16028 /* confdefs.h.  */
16029 _ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h.  */
16033 #include <netinet/in.h>
16034 int
16035 main ()
16036 {
16037 struct sockaddr_in6 addr6;
16038   ;
16039   return 0;
16040 }
16041 _ACEOF
16042 rm -f conftest.$ac_objext
16043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16044   (eval $ac_compile) 2>conftest.er1
16045   ac_status=$?
16046   grep -v '^ *+' conftest.er1 >conftest.err
16047   rm -f conftest.er1
16048   cat conftest.err >&5
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); } &&
16051          { ac_try='test -z "$ac_c_werror_flag"
16052                          || test ! -s conftest.err'
16053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054   (eval $ac_try) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; } &&
16058          { ac_try='test -s conftest.$ac_objext'
16059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060   (eval $ac_try) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; }; then
16064
16065 cat >>confdefs.h <<\_ACEOF
16066 #define HAVE_INET6 1
16067 _ACEOF
16068
16069    echo "$as_me:$LINENO: result: yes" >&5
16070 echo "${ECHO_T}yes" >&6
16071 else
16072   echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 echo "$as_me:$LINENO: result: no" >&5
16076 echo "${ECHO_T}no" >&6
16077 fi
16078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16079
16080 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16081 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088 #define _POSIX_PII_SOCKET
16089 #include <sys/types.h>
16090 #include <sys/socket.h>
16091 int
16092 main ()
16093 {
16094 socklen_t x = 5;
16095   ;
16096   return 0;
16097 }
16098 _ACEOF
16099 rm -f conftest.$ac_objext
16100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16101   (eval $ac_compile) 2>conftest.er1
16102   ac_status=$?
16103   grep -v '^ *+' conftest.er1 >conftest.err
16104   rm -f conftest.er1
16105   cat conftest.err >&5
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } &&
16108          { ac_try='test -z "$ac_c_werror_flag"
16109                          || test ! -s conftest.err'
16110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111   (eval $ac_try) 2>&5
16112   ac_status=$?
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); }; } &&
16115          { ac_try='test -s conftest.$ac_objext'
16116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117   (eval $ac_try) 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); }; }; then
16121
16122 cat >>confdefs.h <<\_ACEOF
16123 #define HAVE_SOCKLEN_T 1
16124 _ACEOF
16125
16126    echo "$as_me:$LINENO: result: yes" >&5
16127 echo "${ECHO_T}yes" >&6
16128 else
16129   echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132 echo "$as_me:$LINENO: result: no" >&5
16133 echo "${ECHO_T}no" >&6
16134 fi
16135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16136
16137 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16138 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
16139 cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h.  */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h.  */
16145 #include <time.h>
16146 int
16147 main ()
16148 {
16149 struct tm tim; tim.tm_gmtoff = 0;
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 rm -f conftest.$ac_objext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16156   (eval $ac_compile) 2>conftest.er1
16157   ac_status=$?
16158   grep -v '^ *+' conftest.er1 >conftest.err
16159   rm -f conftest.er1
16160   cat conftest.err >&5
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); } &&
16163          { ac_try='test -z "$ac_c_werror_flag"
16164                          || test ! -s conftest.err'
16165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166   (eval $ac_try) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; } &&
16170          { ac_try='test -s conftest.$ac_objext'
16171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172   (eval $ac_try) 2>&5
16173   ac_status=$?
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); }; }; then
16176
16177 cat >>confdefs.h <<\_ACEOF
16178 #define STRUCT_TM_HAS_GMTOFF 1
16179 _ACEOF
16180
16181    echo "$as_me:$LINENO: result: yes" >&5
16182 echo "${ECHO_T}yes" >&6
16183 else
16184   echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16186
16187 echo "$as_me:$LINENO: result: no" >&5
16188 echo "${ECHO_T}no" >&6
16189    echo "$as_me:$LINENO: checking for global timezone variable" >&5
16190 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16191                cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197 #include <time.h>
16198 int
16199 main ()
16200 {
16201 void i(){long z2 = 2*timezone;}
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208   (eval $ac_compile) 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } &&
16215          { ac_try='test -z "$ac_c_werror_flag"
16216                          || test ! -s conftest.err'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; } &&
16222          { ac_try='test -s conftest.$ac_objext'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; }; then
16228
16229 cat >>confdefs.h <<\_ACEOF
16230 #define HAVE_TIMEZONE 1
16231 _ACEOF
16232
16233       echo "$as_me:$LINENO: result: yes" >&5
16234 echo "${ECHO_T}yes" >&6
16235 else
16236   echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239 echo "$as_me:$LINENO: result: no" >&5
16240 echo "${ECHO_T}no" >&6
16241        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16242 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16243               cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 #include <time.h>
16250 int
16251 main ()
16252 {
16253 long z2 = _timezone;
16254   ;
16255   return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16260   (eval $ac_compile) 2>conftest.er1
16261   ac_status=$?
16262   grep -v '^ *+' conftest.er1 >conftest.err
16263   rm -f conftest.er1
16264   cat conftest.err >&5
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } &&
16267          { ac_try='test -z "$ac_c_werror_flag"
16268                          || test ! -s conftest.err'
16269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270   (eval $ac_try) 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); }; } &&
16274          { ac_try='test -s conftest.$ac_objext'
16275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276   (eval $ac_try) 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); }; }; then
16280
16281 cat >>confdefs.h <<\_ACEOF
16282 #define HAVE_UNDERSCORE_TIMEZONE 1
16283 _ACEOF
16284
16285           echo "$as_me:$LINENO: result: yes" >&5
16286 echo "${ECHO_T}yes" >&6
16287 else
16288   echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291 echo "$as_me:$LINENO: result: no" >&5
16292 echo "${ECHO_T}no" >&6
16293 fi
16294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16295 fi
16296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16297 fi
16298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16299
16300 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16301 # for constant arguments.  Useless!
16302 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16303 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16304 if test "${ac_cv_working_alloca_h+set}" = set; then
16305   echo $ECHO_N "(cached) $ECHO_C" >&6
16306 else
16307   if test x$gcc_no_link = xyes; then
16308   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16310    { (exit 1); exit 1; }; }
16311 fi
16312 cat >conftest.$ac_ext <<_ACEOF
16313 /* confdefs.h.  */
16314 _ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h.  */
16318 #include <alloca.h>
16319 int
16320 main ()
16321 {
16322 char *p = (char *) alloca (2 * sizeof (int));
16323   ;
16324   return 0;
16325 }
16326 _ACEOF
16327 rm -f conftest.$ac_objext conftest$ac_exeext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16329   (eval $ac_link) 2>conftest.er1
16330   ac_status=$?
16331   grep -v '^ *+' conftest.er1 >conftest.err
16332   rm -f conftest.er1
16333   cat conftest.err >&5
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); } &&
16336          { ac_try='test -z "$ac_c_werror_flag"
16337                          || test ! -s conftest.err'
16338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339   (eval $ac_try) 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); }; } &&
16343          { ac_try='test -s conftest$ac_exeext'
16344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345   (eval $ac_try) 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; }; then
16349   ac_cv_working_alloca_h=yes
16350 else
16351   echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354 ac_cv_working_alloca_h=no
16355 fi
16356 rm -f conftest.err conftest.$ac_objext \
16357       conftest$ac_exeext conftest.$ac_ext
16358 fi
16359 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16360 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16361 if test $ac_cv_working_alloca_h = yes; then
16362
16363 cat >>confdefs.h <<\_ACEOF
16364 #define HAVE_ALLOCA_H 1
16365 _ACEOF
16366
16367 fi
16368
16369 echo "$as_me:$LINENO: checking for alloca" >&5
16370 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16371 if test "${ac_cv_func_alloca_works+set}" = set; then
16372   echo $ECHO_N "(cached) $ECHO_C" >&6
16373 else
16374   if test x$gcc_no_link = xyes; then
16375   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16376 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16377    { (exit 1); exit 1; }; }
16378 fi
16379 cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h.  */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h.  */
16385 #ifdef __GNUC__
16386 # define alloca __builtin_alloca
16387 #else
16388 # ifdef _MSC_VER
16389 #  include <malloc.h>
16390 #  define alloca _alloca
16391 # else
16392 #  if HAVE_ALLOCA_H
16393 #   include <alloca.h>
16394 #  else
16395 #   ifdef _AIX
16396  #pragma alloca
16397 #   else
16398 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16399 char *alloca ();
16400 #    endif
16401 #   endif
16402 #  endif
16403 # endif
16404 #endif
16405
16406 int
16407 main ()
16408 {
16409 char *p = (char *) alloca (1);
16410   ;
16411   return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest.$ac_objext conftest$ac_exeext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16416   (eval $ac_link) 2>conftest.er1
16417   ac_status=$?
16418   grep -v '^ *+' conftest.er1 >conftest.err
16419   rm -f conftest.er1
16420   cat conftest.err >&5
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); } &&
16423          { ac_try='test -z "$ac_c_werror_flag"
16424                          || test ! -s conftest.err'
16425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426   (eval $ac_try) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; } &&
16430          { ac_try='test -s conftest$ac_exeext'
16431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432   (eval $ac_try) 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   ac_cv_func_alloca_works=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_cv_func_alloca_works=no
16442 fi
16443 rm -f conftest.err conftest.$ac_objext \
16444       conftest$ac_exeext conftest.$ac_ext
16445 fi
16446 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16447 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16448
16449 if test $ac_cv_func_alloca_works = yes; then
16450
16451 cat >>confdefs.h <<\_ACEOF
16452 #define HAVE_ALLOCA 1
16453 _ACEOF
16454
16455 else
16456   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16457 # that cause trouble.  Some versions do not even contain alloca or
16458 # contain a buggy version.  If you still want to use their alloca,
16459 # use ar to extract alloca.o from them instead of compiling alloca.c.
16460
16461 ALLOCA=alloca.$ac_objext
16462
16463 cat >>confdefs.h <<\_ACEOF
16464 #define C_ALLOCA 1
16465 _ACEOF
16466
16467
16468 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16469 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16470 if test "${ac_cv_os_cray+set}" = set; then
16471   echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473   cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h.  */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h.  */
16479 #if defined(CRAY) && ! defined(CRAY2)
16480 webecray
16481 #else
16482 wenotbecray
16483 #endif
16484
16485 _ACEOF
16486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16487   $EGREP "webecray" >/dev/null 2>&1; then
16488   ac_cv_os_cray=yes
16489 else
16490   ac_cv_os_cray=no
16491 fi
16492 rm -f conftest*
16493
16494 fi
16495 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16496 echo "${ECHO_T}$ac_cv_os_cray" >&6
16497 if test $ac_cv_os_cray = yes; then
16498   for ac_func in _getb67 GETB67 getb67; do
16499     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16500 echo "$as_me:$LINENO: checking for $ac_func" >&5
16501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16502 if eval "test \"\${$as_ac_var+set}\" = set"; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505   if test x$gcc_no_link = xyes; then
16506   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16507 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16508    { (exit 1); exit 1; }; }
16509 fi
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16518 #define $ac_func innocuous_$ac_func
16519
16520 /* System header to define __stub macros and hopefully few prototypes,
16521     which can conflict with char $ac_func (); below.
16522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16523     <limits.h> exists even on freestanding compilers.  */
16524
16525 #ifdef __STDC__
16526 # include <limits.h>
16527 #else
16528 # include <assert.h>
16529 #endif
16530
16531 #undef $ac_func
16532
16533 /* Override any gcc2 internal prototype to avoid an error.  */
16534 #ifdef __cplusplus
16535 extern "C"
16536 {
16537 #endif
16538 /* We use char because int might match the return type of a gcc2
16539    builtin and then its argument prototype would still apply.  */
16540 char $ac_func ();
16541 /* The GNU C library defines this for functions which it implements
16542     to always fail with ENOSYS.  Some functions are actually named
16543     something starting with __ and the normal name is an alias.  */
16544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16545 choke me
16546 #else
16547 char (*f) () = $ac_func;
16548 #endif
16549 #ifdef __cplusplus
16550 }
16551 #endif
16552
16553 int
16554 main ()
16555 {
16556 return f != $ac_func;
16557   ;
16558   return 0;
16559 }
16560 _ACEOF
16561 rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16563   (eval $ac_link) 2>conftest.er1
16564   ac_status=$?
16565   grep -v '^ *+' conftest.er1 >conftest.err
16566   rm -f conftest.er1
16567   cat conftest.err >&5
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); } &&
16570          { ac_try='test -z "$ac_c_werror_flag"
16571                          || test ! -s conftest.err'
16572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573   (eval $ac_try) 2>&5
16574   ac_status=$?
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); }; } &&
16577          { ac_try='test -s conftest$ac_exeext'
16578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579   (eval $ac_try) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); }; }; then
16583   eval "$as_ac_var=yes"
16584 else
16585   echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588 eval "$as_ac_var=no"
16589 fi
16590 rm -f conftest.err conftest.$ac_objext \
16591       conftest$ac_exeext conftest.$ac_ext
16592 fi
16593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16595 if test `eval echo '${'$as_ac_var'}'` = yes; then
16596
16597 cat >>confdefs.h <<_ACEOF
16598 #define CRAY_STACKSEG_END $ac_func
16599 _ACEOF
16600
16601     break
16602 fi
16603
16604   done
16605 fi
16606
16607 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16608 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16609 if test "${ac_cv_c_stack_direction+set}" = set; then
16610   echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612   if test "$cross_compiling" = yes; then
16613   ac_cv_c_stack_direction=0
16614 else
16615   cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621 int
16622 find_stack_direction ()
16623 {
16624   static char *addr = 0;
16625   auto char dummy;
16626   if (addr == 0)
16627     {
16628       addr = &dummy;
16629       return find_stack_direction ();
16630     }
16631   else
16632     return (&dummy > addr) ? 1 : -1;
16633 }
16634
16635 int
16636 main ()
16637 {
16638   exit (find_stack_direction () < 0);
16639 }
16640 _ACEOF
16641 rm -f conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643   (eval $ac_link) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648   (eval $ac_try) 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); }; }; then
16652   ac_cv_c_stack_direction=1
16653 else
16654   echo "$as_me: program exited with status $ac_status" >&5
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ( exit $ac_status )
16659 ac_cv_c_stack_direction=-1
16660 fi
16661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16662 fi
16663 fi
16664 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16665 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16666
16667 cat >>confdefs.h <<_ACEOF
16668 #define STACK_DIRECTION $ac_cv_c_stack_direction
16669 _ACEOF
16670
16671
16672 fi
16673
16674
16675 for ac_prog in perl
16676 do
16677   # Extract the first word of "$ac_prog", so it can be a program name with args.
16678 set dummy $ac_prog; ac_word=$2
16679 echo "$as_me:$LINENO: checking for $ac_word" >&5
16680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16681 if test "${ac_cv_prog_PERL+set}" = set; then
16682   echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684   if test -n "$PERL"; then
16685   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16686 else
16687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16688 for as_dir in $PATH
16689 do
16690   IFS=$as_save_IFS
16691   test -z "$as_dir" && as_dir=.
16692   for ac_exec_ext in '' $ac_executable_extensions; do
16693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16694     ac_cv_prog_PERL="$ac_prog"
16695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16696     break 2
16697   fi
16698 done
16699 done
16700
16701 fi
16702 fi
16703 PERL=$ac_cv_prog_PERL
16704 if test -n "$PERL"; then
16705   echo "$as_me:$LINENO: result: $PERL" >&5
16706 echo "${ECHO_T}$PERL" >&6
16707 else
16708   echo "$as_me:$LINENO: result: no" >&5
16709 echo "${ECHO_T}no" >&6
16710 fi
16711
16712   test -n "$PERL" && break
16713 done
16714 test -n "$PERL" || PERL="false"
16715
16716
16717 SYSDEP_SOURCES=
16718 SIGNAL_HANDLER_AUX=
16719
16720 case "${host}" in
16721  i?86-*-linux*)
16722     SIGNAL_HANDLER=include/i386-signal.h
16723     ;;
16724  sparc*-sun-solaris*)
16725     SIGNAL_HANDLER=include/sparc-signal.h
16726     ;;
16727 # ia64-*)
16728 #    SYSDEP_SOURCES=sysdep/ia64.c
16729 #    test -d sysdep || mkdir sysdep
16730 #    ;;
16731  hppa*-*-linux*)
16732     SIGNAL_HANDLER=include/pa-signal.h
16733     ;;
16734  hppa*-hp-hpux*)
16735     SIGNAL_HANDLER=include/hppa-signal.h
16736     ;;
16737  ia64-*-linux*)
16738     SIGNAL_HANDLER=include/dwarf2-signal.h
16739     ;;
16740  powerpc*-*-linux*)
16741     SIGNAL_HANDLER=include/powerpc-signal.h
16742     ;;
16743  alpha*-*-linux*)
16744     SIGNAL_HANDLER=include/dwarf2-signal.h
16745     ;;
16746  s390*-*-linux*)
16747     SIGNAL_HANDLER=include/s390-signal.h
16748     ;;
16749  x86_64*-*-linux*)
16750     SIGNAL_HANDLER=include/x86_64-signal.h
16751     SIGNAL_HANDLER_AUX=include/i386-signal.h
16752     ;;
16753  sparc*-*-linux*)
16754     SIGNAL_HANDLER=include/dwarf2-signal.h
16755     ;;
16756  sh*-*-linux*)
16757     SIGNAL_HANDLER=include/sh-signal.h
16758     ;;
16759  *mingw*)
16760     SIGNAL_HANDLER=include/win32-signal.h
16761     ;;
16762  mips*-*-linux*)
16763     SIGNAL_HANDLER=include/mips-signal.h
16764     ;;
16765  powerpc*-*-darwin*)
16766     SIGNAL_HANDLER=include/darwin-signal.h
16767     ;;
16768  *)
16769     SIGNAL_HANDLER=include/default-signal.h
16770     ;;
16771 esac
16772
16773 # If we're using sjlj exceptions, forget what we just learned.
16774 if test "$enable_sjlj_exceptions" = yes; then
16775    SIGNAL_HANDLER=include/default-signal.h
16776    SIGNAL_HANDLER_AUX=
16777 fi
16778
16779
16780
16781 if test -z "$SIGNAL_HANDLER_AUX"; then
16782   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16783 fi
16784
16785                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16786
16787
16788 if test "${multilib}" = "yes"; then
16789   multilib_arg="--enable-multilib"
16790 else
16791   multilib_arg=
16792 fi
16793
16794 # See if we support thread-local storage.
16795
16796    # Check whether --enable-tls or --disable-tls was given.
16797 if test "${enable_tls+set}" = set; then
16798   enableval="$enable_tls"
16799
16800       case "$enableval" in
16801        yes|no) ;;
16802        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16803 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16804    { (exit 1); exit 1; }; } ;;
16805       esac
16806
16807 else
16808   enable_tls=yes
16809 fi;
16810
16811   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16812 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16813 if test "${have_tls+set}" = set; then
16814   echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816
16817     if test "$cross_compiling" = yes; then
16818   if test x$gcc_no_link = xyes; then
16819   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16821    { (exit 1); exit 1; }; }
16822 fi
16823 cat >conftest.$ac_ext <<_ACEOF
16824 __thread int a; int b; int main() { return a = b; }
16825 _ACEOF
16826 rm -f conftest.$ac_objext conftest$ac_exeext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828   (eval $ac_link) 2>conftest.er1
16829   ac_status=$?
16830   grep -v '^ *+' conftest.er1 >conftest.err
16831   rm -f conftest.er1
16832   cat conftest.err >&5
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } &&
16835          { ac_try='test -z "$ac_c_werror_flag"
16836                          || test ! -s conftest.err'
16837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838   (eval $ac_try) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }; } &&
16842          { ac_try='test -s conftest$ac_exeext'
16843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844   (eval $ac_try) 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); }; }; then
16848   have_tls=yes
16849 else
16850   echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16852
16853 have_tls=no
16854 fi
16855 rm -f conftest.err conftest.$ac_objext \
16856       conftest$ac_exeext conftest.$ac_ext
16857
16858 else
16859   cat >conftest.$ac_ext <<_ACEOF
16860 __thread int a; int b; int main() { return a = b; }
16861 _ACEOF
16862 rm -f conftest$ac_exeext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864   (eval $ac_link) 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869   (eval $ac_try) 2>&5
16870   ac_status=$?
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); }; }; then
16873                       save_LDFLAGS="$LDFLAGS"
16874       LDFLAGS="-static $LDFLAGS"
16875       if test x$gcc_no_link = xyes; then
16876   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16878    { (exit 1); exit 1; }; }
16879 fi
16880 cat >conftest.$ac_ext <<_ACEOF
16881 int main() { return 0; }
16882 _ACEOF
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16885   (eval $ac_link) 2>conftest.er1
16886   ac_status=$?
16887   grep -v '^ *+' conftest.er1 >conftest.err
16888   rm -f conftest.er1
16889   cat conftest.err >&5
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); } &&
16892          { ac_try='test -z "$ac_c_werror_flag"
16893                          || test ! -s conftest.err'
16894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895   (eval $ac_try) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; } &&
16899          { ac_try='test -s conftest$ac_exeext'
16900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901   (eval $ac_try) 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); }; }; then
16905   if test "$cross_compiling" = yes; then
16906   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16907 See \`config.log' for more details." >&5
16908 echo "$as_me: error: cannot run test program while cross compiling
16909 See \`config.log' for more details." >&2;}
16910    { (exit 1); exit 1; }; }
16911 else
16912   cat >conftest.$ac_ext <<_ACEOF
16913 __thread int a; int b; int main() { return a = b; }
16914 _ACEOF
16915 rm -f conftest$ac_exeext
16916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16917   (eval $ac_link) 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922   (eval $ac_try) 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); }; }; then
16926   have_tls=yes
16927 else
16928   echo "$as_me: program exited with status $ac_status" >&5
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16931
16932 ( exit $ac_status )
16933 have_tls=no
16934 fi
16935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16936 fi
16937 else
16938   echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16940
16941 have_tls=yes
16942 fi
16943 rm -f conftest.err conftest.$ac_objext \
16944       conftest$ac_exeext conftest.$ac_ext
16945       LDFLAGS="$save_LDFLAGS"
16946 else
16947   echo "$as_me: program exited with status $ac_status" >&5
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 ( exit $ac_status )
16952 have_tls=no
16953 fi
16954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16955 fi
16956 fi
16957 echo "$as_me:$LINENO: result: $have_tls" >&5
16958 echo "${ECHO_T}$have_tls" >&6
16959   if test "$enable_tls $have_tls" = "yes yes"; then
16960
16961 cat >>confdefs.h <<\_ACEOF
16962 #define HAVE_TLS 1
16963 _ACEOF
16964
16965   fi
16966
16967 # For _Unwind_GetIPInfo.
16968
16969
16970
16971   ac_ext=cc
16972 ac_cpp='$CXXCPP $CPPFLAGS'
16973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16976
16977   ac_save_CXXFLAGS="$CXXFLAGS"
16978   CXXFLAGS="$CXXFLAGS -fno-exceptions"
16979   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16980 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16981   if test "${gcc_cv_getipinfo+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984
16985   if test x$gcc_no_link = xyes; then
16986   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16988    { (exit 1); exit 1; }; }
16989 fi
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h.  */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h.  */
16996 extern "C" { extern void _Unwind_GetIPInfo(); }
16997 int
16998 main ()
16999 {
17000 _Unwind_GetIPInfo();
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007   (eval $ac_link) 2>conftest.er1
17008   ac_status=$?
17009   grep -v '^ *+' conftest.er1 >conftest.err
17010   rm -f conftest.er1
17011   cat conftest.err >&5
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } &&
17014          { ac_try='test -z "$ac_cxx_werror_flag"
17015                          || test ! -s conftest.err'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; } &&
17021          { ac_try='test -s conftest$ac_exeext'
17022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023   (eval $ac_try) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; }; then
17027   gcc_cv_getipinfo=yes
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 gcc_cv_getipinfo=no
17033 fi
17034 rm -f conftest.err conftest.$ac_objext \
17035       conftest$ac_exeext conftest.$ac_ext
17036
17037 fi
17038
17039   if test $gcc_cv_getipinfo = yes; then
17040
17041 cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_GETIPINFO 1
17043 _ACEOF
17044
17045   fi
17046   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
17047 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
17048   CXXFLAGS="$ac_save_CXXFLAGS"
17049   ac_ext=c
17050 ac_cpp='$CPP $CPPFLAGS'
17051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17054
17055
17056
17057 # See if linker supports anonymous version scripts.
17058 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
17059 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
17060 if test "${libjava_cv_anon_version_script+set}" = set; then
17061   echo $ECHO_N "(cached) $ECHO_C" >&6
17062 else
17063   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
17064    libjava_cv_anon_version_script=no
17065    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
17066    echo '{ global: globalsymb*; local: *; };' > conftest.map
17067    if test x$gcc_no_link = xyes; then
17068   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17069 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17070    { (exit 1); exit 1; }; }
17071 fi
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h.  */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h.  */
17078 void globalsymbol (void) {} void localsymbol (void) {}
17079 int
17080 main ()
17081 {
17082
17083   ;
17084   return 0;
17085 }
17086 _ACEOF
17087 rm -f conftest.$ac_objext conftest$ac_exeext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17089   (eval $ac_link) 2>conftest.er1
17090   ac_status=$?
17091   grep -v '^ *+' conftest.er1 >conftest.err
17092   rm -f conftest.er1
17093   cat conftest.err >&5
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); } &&
17096          { ac_try='test -z "$ac_c_werror_flag"
17097                          || test ! -s conftest.err'
17098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099   (eval $ac_try) 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); }; } &&
17103          { ac_try='test -s conftest$ac_exeext'
17104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105   (eval $ac_try) 2>&5
17106   ac_status=$?
17107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108   (exit $ac_status); }; }; then
17109   libjava_cv_anon_version_script=yes
17110 else
17111   echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 fi
17115 rm -f conftest.err conftest.$ac_objext \
17116       conftest$ac_exeext conftest.$ac_ext
17117    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
17118
17119 fi
17120 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
17121 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
17122
17123
17124 if test "$libjava_cv_anon_version_script" = yes; then
17125   ANONVERSCRIPT_TRUE=
17126   ANONVERSCRIPT_FALSE='#'
17127 else
17128   ANONVERSCRIPT_TRUE='#'
17129   ANONVERSCRIPT_FALSE=
17130 fi
17131
17132
17133 # Check if linker supports static linking on a per library basis
17134 LD_START_STATIC_SPEC=
17135 LD_FINISH_STATIC_SPEC=
17136 if $LD --help 2>&1 | grep -q -e -call_shared ; then
17137   if $LD --help 2>&1 | grep -q -e -non_shared ; then
17138     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
17139     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
17140   fi
17141 fi
17142
17143
17144
17145 here=`${PWDCMD-pwd}`
17146
17147
17148 # We get this from the environment.
17149
17150
17151                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17152
17153
17154           ac_config_files="$ac_config_files scripts/jar"
17155
17156
17157           ac_config_commands="$ac_config_commands default"
17158
17159
17160 cat >confcache <<\_ACEOF
17161 # This file is a shell script that caches the results of configure
17162 # tests run on this system so they can be shared between configure
17163 # scripts and configure runs, see configure's option --config-cache.
17164 # It is not useful on other systems.  If it contains results you don't
17165 # want to keep, you may remove or edit it.
17166 #
17167 # config.status only pays attention to the cache file if you give it
17168 # the --recheck option to rerun configure.
17169 #
17170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17172 # following values.
17173
17174 _ACEOF
17175
17176 # The following way of writing the cache mishandles newlines in values,
17177 # but we know of no workaround that is simple, portable, and efficient.
17178 # So, don't put newlines in cache variables' values.
17179 # Ultrix sh set writes to stderr and can't be redirected directly,
17180 # and sets the high bit in the cache file unless we assign to the vars.
17181 {
17182   (set) 2>&1 |
17183     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17184     *ac_space=\ *)
17185       # `set' does not quote correctly, so add quotes (double-quote
17186       # substitution turns \\\\ into \\, and sed turns \\ into \).
17187       sed -n \
17188         "s/'/'\\\\''/g;
17189           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17190       ;;
17191     *)
17192       # `set' quotes correctly as required by POSIX, so do not add quotes.
17193       sed -n \
17194         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17195       ;;
17196     esac;
17197 } |
17198   sed '
17199      t clear
17200      : clear
17201      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17202      t end
17203      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17204      : end' >>confcache
17205 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17206   if test -w $cache_file; then
17207     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17208     cat confcache >$cache_file
17209   else
17210     echo "not updating unwritable cache $cache_file"
17211   fi
17212 fi
17213 rm -f confcache
17214
17215 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17216 # Let make expand exec_prefix.
17217 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17218
17219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17221 # trailing colons and then remove the whole line if VPATH becomes empty
17222 # (actually we leave an empty line to preserve line numbers).
17223 if test "x$srcdir" = x.; then
17224   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17225 s/:*\$(srcdir):*/:/;
17226 s/:*\${srcdir}:*/:/;
17227 s/:*@srcdir@:*/:/;
17228 s/^\([^=]*=[     ]*\):*/\1/;
17229 s/:*$//;
17230 s/^[^=]*=[       ]*$//;
17231 }'
17232 fi
17233
17234 DEFS=-DHAVE_CONFIG_H
17235
17236 ac_libobjs=
17237 ac_ltlibobjs=
17238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17239   # 1. Remove the extension, and $U if already installed.
17240   ac_i=`echo "$ac_i" |
17241          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17242   # 2. Add them.
17243   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17244   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17245 done
17246 LIBOBJS=$ac_libobjs
17247
17248 LTLIBOBJS=$ac_ltlibobjs
17249
17250
17251 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17252   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17253 Usually this means the macro was only invoked conditionally." >&5
17254 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17255 Usually this means the macro was only invoked conditionally." >&2;}
17256    { (exit 1); exit 1; }; }
17257 fi
17258 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17259   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17260 Usually this means the macro was only invoked conditionally." >&5
17261 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17262 Usually this means the macro was only invoked conditionally." >&2;}
17263    { (exit 1); exit 1; }; }
17264 fi
17265 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17266   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17267 Usually this means the macro was only invoked conditionally." >&5
17268 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17269 Usually this means the macro was only invoked conditionally." >&2;}
17270    { (exit 1); exit 1; }; }
17271 fi
17272 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17273   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17274 Usually this means the macro was only invoked conditionally." >&5
17275 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17276 Usually this means the macro was only invoked conditionally." >&2;}
17277    { (exit 1); exit 1; }; }
17278 fi
17279 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17280   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17281 Usually this means the macro was only invoked conditionally." >&5
17282 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17283 Usually this means the macro was only invoked conditionally." >&2;}
17284    { (exit 1); exit 1; }; }
17285 fi
17286 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17287   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17288 Usually this means the macro was only invoked conditionally." >&5
17289 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17290 Usually this means the macro was only invoked conditionally." >&2;}
17291    { (exit 1); exit 1; }; }
17292 fi
17293 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17294   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17295 Usually this means the macro was only invoked conditionally." >&5
17296 echo "$as_me: error: conditional \"X_AWT\" was never defined.
17297 Usually this means the macro was only invoked conditionally." >&2;}
17298    { (exit 1); exit 1; }; }
17299 fi
17300 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17301   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17302 Usually this means the macro was only invoked conditionally." >&5
17303 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17304 Usually this means the macro was only invoked conditionally." >&2;}
17305    { (exit 1); exit 1; }; }
17306 fi
17307 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17308   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17309 Usually this means the macro was only invoked conditionally." >&5
17310 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17311 Usually this means the macro was only invoked conditionally." >&2;}
17312    { (exit 1); exit 1; }; }
17313 fi
17314 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17315   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17316 Usually this means the macro was only invoked conditionally." >&5
17317 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
17318 Usually this means the macro was only invoked conditionally." >&2;}
17319    { (exit 1); exit 1; }; }
17320 fi
17321 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17322   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17323 Usually this means the macro was only invoked conditionally." >&5
17324 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17325 Usually this means the macro was only invoked conditionally." >&2;}
17326    { (exit 1); exit 1; }; }
17327 fi
17328 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17329   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17330 Usually this means the macro was only invoked conditionally." >&5
17331 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17332 Usually this means the macro was only invoked conditionally." >&2;}
17333    { (exit 1); exit 1; }; }
17334 fi
17335 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17336   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17337 Usually this means the macro was only invoked conditionally." >&5
17338 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17339 Usually this means the macro was only invoked conditionally." >&2;}
17340    { (exit 1); exit 1; }; }
17341 fi
17342 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17343   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17344 Usually this means the macro was only invoked conditionally." >&5
17345 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17346 Usually this means the macro was only invoked conditionally." >&2;}
17347    { (exit 1); exit 1; }; }
17348 fi
17349 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17350   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17351 Usually this means the macro was only invoked conditionally." >&5
17352 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17353 Usually this means the macro was only invoked conditionally." >&2;}
17354    { (exit 1); exit 1; }; }
17355 fi
17356 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17357   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17358 Usually this means the macro was only invoked conditionally." >&5
17359 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17360 Usually this means the macro was only invoked conditionally." >&2;}
17361    { (exit 1); exit 1; }; }
17362 fi
17363 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17364   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17365 Usually this means the macro was only invoked conditionally." >&5
17366 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17367 Usually this means the macro was only invoked conditionally." >&2;}
17368    { (exit 1); exit 1; }; }
17369 fi
17370 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17371   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17372 Usually this means the macro was only invoked conditionally." >&5
17373 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17374 Usually this means the macro was only invoked conditionally." >&2;}
17375    { (exit 1); exit 1; }; }
17376 fi
17377 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17378   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17379 Usually this means the macro was only invoked conditionally." >&5
17380 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17381 Usually this means the macro was only invoked conditionally." >&2;}
17382    { (exit 1); exit 1; }; }
17383 fi
17384 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17385   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17386 Usually this means the macro was only invoked conditionally." >&5
17387 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17388 Usually this means the macro was only invoked conditionally." >&2;}
17389    { (exit 1); exit 1; }; }
17390 fi
17391 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17392   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17393 Usually this means the macro was only invoked conditionally." >&5
17394 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17395 Usually this means the macro was only invoked conditionally." >&2;}
17396    { (exit 1); exit 1; }; }
17397 fi
17398 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17399   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17400 Usually this means the macro was only invoked conditionally." >&5
17401 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17402 Usually this means the macro was only invoked conditionally." >&2;}
17403    { (exit 1); exit 1; }; }
17404 fi
17405 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17406   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17407 Usually this means the macro was only invoked conditionally." >&5
17408 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17409 Usually this means the macro was only invoked conditionally." >&2;}
17410    { (exit 1); exit 1; }; }
17411 fi
17412 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17413   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17414 Usually this means the macro was only invoked conditionally." >&5
17415 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17416 Usually this means the macro was only invoked conditionally." >&2;}
17417    { (exit 1); exit 1; }; }
17418 fi
17419 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17420   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17421 Usually this means the macro was only invoked conditionally." >&5
17422 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17423 Usually this means the macro was only invoked conditionally." >&2;}
17424    { (exit 1); exit 1; }; }
17425 fi
17426 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
17427   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
17428 Usually this means the macro was only invoked conditionally." >&5
17429 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
17430 Usually this means the macro was only invoked conditionally." >&2;}
17431    { (exit 1); exit 1; }; }
17432 fi
17433
17434 : ${CONFIG_STATUS=./config.status}
17435 ac_clean_files_save=$ac_clean_files
17436 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17437 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17438 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17439 cat >$CONFIG_STATUS <<_ACEOF
17440 #! $SHELL
17441 # Generated by $as_me.
17442 # Run this file to recreate the current configuration.
17443 # Compiler output produced by configure, useful for debugging
17444 # configure, is in config.log if it exists.
17445
17446 debug=false
17447 ac_cs_recheck=false
17448 ac_cs_silent=false
17449 SHELL=\${CONFIG_SHELL-$SHELL}
17450 _ACEOF
17451
17452 cat >>$CONFIG_STATUS <<\_ACEOF
17453 ## --------------------- ##
17454 ## M4sh Initialization.  ##
17455 ## --------------------- ##
17456
17457 # Be Bourne compatible
17458 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17459   emulate sh
17460   NULLCMD=:
17461   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17462   # is contrary to our usage.  Disable this feature.
17463   alias -g '${1+"$@"}'='"$@"'
17464 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17465   set -o posix
17466 fi
17467 DUALCASE=1; export DUALCASE # for MKS sh
17468
17469 # Support unset when possible.
17470 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17471   as_unset=unset
17472 else
17473   as_unset=false
17474 fi
17475
17476
17477 # Work around bugs in pre-3.0 UWIN ksh.
17478 $as_unset ENV MAIL MAILPATH
17479 PS1='$ '
17480 PS2='> '
17481 PS4='+ '
17482
17483 # NLS nuisances.
17484 for as_var in \
17485   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17486   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17487   LC_TELEPHONE LC_TIME
17488 do
17489   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17490     eval $as_var=C; export $as_var
17491   else
17492     $as_unset $as_var
17493   fi
17494 done
17495
17496 # Required to use basename.
17497 if expr a : '\(a\)' >/dev/null 2>&1; then
17498   as_expr=expr
17499 else
17500   as_expr=false
17501 fi
17502
17503 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17504   as_basename=basename
17505 else
17506   as_basename=false
17507 fi
17508
17509
17510 # Name of the executable.
17511 as_me=`$as_basename "$0" ||
17512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17513          X"$0" : 'X\(//\)$' \| \
17514          X"$0" : 'X\(/\)$' \| \
17515          .     : '\(.\)' 2>/dev/null ||
17516 echo X/"$0" |
17517     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17518           /^X\/\(\/\/\)$/{ s//\1/; q; }
17519           /^X\/\(\/\).*/{ s//\1/; q; }
17520           s/.*/./; q'`
17521
17522
17523 # PATH needs CR, and LINENO needs CR and PATH.
17524 # Avoid depending upon Character Ranges.
17525 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17526 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17527 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17528 as_cr_digits='0123456789'
17529 as_cr_alnum=$as_cr_Letters$as_cr_digits
17530
17531 # The user is always right.
17532 if test "${PATH_SEPARATOR+set}" != set; then
17533   echo "#! /bin/sh" >conf$$.sh
17534   echo  "exit 0"   >>conf$$.sh
17535   chmod +x conf$$.sh
17536   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17537     PATH_SEPARATOR=';'
17538   else
17539     PATH_SEPARATOR=:
17540   fi
17541   rm -f conf$$.sh
17542 fi
17543
17544
17545   as_lineno_1=$LINENO
17546   as_lineno_2=$LINENO
17547   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17548   test "x$as_lineno_1" != "x$as_lineno_2" &&
17549   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17550   # Find who we are.  Look in the path if we contain no path at all
17551   # relative or not.
17552   case $0 in
17553     *[\\/]* ) as_myself=$0 ;;
17554     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17555 for as_dir in $PATH
17556 do
17557   IFS=$as_save_IFS
17558   test -z "$as_dir" && as_dir=.
17559   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17560 done
17561
17562        ;;
17563   esac
17564   # We did not find ourselves, most probably we were run as `sh COMMAND'
17565   # in which case we are not to be found in the path.
17566   if test "x$as_myself" = x; then
17567     as_myself=$0
17568   fi
17569   if test ! -f "$as_myself"; then
17570     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17571 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17572    { (exit 1); exit 1; }; }
17573   fi
17574   case $CONFIG_SHELL in
17575   '')
17576     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17577 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17578 do
17579   IFS=$as_save_IFS
17580   test -z "$as_dir" && as_dir=.
17581   for as_base in sh bash ksh sh5; do
17582          case $as_dir in
17583          /*)
17584            if ("$as_dir/$as_base" -c '
17585   as_lineno_1=$LINENO
17586   as_lineno_2=$LINENO
17587   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17588   test "x$as_lineno_1" != "x$as_lineno_2" &&
17589   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17590              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17591              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17592              CONFIG_SHELL=$as_dir/$as_base
17593              export CONFIG_SHELL
17594              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17595            fi;;
17596          esac
17597        done
17598 done
17599 ;;
17600   esac
17601
17602   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17603   # uniformly replaced by the line number.  The first 'sed' inserts a
17604   # line-number line before each line; the second 'sed' does the real
17605   # work.  The second script uses 'N' to pair each line-number line
17606   # with the numbered line, and appends trailing '-' during
17607   # substitution so that $LINENO is not a special case at line end.
17608   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17609   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17610   sed '=' <$as_myself |
17611     sed '
17612       N
17613       s,$,-,
17614       : loop
17615       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17616       t loop
17617       s,-$,,
17618       s,^['$as_cr_digits']*\n,,
17619     ' >$as_me.lineno &&
17620   chmod +x $as_me.lineno ||
17621     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17622 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17623    { (exit 1); exit 1; }; }
17624
17625   # Don't try to exec as it changes $[0], causing all sort of problems
17626   # (the dirname of $[0] is not the place where we might find the
17627   # original and so on.  Autoconf is especially sensible to this).
17628   . ./$as_me.lineno
17629   # Exit status is that of the last command.
17630   exit
17631 }
17632
17633
17634 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17635   *c*,-n*) ECHO_N= ECHO_C='
17636 ' ECHO_T='      ' ;;
17637   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17638   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17639 esac
17640
17641 if expr a : '\(a\)' >/dev/null 2>&1; then
17642   as_expr=expr
17643 else
17644   as_expr=false
17645 fi
17646
17647 rm -f conf$$ conf$$.exe conf$$.file
17648 echo >conf$$.file
17649 if ln -s conf$$.file conf$$ 2>/dev/null; then
17650   # We could just check for DJGPP; but this test a) works b) is more generic
17651   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17652   if test -f conf$$.exe; then
17653     # Don't use ln at all; we don't have any links
17654     as_ln_s='cp -p'
17655   else
17656     as_ln_s='ln -s'
17657   fi
17658 elif ln conf$$.file conf$$ 2>/dev/null; then
17659   as_ln_s=ln
17660 else
17661   as_ln_s='cp -p'
17662 fi
17663 rm -f conf$$ conf$$.exe conf$$.file
17664
17665 if mkdir -p . 2>/dev/null; then
17666   as_mkdir_p=:
17667 else
17668   test -d ./-p && rmdir ./-p
17669   as_mkdir_p=false
17670 fi
17671
17672 as_executable_p="test -f"
17673
17674 # Sed expression to map a string onto a valid CPP name.
17675 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17676
17677 # Sed expression to map a string onto a valid variable name.
17678 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17679
17680
17681 # IFS
17682 # We need space, tab and new line, in precisely that order.
17683 as_nl='
17684 '
17685 IFS="   $as_nl"
17686
17687 # CDPATH.
17688 $as_unset CDPATH
17689
17690 exec 6>&1
17691
17692 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17693 # report actual input values of CONFIG_FILES etc. instead of their
17694 # values after options handling.  Logging --version etc. is OK.
17695 exec 5>>config.log
17696 {
17697   echo
17698   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17699 ## Running $as_me. ##
17700 _ASBOX
17701 } >&5
17702 cat >&5 <<_CSEOF
17703
17704 This file was extended by libjava $as_me version-unused, which was
17705 generated by GNU Autoconf 2.59.  Invocation command line was
17706
17707   CONFIG_FILES    = $CONFIG_FILES
17708   CONFIG_HEADERS  = $CONFIG_HEADERS
17709   CONFIG_LINKS    = $CONFIG_LINKS
17710   CONFIG_COMMANDS = $CONFIG_COMMANDS
17711   $ $0 $@
17712
17713 _CSEOF
17714 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17715 echo >&5
17716 _ACEOF
17717
17718 # Files that config.status was made for.
17719 if test -n "$ac_config_files"; then
17720   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17721 fi
17722
17723 if test -n "$ac_config_headers"; then
17724   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17725 fi
17726
17727 if test -n "$ac_config_links"; then
17728   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17729 fi
17730
17731 if test -n "$ac_config_commands"; then
17732   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17733 fi
17734
17735 cat >>$CONFIG_STATUS <<\_ACEOF
17736
17737 ac_cs_usage="\
17738 \`$as_me' instantiates files from templates according to the
17739 current configuration.
17740
17741 Usage: $0 [OPTIONS] [FILE]...
17742
17743   -h, --help       print this help, then exit
17744   -V, --version    print version number, then exit
17745   -q, --quiet      do not print progress messages
17746   -d, --debug      don't remove temporary files
17747       --recheck    update $as_me by reconfiguring in the same conditions
17748   --file=FILE[:TEMPLATE]
17749                    instantiate the configuration file FILE
17750   --header=FILE[:TEMPLATE]
17751                    instantiate the configuration header FILE
17752
17753 Configuration files:
17754 $config_files
17755
17756 Configuration headers:
17757 $config_headers
17758
17759 Configuration links:
17760 $config_links
17761
17762 Configuration commands:
17763 $config_commands
17764
17765 Report bugs to <bug-autoconf@gnu.org>."
17766 _ACEOF
17767
17768 cat >>$CONFIG_STATUS <<_ACEOF
17769 ac_cs_version="\\
17770 libjava config.status version-unused
17771 configured by $0, generated by GNU Autoconf 2.59,
17772   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17773
17774 Copyright (C) 2003 Free Software Foundation, Inc.
17775 This config.status script is free software; the Free Software Foundation
17776 gives unlimited permission to copy, distribute and modify it."
17777 srcdir=$srcdir
17778 INSTALL="$INSTALL"
17779 _ACEOF
17780
17781 cat >>$CONFIG_STATUS <<\_ACEOF
17782 # If no file are specified by the user, then we need to provide default
17783 # value.  By we need to know if files were specified by the user.
17784 ac_need_defaults=:
17785 while test $# != 0
17786 do
17787   case $1 in
17788   --*=*)
17789     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17790     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17791     ac_shift=:
17792     ;;
17793   -*)
17794     ac_option=$1
17795     ac_optarg=$2
17796     ac_shift=shift
17797     ;;
17798   *) # This is not an option, so the user has probably given explicit
17799      # arguments.
17800      ac_option=$1
17801      ac_need_defaults=false;;
17802   esac
17803
17804   case $ac_option in
17805   # Handling of the options.
17806 _ACEOF
17807 cat >>$CONFIG_STATUS <<\_ACEOF
17808   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17809     ac_cs_recheck=: ;;
17810   --version | --vers* | -V )
17811     echo "$ac_cs_version"; exit 0 ;;
17812   --he | --h)
17813     # Conflict between --help and --header
17814     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17815 Try \`$0 --help' for more information." >&5
17816 echo "$as_me: error: ambiguous option: $1
17817 Try \`$0 --help' for more information." >&2;}
17818    { (exit 1); exit 1; }; };;
17819   --help | --hel | -h )
17820     echo "$ac_cs_usage"; exit 0 ;;
17821   --debug | --d* | -d )
17822     debug=: ;;
17823   --file | --fil | --fi | --f )
17824     $ac_shift
17825     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17826     ac_need_defaults=false;;
17827   --header | --heade | --head | --hea )
17828     $ac_shift
17829     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17830     ac_need_defaults=false;;
17831   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17832   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17833     ac_cs_silent=: ;;
17834
17835   # This is an error.
17836   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17837 Try \`$0 --help' for more information." >&5
17838 echo "$as_me: error: unrecognized option: $1
17839 Try \`$0 --help' for more information." >&2;}
17840    { (exit 1); exit 1; }; } ;;
17841
17842   *) ac_config_targets="$ac_config_targets $1" ;;
17843
17844   esac
17845   shift
17846 done
17847
17848 ac_configure_extra_args=
17849
17850 if $ac_cs_silent; then
17851   exec 6>/dev/null
17852   ac_configure_extra_args="$ac_configure_extra_args --silent"
17853 fi
17854
17855 _ACEOF
17856 cat >>$CONFIG_STATUS <<_ACEOF
17857 if \$ac_cs_recheck; then
17858   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17859   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17860 fi
17861
17862 _ACEOF
17863
17864 cat >>$CONFIG_STATUS <<_ACEOF
17865 #
17866 # INIT-COMMANDS section.
17867 #
17868
17869
17870 srcdir="$srcdir"
17871 host="$host"
17872 target="$target"
17873 with_multisubdir="$with_multisubdir"
17874 with_multisrctop="$with_multisrctop"
17875 with_target_subdir="$with_target_subdir"
17876 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17877 multi_basedir="$multi_basedir"
17878 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17879 CC="$CC"
17880 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17881 srcdir=${srcdir}
17882 host=${host}
17883 target=${target}
17884 with_multisubdir=${with_multisubdir}
17885 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17886 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17887 multi_basedir=${multi_basedir}
17888 CC="${CC}"
17889 CXX="${CXX}"
17890 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17891
17892
17893 _ACEOF
17894
17895
17896
17897 cat >>$CONFIG_STATUS <<\_ACEOF
17898 for ac_config_target in $ac_config_targets
17899 do
17900   case "$ac_config_target" in
17901   # Handling of arguments.
17902   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17903   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17904   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17905   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17906   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17907   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17908   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17909   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17910   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17911   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17912   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17913   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
17914   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17915   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17916   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17917   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
17918   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
17919   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17920   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17921   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17922   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17923   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17924   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17925   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17926   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17927   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17928   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17929   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17930   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17931   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17932   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17934    { (exit 1); exit 1; }; };;
17935   esac
17936 done
17937
17938 # If the user did not use the arguments to specify the items to instantiate,
17939 # then the envvar interface is used.  Set only those that are not.
17940 # We use the long form for the default assignment because of an extremely
17941 # bizarre bug on SunOS 4.1.3.
17942 if $ac_need_defaults; then
17943   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17944   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17945   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17946   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17947 fi
17948
17949 # Have a temporary directory for convenience.  Make it in the build tree
17950 # simply because there is no reason to put it here, and in addition,
17951 # creating and moving files from /tmp can sometimes cause problems.
17952 # Create a temporary directory, and hook for its removal unless debugging.
17953 $debug ||
17954 {
17955   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17956   trap '{ (exit 1); exit 1; }' 1 2 13 15
17957 }
17958
17959 # Create a (secure) tmp directory for tmp files.
17960
17961 {
17962   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17963   test -n "$tmp" && test -d "$tmp"
17964 }  ||
17965 {
17966   tmp=./confstat$$-$RANDOM
17967   (umask 077 && mkdir $tmp)
17968 } ||
17969 {
17970    echo "$me: cannot create a temporary directory in ." >&2
17971    { (exit 1); exit 1; }
17972 }
17973
17974 _ACEOF
17975
17976 cat >>$CONFIG_STATUS <<_ACEOF
17977
17978 #
17979 # CONFIG_FILES section.
17980 #
17981
17982 # No need to generate the scripts if there are no CONFIG_FILES.
17983 # This happens for instance when ./config.status config.h
17984 if test -n "\$CONFIG_FILES"; then
17985   # Protect against being on the right side of a sed subst in config.status.
17986   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17987    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17988 s,@SHELL@,$SHELL,;t t
17989 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17990 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17991 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17992 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17993 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17994 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17995 s,@exec_prefix@,$exec_prefix,;t t
17996 s,@prefix@,$prefix,;t t
17997 s,@program_transform_name@,$program_transform_name,;t t
17998 s,@bindir@,$bindir,;t t
17999 s,@sbindir@,$sbindir,;t t
18000 s,@libexecdir@,$libexecdir,;t t
18001 s,@datadir@,$datadir,;t t
18002 s,@sysconfdir@,$sysconfdir,;t t
18003 s,@sharedstatedir@,$sharedstatedir,;t t
18004 s,@localstatedir@,$localstatedir,;t t
18005 s,@libdir@,$libdir,;t t
18006 s,@includedir@,$includedir,;t t
18007 s,@oldincludedir@,$oldincludedir,;t t
18008 s,@infodir@,$infodir,;t t
18009 s,@mandir@,$mandir,;t t
18010 s,@build_alias@,$build_alias,;t t
18011 s,@host_alias@,$host_alias,;t t
18012 s,@target_alias@,$target_alias,;t t
18013 s,@DEFS@,$DEFS,;t t
18014 s,@ECHO_C@,$ECHO_C,;t t
18015 s,@ECHO_N@,$ECHO_N,;t t
18016 s,@ECHO_T@,$ECHO_T,;t t
18017 s,@LIBS@,$LIBS,;t t
18018 s,@build@,$build,;t t
18019 s,@build_cpu@,$build_cpu,;t t
18020 s,@build_vendor@,$build_vendor,;t t
18021 s,@build_os@,$build_os,;t t
18022 s,@build_libsubdir@,$build_libsubdir,;t t
18023 s,@build_subdir@,$build_subdir,;t t
18024 s,@host_subdir@,$host_subdir,;t t
18025 s,@target_subdir@,$target_subdir,;t t
18026 s,@multi_basedir@,$multi_basedir,;t t
18027 s,@host@,$host,;t t
18028 s,@host_cpu@,$host_cpu,;t t
18029 s,@host_vendor@,$host_vendor,;t t
18030 s,@host_os@,$host_os,;t t
18031 s,@target@,$target,;t t
18032 s,@target_cpu@,$target_cpu,;t t
18033 s,@target_vendor@,$target_vendor,;t t
18034 s,@target_os@,$target_os,;t t
18035 s,@target_noncanonical@,$target_noncanonical,;t t
18036 s,@LN_S@,$LN_S,;t t
18037 s,@mkinstalldirs@,$mkinstalldirs,;t t
18038 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
18039 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
18040 s,@CC@,$CC,;t t
18041 s,@ac_ct_CC@,$ac_ct_CC,;t t
18042 s,@EXEEXT@,$EXEEXT,;t t
18043 s,@OBJEXT@,$OBJEXT,;t t
18044 s,@CXX@,$CXX,;t t
18045 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18046 s,@CFLAGS@,$CFLAGS,;t t
18047 s,@CXXFLAGS@,$CXXFLAGS,;t t
18048 s,@LDFLAGS@,$LDFLAGS,;t t
18049 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18050 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18051 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18052 s,@CYGPATH_W@,$CYGPATH_W,;t t
18053 s,@PACKAGE@,$PACKAGE,;t t
18054 s,@VERSION@,$VERSION,;t t
18055 s,@ACLOCAL@,$ACLOCAL,;t t
18056 s,@AUTOCONF@,$AUTOCONF,;t t
18057 s,@AUTOMAKE@,$AUTOMAKE,;t t
18058 s,@AUTOHEADER@,$AUTOHEADER,;t t
18059 s,@MAKEINFO@,$MAKEINFO,;t t
18060 s,@install_sh@,$install_sh,;t t
18061 s,@STRIP@,$STRIP,;t t
18062 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18063 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18064 s,@mkdir_p@,$mkdir_p,;t t
18065 s,@AWK@,$AWK,;t t
18066 s,@SET_MAKE@,$SET_MAKE,;t t
18067 s,@am__leading_dot@,$am__leading_dot,;t t
18068 s,@AMTAR@,$AMTAR,;t t
18069 s,@am__tar@,$am__tar,;t t
18070 s,@am__untar@,$am__untar,;t t
18071 s,@DEPDIR@,$DEPDIR,;t t
18072 s,@am__include@,$am__include,;t t
18073 s,@am__quote@,$am__quote,;t t
18074 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18075 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18076 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18077 s,@CCDEPMODE@,$CCDEPMODE,;t t
18078 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18079 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18080 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18081 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18082 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18083 s,@AS@,$AS,;t t
18084 s,@ac_ct_AS@,$ac_ct_AS,;t t
18085 s,@LD@,$LD,;t t
18086 s,@ac_ct_LD@,$ac_ct_LD,;t t
18087 s,@AR@,$AR,;t t
18088 s,@ac_ct_AR@,$ac_ct_AR,;t t
18089 s,@RANLIB@,$RANLIB,;t t
18090 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18091 s,@JAR@,$JAR,;t t
18092 s,@ZIP@,$ZIP,;t t
18093 s,@UNZIP@,$UNZIP,;t t
18094 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18095 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18096 s,@MAINT@,$MAINT,;t t
18097 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
18098 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
18099 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
18100 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
18101 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
18102 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
18103 s,@TOOLKIT@,$TOOLKIT,;t t
18104 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
18105 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
18106 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
18107 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
18108 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
18109 s,@GCJH@,$GCJH,;t t
18110 s,@host_exeext@,$host_exeext,;t t
18111 s,@INCLTDL@,$INCLTDL,;t t
18112 s,@LIBLTDL@,$LIBLTDL,;t t
18113 s,@DIRLTDL@,$DIRLTDL,;t t
18114 s,@LIBTOOL@,$LIBTOOL,;t t
18115 s,@CXXCPP@,$CXXCPP,;t t
18116 s,@CPPFLAGS@,$CPPFLAGS,;t t
18117 s,@GCJ@,$GCJ,;t t
18118 s,@GCJFLAGS@,$GCJFLAGS,;t t
18119 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
18120 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
18121 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
18122 s,@subdirs@,$subdirs,;t t
18123 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
18124 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
18125 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
18126 s,@ECJ_JAR@,$ECJ_JAR,;t t
18127 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
18128 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
18129 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
18130 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
18131 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
18132 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
18133 s,@JAVA_HOME@,$JAVA_HOME,;t t
18134 s,@INTERPRETER@,$INTERPRETER,;t t
18135 s,@LIBFFI@,$LIBFFI,;t t
18136 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
18137 s,@PLATFORM@,$PLATFORM,;t t
18138 s,@CPP@,$CPP,;t t
18139 s,@EGREP@,$EGREP,;t t
18140 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
18141 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
18142 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
18143 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
18144 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
18145 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
18146 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
18147 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
18148 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
18149 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
18150 s,@X_CFLAGS@,$X_CFLAGS,;t t
18151 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18152 s,@X_LIBS@,$X_LIBS,;t t
18153 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18154 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
18155 s,@GCLIBS@,$GCLIBS,;t t
18156 s,@GCINCS@,$GCINCS,;t t
18157 s,@GCDEPS@,$GCDEPS,;t t
18158 s,@GCSPEC@,$GCSPEC,;t t
18159 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
18160 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
18161 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
18162 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
18163 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18164 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18165 s,@THREADLIBS@,$THREADLIBS,;t t
18166 s,@THREADINCS@,$THREADINCS,;t t
18167 s,@THREADDEPS@,$THREADDEPS,;t t
18168 s,@THREADSPEC@,$THREADSPEC,;t t
18169 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
18170 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18171 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18172 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18173 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18174 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18175 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18176 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18177 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
18178 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18179 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18180 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
18181 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18182 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18183 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18184 s,@LIBICONV@,$LIBICONV,;t t
18185 s,@LTLIBICONV@,$LTLIBICONV,;t t
18186 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18187 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18188 s,@GTK_LIBS@,$GTK_LIBS,;t t
18189 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18190 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18191 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18192 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18193 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18194 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18195 s,@ZLIBS@,$ZLIBS,;t t
18196 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18197 s,@ZINCS@,$ZINCS,;t t
18198 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18199 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18200 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18201 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18202 s,@IEEESPEC@,$IEEESPEC,;t t
18203 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18204 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
18205 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18206 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
18207 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18208 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18209 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18210 s,@toolexecdir@,$toolexecdir,;t t
18211 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18212 s,@toolexeclibdir@,$toolexeclibdir,;t t
18213 s,@dbexecdir@,$dbexecdir,;t t
18214 s,@GCJVERSION@,$GCJVERSION,;t t
18215 s,@gxx_include_dir@,$gxx_include_dir,;t t
18216 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18217 s,@ALLOCA@,$ALLOCA,;t t
18218 s,@PERL@,$PERL,;t t
18219 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18220 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
18221 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
18222 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18223 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18224 s,@here@,$here,;t t
18225 s,@LIBOBJS@,$LIBOBJS,;t t
18226 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18227 CEOF
18228
18229 _ACEOF
18230
18231   cat >>$CONFIG_STATUS <<\_ACEOF
18232   # Split the substitutions into bite-sized pieces for seds with
18233   # small command number limits, like on Digital OSF/1 and HP-UX.
18234   ac_max_sed_lines=48
18235   ac_sed_frag=1 # Number of current file.
18236   ac_beg=1 # First line for current file.
18237   ac_end=$ac_max_sed_lines # Line after last line for current file.
18238   ac_more_lines=:
18239   ac_sed_cmds=
18240   while $ac_more_lines; do
18241     if test $ac_beg -gt 1; then
18242       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18243     else
18244       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18245     fi
18246     if test ! -s $tmp/subs.frag; then
18247       ac_more_lines=false
18248     else
18249       # The purpose of the label and of the branching condition is to
18250       # speed up the sed processing (if there are no `@' at all, there
18251       # is no need to browse any of the substitutions).
18252       # These are the two extra sed commands mentioned above.
18253       (echo ':t
18254   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18255       if test -z "$ac_sed_cmds"; then
18256         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18257       else
18258         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18259       fi
18260       ac_sed_frag=`expr $ac_sed_frag + 1`
18261       ac_beg=$ac_end
18262       ac_end=`expr $ac_end + $ac_max_sed_lines`
18263     fi
18264   done
18265   if test -z "$ac_sed_cmds"; then
18266     ac_sed_cmds=cat
18267   fi
18268 fi # test -n "$CONFIG_FILES"
18269
18270 _ACEOF
18271 cat >>$CONFIG_STATUS <<\_ACEOF
18272 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18273   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18274   case $ac_file in
18275   - | *:- | *:-:* ) # input from stdin
18276         cat >$tmp/stdin
18277         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18278         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18279   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18280         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18281   * )   ac_file_in=$ac_file.in ;;
18282   esac
18283
18284   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18285   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18287          X"$ac_file" : 'X\(//\)[^/]' \| \
18288          X"$ac_file" : 'X\(//\)$' \| \
18289          X"$ac_file" : 'X\(/\)' \| \
18290          .     : '\(.\)' 2>/dev/null ||
18291 echo X"$ac_file" |
18292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18293           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18294           /^X\(\/\/\)$/{ s//\1/; q; }
18295           /^X\(\/\).*/{ s//\1/; q; }
18296           s/.*/./; q'`
18297   { if $as_mkdir_p; then
18298     mkdir -p "$ac_dir"
18299   else
18300     as_dir="$ac_dir"
18301     as_dirs=
18302     while test ! -d "$as_dir"; do
18303       as_dirs="$as_dir $as_dirs"
18304       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18306          X"$as_dir" : 'X\(//\)[^/]' \| \
18307          X"$as_dir" : 'X\(//\)$' \| \
18308          X"$as_dir" : 'X\(/\)' \| \
18309          .     : '\(.\)' 2>/dev/null ||
18310 echo X"$as_dir" |
18311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18312           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18313           /^X\(\/\/\)$/{ s//\1/; q; }
18314           /^X\(\/\).*/{ s//\1/; q; }
18315           s/.*/./; q'`
18316     done
18317     test ! -n "$as_dirs" || mkdir $as_dirs
18318   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18319 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18320    { (exit 1); exit 1; }; }; }
18321
18322   ac_builddir=.
18323
18324 if test "$ac_dir" != .; then
18325   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18326   # A "../" for each directory in $ac_dir_suffix.
18327   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18328 else
18329   ac_dir_suffix= ac_top_builddir=
18330 fi
18331
18332 case $srcdir in
18333   .)  # No --srcdir option.  We are building in place.
18334     ac_srcdir=.
18335     if test -z "$ac_top_builddir"; then
18336        ac_top_srcdir=.
18337     else
18338        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18339     fi ;;
18340   [\\/]* | ?:[\\/]* )  # Absolute path.
18341     ac_srcdir=$srcdir$ac_dir_suffix;
18342     ac_top_srcdir=$srcdir ;;
18343   *) # Relative path.
18344     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18345     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18346 esac
18347
18348 # Do not use `cd foo && pwd` to compute absolute paths, because
18349 # the directories may not exist.
18350 case `pwd` in
18351 .) ac_abs_builddir="$ac_dir";;
18352 *)
18353   case "$ac_dir" in
18354   .) ac_abs_builddir=`pwd`;;
18355   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18356   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18357   esac;;
18358 esac
18359 case $ac_abs_builddir in
18360 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18361 *)
18362   case ${ac_top_builddir}. in
18363   .) ac_abs_top_builddir=$ac_abs_builddir;;
18364   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18365   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18366   esac;;
18367 esac
18368 case $ac_abs_builddir in
18369 .) ac_abs_srcdir=$ac_srcdir;;
18370 *)
18371   case $ac_srcdir in
18372   .) ac_abs_srcdir=$ac_abs_builddir;;
18373   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18374   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18375   esac;;
18376 esac
18377 case $ac_abs_builddir in
18378 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18379 *)
18380   case $ac_top_srcdir in
18381   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18382   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18383   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18384   esac;;
18385 esac
18386
18387
18388   case $INSTALL in
18389   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18390   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18391   esac
18392
18393   if test x"$ac_file" != x-; then
18394     { echo "$as_me:$LINENO: creating $ac_file" >&5
18395 echo "$as_me: creating $ac_file" >&6;}
18396     rm -f "$ac_file"
18397   fi
18398   # Let's still pretend it is `configure' which instantiates (i.e., don't
18399   # use $as_me), people would be surprised to read:
18400   #    /* config.h.  Generated by config.status.  */
18401   if test x"$ac_file" = x-; then
18402     configure_input=
18403   else
18404     configure_input="$ac_file.  "
18405   fi
18406   configure_input=$configure_input"Generated from `echo $ac_file_in |
18407                                      sed 's,.*/,,'` by configure."
18408
18409   # First look for the input files in the build tree, otherwise in the
18410   # src tree.
18411   ac_file_inputs=`IFS=:
18412     for f in $ac_file_in; do
18413       case $f in
18414       -) echo $tmp/stdin ;;
18415       [\\/$]*)
18416          # Absolute (can't be DOS-style, as IFS=:)
18417          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18418 echo "$as_me: error: cannot find input file: $f" >&2;}
18419    { (exit 1); exit 1; }; }
18420          echo "$f";;
18421       *) # Relative
18422          if test -f "$f"; then
18423            # Build tree
18424            echo "$f"
18425          elif test -f "$srcdir/$f"; then
18426            # Source tree
18427            echo "$srcdir/$f"
18428          else
18429            # /dev/null tree
18430            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18431 echo "$as_me: error: cannot find input file: $f" >&2;}
18432    { (exit 1); exit 1; }; }
18433          fi;;
18434       esac
18435     done` || { (exit 1); exit 1; }
18436 _ACEOF
18437 cat >>$CONFIG_STATUS <<_ACEOF
18438   sed "$ac_vpsub
18439 $extrasub
18440 _ACEOF
18441 cat >>$CONFIG_STATUS <<\_ACEOF
18442 :t
18443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18444 s,@configure_input@,$configure_input,;t t
18445 s,@srcdir@,$ac_srcdir,;t t
18446 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18447 s,@top_srcdir@,$ac_top_srcdir,;t t
18448 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18449 s,@builddir@,$ac_builddir,;t t
18450 s,@abs_builddir@,$ac_abs_builddir,;t t
18451 s,@top_builddir@,$ac_top_builddir,;t t
18452 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18453 s,@INSTALL@,$ac_INSTALL,;t t
18454 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18455   rm -f $tmp/stdin
18456   if test x"$ac_file" != x-; then
18457     mv $tmp/out $ac_file
18458   else
18459     cat $tmp/out
18460     rm -f $tmp/out
18461   fi
18462
18463   # Run the commands associated with the file.
18464   case $ac_file in
18465     scripts/jar ) chmod +x scripts/jar ;;
18466   esac
18467 done
18468 _ACEOF
18469 cat >>$CONFIG_STATUS <<\_ACEOF
18470
18471 #
18472 # CONFIG_HEADER section.
18473 #
18474
18475 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18476 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18477 #
18478 # ac_d sets the value in "#define NAME VALUE" lines.
18479 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18480 ac_dB='[         ].*$,\1#\2'
18481 ac_dC=' '
18482 ac_dD=',;t'
18483 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18484 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18485 ac_uB='$,\1#\2define\3'
18486 ac_uC=' '
18487 ac_uD=',;t'
18488
18489 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18490   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18491   case $ac_file in
18492   - | *:- | *:-:* ) # input from stdin
18493         cat >$tmp/stdin
18494         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18495         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18496   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18497         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18498   * )   ac_file_in=$ac_file.in ;;
18499   esac
18500
18501   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18502 echo "$as_me: creating $ac_file" >&6;}
18503
18504   # First look for the input files in the build tree, otherwise in the
18505   # src tree.
18506   ac_file_inputs=`IFS=:
18507     for f in $ac_file_in; do
18508       case $f in
18509       -) echo $tmp/stdin ;;
18510       [\\/$]*)
18511          # Absolute (can't be DOS-style, as IFS=:)
18512          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18513 echo "$as_me: error: cannot find input file: $f" >&2;}
18514    { (exit 1); exit 1; }; }
18515          # Do quote $f, to prevent DOS paths from being IFS'd.
18516          echo "$f";;
18517       *) # Relative
18518          if test -f "$f"; then
18519            # Build tree
18520            echo "$f"
18521          elif test -f "$srcdir/$f"; then
18522            # Source tree
18523            echo "$srcdir/$f"
18524          else
18525            # /dev/null tree
18526            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18527 echo "$as_me: error: cannot find input file: $f" >&2;}
18528    { (exit 1); exit 1; }; }
18529          fi;;
18530       esac
18531     done` || { (exit 1); exit 1; }
18532   # Remove the trailing spaces.
18533   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18534
18535 _ACEOF
18536
18537 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18538 # `conftest.undefs', that substitutes the proper values into
18539 # config.h.in to produce config.h.  The first handles `#define'
18540 # templates, and the second `#undef' templates.
18541 # And first: Protect against being on the right side of a sed subst in
18542 # config.status.  Protect against being in an unquoted here document
18543 # in config.status.
18544 rm -f conftest.defines conftest.undefs
18545 # Using a here document instead of a string reduces the quoting nightmare.
18546 # Putting comments in sed scripts is not portable.
18547 #
18548 # `end' is used to avoid that the second main sed command (meant for
18549 # 0-ary CPP macros) applies to n-ary macro definitions.
18550 # See the Autoconf documentation for `clear'.
18551 cat >confdef2sed.sed <<\_ACEOF
18552 s/[\\&,]/\\&/g
18553 s,[\\$`],\\&,g
18554 t clear
18555 : clear
18556 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18557 t end
18558 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18559 : end
18560 _ACEOF
18561 # If some macros were called several times there might be several times
18562 # the same #defines, which is useless.  Nevertheless, we may not want to
18563 # sort them, since we want the *last* AC-DEFINE to be honored.
18564 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18565 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18566 rm -f confdef2sed.sed
18567
18568 # This sed command replaces #undef with comments.  This is necessary, for
18569 # example, in the case of _POSIX_SOURCE, which is predefined and required
18570 # on some systems where configure will not decide to define it.
18571 cat >>conftest.undefs <<\_ACEOF
18572 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18573 _ACEOF
18574
18575 # Break up conftest.defines because some shells have a limit on the size
18576 # of here documents, and old seds have small limits too (100 cmds).
18577 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18578 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18579 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18580 echo '  :' >>$CONFIG_STATUS
18581 rm -f conftest.tail
18582 while grep . conftest.defines >/dev/null
18583 do
18584   # Write a limited-size here document to $tmp/defines.sed.
18585   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18586   # Speed up: don't consider the non `#define' lines.
18587   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18588   # Work around the forget-to-reset-the-flag bug.
18589   echo 't clr' >>$CONFIG_STATUS
18590   echo ': clr' >>$CONFIG_STATUS
18591   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18592   echo 'CEOF
18593   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18594   rm -f $tmp/in
18595   mv $tmp/out $tmp/in
18596 ' >>$CONFIG_STATUS
18597   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18598   rm -f conftest.defines
18599   mv conftest.tail conftest.defines
18600 done
18601 rm -f conftest.defines
18602 echo '  fi # grep' >>$CONFIG_STATUS
18603 echo >>$CONFIG_STATUS
18604
18605 # Break up conftest.undefs because some shells have a limit on the size
18606 # of here documents, and old seds have small limits too (100 cmds).
18607 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18608 rm -f conftest.tail
18609 while grep . conftest.undefs >/dev/null
18610 do
18611   # Write a limited-size here document to $tmp/undefs.sed.
18612   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18613   # Speed up: don't consider the non `#undef'
18614   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18615   # Work around the forget-to-reset-the-flag bug.
18616   echo 't clr' >>$CONFIG_STATUS
18617   echo ': clr' >>$CONFIG_STATUS
18618   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18619   echo 'CEOF
18620   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18621   rm -f $tmp/in
18622   mv $tmp/out $tmp/in
18623 ' >>$CONFIG_STATUS
18624   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18625   rm -f conftest.undefs
18626   mv conftest.tail conftest.undefs
18627 done
18628 rm -f conftest.undefs
18629
18630 cat >>$CONFIG_STATUS <<\_ACEOF
18631   # Let's still pretend it is `configure' which instantiates (i.e., don't
18632   # use $as_me), people would be surprised to read:
18633   #    /* config.h.  Generated by config.status.  */
18634   if test x"$ac_file" = x-; then
18635     echo "/* Generated by configure.  */" >$tmp/config.h
18636   else
18637     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18638   fi
18639   cat $tmp/in >>$tmp/config.h
18640   rm -f $tmp/in
18641   if test x"$ac_file" != x-; then
18642     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18643       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18644 echo "$as_me: $ac_file is unchanged" >&6;}
18645     else
18646       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18648          X"$ac_file" : 'X\(//\)[^/]' \| \
18649          X"$ac_file" : 'X\(//\)$' \| \
18650          X"$ac_file" : 'X\(/\)' \| \
18651          .     : '\(.\)' 2>/dev/null ||
18652 echo X"$ac_file" |
18653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18655           /^X\(\/\/\)$/{ s//\1/; q; }
18656           /^X\(\/\).*/{ s//\1/; q; }
18657           s/.*/./; q'`
18658       { if $as_mkdir_p; then
18659     mkdir -p "$ac_dir"
18660   else
18661     as_dir="$ac_dir"
18662     as_dirs=
18663     while test ! -d "$as_dir"; do
18664       as_dirs="$as_dir $as_dirs"
18665       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18667          X"$as_dir" : 'X\(//\)[^/]' \| \
18668          X"$as_dir" : 'X\(//\)$' \| \
18669          X"$as_dir" : 'X\(/\)' \| \
18670          .     : '\(.\)' 2>/dev/null ||
18671 echo X"$as_dir" |
18672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18673           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18674           /^X\(\/\/\)$/{ s//\1/; q; }
18675           /^X\(\/\).*/{ s//\1/; q; }
18676           s/.*/./; q'`
18677     done
18678     test ! -n "$as_dirs" || mkdir $as_dirs
18679   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18681    { (exit 1); exit 1; }; }; }
18682
18683       rm -f $ac_file
18684       mv $tmp/config.h $ac_file
18685     fi
18686   else
18687     cat $tmp/config.h
18688     rm -f $tmp/config.h
18689   fi
18690 # Compute $ac_file's index in $config_headers.
18691 _am_stamp_count=1
18692 for _am_header in $config_headers :; do
18693   case $_am_header in
18694     $ac_file | $ac_file:* )
18695       break ;;
18696     * )
18697       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18698   esac
18699 done
18700 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18701 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18702          X$ac_file : 'X\(//\)[^/]' \| \
18703          X$ac_file : 'X\(//\)$' \| \
18704          X$ac_file : 'X\(/\)' \| \
18705          .     : '\(.\)' 2>/dev/null ||
18706 echo X$ac_file |
18707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18708           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18709           /^X\(\/\/\)$/{ s//\1/; q; }
18710           /^X\(\/\).*/{ s//\1/; q; }
18711           s/.*/./; q'`/stamp-h$_am_stamp_count
18712 done
18713 _ACEOF
18714 cat >>$CONFIG_STATUS <<\_ACEOF
18715
18716 #
18717 # CONFIG_LINKS section.
18718 #
18719
18720 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18721   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18722   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18723
18724   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18725 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18726
18727   if test ! -r $srcdir/$ac_source; then
18728     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18729 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18730    { (exit 1); exit 1; }; }
18731   fi
18732   rm -f $ac_dest
18733
18734   # Make relative symlinks.
18735   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18736 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18737          X"$ac_dest" : 'X\(//\)[^/]' \| \
18738          X"$ac_dest" : 'X\(//\)$' \| \
18739          X"$ac_dest" : 'X\(/\)' \| \
18740          .     : '\(.\)' 2>/dev/null ||
18741 echo X"$ac_dest" |
18742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18743           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18744           /^X\(\/\/\)$/{ s//\1/; q; }
18745           /^X\(\/\).*/{ s//\1/; q; }
18746           s/.*/./; q'`
18747   { if $as_mkdir_p; then
18748     mkdir -p "$ac_dest_dir"
18749   else
18750     as_dir="$ac_dest_dir"
18751     as_dirs=
18752     while test ! -d "$as_dir"; do
18753       as_dirs="$as_dir $as_dirs"
18754       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18756          X"$as_dir" : 'X\(//\)[^/]' \| \
18757          X"$as_dir" : 'X\(//\)$' \| \
18758          X"$as_dir" : 'X\(/\)' \| \
18759          .     : '\(.\)' 2>/dev/null ||
18760 echo X"$as_dir" |
18761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18762           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18763           /^X\(\/\/\)$/{ s//\1/; q; }
18764           /^X\(\/\).*/{ s//\1/; q; }
18765           s/.*/./; q'`
18766     done
18767     test ! -n "$as_dirs" || mkdir $as_dirs
18768   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18769 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18770    { (exit 1); exit 1; }; }; }
18771
18772   ac_builddir=.
18773
18774 if test "$ac_dest_dir" != .; then
18775   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18776   # A "../" for each directory in $ac_dir_suffix.
18777   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18778 else
18779   ac_dir_suffix= ac_top_builddir=
18780 fi
18781
18782 case $srcdir in
18783   .)  # No --srcdir option.  We are building in place.
18784     ac_srcdir=.
18785     if test -z "$ac_top_builddir"; then
18786        ac_top_srcdir=.
18787     else
18788        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18789     fi ;;
18790   [\\/]* | ?:[\\/]* )  # Absolute path.
18791     ac_srcdir=$srcdir$ac_dir_suffix;
18792     ac_top_srcdir=$srcdir ;;
18793   *) # Relative path.
18794     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18795     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18796 esac
18797
18798 # Do not use `cd foo && pwd` to compute absolute paths, because
18799 # the directories may not exist.
18800 case `pwd` in
18801 .) ac_abs_builddir="$ac_dest_dir";;
18802 *)
18803   case "$ac_dest_dir" in
18804   .) ac_abs_builddir=`pwd`;;
18805   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18806   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18807   esac;;
18808 esac
18809 case $ac_abs_builddir in
18810 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18811 *)
18812   case ${ac_top_builddir}. in
18813   .) ac_abs_top_builddir=$ac_abs_builddir;;
18814   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18815   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18816   esac;;
18817 esac
18818 case $ac_abs_builddir in
18819 .) ac_abs_srcdir=$ac_srcdir;;
18820 *)
18821   case $ac_srcdir in
18822   .) ac_abs_srcdir=$ac_abs_builddir;;
18823   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18824   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18825   esac;;
18826 esac
18827 case $ac_abs_builddir in
18828 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18829 *)
18830   case $ac_top_srcdir in
18831   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18832   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18833   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18834   esac;;
18835 esac
18836
18837
18838   case $srcdir in
18839   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18840       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18841   esac
18842
18843   # Try a symlink, then a hard link, then a copy.
18844   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18845     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18846     cp -p $srcdir/$ac_source $ac_dest ||
18847     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18848 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18849    { (exit 1); exit 1; }; }
18850 done
18851 _ACEOF
18852 cat >>$CONFIG_STATUS <<\_ACEOF
18853
18854 #
18855 # CONFIG_COMMANDS section.
18856 #
18857 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18858   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18859   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18860   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18861 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18862          X"$ac_dest" : 'X\(//\)[^/]' \| \
18863          X"$ac_dest" : 'X\(//\)$' \| \
18864          X"$ac_dest" : 'X\(/\)' \| \
18865          .     : '\(.\)' 2>/dev/null ||
18866 echo X"$ac_dest" |
18867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18868           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18869           /^X\(\/\/\)$/{ s//\1/; q; }
18870           /^X\(\/\).*/{ s//\1/; q; }
18871           s/.*/./; q'`
18872   { if $as_mkdir_p; then
18873     mkdir -p "$ac_dir"
18874   else
18875     as_dir="$ac_dir"
18876     as_dirs=
18877     while test ! -d "$as_dir"; do
18878       as_dirs="$as_dir $as_dirs"
18879       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18881          X"$as_dir" : 'X\(//\)[^/]' \| \
18882          X"$as_dir" : 'X\(//\)$' \| \
18883          X"$as_dir" : 'X\(/\)' \| \
18884          .     : '\(.\)' 2>/dev/null ||
18885 echo X"$as_dir" |
18886     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18887           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18888           /^X\(\/\/\)$/{ s//\1/; q; }
18889           /^X\(\/\).*/{ s//\1/; q; }
18890           s/.*/./; q'`
18891     done
18892     test ! -n "$as_dirs" || mkdir $as_dirs
18893   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18894 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18895    { (exit 1); exit 1; }; }; }
18896
18897   ac_builddir=.
18898
18899 if test "$ac_dir" != .; then
18900   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18901   # A "../" for each directory in $ac_dir_suffix.
18902   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18903 else
18904   ac_dir_suffix= ac_top_builddir=
18905 fi
18906
18907 case $srcdir in
18908   .)  # No --srcdir option.  We are building in place.
18909     ac_srcdir=.
18910     if test -z "$ac_top_builddir"; then
18911        ac_top_srcdir=.
18912     else
18913        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18914     fi ;;
18915   [\\/]* | ?:[\\/]* )  # Absolute path.
18916     ac_srcdir=$srcdir$ac_dir_suffix;
18917     ac_top_srcdir=$srcdir ;;
18918   *) # Relative path.
18919     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18920     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18921 esac
18922
18923 # Do not use `cd foo && pwd` to compute absolute paths, because
18924 # the directories may not exist.
18925 case `pwd` in
18926 .) ac_abs_builddir="$ac_dir";;
18927 *)
18928   case "$ac_dir" in
18929   .) ac_abs_builddir=`pwd`;;
18930   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18931   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18932   esac;;
18933 esac
18934 case $ac_abs_builddir in
18935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18936 *)
18937   case ${ac_top_builddir}. in
18938   .) ac_abs_top_builddir=$ac_abs_builddir;;
18939   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18940   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18941   esac;;
18942 esac
18943 case $ac_abs_builddir in
18944 .) ac_abs_srcdir=$ac_srcdir;;
18945 *)
18946   case $ac_srcdir in
18947   .) ac_abs_srcdir=$ac_abs_builddir;;
18948   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18949   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18950   esac;;
18951 esac
18952 case $ac_abs_builddir in
18953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18954 *)
18955   case $ac_top_srcdir in
18956   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18957   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18958   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18959   esac;;
18960 esac
18961
18962
18963   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18964 echo "$as_me: executing $ac_dest commands" >&6;}
18965   case $ac_dest in
18966     default-1 )
18967 # Only add multilib support code if we just rebuilt the top-level
18968 # Makefile.
18969 case " $CONFIG_FILES " in
18970  *" Makefile "*)
18971    ac_file=Makefile . ${multi_basedir}/config-ml.in
18972    ;;
18973 esac ;;
18974     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18975   # Strip MF so we end up with the name of the file.
18976   mf=`echo "$mf" | sed -e 's/:.*$//'`
18977   # Check whether this is an Automake generated Makefile or not.
18978   # We used to match only the files named `Makefile.in', but
18979   # some people rename them; so instead we look at the file content.
18980   # Grep'ing the first line is not enough: some people post-process
18981   # each Makefile.in and add a new line on top of each file to say so.
18982   # So let's grep whole file.
18983   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18984     dirpart=`(dirname "$mf") 2>/dev/null ||
18985 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18986          X"$mf" : 'X\(//\)[^/]' \| \
18987          X"$mf" : 'X\(//\)$' \| \
18988          X"$mf" : 'X\(/\)' \| \
18989          .     : '\(.\)' 2>/dev/null ||
18990 echo X"$mf" |
18991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18993           /^X\(\/\/\)$/{ s//\1/; q; }
18994           /^X\(\/\).*/{ s//\1/; q; }
18995           s/.*/./; q'`
18996   else
18997     continue
18998   fi
18999   # Extract the definition of DEPDIR, am__include, and am__quote
19000   # from the Makefile without running `make'.
19001   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19002   test -z "$DEPDIR" && continue
19003   am__include=`sed -n 's/^am__include = //p' < "$mf"`
19004   test -z "am__include" && continue
19005   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19006   # When using ansi2knr, U may be empty or an underscore; expand it
19007   U=`sed -n 's/^U = //p' < "$mf"`
19008   # Find all dependency output files, they are included files with
19009   # $(DEPDIR) in their names.  We invoke sed twice because it is the
19010   # simplest approach to changing $(DEPDIR) to its actual value in the
19011   # expansion.
19012   for file in `sed -n "
19013     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19014        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19015     # Make sure the directory exists.
19016     test -f "$dirpart/$file" && continue
19017     fdir=`(dirname "$file") 2>/dev/null ||
19018 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19019          X"$file" : 'X\(//\)[^/]' \| \
19020          X"$file" : 'X\(//\)$' \| \
19021          X"$file" : 'X\(/\)' \| \
19022          .     : '\(.\)' 2>/dev/null ||
19023 echo X"$file" |
19024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19025           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19026           /^X\(\/\/\)$/{ s//\1/; q; }
19027           /^X\(\/\).*/{ s//\1/; q; }
19028           s/.*/./; q'`
19029     { if $as_mkdir_p; then
19030     mkdir -p $dirpart/$fdir
19031   else
19032     as_dir=$dirpart/$fdir
19033     as_dirs=
19034     while test ! -d "$as_dir"; do
19035       as_dirs="$as_dir $as_dirs"
19036       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19038          X"$as_dir" : 'X\(//\)[^/]' \| \
19039          X"$as_dir" : 'X\(//\)$' \| \
19040          X"$as_dir" : 'X\(/\)' \| \
19041          .     : '\(.\)' 2>/dev/null ||
19042 echo X"$as_dir" |
19043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19044           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19045           /^X\(\/\/\)$/{ s//\1/; q; }
19046           /^X\(\/\).*/{ s//\1/; q; }
19047           s/.*/./; q'`
19048     done
19049     test ! -n "$as_dirs" || mkdir $as_dirs
19050   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19051 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19052    { (exit 1); exit 1; }; }; }
19053
19054     # echo "creating $dirpart/$file"
19055     echo '# dummy' > "$dirpart/$file"
19056   done
19057 done
19058  ;;
19059     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
19060 case " $CONFIG_FILES " in
19061  *" Makefile "*)
19062    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
19063    ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
19064    ;;
19065 esac
19066 for ac_multi_file in $CONFIG_FILES; do
19067   case $ac_multi_file in
19068   */Makefile)
19069     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
19070   esac
19071 done
19072  ;;
19073   esac
19074 done
19075 _ACEOF
19076
19077 cat >>$CONFIG_STATUS <<\_ACEOF
19078
19079 { (exit 0); exit 0; }
19080 _ACEOF
19081 chmod +x $CONFIG_STATUS
19082 ac_clean_files=$ac_clean_files_save
19083
19084
19085 # configure is writing to config.log, and then calls config.status.
19086 # config.status does its own redirection, appending to config.log.
19087 # Unfortunately, on DOS this fails, as config.log is still kept open
19088 # by configure, so config.status won't be able to write to it; its
19089 # output is simply discarded.  So we exec the FD to /dev/null,
19090 # effectively closing config.log, so it can be properly (re)opened and
19091 # appended to by config.status.  When coming back to configure, we
19092 # need to make the FD available again.
19093 if test "$no_create" != yes; then
19094   ac_cs_success=:
19095   ac_config_status_args=
19096   test "$silent" = yes &&
19097     ac_config_status_args="$ac_config_status_args --quiet"
19098   exec 5>/dev/null
19099   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19100   exec 5>>config.log
19101   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19102   # would make configure fail if this is the last instruction.
19103   $ac_cs_success || { (exit 1); exit 1; }
19104 fi
19105
19106 #
19107 # CONFIG_SUBDIRS section.
19108 #
19109 if test "$no_recursion" != yes; then
19110
19111   # Remove --cache-file and --srcdir arguments so they do not pile up.
19112   ac_sub_configure_args=
19113   ac_prev=
19114   for ac_arg in $ac_configure_args; do
19115     if test -n "$ac_prev"; then
19116       ac_prev=
19117       continue
19118     fi
19119     case $ac_arg in
19120     -cache-file | --cache-file | --cache-fil | --cache-fi \
19121     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19122       ac_prev=cache_file ;;
19123     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19124     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19125     | --c=*)
19126       ;;
19127     --config-cache | -C)
19128       ;;
19129     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19130       ac_prev=srcdir ;;
19131     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19132       ;;
19133     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19134       ac_prev=prefix ;;
19135     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19136       ;;
19137     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19138     esac
19139   done
19140
19141   # Always prepend --prefix to ensure using the same prefix
19142   # in subdir configurations.
19143   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
19144
19145   ac_popdir=`pwd`
19146   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19147
19148     # Do not complain, so a configure script can configure whichever
19149     # parts of a large source tree are present.
19150     test -d $srcdir/$ac_dir || continue
19151
19152     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
19153 echo "$as_me: configuring in $ac_dir" >&6;}
19154     { if $as_mkdir_p; then
19155     mkdir -p "$ac_dir"
19156   else
19157     as_dir="$ac_dir"
19158     as_dirs=
19159     while test ! -d "$as_dir"; do
19160       as_dirs="$as_dir $as_dirs"
19161       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19163          X"$as_dir" : 'X\(//\)[^/]' \| \
19164          X"$as_dir" : 'X\(//\)$' \| \
19165          X"$as_dir" : 'X\(/\)' \| \
19166          .     : '\(.\)' 2>/dev/null ||
19167 echo X"$as_dir" |
19168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19169           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19170           /^X\(\/\/\)$/{ s//\1/; q; }
19171           /^X\(\/\).*/{ s//\1/; q; }
19172           s/.*/./; q'`
19173     done
19174     test ! -n "$as_dirs" || mkdir $as_dirs
19175   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19177    { (exit 1); exit 1; }; }; }
19178
19179     ac_builddir=.
19180
19181 if test "$ac_dir" != .; then
19182   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19183   # A "../" for each directory in $ac_dir_suffix.
19184   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19185 else
19186   ac_dir_suffix= ac_top_builddir=
19187 fi
19188
19189 case $srcdir in
19190   .)  # No --srcdir option.  We are building in place.
19191     ac_srcdir=.
19192     if test -z "$ac_top_builddir"; then
19193        ac_top_srcdir=.
19194     else
19195        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19196     fi ;;
19197   [\\/]* | ?:[\\/]* )  # Absolute path.
19198     ac_srcdir=$srcdir$ac_dir_suffix;
19199     ac_top_srcdir=$srcdir ;;
19200   *) # Relative path.
19201     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19202     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19203 esac
19204
19205 # Do not use `cd foo && pwd` to compute absolute paths, because
19206 # the directories may not exist.
19207 case `pwd` in
19208 .) ac_abs_builddir="$ac_dir";;
19209 *)
19210   case "$ac_dir" in
19211   .) ac_abs_builddir=`pwd`;;
19212   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19213   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19214   esac;;
19215 esac
19216 case $ac_abs_builddir in
19217 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19218 *)
19219   case ${ac_top_builddir}. in
19220   .) ac_abs_top_builddir=$ac_abs_builddir;;
19221   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19222   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19223   esac;;
19224 esac
19225 case $ac_abs_builddir in
19226 .) ac_abs_srcdir=$ac_srcdir;;
19227 *)
19228   case $ac_srcdir in
19229   .) ac_abs_srcdir=$ac_abs_builddir;;
19230   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19231   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19232   esac;;
19233 esac
19234 case $ac_abs_builddir in
19235 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19236 *)
19237   case $ac_top_srcdir in
19238   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19239   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19240   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19241   esac;;
19242 esac
19243
19244
19245     cd $ac_dir
19246
19247     # Check for guested configure; otherwise get Cygnus style configure.
19248     if test -f $ac_srcdir/configure.gnu; then
19249       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19250     elif test -f $ac_srcdir/configure; then
19251       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19252     elif test -f $ac_srcdir/configure.in; then
19253       ac_sub_configure=$ac_configure
19254     else
19255       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19256 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19257       ac_sub_configure=
19258     fi
19259
19260     # The recursion is here.
19261     if test -n "$ac_sub_configure"; then
19262       # Make the cache file name correct relative to the subdirectory.
19263       case $cache_file in
19264       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19265       *) # Relative path.
19266         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
19267       esac
19268
19269       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19270 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19271       # The eval makes quoting arguments work.
19272       eval $ac_sub_configure $ac_sub_configure_args \
19273            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19274         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19275 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19276    { (exit 1); exit 1; }; }
19277     fi
19278
19279     cd $ac_popdir
19280   done
19281 fi
19282